Enabling sending icmpv6 time exceeded messages, Gre encapsulation and de-encapsulation, Gre application scenarios – H3C Technologies H3C S12500 Series Switches User Manual
Page 187
![background image](https://www.manualsdir.com/files/812677/content/doc187.png)
174
316B
GRE encapsulation and de-encapsulation
Figure 73 X protocol networks interconnected through a GRE tunnel
The following takes the network shown in
812H
Figure 73
as an example to describe how an X protocol packet
traverses an IP network through a GRE tunnel:
427B
Encapsulation process
1.
After receiving an X protocol packet from the interface connected to Group 1, Device A submits it
to the X protocol for processing.
2.
The X protocol checks the destination address field in the packet header to determine how to route
the packet.
3.
If the packet must be tunneled to reach its destination, Device A sends it to the GRE tunnel interface.
4.
Upon receiving the packet, the tunnel interface encapsulates the packet with GRE and then with IP.
5.
Device A looks up the routing table according to the destination address in the IP header and
forwards the IP packet.
428B
De-encapsulation process
De-encapsulation is the reverse of the encapsulation process:
1.
Upon receiving an IP packet from the tunnel interface, Device B checks the destination address.
2.
If the destination is itself and the protocol number in the IP header is 47 (the protocol number for
GRE), Device B removes the IP header of the packet and submits the resulting packet to GRE for
processing (such as checking the GRE key, checksum, and sequence number in the packet).
3.
After GRE finishes the processing, Device B removes the GRE header and submits the payload to
the X protocol for forwarding.
NOTE:
GRE encapsulation and de-encapsulation can decrease the forwarding efficiency of tunnel-end devices.
317B
GRE application scenarios
The following shows typical GRE application scenarios:
- H3C SR8800 H3C SR6600-X H3C SR6600 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C S6800 Series Switches H3C S3100V2 Series Switches H3C S12500-X Series Switches H3C S9800 Series Switches