Ethernet message control code block inspection method, device, server and storage medium

By generating and modifying the target control code block of the Ethernet message, and analyzing the results to verify the validity of the code block, the problem of Ethernet chip design defects in the existing technology is solved, and the success rate of tape-out and the accuracy of data processing are improved. sex.

CN114979311BActive Publication Date: 2024-09-06SUZHOU CENTEC COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210571192.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-24
Publication Date
2024-09-06
Estimated Expiration
2042-05-24

AI Technical Summary

Technical Problem

The existing technology lacks an effective Ethernet 66-bit control code block inspection method, resulting in defects in the Ethernet chip design and tape-out failure.

Method used

By generating target control code blocks, the Ethernet message set is modified and parsed to determine whether the parsing results are consistent with the expected results to verify the validity of the target control code blocks.

Benefits of technology

The Ethernet chip design has been improved, the tape-out success rate has been improved, the correct identification and processing of abnormal data has been ensured, and data interference has been avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114979311B
    Figure CN114979311B
Patent Text Reader

Abstract

The embodiments of the present invention provide an Ethernet message control code block inspection method, device, server and storage medium, including: generating an Ethernet message set according to a first preset configuration; generating at least one target control code block according to a second preset configuration; modifying one or more Ethernet messages in the Ethernet message set based on the target control code block to obtain a modified Ethernet message set; parsing the modified Ethernet message set to obtain a parsing result; determining whether the parsing result is consistent with the expected result; if so, the target control code block passes the inspection. The Ethernet message control code block inspection method provided by the present invention can reduce the defects of Ethernet chips during design and improve the success rate of tape-out.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network technology, and in particular to an Ethernet message control code block inspection method, device, server and storage medium. Background Art

[0002] The Ethernet 66-bit control code block defined in the IEEE802.3 protocol is a very important control character code block in Ethernet data transmission. It contains the start and end of the message, whether the connection between the local and remote switches is normal, and other various control functions.

[0003] In the prior art, since there is no method for checking the Ethernet 66-bit control code block, the designed Ethernet chips often have certain defects. Summary of the invention

[0004] The present application provides an Ethernet message control code block inspection method, device, server and storage medium to at least partially solve the above technical problems.

[0005] The embodiments of the present application can be implemented as follows:

[0006] In a first aspect, the present application provides an Ethernet message control code block inspection method, comprising:

[0007] Generate an Ethernet message set according to the first preset configuration;

[0008] generating at least one target control code block according to a second preset configuration;

[0009] Based on the target control code block, modify one or more Ethernet messages in the Ethernet message set to obtain a modified Ethernet message set;

[0010] Parsing the modified Ethernet message set to obtain a parsing result;

[0011] Determine whether the analysis result is consistent with the expected result;

[0012] If so, the target control code block passes the test.

[0013] Optionally, the target control code block includes a normal target control code block and an abnormal target control code block, and the modifying one or more Ethernet messages in the Ethernet message set includes:

[0014] inserting the normal target control code block and / or the abnormal target control code block into one or more Ethernet messages in the Ethernet message set; or,

[0015] The control code block in one or more Ethernet messages in the Ethernet message set is replaced with the abnormal target control code block.

[0016] Optionally, determining whether the parsing result is consistent with the expected result includes:

[0017] Determining whether the parsing result matches an expected abnormal result corresponding to the modification of the Ethernet message by the target control code block;

[0018] If not, a first error signal is sent to the terminal device and the inspection is stopped.

[0019] Optionally, the method further comprises:

[0020] Backing up the Ethernet message set;

[0021] The backed-up Ethernet message set is parsed to obtain a comparative parsing result.

[0022] Optionally, the method further comprises:

[0023] If the parsing result matches the expected abnormal result corresponding to the modification of the Ethernet message by the target control code block;

[0024] determining whether, among the analysis results, the analysis results corresponding to the remaining Ethernet messages, except for the analysis result corresponding to the modified Ethernet message, match the comparison analysis results corresponding to the remaining Ethernet messages;

