Method and device for detecting abnormal message transmission

By generating and checking abnormal transmission detection messages, the problem of abnormal message transmission caused by switch hardware failure is solved, automatic detection and statistics are realized, and the security and stability of network communication are improved.

CN118740690AInactive Publication Date: 2024-10-01NEW H3C TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410864534.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Switch hardware failure may cause abnormal packet data transmission, such as packet loss or tampering, affecting network security and stability.

Method used

By generating and periodically sending abnormal transmission detection messages with a load of all zeros and all ones, calculate the check code of the return message, check the load jump, and count abnormal situations. If the threshold is exceeded, a hardware failure is determined and the output port information.

Benefits of technology

It realizes automatic detection of packet transmission anomalies, improves the operational reliability of network switching equipment, reduces the impact of hardware failures, and ensures the stability and security of network communications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740690A_ABST
    Figure CN118740690A_ABST
Patent Text Reader

Abstract

The invention provides a method and equipment for detecting abnormal message transmission. The method comprises the following steps: generating a first abnormal transmission detection message of which the load is all zero and a second abnormal transmission detection message of which the load is all 1 for a target gateway port; periodically sending a first abnormal transmission detection message and a second abnormal transmission detection message through the target gateway port; receiving a first abnormal transmission detection message and a second abnormal transmission detection message returned by an opposite-end gateway of the target gateway port; calculating a first check code based on an IP header of the returned first abnormal transmission detection message; calculating a second check code based on an IP header of a returned second abnormal transmission detection message; when the check code carried by the IP header of the first abnormal transmission detection message is inconsistent with the calculated first check code, or when the check code is not consistent with the calculated first check code; and when the check code carried by the IP header of the second abnormal transmission detection message is inconsistent with the calculated second check code, determining that the message transmission abnormality occurs at the target gateway port.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to communication technology, and specifically to a method and device for detecting message transmission anomalies. Background Art

[0002] In network communications, switches play a vital role in routing and forwarding data packets to ensure fast and reliable network communications.

[0003] However, due to long-term operation and external environmental influences, switch hardware failure is inevitable, which may cause abnormal message data transmission.

[0004] Hardware failure may cause abnormalities in switch message data transmission, such as data packet loss, errors or tampering. This hardware failure may be caused by port damage, circuit short circuit, chip failure, etc. Once this happens, the normal operation of network equipment and data transmission will be seriously affected, posing a potential threat to the security and stability of the network. Summary of the invention

[0005] The purpose of the present application is to provide a method and device for detecting message transmission anomalies, so as to timely discover abnormal transmission caused by hardware failure.

[0006] To achieve the above-mentioned purpose, the present application provides a method for detecting message transmission anomalies, the method comprising generating a first abnormal transmission detection message and a second abnormal transmission detection message for a target gateway port; wherein the payload of the first abnormal transmission detection message is all zeros; the payload of the second abnormal transmission detection message is all 1s; the source MAC address and the destination MAC address of the first abnormal transmission detection message are the same as the source MAC address and the destination MAC address of the second abnormal transmission detection message; and the IP address of the target gateway port is the source IP address and the destination IP address of the first abnormal transmission detection message, and the source IP address of the second abnormal transmission detection message. address and destination IP address; periodically sending the first and second abnormal transmission detection messages through the target gateway port; receiving the first and second abnormal transmission detection messages returned by the opposite gateway of the target gateway port; calculating the first check code based on the IP header of the returned first abnormal transmission detection message; calculating the second check code based on the IP header of the returned second abnormal transmission detection message; when the check code carried by the IP header of the first abnormal transmission detection message is inconsistent with the calculated first check code, or; when the check code carried by the IP header of the second abnormal transmission detection message is inconsistent with the calculated second check code, it is determined that a message transmission abnormality occurs at the target gateway port.

[0007] The method further includes, when the check code carried by the IP header of the first abnormal transmission detection message is consistent with the calculated first check code and when the check code carried by the IP header of the second abnormal transmission detection message is consistent with the calculated second check code; checking the payload of the first abnormal transmission detection message and the second abnormal transmission detection message;

[0008] When the load of the first abnormal transmission detection message jumps or the load of the second abnormal transmission detection message jumps, it is determined that a message transmission abnormality occurs at the target gateway port.

