Verification message generation method and device, equipment, cluster, medium and product

By designing a matrix containing discarded and retransmission elements, image shards of different lengths are generated, the problem of software framing processing occupies a large amount of processor resources in the Gigabit Ethernet vision standard protocol is solved, and effective verification of smart network cards is achieved and reduce processor burden.

CN119324877AInactive Publication Date: 2025-01-17ZHUHAI XINGYUN ZHILIAN TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411866134.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-01-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the field of machine vision, in the Gigabit Ethernet vision standard protocol, software framing processing occupies a large amount of processor resources, and smart network cards need to be verified before formal production, so the existing technology is difficult to effectively reduce the processor burden.

Method used

By generating a matrix containing discarding the starting element, discarding the end element, retransmitting the starting element and retransmitting the end element, discarding and retransmitting the image shards of different lengths are designed, thereby generating various verification messages, and the intelligent network card issuance. Perform verification.

Benefits of technology

It realizes effective verification of smart network cards, reduces the processor burden, and generates a variety of verification messages through various discarding and retransmission shard designs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119324877A_ABST
    Figure CN119324877A_ABST
Patent Text Reader

Abstract

The invention provides a verification message generation method and device, equipment, a cluster, a medium and a product. The method comprises the steps that a first matrix column of a first matrix is generated, the first matrix column comprises a first discarding starting element used for indicating a first discarding starting sequence number of an image fragment needing to be discarded in a first image frame, and a first discarding ending element used for indicating a first discarding ending sequence number of the image fragment needing to be discarded in the first image frame, the first retransmission starting element indicates a first retransmission starting sequence number of an image fragment needing to be retransmitted in the first image frame, the first retransmission ending element indicates a first retransmission ending sequence number of the image fragment needing to be retransmitted in the first image frame, and the first fragment number element indicates the number of the image fragments in the first image frame; and generating a first data stream according to the first discarding starting element and the first discarding ending element in the first matrix column, and generating a first retransmission data stream according to the first retransmission starting element and the first retransmission ending element.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data communications, and in particular to a verification message generation method, device, equipment, cluster, medium and product. Background Art

[0002] In the field of machine vision, a commonly used machine vision camera interface standard is the Gigabit Ethernet Vision Standard (GigE Vision) protocol. The Gigabit Ethernet Vision Standard protocol consists of two parts: the Gigabit Ethernet Vision Streaming Protocol (GVSP) and the Gigabit Ethernet Vision Control Protocol (GVCP), which are used in scenarios with extremely high real-time requirements. Usually, when the network card receives a GVSP protocol message, the network card sends the GVSP message to the CPU software for framing processing, and combines the contents of multiple GVSP messages belonging to an image into one image frame. This method of framing by software will occupy a large amount of processor resources. If this part of the processing is performed in the smart network card, the processor burden will be greatly reduced.

[0003] However, before formal production, the Smart NIC must be verified using various messages. Summary of the invention

[0004] The present application provides a verification message generation method, device, equipment, cluster, medium and product, which can generate various messages to verify the smart network card.

[0005] In a first aspect, a verification message generation method is provided, comprising: Generate a first matrix column of a first matrix, wherein the first matrix column includes a first discard start element, a first discard end element, a first retransmission start element, a first retransmission end element, and a first slice number element, the first discard start element is used to indicate a first discard start sequence number of an image slice that needs to be discarded in the first image frame, the first discard end element is used to indicate a first discard end sequence number of an image slice that needs to be discarded in the first image frame, the first retransmission start element is used to indicate a first retransmission start sequence number of an image slice that needs to be retransmitted in the first image frame, the first retransmission end element is used to indicate a first retransmission end sequence number of an image slice that needs to be retransmitted in the first image frame, the first slice number element is used to indicate the number of image slices in the first image frame, the interval formed by the first retransmission start element and the first retransmission end element belongs to the interval formed by the first discard start element and the first discard end element, and the first discard start element, the first discard end element, the first retransmission start element, and the first retransmission end element are all smaller than the first slice number element; A first data stream is generated according to the first discard start element and the first discard end element in the first matrix column, and a first retransmission data stream is generated according to the first retransmission start element and the first retransmission end element.

[0006] In the above scheme, the first matrix can be used to design discarded image segments of different lengths in the image frame and retransmitted image segments of different lengths, thereby generating various verification messages to verify the smart network card.

