WO2017118428A1 - Procédé et appareil pour réaliser une détection d'erreur de message - Google Patents

Procédé et appareil pour réaliser une détection d'erreur de message Download PDF

Info

Publication number
WO2017118428A1
WO2017118428A1 PCT/CN2017/070505 CN2017070505W WO2017118428A1 WO 2017118428 A1 WO2017118428 A1 WO 2017118428A1 CN 2017070505 W CN2017070505 W CN 2017070505W WO 2017118428 A1 WO2017118428 A1 WO 2017118428A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
message
outgoing
specific part
inbound
Prior art date
Application number
PCT/CN2017/070505
Other languages
English (en)
Chinese (zh)
Inventor
王艺霖
刘娟
骆文
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017118428A1 publication Critical patent/WO2017118428A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors

Definitions

  • the present disclosure relates to the field of data communications, for example, to a method and apparatus for implementing message error detection.
  • Network devices such as the Broadband Remote Access Server (BRAS) device, the core router device, the core switch device, and the third are widely used in networks such as the carrier network, the enterprise network, and the Internet network.
  • Layer switch devices and various optical network devices operate an Internet Protocol (IP) that interconnects networks and build a world based on IP network protocols by interconnecting them.
  • IP Internet Protocol
  • Some message fields should not change when the message is transmitted through the network device, but a packet error may occur during the message transmission.
  • IP Internet Protocol
  • IP Internet Protocol
  • the IP link problem causes the packet field that should not be changed to change between the area A and the area B, causing packet errors and affecting normal communication.
  • the above system problem may be caused by the failure of the system software or hardware, or the external environment affecting the system performance (such as electromagnetic interference) and other factors affecting the normal transmission of the message. If the message field that should not be changed is changed, for example, the IP address field is modified, the message will be delivered to the wrong destination address, and finally discarded as a bad packet, affecting the normal communication of the network.
  • the present disclosure provides a method and apparatus for implementing packet error detection, which can determine whether an error occurs in a packet and determine whether a network device is normal when the network size is increased.
  • the present disclosure provides a method for implementing packet error detection, including:
  • the detected network is a network composed of one or more network devices.
  • the obtaining and distinguishing the inbound packet and the outgoing packet transmitted by the detected network includes:
  • obtaining and distinguishing between the inbound packet and the outgoing packet transmitted by the detected network includes:
  • the inbound packet and the outgoing packet transmitted by the detected network are copied by configuring the network device of the detected network;
  • the network device is an optical port device
  • the inbound packet and the outgoing packet transmitted by the detected network are split and replicated by the optical splitter of the detected network.
  • the method further includes:
  • the inbound packet and the outgoing packet to which the flow direction information is added are encapsulated;
  • the method further includes: encapsulating the inbound packet containing the flow direction information and encapsulating the flow direction information The outgoing message is decapsulated.
  • the encapsulating the inbound packet and the outbound packet that respectively add the corresponding flow direction information includes: performing a universal routing encapsulation GRE or a user on the inbound packet and the outgoing packet respectively respectively adding the corresponding flow direction information.
  • Datagram Protocol UDP encapsulation includes: performing a universal routing encapsulation GRE or a user on the inbound packet and the outgoing packet respectively respectively adding the corresponding flow direction information.
  • the matching by the specific part of the inbound message with the specific part of the outgoing message, includes:
  • the feature values of the content of the specific part of the outgoing message are matched.
  • the method before the matching the specific part of the inbound message with the specific part of the outgoing message, the method further includes:
  • the method before the matching the specific part of the inbound message with the specific part of the outgoing message, the method further includes at least one of the following:
  • the matching by the specific part of the inbound message with the specific part of the outgoing message, includes:
  • the specific part of the inbound message that is at least one of the source address and the destination address is matched with the specific part of the outgoing message;
  • the source address of the incoming packet When in the NAT scenario, the source address of the incoming packet, the destination address of the incoming packet, the source address of the outgoing packet, the destination address of the outgoing packet, and the local address in the NAT scenario. And the global address mapping entry, determining the source address and the destination address of the obtained inbound packet and the outgoing packet, and selecting the inbound packet and the outgoing packet corresponding to the source address and the destination address of the mapping. And matching a specific part of the incoming message with a specific part of the outgoing message.
  • the method further includes: a content of a distinguishing field included in a specific part of the incoming packet and a specific part of the outgoing packet Contains the content of the distinguishing field to learn the message;
  • the packet does not have an error; if the incoming report is in the result of the packet learning If the distinguishing field included in the specific part of the text does not match the distinguishing field included in the specific part of the outgoing message, the specific part of the incoming message is matched with the specific part of the outgoing message, and the packet is determined. Is it wrong?
  • the distinguishing field includes at least one of the following: a protocol, a message length, and a flag bit.
  • the method further includes: adjusting, according to the packet that determines the error, the network device involved in the error message.
  • the application also provides an apparatus for implementing packet error detection, including:
  • An obtaining unit configured to acquire and distinguish between an inbound message and an outgoing message transmitted by the detected network
  • the matching analysis unit is configured to match a specific part of the inbound message with a specific part of the outgoing message to determine whether the message is in error;
  • the detected network is a network composed of one or more network devices.
  • the obtaining unit is configured to
  • the obtaining unit is configured to
  • the inbound packet and the outgoing packet transmitted by the detected network are copied by configuring the network device of the detected network;
  • the network device is an optical port device
  • the inbound packet and the outgoing packet transmitted by the detected network are split and replicated by the optical splitter of the detected network.
  • the device further includes an encapsulating unit, configured to add an inbound message and an outgoing message to the flow direction information when the corresponding inbound message is added to the inbound message and the outgoing message respectively.
  • an encapsulating unit configured to add an inbound message and an outgoing message to the flow direction information when the corresponding inbound message is added to the inbound message and the outgoing message respectively.
  • a decapsulation unit configured to: before the matching the specific part of the inbound message with the specific part of the outgoing message, the inbound message containing the flow direction information and the encapsulated outgoing direction including the flow direction information The message is decapsulated.
  • the matching analysis unit is set to,
  • the extracted feature value of the content of the specific portion of the incoming message is matched with the extracted feature value of the content of the specific portion of the outgoing message.
  • the device further includes a first filtering unit, configured to filter the outgoing report that is sent by the detected network before the specific part of the incoming packet is matched with the specific part of the outgoing packet. And an inbound message sent to the detected network.
  • a first filtering unit configured to filter the outgoing report that is sent by the detected network before the specific part of the incoming packet is matched with the specific part of the outgoing packet. And an inbound message sent to the detected network.
  • the apparatus further includes: a second filtering unit, configured to filter the reported network multicast transmission report before the specific part of the inbound message is matched with the specific part of the outgoing message And at least one of the messages transmitted by the detected network broadcast.
  • a second filtering unit configured to filter the reported network multicast transmission report before the specific part of the inbound message is matched with the specific part of the outgoing message And at least one of the messages transmitted by the detected network broadcast.
  • the matching analysis unit is set to,
  • the specific part of the inbound message that is at least one of the source address and the destination address is matched with the specific part of the outgoing message;
  • the global address mapping entry determines the source address and the destination address of the obtained inbound packet and the outgoing packet, and selects the inbound packet and the outgoing packet corresponding to the source address and the destination address of the mapping. Performing a match between a specific portion of the incoming message and a specific portion of the outgoing message.
  • the device further includes a message learning unit, configured to: when the message transmitted by the detected network is a common message, the content of the distinguishing field included in the specific part of the incoming message and the The message learning is performed on the content of the distinguishing field included in the specific part of the outgoing message;
  • the matching analysis unit is further configured to determine that the packet does not have an error if the distinguishing field included in the specific part of the incoming packet and the distinguishing field included in the specific part of the outgoing packet are matched in the result of the packet learning; In the result of the packet learning, the distinguishing field included in the specific part of the incoming message and the distinguishing field included in the specific part of the outgoing message do not match, and the specific part of the incoming message and the outgoing report are A specific part of the text is matched to determine if the message is in error.
  • the device further includes an adjusting unit, configured to determine, according to the matching analysis unit, an error message, and adjust the network device involved in the error message.
  • an adjusting unit configured to determine, according to the matching analysis unit, an error message, and adjust the network device involved in the error message.
  • the present disclosure provides a non-transitory computer readable storage medium storing computer executable instructions, the computer executable instructions being set to any of the above methods for implementing message error detection.
  • the disclosure also provides a network device, including:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform any of the methods described above for implementing message error detection.
  • the technical solution of the present application includes: obtaining and distinguishing between an inbound packet and an outgoing packet transmitted by the detected network; matching a specific part of the inbound packet with a specific part of the outgoing packet to determine whether the packet is in error, wherein
  • the detection network is a network of one or more network devices.
  • the method of the present disclosure determines whether the message is erroneous by matching a specific part of the incoming message and a specific part of the outgoing message, thereby realizing error detection of the message of the error-detected network.
  • the network device is adjusted, and the communication of the network to be detected is timely adjusted to ensure the normal communication of the network.
  • FIG. 1 is a flowchart of a method for implementing packet error detection according to the present disclosure
  • FIG. 2 is a structural diagram of an apparatus for implementing packet error detection according to the present disclosure.
  • FIG. 3 is a flow chart of a method according to a first embodiment of the present disclosure
  • FIG. 4 is a flow chart of a method according to a second embodiment of the present disclosure.
  • FIG. 5 is a schematic diagram of a network topology of a packet passing through a detected network according to a third embodiment of the present disclosure
  • Figure 6 is a flow chart of a method according to a fourth embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of hardware of an electronic device according to the present disclosure.
  • FIG. 1 is a flowchart of a method for implementing packet error detection according to the present disclosure.
  • step 100 the inbound packet and the outgoing packet transmitted by the detected network are obtained and distinguished.
  • the detected network is a network composed of one or more network devices.
  • the inbound packet may be a packet received by the detected network, and the outgoing packet may be a packet sent by the detected network.
  • Obtaining and distinguishing between the inbound and outbound packets transmitted by the detected network may include:
  • the corresponding inbound and outbound packets are added to the inbound and outbound packets to distinguish between the inbound and outbound packets.
  • the disclosed method can also include:
  • the inbound packet and the outgoing packet are added to the flow direction information.
  • the method further includes: decapsulating the encapsulated inbound packet containing the flow direction information and the encapsulated outgoing packet containing the flow direction information.
  • the specific part of the inbound packet is a packet field that should not change in the incoming packet.
  • the specific part of the outgoing packet is a packet field that should not change in the outgoing packet.
  • the message field that should not change can be the source address, the destination address, or the packet length.
  • the encapsulation of the inbound and outbound packets respectively adding the corresponding flow information includes: performing Generic Routing Encapsulation on the inbound and outbound packets respectively adding the corresponding flow information.
  • GRE Generic Routing Encapsulation
  • UDP User Datagram Protocol
  • obtaining and distinguishing between the inbound packet and the outgoing packet transmitted by the detected network includes:
  • the inbound packet and the outgoing packet transmitted by the detected network are copied by configuring the network device of the detected network;
  • the inbound packet and the outgoing packet transmitted by the detected network are split and replicated by the optical splitter of the detected network.
  • the electrical interface is a network cable interface
  • the optical interface is a fiber interface
  • step 110 a specific part of the incoming message is matched with a specific part of the outgoing message to determine whether the message is in error.
  • the matching may be that each field of a specific part of the inbound packet of the same network device is compared with each field of the specific part of the outgoing message, and each field of the specific part of the incoming message of the same network device and The match is successful if each field of the specific part of the outgoing message is the same.
  • the method of the present disclosure further includes: adjusting, according to the packet that determines the error, the network device involved in the error message.
  • the inbound packet and the outgoing packet are obtained by using the inbound interface and the outgoing interface to distinguish the inbound packet from the outgoing packet.
  • Matching a particular portion of the incoming message with a particular portion of the outgoing message may include:
  • the feature value of the content of the extracted specific portion of the incoming message is matched with the feature value of the content of the extracted specific portion of the outgoing message.
  • the method of the disclosure may further include:
  • the method of the present disclosure further includes at least one of the following before matching a particular portion of the incoming message with a particular portion of the outgoing message:
  • the outgoing packets sent by the detected network and the incoming packets sent to the detected network can be differentiated and identified by the following methods:
  • the destination address is used to determine whether it is an inbound message sent to the detected network.
  • Matching a specific part of the incoming message with a specific part of the outgoing message includes:
  • NAT non-network address translation
  • the address mapping entry determines the source address and the destination address of the obtained inbound packet and the outgoing packet, and selects the inbound packet and the outgoing packet corresponding to the source address and the destination address of the mapping. A match between a particular portion of the message and a particular portion of the outgoing message.
  • the method of the disclosure may further include: performing packet learning on the content of the distinguishing field included in the specific part of the incoming packet and the content of the distinguishing field included in the specific part of the outgoing packet. ;
  • the distinguishing field included in the specific part of the incoming packet and the distinguishing field included in the specific part of the outgoing packet match in the result of the packet learning, it is determined that the packet does not have an error; if the result of the packet learning is Determining that the distinguishing field included in the specific part of the packet does not match the distinguishing field included in the specific part of the outgoing message, and matching the specific part of the incoming message with the specific part of the outgoing message , to determine if the message is wrong.
  • the common packets include the address resolution protocol (ARP) packet, the IP packet, the PING protocol packet, the transmission control protocol (TCP) packet, and the UDP packet.
  • ARP address resolution protocol
  • IP IP packet
  • PING protocol PING protocol packet
  • TCP transmission control protocol
  • UDP UDP packet
  • the distinguishing field may include at least one of the following: a protocol, a message length, and a flag bit.
  • the method of the present disclosure determines whether the message is erroneous by matching a specific part of the incoming message and a specific part of the outgoing message, thereby realizing error detection of the message of the error-detected network.
  • the network device is adjusted, and the communication of the network to be detected is timely adjusted to ensure the normal communication of the network.
  • the apparatus includes: an obtaining unit and a matching analyzing unit.
  • the obtaining unit is configured to acquire and distinguish the inbound packet and the outgoing packet transmitted by the detected network.
  • the acquisition unit can also be set to,
  • the corresponding inbound and outbound packets are added to the inbound and outbound packets to distinguish between the inbound and outbound packets.
  • the acquisition unit can also be set to,
  • the network device of the detected network is configured to copy the inbound packet and the outgoing packet transmitted by the detected network.
  • the inbound packet and the outgoing packet transmitted by the detected network are split and replicated by the optical splitter of the detected network.
  • the disclosed apparatus also includes a package unit and a decapsulation unit.
  • the encapsulation unit When the encapsulation unit is configured to add the corresponding flow direction information to the incoming inbound packet and the outgoing packet respectively, the encapsulation packet and the outgoing packet are added to the flow direction information.
  • the decapsulation unit is configured to decapsulate the encapsulated inbound packet containing the flow direction information and the encapsulated outgoing message including the flow direction information before the specific part of the incoming packet is matched with the specific part of the outgoing packet. .
  • the detected network is a network composed of one or more network devices.
  • the matching analysis unit is configured to match the inbound and outgoing messages in the incoming message to determine whether the packet is in error.
  • the matching analysis unit may be further configured to match the content of the specific part of the incoming message with the content of the specific part of the outgoing message;
  • the feature value of the content of the extracted specific portion of the incoming message is matched with the feature value of the content of the extracted specific portion of the outgoing message.
  • the matching analysis unit may be further configured to: when in a non-network address translation (NAT) scenario, match a specific portion of the same incoming message with at least one of the source address and the destination address with a specific portion of the outgoing message ;as well as
  • NAT non-network address translation
  • the source address of the incoming packet, the destination address of the incoming packet, the source address of the outgoing packet, the destination address of the outgoing packet, and the local address and global address mapping in the NAT scenario determines the source address and the destination address of the inbound packet and the destination packet, and selects the inbound and outbound packets corresponding to the source and destination addresses of the mapping. Partial match to a specific part of the outgoing message.
  • the disclosed apparatus may also include a first filtration unit.
  • the first filtering unit is configured to filter the outgoing message actively sent by the detected network and the incoming message sent to the detected network before the specific part of the incoming message matches the specific part of the outgoing message.
  • the disclosed apparatus may also include a second filter unit.
  • the second filtering unit is configured to filter at least one of the packet transmitted by the detected network multicast and the packet transmitted by the detected network before the matching of the specific part of the incoming message with the specific part of the outgoing message.
  • Kind of message is configured to filter at least one of the packet transmitted by the detected network multicast and the packet transmitted by the detected network before the matching of the specific part of the incoming message with the specific part of the outgoing message.
  • the disclosed apparatus may also include a message learning unit.
  • the packet learning unit is configured to perform packet learning on the content of the distinguishing field included in the specific part of the incoming packet and the content of the distinguishing field included in the specific part of the outgoing packet when the packet transmitted by the detected network is a common packet.
  • the matching analysis unit may be further configured to determine that the packet does not have an error if the distinguishing field included in the specific part of the incoming packet and the specific part included in the specific part of the outgoing packet are matched in the result of the packet learning;
  • the distinguishing field included in the specific part of the incoming message and the distinguishing field included in the specific part of the outgoing message do not match, and the specific part of the incoming message and the specific part of the outgoing message Partially match to determine if the message is in error.
  • the disclosed apparatus may also include an adjustment unit.
  • the adjusting unit is configured to determine an error message according to the matching analysis unit, and adjust the network device involved in the error message.
  • the detected network when the packet is detected, may be a network composed of one or more network devices, and the network device may be a router or a switch.
  • the detected network is a network composed of a single network device, and the network device includes a first interface and a second interface.
  • the inbound and outbound packets of the first interface and the second interface of the network device are distinguished.
  • the packet entering the network device may be copied from the first interface and the second interface, and the packet transmitted through the network device is copied from the first interface and the second interface.
  • the corresponding inbound interface and the outgoing interface may be set on the device that detects the error in the disclosure packet, and the copied inbound packet and the outgoing packet are separated and transmitted to the incoming interface through the set inbound interface and the outgoing interface.
  • the device for detecting errors In this embodiment, the network device can also be set on the device for error detection of the message.
  • the corresponding inbound interface and the outgoing interface of the different interfaces that is, the first inbound interface that receives the inbound packet and the inbound packet copied from the first interface and the packet that is copied out from the first interface are received on the packet error detecting device.
  • An outgoing interface configured to receive a second incoming interface that receives the inbound packet copied from the second interface, and receives the second outgoing interface that is copied from the second interface to the second interface; when the interface of the network device increases, the packet is detected incorrectly.
  • the inbound interface and the outbound interface that are set to correspond to the network device interface on the device are also correspondingly increased.
  • 3 is a flow chart of a method of the first embodiment of the present disclosure.
  • step 300 the inbound message received by the network device and the outgoing outgoing message are copied.
  • the network device can be configured to copy the inbound packets flowing into the first interface and the second interface, and the outgoing packets from the first interface and the second interface.
  • the network device is an optical interface device, the inbound packets that flow into the first interface and the second interface are split and replicated on the optical splitter, and the outgoing packets of the first interface and the second interface are split and copied.
  • the inbound packet and the outgoing packet may be distinguished by adding the flow direction information to the transmitted packet. For example, You can add a flow label, a flow direction identifier, or a flow direction attribute field to the transmitted message.
  • the method in this embodiment may further include: encapsulating an inbound packet and an outgoing packet to which the flow direction information is added, and encapsulating the inbound packet, when the corresponding inbound packet is added to the inbound packet and the outgoing packet.
  • the encapsulated incoming message containing the flow direction information and the encapsulated outgoing message containing the flow direction information are decapsulated.
  • the encapsulation method in this embodiment may be a GRE or UDP encapsulation or the like.
  • step 310 a specific part of the incoming message is matched with a specific part of the outgoing message to determine whether the message is in error.
  • the specific part of the incoming packet and the specific part of the outgoing packet are from the inflow network device to the outgoing network device, and the content of the specific part and the content of the specific part are not allowed. Changed. If there is no link problem in the network, the content of the specific part of the incoming message is the same as the content of the specific part of the outgoing message. If the content of a specific part is consistent with the content of a specific part, the match is passed, and it is determined that no error has occurred in the message.
  • the content of a specific part of the incoming message transmitted by the network device and the content of the specific part of the outgoing message should be [0x10, 0x20, 0x30], and the device that detects the error of the packet obtains the specificity of an incoming message.
  • the content of the part is [0x10, 0x20, 0x30]
  • the device that detects the error of the packet cannot match the outgoing packet with the same part of the incoming packet, and determines that the packet has an error.
  • Different types of packets may be different in the specific part of the packet when the network device transmits.
  • the changed part refers to the content of the packet except the specific part, such as the time-to-live value (TTL) field of the IP packet.
  • TTL time-to-live value
  • Matching a particular portion of the incoming message with a particular portion of the outgoing message may be a comparison of the content of the particular portion of the incoming message with the content of the particular portion of the outgoing message. For example, loading the content of a particular portion of the incoming message into the first list loads the content of the particular portion of the outgoing message into the second list.
  • the content of a specific part and the content of a specific part may be loaded into the list according to time sorting, and when the specific part of the same time is compared with the specific part, the content of the specific part of the outgoing message in the second list is extracted one by one.
  • the content of a specific part of the inbound message in a list is matched, and if the matching is successful, it is determined that the message does not have an error. If the specific part of the outgoing message in the second list does not match the content of the specific part of the inbound message that is the same as the specific part of the outgoing message, the packet is determined to have an error.
  • the method in this embodiment may also perform matching by extracting content of a specific part of the incoming message in the first list and a specific part of the second list.
  • the matching of the specific part of the incoming message with the specific part of the outgoing message may also be performed by extracting the feature value separately from the content of the specific part of the incoming message and the content of the specific part of the outgoing message, and then extracting the incoming direction
  • the feature value of the content of the specific part of the message is matched with the feature value of the content of the outgoing message part, and the matching of the feature value is determined to determine whether the specific part of the incoming message is the same as the specific part of the outgoing message, and the feature value is adopted.
  • the method of matching can improve the efficiency of the matching process.
  • the eigenvalues of the packets and the packets are in the matching process.
  • the hash calculation is used as an example.
  • the eigenvalues corresponding to the packets and packets can pass the VALUE and KEY values of the packets in the hash table.
  • the storage is performed separately, and the VALUE value is successfully matched according to the matching of the KEY value, thereby determining that the message is successfully matched.
  • the method of extracting the feature value may be implemented by calculating a hash value.
  • the eigenvalues of the packets transmitted by the detected network are extracted, and the inbound packets and the outgoing packets are distinguished by the eigenvalues, and the eigenvalues are matched to determine whether the packets have errors.
  • the method in this embodiment further includes:
  • At least one of the packet length, the source address, the destination address, the source port, and the destination port is matched as a feature value.
  • At least one of the packet length, the source address, the destination address, the source port, and the destination port is used as the feature value for matching.
  • the transmission control protocol (TCP) packet or the user datagram protocol (UDP) packet can be matched by using at least one of the source port and the destination port as the feature value.
  • TCP transmission control protocol
  • UDP user datagram protocol
  • the packet may be segmented and hashed, and the hash value calculated by the segmentation may be used as the feature value of the packet, and may be performed according to the feature value. A match between a specific part of the incoming message and a specific part of the outgoing message.
  • the obtained outgoing packet and the incoming packet may be delayed.
  • the time of the obtained outgoing packet may be earlier than the time when the incoming packet is obtained.
  • the method of the disclosure may further include: after the preset duration, re-entry the incoming packet. A match between a particular part of the text and a particular part of the outgoing message.
  • the method in this embodiment may further include sending the outgoing packet sent by the network device and the incoming report sent to the network device.
  • the text is distinguished by exclusion.
  • the outbound packet sent by the network device can be an administrative maintenance packet.
  • the IP address can be used as the management system address to determine whether the outgoing packet is an administrative maintenance packet.
  • the inbound packet sent to the detected device itself may be a packet sent by the management system to the network device. At this time, it is determined whether the incoming packet is a packet sent by the management system to the network device according to the destination address, for example, the IP address is an IP address of the network device itself.
  • the apparatus for error detection of the message in this embodiment includes an obtaining unit and a matching analyzing unit, and the obtaining unit is connected to each interface of the detected network.
  • the detected network may be a network device or a network composed of two or more network devices. 4 is a flow chart of a method of a second embodiment of the present disclosure.
  • step 400 the acquiring unit acquires and distinguishes the inbound packet and the outgoing packet transmitted by the detected network.
  • step 410 the acquiring unit performs feature value extraction on the specific part of the obtained inbound message and the specific part of the outgoing message.
  • step 420 the acquiring unit extracts the feature value and the outgoing message extracted from the specific part of the incoming message.
  • the feature values extracted by the specific part are sent to the matching analysis unit.
  • the acquiring unit may obtain the feature value of the packet of each interface, and extract the feature value of the content of the specific part of the incoming message and the feature value of the content of the specific part of the outgoing message. The value is sent to the matching analysis unit.
  • the flow direction information may be added to the message.
  • the attribute data is added to the packet to identify the flow direction, and the packet after the identifier is added is encapsulated and transmitted.
  • step 430 the analysis matching unit matches the feature value of the content of the specific part of the received incoming message with the feature value extracted by the content of the specific part of the outgoing message to determine whether the message has an error.
  • FIG. 5 is a schematic diagram of a network topology of a packet passing through a detected network according to a third embodiment of the present disclosure.
  • the packet flow direction includes the area A to the area B, the area A to the area C, the area B to the area A, and the area C to the area A.
  • the packet needs to match when the packet flows to the source and destination addresses as an example to match the specific part of the incoming packet with the specific part of the outgoing packet.
  • the incoming packet is filtered according to the source address and the destination address of the outgoing packet, and the inbound packet with the same source address and destination address is obtained after the outgoing packet is sent to the specific part of the incoming packet.
  • the source address and destination address are copied to the inbound interface and the outbound interface of the analysis matching unit.
  • the local address and global address mapping entries in the NAT scenario are modified. Therefore, the source address and destination address cannot be passed. Filtering in the same way. If you need to perform filtering, you can obtain the local address and global address mapping entries in the NAT scenario to obtain the inbound packets based on the mapping entries. Source and destination addresses before or after copying.
  • the message learning may learn a special distinguishing field in a specific part of the incoming message and a special distinguishing field in a specific part of the outgoing message.
  • the special distinguishing field may include at least one of a protocol, a message length, and a flag bit.
  • a large number of TCP SYN packets carry almost the same parameters, such as packet length and SYN flag.
  • SYN is the flag field of the TCP layer
  • SYN is the flag for establishing a connection.
  • the acquiring unit extracts at least one of the protocol, the packet length, and the flag bit; and extracts the specific part of the incoming message.
  • the distinguishing field and the distinguishing field extracted from the specific part of the outgoing packet are matched after the packet learning; the matching is successful, and the packet is not found to have an error; if the matching fails, the packet is not a common packet, and the first embodiment is used.
  • the method matches a specific part of the incoming message with a specific part of the outgoing message to determine whether the packet has an error.
  • Whether the packet learning of distinguishing fields can be determined according to the frequency and quantity of occurrence of such packets.
  • the message learning is automatically triggered once the part of the message is detected.
  • FIG. 6 is a flowchart of a method according to a fourth embodiment of the present disclosure. As shown in FIG. 6, the method includes:
  • step 600 the inbound packet and the outgoing packet transmitted by the detected network are obtained and distinguished.
  • the obtaining of the inbound message and the outgoing message may further include: acquiring the feature value of the incoming message and the feature value of the outgoing message, or copying the specific part of the incoming message and the specific part of the outgoing message.
  • the method of distinguishing the inbound and outbound packets can be implemented by using the inbound and outbound interfaces respectively through the corresponding inbound interface and the outgoing interface, or by adding flow information to the packet, for example, adding a differentiated flow. Property information is implemented.
  • step 610 a distinguishing field in a specific part of the incoming message and a specific part of the outgoing message is extracted, and packet learning is performed on the distinguished field.
  • step 620 the distinguishing fields of the packet learning are matched. If the matching is successful, step 630 is performed; if the matching fails, step 640 is performed.
  • step 630 it is determined that no error has occurred in the message.
  • step 640 a specific part of the incoming message and a specific part of the outgoing message are matched to determine whether the message has an error.
  • the inbound packet and the outgoing packet of the packet detection in this embodiment do not include the packet sent to the detected network and the packet sent by the detected network.
  • packet error detection processing is performed on a packet that is multicast-transmitted during the matching process or a packet that is transmitted by the broadcast. If the incoming packet and the outgoing packet are not multicast packets or broadcast packets, the network device will cause the outgoing packets of the multiple interfaces to be the same as the incoming packets. System network resources cause a lot of waste, and it is also easy to cause network congestion. Therefore, the case where the incoming message and the outgoing message are multicast-transmitted messages or broadcast-transmitted messages need to be distinguished from the case where the packets are erroneous.
  • the destination address and the mask information can be used to determine whether the inbound packet and the outgoing packet are multicast transmission packets or broadcast transmission packets.
  • the inbound packet and the outgoing packet are determined to be multicast, When a transmitted message or a broadcasted message is received, it is determined that the message is not error.
  • Mask information can be obtained through a configuration file. If it is determined that the inbound packet and the outgoing packet are neither the multicast transmission nor the broadcast transmission, the packet detection may be performed according to the technical solution of the disclosure, and the specific part of the incoming packet is When a specific part of the outgoing packet matches, the packet can be judged to be an error message.
  • the present disclosure also provides a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the method of implementing message error detection in any of the above embodiments.
  • the present disclosure also provides a hardware structure diagram of an electronic device.
  • the electronic device includes:
  • the processor 701, the communication interface 704, and the memory 703 can complete communication with each other through the bus 703.
  • Communication interface 704 can be used for information transfer.
  • the processor 701 can call logic instructions in the memory 702 to perform the above method.
  • logic instructions in the memory 702 described above may be implemented in the form of software functional units and sold or used as separate products, and may be stored in a computer readable storage medium.
  • the memory 702 is a computer readable storage medium that can be configured to store software programs, calculations The machine executable program, such as the program instruction or module corresponding to the method in the embodiment of the present disclosure.
  • the processor 701 performs a function application and data processing by executing a software program, an instruction, or a module stored in the memory 702, that is, a method of implementing message error detection.
  • the memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the terminal device, and the like. Further, the memory 702 may include a high speed random access memory, and may also include a nonvolatile memory.
  • the technical solution of the present disclosure may be embodied in the form of a software product stored in a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) Performing all or part of the steps of the method of the embodiments of the present disclosure.
  • the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read only memory (Read Only Memory ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • the method and device for implementing packet error detection determine whether a packet is in error by matching a specific part of an incoming message with a specific part of an outgoing message, and realizing error detection of a packet of the error-detected network. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

L'invention concerne un procédé et un appareil pour réaliser une détection d'erreur de message. Le procédé consiste : à acquérir et distinguer un message entrant et un message sortant transmis par un réseau détecté ; et à mettre en correspondance une partie spécifique du message entrant avec une partie spécifique du message sortant, de façon à déterminer si les messages ont ou non une erreur, le réseau détecté étant un réseau composé d'un ou plusieurs dispositifs de réseau.
PCT/CN2017/070505 2016-01-06 2017-01-06 Procédé et appareil pour réaliser une détection d'erreur de message WO2017118428A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610006121.6A CN106953773A (zh) 2016-01-06 2016-01-06 一种实现报文检错的方法及装置
CN201610006121.6 2016-01-06

Publications (1)

Publication Number Publication Date
WO2017118428A1 true WO2017118428A1 (fr) 2017-07-13

Family

ID=59273312

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/070505 WO2017118428A1 (fr) 2016-01-06 2017-01-06 Procédé et appareil pour réaliser une détection d'erreur de message

Country Status (2)

Country Link
CN (1) CN106953773A (fr)
WO (1) WO2017118428A1 (fr)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756401B (zh) * 2019-03-25 2020-11-27 新华三信息安全技术有限公司 一种测试方法、装置、电子设备及存储介质
CN110505248B (zh) * 2019-09-29 2022-05-24 国家计算机网络与信息安全管理中心 一种内网nat流量的定位方法及***

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070097872A1 (en) * 2005-10-27 2007-05-03 Inventec Corporation Network connection apparatus testing method
CN203027498U (zh) * 2012-11-27 2013-06-26 北京交控科技有限公司 测试装置
CN103746868A (zh) * 2013-12-23 2014-04-23 普联技术有限公司 一种发送及接收测试报文的方法、装置及测试设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070032887A1 (en) * 2005-07-26 2007-02-08 Brother Kogyo Kabushiki Kaisha Information management system, information processing device, and program
CN101572584B (zh) * 2008-04-30 2012-01-04 华为技术有限公司 报文错误检测方法、设备及***

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070097872A1 (en) * 2005-10-27 2007-05-03 Inventec Corporation Network connection apparatus testing method
CN203027498U (zh) * 2012-11-27 2013-06-26 北京交控科技有限公司 测试装置
CN103746868A (zh) * 2013-12-23 2014-04-23 普联技术有限公司 一种发送及接收测试报文的方法、装置及测试设备

Also Published As

Publication number Publication date
CN106953773A (zh) 2017-07-14

Similar Documents

Publication Publication Date Title
US10382309B2 (en) Method and apparatus for tracing paths in service function chains
US9825900B2 (en) Overlay tunnel information exchange protocol
CN110830371B (zh) 报文重定向方法、装置、电子设备及可读存储介质
WO2016082588A1 (fr) Procédé et appareil de vérification de connectivité de liaison
US9883010B2 (en) Method, apparatus, device and system for generating DHCP snooping binding table
US10693833B2 (en) Address resolution suppression in a logical network
US7607049B2 (en) Apparatus and method for detecting network failure location
US11689501B2 (en) Data transfer method and virtual switch
CN110224935B (zh) 一种处理组播数据报文的方法及装置
WO2014205784A1 (fr) Procédé et dispositif de traitement de message de diffusion groupée dans un réseau nvo3, et réseau nvo3
CN102647312B (zh) 一种整网组播拓扑的探测方法及装置
WO2017129011A1 (fr) Procédé de traitement de message et dispositif de réseau
US10243884B2 (en) Packet transmission method and apparatus
WO2017118428A1 (fr) Procédé et appareil pour réaliser une détection d'erreur de message
US9985926B2 (en) Address acquiring method and network virtualization edge device
CN115695306A (zh) 一种报文传输***、方法、装置、设备及介质
CN112612670B (zh) 一种会话信息统计方法、装置、交换设备及存储介质
EP3913865A1 (fr) Procédé et dispositif de décapsulation de message, procédé et dispositif d'encapsulation de message, dispositif électronique et support d'informations
WO2015188706A1 (fr) Procédé, dispositif et système de traitement de trame de données
JP5733473B2 (ja) インターワーク装置、方法、及びプログラム
CN106067864B (zh) 一种报文处理方法及装置
EP4340303A1 (fr) Procédé et appareil de transfert de données, support de stockage et appareil électronique
WO2022183927A1 (fr) Procédé et appareil de transmission de paquets
US9742699B2 (en) Network apparatus and selective information monitoring method using the same
WO2016082380A1 (fr) Procédé et appareil de traitement de paquet de données de réseau

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17735866

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17735866

Country of ref document: EP

Kind code of ref document: A1