[0025] If not, a second error signal is sent to the terminal device and the inspection is stopped.

[0026] Optionally, the parsing the modified Ethernet message set further includes:

[0027] If the parsing of the modified Ethernet message set is not completed within the preset time, a third error signal is sent to the terminal device and the parsing is stopped.

[0028] Optionally, the abnormal target control code block includes a message header error abnormal code block, a type field error abnormal code block and a remaining error abnormal code block, and each abnormal target control code block corresponds to a different expected abnormal result.

[0029] In a second aspect, an embodiment of the present invention provides an Ethernet message control code block inspection device, comprising:

[0030] An Ethernet message generating unit, configured to generate an Ethernet message set according to a first preset configuration;

[0031] A target control code block generating unit, configured to generate at least one target control code block according to a second preset configuration;

[0032] An Ethernet message modification unit, configured to modify one or more Ethernet messages in the Ethernet message set based on the target control code block to obtain a modified Ethernet message set;

[0033] A parsing unit, used for parsing the modified Ethernet message set to obtain a parsing result;

[0034] The verification unit is used to determine whether the parsing result is consistent with the expected result; if so, the target control code block passes the verification.

[0035] In a third aspect, the present application provides a server, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above methods when executing the program.

[0036] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a computer program, and when the computer program is executed, the server where the computer-readable storage medium is located is controlled to implement the steps of any of the above methods.

[0037] The beneficial effects of the embodiments of the present application include, for example:

[0038] By generating a target control code block, the generated Ethernet message is modified, and then it is determined whether the parsing result of the modified Ethernet message meets the expectations, and then it is checked whether the impact of the target control code block on the Ethernet message meets the expectations, so as to improve the defects in the Ethernet chip design. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0040] Figure 1 A schematic diagram of the structure of a server provided in an embodiment of the present invention;

[0041] Figure 2 A flowchart of a method for checking Ethernet message control blocks provided by an embodiment of the present invention;

[0042] Figure 3 A sub-step flow chart of an Ethernet message control code block inspection method provided by an embodiment of the present invention;

[0043] Figure 4 An architectural diagram of an Ethernet message control code block inspection device provided by an embodiment of the present invention;

[0044] Figure 5 Another architecture diagram of an Ethernet message control code block checking device provided by an embodiment of the present invention.

[0045] Icon: Icon: 100-server; 110-memory; 120-processor; 130-communication module; 300-Ethernet message control code block verification device; 301-Ethernet message generation unit; 302-target control code block generation unit; 303-Ethernet message modification unit; 304-parsing unit; 305-verification unit. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0047] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0049] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.

[0050] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.

[0051] Please refer to Figure 1, is a block diagram of a server 100 provided in an embodiment of the present invention, including a memory 110, a processor 120 and a communication module 130. The memory 110, the processor 120 and the communication module 130. Each component is directly or indirectly electrically connected to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0052] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, a random access memory (RAM), 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), etc.

[0053] The processor 120 is used to read / write data or programs stored in the memory and execute corresponding functions.

[0054] The communication module 130 is used to establish a communication connection between the server and other communication terminals through the network, and to send and receive data through the network.

[0055] It should be understood that Figure 1 The structure shown is only a schematic diagram of the structure of the server 100. The server 100 may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown, for example: the server 100 may also include an Ethernet message generation unit, a target control code block generation unit, an Ethernet message modification unit, and the like. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0056] The Ethernet message control code block inspection method provided by the embodiment of the present invention can be applied to various application scenarios such as Ethernet data transmission fault testing and Ethernet chip design.

[0057] The Ethernet 66-bit control code block defined in the IEEE802.3 protocol is a very important control character code block in Ethernet data transmission. It contains the start and end of the message, whether the connection between the local and remote switches is normal, and other various control functions.