[0009] The method also includes counting the message transmission anomalies of the target gateway port; when the statistical value of the message transmission anomalies of the target gateway port exceeds a preset threshold, outputting the port information of the target gateway port where the hardware message modification failure occurs.

[0010] Before generating a first abnormal transmission detection message and a second abnormal transmission detection message having the same Ethernet header and IP header for the target gateway port, the method also includes identifying, among all configured gateway ports, a gateway port that has learned an Address Resolution Protocol ARP table entry as a target gateway port; and recording the port index of the target gateway port in a target gateway port list.

[0011] In the Ethernet header of the first abnormal transmission detection message and the second abnormal transmission detection message, the source MAC address is the MAC address of the target gateway port, and the destination MAC address is the MAC address recorded in the ARP table entry; in the IP header of the first abnormal transmission detection message and the second abnormal transmission detection message, the source IP address and the destination IP address are the IP address of the target gateway port.

[0012] To achieve the above-mentioned purpose, the present application also provides a device for detecting message transmission anomalies, the device comprising a processor and a memory; the processor performs the following operations by running the processor executable instructions in the memory: generating a first abnormal transmission detection message and a second abnormal transmission detection message for a target gateway port; wherein the payload of the first abnormal transmission detection message is all zeros; the payload of the second abnormal transmission detection message is all 1s; the source MAC address and the destination MAC address of the first abnormal transmission detection message are the same as the source MAC address and the destination MAC address of the second abnormal transmission detection message; and the IP address of the target gateway port is the source IP address and the destination IP address of the first abnormal transmission detection message. The invention relates to a method for detecting a first abnormal transmission of a target gateway port and a second abnormal transmission detection message. The method comprises the following steps: determining a first abnormal transmission detection message, a source IP address, and a source IP address and a destination IP address of a second abnormal transmission detection message; periodically sending a first abnormal transmission detection message and a second abnormal transmission detection message through a target gateway port; receiving a first abnormal transmission detection message and a second abnormal transmission detection message returned by a peer gateway of the target gateway port; calculating a first check code based on an IP header of the returned first abnormal transmission detection message; calculating a second check code based on an IP header of the returned second abnormal transmission detection message; when the check code carried by the IP header of the first abnormal transmission detection message is inconsistent with the calculated first check code, or; when the check code carried by the IP header of the second abnormal transmission detection message is inconsistent with the calculated second check code, it is determined that a message transmission abnormality occurs at the target gateway port.

[0013] The processor also executes instructions in the running memory to perform the following operations: when the check code carried by the IP header of the first abnormal transmission detection message is consistent with the calculated first check code and when the check code carried by the IP header of the second abnormal transmission detection message is consistent with the calculated second check code; check the load of the first abnormal transmission detection message and the second abnormal transmission detection message; when the load of the first abnormal transmission detection message jumps or the load of the second abnormal transmission detection message jumps, determine that a message transmission abnormality occurs at the target gateway port.

[0014] The processor also executes instructions in the running memory to perform the following operations: counting the message transmission anomalies of the target gateway port; when the statistical value of the message transmission anomalies of the target gateway port exceeds a preset threshold, outputting the port information of the target gateway port where the hardware message modification failure occurs.

[0015] Before generating the first abnormal transmission detection message and the second abnormal transmission detection message, the processor also executes instructions in the running memory to perform the following operations: identifying the gateway port that has learned the Address Resolution Protocol ARP table entry among all configured gateway ports as the target gateway port; and recording the port index of the target gateway port in the target gateway port list.

[0016] In the Ethernet header of the first abnormal transmission detection message and the second abnormal transmission detection message, the source MAC address is the MAC address of the target gateway port, and the destination MAC address is the MAC address recorded in the ARP table entry; in the IP header of the first abnormal transmission detection message and the second abnormal transmission detection message, the source IP address and the destination IP address are the IP address of the target gateway port.

[0017] The beneficial effect of the present application is that the automatic detection of message packet modification function can effectively deal with data transmission anomalies that may be caused by hardware failures, improve the overall operational reliability of network switching equipment, reduce the impact of hardware failures, ensure the stable operation of the network communication system, and improve the security and data integrity of network communications. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A flow chart of the method for detecting message transmission anomalies provided by this application;

[0019] Figure 2 A schematic diagram of the transmission of the abnormal transmission detection message provided by this application;

[0020] Figures 3A-3D A schematic diagram of an abnormal transmission detection message provided by this application;

