This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
networking:mtu_test [2013/03/10 19:42] gcooper |
networking:mtu_test [2025/03/10 12:14] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== MTU, Jumbo Frames and Packet Fragmentation ====== |
+ | |||
+ | :!: MTU issues can be caused by the extra overhead of PPPoE, VPNs, VLANs, MPLS, VPLS, etc. | ||
+ | |||
+ | :!: MTU issues can cause Microsoft Exchange to not accept mail. | ||
+ | |||
+ | :!: MTU issues can interfere with SSH connections. | ||
+ | |||
+ | **MTU** (maximum transmission unit) is the maximum Ethernet frame size. | ||
+ | |||
+ | **MSS** (maximum TCP segment size) is the maximum data bytes carried within a TCP packet. **1472** is fairly safe. Less than that is problematic due to fragmentation. | ||
+ | |||
+ | ^Connection | ||
+ | |DSL (PPPoE) | ||
+ | |Cable | ||
+ | |IPSec VPN |1446 |1418 | ||
+ | |Jumbo Frames |9000 |8972 |Used for storage networks, Max throughput | ||
+ | |||
+ | {{ : | ||
===== Linux ===== | ===== Linux ===== | ||
+ | |||
+ | ==== Testing ==== | ||
The following command example tests for Jumbo Frames capability, which is usually an MTU (max transmission unit) of 9000 bytes. | The following command example tests for Jumbo Frames capability, which is usually an MTU (max transmission unit) of 9000 bytes. | ||
Line 16: | Line 36: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
+ | ==== Configure MTU ==== | ||
+ | |||
+ | http:// | ||
+ | |||
+ | http:// | ||
+ | |||
+ | Once you know the maximum MTU you can use, set it like this: | ||
+ | |||
+ | < | ||
+ | sudo ifconfig eth0 mtu 1464 | ||
+ | </ | ||
===== Windows ===== | ===== Windows ===== | ||
+ | |||
+ | https:// | ||
< | < | ||
- | ping -f -l 8792 < | + | ping -n 1 -f -l 8792 < |
</ | </ | ||
Line 27: | Line 61: | ||
These are tools which will figure out the MTU across the path between the host and the target: | These are tools which will figure out the MTU across the path between the host and the target: | ||
- | * For Windows | + | ==== For Windows |
- | * '' | + | |
- | | + | https:// |
- | * '' | + | |
- | * '' | + | < |
+ | mtupath hostname.yourdomain.tld | ||
+ | </ | ||
+ | |||
+ | http:// | ||
+ | |||
+ | < | ||
+ | mturoute < | ||
+ | mturoute -t < | ||
+ | </ | ||
+ | |||
+ | ==== For *nix ==== | ||
+ | |||
+ | < | ||
+ | tracepath | ||
+ | traceroute --mtu < | ||
+ | </ | ||