[0058] In the actual transmission process of Ethernet data, due to the influence of various external environmental factors, the data being transmitted will be interfered with, resulting in distortion of the transmitted data. In this case, the data is abnormal data, and the data received by this end does not meet the protocol requirements of IEEE802.3, so special processing is required for the abnormal data. Special processing is mainly reflected in two aspects: first, it can correctly identify these abnormal data and process them reasonably; second, it ensures that the transmission of these abnormal data does not interfere with the transmission of other normal data.

[0059] In Ethernet chips, the entire Ethernet chip design often fails because the abnormal 66-bit code blocks are not taken into account during the design. Even if some designs take into account the need to handle abnormal 66-bit code blocks, most of them have defects in chip design due to incomplete considerations and incomplete designs. In addition, since there is no complete set of Ethernet 66-bit control code block abnormality detection methods during the verification process, the verification is not sufficient, which ultimately leads to chip tape-out failure.

[0060] See also Figure 2 , is a flowchart of a method for checking an Ethernet message control code block provided in an embodiment of this specification, which mainly includes the following steps:

[0061] Step S110: Generate an Ethernet message set according to the first preset configuration.

[0062] Step S120: Generate at least one target control code block according to the second preset configuration.

[0063] Step S130: Based on the target control code block, modify one or more Ethernet messages in the Ethernet message set to obtain a modified Ethernet message set.

[0064] Step S140: Parse the modified Ethernet message set to obtain a parsing result.

[0065] Step S150: Determine whether the parsing result is consistent with the expected result; if so, the target control code block passes the test.

[0066] In step S110, an Ethernet message set is generated according to a first preset configuration.

[0067] An Ethernet packet under the IEEE 802.3 protocol has the following format: <inter-frame (Inter-frame gap)><preamble (Preamble)><sfd (Start Frame Delimiter)><data (Data)><efd (End Frame Delimiter)>. The first preset configuration can be the configuration of the Ethernet packet by the user on the terminal device, such as the data carried by the Ethernet packet. The terminal device can be a computer, a tablet with a touch screen, etc. After the user configures the Ethernet packet, the server will generate one or more Ethernet packets according to the first preset configuration, and these generated Ethernet packets form an Ethernet packet set.

[0068] In step S120, at least one target control code block is generated according to the second preset configuration.

[0069] The target control code block can be a 66-bit control code block under the IEEE 802.3 protocol, such as "00 through 05", "08 through 9B". Each 66-bit control code block has its corresponding function. For example, "FB" is used to indicate the start of the Ethernet packet, and "FD" is used to indicate the end of the Ethernet packet. Under normal circumstances, the 66-bit control code block should appear at the front and back positions of a complete Ethernet packet. The structure of the 66-bit control code block is "packet header + code block type field + remaining part". The target control code block in this embodiment can be a normal 66-bit control code block or an abnormal 66-bit control code block with a wrong structure.

[0070] As an optional embodiment, the second preset configuration can be the configuration of the target control code block by the user through the terminal device. For example, the user configures which one or several target control code blocks through the terminal device, selects abnormal or normal target control code blocks, etc. After the configuration is completed, the server obtains the second preset configuration set by the user and generates one or more target control code blocks according to the second preset configuration.

[0071] Execute step S130 to modify one or more Ethernet packets in the Ethernet packet set based on the target control code block to obtain a modified Ethernet packet set.

[0072] In order to test the influence of different 66-bit control code blocks on Ethernet messages, the target control code block generated according to the second preset configuration can be used to modify the Ethernet message set generated according to the first preset configuration. When modifying the Ethernet message set generated according to the first preset configuration, only one Ethernet message in the Ethernet message set can be modified, or multiple Ethernet messages in the Ethernet message set can be modified; only one target control code block can be used to modify the Ethernet message set, or several different target control code blocks can be used to modify the Ethernet message set; multiple target control code blocks can be used to modify one Ethernet message, or multiple target control code blocks can be used to modify multiple Ethernet messages, or one target control module can be used to modify multiple Ethernet messages. In the specific implementation process, the user can make settings according to actual needs, and this manual does not limit this.

[0073] Optionally, the target control code block includes a normal target control code block and an abnormal target control code block, and the modifying one or more Ethernet messages in the Ethernet message set includes:

[0074] inserting the normal target control code block and / or the abnormal target control code block into one or more Ethernet messages in the Ethernet message set; or,

[0075] The control code block in one or more Ethernet messages in the Ethernet message set is replaced with the abnormal target control code block.

[0076] The target control code block may be a normal 66-bit control code block, ie, a normal target control code block, or may be an abnormal 66-bit control code block, ie, an abnormal target control code block.

[0077] When the target control code block is a normal target control block, the modification of the Ethernet message set based on the target control code block can be to insert the normal target control code block into one or more Ethernet messages in the Ethernet set. Since the control code block should be located before or after the Ethernet message under normal circumstances, in order to verify the control code block, the normal target control code block can be inserted into the leading code position, data position, EFD position, etc. of the Ethernet message.

[0078] When the target control code block is an abnormal target control code block, the modification of the Ethernet message set based on the target control code block may be to replace one or more Ethernet messages in the Ethernet message set with the abnormal target control code block. In this way, the control code block at this position will not play its due role, thereby checking the abnormal target control code block.

[0079] Optionally, the target control code block includes a normal target control code block and an abnormal target control code block, and the modifying one or more Ethernet messages in the Ethernet message set may further include:

[0080] The SFD and / or EFD of one or more Ethernet messages in the Ethernet message set are replaced with the normal target control code block.

[0081] Optionally, the abnormal target control code block includes a message header error abnormal code block and a remaining error abnormal code block, and each abnormal target control code block corresponds to a different expected abnormal result.

[0082] Since the structure of the 66-bit control code block is "message header + code block type field + remaining part", the abnormal target control code block can be a control code block with errors in these three parts. The message header error abnormal code block can be an abnormal target control code block with an error in the message header; the type field error abnormal code block can be an abnormal target control code block with an error in the type field, that is, the code block type field does not belong to any of the cases listed in IEEE802.3; the remaining part error abnormal code block can be an abnormal target control code block with errors in the 10th to 65th bits corresponding to the code block type field.

[0083] Step S140 is to parse the modified Ethernet message set to obtain a parsing result.

[0084] After the Ethernet message set is modified, a DUT (Design Under Test) can be used to perform normal analysis on the modified Ethernet message set to obtain an analysis result, that is, a bit stream (Bit Torrent).

[0085] In step S150, it is determined whether the parsing result is consistent with the expected result; if so, the target control code block passes the test.

[0086] In order to verify whether the result of the server parsing the modified Ethernet message set after the control code block modifies the Ethernet message set is the same as the expected result. After obtaining the parsing result, the parsing result can be compared with the expected result. If the parsing result is consistent with the expected result, it means that the target control code block for modifying the Ethernet message set has passed the test; if the parsing result is inconsistent with the expected result, it means that the target control code block for modifying the Ethernet message set has not passed the test, and the server needs to be further modified, and then the target control code block is used again for verification.

[0087] As an optional embodiment, Figure 3 As shown, the determination of whether the parsing result is consistent with the expected result may include the following sub-steps:

[0088] Sub-step S151: determining whether the parsing result matches the expected abnormal result corresponding to the modification of the Ethernet message by the target control code block;

[0089] Sub-step S152: If not, a first error signal is sent to the terminal device and the inspection is stopped.

[0090] The first error signal may be a signal indicating that the parsing result does not match the expected abnormal result. In order to check the target control code block, the server may store the abnormal result corresponding to the modification of the Ethernet message set by each preset target control code block, ie, the expected abnormal result.

[0091] For example, the expected abnormal result corresponding to the modification of the Ethernet message set by the normal target control code block may be:

[0092] When a control code block that is not corresponding to the preamble code appears in the preamble code, or a control code block appears at the position of the SFD, the corresponding expected abnormal result should be that the following message is not recognized.

[0093] When a control code block appears at the data position, or a control code block other than EFD appears at the EFD position, the corresponding expected abnormal result should be that the current message is considered to be erroneous. At this time, the DUT should choose to continue uploading the message with an error message, or directly discard the message.