[0021] Figure 4 Shown is a schematic diagram of an embodiment of a device for detecting message transmission anomalies provided by the present application. DETAILED DESCRIPTION

[0022] The present invention will be described in detail with multiple examples shown in multiple figures. In the following detailed description, multiple specific details are used to provide a comprehensive understanding of the present application. Known methods, steps, components and circuits are not described in detail in the examples to avoid making these examples difficult to understand.

[0023] Among the terms used, the term "include" means including but not limited to; the term "contain" means including but not limited to; the terms "above", "within" and "below" are inclusive of the number; the terms "greater than" and "less than" are exclusive of the number. The term "based on" means based on at least a part thereof.

[0024] Figure 1 The figure shows a flow chart of a method for detecting message transmission anomaly provided by the present application; the method comprises:

[0025] Step 101, generating a first abnormal transmission detection message with a payload of all zeros and a second abnormal transmission detection message with a payload of all ones for a target gateway port; the first and second abnormal transmission detection messages have the same Ethernet header and IP header;

[0026] Step 102, periodically sending the first and second abnormal transmission detection messages through the target gateway port;

[0027] Step 103, receiving the first and second abnormal transmission detection messages returned by the peer gateway of the target gateway port;

[0028] Step 104, respectively calculating the first and second check codes based on the IP headers of the returned first and second abnormal transmission detection messages;

[0029] Step 105, compare the check code carried in the IP header of the first abnormal transmission detection message with the first check code; if they are inconsistent, execute step 107; if they are consistent, execute step 108;

[0030] Step 106, compare the check code carried in the IP header of the second abnormal transmission detection message with the second check code; if they are inconsistent, execute step 107; if they are consistent, execute step 108; the second check code is calculated based on the IP header of the returned second abnormal transmission detection message;

[0031] Step 107, determining that a message transmission anomaly occurs at the target gateway port;

[0032] Step 108: Check the payloads of the first and second abnormal transmission detection messages.

[0033] Figure 2 A schematic diagram of the transmission of the abnormal transmission detection message provided in this application. Figure 2 The middle devices 21 and 22 run the detection message construction task, the detection message sending task and the detection message receiving detection task.

[0034] The MAC address of the gateway port P1 of device 21 is MAC1, and the IP address is 1.8.15.1; the MAC address of the gateway port P2 of device 2 is MAC2, and the IP address is 1.8.15.2.

[0035] Devices 21 and 22 detect abnormal transmission caused by hardware failure in the same manner. The following embodiments take device 21 as an example to illustrate the implementation method of the present application.

[0036] Device 21 runs the detection message construction task and polls the port function of the Layer 3 gateway port on device 21 according to the set period to check whether it is in the working (UP) state. When the destination MAC address of the message received by the Layer 3 gateway port on device 21 is the L3 attribute, the message is forwarded at Layer 3, and the hardware may modify the abnormal transmission of the message; while the Layer 2 port transparently transmits the received Layer 2 message, and the hardware modification of the message will not occur. Device 21 selects the Layer 3 gateway ports in the working state and performs targeted fault detection to reduce the detection burden of the device.

[0037] Device 21 polls and finds that the port function of port P1 is in the UP state, searches the ARP table with the port index of port P1, and finds the ARP table entry with port P1 as the egress port; identifies port P1 as the target gateway port; and records the port index of port P1 in the target gateway port list.

[0038] Device 21 creates an abnormal transmission detection message 201 for port P1 to detect a 0->1 transition. Figure 3A As shown, in the abnormal transmission detection message 201, in the Ethernet header 201a, the source MAC address is MAC1, the destination MAC address is the MAC address MAC2 in the ARP table entry, and the protocol type is set to the value specified by the abnormal transmission detection message, such as FF; in the IP header 201b, the source IP address and the destination IP address are the IP address 1.8.15.1 of port P1; and the payload 201c is all 0.

[0039] Device 21 creates an abnormal transmission detection message 202 for detecting a 1->0 transition for port P1. Figure 3B As shown, in the abnormal transmission detection message 202, in the Ethernet header 202a, the source MAC address is MAC1, the destination MAC address is the MAC address MAC2 in the ARP table entry, and the protocol type is the specified value FF; in the IP header 202b, the source IP address and the destination IP address are the IP address 1.8.15.1 of port P1; and the payload 202c is all 1s.

