CN112953679B - Data transmission coprocessor control method, device, medium, terminal and system in deterministic network - Google Patents
Data transmission coprocessor control method, device, medium, terminal and system in deterministic network Download PDFInfo
- Publication number
- CN112953679B CN112953679B CN202110175099.9A CN202110175099A CN112953679B CN 112953679 B CN112953679 B CN 112953679B CN 202110175099 A CN202110175099 A CN 202110175099A CN 112953679 B CN112953679 B CN 112953679B
- Authority
- CN
- China
- Prior art keywords
- data
- crc
- network
- sending
- serial number
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 91
- 238000000034 method Methods 0.000 title claims abstract description 79
- 238000004364 calculation method Methods 0.000 claims abstract description 35
- 230000008569 process Effects 0.000 claims abstract description 25
- 230000001360 synchronised effect Effects 0.000 claims abstract description 10
- 238000012795 verification Methods 0.000 claims description 55
- 230000006870 function Effects 0.000 claims description 17
- 238000012545 processing Methods 0.000 claims description 14
- 238000007689 inspection Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 6
- 238000000605 extraction Methods 0.000 claims description 3
- 230000002159 abnormal effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 6
- 238000005538 encapsulation Methods 0.000 description 4
- 230000007547 defect Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 2
- 125000004122 cyclic group Chemical group 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000002085 persistent effect Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013524 data verification Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000008092 positive effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/126—Applying verification of the received information the source of the received data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/164—Adaptation or special uses of UDP protocol
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2463/00—Additional details relating to network architectures or network communication protocols for network security covered by H04L63/00
- H04L2463/121—Timestamp
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明属于数据传输网络技术领域,尤其涉及一种确定性网络中数据传输协处理器控制方法、系统及应用。The invention belongs to the technical field of data transmission network, and in particular relates to a data transmission coprocessor control method, system and application in a deterministic network.
背景技术Background technique
目前:在传统数据传输网络中,UDP层与IP层都有头部的校验和内容为数据做保障,但是校验和的生成方式简单,仅仅用于数据是否有在传输过程中出现错误,并不能探测出数据在传输过程中被篡改的问题。而在MAC层中,会进行数据的循环冗余校验,对已经封装到MAC的数据进行一次循环冗余校验,作为数据的正确性依据。以上通用协议层的数据检错方式已被普罗大众知晓,仅能应对于数据在传输过程中出错的情况,对于数据在传输过程中被恶意篡改的情况是无能为力的。At present: In the traditional data transmission network, both the UDP layer and the IP layer have the checksum content of the header to guarantee the data, but the checksum generation method is simple, and it is only used for whether there is an error in the data transmission process. It cannot detect the problem of data tampering during transmission. In the MAC layer, a data cyclic redundancy check is performed, and a cyclic redundancy check is performed on the data that has been encapsulated into the MAC as the basis for the correctness of the data. The data error detection method of the above general protocol layer has been known to the general public, and it can only deal with data errors during transmission, and is powerless against malicious tampering of data during transmission.
另外地,针对时间触发以太网中的时间触发业务也只有一项接收检查功能,检查接收到的MAC帧是否在期待的时间到达接收端。然而这两个功能并非在同一个模块中进行实现,两个模块之间由于传输数据的长度存在一定的时间差并且双方的时间记录点在收发两方并非是对称的,这样会导致统计的传输时间无法真实且准确,最终并不能精确地判断数据是否在规定时间到达;在数据来源检查方面,除了对传输数据进行加密以外仍没有一个相对完整的方案进行校验,无法在数据的接收端对来自于网络的数据进行源头确认,识别当前收到的数据是来源于网络内部成员或是来源于网络外部的攻击人员。In addition, there is only one reception check function for the time-triggered business in the time-triggered Ethernet, which checks whether the received MAC frame arrives at the receiving end at the expected time. However, these two functions are not implemented in the same module. There is a certain time difference between the two modules due to the length of the transmitted data and the time recording points of both parties are not symmetrical between the sending and receiving sides, which will lead to statistical transmission time. It cannot be true and accurate, and ultimately cannot accurately judge whether the data arrives at the specified time; in terms of data source inspection, there is still no relatively complete solution for verification except for encrypting the transmitted data, and it is impossible to verify the data from the data at the receiving end. Verify the source of network data to identify whether the currently received data comes from internal members of the network or from attackers outside the network.
随着网络技术高度发达,把网络技术应用到工业控制中也日渐增多,针对航空航天场景下的工业控制网络目前最炙手可热的解决方案就是时间触发以太网。而在航空航天中进行数据传输时会存在有单粒子翻转效应,会导致数据在传输过程中发生不可预估的错误,最终导致接收端无法正确收到发送端期望其收到的数据。针对此情况,需要对网络中传输的数据进行数据正确性的检测。同时由于网络中会存在多种不同类型、发送规则不相同的,当数据业务规划太稠密时会产生拥堵的情况,自然会存在数据在网络中由于拥堵的情况而无法在规定的时间到达接收端。针对此情况,需要对网络中传输的数据进行数据实时性的检测。在某些特定情况下,可能存在有使用方式的错误或者存在有蓄意破坏的情景,导致有设备错误地向目标设备发送误导性的数据导致目标接收端发生错误的响应动作,最终导致网络发生不可知的错误并最终影响了整体网络的工作。针对此情况,需要对网络中传输的数据进行数据来源正确性的检测。With the highly developed network technology, the application of network technology to industrial control is increasing day by day. The most popular solution for industrial control network in aerospace scenarios is time-triggered Ethernet. However, there will be a single event flip effect in data transmission in aerospace, which will cause unpredictable errors in the data transmission process, and eventually cause the receiving end to fail to correctly receive the data that the sending end expects to receive. In view of this situation, it is necessary to check the correctness of the data transmitted in the network. At the same time, because there are many different types and different sending rules in the network, when the data service plan is too dense, congestion will occur, and naturally there will be data that cannot reach the receiving end within the specified time due to congestion in the network . In view of this situation, it is necessary to detect the real-time data of the data transmitted in the network. In some specific cases, there may be an error in the way of use or a situation of deliberate sabotage, causing a device to mistakenly send misleading data to the target device, causing the target receiving end to respond incorrectly, and eventually causing the network to fail. Known errors and ultimately affect the work of the overall network. For this situation, it is necessary to check the correctness of the data source for the data transmitted in the network.
以上问题的解决都需要网络的端节点能够有一种同时能够对数据的正确性、实时性、来源正确性进行检测的功能,因此需要有适用于当前网络数据报文的带载荷的检测方式与数据帧结构。The solution to the above problems requires that the end nodes of the network have a function that can simultaneously detect the correctness, real-timeness, and source correctness of the data. Therefore, it is necessary to have a load-bearing detection method and data frame structure.
通过上述分析,现有技术存在的问题及缺陷为:Through the above analysis, the problems and defects in the prior art are:
(1)传统以太网中对于数据传输过程的保护方法有UDP/IP中的校验和方法和MAC层中的CRC校验方法,由于网络发展的时间较长,导致传统以太网中各层次的校验方法已经广为传播。(1) The protection methods for the data transmission process in the traditional Ethernet include the checksum method in UDP/IP and the CRC method in the MAC layer. Due to the long development of the network, the traditional Ethernet at each level Calibration methods have been widely disseminated.
(2)与传统接收检查功能中带来的时间不准确问题。(2) The problem of inaccurate time caused by the traditional reception check function.
(3)传统MAC中生成CRC时使用的数据位宽为8bit,在传输数据时速率较慢。(3) The data bit width used when generating CRC in traditional MAC is 8 bits, and the rate is relatively slow when transmitting data.
解决以上问题及缺陷的难度为:The difficulty of solving the above problems and defects is:
(1)针对广泛使用的现有以太网的传输方式,如何突破传统方法的局限性,发明一种全新的对数据校验的方法,同时通过多种方式对传输的数据进行校验与保护,是一个存在的问题。(1) For the widely used existing Ethernet transmission methods, how to break through the limitations of traditional methods, invent a new method for data verification, and at the same time verify and protect the transmitted data in various ways, is an existential problem.
(2)在同步网络中需要克服对数据收发时间的统计问题,由于数据传输的长度不一,也同时存在多路数据同时传输的现象,如何能够正确地对传输的数据作出正确的传输时间统计是一个存在的技术问题。(2) In a synchronous network, it is necessary to overcome the statistical problem of data sending and receiving time. Due to the different lengths of data transmission, there is also the phenomenon of simultaneous multi-channel data transmission. How to correctly make correct transmission time statistics for the transmitted data It is a technical problem that exists.
(3)传统MAC中,发送与接收时对数据执行CRC计算时需要先进行位宽转换,再执行CRC校验码的生成,如此一来传输数据的时间将会成倍增长,如何在高位宽状态下进行CRC校验码的计算目前也是学术界的问题。(3) In traditional MAC, when performing CRC calculation on data when sending and receiving, it is necessary to perform bit width conversion first, and then perform CRC check code generation, so that the time for transmitting data will increase exponentially. The calculation of the CRC check code in the state is also a problem in the academic circles.
解决以上问题及缺陷的意义为:The significance of solving the above problems and defects is:
(1)在专用确定性网络中通过定制私有协议的方式,对传输的数据进行多层保护,为未来公有网络的传输方式发展提供新的思路与解决方案。(1) In the dedicated deterministic network, by customizing the private protocol, multi-layer protection is carried out for the transmitted data, providing new ideas and solutions for the development of the transmission mode of the public network in the future.
(2)对于同一个数据的传输时延统计工作是非常具有意义的,这是因为确定性网络中对数据的实时性有着严苛的要求,需要数据的发送时间点确定,发送过程中的时间花销确定,接收的时间点也要确定,在充分把握数据传输的时间开销之后,能够更好地管控整体网络的带宽利用率,传输更多地数据。(2) It is very meaningful to count the transmission delay of the same data. This is because the deterministic network has strict requirements on the real-time performance of data. Once the cost is determined, the receiving time point must also be determined. After fully grasping the time cost of data transmission, the bandwidth utilization rate of the overall network can be better controlled and more data can be transmitted.
(3)传统的CRC生成方法的处理速率太慢,在数据传输的过程中会成为瓶颈,为了不在本模块中产生不必要的时间延迟影响,吸收MAC中CRC生成的弊端,使用32bit位宽进行CRC计算,配合模块外侧数据收发的32比特总线,达到数据处理速率的最优化。(3) The processing rate of the traditional CRC generation method is too slow, which will become a bottleneck in the process of data transmission. In order not to cause unnecessary time delay in this module and absorb the disadvantages of CRC generation in MAC, use 32bit bit width for CRC calculation, combined with the 32-bit bus for data transmission and reception outside the module, achieves the optimization of data processing rate.
发明内容Contents of the invention
针对现有技术存在的问题,本发明提供了一种确定性网络中数据传输协处理器控制方法、系统及应用。Aiming at the problems existing in the prior art, the present invention provides a data transmission coprocessor control method, system and application in a deterministic network.
本发明是这样实现的,一种确定性网络中数据传输协处理器控制方法,所述确定性网络中数据传输协处理器控制方法包括:The present invention is achieved in this way, a method for controlling a data transmission coprocessor in a deterministic network, the method for controlling a data transmission coprocessor in a deterministic network includes:
发送端需要发送数据的时候,被发送到协处理器;先进入校验信息添加模块中进行发送序列号与发送时间戳的添加;When the sender needs to send data, it is sent to the coprocessor; first enter the verification information adding module to add the sending serial number and sending time stamp;
在接收端收到数据帧时,通过用户预先配置的网络各源端标识进行校验,验证数据的来源正确性;When the receiving end receives the data frame, it verifies the source identification of the network pre-configured by the user to verify the correctness of the source of the data;
结合网络中的同步功能,在数据被发送的时候打入发送时的时间点,在另一端的接收侧收到数据之后可以提取发送端的发送时间点,然后根据本地已经完成同步的时间值进行发送过程中消耗时间计算;Combined with the synchronization function in the network, when the data is sent, enter the sending time point. After the receiving side at the other end receives the data, it can extract the sending time point of the sending end, and then send according to the time value that has been synchronized locally. Calculate the time consumed in the process;
在完成计算之后通过与网络中提前确定的传输时延进行比较,一旦超过用户的所规定的最大阈值即可对数据判定为超时数据,不予进行接收;After the calculation is completed, it is compared with the transmission delay determined in advance in the network. Once the maximum threshold specified by the user is exceeded, the data can be judged as overtime data and will not be received;
当来源于某条链路的数据出现:持续性的序列号丢失或错乱、发送过程中消耗时间过长、源端验证失败问题时,接收端可根据以上问题持续性地维护一个寄存器,作为该链路的“生命值”,一旦链路的“生命值”低于用户要求的最低阈值时,即可断开当前连接。When the data from a certain link appears: the continuous serial number is lost or disordered, the time spent in the sending process is too long, and the source end verification fails, the receiving end can continuously maintain a register according to the above problems as the The "life value" of the link, once the "life value" of the link is lower than the minimum threshold required by the user, the current connection can be disconnected.
本发明通过特殊方式生成的CRC校验码,能够更好地保证数据传输时对数据来源的验证,因为验证的时候不仅需要有正确的CRC生成多项式,还需要有正确的源端号。序列号的添加可以让接收端对接收到的数据进行连续性的检查,通过记录下的序列号,验证当前接收到的数据是否和上一个数据连续。“生命值”的存在,能够在数据传输过程中实时监控数据链路的情况,对单独的数据链路进行持续性地量化更新,其更新依据为收到数据的标识。The CRC check code generated in a special way in the present invention can better ensure the verification of the data source during data transmission, because not only the correct CRC generator polynomial but also the correct source port number are required for verification. The addition of the serial number allows the receiving end to check the continuity of the received data, and verify whether the currently received data is continuous with the previous data through the recorded serial number. The existence of "life value" can monitor the situation of the data link in real time during the data transmission process, and continuously quantitatively update the individual data link, and the update basis is the identification of the received data.
进一步,所述确定性网络中数据传输协处理器控制方法包括在UDP层内对数据进行二次封装的帧格式,封装的内容;Further, the data transmission coprocessor control method in the deterministic network includes a frame format for secondary encapsulation of data in the UDP layer, and encapsulated content;
所述封装内容中的序列号、时间戳,CRC校验码三个要素共同判决数据是否符合接收规则的方法;A method for judging whether the data conforms to the receiving rules with the three elements of the serial number, the time stamp, and the CRC check code in the packaged content;
所述封装内容中的CRC验证码,在发送端生成时添加不进行传输的源端编号进行计算,接收端收到时需要结合源端编号进行再次计算以验证数据来源正确性的验证方法。The CRC verification code in the package content is calculated by adding the source number that is not transmitted when the sender generates it, and needs to be recalculated in combination with the source number to verify the correctness of the data source when the receiver receives it.
进一步,所述确定性网络中数据传输协处理器控制方法数据发送端的处理过程包括:Further, the processing process of the data sending end of the data transmission coprocessor control method in the deterministic network includes:
(1)数据输入;(1) Data input;
(2)根据数据的长度进行判断,由于内部传输宽度为32bit,需要检查数据长度是否为4字节的整数倍,判断是否需要在数据的前端进行“加0”操作;(2) Judging according to the length of the data, since the internal transmission width is 32bit, it is necessary to check whether the data length is an integer multiple of 4 bytes, and judge whether it is necessary to perform the "add 0" operation at the front end of the data;
(3)完成了“加0”的操作之后,对数据的头部进行头部信息的添加,在头部添加序列号与发送时间戳;(3) After the operation of "adding 0" is completed, add header information to the header of the data, and add a serial number and a sending timestamp to the header;
(4)完成了头部的序列号与时间戳添加之后,数据分两路进入不同的方向,一边送往缓存块中进行缓存,一边需要在头部加上本机设备的网络唯一标识后再送往CRC生成模块中进行CRC计算结果的生成;(4) After adding the serial number and time stamp of the header, the data enters two directions in different directions, one side is sent to the cache block for caching, and the other side needs to add the unique network identifier of the local device to the header before Sent to the CRC generation module to generate the CRC calculation result;
(5)当送往CRC生成模块的数据结束之后,将会得到数据的两个CRC计算结果,并且把CRC结果输入到缓存区中;(5) After the data sent to the CRC generation module ends, two CRC calculation results of the data will be obtained, and the CRC results will be input into the buffer area;
(6)输出经过校验信息添加的数据帧。(6) Output the data frame added by the verification information.
进一步,所述确定性网络中数据传输协处理器控制方法的CRC生成输入与输出时序,数据在完成源端系统唯一标识、序列号与时间戳的添加后,将会被送往CRC生成模块中进行CRC校验码生成;CRC模块的输入信号分别为: CRC_data_input待计算数据输入,32bit宽度数据信号)CRC_init CRC模块初始化信号,高电平有效、CRC_data_en CRC输入数据有效信号;高电平有效、 CRC_getResult CRC校验码结果获取信号,高电平单脉冲有效;Further, the CRC generation input and output timing of the data transmission coprocessor control method in the deterministic network will be sent to the CRC generation module after the data is added with the unique identifier, serial number and time stamp of the source system Perform CRC check code generation; the input signals of the CRC module are: CRC_data_input to be calculated data input, 32bit width data signal) CRC_init CRC module initialization signal, high level active, CRC_data_en CRC input data valid signal; high level active, CRC_getResult CRC check code result acquisition signal, high level single pulse is valid;
数据在持续输入的过程中,CRC生成模块会持续地计算当前输入数据地 CRC校验码,到数据输入结束之后,给予CRC_getResult一个单脉冲高电平即可使CRC地校验码结果在下一个时钟周期内输出。During the continuous input of data, the CRC generation module will continuously calculate the CRC check code of the current input data. After the data input is completed, give CRC_getResult a single pulse high level to make the CRC check code result in the next clock output during the cycle.
进一步,所述确定性网络中数据传输协处理器控制方法的数据接收端的处理过程包括:Further, the processing process of the data receiving end of the data transmission coprocessor control method in the deterministic network includes:
(1)数据输入;(1) Data input;
(2)根据数据的长度进行判断,由于内部传输宽度为32bit,需要检查数据长度是否为4字节的整数倍,判断是否需要在数据的前端进行“加0”操作;(2) Judging according to the length of the data, since the internal transmission width is 32bit, it is necessary to check whether the data length is an integer multiple of 4 bytes, and judge whether it is necessary to perform the "add 0" operation at the front end of the data;
(3)完成了“加0”的操作之后,提取数据帧中附带的序列号、时间戳与尾部的CRC校验码,为后续做信息校验准备;(3) After completing the operation of "adding 0", extract the attached serial number, time stamp and CRC check code at the end of the data frame to prepare for subsequent information verification;
(4)完成了头部的序列号与时间戳提取之后,数据分两路进入不同的方向。一边送往缓存块中进行缓存,一边需要在头部加上源端设备的网络唯一标识后再送往CRC生成模块中进行CRC计算结果的生成;同时进行对序列号与时间戳的检查工作,通过对当前链路维护的序列号寄存器进行序列号连续性检查;通过对本地同步时间与提取的帧发送时间点进行检查,检查数据帧传输过程是否花费了过多的时间;(4) After the serial number and time stamp extraction of the header are completed, the data enters two different directions in two ways. While sending it to the cache block for caching, it needs to add the unique network identifier of the source device to the header and then send it to the CRC generation module to generate the CRC calculation result; at the same time, check the serial number and time stamp, By checking the serial number continuity of the serial number register maintained by the current link; by checking the local synchronization time and the extracted frame sending time point, check whether the data frame transmission process takes too much time;
(5)当送往CRC生成模块的数据结束之后,将会得到数据的两个CRC计算结果,并且把CRC结果与之前提取的CRC校验码进行对比,检查是否一致;(5) After the data sent to the CRC generation module is finished, two CRC calculation results of the data will be obtained, and the CRC result is compared with the previously extracted CRC check code to check whether they are consistent;
(6)核对信息检查部分,确认数据帧是否符合检查要求,根据检查结果判断是否输出数据帧。(6) Check the information inspection part to confirm whether the data frame meets the inspection requirements, and judge whether to output the data frame according to the inspection result.
本发明的另一目的在于提供一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下步骤:Another object of the present invention is to provide a computer device, the computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following step:
发送端需要发送数据的时候,被发送到协处理器;先进入校验信息添加模块中进行发送序列号与发送时间戳的添加;When the sender needs to send data, it is sent to the coprocessor; first enter the verification information adding module to add the sending serial number and sending time stamp;
在接收端收到数据帧时,通过用户预先配置的网络各源端标识进行校验,验证数据的来源正确性;When the receiving end receives the data frame, it verifies the source identification of the network pre-configured by the user to verify the correctness of the source of the data;
结合网络中的同步功能,在数据被发送的时候打入发送时的时间点,在另一端的接收侧收到数据之后可以提取发送端的发送时间点,然后根据本地已经完成同步的时间值进行发送过程中消耗时间计算;Combined with the synchronization function in the network, when the data is sent, enter the sending time point. After the receiving side at the other end receives the data, it can extract the sending time point of the sending end, and then send according to the time value that has been synchronized locally. Calculate the time consumed in the process;
在完成计算之后通过与网络中提前确定的传输时延进行比较,一旦超过用户的所规定的最大阈值即可对数据判定为超时数据,不予进行接收;After the calculation is completed, it is compared with the transmission delay determined in advance in the network. Once the maximum threshold specified by the user is exceeded, the data can be judged as overtime data and will not be received;
当来源于某条链路的数据出现:持续性的序列号丢失或错乱、发送过程中消耗时间过长、源端验证失败问题时,接收端可根据以上问题持续性地维护一个寄存器,作为该链路的“生命值”,一旦链路的“生命值”低于用户要求的最低阈值时,即可断开当前连接。When the data from a certain link appears: the continuous serial number is lost or disordered, the time spent in the sending process is too long, and the source end verification fails, the receiving end can continuously maintain a register according to the above problems as the The "life value" of the link, once the "life value" of the link is lower than the minimum threshold required by the user, the current connection can be disconnected.
本发明的另一目的在于提供一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如下步骤:Another object of the present invention is to provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the processor performs the following steps:
发送端需要发送数据的时候,被发送到协处理器;先进入校验信息添加模块中进行发送序列号与发送时间戳的添加;When the sender needs to send data, it is sent to the coprocessor; first enter the verification information adding module to add the sending serial number and sending time stamp;
在接收端收到数据帧时,通过用户预先配置的网络各源端标识进行校验,验证数据的来源正确性;When the receiving end receives the data frame, it verifies the source identification of the network pre-configured by the user to verify the correctness of the source of the data;
结合网络中的同步功能,在数据被发送的时候打入发送时的时间点,在另一端的接收侧收到数据之后可以提取发送端的发送时间点,然后根据本地已经完成同步的时间值进行发送过程中消耗时间计算;Combined with the synchronization function in the network, when the data is sent, enter the sending time point. After the receiving side at the other end receives the data, it can extract the sending time point of the sending end, and then send according to the time value that has been synchronized locally. Calculate the time consumed in the process;
在完成计算之后通过与网络中提前确定的传输时延进行比较,一旦超过用户的所规定的最大阈值即可对数据判定为超时数据,不予进行接收;After the calculation is completed, it is compared with the transmission delay determined in advance in the network. Once the maximum threshold specified by the user is exceeded, the data can be judged as overtime data and will not be received;
当来源于某条链路的数据出现:持续性的序列号丢失或错乱、发送过程中消耗时间过长、源端验证失败问题时,接收端可根据以上问题持续性地维护一个寄存器,作为该链路的“生命值”,一旦链路的“生命值”低于用户要求的最低阈值时,即可断开当前连接。When the data from a certain link appears: the continuous serial number is lost or disordered, the time spent in the sending process is too long, and the source end verification fails, the receiving end can continuously maintain a register according to the above problems as the The "life value" of the link, once the "life value" of the link is lower than the minimum threshold required by the user, the current connection can be disconnected.
本发明的另一目的在于提供一种信息数据处理终端,所述信息数据处理终端用于实现所述的确定性网络中数据传输协处理器控制方法。Another object of the present invention is to provide an information and data processing terminal, which is used to implement the method for controlling a data transmission coprocessor in a deterministic network.
本发明的另一目的在于提供一种实施所述确定性网络中数据传输协处理器控制方法的确定性网络中数据传输协处理器控制系统,所述确定性网络中数据传输协处理器控制系统包括:Another object of the present invention is to provide a data transmission coprocessor control system in a deterministic network implementing the data transmission coprocessor control method in a deterministic network, the data transmission coprocessor control system in a deterministic network include:
接收端:包含校验信息添加模块、CRC-X生成模块与CRC-Y生成模块;Receiver: including a verification information adding module, a CRC-X generating module and a CRC-Y generating module;
发送端:包含校验信息验证模块、CRC-X生成模块与CRC-Y生成模块;Sending end: including verification information verification module, CRC-X generation module and CRC-Y generation module;
校验信息添加模块:对上层下发的数据进行校验信息的添加操作,完成对数据的“加0”检测,使得数据对齐,方便后续进行CRC结果的生成;Verification information addition module: Add verification information to the data sent by the upper layer, complete the "add 0" detection of the data, make the data aligned, and facilitate the subsequent generation of CRC results;
校验信息验证模块:对来自网络的数据进行校验信息的验证,通过对预先填入的发送端信息进行本地验证;Verification information verification module: verify the verification information of the data from the network, and perform local verification on the pre-filled sender information;
CRC-X与CRC-Y模块:用户可以预先配置相应的CRC多项式,宽度为 16bit,对输入的数据与源端设备的标识进行CRC运算得出CRC计算结果。CRC-X and CRC-Y modules: The user can pre-configure the corresponding CRC polynomial with a width of 16 bits, and perform CRC calculation on the input data and the identification of the source device to obtain the CRC calculation result.
本发明的另一目的在于提供一种数据传输网络控制系统,所述数据传输网络控制系统用于运行所述的确定性网络中数据传输协处理器控制方法。Another object of the present invention is to provide a data transmission network control system for running the data transmission coprocessor control method in a deterministic network.
结合上述的所有技术方案,本发明所具备的优点及积极效果为:In combination with all the above-mentioned technical solutions, the advantages and positive effects of the present invention are:
(1)传统以太网中对于数据传输过程的保护方法有UDP/IP中的校验和方法和MAC层中的CRC校验方法,由于网络发展的时间较长,导致传统以太网中各层次的校验方法已经广为传播。因此在数据传输过程中如果数据受到恶意修改后是无法被探测的。针对上述情况,本发明通过在UDP层内添加额外两次 CRC校验,通过使用不同的多项式生成两个校验码,在保证数据传输过程中不被修改的同时,又能降低数据校验码的碰撞率。(1) The protection methods for the data transmission process in the traditional Ethernet include the checksum method in UDP/IP and the CRC method in the MAC layer. Due to the long development of the network, the traditional Ethernet at each level Calibration methods have been widely disseminated. Therefore, if the data is maliciously modified during data transmission, it cannot be detected. In view of the above situation, the present invention adds two additional CRC checks in the UDP layer and generates two check codes by using different polynomials, which can reduce the data check code while ensuring that the data is not modified during the data transmission process. the collision rate.
(2)与传统确定性以太网的接收检查功能相比,本发明通过在收发两端同时设置对称的模块进行传输时间统计,有效避免了传统接收检查功能中带来的时间不准确问题。本发明还支持对链路的管理功能,在多次发现某链路持续性的花费过多时间进行传输之后,能够主动上报出现异常的链路。(2) Compared with the reception check function of the traditional deterministic Ethernet, the present invention effectively avoids the time inaccuracy problem caused by the traditional reception check function by setting symmetrical modules at both ends of the transceiver to perform transmission time statistics. The present invention also supports the link management function, and can actively report the abnormal link after it is found many times that a certain link spends too much time for transmission continuously.
(3)本发明相比以往技术发展了对数据源端进行认证的功能,发送端在发送数据时通过在生成CRC校验码的数据中加入不进行传输的本机在网络中的唯一编号的方式,使得接收端在收到数据之后只有使用正确的源端编号方能正确验证数据的来源。源端编号在规划网络之时应规划完善,网络整体在上电之后应全部配置完毕。根据确定性网络的特性,网络总体的拓扑结构,设备的数量应是确定的,所以每个设备都应该知道数据的来源对应的编号。(3) Compared with the prior art, the present invention develops the function of authenticating the data source, and the sending end, when sending data, adds the unique number of the machine that does not transmit in the network to the data that generates the CRC check code. In this way, the receiving end can only verify the source of the data correctly after receiving the data by using the correct source end number. The source number should be well planned when planning the network, and the entire network should be fully configured after power-on. According to the characteristics of the deterministic network, the overall topology of the network, and the number of devices should be determined, so each device should know the number corresponding to the source of the data.
(4)传统MAC中生成CRC时使用的数据位宽为8bit,在传输数据时速率较慢,但是本发明由于在计算CRC的时候加入了额外的非数据域,因此为了提升计算的速度,采用的32bit宽度进行计算,通过在头部进行“加0”的方式解决了数据在非4字节整数倍长度时的的CRC计算问题。(4) The data bit width used when generating CRC in the traditional MAC is 8bit, and the rate is relatively slow when transmitting data, but the present invention adds extra non-data fields when calculating CRC, so in order to improve the speed of calculation, adopt The 32bit width is calculated, and the CRC calculation problem when the data is not an integer multiple of 4 bytes is solved by "adding 0" to the header.
本发明基于FPGA开发的数据传输控制协处理器,支持对发往网络与来自网络的数据的收发检测功能。通过采用本发明改良后的32bitCRC计算方式,数据能够通过32bit的方式进行传输进入CRC生成器中,在数据结束时直接输出 CRC结果,与MAC中8bit生成的方式相比,传输同样长度的数据只需花费原有时间的25%。The invention is based on the data transmission control coprocessor developed by FPGA, and supports the sending and receiving detection function of the data sent to and from the network. By adopting the improved 32bitCRC calculation method of the present invention, the data can be transmitted into the CRC generator through the 32bit method, and the CRC result is output directly at the end of the data. Compared with the 8bit generation method in MAC, the transmission of the same length of data only takes Takes 25% of the original time.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图做简单的介绍,显而易见地,下面所描述的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings required in the embodiments of the present application. Obviously, the accompanying drawings described below are only some embodiments of the present application. Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1是本发明实施例提供的确定性网络中数据传输协处理器控制方法流程图。Fig. 1 is a flowchart of a method for controlling a data transmission coprocessor in a deterministic network provided by an embodiment of the present invention.
图2是本发明实施例提供的确定性网络中数据传输协处理器控制系统的结构示意图。Fig. 2 is a schematic structural diagram of a data transmission coprocessor control system in a deterministic network provided by an embodiment of the present invention.
图3是本发明实施例提供的数据处理过程示意图。Fig. 3 is a schematic diagram of a data processing process provided by an embodiment of the present invention.
图4是本发明实施例提供的协议层级结构示意图。Fig. 4 is a schematic diagram of a layered structure of a protocol provided by an embodiment of the present invention.
图5是本发明实施例提供的数据封装帧结构示意图。Fig. 5 is a schematic diagram of a data encapsulation frame structure provided by an embodiment of the present invention.
图6是本发明实施例提供的数据发送端处理流程图。Fig. 6 is a flow chart of data sending end processing provided by an embodiment of the present invention.
图7是本发明实施例提供的CRC生成模块的输入与输出时序示意图。FIG. 7 is a schematic diagram of input and output timing of the CRC generation module provided by the embodiment of the present invention.
图8是本发明实施例提供的数据接收端处理流程图。Fig. 8 is a flow chart of processing at a data receiving end provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
针对现有技术存在的问题,本发明提供了一种确定性网络中数据传输协处理器控制方法、系统及应用,下面结合附图对本发明作详细的描述。Aiming at the problems existing in the prior art, the present invention provides a data transmission coprocessor control method, system and application in a deterministic network. The present invention will be described in detail below in conjunction with the accompanying drawings.
如图1所示,本发明提供的确定性网络中数据传输协处理器控制方法包括以下步骤:As shown in Figure 1, the data transmission coprocessor control method in the deterministic network provided by the present invention includes the following steps:
S101:发送端需要发送数据的时候,被发送到协处理器;先进入校验信息添加模块中进行发送序列号与发送时间戳的添加;S101: When the sending end needs to send data, it is sent to the coprocessor; first enter the verification information adding module to add the sending serial number and sending time stamp;
S102:在接收端收到数据帧时,通过用户预先配置的网络各源端标识进行校验,验证数据的来源正确性;S102: When the receiving end receives the data frame, it verifies the correctness of the source of the data through the identification of each source end of the network pre-configured by the user;
S103:结合网络中的同步功能,在数据被发送的时候打入发送时的时间点,在另一端的接收侧收到数据之后可以提取发送端的发送时间点,然后根据本地已经完成同步的时间值进行发送过程中消耗时间计算;S103: Combined with the synchronization function in the network, when the data is sent, enter the time point of the sending time. After the receiving side at the other end receives the data, the sending time point of the sending end can be extracted, and then according to the time value that has been synchronized locally Calculate the time consumed in the sending process;
S104:在完成计算之后通过与网络中提前确定的传输时延进行比较,一旦超过用户的所规定的最大阈值即可对数据判定为超时数据,不予进行接收;S104: After the calculation is completed, by comparing with the transmission delay determined in advance in the network, once the maximum threshold value specified by the user is exceeded, the data can be judged as overtime data and not received;
S105:当来源于某条链路的数据出现:持续性的序列号丢失或错乱、发送过程中消耗时间过长、源端验证失败等问题时,接收端可根据以上问题持续性地维护一个寄存器,作为该链路的“生命值”,一旦链路的“生命值”低于用户要求的最低阈值时,即可断开当前连接。S105: When the data from a certain link has problems such as persistent serial number loss or disorder, long time consumption in the sending process, source verification failure, etc., the receiving end can continuously maintain a register according to the above problems , as the "life value" of the link, once the "life value" of the link is lower than the minimum threshold required by the user, the current connection can be disconnected.
本发明对确定性网络中数据传输的保障方法,包括在UDP层内对数据进行二次封装的帧格式,封装的内容;The method for guaranteeing data transmission in a deterministic network in the present invention includes a frame format for secondary encapsulation of data in the UDP layer, and encapsulated content;
所述封装内容中的序列号、时间戳,CRC校验码三个要素共同判决数据是否符合接收规则的方法。The serial number, time stamp, and CRC check code in the packaged content jointly determine whether the data conforms to the receiving rule.
所述封装内容中的CRC验证码,在发送端生成时添加不进行传输的源端编号进行计算,接收端收到时需要结合源端编号进行再次计算以验证数据来源正确性的验证方法。The CRC verification code in the package content is calculated by adding the source number that is not transmitted when the sender generates it, and needs to be recalculated in combination with the source number to verify the correctness of the data source when the receiver receives it.
本发明提供的确定性网络中数据传输协处理器控制方法业内的普通技术人员还可以采用其他的步骤实施,图1的本发明提供的确定性网络中数据传输协处理器控制方法仅仅是一个具体实施例而已。The method for controlling data transmission coprocessor in a deterministic network provided by the present invention can also be implemented by those skilled in the art by using other steps. The method for controlling data transmission coprocessor in a deterministic network provided by the present invention in FIG. 1 is only a specific example. Examples only.
如图2所示,本发明提供的确定性网络中数据传输协处理器控制系统包括:As shown in Figure 2, the data transmission coprocessor control system in the deterministic network provided by the present invention includes:
接收端:包含校验信息添加模块、CRC-X生成模块与CRC-Y生成模块。Receiving end: including a verification information adding module, a CRC-X generating module and a CRC-Y generating module.
发送端:包含校验信息验证模块、CRC-X生成模块与CRC-Y生成模块。Sending end: including a verification information verification module, a CRC-X generation module and a CRC-Y generation module.
校验信息添加模块:对上层下发的数据进行校验信息的添加操作,完成对数据的“加0”检测,使得数据对齐,方便后续进行CRC结果的生成。Verification information addition module: Add verification information to the data sent by the upper layer, complete the "add 0" detection of the data, make the data aligned, and facilitate the subsequent generation of CRC results.
校验信息验证模块:对来自网络的数据进行校验信息的验证,通过对预先填入的发送端信息进行本地验证。Verification information verification module: verify the verification information of the data from the network, and perform local verification on the pre-filled sender information.
CRC-X与CRC-Y模块:用户可以预先配置相应的CRC多项式,宽度为 16bit,对输入的数据与源端设备的标识进行CRC运算得出CRC计算结果。CRC-X and CRC-Y modules: The user can pre-configure the corresponding CRC polynomial with a width of 16 bits, and perform CRC calculation on the input data and the identification of the source device to obtain the CRC calculation result.
下面结合附图对本发明的技术方案作进一步的描述。The technical scheme of the present invention will be further described below in conjunction with the accompanying drawings.
图3为数据处理的过程详细分析图。发送端需要发送数据的时候,会被发送到协处理器。先进入校验信息添加模块中进行发送序列号与发送时间戳的添加。图中“EQ_ID”标识为发送源端在网络中的唯一标识,此标识并不放入数据帧中进行传输,仅在生成CRC时加入一并计算,在接收端收到数据帧时,通过用户预先配置的网络各源端标识进行校验,验证数据的来源正确性,避免有第三者冒充源端进行数据攻击。图中“SN”标识为发送序列号,发送序列号能够保证当前数据的连续性,避免数据在传输过程中出现丢失而没有被探测到出现丢失的情况。图中“TS”标识为发送端发送数据时的时间点。结合网络中的同步功能,在数据被发送的时候打入发送时的时间点,在另一端的接收侧收到数据之后可以提取发送端的发送时间点,然后根据本地已经完成同步的时间值进行发送过程中消耗时间计算。在完成计算之后通过与网络中提前确定的传输时延进行比较,一旦超过用户的所规定的最大阈值即可对数据判定为超时数据,不予进行接收。当来源于某条链路的数据出现:持续性的序列号丢失或错乱、发送过程中消耗时间过长、源端验证失败等问题时,接收端可以根据以上问题持续性地维护一个寄存器,作为该链路的“生命值”,一旦链路的“生命值”低于用户要求的最低阈值时,即可断开当前连接。Figure 3 is a detailed analysis diagram of the data processing process. When the sender needs to send data, it will be sent to the coprocessor. First enter the verification information adding module to add the sending sequence number and sending time stamp. The "EQ_ID" in the figure is the unique identifier of the sending source in the network. This identifier is not put into the data frame for transmission. It is only added to the calculation when generating the CRC. When the receiving end receives the data frame, it is passed through the user The pre-configured network source identifiers are verified to verify the correctness of the source of the data and avoid data attacks by third parties pretending to be the source. The "SN" in the figure is marked as the sending sequence number. The sending sequence number can ensure the continuity of the current data and avoid the loss of data during transmission without being detected. "TS" in the figure is the time point when the sender sends data. Combined with the synchronization function in the network, when the data is sent, enter the sending time point. After the receiving side at the other end receives the data, it can extract the sending time point of the sending end, and then send according to the time value that has been synchronized locally. Calculate the time consumed in the process. After the calculation is completed, it is compared with the transmission delay determined in advance in the network. Once the maximum threshold value specified by the user is exceeded, the data can be judged as overtime data and will not be received. When the data from a certain link has problems such as persistent serial number loss or disorder, long time consumption in the sending process, source verification failure, etc., the receiving end can continuously maintain a register according to the above problems, as The "life value" of the link, once the "life value" of the link is lower than the minimum threshold required by the user, the current connection can be disconnected.
图4为本发明方法的协议层级。数据的封装是位于UDP载荷中的,用户的数据在下发之后直接进行校验信息的添加,可以配合硬件协议栈一并使用或者配合软件协议栈使用。图5为本发明方法的数据帧结构。图中所示为数据帧在传输过程中的帧结构,包含32bit宽度的“SN”(即序列号)字段、48bit宽度的“TS”(即时间戳)字段、1-1476字节长的用户数据载荷、16bit宽度的CRC-X与CRC-Y 校验计算结果。Fig. 4 is the protocol level of the method of the present invention. The encapsulation of data is located in the UDP payload, and the user's data is directly added with verification information after it is delivered, which can be used together with the hardware protocol stack or with the software protocol stack. Fig. 5 is the data frame structure of the method of the present invention. The figure shows the frame structure of the data frame during the transmission process, including the "SN" (serial number) field of 32bit width, the "TS" (time stamp) field of 48bit width, and the user Data payload, CRC-X and CRC-Y check calculation results with 16bit width.
以下对技术方案工作原理流程进行说明。The working principle and process of the technical solution are described below.
1、数据发送端1. Data sender
(1)数据输入。(1) Data input.
(2)根据数据的长度进行判断,由于内部传输宽度为32bit,需要检查数据长度是否为4字节的整数倍,判断是否需要在数据的前端进行“加0”操作。(2) Judging according to the length of the data, since the internal transmission width is 32bit, it is necessary to check whether the data length is an integer multiple of 4 bytes, and judge whether it is necessary to perform the "add 0" operation at the front end of the data.
(3)完成了“加0”的操作之后,对数据的头部进行头部信息的添加,在头部添加序列号与发送时间戳。(3) After completing the "add 0" operation, add header information to the header of the data, and add a serial number and a sending timestamp to the header.
(4)完成了头部的序列号与时间戳添加之后,数据分两路进入不同的方向。一边送往缓存块中进行缓存,一边需要在头部加上本机设备的网络唯一标识后再送往CRC生成模块中进行CRC计算结果的生成。(4) After adding the serial number and timestamp of the header, the data enters in two directions in different directions. While sending it to the cache block for caching, it needs to add the unique network identifier of the local device to the header and then send it to the CRC generation module to generate the CRC calculation result.
(5)当送往CRC生成模块的数据结束之后,将会得到数据的两个CRC计算结果,并且把CRC结果输入到缓存区中。(5) After the data sent to the CRC generating module is finished, two CRC calculation results of the data will be obtained, and the CRC results will be input into the buffer area.
(6)输出经过校验信息添加的数据帧。(6) Output the data frame added by the verification information.
图6为发送端处理数据流程图。Fig. 6 is a flowchart of data processing at the sending end.
图7为CRC生成模块的输入与输出时序。Figure 7 shows the input and output timing of the CRC generation module.
数据在完成了源端系统唯一标识、序列号与时间戳的添加后,将会被送往 CRC生成模块中进行CRC校验码生成。CRC模块的输入信号分别为: CRC_data_input(待计算数据输入,32bit宽度数据信号)、CRC_init(CRC模块初始化信号,高电平有效)、CRC_data_en(CRC输入数据有效信号。高电平有效)、 CRC_getResult(CRC校验码结果获取信号,高电平单脉冲有效)。After the data is added with the unique identifier, serial number and time stamp of the source system, it will be sent to the CRC generation module for CRC check code generation. The input signals of the CRC module are: CRC_data_input (data input to be calculated, 32bit width data signal), CRC_init (CRC module initialization signal, high level active), CRC_data_en (CRC input data valid signal. High level active), CRC_getResult ( CRC check code result acquisition signal, high level single pulse is valid).
数据在持续输入的过程中,CRC生成模块会持续地计算当前输入数据地 CRC校验码,到数据输入结束之后,给予CRC_getResult一个单脉冲高电平即可使CRC地校验码结果在下一个时钟周期内输出。During the continuous input of data, the CRC generation module will continuously calculate the CRC check code of the current input data. After the data input is completed, give CRC_getResult a single pulse high level to make the CRC check code result in the next clock output during the cycle.
2、数据接收端2. Data receiver
(1)数据输入。(1) Data input.
(2)根据数据的长度进行判断,由于内部传输宽度为32bit,需要检查数据长度是否为4字节的整数倍,判断是否需要在数据的前端进行“加0”操作。(2) Judging according to the length of the data, since the internal transmission width is 32bit, it is necessary to check whether the data length is an integer multiple of 4 bytes, and judge whether it is necessary to perform the "add 0" operation at the front end of the data.
(3)完成了“加0”的操作之后,提取数据帧中附带的序列号、时间戳与尾部的CRC校验码,为后续做信息校验准备。(3) After completing the "add 0" operation, extract the serial number, time stamp and CRC check code at the end of the data frame to prepare for subsequent information verification.
(4)完成了头部的序列号与时间戳提取之后,数据分两路进入不同的方向。一边送往缓存块中进行缓存,一边需要在头部加上源端设备的网络唯一标识后再送往CRC生成模块中进行CRC计算结果的生成。另外,同时进行对序列号与时间戳的检查工作,通过对当前链路维护的序列号寄存器进行序列号连续性检查;通过对本地同步时间与提取的帧发送时间点进行检查,检查数据帧传输过程是否花费了过多的时间。(4) After the serial number and time stamp extraction of the header are completed, the data enters two different directions in two ways. While sending it to the cache block for caching, it needs to add the unique network identifier of the source device to the header and then send it to the CRC generation module to generate the CRC calculation result. In addition, check the serial number and time stamp at the same time, check the serial number continuity of the serial number register maintained by the current link; check the data frame transmission by checking the local synchronization time and the extracted frame sending time point Whether the process is taking an excessive amount of time.
(5)当送往CRC生成模块的数据结束之后,将会得到数据的两个CRC计算结果,并且把CRC结果与之前提取的CRC校验码进行对比,检查是否一致。(5) After the data sent to the CRC generation module is finished, two CRC calculation results of the data will be obtained, and the CRC results will be compared with the previously extracted CRC check code to check whether they are consistent.
(6)核对信息检查部分,确认数据帧是否符合检查要求,根据检查结果判断是否输出数据帧。(6) Check the information inspection part to confirm whether the data frame meets the inspection requirements, and judge whether to output the data frame according to the inspection result.
图8为数据接收处理过程流程图。FIG. 8 is a flow chart of the data receiving process.
应当注意,本发明的实施方式可以通过硬件、软件或者软件和硬件的结合来实现。硬件部分可以利用专用逻辑来实现;软件部分可以存储在存储器中,由适当的指令执行系统,例如微处理器或者专用设计硬件来执行。本领域的普通技术人员可以理解上述的设备和方法可以使用计算机可执行指令和/或包含在处理器控制代码中来实现,例如在诸如磁盘、CD或DVD-ROM的载体介质、诸如只读存储器(固件)的可编程的存储器或者诸如光学或电子信号载体的数据载体上提供了这样的代码。本发明的设备及其模块可以由诸如超大规模集成电路或门阵列、诸如逻辑芯片、晶体管等的半导体、或者诸如现场可编程门阵列、可编程逻辑设备等的可编程硬件设备的硬件电路实现,也可以用由各种类型的处理器执行的软件实现,也可以由上述硬件电路和软件的结合例如固件来实现。It should be noted that the embodiments of the present invention can be realized by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in memory and executed by a suitable instruction execution system such as a microprocessor or specially designed hardware. Those of ordinary skill in the art will understand that the above-described devices and methods can be implemented using computer-executable instructions and/or contained in processor control code, for example, on a carrier medium such as a magnetic disk, CD or DVD-ROM, such as a read-only memory Such code is provided on a programmable memory (firmware) or on a data carrier such as an optical or electronic signal carrier. The device and its modules of the present invention may be implemented by hardware circuits such as VLSI or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., It can also be realized by software executed by various types of processors, or by a combination of the above hardware circuits and software such as firmware.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本发明领域的技术人员在本发明揭露的技术范围内,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,都应涵盖在本发明的保护范围之内。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person familiar with the field of the present invention is within the technical scope disclosed in the present invention. Any modifications, equivalent replacements and improvements made within shall fall within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110175099.9A CN112953679B (en) | 2021-02-09 | 2021-02-09 | Data transmission coprocessor control method, device, medium, terminal and system in deterministic network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110175099.9A CN112953679B (en) | 2021-02-09 | 2021-02-09 | Data transmission coprocessor control method, device, medium, terminal and system in deterministic network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112953679A CN112953679A (en) | 2021-06-11 |
CN112953679B true CN112953679B (en) | 2022-11-15 |
Family
ID=76244410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110175099.9A Active CN112953679B (en) | 2021-02-09 | 2021-02-09 | Data transmission coprocessor control method, device, medium, terminal and system in deterministic network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112953679B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114253211B (en) * | 2021-12-15 | 2024-09-20 | 意欧斯智能科技股份有限公司 | Method for performing interactive verification on PLC and upper computer WCS signals |
CN114448956A (en) * | 2022-01-25 | 2022-05-06 | 中电科航空电子有限公司 | The middleware protocol method of airborne digital audio system based on general data network |
CN115150251B (en) * | 2022-05-27 | 2023-11-03 | 中国南方电网有限责任公司 | Fault diagnosis method, system and management platform for dispatching communication link of power private network |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108155982A (en) * | 2016-12-02 | 2018-06-12 | 深圳市中兴微电子技术有限公司 | A kind of timestamp processing method and equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7649912B2 (en) * | 2005-04-27 | 2010-01-19 | Rockwell Automation Technologies, Inc. | Time synchronization, deterministic data delivery and redundancy for cascaded nodes on full duplex ethernet networks |
US9031071B2 (en) * | 2005-08-26 | 2015-05-12 | Alcatel Lucent | Header elimination for real time internet applications |
US10620241B2 (en) * | 2012-02-17 | 2020-04-14 | Perspecta Labs Inc. | Method and system for packet acquisition, analysis and intrusion detection in field area networks |
US10135711B2 (en) * | 2015-12-22 | 2018-11-20 | Intel Corporation | Technologies for sideband performance tracing of network traffic |
-
2021
- 2021-02-09 CN CN202110175099.9A patent/CN112953679B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108155982A (en) * | 2016-12-02 | 2018-06-12 | 深圳市中兴微电子技术有限公司 | A kind of timestamp processing method and equipment |
Non-Patent Citations (1)
Title |
---|
龚晨亮等.HIMAC协处理器的调度方案.《网络新媒体技术》.2013,(第05期), * |
Also Published As
Publication number | Publication date |
---|---|
CN112953679A (en) | 2021-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112953679B (en) | Data transmission coprocessor control method, device, medium, terminal and system in deterministic network | |
CN103001827B (en) | Based on the inspection of Ethernet bag and the FPGA hardware check method of ten thousand Broadcoms | |
US11296807B2 (en) | Techniques to operate a time division multiplexing(TDM) media access control (MAC) | |
Su et al. | Redundant rule detection for software-defined networking | |
CN108462642B (en) | UDP/IP hardware protocol stack based on FPGA and implementation method | |
US20130166960A1 (en) | Byte By Byte Received Data Integrity Check | |
WO2016078312A1 (en) | Single board testing method and device | |
KR102382432B1 (en) | Method and apparatus for detecting bit errors | |
CN102447530A (en) | Data frame aggregation method with fault-tolerant function | |
CN105634977A (en) | Method and device for discovering a path maximum transmission unit (PMTU) | |
CN101360046A (en) | Bandwidth resource saving method | |
CN103746966A (en) | UDP-based upper-layer protocol and Ethernet MAC layer data transmission method | |
WO2021088813A1 (en) | Packet encapsulating method and apparatus, and packet decapsulating method and apparatus | |
WO2020073907A1 (en) | Method and apparatus for updating forwarding entry | |
CN110138635B (en) | Protocol conversion function verification device and method supporting FC and Ethernet | |
CN110149242B (en) | Protocol conversion function verification device and method supporting SRIO and Ethernet | |
US9276876B2 (en) | Data transfer apparatus and data transfer method | |
CN102394720A (en) | Information safety checking processor | |
US20090210770A1 (en) | Method, system and computer program product for end to end error checking in ethernet | |
CN104618057B (en) | A kind of Packet Transport Network not damaged protection reverse method and system | |
WO2022227472A1 (en) | Communication method and apparatus based on dual channel and rssp-i, and electronic device and storage medium | |
CN115865845A (en) | Method for realizing cross-Region virtual network communication based on SegmentRouting | |
CN116614481A (en) | Multimedia data transmission method, device, equipment and storage medium | |
CN102711163A (en) | Method for rapidly detecting alarm link failure in IP (internal protocol)-RAN (random access network) equipment | |
CN108370335A (en) | The engine framework of the real-time distribution of Ethernet virtual link |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |