How does TCP decide the maximum size of a TCP segment?

What will be an ideal response?


TCP decides the maximum size of a TCP segment by using two mechanisms:
1) When a TCP connection is established, both ends of the TCP negotiate the maximum segment size (MSS) for the connection by exchanging the MSS sizes at their individual sides. The smaller value of these two MSS’s will be adopted as the MSS value for the connection; this guarantees that packets will not be fragmented at both the client and server end.
2) In order to prevent the TCP packets from being fragmented by the routers it traverses, TCP employs a second mechanism know as Path MTU discovery to determine the smallest MTU on the path from TCP source to TCP destination. This mechanism works as follows: the source TCP always sets the DF bit in all the IP packets, therefore intermediate routers can not fragment
the packets even if there is the need. The router will discard the packet and generate an ICMP error message back to the TCP source whenever the packet is too large, the MTU information of this router will also be enclosed in the ICMP message. When the source TCP receives this ICMP message it reduces the segment size accordingly. The process continues until the segment will not trigger ICMP error messages in all the intermediate routers.

Computer Science & Information Technology

You might also like to view...

What is an AVL tree?

a. It's a self-balancing binary search tree, in which the difference between the heights of the left and right subtrees cannot be more than one for all nodes b. It's a different name for a balanced search tree c. It is a binary search tree with an additional bit to store information about the node color d. All of the above

Computer Science & Information Technology

Microsoft Outlook allows categorizing by color to help with sorting incoming mail

Indicate whether the statement is true or false

Computer Science & Information Technology

A text file in which every field has the same number of possible characters is called a(n) ________ file

Fill in the blank(s) with correct word

Computer Science & Information Technology

Within the NTDS folder, which file stores the main Active Directory database?

A. ed.dit B. edb.chk C. ntds.dit D. edbres00001.jrs

Computer Science & Information Technology