[0094] When a control code block that does not comply with protocol expectations appears in the inter-frame gap, such as an SFD in the inter-frame gap, the corresponding expected abnormal result should be that the DUT handles the state incorrectly, but it will not affect the previous and subsequent messages.

[0095] In addition, there are data code blocks that appear at the position where the control code blocks should be. For example, when the control code block appears at the leading code position, the corresponding expected abnormal result should be that the message is not recognized. When the control code block appears at the SFD position, the corresponding expected abnormal result should be that the message is wrong.

[0096] The expected abnormal result corresponding to the modification of the Ethernet message set by the abnormal target control code block can be:

[0097] If the abnormal target control code block is a message header error abnormal code block, such as an abnormal target control code block whose message header is 2'b11 or 2'b00, the corresponding expected abnormal result should be that the DUT should add one to the statistics corresponding to the illegal code block during parsing. When the abnormal target control code block appears in any position of the preamble, SFD, data, and EFD, the corresponding expected abnormal result should be that the message is considered to be an erroneous message, and the DUT can continue to upload the message with the error information, or directly discard the message.

[0098] If the abnormal target control code block appears in the frame gap, the corresponding expected abnormal result should be that the DUT handles the state incorrectly, such as the link fault state, but it will not affect the previous and subsequent messages.

[0099] If the abnormal target control code block is an abnormal code block with an error in the type field, it is assumed that the abnormal target control code block has a valid control code block header and appears in the interframe gap. The corresponding expected abnormal result should be that the DUT adds one to the statistics corresponding to the illegal code block. It is also possible that the DUT may make an error in processing the state, but it will not affect the previous and next messages.

[0100] If the abnormal target control code block is the error abnormal code block of the rest. By default, the abnormal target control code block has a legal message header and a legal type field. The corresponding expected abnormal result should be that the DUT adds one to the statistics corresponding to the illegal code block. It is also possible that the DUT may make mistakes in processing the state, but it will not affect the previous and next messages.

[0101] When checking the target control code block, it can be determined whether the parsing result matches the expected abnormal result corresponding to the modification of the Ethernet message by the target control code block. If it matches, the target control code block passes the test; if it does not match, a first error signal is sent to the terminal device and the test is stopped, so as to wait for the user to modify and debug the server again according to the first error signal.

[0102] Optionally, the method further includes: backing up the Ethernet message set; parsing the backed-up Ethernet message set to obtain a comparison and parsing result.

[0103] As an optional embodiment, when generating an Ethernet message set, the generated Ethernet message set can be backed up, and the backed-up Ethernet message set can also be parsed once to serve as a control group after the modified Ethernet message set is parsed, i.e., a comparison parsing result, so that users can observe the difference between the two parsing results and the comparison parsing result.

[0104] Optionally, the method further includes: if the parsing result matches the expected abnormal result corresponding to the modification of the Ethernet message by the target control code block; then determining whether the parsing results corresponding to the remaining Ethernet messages, except for the parsing result corresponding to the modified Ethernet message, match the control parsing results corresponding to the remaining Ethernet messages; if not, sending a second error signal to the terminal device and stopping the inspection.

[0105] The second error signal may be a signal indicating that the parsing result does not match the comparison parsing result. When judging whether the parsing result is consistent with the expected result, if the parsing result is consistent with the expected result, further, it may be judged based on the comparison parsing result whether the parsing results corresponding to the remaining Ethernet packets, except for the parsing result corresponding to the modified Ethernet packet, match the comparison parsing results corresponding to the remaining Ethernet packets.

[0106] Under normal circumstances, the target control code block modifies the Ethernet message in the Ethernet set, which will only affect the modified Ethernet message. For example: if the abnormal target control code block is the remaining error abnormal code block, the corresponding expected abnormal result should be that the DUT adds one to the statistics corresponding to the illegal code block. It is also possible that the DUT has an error in processing the state, but it will not affect the previous and next messages; if an SFD appears in the frame gap, the corresponding expected abnormal result should be that the DUT has an error in processing the state, but it will not affect the previous and next messages.

