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

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

Active Publication Date: 2015-12-23
MAIPU COMM TECH CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a data processing method and network equipment, which can solve the problem of low system operation efficiency in the prior art due to the need to copy the data in the hardware buffer to the data area of ​​the software buffer for processing by the upper layer application module The problem

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 processing method and network device
  • Data processing method and network device
  • Data processing method and network device

Examples

Experimental program
Comparison scheme
Effect test

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...

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

Embodiments of the present invention provide a data processing method and a network device, which relate to the technical field of communications and can solve the problem of low system operation efficiency caused by the fact that data in a hardware buffer needs to be copied to a data area of a software buffer for data processing by an upper-layer application module in the prior art. The specific scheme is that: the method comprises: obtaining a first pointer that points to an idle hardware buffer after the network device receives to-be-processed data from a physical interface, wherein the first pointer points to a start address of the hardware buffer; storing the to-be-processed data into the hardware buffer according to the first pointer; obtaining a second pointer according to the first pointer, wherein the second pointer points to a start address of the software buffer corresponding to the hardware buffer, and a data area of the software buffer and the hardware buffer correspond to the same memory area; and performing data processing on the software buffer pointed by the second pointer by the upper-layer application module. The method provided by the embodiment of the present invention is used for data processing.

Description

Technical field [0001] The embodiment of the present invention relates to the field of communication technology, and in particular to a data processing method and network equipment. Background technique [0002] With the rapid development of modern communication networks, people have put forward higher requirements for network equipment, not only need to ensure the reliability and security of data, but also require higher-speed data processing capabilities. Network devices such as routers, switches, firewalls, etc. usually process the received data through software management memory, such as a software buffer buffer applied or released by software. The requirement for high-speed data processing capabilities makes the data processing methods of network devices expand into data processing through hardware-managed memory. [0003] In the prior art, after a network device receives data from an external device, it applies for a hardware buffer through the hardware, and stores the data ...

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): G06F3/06
Inventor 赵刚刚
Owner MAIPU COMM TECH CO LTD
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