[0007] In some possible designs, the method further includes: Generate a second matrix column of the first matrix, wherein the second matrix column includes a second discard start element, a second discard end element, a second retransmission start element, and a second retransmission end element, the second discard start element is used to indicate a second discard start sequence number of an image slice that needs to be discarded in the first image frame, the second discard end element is used to indicate a second discard end sequence number of an image slice that needs to be discarded in the first image frame, the second retransmission start element is used to indicate a second discard start sequence number of an image slice that needs to be retransmitted in the first image frame, the second retransmission end element is used to indicate a second discard end sequence number of an image slice that needs to be retransmitted in the first image frame, the interval formed by the second retransmission start element and the second retransmission end element belongs to the interval formed by the second discard start element and the second discard end element, the second discard start element, the second discard end element, the second retransmission start element, and the second retransmission end element are all smaller than the first slice number element, and there is no intersection between the interval formed by the first discard start element and the first discard end element and the interval formed by the second discard start element and the second discard end element; Generating a first data stream according to the first discard start element and the first discard end element in the first matrix column, and generating a first retransmission data stream according to the first retransmission start element and the first retransmission end element, comprising: A second data stream is generated according to the first discard start element and the first discard end element in the first matrix column, and the second discard start element and the second discard end element in the second matrix column; and a first retransmission data stream is generated according to the first retransmission start element and the first retransmission end element in the first matrix column, and the second retransmission start element and the second retransmission end element in the second matrix column.

[0008] In the above scheme, multiple discarded image segments and multiple retransmitted image segments are designed in the same frame of image, so that the verification message is richer.

[0009] In some possible designs, the second discarding start element is greater than the first discarding end element.

[0010] In some possible designs, the number of columns of the first matrix columns is equal to the number of matrix column elements, wherein the number of matrix column elements is generated by a random function or is input by a user.

[0011] In some possible designs, the method further includes: Generate a second matrix column of the first matrix, wherein the second matrix column includes a second discard start element, a second discard end element, a second retransmission start element, a second retransmission end element and a second slice number element, the second discard start element is used to indicate a second discard start sequence number of an image slice that needs to be discarded in the second image frame, the second discard end element is used to indicate a second discard end sequence number of an image slice that needs to be discarded in the second image frame, the second retransmission start element is used to indicate a second discard start sequence number of an image slice that needs to be retransmitted in the second image frame, the second retransmission end element is used to indicate a second discard end sequence number of an image slice that needs to be retransmitted in the second image frame, the second slice number element is used to indicate the number of image slices in the second image frame, the interval formed by the second retransmission start element and the second retransmission end element belongs to the interval formed by the second discard start element and the second discard end element, and the second discard start element, the second discard end element, the second retransmission start element and the second retransmission end element are all smaller than the second slice number element; Generating a first data stream according to the first discard start element and the first discard end element in the first matrix column, and generating a first retransmission data stream according to the first retransmission start element and the first retransmission end element, comprising: A second data stream is generated according to the first discard start element and the first discard end element in the first matrix column, and the second discard start element and the second discard end element in the second matrix column; and a first retransmission data stream is generated according to the first retransmission start element and the first retransmission end element in the first matrix column, and the second retransmission start element and the second retransmission end element in the second matrix column.

[0012] In the above scheme, multiple segments of discarded image segments and multiple segments of retransmitted image segments are designed in multiple frames of images, thereby making the verification message richer.

[0013] In some possible designs, the first discard start sequence number, the first discard end sequence number, the first retransmission start sequence number, and the first retransmission end sequence number are all generated by a random function.

[0014] In the above scheme, the first discard start sequence number, the first discard end sequence number, the first retransmission start sequence number, and the first retransmission end sequence number are all generated by a random function, making them more random.

[0015] In some possible designs, the first discard start sequence number, the first discard end sequence number, the first retransmission start sequence number, and the first retransmission end sequence number are all input by the user.

[0016] In a second aspect, a verification message generating device is provided, the device comprising: A matrix generation module, configured to generate a first matrix column of a first matrix, wherein the first matrix column includes a first discard start element, a first discard end element, a first retransmission start element, a first retransmission end element, and a first slice quantity element, wherein the first discard start element is used to indicate a first discard start sequence number of an image slice to be discarded in a first image frame, the first discard end element is used to indicate a first discard end sequence number of an image slice to be discarded in the first image frame, the first retransmission start element is used to indicate a first retransmission start sequence number of an image slice to be retransmitted in the first image frame, the first retransmission end element is used to indicate a first retransmission end sequence number of an image slice to be retransmitted in the first image frame, the first slice quantity element is used to indicate the number of image slices in the first image frame, the interval formed by the first retransmission start element and the first retransmission end element belongs to the interval formed by the first discard start element and the first discard end element, and the first discard start element, the first discard end element, the first retransmission start element, and the first retransmission end element are all smaller than the first slice quantity element; A stream generating module is used to generate a first data stream according to the first discarding start element and the first discarding end element in the first matrix column, and to generate a first retransmission data stream according to the first retransmission starting element and the first retransmission end element.

