Transmission Control Protocol (TCP) (article) | Khan Academy (2024)

Want to join the conversation?

Log in

  • Carita

    4 years agoPosted 4 years ago. Direct link to Carita's post “When handling out-of-orde...”

    When handling out-of-order packets, how does sending the expected acknowledgement number indicate to the sender that something is amiss? How would the sender know if it had to re-send the package if it was lost?

    (11 votes)

    • Abhishek Shah

      4 years agoPosted 4 years ago. Direct link to Abhishek Shah's post “Imagine you want to send ...”

      Transmission Control Protocol (TCP) (article) | Khan Academy (4)

      Transmission Control Protocol (TCP) (article) | Khan Academy (5)

      Transmission Control Protocol (TCP) (article) | Khan Academy (6)

      Imagine you want to send the letters of the alphabet to a friend over the Internet.

      You send ('a', 1), ('b', 2), ('c', 3), one by one to your friend. The numbers are used in case the packets/messages arrive out of order.

      Now, suppose the friend gets ('b', 2), but then ('d', 4). It's missing 'c' because it expects a continuous increase of numbers and 3 is missing. So your friend asks you to resend the letter at position 3 (this is the idea behind the expected acknowledgement number).

      As mentioned in the article, it may be just that ('c', 3) is taking longer to arrive and so in that case, the sender sends a duplicate message, but duplicates are typically dropped by the receiver.

      A helpful way to think about these numbers is that they synchronize the data so both parties have the same "view" of it.

      Imagine if we didn't have a universal notion of time. Then, the sender's view of time would be different from the receivers. Hence, they synchronize their "view" of time by communicating numbers.

      Hope this helps!

      (59 votes)

  • Bethany Kim

    4 years agoPosted 4 years ago. Direct link to Bethany Kim's post “What does the article mea...”

    What does the article mean "setting the ACK bit and increasing the acknowledgement number by the length of the data received"?

    (8 votes)

    • 4 years agoPosted 4 years ago. Direct link to Martin's post “Say you want to send a me...”

      Transmission Control Protocol (TCP) (article) | Khan Academy (10)

      Say you want to send a message that's 32 bytes long.
      So you check if the receiver is there. The receiver answers with ACK #1. That means something like "hullo I can hear you".
      Now you send the message of 32 bytes and the receiver responds with ACK #33, that means "I got your message and received a total of 33 bytes from you". (the additional byte comes from the introduction).

      Now if you send another message thats 100 bytes long, the receiver would respond with ACK #133, meaning "I got 133 bytes from you".

      That way you can see if the connection works without the receiver sending you the entire message back and you having to read it.

      (18 votes)

  • mebble

    a year agoPosted a year ago. Direct link to mebble's post “While the recipient is re...”

    While the recipient is reassembling the packets, does it keep all those packets in the RAM?

    (9 votes)

  • alexa privet

    4 years agoPosted 4 years ago. Direct link to alexa privet's post “Hi. Following up on Carit...”

    Hi. Following up on Carita's question below? How does the sender know that a packet is missing if the recipient only responds with "Ack [expected packet number]"? Is an Ack for a missing packet somehow different from an Ack for a received packet to trigger the sender to resend the missing packet?

    (5 votes)

    • Abhishek Shah

      4 years agoPosted 4 years ago. Direct link to Abhishek Shah's post “Good question, this is a ...”

      Good question, this is a central concern in protocol development: how to deal with ambiguity.

      A sender also keeps their sequence number to synchronize, so if they receive an Ack[packet_number] not matching their current sequence number, they can distinguish between a missing packet and sending new packets.

      An Ack for a missing packet is not any different from an Ack for a received packet. It is the fact that the sender has their own current sequence number, which in some sense is their own "time", that enables them to distinguish.

      Hope this helps!

      (9 votes)

  • JoshuaSV

    a year agoPosted a year ago. Direct link to JoshuaSV's post “Question: How does a comp...”

    Question: How does a computer know that it is dealing with TCP or UDP since the receiver can not initially know before hand what type of protocol to use? Does the computer need to pre-install a program that recognizes such protocols if so which programs?

    (4 votes)

    • Hunter R. Shaw

      a year agoPosted a year ago. Direct link to Hunter R. Shaw's post “There is a header on ever...”

      There is a header on every packet that (by order of IANA) denotes whether a packet is TCP or UDP. If the header is for TCP, the NIC knows to throw back an ACK packet. This is all firmware and so low level not many people would want to mess with it.

      (8 votes)

  • layaz7717

    4 years agoPosted 4 years ago. Direct link to layaz7717's post “Hello,I'm looking at the...”

    Hello,
    I'm looking at the Transmission Control Protocol page (I'm trying to ask a question under that page, but all I'm seeing is the comments from the User Datagram Protocol page, so I'm not sure where this is actually going to post). It keeps mentioning a sequence number. What exactly is a sequence number, and how does it change as more data is sent? For example, in the last section, it has the numbers 1 and 37 for the sequence, and 73 and 37 for the acknowledgement. Where are these numbers coming from?

    (5 votes)

    • Madeline Darby

      4 years agoPosted 4 years ago. Direct link to Madeline Darby's post “I believe that these numb...”

      I believe that these numbers represent different packages and the order they were sent in - ex: you send a 3 text messages and they're flagged as a sequence of message 1,2 and 3 in the order they were sent

      (3 votes)

  • Arjan Siddhpura

    a year agoPosted a year ago. Direct link to Arjan Siddhpura's post “_"In the situation pictur...”

    "In the situation pictured above, the recipient sees a sequence number of #73 but expected a sequence number of #37.”

    Why is the expected sequence number 37 in this case? Is the sequence number also incremented like the acknowledgment number based upon the bytes received in the data? Or is the sequence number incremented according to the sequence of the packets (which makes more sense here)?

    (5 votes)

    • ncysmusic

      4 months agoPosted 4 months ago. Direct link to ncysmusic's post “37 is indicating the ackn...”

      37 is indicating the acknowledge number. Since the ACK bit is set to one, adding the ACK bit + the amount of data in the packet gives us 37. I believe the sequence number is incremented based on how much information is in the packet. Hope this helps!

      (1 vote)

  • Jcim Grant

    2 years agoPosted 2 years ago. Direct link to Jcim Grant's post “Why bring in Transmission...”

    Why bring in Transmission Control Protocol when it can lead to bigger problems than it's used to having?

    (2 votes)

    • KLaudano

      2 years agoPosted 2 years ago. Direct link to KLaudano's post “TCP gives a reliable netw...”

      TCP gives a reliable network connection, ensuring that all packets arrive (if possible) and are assembled in the correct order. Generally, these benefits outweigh its extra network usage which is why TCP is usually used instead of UDP or just IP.

      (6 votes)

  • Marco Alexandre Miguelote Santos

    a year agoPosted a year ago. Direct link to Marco Alexandre Miguelote Santos's post “Question 1: who decides w...”

    Question 1: who decides which transport protocol is used? Udp vs TCP. is UDP restricted to some specific packet or something like that?
    Question 2: can i choose what transport protocol is used at any given time?
    Question 3: The data i want to send is broken in small packets. Can those packets be delivered using different protocols, or are they obliged to use the same protocol for the whole set of packets that belong to that data

    (5 votes)

    • Joshua Brack

      2 months agoPosted 2 months ago. Direct link to Joshua Brack's post “The application transmitt...”

      The application transmitting data is programmed to use whichever protocol is best suited for its tasks. Streaming services are often programmed to transmit via udp, while downloads are often transmitted via udp for instance.
      You can not choose which protocol to use unless you change the code in the application you are using or perhaps made modifications to your nic or home router (which no one does that, but technically it would be possible if you had the technical skills. also doing so would probably break your applications.)
      Data that is broken down into packets and sent use the same protocol. It is not a practice to send data with different protocols. After a file (or other data) is broken down into packets for transmission, they will all be sent using the same protocol. The receiver computer is already expecting the data to be transmitted with one of those protocols

      (1 vote)

  • Nayeem Islam Shanto

    3 years agoPosted 3 years ago. Direct link to Nayeem Islam Shanto's post “What is meant by the term...”

    What is meant by the term "offset" mentioned in the TCP segment illustration?

    (4 votes)

