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

Method and device for processing network data reception

A processing method and a technology of a processing device, which are applied in the field of communication, can solve problems such as interruption livelock or packet loss, and achieve the effects of avoiding packet loss and reducing interruption overhead

Active Publication Date: 2019-02-12
BEIJING SMARTCHIP MICROELECTRONICS TECH COMPANY +3
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In view of this, the technical problem to be solved by the present invention is how to provide a processing method and device for network data reception, so as to solve the problem that the existing interruption mechanism is prone to interruption livelock or packet loss when the network traffic is large

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 processing network data reception
  • Method and device for processing network data reception
  • Method and device for processing network data reception

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] figure 1 A flow chart showing a processing method for receiving network data provided by an embodiment of the present invention, as shown in figure 1 As shown, the method includes:

[0057] Step S1, obtaining the identification of the network device in the polling queue, and obtaining the number of data packets corresponding to the network device according to the identification of the network device.

[0058] Specifically, the network device is a peripheral device connected to the CPU, which may be a network card or the like. When the first packet arrives at the network device, the network device sends an interrupt request to the CPU. IDs of multiple network devices that have received data packets are stored in the polling queue.

[0059] The network device stores the received data packets in a register corresponding to the network device, and when the CPU obtains the identifier of the network device in the polling queue, it obtains the number of data packets corresp...

Embodiment 2

[0077] figure 2 A flow chart showing a method for processing network data reception provided by another embodiment of the present invention, in figure 2 neutralize figure 1 Steps with the same reference numbers are the same as figure 1 The same text descriptions are applicable and will not be repeated here. This embodiment further limits Embodiment 1.

[0078] Such as figure 2 As shown, before step S1 in this embodiment, it may include:

[0079] Step S03, acquiring the number of identifiers of the network devices in the polling queue;

[0080] Step S04, determining the preset value P according to the number of identifiers of the network devices in the polling queue.

[0081] Specifically, it can be set that the preset value P is smaller if the number of identifiers of the network devices in the polling queue is larger, so as to ensure that all network devices in the polling queue are accessed once within a certain time interval.

[0082] More specifically, step S03...

Embodiment 3

[0086] image 3 A flow chart showing a processing method for receiving network data provided by another embodiment of the present invention, in image 3 neutralize figure 1 Steps with the same reference numbers are the same as figure 1 The same text descriptions are applicable and will not be repeated here. This embodiment further defines step S1 of the first embodiment. Such as image 3 As shown, step S1 in this embodiment may specifically include:

[0087] Step S101, according to the identifier of the network device in the polling queue, obtain the communication flow of each network device in the polling queue;

[0088] Step S102, calculating a preset time according to the communication traffic of each network device in the polling queue;

[0089] Step S103, according to the preset time, obtain the identifier of the network device in the polling queue, and obtain the number of data packets corresponding to the network device according to the identifier of the network...

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 present invention relates to a method and apparatus for processing network data receiving, and a storage medium. The method comprises: acquiring an identifier of a network device in a polling queue, and acquiring the number of data packets corresponding to the network device according to the identifier of the network device; determining whether the number of data packets corresponding to the network device is greater than a preset number; and if the number of data packets corresponding to the network device is greater than the preset number, processing the preset number of data packets in the data packets corresponding to the network device. By using a polling processing approach, the interrupt overheads are reduced, and the packet loss is avoided by setting the number of data packets processed once.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a processing method and device for receiving network data. Background technique [0002] At present, a central processing unit (Central Processing Unit, abbreviation: CPU) usually uses an interrupt mechanism to process network data reception. [0003] Existing interrupt mechanism is, after network card receives data packet, network card can send interrupt request to CPU, after CPU receives the interrupt request that network card sends, according to concrete interrupt setting, judge whether to call the interrupt processing program in the driver, If it is in the interrupt state, the interrupt handler in the network card driver will be called to receive the data packet, that is, the packet will be received completely by the interrupt method. In the case of low data traffic load, this interrupt processing mechanism reduces the processing time delay and greatly improves the ut...

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/863H04L12/861
CPCH04L47/50H04L49/9073
Inventor 张强靳丹马志程杨波杨鹏周子冠宋彦斌赵冲
Owner BEIJING SMARTCHIP MICROELECTRONICS TECH COMPANY
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