[0040] The device 21 sends abnormal transmission detection messages 201 and 202 through the port P1.

[0041] Device 22 receives abnormal transmission detection message 201 through port P2, determines that the destination MAC address is MAC 2 of the layer 3 (L3) attribute of port P2, strips off the Ethernet header of abnormal transmission detection message 201, and finds the ARP table entry according to the destination IP address 1.8.15.1 of abnormal transmission detection message 201 ( Figure 2 , 3 not shown); read the MAC address MAC1 found in the ARP table entry, and re-encapsulate the abnormal transmission detection message 201 into the abnormal transmission detection message 211.

[0042] like Figure 3C As shown, in the abnormal transmission detection message 211, the source MAC address of the Ethernet header 211a is MAC2, the destination MAC address of the Ethernet header 211a is the MAC address MAC1 in the ARP table entry, and the protocol type is the specified value FF; in the IP header 211b, the source IP address and the destination IP address are the IP address 1.8.15.1 of the port P1; and the payload 211C is all 0.

[0043] Device 22 receives abnormal transmission detection message 202 through port P2, determines that the destination MAC address is MAC 2 of the layer 3 (L3) attribute of port P2, strips off the Ethernet header of abnormal transmission detection message 202, and finds the ARP table entry according to the destination IP address 1.8.15.1 of abnormal transmission detection message 202 ( Figure 2 , 3 not shown); read the MAC address MAC1 found in the ARP table entry, and re-encapsulate the abnormal transmission detection message 202 into the abnormal transmission detection message 212.

[0044] like Figure 3D As shown, in the abnormal transmission detection message 212, the source MAC address of the Ethernet header 212a is MAC2, the destination MAC address of the Ethernet header 212a is MAC address MAC1, and the protocol type of the Ethernet header 212a is the specified value FF; in the IP header 212b, the source IP address and the destination IP address are the IP address 1.8.15.1 of the port P1; and the payload 212C is all 1s.

[0045] In this way, device 22 transmits abnormal transmission detection messages 211 and 212 back to device 21 .

[0046] The device 21 receives the abnormal transmission detection messages 211 and 212 , identifies the message type as an abnormal transmission detection message according to the specified protocol type value FF, and performs packet modification analysis on the abnormal transmission detection messages 211 and 212 .

[0047] The device 21 first calculates the respective checksums of the abnormal transmission detection messages 211 and 212 according to the IP headers 211b and 212b of the abnormal transmission detection messages 211 and 212, and compares the calculated checksums with the checksums carried by the IP headers 211b and 212b of the abnormal transmission detection messages 211 and 212.

[0048] The device 21 compares and determines that the calculated check code is inconsistent with the check code carried in the IP header 211b, and then identifies that there is a message transmission anomaly of the hardware modification message on the port P1.

[0049] Similarly, the device 21 compares and determines that the calculated check code of the abnormal transmission detection message 212 is inconsistent with the check code carried by the IP header 212b, and then identifies that the port P1 has a message transmission abnormality of the hardware modification message.

[0050] If the device 21 compares and calculates the check code and the check code carried in the IP headers 211b and 211c of the abnormal transmission detection messages 211 and 212 respectively, the device 21 further checks the payload field of the returned abnormal transmission detection messages 211 and 212.

[0051] The device 21 checks the payload 211c of the abnormal transmission detection message 211. When the payload 211c has a bit with a value of 1, it is determined that the payload 211c of the abnormal transmission detection message 211 has a 0->1 jump, and there is a message transmission abnormality caused by the hardware modification message.

[0052] The device 21 checks the payload field 212c of the abnormal transmission detection message 212. When the payload 212c has a bit with a value of 0, it is determined that the payload 212c of the abnormal transmission detection message 221 has a 1->0 transition, and there is also a message transmission abnormality caused by the hardware modification message.

[0053] If device 21 detects that payload 211c of abnormal transmission detection message 211 is all 0 and payload 212 of abnormal transmission detection message 212 is all 1, it is determined that the payload fields of abnormal transmission detection messages 211 and 212 have not changed, and gateway port P1 does not have a hardware modification message payload failure.

[0054] Device 21 counts the abnormal message transmission of port P1. When the statistical value of the abnormal message transmission of port P1 exceeds a preset threshold, such as 5 times, device 21 outputs the port information of port P1 where the hardware message modification failure occurs. The network administrator quickly locates and handles the hardware failure, reduces the network interruption time caused by the hardware failure, and ensures the stable operation of the network.

