Message forwarding method and device, storage medium and electronic equipment

A forwarding method and message technology, applied in the communication field, can solve problems such as insufficient utilization of CPU resources, inability to distribute two-way messages, increase authentication time, etc., to improve forwarding speed and processing efficiency, and ensure high-performance forwarding , Avoid the effect of read-write lock mechanism

Pending Publication Date: 2021-06-15
BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

NAT gateways are usually deployed in clusters, and for bidirectional traffic loaded on a certain NAT, related technologies store all session tables in the memory of the CPU, all cores of the CPU can access, and randomly select a thread to implement routing Conversion and traffic forwarding, and the two-way packets of the same routing link cannot be distributed to the same processing thread. Each thread nee

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 and device, storage medium and electronic equipment
  • Message forwarding method and device, storage medium and electronic equipment
  • Message forwarding method and device, storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] The method embodiment provided by Embodiment 1 of the present invention may be executed in a gateway server (such as a NAT gateway), a router, a switch, or a similar packet forwarding device. Take running on the gateway server as an example, figure 1 It is a block diagram of the hardware structure of a gateway server in the embodiment of the present invention. Such as figure 1 As shown, the gateway server can include one or more ( figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the above-mentioned gateway server also A transmission device 106 for communication functions as well as input and output devices 108 may be included. Those of ordinary skill in the art can understand that, figure 1 The shown structure is only for illustration, and it does not limit the structure of the ...

Embodiment 2

[0064] In this embodiment, a packet forwarding device is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has been explained will not be repeated here. As used below, the term "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

[0065] Figure 7 is a structural block diagram of a message forwarding device according to an embodiment of the present invention, such as Figure 7 As shown, the device includes: a first receiving module 70, an analysis module 72, a search module 74, and a forwarding module 76, wherein,

[0066] The first receiving module 70 is configured to receive the message to be forwarded;

[0067] Parsing module 72, for parsing the data flow of messag...

Embodiment 3

[0079] The embodiment of the present application also provides an electronic device, Figure 8 is a structural diagram of an electronic device according to an embodiment of the present invention, such as Figure 8As shown, it includes a processor 81, a communication interface 82, a memory 83 and a communication bus 84, wherein the processor 81, the communication interface 82, and the memory 83 complete mutual communication through the communication bus 84, and the memory 83 is used to store computer programs; The processor 81 is used to implement the following steps when executing the program stored on the memory 83: receiving the message to be forwarded; analyzing the data flow direction of the message; Perform hash calculation to determine the processing thread of the message; if the data flow direction is the inflow direction, according to the mapping relationship between the destination port and the processing thread, determine the processing thread corresponding to the ou...

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 discloses a message forwarding method and device, a storage medium and electronic equipment, and belongs to the field of communication. The method comprises the following steps: receiving a message to be forwarded; analyzing the data flow direction of the message; if the data flow direction is an outflow direction, performing hash calculation on meta-information contained in the message to determine a processing thread of the message; if the data flow direction is an inflow direction, determining a processing thread corresponding to the data flow where the message is located in an outflow direction according to a mapping relationship between a destination port and the processing thread, each processing thread being bound with a processor core; and forwarding the message on the processing thread by adopting a preset session table. Through application of the message forwarding method and device, the technical problem of low message forwarding efficiency of a multi-core CPU in related technologies is solved, and the message forwarding speed and the message processing efficiency are improved.

Description

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

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): G06F9/50H04L12/741H04L45/74
CPCG06F9/505H04L45/74
Inventor 李澍桐
Owner BEIJING KINGSOFT CLOUD NETWORK 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