[0017] In a third aspect, a computing device is provided, the computing device comprising a processor and a memory; The processor is used to execute instructions stored in the memory so that the computing device performs the operating steps of the method described in any one of the first aspects.

[0018] In a fourth aspect, a computing device cluster is provided, comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster performs the operating steps of the method as described in any one of the first aspects.

[0019] In a fifth aspect, a computer program product comprising instructions is provided. When the instructions are executed by a computing device or a cluster, the computing device or the cluster executes the operation steps of the method described in any one of the first aspects.

[0020] In a sixth aspect, a computer-readable storage medium is provided, comprising computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the operation steps of the method described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.

[0022] Figure 1 It is a flowchart of a verification message generation method provided by the present application; Figure 2 is a structural schematic diagram of a first matrix provided by this application; Figure 3 It is a flowchart of another verification message generation method provided by the present application; Figure 4 is a structural schematic diagram of another first matrix provided by the present application; Figure 5 It is a structural diagram of a verification message generating device provided by the present application; Figure 6 It is a structural schematic diagram of a computing device provided by this application. DETAILED DESCRIPTION

[0023] The embodiments of the present invention are described below in conjunction with the accompanying drawings in the embodiments of the present invention. The terms used in the implementation mode of the present invention are only used to explain the specific embodiments of the present invention, and are not intended to limit the present invention.

[0024] See also Figure 1 , Figure 1 This is a flow chart of a verification message generation method provided by this application. Figure 1 As shown, the verification message generation method of the present application includes: S101: A computing device generates a first matrix.

[0025] The first matrix includes a plurality of matrix columns, for example, a first matrix column and a second matrix column. The first matrix corresponds to a first image frame, and the first image frame may include a plurality of image slices, for example, the first image frame may include 64 image slices, may include 128 image slices, etc., which are not specifically limited here.

[0026] The following description will be made by taking the first matrix column and the second matrix column as examples.

[0027] The first matrix column includes a first discard start element, a first discard end element, a first retransmission start element, a first retransmission end element, and a first fragmentation number element.

[0028] The first discard start element is used to indicate the first discard start sequence number of the image slices to be discarded in the first image frame. Therefore, according to the first discard start sequence number and the first discard end element, it is possible to determine which image slices in the first image frame are to be discarded.

[0029] The first retransmission start element is used to indicate the first retransmission start sequence number of the image slice that needs to be retransmitted in the first image frame. The first retransmission end element is used to indicate the first retransmission end sequence number of the image slice that needs to be retransmitted in the first image frame. Therefore, according to the first retransmission start sequence number and the first retransmission end element, it is possible to determine which image slices in the first image frame are to be retransmitted. Since only the discarded image slices need to be retransmitted, the interval formed by the first retransmission start element and the first retransmission end element belongs to the interval formed by the first discard start element and the first discard end element. Here, belonging means that the interval formed by the first retransmission start element and the first retransmission end element is equal to the interval formed by the first discard start element and the first discard end element, or the interval formed by the first retransmission start element and the first retransmission end element is smaller than the interval formed by the first discard start element and the first discard end element.

[0030] The first number of slices element is used to indicate the number of image slices in the first image frame. The first discard start element, the first discard end element, the first retransmission start element, and the first retransmission end element are all smaller than the first number of slices element.

[0031] The second matrix column includes a second discard start element, a second discard end element, a second retransmission start element, and a second retransmission end element.

[0032] The second discard start element is used to indicate the second discard start sequence number of the image slice that needs to be discarded in the first image frame, and the second discard end element is used to indicate the second discard end sequence number of the image slice that needs to be discarded in the first image frame. Therefore, according to the second discard start sequence number and the second discard end element, it is possible to determine which image slices in the first image frame are to be discarded.

[0033] The second retransmission start element is used to indicate the second discard start sequence number of the image slices that need to be retransmitted in the first image frame, and the second retransmission end element is used to indicate the second discard end sequence number of the image slices that need to be retransmitted in the first image frame. Therefore, according to the second retransmission start sequence number and the second retransmission end element, it is possible to determine which image slices in the first image frame are to be retransmitted. Since only the discarded image slices need to be retransmitted, the interval formed by the second retransmission start element and the second retransmission end element belongs to the interval formed by the second discard start element and the second discard end element. Here, belonging means that the interval formed by the second retransmission start element and the second retransmission end element is equal to the interval formed by the second discard start element and the second discard end element, or the interval formed by the second retransmission start element and the second retransmission end element is smaller than the interval formed by the second discard start element and the second discard end element.

