Data packet receiving method and device, electronic equipment and storage medium

A receiving method and data packet technology, applied in the field of communication, can solve problems such as other services cannot be scheduled normally, seize CPU resources, etc., and achieve the effect of improving reliability and solving equipment failures

Pending Publication Date: 2022-04-19
RUIJIE NETWORKS CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] When receiving a large number of packets, the packet receiving driver will be in the polling state of the packet receiving work queue, which belongs to the soft interrupt level, and will seize CPU resources, causing other services to fail to be scheduled normally.

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
  • Data packet receiving method and device, electronic equipment and storage medium
  • Data packet receiving method and device, electronic equipment and storage medium
  • Data packet receiving method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] 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 making creative efforts belong to the protection scope of the present invention.

[0048] figure 1 It is a schematic flow chart of the data packet receiving method provided by the embodiment of the present invention, such as figure 1 As shown, the method includes:

[0049] Step S11, responding to the packet receiving interrupt event and closing the packet receiving interrupt;

[0050] Specifically, in the management netw...

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 provides a data packet receiving method and device, electronic equipment and a storage medium. The method comprises the steps that after a packet receiving interruption event is responded and packet receiving interruption is closed, whether the packet receiving number of data packets received last time by a packet receiving work queue is larger than a first preset number threshold value or not and packet receiving time consumption is smaller than first preset duration or not is judged; if yes, dormancy is carried out for a second preset duration; and if not, starting the packet receiving work queue to receive the data packets, and recording the packet receiving quantity and packet receiving time consumption of the data packets received this time. According to the data packet receiving method provided by the embodiment of the invention, the problem of equipment failure caused by network data flooding is effectively solved by optimizing a network port driving NAPI packet receiving mechanism, and the reliability of the equipment is improved.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of communications, and in particular to a data packet receiving method, device, electronic equipment, and storage medium. Background technique [0002] In the prior art, the Linux system adopts the NAPI (New API) mechanism when receiving data packets. This mechanism combines the interrupt mode with the polling mode. The advantage of the interrupt is that the response is timely. More CPU time; the disadvantage is that when the amount of data is large, too many interrupts will be generated, and each interrupt will consume a lot of CPU time, resulting in a higher efficiency than polling. The polling method is opposite to the interrupt method. It is more suitable for processing a large amount of data, because each polling does not need to consume too much CPU time; the disadvantage is that it takes up CPU time even when only a small amount of data is received or no data is received. NAPI i...

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/54G06F9/50
CPCG06F9/546G06F9/5038G06F2209/548
Inventor 陈冬冬
Owner RUIJIE NETWORKS 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