Transmission Control Protocol (TCP) (article) | Khan Academy (2024)

FAQs

What is TCP IP answers? ›

TCP/IP stands for Transmission Control Protocol/Internet Protocol and is a suite of communication protocols used to interconnect network devices on the internet.

What is the transmission control protocol TCP responsible for choose 1 answer? ›

Transmission Control Protocol (TCP) is a communications standard that enables application programs and computing devices to exchange messages over a network. It is designed to send packets across the internet and ensure the successful delivery of data and messages over networks.

Which is a correct statement about the transmission control protocol TCP? ›

Final answer: The correct statements about TCP are that it allows for error detection and correction, and it allows for retransmission of lost segments. TCP is a connection-oriented protocol and is slower than UDP.

How many transmission control protocol TCP control flags are there 8 5 7 6? ›

Transmission Control Protocol (TCP) has 9 flags. ECE (1 bit): ECN-Echo has a dual role, depending on the value of the SYN flag. It indicates: If the SYN flag is set (1), that the TCP peer is ECN capable.

What is TCP IP quizlet? ›

TCP/IP stands for Transmission Control Protocol / Internet Protocol. It defines how electronic devices (like computers) should be connected over the Internet, and how data should be transmitted between them.

What is TCP IP for dummies? ›

TCP/IP allows computers on the same network to identify and communicate with each other. TCP/IP is a two-layer protocol, with the transport layer (TCP) responsible for reliable end-to-end communication and the Internet layer (IP) accountable for routing packets from the host to the host.

