Packet receiving method and device of network port of equipment internal processor

A technology of internal processors and devices, applied in the field of communications, can solve problems such as performance bottlenecks in packet receiving, and achieve the effect of improving security, improving performance, and solving performance bottlenecks

Inactive Publication Date: 2017-01-25
ZTE CORP
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The technical problem to be solved by the present invention is to provide a method and device for receiving packets at t

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
  • Packet receiving method and device of network port of equipment internal processor
  • Packet receiving method and device of network port of equipment internal processor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] This embodiment provides a packet receiving device for the network port of the internal processor of the device, which at least includes the following modules:

[0037] The packet receiving hardware module delivers the received data packet message to the corresponding VCPU queue according to the pre-configuration;

[0038] Specifically, the aforementioned packet receiving hardware module is a processor network port on the master control board, and the network port receives service data packets sent from each line card. Wherein, the processor chip in the packet receiving device must be multi-core and support hardware packet receiving.

[0039] The packet receiving thread module receives the data packet message in the bound VCPU queue, and determines the priority of the data packet message according to the Ethernet type of the received data packet message, according to the pre-configured data packet message The corresponding relationship between the priority and the prio...

Embodiment 2

[0055] This embodiment provides a method for receiving packets at the network port of the internal processor of the device. The method mainly includes the following operations:

[0056] Deliver the received data packet message to the corresponding VCPU queue according to the pre-configuration;

[0057] According to the Ethernet type of the data packet message in the VCPU queue, determine the priority of the data packet message, according to the corresponding relationship between the priority of the pre-configured data packet message and the priority of the public queue, the data packet message Delivered to the corresponding public queue;

[0058] Each service reads the data packet message in each public queue according to the priority order of each public queue.

[0059] On the basis of the above method, the corresponding relationship between received data packets and VCPU queues may also be pre-configured. In addition, a specified number of public queues can also be establi...

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 invention discloses a packet receiving method and device of the network port of an equipment internal processor and relates to communication technology. The device comprises a packet receiving hardware module, a packet receiving thread module and a business module, wherein the packet receiving hardware module delivers received data packet messages to corresponding VCPU queues according to preset configuration; the packet receiving thread module receives the data packet messages binding to the VCPU queues, determines the priority of the data packet messages according to the Ethernet types of the received data packet messages, and delivers the received data packet messages to corresponding public queues according to the preset correspondence of the priority of the data packet messages and the priority of the public queues; the business module reads the data packet messages in the public queues according to priority of the public queues. By the packet receiving method and device, the performance bottleneck of packet receiving in the prior art is solved, and important messages can be processed first by queue priority.

Description

technical field [0001] The invention relates to communication technology, in particular to a method and device for receiving packets at a network port of a processor inside a device. Background technique [0002] Currently, the general method for sending and receiving messages on the internal network port of the device is to create a socket on the network port through the packet receiving thread, and then guard the socket to receive packets. After receiving various types of messages, they are not distinguished and stored in a cache The queue is for upper-level business to read; this packet receiving mode brings the following problems: [0003] 1. Packets must be processed by the kernel protocol stack and share CPU resources, resulting in relatively low packet receiving performance; [0004] 2. There is no distinction between message types, resulting in indiscriminate packet loss when a large number of messages flood in at the network port, and the loss of some keep-alive me...

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): H04L12/863H04L12/851
CPCH04L47/24H04L47/6215
Inventor 何清
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products