[0055] Figure 2 , Figure 3A-3B The beneficial effect of the illustrated embodiment is that it can timely detect message tampering or abnormal transmission caused by hardware failure, thereby preventing malicious attacks and data tampering, and improving the security and data integrity of network communications. By automatically detecting abnormal transmission of message tampering, it is possible to effectively deal with abnormal data transmission that may be caused by hardware failure, improve the overall operating reliability of network switching equipment, reduce the impact of hardware failure, and ensure the stable operation of the network communication system.

[0056] Figure 4The schematic diagram of an embodiment of a device for detecting message transmission anomalies provided by the present application is shown. The device 40 includes a processor and a memory, a switching chip, and a network interface provided on the switching chip; wherein the processor generates a first abnormal transmission detection message and a second abnormal transmission detection message for a target gateway port by running processor executable instructions in the memory to perform the following operations; wherein the payload of the first abnormal transmission detection message is all zeros; the payload of the second abnormal transmission detection message is all ones; the source MAC address and the destination MAC address of the first abnormal transmission detection message are the same as the source MAC address and the destination MAC address of the second abnormal transmission detection message; and the IP address of the target gateway port is the source IP address and the destination IP address of the first abnormal transmission detection message, and the source IP address and destination IP address of the second abnormal transmission detection message; periodically sending the first and second abnormal transmission detection messages through the target gateway port; receiving the first and second abnormal transmission detection messages returned by the opposite gateway of the target gateway port; calculating the first check code based on the IP header of the returned first abnormal transmission detection message; calculating the second check code based on the IP header of the returned second abnormal transmission detection message; when the check code carried by the IP header of the first abnormal transmission detection message is inconsistent with the calculated first check code, or; when the check code carried by the IP header of the second abnormal transmission detection message is inconsistent with the calculated second check code, it is determined that a message transmission abnormality occurs at the target gateway port. In the Ethernet header of the first abnormal transmission detection message and the second abnormal transmission detection message, the source MAC address is the MAC address of the target gateway port, and the destination MAC address is the MAC address recorded in the ARP table entry; in the IP header of the first abnormal transmission detection message and the second abnormal transmission detection message, the source IP address and the destination IP address are the IP address of the target gateway port.

[0057] The processor performs the following operations by running the processor executable instructions in the memory: when the check code carried by the IP header of the first abnormal transmission detection message is consistent with the calculated first check code and when the check code carried by the IP header of the second abnormal transmission detection message is consistent with the calculated second check code; check the payload of the first abnormal transmission detection message and the second abnormal transmission detection message; when the payload of the first abnormal transmission detection message jumps or the payload of the second abnormal transmission detection message jumps, determine that a message transmission abnormality occurs at the target gateway port.

[0058] The processor also executes instructions in the running memory to perform the following operations: counting the message transmission anomalies of the target gateway port; when the statistical value of the message transmission anomalies of the target gateway port exceeds a preset threshold, outputting the port information of the target gateway port where the hardware message modification failure occurs.

[0059] Before generating the first abnormal transmission detection message and the second abnormal transmission detection message, the processor also executes instructions in the running memory to perform the following operations: identifying the gateway port that has learned the Address Resolution Protocol ARP table entry among all configured gateway ports as the target gateway port; and recording the port index of the target gateway port in the target gateway port list.

[0060] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for detecting message transmission anomaly, characterized in that: Generate a first abnormal transmission detection message and a second abnormal transmission detection message having the same Ethernet header and the same IP header for the target gateway port; wherein the payload of the first abnormal transmission detection message is all zeros; and the payload of the second abnormal transmission detection message is all ones; Periodically sending the first and second abnormal transmission detection messages through the target gateway port; Receiving the first and second abnormal transmission detection messages returned by the peer gateway of the target gateway port; A first check code calculated based on the IP header of the first abnormal transmission detection message transmitted back; A second check code calculated based on the IP header of the returned second abnormal transmission detection message; When the check code carried by the IP header of the first abnormal transmission detection message is inconsistent with the calculated first check code, or when the check code carried by the IP header of the second abnormal transmission detection message is inconsistent with the calculated second check code, it is determined that a message transmission abnormality occurs at the target gateway port.

