Data processing method and network device
A technology of network equipment and data processing, which is applied in the field of communication and can solve problems such as low system operation efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] The embodiment of the present invention provides a data processing method, see figure 1 , The method can include:
[0045] 101. After receiving the data to be processed from the physical interface, the network device obtains a first pointer to an idle hardware buffer, and the address pointed to by the first pointer is the starting address of the hardware buffer.
[0046] Among them, the network device may be various devices in a communication network such as routers, switches, and firewalls. Contemporary digital communication networks usually exchange data in the form of data packets. The data to be processed received by network devices from other external devices in the communication network through physical interfaces are also in the form of data packets. After receiving the data to be processed from the physical interface, the network device can obtain the first pointer to the starting address of the free hardware buffer, so as to store the data to be processed in the har...
Embodiment 2
[0066] The embodiment of the present invention provides a data processing method. For a flowchart of the method, see figure 2 with image 3 , Can include:
[0067] 201. The network device stores a second pointer to the start address of the software buffer in a software buffer, and the start storage address of the second pointer is separated from the address pointed to by the first pointer by a preset number of bytes.
[0068] In the embodiment of the present invention, the network device may store a second pointer to the start address of the software buffer in the software buffer through the initialization step, and the start storage address of the second pointer is separated from the address pointed to by the first pointer by a preset byte number. Wherein, the second memory area storing the second pointer and the first memory area as the data area are in front and back relative positions, and the size of the memory space occupied by the second pointer and the size of the preset n...
Embodiment 3
[0099] The embodiment of the present invention provides a network device 300, see Figure 5 , The network device 300 may include:
[0100] The hardware buffer management unit 301 is configured to allocate a first pointer to the free hardware buffer to the buffer processing unit 302 according to the application of the buffer processing unit 302, and the address pointed to by the first pointer is the starting address of the hardware buffer;
[0101] The buffer processing unit 302 is configured to receive the data to be processed from the physical interface and store the data to be processed in the hardware buffer pointed to by the first pointer; and is used to obtain the second pointer according to the first pointer, and the address pointed to by the second pointer is the same as the hardware buffer. The start address of the software buffer corresponding to the buffer, the data area of the software buffer and the hardware buffer correspond to the same memory area; the software buffe...
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