What is an example of TCP IP? ›

TCP is used in conjunction with IP in order to maintain a connection between the sender and the target and to ensure packet order. For example, when an email is sent over TCP, a connection is established and a 3-way handshake is made.

What are the 5 layers of TCP/IP? ›

Each host that is involved in a communication transaction runs a unique implementation of the protocol stack.
  • Physical Network Layer. The physical network layer specifies the characteristics of the hardware to be used for the network. ...
  • Data-Link Layer. ...
  • Internet Layer. ...
  • Transport Layer. ...
  • Application Layer.

What is transmission control protocol quizlet? ›

TCP (Transmission Control Protocol) is a standard that defines how to establish and maintain a network conversation via which application programs can exchange data.

How does the TCP IP protocol work? ›

IP obtains the address where data is sent (your computer has an IP address). TCP ensures accurate data delivery once that IP address has been found. Together, the two form the TCP/IP protocol suite. In other words, IP sorts the mail, and TCP sends and receives the mail.

What are four key features of the transmission control protocol TCP? ›

The main TCP features are connection management, reliability, flow control and congestion control. Connection management includes connection initialization (a 3-way handshake) and its termination. The source and destination TCP ports are used for creating multiple virtual connections.

What are the two parts of a transmission control protocol TCP packet? ›

The TCP packages the data from these buffers into segments and calls on the internet module [e.g. IP] to transmit each segment to the destination TCP. A TCP segment consists of a segment header and a data section.

What are the 6 TCP flags in a TCP header? ›

The most commonly used flags are SYN, URG, ACK, PSH, FIN, and RST. SYN bit is used in the initial three-way handshake where both parties generate the initial sequence numbers.

How many flags are there in TCP protocol? ›

Context in source publication

... to Clarke G. E. [13], there are 8 flags; FIN, SYN, RST, PSH, ACK, URG, ECE, CWR in TCP flag.

What number is TCP protocol? ›

Synopsis
Protocol IDProtocol Type
1Internet Control Message Protocol (ICMP)
2Internet Group Management Protocol (IGMP)
6Transmission Control Protocol (TCP)
17User Datagram Protocol (UDP)