[0107] Therefore, it is possible to determine whether the parsing results corresponding to the remaining Ethernet messages, except for the parsing results corresponding to the modified Ethernet message, match the control parsing results corresponding to the remaining Ethernet messages in the parsing results. If they do not match, it means that the server still needs to be optimized and debugged, and then a second error signal is sent to the terminal device, and the inspection is stopped, so as to wait for the user to re-optimize and debug the server according to the second error signal.

[0108] Optionally, the parsing of the modified Ethernet message set further includes: if the parsing of the modified Ethernet message set is not completed within a preset time, sending a third error signal to the terminal device and stopping the parsing.

[0109] The third error signal may be a parsing timeout signal. In practical applications, if the DUT design is not perfect, the insertion of the target control code block may cause the DUT to hang and no signal output for a long time. In order to prevent this problem from occurring, the time for the DUT to parse the modified Ethernet message set may be monitored. If the DUT does not complete the parsing within the preset time, the third error signal is sent to the device terminal to notify the user and stop the parsing.

[0110] As an optional embodiment, it is also possible to detect whether the signal interval time output by the DUT exceeds the preset signal output interval time. If it exceeds the preset interval time, a third error signal is sent to the device terminal and the analysis is stopped.

[0111] Based on the same inventive concept, Figure 4 As shown, the present application provides an Ethernet message control code block inspection device 300, comprising:

[0112] The Ethernet message generating unit 301 is used to generate an Ethernet message set according to a first preset configuration;

[0113] The target control code block generating unit 302 is used to generate at least one target control code block according to the second preset configuration;

[0114] The Ethernet message modification unit 303 is used to modify one or more Ethernet messages in the Ethernet message set based on the target control code block to obtain a modified Ethernet message set;

[0115] The parsing unit 304 is used to parse the modified Ethernet message set to obtain a parsing result;

[0116] The verification unit 305 is used to determine whether the parsing result is consistent with the expected result; if so, the target control code block passes the verification.

[0117] Regarding the Ethernet message control code block checking device 300, the specific functions of each unit therein have been described in detail in the embodiment of the Ethernet message control code block checking method provided in this specification, and will not be elaborated here.

[0118] As an optional embodiment, the Ethernet message control code block checking device may be as follows: Figure 5 The structure shown. Its workflow can be:

[0119] The Ethernet message generation unit generates an Ethernet message set, and backs up the Ethernet message set, after which the backed-up Ethernet message set is sent to the Ethernet message verification unit for comparison and analysis, and the generated Ethernet message set is sent to the target control code block generation unit.

[0120] The target control code block generation unit generates a target control code block, and uses the generated target control code block to modify the received Ethernet message set. After the modification is completed, the modified Ethernet message set is sent to the DUT for parsing.

[0121] The DUT receives the modified Ethernet message set and starts parsing. At this time, the timeout detection unit synchronously monitors the parsing time of the DUT. If the DUT does not complete the parsing within the preset time, a third error signal is sent to the device terminal to notify the user and stop parsing.

[0122] After the DUT is parsed, the parsing result is sent to the expected abnormal result matching unit, which pre-stores the abnormal results corresponding to the modification of the Ethernet message by each target control code block. After receiving the parsing result, the expected abnormal result matching unit determines whether the parsing result matches the expected abnormal result corresponding to the modification of the Ethernet message by the target control code block. If it does not match, a first error signal is sent to the terminal device and the inspection is stopped. If the match is successful, the expected abnormal result matching unit sends the parsing result to the Ethernet message verification unit.

[0123] The Ethernet message verification unit receives the parsing result and starts to determine whether the parsing results corresponding to the remaining Ethernet messages, except for the parsing result corresponding to the modified Ethernet message, match the control parsing results corresponding to the remaining Ethernet messages; if so, the verification is passed; if not, a second error signal is sent to the terminal device and the verification is stopped.

