CN114866321A - Chip mac layer checking system and method - Google Patents

Chip mac layer checking system and method Download PDF

Info

Publication number
CN114866321A
CN114866321A CN202210487995.3A CN202210487995A CN114866321A CN 114866321 A CN114866321 A CN 114866321A CN 202210487995 A CN202210487995 A CN 202210487995A CN 114866321 A CN114866321 A CN 114866321A
Authority
CN
China
Prior art keywords
frame
information
mac layer
detected
pause
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210487995.3A
Other languages
Chinese (zh)
Other versions
CN114866321B (en
Inventor
唐飞
丁兴仪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Centec Communications Co Ltd
Original Assignee
Suzhou Centec Communications Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Centec Communications Co Ltd filed Critical Suzhou Centec Communications Co Ltd
Priority to CN202210487995.3A priority Critical patent/CN114866321B/en
Publication of CN114866321A publication Critical patent/CN114866321A/en
Application granted granted Critical
Publication of CN114866321B publication Critical patent/CN114866321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/323Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the physical layer [OSI layer 1]

Abstract

The embodiment of the invention provides a system and a method for checking a mac layer of a chip, wherein the system comprises the following steps: the receiving side of the mac layer to be detected is used for receiving a first data packet sent by the receiving side of the pause frame packet sender, and changing the sending information of the message sending information of the target interface of the sending side of the mac layer to be detected based on the first data packet; the receiving side of the pause frame grabbing device is used for grabbing frame information of a first pause frame and sending information of a target interface of the sending side of a mac layer to be detected; the checking device is used for verifying the receiving side of the mac layer to be detected based on the frame information and the sending information of the target interface at the sending side of the mac layer to be detected. By the method, the checking accuracy of the mac layer of the chip is improved.

Description

Chip mac layer checking system and method
Technical Field
The invention relates to the technical field of chip verification, in particular to a system and a method for verifying a mac layer of a chip.
Background
In addition to receiving and transmitting general conventional message information, the mac layer of the ethernet also needs to receive and transmit pause frames according to the IEEE802.3 protocol standard, and the mac layer of the ethernet makes corresponding behavioral responses based on the received and transmitted pause frames.
At present, for the verification mode of the mac layer of the chip, only a pause frame is sent to the mac layer, the response results of the receiving side and the sending side of the mac layer to the received pause frame are obtained, and the mac layer is verified based on the response results.
The verification of the mac layer in the above manner lacks coverage on coupling conditions of pause frame and other various message information combinations, so that omission of verification on conditions of sending/receiving pause frames by the mac layer is caused, and the problem of low accuracy in verification of the mac layer is caused, which results in abnormal finally used chips.
Disclosure of Invention
The invention aims to provide a system and a method for verifying a chip mac layer, which can comprehensively cover the transmitting combination condition of pause frames, avoid the defects caused by the coupling of pause frame transmission and other types of messages and improve the accuracy of verification of the chip mac layer.
In order to achieve the above object, the embodiments of the present invention adopt the following technical solutions:
in a first aspect, an embodiment of the present invention provides a system for checking a mac layer of a chip, where the system includes: the system comprises a pause frame packet sender, a mac layer to be detected, a pause frame grabbing device and a checking device;
the receiving side of the mac layer to be detected is configured to receive a first data packet sent by the receiving side of the mac layer to be detected, and change sending information of sending message information of a target interface of the sending side of the mac layer to be detected based on the first data packet, where the first data packet includes a first pause frame and at least one piece of first message information, the first pause frame is randomly generated by the receiving side of the mac layer to be detected, the target interface corresponds to an interface indicated by the first pause frame in the first data packet, and the sending information of the target interface represents whether the target interface sends the first message information;
the receiving side of the pause frame grabbing device is configured to grab frame information of the first pause frame and sending information of a target interface of the sending side of the mac layer to be detected, where the frame information of the first pause frame indicates to stop sending first message information by the target interface of the sending side of the mac layer to be detected or allow sending first message information by the target interface of the sending side of the mac layer to be detected;
and the checking device is used for verifying the receiving side of the mac layer to be detected based on the frame information and the sending information of the target interface at the sending side of the mac layer to be detected.
In an optional implementation manner, the sending side of the mac layer to be detected is configured to receive a pause frame trigger request sent by the sending side of the pause frame packet sender;
the sending side of the mac layer to be detected is used for receiving the pause frame triggering request, generating a second pause frame and sending the second pause frame;
the sending side of the pause frame grabbing device is used for grabbing the pause frame trigger request and the second pause frame;
the verification device is further configured to: and determining first parameter information of the pause frame triggering request and second parameter information of the second pause frame, and verifying the sending side of the mac layer to be detected based on the first parameter information and the second parameter information.
In an optional implementation manner, when the first message information is after the first pause frame, the checking apparatus is further configured to:
determining that the frame information of the first pause frame is first message information stopped from being sent by a target interface at the sending side of the mac layer to be detected;
determining a first interval time between the first message information and the first pause frame;
determining that the sending information is first message information which is not sent by a target interface at the sending side of the mac layer to be detected within the first interval time;
and determining that the receiving side of the mac layer to be detected is successfully verified.
In an optional implementation manner, when the first packet information is after the first pause frame, the checking apparatus is further configured to:
determining that the frame information of the first pause frame is first message information allowed to be sent by a target interface of a sending side of the mac layer to be detected;
determining a second interval time between the first message information and the first pause frame;
determining that the sending information is message information which is not sent by the target interface of the sending side of the mac layer to be detected in the second interval time;
and determining that the receiving side of the mac layer to be detected fails to verify.
In an optional embodiment, the verification device is further configured to:
determining first frame state information, third interval time and first frame content information corresponding to a pause frame in the pause frame triggering request, and determining the first frame state information, the third interval time and the first frame content information as first parameter information of the pause frame triggering request;
and determining second frame state information and second frame content information of the second pause frame, and determining the second frame state information and the second frame content information as second parameter information.
In an optional embodiment, the verification device is further configured to:
determining whether the second pause frame is sent within a third interval under the condition that the pause frame triggering request indicates that a target interface at the sending side of the mac layer to be detected sends the pause frame within the third interval;
determining whether the first frame status information is consistent with the second frame status information under the condition that the second pause frame is sent within the third interval time;
determining whether the first frame content information is consistent with the second frame content information in case that the first frame status information is consistent with the second frame status information;
under the condition that the first frame content information is consistent with the second frame content information, determining whether the second frame content information conforms to a pause frame standard protocol;
and when the second frame content information conforms to the pause frame standard protocol, determining that the sending side of the mac layer to be detected passes the verification.
In an optional embodiment, the verification device is further configured to:
and under the condition that the pause frame triggering request indicates that the target interface of the sending side of the mac layer to be detected sends pause frames within a third interval, determining that the second pause frames are not sent within the third interval, and determining that the verification of the sending side of the mac layer to be detected fails.
In an optional embodiment, the verification device is further configured to:
and under the condition that the second pause frame is sent within the third interval time, determining that the first frame state information is inconsistent with the second frame state information, and determining that the sending side of the mac layer to be detected fails to verify.
In an optional embodiment, the verification device is further configured to:
determining whether a DA field, an SA field, an OpCode field, a PAD field and an FCS field in the second frame content information all meet a pause standard protocol under the condition that the first frame content information is consistent with the second frame content information;
and determining that the sending side of the mac layer to be detected successfully verifies under the condition that the DA field, the SA field, the OpCode field, the PAD field and the FCS field in the second frame content information all meet the pause standard protocol.
In a second aspect, an embodiment of the present invention provides a method for verifying a mac layer of a chip, where a receiving side and/or a transmitting side of the mac layer to be detected are verified by a mac layer verification system of the chip.
The invention has the following beneficial effects:
the receiving side of the mac layer to be detected is used for receiving a first data packet sent by the receiving side of a pause frame packet sender, and changing the sending information of the message sending information of a target interface of the sending side of the mac layer to be detected based on the first data packet, wherein the first data packet comprises a first pause frame and at least one piece of first message information; the receiving side of the pause frame grabbing device is used for grabbing frame information of a first pause frame and sending information of a target interface of a sending side of a mac layer to be detected, wherein the frame information of the first pause frame indicates that the target interface of the sending side of the mac layer to be detected is stopped sending first message information or the target interface of the sending side of the mac layer to be detected is allowed to send the first message information; the checking device is used for verifying the receiving side of the mac layer to be detected based on the frame information and the sending information of the target interface at the sending side of the mac layer to be detected. By the method, message information and pause frames can be coupled, so that the pause frame sending combination condition is comprehensively covered, the defect caused by coupling of pause frame sending and other types of messages is avoided, the Ethernet chip design failure is finally caused, and the checking accuracy of a chip mac layer is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of a system for checking a mac layer of a chip according to an embodiment of the present invention;
fig. 2 is a second schematic structural diagram of a system for checking a mac layer of a chip according to an embodiment of the present invention;
fig. 3 is a third schematic structural diagram of a system for checking a mac layer of a chip according to an embodiment of the present invention.
Detailed Description
In order to make the objects, 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 with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. indicate an orientation or a positional relationship based on that shown in the drawings or that the product of the present invention is used as it is, this is only for convenience of description and simplification of the description, and it does not indicate or imply that the device or the element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present invention.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should also be noted that, unless otherwise explicitly specified or limited, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly and may, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Through a great deal of research by the inventor, the inventor finds that when the MAC layer of the chip in the prior art is verified, the MAC layer lacks coverage of coupling conditions such as the combination of the pause frame and other various message information, so that omission of verification of the condition of sending and receiving the pause frame by the MAC layer is caused, and a phenomenon that a protocol is not met or an abnormal condition occurs when the chip is subjected to chip flow, thereby causing failure.
In view of the discovery of the above problems, the present embodiment provides a system and a method for verifying a mac layer of a chip, which can perform a relatively comprehensive verification on the mac layer of the chip based on the coupling condition of the pause frame and the message information by implementing the coupling of the pause frame and the message information, thereby improving the accuracy of the verification on the mac layer, and the scheme provided by the present embodiment is described in detail below.
Referring to fig. 1, fig. 1 is a block diagram of a structure of a system for checking a mac layer of a chip according to the present invention, and the system including various components will be described in detail below.
The system 100 for checking the mac layer of the chip includes: a pause frame packetizer 111, a mac layer to be detected 112, a pause frame grabber 113, and a checker 114.
Referring to fig. 2, the receiving side 1121 of the mac layer to be detected is configured to receive a first data packet sent by the receiving side 1111 of the pause frame packet sender, and change the sending information of the target interface of the sending side 1122 of the mac layer to be detected based on the first data packet.
The first data packet comprises a first pause frame and at least one piece of first message information, the first pause frame is randomly generated by a receiving side of the pause frame packet sender, the target interface corresponds to an interface indicated by the first pause frame in the first data packet, and sending information of the target interface represents whether the target interface sends the first message information or not; the receiving side 1131 of the pause frame grabbing device is configured to grab the frame information of the first pause frame and the sending information of the target interface of the sending side 1122 of the mac layer to be detected.
The frame information of the first pause frame indicates to stop the target interface of the sending side 1122 of the mac layer to be detected from sending the first message information or allow the target interface of the sending side 1122 of the mac layer to be detected to send the first message information; the verifying device 114 is configured to verify the receiving side 1121 of the mac layer to be detected based on the frame information and the sending information of the target interface of the sending side 1122 of the mac layer to be detected.
It should be noted that the pause frame packetizer includes a receiving side of the pause frame packetizer and a transmitting side of the pause frame packetizer, the mac layer 112 to be detected includes a receiving side and a transmitting side of the mac layer to be detected, and the pause frame grabber includes a receiving side and a transmitting side of the pause frame grabber.
The receiving side of the pause frame packet sender is used for sending a first data packet to the receiving side of the mac layer to be detected, and the first data packet comprises a first pause frame and at least one piece of first message information. Besides, the pause frame packet sender can send out normal pause frames, and can also send out various abnormal pause frames, such as: the DA field is inconsistent with the protocol; the SA field and register configuration are inconsistent; the EtherType field is inconsistent with the protocol; the OpCode field and protocol are not consistent; the Payload portions are not all 0; an FCS field error; the pause frame length is less than 64 bytes specified by the protocol; the pause frame length is greater than the protocol specified 64 byte exception pause frame.
The DA/SA/EtherType/OpCode/Payload/FCS is the name, format and bit width of the internal data field of the pause frame specified by the protocol.
And when the first pause frame is an abnormal pause frame, the mac layer to be detected responds to the abnormal first pause frame or directly reports an error, and when the off state and the on state indicated by the abnormal first pause frame are not abnormal, the mac layer to be detected responds to the abnormal first pause frame and changes the sending information of the target interface. When the abnormal first pause frame is completely wrong, the error is directly reported, and the received first pause frame is prompted to be wrong.
When the first pause frame is an abnormal pause frame and normal message information is sent after the abnormal first pause frame is sent out, the receiving side of the mac layer to be detected cannot influence the receiving of the normal message because the first pause frame is abnormal.
When a receiving side of a mac layer to be detected receives a first data packet, because a first pause frame is generated randomly and can be randomly inserted between first message information, the sequence of the first pause frame and the first message information is not fixed.
In an example, the order of the first pause frame and the first packet information in the first packet may be: the first pause frame is sent before the first message information, that is, the first pause frame is sent to the receiving side of the mac layer to be detected, and then the first message information is sent to the receiving side of the mac layer to be detected. In another example, the first pause frame is sent after the first message information, that is, the first message information is sent to the receiving side of the mac layer to be detected first, and then the first pause frame is sent to the receiving side of the mac layer to be detected.
When the receiving side of the mac layer to be detected receives the first pause frame, the sending information of the target interface of the sending side of the mac layer to be detected is changed based on the first pause frame.
The first pause frame has two states, an off state and an on state, respectively. The Off state controls whether the mac layer transmitting side receiving the pause frame continues to transmit the message information. When receiving the pause frame in the on state, the mac layer releases the current off state and continues to send message information. And the first pause frame also indicates that the corresponding interface of the transmitting side of the mac layer receiving the pause frame transmits or stops transmitting the message information based on the off state and the on state of the pause frame.
Therefore, when the first pause frame is in an off state and the interface indicated by the first pause frame is the target interface of the sending side of the mac layer to be detected, the target interface of the sending side of the mac layer to be detected is controlled to stop sending the message information, and when the first pause frame is in an on state and the interface indicated by the first pause frame is the target interface of the sending side of the mac layer to be detected, the target interface of the sending side of the mac layer to be detected is controlled to stop sending the message information.
The receiving side of the pause frame grabbing device grabs the first pause frame in multiple ways:
the first method is as follows: when the receiving side of the pause frame packet sender sends a first data packet to the receiving side of the mac layer to be detected, the receiving side of the pause frame packet sender sends a first pause frame in the first data packet to the receiving side of the pause frame capturing device at the same time.
The second method comprises the following steps: and intercepting the first pause frame when the receiving side of the pause frame packet sender sends the first data packet to the receiving side of the mac layer to be detected.
The receiving side of the pause frame grabbing device grabs the first pause frame and also grabs the sending information of the sending side of the mac layer to be detected. And the receiving side of the pause frame grabbing device sends the grabbed first pause frame and the sending information of the target interface of the sending side of the mac layer to be detected to the verification device.
And the verifying device verifies the receiving side of the mac layer to be detected based on the received information. And when the verification is passed, indicating that the circuit design of the receiving side of the mac layer to be detected is correct, and when the verification fails, indicating that the circuit design of the receiving side of the mac layer to be detected is wrong.
In one example:
when the first message information is behind the first pause frame, the checking device determines that the frame information of the first pause frame is the first message information which is stopped from being sent by a target interface at the sending side of the mac layer to be detected; determining a first interval time between the first message information and the first pause frame; determining that the sending information is that a target interface of a sending side of a mac layer to be detected does not send first message information within a first interval time; and determining that the receiving side of the mac layer to be detected is successfully verified.
After the first message information is in the first pause frame, it indicates that the receiving side of the mac layer to be detected receives the first pause frame first and then receives the first message information, the frame information of the first pause frame indicates an interface, corresponding to the first pause frame, in the sending side of the mac layer to be detected, that is, the target interface stops sending the first message information, and when it is detected that the target interface, indicated by the sending information, of the sending side of the mac layer to be detected does not send the first message information, it can be determined that the receiving side of the mac layer to be detected succeeds in verification. And when the target interface of the sending side of the mac layer to be detected, which is indicated by the sending information, sends the first message information, the receiving side of the mac layer to be detected can be determined to fail to verify.
In order to improve the accuracy of verification of a receiving side of a mac layer to be detected, frame information of a first pause frame indicates a middle target interface of a transmitting side of the mac layer to be detected to stop transmitting first message information, a first interval time between the first message information and the first pause frame is determined, and the first message information is not transmitted in the first interval time when the target interface of the transmitting side of the mac layer to be detected is detected to be transmitted; and determining that the receiving side of the mac layer to be detected is successfully verified.
In another example:
when the first message information is behind the first pause frame, the checking device determines that the frame information of the first pause frame is the first message information allowed to be sent by a target interface of a sending side of the mac layer to be detected; determining a second interval time between the first message information and the first pause frame; determining that the sending information is message information which is not sent by a target interface at the sending side of the mac layer to be detected within the second interval time; and determining that the receiving side of the mac layer to be detected fails to verify.
After the first message information is in the first pause frame, it indicates that the receiving side of the mac layer to be detected receives the first pause frame first and then receives the first message information, the frame information of the first pause frame indicates an interface, corresponding to the first pause frame, in the sending side of the mac layer to be detected, that is, the target interface allows sending the first message information, and when it is detected that the target interface, indicated by the sending information, of the sending side of the mac layer to be detected does not send the first message information, it can be determined that the receiving side of the mac layer to be detected fails in verification. And when the target interface of the sending side of the mac layer to be detected, which is indicated by the sending information, sends the first message information, the receiving side of the mac layer to be detected can be determined to be successfully verified.
In order to improve the accuracy of verification of a receiving side of a mac layer to be detected, frame information of a first pause frame indicates that a medium-target interface of a sending side of the mac layer to be detected allows sending of first message information, a second interval time between the first message information and the first pause frame is determined, the sending information indicates that the first message information is sent within the second interval time, and the receiving side of the mac layer to be detected is determined to be successfully verified. And when the sending information is detected to indicate that the first message information is not sent in the second interval time, determining that the verification of the receiving side of the mac layer to be detected fails.
When the verification result of the mac layer to be detected is output, if the verification result of the mac layer to be detected is failure, prompt information of a failure reason corresponding to the result needs to be output to prompt a verifier, so that the verifier can modify and adjust the mac layer to be detected according to the failure reason.
Referring to fig. 3, a schematic diagram of a checking structure of a sending side of a mac layer to be detected is shown.
The sending side 1122 of the mac layer to be detected is configured to receive a pause frame trigger request sent by the sending side 1112 of the pause frame packet sender; the sending side 1122 of the mac layer to be detected is configured to receive the pause frame trigger request, generate a second pause frame, and send the second pause frame; the sending side 1132 of the pause frame grabbing device is configured to grab the pause frame trigger request and the second pause frame; the verifying means 114 is further configured to: and determining first parameter information of the pause frame triggering request and second parameter information of the second pause frame, and verifying the sending side of the mac layer to be detected based on the first parameter information and the second parameter information.
The pause trigger request can control the number, off and on types of pause frames sent by the sending side of the mac layer to be detected, and the interval time between each pause frame.
The checking device receives a pause frame trigger request sent by a sending side of the pause frame grabbing device and generates a second pause frame based on the pause frame trigger request by the sending side of the mac layer to be detected, and judges whether the sending side of the mac layer to be detected succeeds in verification by determining first parameter information of the pause frame trigger request and second parameter information of the second pause frame and comparing the first parameter information with the second parameter information.
When the format and the content of the pause frame indicated by the first parameter information and the second parameter information are consistent, the sending side of the mac layer to be detected is indicated to be successfully verified, and when any one of the format or the content of the pause frame indicated by the first parameter information and the second parameter information is inconsistent, the sending side of the mac layer to be detected is indicated to be failed to be verified.
The checking device determines first frame state information, third interval time and first frame content information corresponding to a pause frame in the pause frame triggering request, and determines the first frame state information, the third frame interval time and the first frame content information as first parameter information of the pause frame triggering request; and determining second frame state information and second frame content information of the second pause frame, and determining the second frame state information and the second frame content information as second parameter information.
The third interval time is the interval time between sending message information to the outside of the sending side of the mac layer to be detected or a pause frame and a second pause frame, that is, when the pause frame trigger request indicates that the sending side of the mac layer to be detected sends the target message information, the pause frame is sent again, and the interval between the target message information and the pause frame is the third interval time.
The first frame status information in the pause frame trigger request may be in an off state or an on state. The first frame content information is the specific content information of the pause frame.
The second frame status information of the second pause frame may be in an off state or an on state, and the second frame content information is specific content information of the pause frame. The first frame content information and the second frame content information include specific contents in DA, SA, EtherType, OpCode, Payload, and FCS.
Based on the first parameter information and the second parameter information determined by the checking device, checking the sending side of the mac layer to be detected:
in one example: under the condition that the pause frame triggering request indicates that a target interface at the sending side of the mac layer to be detected sends pause frames within a third interval, determining whether the second pause frame is sent within the third interval; under the condition that the second pause frame is sent within the third interval time, determining whether the first frame state information is consistent with the second frame state information; determining whether the first frame content information is consistent with the second frame content information under the condition that the first frame state information is consistent with the second frame state information; under the condition that the first frame content information is consistent with the second frame content information, determining whether the second frame content information conforms to a pause frame standard protocol; and when the second frame content information conforms to the pause frame standard protocol, determining that the sending side of the mac layer to be detected passes the verification.
Under the condition that the first frame content information is consistent with the second frame content information, determining whether a DA field, an SA field, an OpCode field, a PAD field and an FCS field in the second frame content information all meet a pause standard protocol; and determining that the transmitting side of the mac layer to be detected successfully verifies under the condition that the DA field, the SA field, the OpCode field, the PAD field and the FCS field in the second frame content information all meet the pause standard protocol.
In another example: and under the condition that the pause frame triggering request indicates that the target interface of the sending side of the mac layer to be detected sends pause frames within the third interval, determining that the second pause frame is not sent within the third interval, and determining that the verification of the sending side of the mac layer to be detected fails.
In another example: and under the condition that the second pause frame is sent within the third interval time, determining that the first frame state information is inconsistent with the second frame state information, and determining that the verification of the sending side of the mac layer to be detected fails.
Or when the first frame content information is determined to be inconsistent with the second frame content information, determining that the sending side of the mac layer to be detected fails to verify. And when the second frame content information is determined not to conform to the pause frame standard protocol, determining that the verification of the sending side of the mac layer to be detected fails.
The invention also provides a verification method of the mac layer of the chip, which verifies the receiving side and/or the sending side of the mac layer to be detected through the verification system of the mac layer of the chip.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only for various embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present invention, and all such changes or substitutions are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A system for verifying a mac layer of a chip, the system comprising: the system comprises a pause frame packet sender, a mac layer to be detected, a pause frame grabbing device and a checking device;
the receiving side of the mac layer to be detected is configured to receive a first data packet sent by the receiving side of the mac layer to be detected, and change sending information of sending message information of a target interface of the sending side of the mac layer to be detected based on the first data packet, where the first data packet includes a first pause frame and at least one piece of first message information, the first pause frame is randomly generated by the receiving side of the mac layer to be detected, the target interface corresponds to an interface indicated by the first pause frame in the first data packet, and the sending information of the target interface represents whether the target interface sends the first message information;
the receiving side of the pause frame grabbing device is configured to grab frame information of the first pause frame and sending information of a target interface of the sending side of the mac layer to be detected, where the frame information of the first pause frame indicates to stop sending first message information by the target interface of the sending side of the mac layer to be detected or allow sending first message information by the target interface of the sending side of the mac layer to be detected;
the checking device is used for verifying the receiving side of the mac layer to be detected based on the frame information and the sending information of the target interface of the sending side of the mac layer to be detected.
2. The system of claim 1,
the transmitting side of the mac layer to be detected is used for receiving a pause frame triggering request transmitted by the transmitting side of the pause frame packet transmitter;
the sending side of the mac layer to be detected is used for receiving the pause frame triggering request, generating a second pause frame and sending the second pause frame;
the sending side of the pause frame grabbing device is used for grabbing the pause frame triggering request and the second pause frame;
the verification device is further configured to: and determining first parameter information of the pause frame triggering request and second parameter information of the second pause frame, and verifying the sending side of the mac layer to be detected based on the first parameter information and the second parameter information.
3. The system according to claim 1, wherein when the first packet information is after the first pause frame, the checking means is further configured to:
determining the frame information of the first pause frame as first message information for stopping the target interface at the transmitting side of the mac layer to be detected from transmitting;
determining a first interval time between the first message information and the first pause frame;
determining that the sending information is first message information which is not sent by a target interface at the sending side of the mac layer to be detected within the first interval time;
and determining that the receiving side of the mac layer to be detected successfully verifies.
4. The system according to claim 1, wherein when the first packet information is after the first pause frame, the checking means is further configured to:
determining that the frame information of the first pause frame is first message information allowed to be sent by a target interface of a sending side of the mac layer to be detected;
determining a second interval time between the first message information and the first pause frame;
determining that the sending information is message information which is not sent by the target interface of the sending side of the mac layer to be detected in the second interval time;
and determining that the receiving side of the mac layer to be detected fails to verify.
5. The system of claim 2, wherein the verification device is further configured to:
determining first frame state information, third interval time and first frame content information corresponding to a pause frame in the pause frame triggering request, and determining the first frame state information, the third frame interval time and the first frame content information as first parameter information of the pause frame triggering request;
and determining second frame state information and second frame content information of the second pause frame, and determining the second frame state information and the second frame content information as second parameter information.
6. The system of claim 5, wherein the verification device is further configured to:
determining whether the second pause frame is sent within a third interval under the condition that the pause frame triggering request indicates that a target interface at the sending side of the mac layer to be detected sends the pause frame within the third interval;
determining whether the first frame status information is consistent with the second frame status information under the condition that the second pause frame is sent within the third interval time;
determining whether the first frame content information is consistent with the second frame content information in case that the first frame status information is consistent with the second frame status information;
under the condition that the first frame content information is consistent with the second frame content information, determining whether the second frame content information conforms to a pause frame standard protocol;
and when the second frame content information conforms to the pause frame standard protocol, determining that the sending side of the mac layer to be detected passes the verification.
7. The system of claim 6, wherein the verification device is further configured to:
and under the condition that the pause frame triggering request indicates that the target interface of the sending side of the mac layer to be detected sends pause frames within a third interval, determining that the second pause frames are not sent within the third interval, and determining that the verification of the sending side of the mac layer to be detected fails.
8. The system of claim 6, wherein the verification device is further configured to:
and under the condition that the second pause frame is sent within the third interval time, determining that the first frame state information is inconsistent with the second frame state information, and determining that the sending side of the mac layer to be detected fails to verify.
9. The system of claim 6, wherein the verification device is further configured to:
determining whether a DA field, an SA field, an OpCode field, a PAD field and an FCS field in the second frame content information all meet a pause standard protocol under the condition that the first frame content information is consistent with the second frame content information;
and determining that the sending side of the mac layer to be detected successfully verifies under the condition that the DA field, the SA field, the OpCode field, the PAD field and the FCS field in the second frame content information all meet the pause standard protocol.
10. A method for verifying a mac layer of a chip, wherein a receiving side and/or a transmitting side of a mac layer to be detected is verified by the system for verifying a mac layer of a chip according to any one of claims 1 to 9.
CN202210487995.3A 2022-05-06 2022-05-06 Chip mac layer verification system and method Active CN114866321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210487995.3A CN114866321B (en) 2022-05-06 2022-05-06 Chip mac layer verification system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210487995.3A CN114866321B (en) 2022-05-06 2022-05-06 Chip mac layer verification system and method

Publications (2)

Publication Number Publication Date
CN114866321A true CN114866321A (en) 2022-08-05
CN114866321B CN114866321B (en) 2024-03-29

Family

ID=82635067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210487995.3A Active CN114866321B (en) 2022-05-06 2022-05-06 Chip mac layer verification system and method

Country Status (1)

Country Link
CN (1) CN114866321B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6618357B1 (en) * 1998-11-05 2003-09-09 International Business Machines Corporation Queue management for networks employing pause time based flow control
US6816465B1 (en) * 2001-01-29 2004-11-09 Advanced Micro Devices, Inc. Arrangement for testing pause frame response in a network switch
US6980520B1 (en) * 2001-06-11 2005-12-27 Advanced Micro Devices, Inc. Method and apparatus for performing source-based flow control across multiple network devices
JP2008236733A (en) * 2007-02-22 2008-10-02 Nec Corp Bandwidth control apparatus, system, and method
JP2010057104A (en) * 2008-08-29 2010-03-11 Fujitsu Ltd Flow control device, and flow control method
CN102075436A (en) * 2011-02-10 2011-05-25 成都市华为赛门铁克科技有限公司 Ethernet, and data transmitting method and device thereof
US8593948B1 (en) * 2012-12-04 2013-11-26 Hitachi, Ltd. Network device and method of controlling network device
CN106330742A (en) * 2015-06-23 2017-01-11 华为技术有限公司 Flow control method and network controller
CN113676423A (en) * 2021-08-13 2021-11-19 北京东土军悦科技有限公司 Port flow control method and device, exchange chip and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6618357B1 (en) * 1998-11-05 2003-09-09 International Business Machines Corporation Queue management for networks employing pause time based flow control
US6816465B1 (en) * 2001-01-29 2004-11-09 Advanced Micro Devices, Inc. Arrangement for testing pause frame response in a network switch
US6980520B1 (en) * 2001-06-11 2005-12-27 Advanced Micro Devices, Inc. Method and apparatus for performing source-based flow control across multiple network devices
JP2008236733A (en) * 2007-02-22 2008-10-02 Nec Corp Bandwidth control apparatus, system, and method
JP2010057104A (en) * 2008-08-29 2010-03-11 Fujitsu Ltd Flow control device, and flow control method
CN102075436A (en) * 2011-02-10 2011-05-25 成都市华为赛门铁克科技有限公司 Ethernet, and data transmitting method and device thereof
US8593948B1 (en) * 2012-12-04 2013-11-26 Hitachi, Ltd. Network device and method of controlling network device
CN106330742A (en) * 2015-06-23 2017-01-11 华为技术有限公司 Flow control method and network controller
CN113676423A (en) * 2021-08-13 2021-11-19 北京东土军悦科技有限公司 Port flow control method and device, exchange chip and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
范兴刚, 孙优贤: "以太网帧", 工业控制计算机, no. 10, 20 November 2002 (2002-11-20) *

Also Published As

Publication number Publication date
CN114866321B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
US11251898B2 (en) Device and method for the unidirectional transmission of data
US20140157367A1 (en) Verification method and node for bidirectional forwarding detection session
EP2548330B1 (en) Method of conducting safety-critical communications
WO2019193786A1 (en) Log output method, log output device, and program
CN109104352A (en) Vehicle network operating protocol and method
CN117220837A (en) Data transmission method, storage medium and equipment
CN100466583C (en) Fast ring network method against attack based on RRPP, apparatus and system
CN109274636B (en) Data safety transmission method and device, system and train thereof
WO2021134418A1 (en) Data checking method and apparatus
US6880088B1 (en) Secure maintenance messaging in a digital communications network
US20150113363A1 (en) Communication device and communication method
CN109560893A (en) Data verification method, device and server
CN114866321A (en) Chip mac layer checking system and method
WO2023131073A1 (en) Self-checking method and apparatus for head unit testing
US8111625B2 (en) Method for detecting a message interface fault in a communication device
JP3850841B2 (en) Method and apparatus for monitoring safe transmission of data packet
KR101442963B1 (en) Communication device and communication method
CN113169966A (en) Method for monitoring a data transmission system, data transmission system and motor vehicle
US20050172167A1 (en) Communication fault containment via indirect detection
US11212295B2 (en) Data communication method and apparatus for vehicle network
CN117544530A (en) Half duplex function verification device and method
CN117630841A (en) Radar fault diagnosis method and system
CN117729128A (en) Communication state detection device and method based on service-oriented architecture and vehicle
KR20240048200A (en) Method for identifying diagnostic id pairs of of compromised ecu on can and system performing the same
CN116405156A (en) Communication fault diagnosis method and device, control unit and vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant