# US 2022/0045963 A1 · Method and system for determining a path maximum transmission unit (mtu) between endpoints of a generic routing encapsulation (gre) tunnel

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0045963 A1
- Document ID: US20220045963A1
- Status: Published application
- Kind: A1
- Application number: 17/509,983
- Filed: 2021-10-25
- Published: 2022-02-10
- Earliest claimed: 2019-08-13
- Assignees: Cloudflare, Inc.
- Applicants: Cloudflare, Inc.
- Inventors: Nicholas Alexander WONDRA; Erich Alfred HEINE; Yan ZHAI
- Web page: https://patentgrep.com/patent/US20220045963A1

## CPC

- H04L 12/4641: {Virtual LANs, VLANs, e.g. virtual private networks [VPN] (LAN interconnection over a bridge based backbone H04L12/462; encapsulation techniques H04L12/4633; routing of packets H04L45/00; packet switches H04L49/00; virtual private networks for security H04L63/0272)}
- H04L 47/36: by determining packet size, e.g. maximum transfer unit [MTU]
- H04L 12/4633: {Interconnection of networks using encapsulation techniques, e.g. tunneling}
- H04L 47/28: in relation to timing considerations
- H04L 2212/00: Encapsulation of packets
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method of path MTU determination in Generic Routing Encapsulation (GRE) tunnel is presented. A source network device (ND) transmits, to a destination ND that is a second endpoint of the GRE tunnel, a first outer packet including a first inner packet, where the first inner packet includes a first inner header that is used to deliver the first inner packet to the source network device, a first inner GRE header, and a first payload. The source ND receives the first inner packet. The source ND transmits a second outer packet including a second inner packet that includes a second payload that has a size greater than a size of the first payload. The source ND determines that the second inner packet is not received and determines a path MTU between the source ND and the destination ND based on a size of the first and the second outer packets.

## Claims

### Claim 1

A method in a source network device that is a first endpoint of a Generic Routing Encapsulation (GRE) tunnel, the method comprising:
transmitting, to a destination network device, a first outer packet including a first outer header that is used to transmit the first outer packet to the destination network device, a first outer GRE header, and a first inner packet, wherein the first inner packet includes a first inner header that is used to deliver the first inner packet to the source network device, a first inner GRE header, and a first payload, and wherein the destination network device is a second endpoint of a GRE tunnel;
receiving the first inner packet;
transmitting, to the destination network device, a second outer packet including a second outer header that is used to transmit the second outer packet to the destination network device, a second outer GRE header, and a second inner packet, wherein the second inner packet includes a second inner header that is used to deliver the second inner packet to the source network device, a second inner GRE header, and a second payload that has a size that is greater than a size of the first payload;
determining that the second inner packet is not received before a predetermined period of time has elapsed; and
determining a path MTU for a path between the source network device and the destination network device based on a size of the first outer packet and a size of the second outer packet.

### Claim 2 (depends on 1)

The method of claim 1 further comprising:
responsive to determining that the second inner packet is not received before the predetermined period of time has elapsed, incrementing a value of a counter that is associated with the second outer packet.

### Claim 3 (depends on 2)

The method of claim 2 further comprising:
determining whether the value of the counter is greater than a predetermined threshold; and
responsive to determining that the value of the counter is not greater than the predetermined threshold, transmitting a copy of the second outer packet to the destination network device.

### Claim 4 (depends on 3)

The method of claim 3 further comprising:
following the transmitting the copy of the second outer packet, determining that the second inner packet is not received before a predetermined period of time has elapsed; and
responsive to determining that the second inner packet is not received before the predetermined period of time has elapsed, incrementing the value of the counter that is associated with the second outer packet.

### Claim 5 (depends on 4)

The method of claim 4 further comprising:
responsive to determining that the value of the counter is greater than the predetermined threshold, setting a size of the second outer packet as a higher limit for the path MTU.

### Claim 6 (depends on 5)

The method of claim 5, wherein the determining the path MTU includes determining a value that is smaller than the higher limit for the path MTU.

### Claim 7 (depends on 1)

The method of claim 1 further comprising:
starting a timer upon transmission of the first outer packet; and
wherein the determining that the second inner packet is not received before the predetermined period of time has elapsed includes determining that the timer has expired without the source network device receiving the second inner packet.

### Claim 8

