Message forwarding method, system and equipment based on generic routing encapsulation tunnel

A general-purpose routing encapsulation and packet forwarding technology, applied in the field of communications, can solve problems such as inability to correctly select the destination address of the tunnel, inconsistent mask lengths, and increasing the number of tunnel entries, and improve the efficiency of packet forwarding.

Active Publication Date: 2011-08-24
NEW H3C TECH CO LTD
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The establishment of the tunnel entry does not take into account the actual mask length of the branch network. The inconsistent number of branch network address requirements or the change of the branch network will lead to inconsistent mask lengths.
If the network mask setting of the branch is based on the longest mask of the branch, the central device may create multiple tunnel entries pointing to the same subnet, which increases the number of tunnel entries and det

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Message forwarding method, system and equipment based on generic routing encapsulation tunnel
  • Message forwarding method, system and equipment based on generic routing encapsulation tunnel
  • Message forwarding method, system and equipment based on generic routing encapsulation tunnel

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0068] First, introduce the improved GRE header of the present invention in detail, see image 3 , image 3 It is a schematic diagram of a GRE header structure according to Embodiment 1 of the present invention. exist image 3 Among them, C, R, K, S, and s are the first 5 bits of the GRE message header, which are some flag bits, and their meanings are shown in Table 1.

[0069] Recur, bits 5-7, the Recur field is a counter that records the number of encapsulations allowed. Among them, GRE provides a specific mechanism to prevent recursive encapsulation. If the router wants to further encapsulate the data packet encapsulated by GRE, it should check this field before encapsulation. If the Recur field is non-zero, the data packet can still be encapsulated, and the value of the Recur field in the new GRE header will be reduced by 1; otherwise, if the value of the Recur field is already 0, the data packet cannot be re-encapsulated. for encapsulation.

[0070] Flags, bits 8-12,...

Embodiment 2

[0108] In this embodiment, the field A indicating the switch is no longer set in the GRE header, and the GRE packets sent from the branch network to the central device all carry Network Mask information, and the traffic sent from the central device to the branch network does not carry Network Mask information. Mask information, other fields are the same as those described in Embodiment 1. The establishment process of the tunnel entry in this embodiment is as follows:

[0109] The central device receives the GRE packet sent by the branch network device, and establishes a GRE tunnel entry according to the Network Mask information carried in the GRE header.

[0110] In this embodiment, since the branch network device sends a message to the center device every time, it triggers the establishment of the GRE tunnel table entry of the center device, so when the center device sends a message to the branch network device, it does not send an acknowledgment of the establishment of the G...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a message forwarding method based on a generic routing encapsulation (GRE) tunnel, comprising the steps that central equipment receives a GRE message which is sent from branch network equipment and carries at least one piece of branch subnetwork mask information; a corresponding GRE tunnel table entry is built according to the branch subnetwork mask information; the branch subnetwork mask information carried by the CRE message is obtained from a local routing table by the branch network equipment; and when the central equipment receives a message to be sent to the branch network equipment, the central equipment encapsulates and forwards the message to be sent according to the GRE tunnel table entry. Based on the same inventive concept, the invention also provides a system and equipment to improve the forwarding efficiency of the central equipment.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a method, system and equipment for message forwarding based on a Generic Routing Encapsulation (GRE) tunnel. Background technique [0002] The Generic Routing Encapsulation (GRE, Generic Routing Encapsulation) protocol is an encapsulation protocol that provides a method of encapsulating a data packet of a network layer protocol (such as IP, IPX, AppleTalk, etc.) in a packet of another protocol. mechanism, and enables the encapsulated message to be transmitted in another network layer protocol (eg, IP). Among them, the channel through which messages are transmitted is called a tunnel (Tunnel). Tunnel is a virtual point-to-point connection that provides a path for transmitting encapsulated data messages. When using Tunnel for message transmission, it is necessary to Data packets are encapsulated and decapsulated at both ends of the tunnel. [0003] Traditional GRE tunnels a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L12/56H04L12/46
CPCH04L12/462H04L12/4633H04L45/00
Inventor 李杰王佩龙袁亚屏曾劼徐庆伟
Owner NEW H3C TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products