[e2e] TCP fragmentation and reassembly

Detlef Bosau detlef.bosau at web.de
Mon Dec 5 15:13:55 PST 2005

Erwin Davis wrote:
> Helllo,
> Packet from application layer may be framed in TCP layer based on MSS
> (maximum segment size, not MTU in IP layer) negotiated between two TCP
> layers of the end parties. My question is if the TCP layer in
> receiving side will reassemble the TCP fragments before it forward the
> packet to the application layer. If yes, then how the TCP layer in
> receiving side knows how many TCP fragments are made up for this one
> application packet. If not, will it require the intelligence from the
> application layer for the application packet reassembly. Thanks for
> your help,
> erwin

As the name may suggest, _flow_ sockets appear to the application as a
An application reads from and writes to a TCP flow exactly the same way
as to any ordinary file.

You may want to read some textbook on TCP and sockets and socket
programming, e.g. TCP/IP Illustrated by w. Richard Stevens
or Internetworking with TCP/IP by Doug Comer.
Detlef Bosau
Galileistrasse 30
70565 Stuttgart
Mail: detlef.bosau at web.de
Web: http://www.detlef-bosau.de
Mobile: +49 172 681 9937

More information about the end2end-interest mailing list