What is TCP/IP in simple words? ›

TCP/IP is a data link protocol used on the internet to let computers and other devices send and receive data. TCP/IP stands for Transmission Control Protocol/Internet Protocol and makes it possible for devices connected to the internet to communicate with one another across networks.

What is the TCP interview answer? ›

TCP is a connection-oriented protocol. Connection-orientation means that the communicating devices should establish a connection before transmitting data and should close the connection after transmitting the data. UDP is the datagram oriented protocol.

How do you explain TCP IP to a child? ›

TCP is part of the popular "TCP/IP" combination used by the Internet. The Internet Protocol, or IP, makes sure data on the internet gets to the right place. Then TCP makes sure the data is put in the right order, and none of it is missing. TCP also helps to control traffic on the internet so it does not get overloaded.

How to explain TCP/IP in an interview? ›

TCP (Transmission Control Protocol) is a connection-oriented protocol, meaning that it requires an active connection between two devices in order to transfer data. This connection is established through a three-way handshake, which involves the two devices exchanging a series of messages to confirm the connection.

Top Articles
Bear Awareness! Bear Safety while Hiking.
How to Find GPS Trackers on Vehicles
Creepshotorg
Tmf Saul's Investing Discussions
Devon Lannigan Obituary
Avonlea Havanese
Lifewitceee
T Mobile Rival Crossword Clue
CA Kapil 🇦🇪 Talreja Dubai on LinkedIn: #businessethics #audit #pwc #evergrande #talrejaandtalreja #businesssetup…
Find The Eagle Hunter High To The East
Craigslist Dog Kennels For Sale
Assets | HIVO Support
Mephisto Summoners War
Craigslist Malone New York
Cyndaquil Gen 4 Learnset
Soccer Zone Discount Code
Praew Phat
How To Cancel Goodnotes Subscription
Schedule 360 Albertsons
Walgreens Tanque Verde And Catalina Hwy
Busted Newspaper Fauquier County Va
Azpeople View Paycheck/W2
Joan M. Wallace - Baker Swan Funeral Home
Glover Park Community Garden
Apartments / Housing For Rent near Lake Placid, FL - craigslist
Colonial Executive Park - CRE Consultants
Divina Rapsing
Znamy dalsze plany Magdaleny Fręch. Nie będzie nawet chwili przerwy
EVO Entertainment | Cinema. Bowling. Games.
Dell 22 FHD-Computermonitor – E2222H | Dell Deutschland
Play It Again Sports Forsyth Photos
Funky Town Gore Cartel Video
Mercedes W204 Belt Diagram
Gridwords Factoring 1 Answers Pdf
Kaiserhrconnect
Egg Crutch Glove Envelope
Myhrconnect Kp
Metro By T Mobile Sign In
Asian Grocery Williamsburg Va
Raisya Crow on LinkedIn: Breckie Hill Shower Video viral Cucumber Leaks VIDEO Click to watch full…
Sept Month Weather
The Angel Next Door Spoils Me Rotten Gogoanime
Seven Rotten Tomatoes
Trivago Anaheim California
Catchvideo Chrome Extension
Huntsville Body Rubs
Worland Wy Directions
Cara Corcione Obituary
How to Find Mugshots: 11 Steps (with Pictures) - wikiHow
7 National Titles Forum
Latest Posts
Article information

Author: Wyatt Volkman LLD

Last Updated:

Views: 6746

Rating: 4.6 / 5 (66 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Wyatt Volkman LLD

Birthday: 1992-02-16

Address: Suite 851 78549 Lubowitz Well, Wardside, TX 98080-8615

Phone: +67618977178100

Job: Manufacturing Director

Hobby: Running, Mountaineering, Inline skating, Writing, Baton twirling, Computer programming, Stone skipping

Introduction: My name is Wyatt Volkman LLD, I am a handsome, rich, comfortable, lively, zealous, graceful, gifted person who loves writing and wants to share my knowledge and understanding with you.