[0124] Based on the same inventive concept, an embodiment of the present invention specification provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of any method of the Ethernet message control code block inspection method described above are implemented.

[0125] By adopting the above solution in the embodiment of the present invention, the following effects can be achieved at least in part:

[0126] By generating a target control code block, the generated Ethernet message is modified, and then it is determined whether the parsing result of the modified Ethernet message meets the expectations, and then it is verified whether the impact of the target control code block on the Ethernet message meets the expectations, so as to improve the defects in the Ethernet chip design and improve the success rate of the Ethernet chip design tape-out.

[0127] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0128] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0129] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk. It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0130] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for checking control code blocks of Ethernet messages, characterized in that: include: Generate an Ethernet message set according to the first preset configuration; Generating at least one target control code block according to the second preset configuration, including: receiving target control code block configuration information of a terminal device, and generating a target control code block of a corresponding type according to the configuration information; wherein the target control code block includes a normal target control code block and an abnormal target control code block; Based on the target control code block, modifying one or more Ethernet messages in the Ethernet message set, including: inserting the normal target control code block and / or the abnormal target control code block into one or more Ethernet messages in the Ethernet message set; or replacing the control code block in one or more Ethernet messages in the Ethernet message set with the abnormal target control code block; obtaining a modified Ethernet message set; Parsing the modified Ethernet message set to obtain a parsing result; Determine whether the analysis result is consistent with the expected result; If so, the target control code block passes the test.

2. The Ethernet message control code block inspection method according to claim 1, characterized in that: The determining whether the parsing result is consistent with the expected result includes: Determining whether the parsing result matches an expected abnormal result corresponding to the modification of the Ethernet message by the target control code block; If not, a first error signal is sent to the terminal device and the inspection is stopped.

3. The Ethernet message control code block inspection method according to claim 2, characterized in that: The method further comprises: Backing up the Ethernet message set; The backed-up Ethernet message set is parsed to obtain a comparative parsing result.

4. The Ethernet message control code block inspection method according to claim 3, characterized in that: The method further comprises: If the parsing result matches the expected abnormal result corresponding to the modification of the Ethernet message by the target control code block; determining whether, among the analysis results, the analysis results corresponding to the remaining Ethernet messages, except for the analysis result corresponding to the modified Ethernet message, match the comparison analysis results corresponding to the remaining Ethernet messages; If not, a second error signal is sent to the terminal device and the inspection is stopped.

5. The Ethernet message control code block inspection method according to claim 1, characterized in that: The parsing of the modified Ethernet message set further includes: If the parsing of the modified Ethernet message set is not completed within the preset time, a third error signal is sent to the terminal device and the parsing is stopped.

6. The Ethernet message control code block inspection method according to claim 2, characterized in that: The abnormal target control code block includes a message header error abnormal code block, a type field error abnormal code block and a remaining error abnormal code block, and each abnormal target control code block corresponds to a different expected abnormal result.

7. An Ethernet message control code block inspection device, characterized in that: include: An Ethernet message generating unit, configured to generate an Ethernet message set according to a first preset configuration; The target control code block generating unit is used to generate at least one target control code block according to the second preset configuration, including: receiving target control code block configuration information of the terminal device, and generating a corresponding type of target control code block according to the configuration information; wherein the target control code block includes a normal target control code block and an abnormal target control code block; The Ethernet message modification unit is used to modify one or more Ethernet messages in the Ethernet message set based on the target control code block, including: inserting the normal target control code block and / or the abnormal target control code block into one or more Ethernet messages in the Ethernet message set; or replacing the control code block in one or more Ethernet messages in the Ethernet message set with the abnormal target control code block; obtaining a modified Ethernet message set; A parsing unit, used for parsing the modified Ethernet message set to obtain a parsing result; The verification unit is used to determine whether the parsing result is consistent with the expected result; if so, the target control code block passes the verification.

8. A server, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 6 when executing the program.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a computer program, and when the computer program is executed, the server where the computer-readable storage medium is located is controlled to implement the steps of the method according to any one of claims 1 to 6.