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

Method for network processor to copy packet and network processor

A network processor and message technology, applied in the field of communication, can solve the problems of increasing hardware cost, complicating hardware structure, increasing error probability and instability, etc. Effect

Inactive Publication Date: 2008-09-03
HUAWEI TECH CO LTD
View PDF0 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The access to the external memory is the performance bottleneck for the network processor to forward the message; while the memory transfer method is used to copy the message, it is inevitable to read and write the external low-speed memory
At the same time, due to the limitation of the size of the internal registers of the network processor, the copying of a message usually requires multiple moves, which reduces the performance of message copying, and also reduces the processing of the original message and other messages that do not require copying Performance, which in turn affects the forwarding capability of the network processor for various services carried by it;
[0011] The method of using an external dedicated chip for message copying increases the cost of the hardware; at the same time, the increase in the complexity of the board, especially the complexity of the hardware structure, increases the probability of error and instability, which in turn affects message copying The performance of the network processor and the forwarding capability of various services carried by the network processor

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
  • Method for network processor to copy packet and network processor
  • Method for network processor to copy packet and network processor
  • Method for network processor to copy packet and network processor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] see figure 1 , this embodiment provides a method for a network processor to copy a message, the method comprising:

[0033] Step 101: After receiving the message, write the message into the external memory;

[0034] Step 102: When confirming that the message needs to be copied according to the locally configured service, generate the encapsulation header of the message and the encapsulation header of the copied message of the message;

[0035] Wherein, the encapsulation header is generated according to the design of the replication service. For example, during multicast replication, the encapsulation header is the MAC (Media Access Control, Media Access Control) address and VLAN (Virtual Local Area Network, Virtual Local Area Network) information of each multicast node;

[0036] Step 103: Send the encapsulation header of the message, and then read and send the message payload of the message in the external memory;

[0037] Step 104: Send the encapsulation header of th...

Embodiment 2

[0054] see image 3 , this embodiment provides a network processor, the network processor includes:

[0055] The receiving unit is used to receive the message and write the message into the external memory;

[0056] A processing unit, configured to confirm whether the message needs to be copied according to the locally configured service;

[0057] The sending unit is configured to generate the encapsulation header of the message and the encapsulation header of the copied message of the message when the processing unit confirms that the message needs to be copied; send the encapsulation header of the message, and then read and send the encapsulation header in the external memory The message payload of the message; and sending the encapsulation header of the copied message, and then reading and sending the message payload of the message in the external memory.

[0058] Further, see Figure 4 , the network processor also includes:

[0059] The internal cache unit is used to c...

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 method of network processor for copying the message and a network processor, belonging to the communication field. The method includes: after receiving the message, the message is written into the external memory; when determining that the message is needed to be copied, the packaging head of the message and copied message of the message are generated; transmitting the packaging head of the message, then reading and transmitting the message load of the message. The network processor includes: a receiving unit, a processing unit ad a transmitting unit. The invention realizes the aim of copying the message through transmitting the packaging head and the message load for two times, meanwhile no memory copy is processed when processing the message, and no new resource blocks is applied, which advances the performance of copying the message, further strengthening the transmitting capability to bear the operations for the network processor.

Description

technical field [0001] The invention relates to the communication field, in particular to a method for copying messages by a network processor and the network processor. Background technique [0002] With the continuous development of communication networks, great requirements are placed on the forwarding capabilities of network equipment. At present, almost all the network devices used at the access layer and the aggregation layer use a dedicated chip with powerful performance——NP (Network Processor, network processor) as the core unit of message forwarding. Compared with the general-purpose CPU (Central Processing Unit, central processing unit), the network processor has the characteristics of multi-core, co-processing unit, and flexible programming. It is applied to various tasks in the communication field, such as packet processing, protocol analysis, and routing lookup. , voice / data aggregation, firewall and QOS (Quality of Service, quality of service), etc. [0003] ...

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/56H04L12/70
Inventor 牛琨唐恒徐德军吴遥周克成王火青王孝根
Owner HUAWEI 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