Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Quick question; on some Linux computers I have seen, I can do a tcpdump on an ethernet interface and I see packets going out with much larger sizes than the MTU of the configured interface. See below:
In this case, it is an FTP transfer from sending computer 10.172.172.2 to client 192.168.251.1. There are packet sizes up to 12880 bytes! The MTU on this interface is most definitely 1500.
Why would this be? As far as I know, the "jumbo" frame ethernet spec typically only goes up to ~9000 bytes, so why such large packets?
"If the '-e' option is given, the link level header is printed out. On Ethernets, the source and destination \addresses, protocol, and packet length are printed."
As far as I know, if the "do not fragment" bit is not set on in the packet TCP will automatically break it into as many fragments as necessary to get it to or below the MTU. The entire outbound packet may be larger than the MTU, but TCP will only transmit a packet that is at or under that value.
... I just looked it up. TCP indeed does this, all under the covers. If the "do-not-fragment" bit is set ON, TCP will return an error code if it gets a packet larger than the MTU of the connection.
TSO - maybe your nic is actually doing the "on-the-wire" segmentation. Check with ethtool and see if tx segmentation offload is supported.
Indeed it is, for transmitted TCP:
Code:
user@system:~# ethtool -k eth1
Features for eth1:
rx-checksumming: off [fixed]
tx-checksumming: on
tx-checksum-ipv4: on
tx-checksum-ip-generic: off [fixed]
tx-checksum-ipv6: off [fixed]
tx-checksum-fcoe-crc: off [fixed]
tx-checksum-sctp: off [fixed]
scatter-gather: on
tx-scatter-gather: on
tx-scatter-gather-fraglist: off [fixed]
tcp-segmentation-offload: on
tx-tcp-segmentation: on
tx-tcp-ecn-segmentation: off [fixed]
tx-tcp6-segmentation: off [fixed]
udp-fragmentation-offload: off [fixed]
generic-segmentation-offload: on
generic-receive-offload: on
large-receive-offload: off [fixed]
rx-vlan-offload: off [fixed]
tx-vlan-offload: off [fixed]
ntuple-filters: off [fixed]
receive-hashing: off [fixed]
highdma: off [fixed]
rx-vlan-filter: off [fixed]
vlan-challenged: off [fixed]
tx-lockless: off [fixed]
netns-local: off [fixed]
tx-gso-robust: off [fixed]
tx-fcoe-segmentation: off [fixed]
tx-gre-segmentation: off [fixed]
tx-ipip-segmentation: off [fixed]
tx-sit-segmentation: off [fixed]
tx-udp_tnl-segmentation: off [fixed]
fcoe-mtu: off [fixed]
tx-nocache-copy: off
loopback: off [fixed]
rx-fcs: off [fixed]
rx-all: off [fixed]
tx-vlan-stag-hw-insert: off [fixed]
rx-vlan-stag-hw-parse: off [fixed]
rx-vlan-stag-filter: off [fixed]
l2-fwd-offload: off [fixed]
busy-poll: off [fixed]
hw-switch-offload: off [fixed]
I believe TCP is reporting the size of the original packet it received for transmission, and anything in the list larger than the MTU was broken up into MTU sized fragments (under the covers).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.