[0034] The second matrix column may further include a matrix column quantity element. The matrix column quantity element is generated by a random function or is input by a user. The value in the matrix column quantity element is equal to the number of columns of the first matrix, that is, the value in the matrix column quantity element indicates how many image slices need to be discarded in the first image frame.

[0035] The second discard start element, the second discard end element, the second retransmission start element, and the second retransmission end element are all smaller than the first fragment quantity element.

[0036] There is no intersection between the interval formed by the first discard start element and the first discard end element and the interval formed by the second discard start element and the second discard end element. For example, the second discard start element is greater than the first discard end element.

[0037] The elements in the first matrix may all be generated by a random function, or may be input by a user, which is not specifically limited here.

[0038] The following will Figure 2 Taking the example shown in the figure as an example, the first matrix is ​​introduced in detail. Figure 2As shown, the values ​​of the first slice number element and the matrix column number element in the fifth row of the first matrix are 15 and 5 respectively. Therefore, the first image frame has a total of 15 image slices, and 5 of the image slices need to be discarded. The discard start sequence number in the first matrix column is 1, and the discard end sequence number is 2; the discard start sequence number in the second matrix column is 4, and the discard end sequence number is 7; the discard start sequence number in the third matrix column is 8, and the discard end sequence number is 8; the discard start sequence number in the fourth matrix column is 10, and the discard end sequence number is 11; the discard start sequence number in the fifth matrix column is 13, and the discard end sequence number is 14. The retransmission start sequence number in the first matrix column is 1, and the retransmission end sequence number is 2; the retransmission start sequence number in the second matrix column is 5, and the retransmission end sequence number is 6; the retransmission start sequence number in the third matrix column is 8, and the retransmission end sequence number is 8; the retransmission start sequence number in the fourth matrix column is 10, and the retransmission end sequence number is 11; the retransmission start sequence number in the fifth matrix column is 13, and the retransmission end sequence number is 14.

[0039] It can be understood that the above-mentioned first matrix is ​​only a specific example. In actual applications, the number of columns of the first matrix can be less or more, and the value of each element in the first matrix can also be other numerical values. Various different matrices can be obtained by changing the number of columns of the first matrix and the values ​​of the elements in the first matrix.

[0040] S102: The computing device generates a first data stream and a first retransmission data stream of a first image frame according to a first matrix.

[0041] The computing device generates a second data stream according to the first discard start element and the first discard end element in the first matrix column, the second discard start element and the second discard end element in the second matrix column, and generates a first retransmission data stream according to the first retransmission start element and the first retransmission end element in the first matrix column, the second retransmission start element and the second retransmission end element in the second matrix column.

[0042] Continue with Figure 2 As an example, the computing device is based on Figure 2 The first matrix shown generates a first data stream, which includes the image slice with sequence number 0, the image slice with sequence number 3, and the image slice with sequence number 9 in the first image frame. In addition, a first retransmission data stream is also generated, which includes the image slice with sequence number 1, the image slice with sequence number 2, the image slice with sequence number 5, the image slice with sequence number 6, the image slice with sequence number 8, the image slice with sequence number 10, the image slice with sequence number 13, and the image slice with sequence number 14.

[0043] It can be understood that the above-mentioned first data stream and first retransmission data stream are only used as specific examples. In actual applications, different matrices can generate different first data streams and first retransmission data streams accordingly, thereby constructing a variety of verification messages to verify the smart network card.

[0044] See also Figure 3 , Figure 3 FIG. 1 is a flow chart of another verification message generation method provided by the present application. Figure 3 As shown, the verification message generation method of the present application includes: S201: The computing device generates a first matrix.

[0045] The first matrix includes a plurality of matrix columns, and different matrices correspond to different image frames, for example, a first matrix column and a second matrix column. The first matrix corresponds to a first image frame, and the second matrix corresponds to a second image frame. The first image frame may include a plurality of image slices, for example, the first image frame may include 64 image slices, may include 128 image slices, etc., which are not specifically limited here. The second image frame may include a plurality of image slices, for example, the second image frame may include 64 image slices, may include 128 image slices, etc., which are not specifically limited here.

[0046] The following description will be made by taking the first matrix column and the second matrix column as examples.

[0047] The first matrix column includes a first discard start element, a first discard end element, a first retransmission start element, a first retransmission end element, and a first fragmentation number element.

[0048] The first discard start element is used to indicate the first discard start sequence number of the image slices to be discarded in the first image frame. Therefore, according to the first discard start sequence number and the first discard end element, it is possible to determine which image slices in the first image frame are to be discarded.

