Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for forwarding message, and method and device for generating table entry

A technology for forwarding messages and entries, applied in the field of communications, and can solve problems such as large storage space

Active Publication Date: 2014-09-17
XFUSION DIGITAL TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present invention provides a network address search method and device, which can solve the problem that for different tunneling protocols, different software codes for extracting factors for hash operations need to be developed and occupy more storage space

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
  • Method for forwarding message, and method and device for generating table entry
  • Method for forwarding message, and method and device for generating table entry
  • Method for forwarding message, and method and device for generating table entry

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] The embodiment of the present invention provides a method for forwarding a message, which can be used in a scenario where a hash operation is required. For example, when a router forwards an IP packet whose tunneling protocol is the GRE protocol, according to the packet forwarding method provided in the embodiment of the present invention, a hash factor can be obtained from the IP packet, and then a hash operation can be performed. see figure 1 , figure 1 It is a flowchart of a method for forwarding a message provided by an embodiment of the present invention, and the method includes:

[0036] 101: Receive an IP packet, where the IP packet includes a public network IP header and a tunnel protocol header. The Internet Protocol packet contains a Tunneling Protocol Identification field. The tunnel protocol identification field is used to identify the tunnel protocol of the Internet protocol packet.

[0037] During specific implementation, the Internet Protocol of the I...

Embodiment 2

[0083] An embodiment of the present invention provides a device for forwarding messages, which can be used in scenarios where hash operations are required. For example, when a router forwards an IP packet whose tunneling protocol is the GRE protocol, the device for forwarding a packet according to the embodiment of the present invention can obtain a hash factor from the IP packet, and then perform a hash operation. see figure 2 , figure 2 It is a schematic diagram of a device for forwarding a message provided by an embodiment of the present invention, and the device includes:

[0084] The receiver 201 is configured to receive an IP packet, and the IP packet includes a public network IP header and a tunnel protocol header. The Internet Protocol packet contains a Tunneling Protocol Identification field. The tunnel protocol identification field is used to identify the tunnel protocol of the Internet protocol packet.

[0085] During specific implementation, the Internet Prot...

Embodiment 3

[0132] The embodiment of the present invention provides a method for generating table entries, which can be used in scenarios where hash operations are required. For example, when a router forwards an IP packet whose tunneling protocol is the GRE protocol, according to the method for generating an entry provided by the embodiment of the present invention, a hash factor may be obtained from the IP packet, and then a hash operation may be performed. see image 3 , image 3 It is a flowchart of a method for generating entries provided by an embodiment of the present invention, and the method includes:

[0133] 301: Generate an entry of the hash control table, the entry includes a tunnel protocol judgment field and a hash factor extraction field, and the tunnel protocol judgment field is used to judge whether the tunnel protocol identification field of the Internet Protocol packet matches the tunnel protocol judgment field , the IP packet includes a public network IP header and ...

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

An embodiment of the invention provides a method for forwarding a message. The method comprises: receiving an Internet protocol packet, the Internet protocol packet comprising an Internet protocol header of a public network, a tunnel protocol header and a tunnel protocol identifier field; searching for a first table entry in which a tunnel protocol judgment field is matched with the tunnel protocol identifier field in a Hash control table according to the tunnel protocol identifier field; extracting a Hash factor from the Internet protocol packet according to a Hash factor extraction field of the first table entry; performing a Hash operation according to the Hash factor; and determining a physical output interface used for forwarding the Internet protocol packet according to a result of the Hash operation. Moreover, also provided are an apparatus for forwarding a message, and a method for generating a table entry and an apparatus for generating a table entry. Through the method for forwarding a message, the method for generating a table entry, the apparatus for forwarding a message and the apparatus for generating a table entry, the technical problem that software codes occupy a large storage space because different software codes used for extracting a factor for performing a Hash operation are required to be developed for different tunnel protocols can be solved.

Description

technical field [0001] The embodiment of the present invention relates to communication technology, and in particular to a method for forwarding a message, a method and a device for generating an entry. Background technique [0002] Tunneling protocols have been widely used in the communication field, and typical tunneling protocols include Generic Routing Encapsulation (Generic Routing Encapsulation, GRE) protocol, Layer 2 Tunneling Protocol (Layer 2 Tunneling Protocol, L2TP) and so on. Corresponding tunnel protocol packets include GRE protocol packets, L2TP packets, and the like. The tunnel protocol packet includes a tunnel protocol header and data. The tunnel protocol packet can be encapsulated into an Internet Protocol packet by adding an Internet Protocol (Internet Protocol) header. Internet Protocol packets may be transmitted on the Internet. [0003] In order to realize load sharing, before forwarding the IP packet, the five-tuple in the IP header can be used as 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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/701H04L12/743
CPCH04L12/4633
Inventor 田小辉
Owner XFUSION DIGITAL TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products