A source network device that is a first endpoint of a Generic Routing Encapsulation (GRE) tunnel, the source network device comprising:
one or more processors; and
non-transitory machine-readable storage media coupled with the one or more processors that store instructions that, when executed by the one or more processors, cause said processors to:
transmit, to a destination network device, a first outer packet including a first outer header that is used to transmit the first outer packet to the destination network device, a first outer GRE header, and a first inner packet, wherein the first inner packet includes a first inner header that is used to deliver the first inner packet to the source network device, a first inner GRE header, and a first payload, and wherein the destination network device is a second endpoint of a GRE tunnel;
receive the first inner packet;
transmit, to the destination network device, a second outer packet including a second outer header that is used to transmit the second outer packet to the destination network device, a second outer GRE header, and a second inner packet, wherein the second inner packet includes a second inner header that is used to deliver the second inner packet to the source network device, a second inner GRE header, and a second payload that has a size that is greater than a size of the first payload;
determine that the second inner packet is not received before a predetermined period of time has elapsed; and
determine a path MTU for a path between the source network device and the destination network device based on a size of the first outer packet and a size of the second outer packet.

### Claim 9 (depends on 8)

The source network device of claim 8, wherein the processors are further to:
responsive to determining that the second inner packet is not received before the predetermined period of time has elapsed, increment a value of a counter that is associated with the second outer packet.

### Claim 10 (depends on 9)

The source network device of claim 9, wherein the processors are further to:
determine whether the value of the counter is greater than a predetermined threshold; and
responsive to determining that the value of the counter is not greater than the predetermined threshold, transmit a copy of the second outer packet to the destination network device.

### Claim 11 (depends on 10)

The source network device of claim 10, wherein the processors are further to:
following the transmission of the copy of the second outer packet, determine that the second inner packet is not received before a predetermined period of time has elapsed; and
responsive to determining that the second inner packet is not received before the predetermined period of time has elapsed, increment the value of the counter that is associated with the second outer packet.

### Claim 12 (depends on 11)

The source network device of claim 11, wherein the processors are further to:
responsive to determining that the value of the counter is greater than the predetermined threshold, set a size of the second outer packet as a higher limit for the path MTU.

### Claim 13 (depends on 12)

The source network device of claim 12, wherein to determine the path MTU includes to determine a value that is smaller than the higher limit for the path MTU.

### Claim 14 (depends on 8)

The source network device of claim 8, wherein the processors are further to:
start a timer upon transmission of the first outer packet; and
wherein to determine that the second inner packet is not received before the predetermined period of time has elapsed includes to determine that the timer has expired without the source network device receiving the second inner packet.

### Claim 15

A non-transitory computer readable storage medium that stores instructions which when executed by one or more processors of a source network device that is a first endpoint of a Generic Routing Encapsulation (GRE) tunnel cause said processors to perform the following operations:
transmitting, to a destination network device, a first outer packet including a first outer header that is used to transmit the first outer packet to the destination network device, a first outer GRE header, and a first inner packet, wherein the first inner packet includes a first inner header that is used to deliver the first inner packet to the source network device, a first inner GRE header, and a first payload, and wherein the destination network device is a second endpoint of a GRE tunnel;
receiving the first inner packet;
transmitting, to the destination network device, a second outer packet including a second outer header that is used to transmit the second outer packet to the destination network device, a second outer GRE header, and a second inner packet, wherein the second inner packet includes a second inner header that is used to deliver the second inner packet to the source network device, a second inner GRE header, and a second payload that has a size that is greater than a size of the first payload;
determining that the second inner packet is not received before a predetermined period of time has elapsed; and
determining a path MTU for a path between the source network device and the destination network device based on a size of the first outer packet and a size of the second outer packet.

### Claim 16 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the operations further comprise:
responsive to determining that the second inner packet is not received before the predetermined period of time has elapsed, incrementing a value of a counter that is associated with the second outer packet.

### Claim 17 (depends on 16)

The non-transitory computer readable storage medium of claim 16, wherein the operations further comprise:
determining whether the value of the counter is greater than a predetermined threshold; and
responsive to determining that the value of the counter is not greater than the predetermined threshold, transmitting a copy of the second outer packet to the destination network device.

### Claim 18 (depends on 17)

The non-transitory computer readable storage medium of claim 17, wherein the operations further comprise:
following the transmitting the copy of the second outer packet, determining that the second inner packet is not received before a predetermined period of time has elapsed; and
responsive to determining that the second inner packet is not received before the predetermined period of time has elapsed, incrementing the value of the counter that is associated with the second outer packet.

### Claim 19 (depends on 18)

The non-transitory computer readable storage medium of claim 18, wherein the operations further comprise:
responsive to determining that the value of the counter is greater than the predetermined threshold, setting a size of the second outer packet as a higher limit for the path MTU.

### Claim 20 (depends on 19)

The non-transitory computer readable storage medium of claim 19, wherein the determining the path MTU includes determining a value that is smaller than the higher limit for the path MTU.