[0049] The first retransmission start element is used to indicate the first retransmission start sequence number of the image slice that needs to be retransmitted in the first image frame. The first retransmission end element is used to indicate the first retransmission end sequence number of the image slice that needs to be retransmitted in the first image frame. Therefore, according to the first retransmission start sequence number and the first retransmission end element, it is possible to determine which image slices in the first image frame are to be retransmitted. Since only the discarded image slices need to be retransmitted, the interval formed by the first retransmission start element and the first retransmission end element belongs to the interval formed by the first discard start element and the first discard end element. Here, belonging means that the interval formed by the first retransmission start element and the first retransmission end element is equal to the interval formed by the first discard start element and the first discard end element, or the interval formed by the first retransmission start element and the first retransmission end element is smaller than the interval formed by the first discard start element and the first discard end element.

[0050] The first number of slices element is used to indicate the number of image slices in the first image frame. The first discard start element, the first discard end element, the first retransmission start element, and the first retransmission end element are all smaller than the first number of slices element.

[0051] The second matrix column includes a second discard start element, a second discard end element, a second retransmission start element, a second retransmission end element, and a second number of fragments.

[0052] The second discard start element is used to indicate the second discard start sequence number of the image slices to be discarded in the second image frame. Therefore, it is possible to determine which image slices in the second image frame to be discarded according to the second discard start sequence number and the second discard end element.

[0053] The second retransmission start element is used to indicate the second retransmission start sequence number of the image slice that needs to be retransmitted in the second image frame. The second retransmission end element is used to indicate the second retransmission end sequence number of the image slice that needs to be retransmitted in the second image frame. Therefore, according to the second retransmission start sequence number and the second retransmission end element, it is possible to determine which image slices in the second image frame are to be retransmitted. Since only the discarded image slices need to be retransmitted, the interval formed by the second retransmission start element and the second retransmission end element belongs to the interval formed by the second discard start element and the second discard end element. Here, belonging means that the interval formed by the second retransmission start element and the second retransmission end element is equal to the interval formed by the second discard start element and the second discard end element, or the interval formed by the second retransmission start element and the second retransmission end element is smaller than the interval formed by the second discard start element and the second discard end element.

[0054] The second number of slices element is used to indicate the number of image slices in the second image frame. The second discard start element, the second discard end element, the second retransmission start element, and the second retransmission end element are all smaller than the second number of slices element.

[0055] The elements in the first matrix may all be generated by a random function, or may be input by a user, which is not specifically limited here.

[0056] The following will Figure 4 Taking the example shown in the figure as an example, the first matrix is ​​introduced in detail. Figure 4 As shown, the 5 slice number elements in the fifth row of the first matrix are 6, 8, 6, 6, and 4. That is, the first image frame has 6 image slices, the second image frame has 8 image slices, the third image frame has 6 image slices, the fourth image frame has 6 image slices, and the fifth image frame has 4 image slices.

[0057] The discarding start sequence number in the first matrix column is 1, and the discarding end sequence number is 3; the discarding start sequence number in the second matrix column is 2, and the discarding end sequence number is 4; the discarding start sequence number in the third matrix column is 4, and the discarding end sequence number is 5; the discarding start sequence number in the fourth matrix column is 0, and the discarding end sequence number is 5; the discarding start sequence number in the fifth matrix column is 3, and the discarding end sequence number is 3. In other words, the first image frame needs to discard the image slices with sequence numbers 1 to 3, and retain the image slices with sequence numbers 0, 4 to 5; the second image frame needs to discard the image slices with sequence numbers 2 to 4, and retain the image slices with sequence numbers 0, 5 to 7; the third image frame needs to discard the image slices with sequence numbers 4 to 5, and retain the image slices with sequence numbers 0 to 3; the fourth image frame needs to discard the image slices with sequence numbers 0 to 5; the fifth image frame needs to discard the image slice with sequence number 3, and retain the image slices with sequence numbers 0 to 2.

[0058] The retransmission start sequence number in the first matrix column is 1, and the retransmission end sequence number is 3; the retransmission start sequence number in the second matrix column is 2, and the retransmission end sequence number is 3; the retransmission start sequence number in the third matrix column is 4, and the retransmission end sequence number is 4; the retransmission start sequence number in the fourth matrix column is 0, and the retransmission end sequence number is 5; the retransmission start sequence number in the fifth matrix column is 3, and the retransmission end sequence number is 3. In other words, the first image frame needs to retransmit the image slices with sequence numbers 1 to 3; the second image frame needs to retransmit the image slices with sequence numbers 2 to 3; the third image frame needs to retransmit the image slices with sequence numbers 4 to 4; the fourth image frame needs to retransmit the image slices with sequence numbers 0 to 5; and the fifth image frame needs to retransmit the image slice with sequence number 3.

