Logo/

Untitled Flashcards

Log in

Made with ScholarlyMake flashcards like these from your own notes

Untitled Flashcards

Questions and answers

13 cards
  1. Question:What does it mean that TCP is a byte-oriented protocol?

    Answer:TCP is a byte-oriented protocol, which means that the sender writes bytes into a TCP connection, and the receiver reads bytes out of the TCP connection.

  2. Question:What does TCP on the source host do before sending a packet to its peer on the destination host?

    Answer:TCP on the source host buffers enough bytes from the sending process to fill a reasonably sized packet before sending it to its peer on the destination host.

  3. Question:What happens when TCP on the destination host receives a packet from the source host?

    Answer:TCP on the destination host empties the contents of the packet into a receive buffer, and the receiving process reads from this buffer at its leisure.

  4. Question:What are the packets exchanged between TCP peers called, and why are they called that?

    Answer:The packets exchanged between TCP peers are called segments because each one carries a segment of the byte stream.

  5. Question:What fields are involved in TCP's sliding window algorithm?

    Answer:The Acknowledgement, SequenceNum, and AdvertisedWindow fields are all involved in TCP's sliding window algorithm.

  6. Question:What are the possible flags used in the 6-bit Flags field in TCP segments?

    Answer:The possible flags include SYN (used to establish a connection), FIN (used to terminate a connection), RESET (signifies that the receiver wants to abort the connection), PUSH (indicates the push operation), URG (signifies urgent data), and ACK (acknowledgment).

  7. Question:How is the Checksum field used in TCP?

    Answer:The Checksum field in TCP is computed over the TCP header, TCP data, and the pseudoheader (made up of the source address, destination address, and length fields from the IP header) to ensure data integrity. It is required for TCP in both IPv4 and IPv6.

  8. Question:What is the purpose of the HdrLen field in TCP?

    Answer:The HdrLen field in TCP gives the length of the header in 32-bit words and measures the offset from the start of the packet to the start of the data since the TCP header is of variable length.

  9. Question:How does a TCP connection begin and what is the first step in the process?

    Answer:A TCP connection begins with a client doing an active open to a server. The first step is the client sending a segment to the server stating the initial sequence number it plans to use.

  10. Question:What is the algorithm used by TCP to establish and terminate a connection called?

    Answer:The algorithm used by TCP to establish and terminate a connection is called a three-way handshake.

  11. Question:What is the purpose of exchanging and agreeing on sequence numbers in TCP?

    Answer:Exchanging and agreeing on sequence numbers in TCP helps protect against two incarnations of the same connection reusing the same sequence numbers too soon and avoids interference between different connections.

  12. Question:What is the function of the AdvertisedWindow field in TCP?

    Answer:The AdvertisedWindow field in TCP is used by the receiver to limit the amount of unacknowledged data the sender can have at any given time, thereby enforcing flow control between the sender and receiver.

  13. Question:What does TCP do to guarantee reliable and ordered delivery of data?

    Answer:TCP guarantees reliable and ordered delivery of data by maintaining send and receive buffers on the sending and receiving sides respectively, and using pointers to keep track of data transmission and reception.