Message receiving method and network device

A technology for network equipment and message reception, applied in data exchange networks, digital transmission systems, electrical components, etc., can solve problems such as occupying CPU resources and affecting message receiving efficiency, and achieve the effect of improving receiving efficiency and saving CPU resources

Active Publication Date: 2017-08-15
HUAWEI TECH CO LTD
View PDF4 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] As can be seen from the above message receiving method, in order to continue to execute the main processing process from the interrupted point after the message is received, the CPU needs to save the scene of the main processing pr

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 receiving method and network device
  • Message receiving method and network device
  • Message receiving method and network device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0087] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0088] Interruption: In the current main processing process, the system has a situation that must be dealt with immediately. At this time, the CPU temporarily suspends the main processing process and processes this new situation. The process is called interruption.

[0089] figure 1 shows a general interrupt handling flow diagram, from figure 1 ...

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 invention relates to a technology of message processing and particularly relates to a message receiving method and a network device. The method is applied to a multi-core CPU. The multi-core CPU comprises a master core and a plurality of slave cores. The master core is used for determining an operation state of each slave core of the plurality of slave cores and maps the operation state of each slave core through a bit map. The method comprises the steps that in the plurality of slave cores, a first slave core operating in a kernel mode determines whether an interruption signal from an interruption controller is a packet receiving interruption signal or not; and if the interruption signal is the packet receiving interruption signal, the first salve core writes a memory address of a message into a shared memory shared by a user mode and the kernel mode in an interruption process, thereby enabling the address of the message to be seen by the slave kernels in the kernel mode and the user mode, wherein the steps performed by the first slave core are performed based on a preset special register, and the preset special register is the register which is only used by the slave core in the kernel state. According to the message receiving method and the network device provided by the embodiment of the invention, the message receiving efficiency can be improved.

Description

technical field [0001] The embodiment of the present invention relates to a message processing technology, in particular to a message receiving method and network equipment. Background technique [0002] With the rapid development of network technology, there are more and more network applications, and the scale of traffic is also increasing. The traditional 10G router or firewall is gradually replaced by TB (TrillionByte, megabyte) level equipment. How to quickly collect and store large-volume data for subsequent business processing has become an important research direction today. [0003] In the prior art, the conventional message receiving method is mostly based on interrupt receiving, and the specific process includes: after the network interface receives the message, the interrupt controller sends an interrupt request signal to the CPU (Central Processing Unit, central processing unit), and the CPU After receiving the interrupt request signal, suspend the current main...

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/861
CPCH04L49/9073
Inventor 刘恒樊辉侯承舜
Owner HUAWEI 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