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

Data stream byte sliding exclusive-or calculation method

A technology of data flow and calculation method, applied in the direction of calculation, electrical digital data processing, digital data processing components, etc., can solve the problems of providing any help, multiple hardware resources, repeated calculation, etc., to improve capabilities and save hardware Resources and the effect of saving computation

Pending Publication Date: 2022-03-01
TOEC TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the traditional calculation method, the intermediate result of the previous calculation fails to provide any help for the next calculation, and repeated calculations are required, resulting in a large amount of calculations
When hardware is implemented, it is necessary to switch and select from 20 calculation results, which consumes a lot of hardware resources

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 stream byte sliding exclusive-or calculation method
  • Data stream byte sliding exclusive-or calculation method
  • Data stream byte sliding exclusive-or calculation method

Examples

Experimental program
Comparison scheme
Effect test

example

[0022] For example, in the data packet of Internet network communication, when it is necessary to slide byte by byte to find consecutive N bytes, it is necessary to first calculate the bitwise XOR of all bytes of any consecutive N bytes in this data packet result. For any given positive integer N, it may be assumed that N=3 for examples (N is equal to any other positive integer for the same reason, except that there are correspondingly different numbers of calculation sub-modules that are cyclically cascaded). For an 8-bit wide communication input data byte stream, each input data is 8 bits (that is, 1 byte). For example, let’s assume that the byte stream is “1A2B3C4D5E6F…” (hexadecimal, high-order first, the following data defaults to this representation and will not be repeated). It may be assumed that among all the current calculation sub-modules, only the value of the assignment signal of the input of the calculation sub-module 1 is 1 (the assignment signal is cyclically ...

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 relates to a data stream byte sliding exclusive-or calculation method, which relates to the exclusive-or calculation of byte-by-byte sliding on original data in a communication data stream, and comprises the following steps of: firstly, calculating continuous sliding exclusive-or of a plurality of continuous single bytes which are circularly connected in series to obtain an intermediate result of calculation; and a final calculation result is obtained through summarizing calculation based on the intermediate result. The method has the advantages that data stream byte sliding exclusive-or calculation is achieved in a parallel mode, different from traditional software calculation, the method is more suitable for achieving calculation through hardware, the calculation amount is saved, hardware resources are saved, and the data exclusive-or calculation capacity is improved.

Description

technical field [0001] The invention relates to the field of communication, in particular to a method for calculating byte-sliding XOR of a data stream, in particular to calculating the byte-sliding consecutive bytes of a data stream in a communication protocol by bit-wise XOR calculation. Background technique [0002] In the communication data stream, in some application scenarios, it is necessary to perform XOR calculation on the original data byte by byte. The traditional method is to perform XOR calculation for the specified byte length, then slide a byte and then perform a new one. XOR calculation, this method requires a lot of calculations and consumes a lot of computing resources. For example, when it is necessary to calculate the byte-by-byte XOR result of any consecutive 20 bytes in the original data stream, the traditional method is to calculate the calculation results of the 1st to 20th bytes, and then calculate the 2nd to 21st bytes calculation results, and so o...

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): G06F7/57H04L67/10
CPCG06F7/57H04L67/10
Inventor 李斌韩英娜程琳
Owner TOEC TECH
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