[0059] It can be understood that the above-mentioned first matrix is ​​only a specific example. In actual applications, the number of columns of the first matrix can be less or more, and the value of each element in the first matrix can also be other numerical values. Various different matrices can be obtained by changing the number of columns of the first matrix and the values ​​of the elements in the first matrix.

[0060] S202: The computing device generates a first data stream and a first retransmission data stream of a first image sequence according to a first matrix.

[0061] The computing device generates a second data stream according to the first discard start element and the first discard end element in the first matrix column, the second discard start element and the second discard end element in the second matrix column, and generates a first retransmission data stream according to the first retransmission start element and the first retransmission end element in the first matrix column, the second retransmission start element and the second retransmission end element in the second matrix column.

[0062] Continue with Figure 4 As an example, the computing device is based on Figure 4 The first matrix shown generates a first data stream, which includes image slices numbered 0, 4 to 5 in the first image frame, image slices numbered 0, 5 to 7 in the second image frame, image slices numbered 0 to 3 in the third image frame, and image slices numbered 0 to 2 in the fifth image frame.

[0063] In addition, a first retransmission data stream is generated, which includes image slices numbered 1 to 3 of the first image frame, image slices numbered 2 to 3 of the second image frame, image slices numbered 4 to 4 of the third image frame, image slices numbered 0 to 5 of the fourth image frame; and image slice numbered 3 of the fifth image frame.

[0064] It can be understood that the above-mentioned first data stream and first retransmission data stream are only used as specific examples. In actual applications, different matrices can generate different first data streams and first retransmission data streams accordingly, thereby constructing a variety of verification messages to verify the smart network card.

[0065] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of a verification message generation device provided by this application. Figure 5 As shown, the verification message generating device includes: The matrix generating module 110 is used to generate a first matrix column of a first matrix, wherein the first matrix column includes a first discarding start element, a first discarding end element, a first retransmission starting element, a first retransmission ending element and a first slice number element, wherein the first discarding start element is used to indicate a first discarding start sequence number of a slice to be discarded in a first image frame, the first discarding end element is used to indicate a first discarding end sequence number of a slice to be discarded in the first image frame, the first retransmission starting element is used to indicate a first retransmission starting sequence number of a slice to be retransmitted in the first image frame, the first retransmission ending element is used to indicate a first retransmission ending sequence number of a slice to be retransmitted in the first image frame, the first slice number element is used to indicate the number of slices in the first image frame, the interval formed by the first retransmission starting element and the first retransmission ending element belongs to the interval formed by the first discarding start element and the first discarding end element, and the first discarding start element, the first discarding end element, the first retransmission starting element and the first retransmission ending element are all smaller than the first slice number element; The stream generating module 120 is configured to generate a first data stream according to the first discarding start element and the first discarding end element in the first matrix column, and to generate a first retransmission data stream according to the first retransmission starting element and the first retransmission end element.

[0066] The verification message generating device can be used to perform the following steps: Figure 1 or Figure 3 For details on how to generate the verification message, see Figure 1 , Figure 3 And related descriptions will not be repeated here.

[0067] See also Figure 6 , Figure 6 4 is a schematic diagram of a computing device provided by the present application. The computing device 400 includes: one or more processors 410 , a communication interface 420 and a memory 430 .

[0068] The processor 410, the communication interface 420 and the memory 430 are interconnected via a bus 440. Optionally, the computing device 400 may further include an input / output interface 450, which is connected to an input / output device for receiving parameters set by a user, etc. The computing device 400 can be used to implement part or all of the functions of the device embodiment or system embodiment in the above-mentioned embodiments of the present application; the processor 410 can also be used to implement part or all of the operating steps of the method embodiment in the above-mentioned embodiments of the present application. For example, the specific implementation of the various operations performed by the computing device 400 can refer to the specific details in the above-mentioned embodiments, such as the processor 410 is used to execute part or all of the steps in the above-mentioned method embodiment or part or all of the operations in the above-mentioned method embodiment. For another example, in the embodiments of the present application, the computing device 400 can be used to implement part or all of the functions of one or more components in the above-mentioned device embodiment, and in addition, the communication interface 420 can be specifically used for the communication functions necessary to implement the functions of these devices and components, etc., and the processor 410 can be specifically used for the processing functions necessary to implement the functions of these devices and components, etc. For example, the processor can be Figure 6 The processor in.

