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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com