2. The method according to claim 1, characterized in that The method further comprises, When the check code carried by the IP header of the first abnormal transmission detection message is consistent with the calculated first check code and when the check code carried by the IP header of the second abnormal transmission detection message is consistent with the calculated second check code; Checking the payload of the first abnormal transmission detection message and the second abnormal transmission detection message; When the load of the first abnormal transmission detection message changes or the load of the second abnormal transmission detection message changes, it is determined that the message transmission abnormality occurs at the target gateway port.

3. The method according to claim 1 or 2, characterized in that: The method further comprises, Counting the message transmission anomalies of the target gateway port; When the statistical value of the message transmission anomaly of the target gateway port exceeds a preset threshold, the port information of the target gateway port where the hardware message modification failure occurs is output.

4. The method according to claim 1, characterized in that: Generating a first abnormal transmission detection message and a second abnormal transmission detection message having the same Ethernet header and IP header for the target gateway port, the method further comprising: Among all configured gateway ports, the gateway port that has learned the Address Resolution Protocol ARP table entry is identified as the target gateway port; The port index of the target gateway port is recorded in the target gateway port list.

5. The method according to claim 4, characterized in that In the Ethernet header of the first abnormal transmission detection message and the second abnormal transmission detection message, the source MAC address is the MAC address of the target gateway port, and the destination MAC address is the MAC address recorded in the ARP table entry; In the IP headers of the first abnormal transmission detection message and the second abnormal transmission detection message, the source IP address and the destination IP address are the IP address of the target gateway port.

6. A device for detecting abnormal message transmission, characterized in that: The device includes a processor and a memory; the processor executes the processor-executable instructions in the memory to perform the following operations: Generate a first abnormal transmission detection message and a second abnormal transmission detection message having the same Ethernet header and the same IP header for the target gateway port; wherein the payload of the first abnormal transmission detection message is all zeros; and the payload of the second abnormal transmission detection message is all ones; Periodically sending the first and second abnormal transmission detection messages through the target gateway port; Receiving the first and second abnormal transmission detection messages returned by the peer gateway of the target gateway port; A first check code calculated based on the IP header of the first abnormal transmission detection message transmitted back; A second check code calculated based on the IP header of the returned second abnormal transmission detection message; When the check code carried by the IP header of the first abnormal transmission detection message is inconsistent with the calculated first check code, or when the check code carried by the IP header of the second abnormal transmission detection message is inconsistent with the calculated second check code, it is determined that a message transmission abnormality occurs at the target gateway port.

7. The device according to claim 6, characterized in that The processor also executes instructions in the memory to perform the following operations: When the check code carried by the IP header of the first abnormal transmission detection message is consistent with the calculated first check code and when the check code carried by the IP header of the second abnormal transmission detection message is consistent with the calculated second check code; Checking the payload of the first abnormal transmission detection message and the second abnormal transmission detection message; When the load of the first abnormal transmission detection message changes or the load of the second abnormal transmission detection message changes, it is determined that the message transmission abnormality occurs at the target gateway port.

8. The device according to claim 6 or 7, characterized in that The processor also executes instructions in the memory to perform the following operations: Counting the message transmission anomalies of the target gateway port; When the statistical value of the message transmission anomaly of the target gateway port exceeds a preset threshold, the port information of the target gateway port where the hardware message modification failure occurs is output.

9. The device according to claim 6, characterized in that Before generating the first abnormal transmission detection message and the second abnormal transmission detection message, the processor further executes instructions in the memory to perform the following operations: Among all configured gateway ports, the gateway port that has learned the Address Resolution Protocol ARP table entry is identified as the target gateway port; The port index of the target gateway port is recorded in the target gateway port list.

10. The device according to claim 9, characterized in that In the Ethernet header of the first abnormal transmission detection message and the second abnormal transmission detection message, the source MAC address is the MAC address of the target gateway port, and the destination MAC address is the MAC address recorded in the ARP table entry; In the IP headers of the first abnormal transmission detection message and the second abnormal transmission detection message, the source IP address and the destination IP address are the IP address of the target gateway port.

Citation Information

Patent Citations

  • Gateway forwarding anomaly detection method and device, medium and product

    CN114826987A

  • Network message transmission error detection method, device and equipment and readable storage medium

    CN116155776A

  • A system and method for real time detection of the data channel states

    CN1996898A

  • Network path detection method and system, and computer device

    WO2024001324A1