[0069] Figure 6 The computing device 400 may include one or more processors 410, and the multiple processors 410 may provide processing capabilities in a parallel connection mode, a serial connection mode, a serial-parallel connection mode, or any connection mode, or the multiple processors 410 may form a processor sequence or a processor array, or the multiple processors 410 may be divided into a main processor and an auxiliary processor, or the multiple processors 410 may have different architectures such as a heterogeneous computing architecture. In addition, Figure 6 The computing device 400 shown in the figure, and the related structural description and functional description are exemplary and non-limiting. In some exemplary embodiments, the computing device 400 may include Figure 6 More or fewer components may be shown, or some components may be combined or separated, or may have a different arrangement of components.

[0070] The processor 410 may have a variety of specific implementation forms. For example, the processor 410 may include a processor (central processing unit, CPU), a graphic processing unit (graphic processing unit, GPU), a neural-network processing unit (neural-network processing unit, NPU), a tensor processing unit (tensor processing unit, TPU) or a data processing unit (data processing unit, DPU) and other combinations thereof, which are not specifically limited in the embodiments of the present application. The processor 410 may also be a single-core processor or a multi-core processor. The processor 410 may be a combination of a CPU and a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a generic array logic (generic array logic, GAL) or any combination thereof. The processor 410 may also be implemented using a logic device with built-in processing logic alone, such as an FPGA or a digital signal processor (digital signal processor, DSP), etc.

[0071] The communication interface 420 may be a wired interface or a wireless interface for communicating with other modules or devices. The wired interface may be an Ethernet interface, a local interconnect network (LIN), etc., and the wireless interface may be a cellular network interface or a wireless local area network interface, etc.

[0072] The memory 430 may be a non-volatile memory, such as a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The memory 430 may also be a volatile memory, which may be a random access memory (RAM) used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous connection dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). The memory 430 may also be used to store program codes and data, so that the processor 410 calls the program codes stored in the memory 430 to execute some or all of the operation steps in the above method embodiment, or to execute the corresponding functions in the above device embodiment. Figure 6 Show more or fewer components, or have different component configurations.

[0073] The bus 440 may be a peripheral component interconnect express (PCIe) bus, an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a compute express link (CXL), a cache coherent interconnect for accelerators (CCIX), etc. The bus 440 may be divided into an address bus, a data bus, a control bus, etc. In addition to the data bus, the bus 440 may also include a power bus, a control bus, and a status signal bus, etc. However, for the sake of clarity, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0074] The present application also provides a system, which includes multiple computing devices, and the structure of each computing device can refer to the structure of the computing device described above. The functions or operations that can be implemented by the system can refer to the specific implementation steps in the above method embodiment and / or the specific functions described in the above device embodiment, which will not be repeated here.

[0075] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one network site, computer, server or data center to another network site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer, or it can be a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape, etc.), an optical medium (e.g., a DVD, etc.), or a semiconductor medium (e.g., a solid-state hard disk), etc. In the above embodiments, the description of each embodiment has different emphases. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

Claims

1. A verification message generation method, characterized in that: include: Generate a first matrix column of a first matrix, wherein the first matrix column includes a first discard start element, a first discard end element, a first retransmission start element, a first retransmission end element, and a first slice number element, the first discard start element is used to indicate a first discard start sequence number of an image slice that needs to be discarded in the first image frame, the first discard end element is used to indicate a first discard end sequence number of an image slice that needs to be discarded in the first image frame, the first retransmission start element is used to indicate a first retransmission start sequence number of an image slice that needs to be retransmitted in the first image frame, the first retransmission end element is used to indicate a first retransmission end sequence number of an image slice that needs to be retransmitted in the first image frame, the first slice number element is used to indicate the number of image slices in the first image frame, the interval formed by the first retransmission start element and the first retransmission end element belongs to the interval formed by the first discard start element and the first discard end element, and the first discard start element, the first discard end element, the first retransmission start element, and the first retransmission end element are all smaller than the first slice number element; A first data stream is generated according to the first discard start element and the first discard end element in the first matrix column, and a first retransmission data stream is generated according to the first retransmission start element and the first retransmission end element.

2. The method according to claim 1, characterized in that The method further comprises: Generate a second matrix column of the first matrix, wherein the second matrix column includes a second discard start element, a second discard end element, a second retransmission start element, and a second retransmission end element, the second discard start element is used to indicate a second discard start sequence number of an image slice that needs to be discarded in the first image frame, the second discard end element is used to indicate a second discard end sequence number of an image slice that needs to be discarded in the first image frame, the second retransmission start element is used to indicate a second discard start sequence number of an image slice that needs to be retransmitted in the first image frame, the second retransmission end element is used to indicate a second discard end sequence number of an image slice that needs to be retransmitted in the first image frame, the interval formed by the second retransmission start element and the second retransmission end element belongs to the interval formed by the second discard start element and the second discard end element, the second discard start element, the second discard end element, the second retransmission start element, and the second retransmission end element are all smaller than the first slice number element, and there is no intersection between the interval formed by the first discard start element and the first discard end element and the interval formed by the second discard start element and the second discard end element; Generating a first data stream according to the first discard start element and the first discard end element in the first matrix column, and generating a first retransmission data stream according to the first retransmission start element and the first retransmission end element, comprising: A second data stream is generated according to the first discard start element and the first discard end element in the first matrix column, and the second discard start element and the second discard end element in the second matrix column; and a first retransmission data stream is generated according to the first retransmission start element and the first retransmission end element in the first matrix column, and the second retransmission start element and the second retransmission end element in the second matrix column.

