Recently in the Ubuntu (vm) running on a written in link layer raw socket caught program do exercise, found a great big part of the TCP packets (several thousand to ten thousand bytes), wonder, then, on the other an xp (virtual machine), through the analysis of the wireshark caught found large TCP packet is multiple are segmented TCP packets restructuring, thus is the system before the data to the original socket to recombine the TCP packets, however I need not restructuring package for other USES, piecewise again waste of computer resource, can by setting the automatic stop system restructuring TCP package?
CodePudding user response:
TCP packet fragmentation and restructuring should be transport layer do, if you're in the link layer using raw socket for transmission, so in theory will not be restructuring,
Because of the link layer raw socket will not through the network layer and transport layer, data directly to the application layer,
What went wrong?