Logo/

Chapter5Summary.pdf Flashcards

Log in

Made with ScholarlyMake flashcards like these from your own notes

Chapter5Summary.pdf Flashcards

Questions and answers

21 cards
  1. Question:What is the job of the transport layer in end-to-end protocols?

    Answer:The job of the transport layer is to turn the host-to-host packet delivery service into a process-to-process communication channel, supporting communication between application programs running in end nodes.

  2. Question:What are some common properties that a transport protocol can be expected to provide?

    Answer:Some common properties that a transport protocol can be expected to provide are guaranteed packet delivery, delivery of packets in the same order they were sent, delivery of at most one copy of each packet, support for arbitrarily large messages, synchronization, flow control by the receiver, and support for multiple application processes on each host.

  3. Question:What are some limitations of the underlying network on which the transport protocol operates?

    Answer:Some limitations of the underlying network include dropping messages due to congestion, reordering messages, delivering duplicate copies of messages, limiting message size, and delivering messages after long delays (stale packets). Mechanisms are needed to convert the less-than-desirable properties of the best-effort network into the high level of service required by application programs.

  4. Question:What service does UDP provide for application protocols?

    Answer:UDP provides a low-overhead transport service for application protocols that do not need or cannot use the connection-oriented services offered by TCP. It is often used by applications that make heavy use of broadcasts or multicasts, as well as applications that require fast turnaround times on lookups or queries.

  5. Question:What are the characteristics of UDP (User Datagram Protocol)?

    Answer:UDP is a connectionless, lightweight, unreliable, and unordered datagram service that does not provide flow control. It adds no functionality except for demultiplexing. Endpoints are identified by ports, where servers have well-known ports. UDP includes an optional checksum and a pseudo header for ensuring message correctness.

  6. Question:What does TCP (Transmission Control Protocol) provide for transaction-oriented applications?

    Answer:TCP provides a reliable, connection-oriented transport protocol for transaction-oriented applications. It guarantees the reliable, in-order delivery of a stream of bytes and supports a pair of byte streams flowing in each direction. TCP includes flow control and congestion control mechanisms, supports demultiplexing, and implements a full-duplex protocol.

  7. Question:What are the main considerations for TCP in handling flow control and congestion control?

    Answer:Flow control prevents senders from overrunning the capacity of receivers, while congestion control prevents too much data from being injected into the network, causing switches or links to become overloaded. Flow control is an end-to-end issue, while congestion control is concerned with how hosts and networks interact.

  8. Question:What are some of the issues that need to be addressed when TCP potentially connects many different hosts over the Internet?

    Answer:Some issues that need to be addressed when TCP connects many different hosts include the need for explicit connection termination, potentially different Round Trip Times, the requirement for an adaptive timeout mechanism, potential long delays in networks, the need to reorder packets upon arrival, assumptions regarding packet lifetimes, different destination capacities and hardware specifications, allocation of varying amounts of buffering, and preparation for network congestion.

  9. Question:What sets the amount of data that can be sent without waiting for acknowledgment in a sliding window protocol?

    Answer:The size of the window sets the amount of data that can be sent without waiting for acknowledgment from the receiver.

  10. Question:How does the receiver throttle the sender in a sliding window protocol?

    Answer:The receiver throttles the sender by advertising a window that is no larger than the amount of data it can buffer.

  11. Question:What does TCP on the receive side keep to avoid overflowing the buffer?

    Answer:TCP on the receive side must keep to avoid overflowing the buffer.

  12. Question:What does TCP advertise as a window size on the receive side?

    Answer:TCP advertises a window size that represents the amount of free space remaining in its buffer.

  13. Question:What must TCP ensure on the send side based on the advertised window from the receiver?

    Answer:TCP on the send side must adhere to the advertised window it gets from the receiver, ensuring that it limits how much data it can send at any given time.

  14. Question:What happens if the sending process tries to write more bytes than the MaxSendBuffer allows in TCP?

    Answer:If the sending process tries to write more bytes than the MaxSendBuffer allows, TCP blocks the sending process and does not allow it to generate more data.

  15. Question:What does TCP do when the other side advertises a window size of 0?

    Answer:When the other side advertises a window size of 0, TCP persists in sending a segment with 1 byte of data every so often to trigger a response that contains the current advertised window.

  16. Question:What is the purpose of the 32-bit sequence number field in TCP?

    Answer:The 32-bit sequence number field in TCP ensures that the sequence number used on a given connection does not wrap around within a 120-second period of time.

  17. Question:What does the 16-bit AdvertisedWindow field in TCP need to be big enough to allow?

    Answer:The 16-bit AdvertisedWindow field in TCP needs to be big enough to allow the sender to keep the pipe full, enabling the transmission of a full delay x bandwidth products worth of data.

  18. Question:What are the three mechanisms that trigger the transmission of a segment in TCP?

    Answer:The three mechanisms that trigger the transmission of a segment in TCP are: 1. TCP maintains a variable known as the maximum segment size (MSS) and sends a segment as soon as it has collected MSS bytes. 2. The sending process explicitly asks TCP to transmit a segment by invoking a push operation. 3. A timer firing results in the transmission of a segment containing as many bytes as currently buffered for transmission.

  19. Question:What is Nagle's algorithm in TCP and why is it used?

    Answer:Nagle's algorithm in TCP introduces a timer that triggers the transmission of more data when it expires. It provides a simple unified rule for deciding when to transmit, ensuring efficient data transmission based on the window size and data in flight.

  20. Question:What is the purpose of adaptive retransmission in TCP?

    Answer:The purpose of adaptive retransmission in TCP is to guarantee the reliable delivery of data by retransmitting each segment if an acknowledgment is not received within a certain period of time.

  21. Question:What flaw was discovered in the original adaptive retransmission algorithm?

    Answer:A flaw in the original adaptive retransmission algorithm was that an acknowledgment does not accurately acknowledge a transmission, making it challenging to associate it with the correct transmission for measuring sample RTT.