TCP Congestion Control and Flow Control
30 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the primary responsibility of the transport layer in a network?

  • End-to-end communication over a network (correct)
  • Routing packets between networks
  • Ensuring data security
  • Physical transmission of data packets
  • Which layer of the OSI model is the transport layer?

  • Fifth layer
  • First layer
  • Fourth layer (correct)
  • Second layer
  • Why does connection-oriented communication, like TCP, add more network load compared to UDP?

  • It delivers messages in random order
  • It uses a less secure protocol
  • It requires acknowledgment for each message delivered (correct)
  • It transmits data without any handshakes
  • What is the purpose of assigning numbers to packets for same-order delivery?

    <p>Ensure packets are delivered in strict sequence</p> Signup and view all the answers

    Which protocol is commonly used for connection-oriented communication at the transport layer?

    <p>TCP</p> Signup and view all the answers

    Where do transport layer protocols run within a network?

    <p>End systems</p> Signup and view all the answers

    Which layer ensures that the data transmitted is the same as the data received and it isn't corrupt?

    <p>Transport Layer</p> Signup and view all the answers

    What aspect of data transmission does flow control manage?

    <p>Data flow rate</p> Signup and view all the answers

    What does Congestion control prevent?

    <p>Senders from overwhelming the network</p> Signup and view all the answers

    Which protocol is connectionless and offers fast delivery but lacks congestion and flow control?

    <p>User Datagram Protocol (UDP)</p> Signup and view all the answers

    What characteristic distinguishes TCP from UDP concerning delivery?

    <p>Acknowledgment</p> Signup and view all the answers

    In Slow Start algorithm, how does the congestion window increase?

    <p>By one segment for each ACK returned</p> Signup and view all the answers

    Which protocol establishes sequencing and acknowledgment for data delivery?

    <p>Transmission Control Protocol (TCP)</p> Signup and view all the answers

    What indicates a congestion situation in the Congestion Avoidance algorithm?

    <p>Both a and b</p> Signup and view all the answers

    What happens when congestion is indicated by duplicate ACKs in TCP?

    <p>Fast Retransmit and Fast Recovery algorithms are invoked</p> Signup and view all the answers

    In terms of speed, which protocol is noted to be faster compared to the other?

    <p>User Datagram Protocol (UDP)</p> Signup and view all the answers

    In which scenario does Congestion Avoidance algorithm slow the transmission rate?

    <p>Network forced to drop one or more packets</p> Signup and view all the answers

    What initiates the Fast Retransmit algorithm in TCP?

    <p>Receipt of duplicate ACKs</p> Signup and view all the answers

    What is the purpose of the TCP protocol?

    <p>To setup and tear down a full duplex connection between end points</p> Signup and view all the answers

    How does TCP ensure error-free data delivery?

    <p>By transmitting data in blocks called TCP segments</p> Signup and view all the answers

    What is the purpose of the Acknowledgement number in TCP?

    <p>Containing the next byte sequence expected by the host</p> Signup and view all the answers

    How does TCP handle out-of-order segments during transmission?

    <p>By reordering them using sequence numbers</p> Signup and view all the answers

    What does the Data offset in TCP represent?

    <p>Size of the TCP header and offset to data portion</p> Signup and view all the answers

    Why does TCP use sequence numbers?

    <p>To assemble segmented data in proper order at the receiver's end</p> Signup and view all the answers

    What does receiving three or more duplicate ACKs indicate to the sender?

    <p>At least one segment has been lost</p> Signup and view all the answers

    What is the name of the algorithm where the sender does not wait for a retransmission timer to expire after receiving three or more duplicate ACKs?

    <p>Fast Retransmit algorithm</p> Signup and view all the answers

    In Fast Recovery, how does the sender resume transmission after detecting congestion?

    <p>With a larger window, incrementing as if in Congestion Avoidance mode</p> Signup and view all the answers

    Why is flow control necessary in data communication between two machines?

    <p>To prevent overwhelming a receiving station with data</p> Signup and view all the answers

    What feedback mechanism does the receiver use to inform the sender it is overwhelmed with data?

    <p>ACK (Acknowledgment)</p> Signup and view all the answers

    What is the purpose of the time out in data communication?

    <p>To determine how long a sender should wait before retransmitting a packet</p> Signup and view all the answers

    Study Notes

    Transport Layer Services and Protocols

    • The transport layer is the fourth layer in the OSI model and the second layer in the TCP/IP model.
    • It is responsible for end-to-end communication over a network and provides logical communication between application processes running on different hosts.
    • The transport layer collects segments from the Application Layer and transmits them into the Network Layer, and reassembles segments into fully formed messages and passes them on to the Application Layer.

    Services Provided by the Transport Layer

    • Connection-Oriented Communication: establishes a handshake protocol to ensure a connection is robust before data is exchanged.
    • Same Order Delivery: ensures packets are delivered in strict sequence by assigning them a number.
    • Data Integrity: ensures data integrity across all layers using checksums.
    • Flow Control: ensures data is sent at a rate acceptable for both communicating devices.
    • Multiplexing: allows simultaneous applications over a network.
    • Traffic Control: identifies indications of overloaded nodes and reduces flow rates to remediate issues.

    Transport Layer Protocols

    • Transmission Control Protocol (TCP):
      • Connection-oriented
      • Reliable, in-order delivery
      • Congestion control
      • Flow control
    • User Datagram Protocol (UDP):
      • Connectionless
      • Unreliable, unordered delivery
      • Fast, but no congestion control or flow control

    Comparison between UDP and TCP Protocols

    • UDP: connectionless, unreliable, fast, no sequencing, no acknowledgment
    • TCP: connection-oriented, reliable, slow, segment sequencing, acknowledgment, congestion control, and flow control

    TCP Congestion Control Algorithms

    • First: Slow Start - initializes a congestion window to one segment, which increases by one segment for each ACK returned.
    • Second: Congestion Avoidance - slows the transmission rate when congestion occurs.
    • Third: Fast Retransmit - retransmits a segment when three or more duplicate ACKs are received.
    • Fourth: Fast Recovery - resumes transmission with a larger window, incrementing as if in Congestion Avoidance mode.

    Flow Control

    • Ensures that a transmitting station does not overwhelm a receiving station with data.
    • The receiver sends feedback to the sender to inform them when they are overwhelmed with data.
    • Time out: the time to wait before the sender will retransmit the packet.

    Flow Control Methods

    • Stop-and-Wait
    • Transmission Control Protocol (TCP) Connection Oriented: implements mechanisms to setup and tear down a full duplex connection, guarantee error-free and ordered delivery, and control traffic.

    TCP Segments

    • Application data broken into segments for transmission.
    • Segmentation is done by TCP, according to its best strategy.
    • Each segment is placed into an IP packet.
    • TCP uses port numbers to connect programs.
    • The sequence number of the first data byte in the segment is sent to the destination host.
    • The receiving TCP uses sequence numbers to rearrange segments and eliminate duplicate segments.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    Learn about how TCP utilizes Slow Start algorithm for congestion control and the role of flow control in preventing receivers from being overwhelmed. Understand how the congestion window size is dynamically adjusted based on ACKs returned by the receiver.

    More Like This

    Use Quizgecko on...
    Browser
    Browser