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

Method and device for forwarding message

A technology for forwarding messages and messages, which is applied in the field of communication, and can solve the problems of consuming system resources and low rate of message forwarding and processing

Inactive Publication Date: 2015-07-22
COMBA TELECOM SYST CHINA LTD +3
View PDF4 Cites 41 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Copying is a process that consumes a lot of system resources, resulting in a low processing rate for packet 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
  • Method and device for forwarding message
  • Method and device for forwarding message

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0049] figure 1 , is a flow chart of a method for forwarding a packet provided by an embodiment of the present invention. Such as figure 1 As shown, the method may include:

[0050] S101. The receiving process in the kernel mode stores the packet received by the network card in the shared memory and notifies the process in the user mode.

[0051] S102. After the user state process maps the physical address of the shared memory to the...

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 method and device for forwarding a message. The method includes: a kernel-state receiving process stores the message received by a network card in a sharing internal memory and notifies a user-state process; the user-state process maps the physical address of the sharing internal memory to the virtual address of the user-state process and then extracts the message from the sharing internal memory and processes the message; the user-state process stores the processed message in the shearing internal memory and notifies a kernel-state transmitting process; the kernel-state transmitting process transmits the processed message through the corresponding network card. By the method, copying of the message from kernel space to application space is avoided, message forwarding speed is increased, and system resource utilization rate can be increased.

Description

technical field [0001] The invention relates to the communication field, in particular to a method and device for forwarding messages. Background technique [0002] In the field of network communication technology, it is often necessary to receive packets from the network, and then process the packets accordingly according to system functions. After the processing is completed, for the intermediate device, the message needs to be forwarded from another port. This involves the message forwarding technology among multiple network cards in the same system. In the process of researching the existing message forwarding technology, it is found that the application program implementation method based on socket is adopted. The method is based on the existing operating system platform, and uses socket technology in user space to complete the process of receiving, processing and forwarding network messages. In the whole process, before the network message reaches the application pro...

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 Applications(China)
IPC IPC(8): H04L12/741H04L45/74
Inventor 赵剑川贾克明
Owner COMBA TELECOM SYST CHINA 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