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

Checksum calculation method and network processor

A technology of a network processor and a computing unit, which is applied in the checksum calculation method and the field of network processors, can solve the problems of affecting the performance of the network processor, increasing the scheduling process of data in and out of the coprocessor, and increasing the extra overhead of the coprocessor.

Active Publication Date: 2017-03-08
SANECHIPS TECH CO LTD
View PDF7 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, there are many ways to realize the checksum calculation of the network processor. A completely independent checksum calculation coprocessor requires a micro-engine to read out the data to be calculated and send it to the coprocessor for each calculation. After the calculation is completed, the result is returned to the micro-engine. This method saves resources the most. Multiple micro-engines can share a coprocessor, but it will increase the scheduling process of data entering and leaving the coprocessor, increase the extra overhead of the coprocessor and increase the reporting rate. The residence time of the file in the network processor affects the performance of 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
  • Checksum calculation method and network processor
  • Checksum calculation method and network processor
  • Checksum calculation method and network processor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention.

[0021] The basic idea of ​​the embodiment of the present invention is: the multi-threaded micro-engine in the network processor acquires calculation parameters for calculating the checksum according to the received user instruction and the descriptor field in the data storage unit, and sends it to the calculation unit; Then, the calculation unit performs a checksum calculation based on the source data read by the data storage unit and these calculation parameters. At this time, the thread scheduling module schedules the current thread to enter a dormant state; when the calculation is completed, the calculation unit will calculate the obtained Write the checksum of the current thread into the checksum register of the current thread, and instruct the thread scheduling module to s...

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

An embodiment of the invention discloses a checksum calculation method. The method comprises the steps that a multi-thread micro-engine obtains calculation parameters corresponding to a current thread based on a received user instruction and descriptor fields in a data storage unit, and sends the calculation parameters to a calculation unit; the calculation unit performs checksum calculation based on source data read from the data storage unit and the calculation parameters, and a thread scheduling module schedules a current thread to enter a sleep state; when finishing the calculation, the calculation unit writes a calculated checksum in a checksum register of the current thread and instructs the thread scheduling module to schedule the current thread to enter a wakeup state; and when the thread scheduling module schedules the current thread to enter a work state from the wakeup state, the multi-thread micro-engine writes the calculated checksum in a position corresponding to the current thread in the data storage unit. An embodiment of the invention furthermore discloses a network processor.

Description

technical field [0001] The invention relates to the technical field of network processors, in particular to a checksum calculation method and a network processor. Background technique [0002] A checksum is the sum of a set of data items used for verification purposes in the fields of data processing and data communication. It is usually used in communication, especially in long-distance communication to ensure the integrity and correctness of data. There are checksum fields in the IP header, TCP header, and UDP header of a packet. In the process of message forwarding, the correctness of the transmission is ensured by calculating, modifying and verifying the checksum field. Therefore, the calculation of the checksum is a very important function for the network processor and is indispensable. . [0003] At present, there are many ways to realize the checksum calculation of the network processor. A completely independent checksum calculation coprocessor requires a micro-eng...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48G06F11/10
Inventor 胡达
Owner SANECHIPS 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