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

A method and device for forwarding messages

A technology for forwarding messages and messages, applied in the field of FPGA

Active Publication Date: 2019-03-08
RUN TECH CO LTD BEIJING
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention propose a method and device for forwarding messages, aiming to solve the problem of how to realize flexible message forwarding

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
  • A method and device for forwarding messages
  • A method and device for forwarding messages
  • A method and device for forwarding messages

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] figure 1 It is a schematic flowchart of a method for forwarding a message provided in Embodiment 1 of the present invention. The method can be performed by a device for forwarding messages, and the device for forwarding messages can be a field programmable gate array (Field-Programmable Gate Array, FPGA), and the FPGA includes an access port, a processing module, and an output port, wherein the device Can be implemented by software and / or hardware. Such as figure 1 As shown, the method includes:

[0043] Step 101, obtain network data message through the access port of FPGA, and add identification information in described network data message, and described identification information comprises source port number or IP address information;

[0044] Specifically, the way of adding the identification information can be added on a beat in the message. Preferably, the carrying of the identification information in the network data message includes:

[0045] The preset Nth ...

Embodiment 2

[0062] refer to image 3 , image 3 is a schematic diagram of another method for forwarding packets provided by Embodiment 2 of the present invention. Such as image 3 As shown, after the original network data message is accessed from the access port, the port number information is carried in the first frame of the message. SCH indicates the source port number, and DCH indicates the destination port number. After the message is processed by the data processing module, a Destination port number, update the destination port number of the first shot of the message, enter the data merging module, the merging module merges multiple inputs into one output, judge the destination port number of the message in the data forwarding module, and compare the destination port number with the output interface The packet matching the channel number of the channel is forwarded to the corresponding output interface module, and the port information carried by the output module is stripped and r...

Embodiment 3

[0064] refer to Figure 4 , Figure 4 is a schematic diagram of another method for forwarding packets provided by Embodiment 3 of the present invention.

[0065] The network data message is sent to the forwarding module after being processed by the processing module inside the FPGA. The DCH number of the message will be judged first inside the forwarding module. If the DCH value of the message matches the channel number (ch=0x10) of the output port 1, Then this message is stored in first-in-first-out queue (First-In First-Out, FIFO) 1, if the dch value of message matches with the channel number (ch=0x11) of output 2 ports, then this message is stored in FIFO2, if the dch value of the message matches the channel number of the output port 3 (ch=0x12), then store the message in FIFO3, if the dch value of the message matches the channel number of the output port 4 (ch=0x13) , then store the message into FIFO4. If there is a message inside the FIFO, it will read it and output it...

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 embodiment of the present invention discloses a method and device for forwarding a message, wherein the method includes: obtaining a network data message through an access port of a field programmable gate array FPGA, and adding an identification to the network data message Information; parse the network data message through the processing module of the FPGA, obtain the identification information, and obtain the corresponding destination port number according to a preset algorithm; determine whether the destination port number belongs to the The allocated port number, if the destination port number belongs to the allocated port number, forward the network data packet through the port corresponding to the destination port number. The embodiment of the present invention discloses a method and device for forwarding messages. The port number is used to identify the source input and destination output of each message. The destination port number of the message is obtained by calculating the Hash value of the message and looking up the table. Updating the output port table can flexibly change the destination port number of the message, thereby achieving the purpose of flexible forwarding.

Description

technical field [0001] The embodiment of the present invention relates to the technical field of FPGA, in particular to a method and device for forwarding messages. Background technique [0002] In the access network, a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) is usually used to process network data. After the network data packets are received through the 100GE interface, 40GE interface, or 10GE interface, data processing is performed, and the packet is parsed, filtered, searched, and forwarded, and then output from the 10G interface. [0003] The network data packet forwarding method implemented based on FPGA usually adopts the mode of register configuration. If the register value is configured as 0x13, it means that the message input from channel 1 is output from channel 3; if the register value is configured as 0x23, it means that the message input from channel 2 is output from channel 3. The disadvantage of this method is that once the input ...

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/935H04L12/947H04L12/937H04L49/111
CPCH04L49/25H04L49/253H04L49/3009
Inventor 王江为刘钧锴
Owner RUN TECH CO LTD BEIJING
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