Home > Networking Tips > Wide Area Networks > MTU and GRE
Networking Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WIDE AREA NETWORKS

MTU and GRE


Tom Lancaster
07.03.2002
Rating: -4.65- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Under normal circumstances, when two hosts communicate via TCP, they communicate with each other to determine the Send Maximum Segment Size (SMSS). Often this turns out to be 1500 bytes, which not coincidentally, is the maximum amount of payload in an Ethernet frame. All is well until a combination of technologies combine to break the system.

First, the packets travel through a GRE (generic routing encapsulation) tunnel across an Ethernet interface. This encapsulation tacks on 24 bytes.

1500 - 24 = 1476

Thus, if either host sends a packet that is larger than 1476, the packet must be fragmented (typically by one of the tunnel endpoints) to cross the tunnel. Unfortunately, the hosts do not realize this, because they have only communicated with one another and agreed upon the 1500 value, but connectivity isn't broken.

At this point, any one of a number of things can break this connectivity. If the transmitting host sets the Don't Fragment bit, the router will be forced to drop the packet. However, it will *usually* send an ICMP (Internet Control Message Protocol) message informing the sender to use smaller packets. But even if it sends the ICMP messages, they are often filtered or blocked by firewalls somewhere in the path, so the host never knows why the packet wasn't delivered.

Another problem that can occur is a firewall that blocks fragmented packets. In this case, the packet is fragmented by one of the tunnel endpoints and successfully transmitted through the tunnel, but as it enters the receiver's network, a firewall drops it. Firewalls also rarely send ICMP notices to inform the sender of the policy violation.

Assuming you don't have control over the offending firewalls, there is an easy solution to this problem, once you know what the problem is:

When configuring a GRE tunnel, change the Maximum Transmission Unit (MTU) on the tunnel to 1524 or better.

If your media doesn't support larger packets (e.g. Ethernet), use policies to clear the Don't Fragment (DF) bit out of packets that pass the tunnel. (This assumes your VPN or router vendor supports this option.)

If for some reason, you need the DF bit for other traffic, it is also possible to diddle with the DMSS (Data Management Services System) negotiation of the TCP streams passing through the tunnel. For instance, on a Cisco router, you could use the command "ip tcp adjust-mss 1476". After applying that command, if a host sent a packet claiming it could support 1500 bytes, the router would silently reduce the value to 1476. This would cause the hosts to negotiate at the lower, acceptable value.


Thomas Alexander Lancaster IV is a consultant and author with over ten years experience in the networking industry, focused on Internet infrastructure.


Rate this Tip
To rate tips, you must be a member of SearchNetworking.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Virtual Private Networks
Networking Products of the Year 2004
The best of 2004
Preparing an RFP, Part 3 - Measure the results
VPLS, a new Layer 2 MPLS VPN technology
SRLGs solve network reliability problems
Selecting network services
Securing Cisco networks
VPNs then and now: IPsec and MPLS
Sprint makes about-face on VPN technology
Networking Products of the Year

Wide Area Networks
Application switch testing: An easy RFP guide
How to calculate network bandwidth requirements
Disabling IPv6 in Windows Vista -- Pros and cons
Advanced OpenVPN configuration
Basic IPsec VPN topologies and configurations - from IPsec Virtual Private Network Fundamentals
Configuring a VRF
Preparing an RFP, Part 3 - Measure the results
VPLS, a new Layer 2 MPLS VPN technology
SRLGs solve network reliability problems
IPsec VPN clients

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Networking Solutions for Business

Alcatel-Lucent Network Business Communications Solutions

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts