Re: tcp packet split

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 19, 2014 at 2:31 AM, <net.study.sea@xxxxxxxxx> wrote:
How does the application level recognize each segment bridge in tcp stream ?
i.e packe a 30bytes>> packet b 50bytes >>packet a 20bytes
And why it is possible for one packet to contain uncontinuous part of different  user protocol packets?

It's not a kernel question in my opinion, but...

Take a look here:

"Segmentation is the process of carving up information into smaller pieces. The documentation for Transmission Control Protocol (TCP) refrers to what it calls 'data streams'. A data stream is really nothing more than a series of zeroes and ones that represent information. TCP receives data from an application and segments the data into pieces. This segmentation is necessary so that the information can be placed inside the TCP data field."

"TCP reassembles segments into a data stream and feeds that data stream to the application. The best known example of this activity is HTTP transfer of a web page. The web server loads a web page from disk, encapsulates the web page text in HTTP headers, the passes the HTTP encoded stream of text to TCP. TCP segments the text stream for transport across the network. The networking software (the stack) receives the TCP data segments and reassembles the HTTP stream of text, which your web browser reads, and renders as a web page."

http://www.inetdaemon.com/tutorials/internet/tcp/segmentation.shtml

 
在 2014-1-18,22:04,Augusto Mecking Caringi <augustocaringi@xxxxxxxxx> 写道:

On Sat, Jan 18, 2014 at 12:08 AM, <net.study.sea@xxxxxxxxx> wrote:
Hi :
     If one tcp data packet contains serveral  user protocol packet. . How is it splitter over to separate packet ?

Hi,

    It's an application protocol level problem and it's application job to do this.

    This is also called TCP desegmentation or TCP reassembly. Take a look here:


    Regards.

--
Augusto Mecking Caringi



--
Augusto Mecking Caringi
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux