Data packet receiving method and device, terminal and storage medium
A receiving method and data packet technology, applied in the Internet field, can solve the problem of low efficiency of data packet reception
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] Such as figure 1 Shown, in an embodiment of described data packet receiving method, comprise steps:
[0049] S100. Determine the target reading time according to the current polling time, and read the data packet from the buffer according to the target reading time;
[0050] S200. Acquire read information during the process of reading data packets from the buffer, and update the polling time according to the read information;
[0051] Wherein, the reading information includes waiting times and reading times, the reading times are updated when trying to read data packets, and the waiting times are updated when no data packets are read.
[0052] Specifically, the terminal receives the data packet through the network card, and the network card stores the data packet in the buffer after receiving the data packet from the network. process. Such as figure 2 As shown, in the prior art, each time the network card receives a data packet, the DMA engine of the network card fir...
Embodiment 2
[0087] Based on the above embodiments, the present invention also provides a corresponding data packet receiving device, such as Figure 5 As shown, the data packet receiving device includes:
[0088] A packet receiving module, the packet receiving module is used to determine the target reading time according to the current polling time, and read the data packet from the buffer according to the target reading time, specifically as described in Embodiment 1;
[0089] An update module, the update module is used to acquire read information in the process of reading data packets from the buffer, and update the polling time according to the read information, wherein the read information It includes waiting times and reading times. The reading times are updated when trying to read data packets, and the waiting times are updated when no data packets are read. The details are as described in the first embodiment.
Embodiment 3
[0091] Based on the above embodiments, the present invention also provides a corresponding terminal, such as Figure 6 As shown, the terminal includes a processor 10 and a memory 20 . Figure 6 Only some components of the terminal are shown, but it should be understood that implementation of all illustrated components is not required, and more or fewer components may be implemented instead.
[0092] The storage 20 may be an internal storage unit of the terminal in some embodiments, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk equipped on the terminal, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD ) card, flash memory card (Flash Card), etc. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various ...
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