cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
893
Views
0
Helpful
8
Replies

GRE tunnel

alsonlionel
Level 1
Level 1

Hi,

I have a problem with a GRE tunnel between 2 sites by SDSL 512kbps, GRE traffic increases dramatically and saturate the link with "Fragmented IP protocol" 1514octets, how to avoid this saturation?, Which configuration must be added to correct?

I use cisco 2621MX on the both sites.

Thanks for your help.

8 Replies 8

vishwancc
Level 3
Level 3

Hi Aison,

It seems to me that you have to configure right mss value on the tunnel interface.

ip tcp adjust-mss

http://www.cisco.com/en/US/tech/tk827/tk369/technologies_white_paper09186a00800d6979.shtml#t7

Chao

Vishwa

Istvan_Rabai
Level 7
Level 7

Hi Lionel,

It seems to me that the problem is that your SDSL interface mtu may be something like 1500 bytes.

The size of the original packets + the size of the GRE encapsulation (24 bytes) exceeds this 1500 bytes. This is why the packets are fragmented so the router can transmit them over the physical interface with a smaller mtu.

The solutions may be different, but all of them lead to the same result:

The final packet size (original packet size + GRE encapsulation (24 bytes)) should not exceed the SDSL interface mtu.

1. Manually limit the packet size on your hosts. For this, you have to make a little calculation.

Packet size = SDSL interface mtu - 24 bytes

2. Enable path-mtu discovery on the hosts and set the DF-bit (Don't Fragment) to 1 on all packets. The path-mtu discovery process will take care of setting the packet size that can be transmitted over the path that includes the GRE tunnel.

3. If your traffic is tcp traffic only: configure the maximum tcp segment size on the router tunnel interfaces with the "ip tcp adjust-mss" command.

Again you have to do some calculation:

The tcp maximum segment size is calculated as follows:

TCP MSS = SDSL interface mtu - 24 bytes - 40 bytes

24 bytes = GRE encapsulation

40 bytes = the size of the original ip header + tcp header.

Note:

If PPPoE is configured on the SDSL interface then you should also take into account the size of PPPoE encapsulation.

Cheers:

Istvan

Joseph W. Doherty
Hall of Fame
Hall of Fame

To clarify the information both Vishwa and Istvan provided, if possible, you want both PMTU working and "ip tcp adjust-mss". The former informs the host to reduce its MTU if its too large, the latter avoids the overhead involved and too large MTU (initially) for TCP.

Also, the "ip tcp adjust-mss", if I recall correctly, is a later IOS feature. I.e. It might not be found on your 2621MXs without an IOS version upgrade.

Thanks for your suggestions

josephdoherty> so, if i understand very well, i must upgrade the IOS of both routers? do you have another solutions?

Thanks...

Another solution? None beyond what's already been posted.

Must you upgrade both routers? Actually, if I recall correctly, no. The mss adjust command only needs to be somewhere in-line for the traffic. It could be set on just one of the two routers (tunnel inteface 1st choice).

Whether you need to upgrade at all depends on what IOS version introduced this feature (mss adjust). (NB: Sometimes newer IOSs aren't available for really old hardware [which might not be an issue for your hardware].)

Hi all,

I've changed the mss and the path-mtu-discovery on the router but the link behaves as before; wireshark shows a lot of packet (Fragmented IP protocol (proto=GRE 0x2f, off=0)) like:

1514 bytes on wire, 1514 bytes captured

ethernet II....

internet Protocol....

data (1480 bytes)

see attachment for a print-screen

Actual configuration?

BTW, have you verified PMTU is working between end hosts?

In addition to setting mtu discovery, can I suggest manually setting the MTU on the PHY interfaces on both routers?

ie. an MTU of 1470 should ensure you equate for everything (GRE & PPP headers, etc). If it doesnt work, make it smaller.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card