User Tools

Site Tools


networking:mtu_test

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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:
-====== Testing MTU, Jumbo Frames and Packet Fragmentation ======+====== 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   ^MTU     ^MSS      ^Note                                       ^ 
 +|DSL (PPPoE)  |1492    |1464     |PPPoE = 8 bytes, Breaks Exchange SMTP      | 
 +|Cable        |1500    |1472     |Should cause no issues with fragmentation 
 +|IPSec VPN    |1446    |1418     |Mikrotik, No effort at optimization        | 
 +|Jumbo Frames |9000    |8972     |Used for storage networks, Max throughput 
 + 
 +{{ :networking:mtu.png?direct&750 |MTU Chart}}
  
 ===== 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:
   * ''-c 1'' (send one packet)   * ''-c 1'' (send one packet)
   * ''-s 8972'' (send 8972 byte packet, plus overhead)   * ''-s 8972'' (send 8972 byte packet, plus overhead)
 +
 +==== Configure MTU ====
 +
 +http://www.cyberciti.biz/faq/centos-rhel-redhat-fedora-debian-linux-mtu-size/
 +
 +http://www.ubuntugeek.com/how-to-change-mtu-maximum-transmission-unit-of-network-interface-in-ubuntu-linux.html
 +
 +Once you know the maximum MTU you can use, set it like this:
 +
 +<file>
 +sudo ifconfig eth0 mtu 1464
 +</file>
  
 ===== Windows ===== ===== Windows =====
 +
 +https://support.microsoft.com/en-us/help/900926/recommended-tcp-ip-settings-for-wan-links-with-a-mtu-size-of-less-than
  
 <file> <file>
-ping -f -l 8792 <hostname or IP>+ping -n 1 -f -l 8792 <hostname or IP>
 </file> </file>
  
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 ==== 
-    * ''mturoute'' + 
-  For *nix +https://www.iea-software.com/products/mtupath/ 
-    * ''tracepath'' + 
-    * ''traceroute --mtu''+<file> 
 +mtupath hostname.yourdomain.tld 
 +</file> 
 + 
 +http://www.elifulkerson.com/projects/mturoute.php 
 + 
 +<file> 
 +mturoute <hostname or IP> 
 +mturoute -t <hostname or IP> 
 +</file> 
 + 
 +==== For *nix ==== 
 + 
 +<file> 
 +tracepath <hostname or IP> 
 +traceroute --mtu <hostname or IP> 
 +</file>
  
networking/mtu_test.1362966133.txt.gz · Last modified: 2013/03/10 19:42 by gcooper