3. The method according to claim 2, characterized in that The second discard start element is greater than the first discard end element.

4. The method according to claim 2, characterized in that: The number of columns of the first matrix columns is equal to a matrix column quantity element, wherein the matrix column quantity element is generated by a random function or is input by a user.

5. The method according to claim 1, characterized in that The method further comprises: Generate a second matrix column of the first matrix column, wherein the second matrix column includes a second discard start element, a second discard end element, a second retransmission start element, a second retransmission end element and a second slice number element, the second discard start element is used to indicate a second discard start sequence number of an image slice that needs to be discarded in a second image frame, the second discard end element is used to indicate a second discard end sequence number of an image slice that needs to be discarded in the second image frame, the second retransmission start element is used to indicate a second discard start sequence number of an image slice that needs to be retransmitted in the second image frame, the second retransmission end element is used to indicate a second discard end sequence number of an image slice that needs to be retransmitted in the second image frame, the second slice number element is used to indicate the number of image slices in the second image frame, the interval formed by the second retransmission start element and the second retransmission end element belongs to the interval formed by the second discard start element and the second discard end element, and the second discard start element, the second discard end element, the second retransmission start element and the second retransmission end element are all smaller than the second slice number element; Generating a first data stream according to the first discard start element and the first discard end element in the first matrix column, and generating a first retransmission data stream according to the first retransmission start element and the first retransmission end element, comprising: A second data stream is generated according to the first discard start element and the first discard end element in the first matrix column, and the second discard start element and the second discard end element in the second matrix column; and a first retransmission data stream is generated according to the first retransmission start element and the first retransmission end element in the first matrix column, and the second retransmission start element and the second retransmission end element in the second matrix column.

6. The method according to any one of claims 1 to 5, characterized in that: The first discard start sequence number, the first discard end sequence number, the first retransmission start sequence number, and the first retransmission end sequence number are all generated by a random function.

7. The method according to any one of claims 1 to 5, characterized in that: The first discard start sequence number, the first discard end sequence number, the first retransmission start sequence number, and the first retransmission end sequence number are all input by a user.

8. A verification message generating device, characterized in that: The device comprises: A matrix generation module, configured to generate a first matrix column of a first matrix, wherein the first matrix column includes a first discard start element, a first discard end element, a first retransmission start element, a first retransmission end element, and a first slice quantity element, wherein the first discard start element is used to indicate a first discard start sequence number of an image slice that needs to be discarded in a first image frame, the first discard end element is used to indicate a first discard end sequence number of an image slice that needs to be discarded in the first image frame, the first retransmission start element is used to indicate a first retransmission start sequence number of an image slice that needs to be retransmitted in the first image frame, the first retransmission end element is used to indicate a first retransmission end sequence number of an image slice that needs to be retransmitted in the first image frame, the first slice quantity element is used to indicate the number of image slices in the first image frame, the interval formed by the first retransmission start element and the first retransmission end element belongs to the interval formed by the first discard start element and the first discard end element, and the first discard start element, the first discard end element, the first retransmission start element, and the first retransmission end element are all smaller than the first slice quantity element; A stream generating module is used to generate a first data stream according to the first discarding start element and the first discarding end element in the first matrix column, and to generate a first retransmission data stream according to the first retransmission starting element and the first retransmission end element.

9. A computing device, characterized in that The computing device includes a processor and a memory; The processor is configured to execute instructions stored in the memory so that the computing device performs the operation steps of the method according to any one of claims 1 to 7.

10. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster performs the operation steps of the method according to any one of claims 1 to 7.

11. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device or a cluster, the computing device or the cluster executes the operation steps of the method according to any one of claims 1 to 7.

12. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the operation steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Playback method for random flow retransmission and discard

    CN102065010A

  • Mitigation of traffic congestion in dual connectivity systems

    CN105493554A

  • Method and device for testing performance of base station in wireless local area network

    CN110248379A

  • AFXDP-based GigE Vision protocol data packet processing method and system

    CN115714826A

  • Message transmitting and receiving method, network equipment, system and storage medium

    CN116155826A