[go: up one dir, main page]

WO2017118416A1 - Method and apparatus for realizing message error detection - Google Patents

Method and apparatus for realizing message error detection Download PDF

Info

Publication number
WO2017118416A1
WO2017118416A1 PCT/CN2017/070452 CN2017070452W WO2017118416A1 WO 2017118416 A1 WO2017118416 A1 WO 2017118416A1 CN 2017070452 W CN2017070452 W CN 2017070452W WO 2017118416 A1 WO2017118416 A1 WO 2017118416A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
packet
preset period
outgoing
inbound
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.)
Ceased
Application number
PCT/CN2017/070452
Other languages
French (fr)
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Publication of WO2017118416A1 publication Critical patent/WO2017118416A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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 invention relates to the field of data communications, and more particularly to a method and apparatus for implementing packet error detection.
  • Network devices of a wide variety and quantity in networks such as carrier networks, enterprise networks, and Internet networks, such as broadband remote access server (BRAS) devices, access/core router devices, and access/core switch devices , three-layer switch equipment and various optical network equipment.
  • BRAS broadband remote access server
  • These network devices run IP network protocols and build a world based on IP network protocols by interconnecting them.
  • BRAS broadband remote access server
  • BRAS broadband remote access server
  • the communication link with area C the communication link between area A and area B, the packet field that should not change due to the IP link problem such as high packet loss rate of the router or switch, system problem, etc.
  • 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 network size When the network size is small, after an error packet is found, it can be judged by experienced technicians whether the network device may have problems. Restart the network device that may be faulty, reconnect the network, or replace the network device. And other methods to solve the problem of packet error.
  • the network size is increased to a certain extent, it is very difficult to determine whether the packet has an error.
  • the accuracy of the judgment based on the error packet based on the experience of the network device is greatly reduced.
  • One attempt, and each attempt may cause a complete network interruption, affecting the normal communication of the network. Especially for large-scale Internet networks, it is particularly difficult to determine the error of a message.
  • the present invention provides a method and apparatus for implementing packet error detection, which can determine whether an error occurs in a message when the network size is increased.
  • the present invention provides a method for implementing packet error detection, including:
  • the inbound and outbound packets buffered in the first preset period and the second preset period are matched, and the unmatched packets in the first preset period are determined to be generated. Wrong message;
  • the first preset period is adjacent to the second preset period, and the first preset period is earlier than the second preset cycle.
  • the method further includes:
  • the cached inbound and outbound packets are classified according to a preset policy.
  • the type division according to the preset policy specifically includes:
  • the buffered inbound packet and the outgoing packet type are divided according to the source address, and/or the destination address, and/or the source port, and/or the destination port.
  • classifying according to a preset policy specifically includes:
  • the number of types is divided into divisors. And dividing the cached inbound message and the outgoing message into corresponding categories according to different modulo calculation results; or
  • the value of the source address, the destination address, the source port, and the destination port of the buffered inbound packet or the outgoing packet is calculated, and the number of types is divided into divisors to perform modulo calculation, according to different modulo calculation results.
  • the inbound and outgoing packets of the cache are classified into corresponding categories.
  • the transform value calculation includes: a hash calculation or a message digest algorithm fifth edition md5 calculation.
  • matching the inbound and outbound packets in the inbound and outbound packets specifically includes:
  • Matching should not be made in the incoming message and the outgoing message in each of the classified categories.
  • the method before determining that the unmatched packet in the first preset period is a packet with an error, the method further includes:
  • the method further includes:
  • Pre-establishing an analysis unit consisting of a server, and/or configured processes, and/or configured threads;
  • the matching of the changed parts should not occur in the inbound message and the outgoing message of one or more kinds of allocations assigned to each analysis unit.
  • the matching of the inbound and outbound packets of the one or more types of the inbound and outbound packets that are allocated to each of the analyzing units is not specifically:
  • the matching of the incoming part of the corresponding number of types and the change of the outgoing part of the outgoing message is determined.
  • matching the inbound packet with the non-change portion of the outgoing packet specifically includes:
  • the application further provides an apparatus for implementing packet error detection, comprising: a buffer unit and a matching unit; wherein
  • a cache unit configured to cache an inbound message and an outgoing message transmitted by the detected network in real time according to a preset period
  • the matching unit is configured to match the inbound packet buffered in the first preset period and the second preset period with the unchanged portion in the outgoing packet, and determine that the first preset period is not successfully matched.
  • the message is an error message
  • the first preset period is adjacent to the second preset period, and the first preset period is earlier than the second preset period.
  • the device further includes a category dividing unit, configured to cache the inbound packet and the outgoing packet according to the preset period, after the real-time capture of the inbound packet and the outgoing packet transmitted by the detected network. Set the strategy to classify.
  • the matching unit is specifically used,
  • the inbound and outbound packets buffered in the first preset period and the second preset period are not matched, and the first preset period is not determined.
  • a packet that matches successfully is a packet with an error.
  • the device further includes a filtering unit, configured to filter the outgoing message actively sent by the detected network before the matching unit determines that the packet that is not successfully matched in the first preset period is an error packet. And an inbound message sent to the detected network.
  • a filtering unit configured to filter the outgoing message actively sent by the detected network before the matching unit determines that the packet that is not successfully matched in the first preset period is an error packet. And an inbound message sent to the detected network.
  • the apparatus further includes a building and allocating unit, configured to pre-establish an analysis unit composed of a server, and/or configured processes, and/or configured threads;
  • the matching of the changed parts should not occur in the inbound message and the outgoing message of one or more kinds of allocations assigned to each analysis unit.
  • the technical solution of the present application includes: capturing, according to a preset period, a real-time capture of an inbound message and an outgoing message transmitted by the detected network; and the first preset period and the second preset period.
  • the inbound and outbound packets of the cache are not matched, and the packets that are not matched in the first preset period are the packets that have failed.
  • the preset periods are adjacent, and the first preset period is earlier than the second preset period.
  • the method of the invention realizes the detection of the error message in the real-time transmission message by buffering the inbound message and the outgoing message in real time according to a preset period and matching the portion that should not be changed.
  • FIG. 1 is a flowchart of a method for implementing packet error detection according to the present invention
  • FIG. 2 is a structural diagram of an apparatus for implementing packet error detection according to the present invention.
  • FIG. 3 is a flow chart of a method according to a first embodiment of the present invention.
  • FIG. 4 is a flow chart of a method in accordance with a second embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for implementing packet error detection according to the present invention. As shown in FIG. 1, the method includes:
  • Step 100 The real-time capture of the inbound packet and the outgoing packet transmitted by the detected network according to the preset period cache;
  • the preset period is set according to the speed of the packet transmitted by the detected network. Generally, the preset period is the length of time required for the detected network to transmit a packet, and can be obtained by transmitting a specific test packet.
  • the first and second preset periods are only a relative concept.
  • the first preset period buffers the incoming message. The error detection of the message with the outgoing message has ended.
  • the original second preset period is updated to the new first preset period, and the next preset period of the original second preset period is updated to new. The second preset period.
  • the method of the present invention further includes:
  • the cached inbound and outbound packets are classified according to a preset policy.
  • the matched incoming message and the outgoing message are necessarily in one category.
  • the classification according to the preset policy includes:
  • the division of the incoming inbound message and the outgoing message type according to the source address, and/or the destination address, and/or the source port, and/or the destination port.
  • the classification according to the preset policy specifically includes:
  • the number of types is divided into divisors. According to different modulo calculation results, the buffered inbound message and the outgoing message are classified into corresponding categories; or
  • the value of the source address, the destination address, the source port, and the destination port of the inbound packet or the outgoing packet is calculated.
  • the number of the type is used as the divisor to perform the modulo calculation.
  • the cache is calculated according to the result of the modulo calculation.
  • the incoming message and the outgoing message are classified into corresponding categories.
  • the transformation value calculation includes: a hash calculation or a message digest algorithm fifth edition (md5) calculation.
  • Step 101 Matching the inbound packets and the outgoing packets in the first preset period and the second preset period are not changed, and determining that the first preset period has not been successfully matched.
  • the text is wrong The message; here, the first preset period is adjacent to the second preset period, and the first preset period is earlier than the second preset period.
  • Matching the changes that should not occur in the incoming message and the outgoing message specifically includes:
  • Matching should not be made in the incoming message and the outgoing message in each of the divided categories.
  • Matching the inbound message with the non-change part of the outgoing message specifically includes:
  • the feature value of the content of the extracted inbound message that should not be changed is matched with the feature value of the content of the extracted outgoing message that should not change.
  • the method of the present invention further includes:
  • the method of the invention further comprises:
  • Pre-establishing an analysis unit consisting of a server, and/or configured processes, and/or configured threads;
  • the matching of the changed parts should not occur in one or more kinds of inbound messages and outgoing messages assigned to each analysis unit.
  • the matching of the one or more types of inbound packets and the outgoing packets that are allocated to each analysis unit to be changed does not include:
  • each analysis unit it is determined that the matching units allocated to the respective analysis units for the corresponding number of types and the matching portions of the outgoing messages should not be changed.
  • the method of the invention realizes the detection of the error message in the real-time transmission message by buffering the inbound message and the outgoing message in real time according to a preset period and matching the portion that should not be changed. Further, the detection of the error packet improves the accuracy of the network device failure handling of the packet error caused by the large-scale network.
  • FIG. 2 is a structural diagram of an apparatus for implementing packet error detection according to the present invention. As shown in FIG. 2, the method includes: a buffer unit and a matching unit;
  • a cache unit configured to cache an inbound message and an outgoing message transmitted by the detected network in real time according to a preset period
  • the matching unit is configured to match the inbound packet buffered in the first preset period and the second preset period with the unchanged portion in the outgoing packet, and determine that the first preset period is not successfully matched.
  • the message is an error message
  • the first preset period is adjacent to the second preset period, and the first preset period is earlier than the second preset period.
  • the matching unit is specifically used,
  • the incoming packets and outgoing packets buffered in the first preset period and the second preset period should not change.
  • the packet that is not matched successfully in the first preset period is determined to be the packet with the error.
  • the device of the present invention further includes a category dividing unit, configured to cache the inbound packet and the outgoing packet transmitted by the detected network according to the preset period, and then cache the inbound packet and the outgoing packet according to a preset policy.
  • category dividing unit configured to cache the inbound packet and the outgoing packet transmitted by the detected network according to the preset period, and then cache the inbound packet and the outgoing packet according to a preset policy.
  • the categorization unit is configured to cache the inbound packet and the outgoing packet according to the source address and/or the destination address after the real-time capture of the inbound packet and the outgoing packet transmitted by the detected network according to the preset period. And/or source port, and/or destination port are classified.
  • the category dividing unit is specifically configured to:
  • the source address, and/or the destination address, and/or the source port of the inbound packet or the outgoing packet, which are buffered, after the inbound packet and the outgoing packet transmitted by the detected network are captured in real time according to the preset period. And performing the modulo calculation by using the number of types as the divisor, and dividing the buffered inbound message and the outgoing message into corresponding categories according to different modulo calculation results; or
  • the value of the source address, the destination address, the source port, and the destination port of the inbound packet or the outgoing packet is calculated.
  • the number of the type is used as the divisor to perform the modulo calculation.
  • the cache is calculated according to the result of the modulo calculation.
  • the incoming message and the outgoing message are classified into corresponding categories.
  • the matching unit is specifically used,
  • the inbound and outbound packets buffered in the first preset period and the second preset period are not matched, and the first preset period is not determined.
  • the packet matching the packet is the one with the error.
  • the device of the present invention further includes a filtering unit, configured to: before the matching unit determines that the unmatched packet in the first preset period is a packet with an error, filtering the outgoing packet actively sent by the detected network and sending the detected packet to the detected packet. Inbound message of the network.
  • the apparatus of the present invention further includes a construction and distribution unit for pre-establishing an analysis unit consisting of a server, and/or configured processes, and/or configured threads;
  • the matching of the changed parts should not occur in one or more kinds of inbound messages and outgoing messages assigned to each analysis unit.
  • the construction and distribution unit is specifically used,
  • Pre-establishing an analysis unit consisting of a server, and/or configured processes, and/or configured threads;
  • each analysis unit it is determined that the matching units allocated to the respective analysis units for the corresponding number of types and the matching portions of the outgoing messages should not be changed.
  • the detected network when the packet is detected, the detected network may be a network composed of one or more network devices, and the network device may be a router or a switch.
  • the inbound packet and the outgoing packet transmitted by the detected network are used.
  • the capture and cache are performed in real time, and the information about the time attribute and the flow of the packet is also recorded when the incoming message and the outgoing message are buffered.
  • FIG. 3 is a flowchart of a method according to a first embodiment of the present invention. As shown in FIG. 3, the method includes:
  • this embodiment specifically includes the following steps.
  • step 300 the inbound packet and the outgoing packet transmitted by the detected network are captured in real time
  • Step 301 Cache the inbound packet and the outgoing packet of the detected network that is captured in real time according to a preset period.
  • Step 302 Perform the type division of the buffered inbound message and the outgoing message according to a preset policy.
  • the packet P is P1 when it enters the detected network, and is captured when the incoming packet is captured;
  • the type is P2
  • the type of the incoming packet and the outgoing packet of the packet P are in the same category.
  • the number of types is divided into divisors. According to different modulo calculation results, the buffered inbound message and the outgoing message are classified into corresponding categories; or
  • the value of the source address, the destination address, the source port, and the destination port of the inbound packet or the outgoing packet is calculated.
  • the number of the type is used as the divisor to perform the modulo calculation.
  • the cache is calculated according to the result of the modulo calculation.
  • the incoming message and the outgoing message are classified into corresponding categories.
  • the transform value calculation includes: a hash calculation or a message digest algorithm fifth edition (md5) calculation.
  • Step 303 Matching, in each of the divided categories, the inbound packets and the outgoing packets in the first preset period and the second preset period are not changed, and determining the first preset period.
  • a packet that has not been successfully matched is a packet with an error.
  • the first preset period is adjacent to the second preset period, and the first preset period is earlier than the second preset period.
  • the inbound packet and the outgoing packet can be distinguished in the caching process.
  • the length of time required for the message to flow from the inbound to the outbound network is a preset period, so the outgoing message matching the incoming message in the first preset period must be in the first preset period or second.
  • the preset period if there is no outgoing message matching the incoming message in the first preset period in the first and second preset periods, the message is checked. An error occurred while measuring network transmission.
  • the matching between the incoming packet and the outgoing packet that should not be changed may be implemented by the following preferred manner:
  • the embodiment pre-establishes an analysis unit composed of a server, and/or a configured process, and/or a configured thread;
  • the matching of the changed parts should not occur in one or more kinds of incoming and outgoing messages divided by each analysis unit.
  • each of the analysis units performs matching of the corresponding number of types of inbound messages and outgoing messages in which no change occurs.
  • the embodiment includes an analysis unit 1, an analysis unit 2, and an analysis unit 3; wherein the analysis unit 1 is composed of a separate physical server, and the analysis unit 2 and the analysis unit 3 are configured by two threads configured on another physical server, and analyzed.
  • the performance and memory of unit 2 and analysis unit 3 can be configured according to the number of division types and the number of various types of packets in accordance with the experience of those skilled in the art.
  • the analysis unit 1 should theoretically perform matching of two types of inbound messages and outgoing messages in which no change occurs; the analyzing unit 2 and the analyzing unit 3 respectively perform one
  • the matching of the changed part should not occur in the incoming message and the outgoing message of the type; if there are many types of division, after assigning the type of division to each analysis unit, the type of the new division can be based on the load of the analysis unit. Load balancing is performed.
  • a person skilled in the art can also establish a new analysis unit for matching the incoming part of the newly classified type and the unchanged part of the outgoing message.
  • the load status can be feedbacked in real time or periodically by the analysis unit, or by setting an alarm threshold, and actively feedback when the alarm threshold is exceeded.
  • the change does not change from the incoming network device to the outgoing network device, and the content does not change, that is, if the link does not occur on the network, the incoming packet is sent.
  • the message field that should not change in the middle part of the message field and the message field that should not change in the outgoing message part are the same.
  • the message is determined to have no error; for example, the network is assumed. If the message transmitted by the device should not change, the content of the message is [0x10, 0x20, 0x30].
  • the device that detects the error of the packet obtains an incoming message, the content of the change should not be [0x10, 0x20, 0x30]; the device for error detection of the packet determines that the packet does not have an error according to the matching of the incoming message and the outgoing message; in this embodiment, if the message should not change, the part occurs during the transmission. If the change is made, for example, the obtained outgoing message becomes [0x10, 0x20, 0x31]. At this time, the device that detects the error of the message cannot match the same outgoing direction as the incoming message should not change. Wen, determine packet error has occurred.
  • the packet field of the packet that does not change when the network device is transmitted may be different, and may be determined according to common knowledge of those skilled in the art.
  • the changed message field refers to the change without changing.
  • the content of the packet field part, such as the TTL field of the IP packet, is legally modified by the network device during transmission (for example, a router for the network device at this time).
  • the matching between the incoming message and the outgoing message should not be changed.
  • the content of the incoming message should not be changed, and the content of the outgoing message should not be changed.
  • the matching between the incoming message and the outgoing message should not be changed.
  • the feature value can be extracted separately after the change should not be made in the incoming message and the change should not be made in the outgoing message.
  • the feature value extracted in the packet should not match the feature value extracted in the outgoing packet, and the feature value extracted from the outgoing packet can be improved.
  • the message captured in this embodiment may be directly performed by using the extracted feature value (a value obtained by hash calculation or a value obtained by md5 calculation), and the extracted feature value includes Message length, and/or source address, and/or destination address, and/or source port, and/or destination port, and/or message distinguishing field, and the like.
  • the extracted feature value a value obtained by hash calculation or a value obtained by md5 calculation
  • the extracted feature value includes Message length, and/or source address, and/or destination address, and/or source port, and/or destination port, and/or message distinguishing field, and the like.
  • the embodiment further includes: filtering the outgoing packet actively sent by the detected network and the inbound packet sent to the detected network.
  • FIG. 4 is a flowchart of a method according to a second embodiment of the present invention. As shown in FIG. 4, the method includes:
  • Step 400 The buffered inbound packet and the outgoing packet are classified according to a preset policy to generate a new category.
  • Step 401 Acquire a load state of each analysis unit, and assign the newly generated category to an analysis unit according to the load device.
  • the load status of the analysis unit may include: CPU usage, memory usage, and may also include the number of cached unmatched messages.
  • the corresponding load threshold of each analysis unit can be set. When the analysis unit load reaches the load threshold, it is not necessary to acquire the load status of the analysis unit.
  • Step 402 If the analysis unit receives the inbound packet and the outgoing packet of the newly generated type, the load is too large, and then rejects the received incoming packet and the outgoing packet of the newly generated type;
  • step 403 the newly generated category is newly assigned to a newly confirmed analysis unit.
  • the load of the analysis unit may be periodically or triggered by feedback, or may be obtained by query.
  • the analysis unit can also actively feedback when the load is reduced (for example, some types of messages have been matched, or the number of message buffers of the type is reduced) and the load exceeds a certain range.
  • the load information of the analysis unit can be obtained in time.
  • the modules or units in the message error detecting apparatus may pass through one or more digital signal processors (DSPs), application specific integrated circuits (ASICs), processors, microprocessors, controllers, and micro-controls.
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • processors microprocessors
  • controllers controllers
  • micro-controls micro-controls.
  • FPGA field, programmable array
  • FPGA programmable logic device, or other electronic unit, or any combination thereof.
  • the invention relates to the field of data communication, which realizes the error message in the real-time transmission message by buffering the inbound message and the outgoing message in real time according to a preset period and matching the portion that should not be changed. Detection.

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

Disclosed are a method and apparatus for realizing message error detection, the method comprising: caching, according to pre-set periods, an inbound message and an outbound message which are captured in real time and transmitted by a detected network; and matching parts, which shall not change, in the inbound message and the outbound message which are cached in a first pre-set period and a second pre-set period, and determining a message which is not matched successfully in the first pre-set period to be a message with an error, wherein the first pre-set period is adjacent to the second pre-set period, and the first pre-set period is earlier than the second pre-set period. The method of the present invention realizes the detection of a message with an error in real-time transmission messages by caching, according to pre-set periods, an inbound message and an outbound message which are captured in real time and matching parts which shall not change.

Description

一种实现报文检错的方法及装置Method and device for realizing message error detection 技术领域Technical field

本发明涉及数据通信领域,尤指一种实现报文检错的方法及装置。The present invention relates to the field of data communications, and more particularly to a method and apparatus for implementing packet error detection.

背景技术Background technique

在运行商网络、企业网络、以及互联网网络等网络中涉及种类和数量都十分庞大的网络设备,例如:宽带远程接入服务器(BRAS)设备、接入/核心路由器设备、接入/核心交换机设备、三层交换机设备和各种光网络设备等。这些网络设备运行IP网络协议,通过相互连接构建了一个基于IP网络协议的世界。报文经过网络设备传输时部分报文字段是不应发生变化的,而在报文传输过程中则可能发生报文错误的情况;以企业网络为例,假设存在区域A与区域B、区域A与区域C的通信链路,区域A和区域B之间的通信链路由于路由器或交换机的丢包率高、系统问题等IP链路问题使不应发生变化的报文字段在区域A和区域B之间传输时发生变化,造成报文错误的问题,影响正常通信。上述系统问题可能是系统软件或硬件存在故障、或外部环境影响系统工作性能(比如电磁干扰)等影响报文正常传输的问题。如果不应发生变化的报文字段被改变,例如IP地址字段被修改,则报文会被投递到错误的目的地址,最终作为坏包丢弃,影响网络的正常通信。Network devices of a wide variety and quantity in networks such as carrier networks, enterprise networks, and Internet networks, such as broadband remote access server (BRAS) devices, access/core router devices, and access/core switch devices , three-layer switch equipment and various optical network equipment. These network devices run IP network protocols and build a world based on IP network protocols by interconnecting them. When a packet is transmitted over a network device, part of the packet field should not be changed. In the case of packet transmission, a packet error may occur. Taking the enterprise network as an example, assume that there are area A, area B, and area A. The communication link with area C, the communication link between area A and area B, the packet field that should not change due to the IP link problem such as high packet loss rate of the router or switch, system problem, etc. in area A and area A change occurs during transmission between B, causing a message error 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.

当网络规模不大时,发现错误报文后,一般可以由经验丰富的技术人员根据经验判断是否网络设备可能存在的问题,通过重启可能存在问题的网络设备、重新进行网络连接、或更换网络设备等方法进行报文出错问题的解决。当网络规模增大到一定程度时,如何确定报文是否发生错误变得十分困难,基于错误报文依据经验进行网络设备是否存在问题的判断准确程度也大大降低,解决错误报文问题需要进行多次尝试,而每次尝试都可能造成网络彻底中断,影响网络的正常通信。尤其是对于规模庞大的互联网网络,确定报文发生错误尤为困难。When the network size is small, after an error packet is found, it can be judged by experienced technicians whether the network device may have problems. Restart the network device that may be faulty, reconnect the network, or replace the network device. And other methods to solve the problem of packet error. When the network size is increased to a certain extent, it is very difficult to determine whether the packet has an error. The accuracy of the judgment based on the error packet based on the experience of the network device is greatly reduced. One attempt, and each attempt may cause a complete network interruption, affecting the normal communication of the network. Especially for large-scale Internet networks, it is particularly difficult to determine the error of a message.

发明内容Summary of the invention

为了解决上述技术问题,本发明提供一种实现报文检错的方法及装置,能够在网络规模增大的情况下,确定报文是否发生错误。In order to solve the above technical problem, the present invention provides a method and apparatus for implementing packet error detection, which can determine whether an error occurs in a message when the network size is increased.

为了达到本发明目的,本发明提供了一种实现报文检错的方法,包括:In order to achieve the object of the present invention, the present invention provides a method for implementing packet error detection, including:

按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文;The real-time capture of the inbound packet and the outgoing packet transmitted by the detected network according to the preset period buffer;

将第一个预设周期和第二个预设周期中缓存的入向报文和出向报文中不应发生变化部分进行匹配,确定第一个预设周期中未匹配成功的报文为发生错误的报文;The inbound and outbound packets buffered in the first preset period and the second preset period are matched, and the unmatched packets in the first preset period are determined to be generated. Wrong message;

所述第一个预设周期与第二个预设周期相邻,且第一个预设周期早于第二个预设 周期。The first preset period is adjacent to the second preset period, and the first preset period is earlier than the second preset cycle.

可选的,按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文后,该方法还包括:Optionally, after the real-time capture of the inbound packet and the outgoing packet transmitted by the detected network according to the preset period, the method further includes:

将缓存的入向报文和出向报文按照预设策略进行种类划分。The cached inbound and outbound packets are classified according to a preset policy.

可选的,按照预设策略进行种类划分具体包括:Optionally, the type division according to the preset policy specifically includes:

根据源地址、和/或目的地址、和/或源端口、和/或目的端口进行所述缓存的入向报文和出向报文种类的划分。The buffered inbound packet and the outgoing packet type are divided according to the source address, and/or the destination address, and/or the source port, and/or the destination port.

可选的,按照预设策略进行分类具体包括:Optionally, classifying according to a preset policy specifically includes:

将缓存的入向报文或出向报文的源地址、和/或目的地址、和/或源端口、和/或目的端口进行算数相加后,以种类划分的个数作为除数进行取模计算,根据取模计算结果的不同将所述缓存的入向报文和出向报文划分为相应的种类;或,After adding the buffered inbound or outbound packet source address, and/or destination address, and/or source port, and/or destination port, the number of types is divided into divisors. And dividing the cached inbound message and the outgoing message into corresponding categories according to different modulo calculation results; or

将缓存的入向报文或出向报文的源地址、目的地址、源端口、目的端口进行变换值计算,以种类划分的个数作为除数进行取模计算,根据取模计算结果的不同将所述缓存的入向报文和出向报文划分为相应的种类。The value of the source address, the destination address, the source port, and the destination port of the buffered inbound packet or the outgoing packet is calculated, and the number of types is divided into divisors to perform modulo calculation, according to different modulo calculation results. The inbound and outgoing packets of the cache are classified into corresponding categories.

可选的,变换值计算包括:哈希计算或消息摘要算法第五版md5计算。Optionally, the transform value calculation includes: a hash calculation or a message digest algorithm fifth edition md5 calculation.

可选的,对入向报文和出向报文中不应发生变化部分进行匹配具体包括:Optionally, matching the inbound and outbound packets in the inbound and outbound packets specifically includes:

对划分的各个种类中的所述入向报文和出向报文中不应发生变化部分进行匹配。Matching should not be made in the incoming message and the outgoing message in each of the classified categories.

可选的,确定第一个预设周期中未匹配成功的报文为发生错误的报文之前,该方法还包括:Optionally, before determining that the unmatched packet in the first preset period is a packet with an error, the method further includes:

过滤所述被检测网络主动发出的出向报文和发送给所述被检测网络的入向报文。And filtering an outgoing packet sent by the detected network and an incoming packet sent to the detected network.

可选的,该方法还包括:Optionally, the method further includes:

预先建立以服务器、和/或配置的进程、和/或配置的线程构成的分析单元;Pre-establishing an analysis unit consisting of a server, and/or configured processes, and/or configured threads;

分配给各分析单元进行划分的一个或一个以上种类的所述入向报文和出向报文中不应发生变化部分的匹配。The matching of the changed parts should not occur in the inbound message and the outgoing message of one or more kinds of allocations assigned to each analysis unit.

可选的,分配给各分析单元进行划分的一个或一个以上种类的所述入向报文和出向报文中不应发生变化部分的匹配具体包括:Optionally, the matching of the inbound and outbound packets of the one or more types of the inbound and outbound packets that are allocated to each of the analyzing units is not specifically:

根据各分析单元的负荷,确定分配给各分析单元进行相应个数种类的所述入向报文和出向报文中不应发生变化部分的匹配。According to the load of each analysis unit, the matching of the incoming part of the corresponding number of types and the change of the outgoing part of the outgoing message is determined.

可选的,将入向报文与出向报文中不应发生变化部分进行匹配具体包括:Optionally, matching the inbound packet with the non-change portion of the outgoing packet specifically includes:

将所述入向报文中不应发生变化部分的内容与出向报文中所述不应发生变化部分的内容进行匹配;或,Matching the content of the incoming message in the incoming message with the content of the outgoing message that should not change; or

提取所述入向报文中不应发生变化部分的内容的特征值和所述出向报文中不应发生变化部分的内容的特征值;Extracting, in the inbound message, a feature value of the content of the change portion and a feature value of the content of the outgoing message that should not change;

将提取的所述入向报文中不应发生变化部分的内容的特征值与提取的所述出向报文中不应发生变化部分的内容的特征值进行匹配。 And extracting, in the extracted inbound message, the feature value of the content that should not be changed, and the extracted feature value of the content of the outgoing message that should not change.

另一方面,本申请还提供一种实现报文检错的装置,包括:缓存单元和匹配单元;其中,On the other hand, the application further provides an apparatus for implementing packet error detection, comprising: a buffer unit and a matching unit; wherein

缓存单元,用于按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文;a cache unit, configured to cache an inbound message and an outgoing message transmitted by the detected network in real time according to a preset period;

匹配单元,用于将第一个预设周期和第二个预设周期中缓存的入向报文和出向报文中不应发生变化部分进行匹配,确定第一个预设周期中未匹配成功的报文为发生错误的报文;The matching unit is configured to match the inbound packet buffered in the first preset period and the second preset period with the unchanged portion in the outgoing packet, and determine that the first preset period is not successfully matched. The message is an error message;

所述第一个预设周期与第二个预设周期相邻,且第一个预设周期早于第二个预设周期。The first preset period is adjacent to the second preset period, and the first preset period is earlier than the second preset period.

可选的,该装置还包括种类划分单元,用于按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文后,将缓存的入向报文和出向报文按照预设策略进行种类划分。Optionally, the device further includes a category dividing unit, configured to cache the inbound packet and the outgoing packet according to the preset period, after the real-time capture of the inbound packet and the outgoing packet transmitted by the detected network. Set the strategy to classify.

可选的,匹配单元具体用于,Optionally, the matching unit is specifically used,

对划分的各个种类中,将第一个预设周期和第二个预设周期中缓存的入向报文和出向报文中不应发生变化部分进行匹配,确定第一个预设周期中未匹配成功的报文为发生错误的报文。For each type of division, the inbound and outbound packets buffered in the first preset period and the second preset period are not matched, and the first preset period is not determined. A packet that matches successfully is a packet with an error.

可选的,该装置还包括过滤单元,用于在匹配单元确定第一个预设周期中未匹配成功的报文为发生错误的报文之前,过滤所述被检测网络主动发出的出向报文和发送给所述被检测网络的入向报文。Optionally, the device further includes a filtering unit, configured to filter the outgoing message actively sent by the detected network before the matching unit determines that the packet that is not successfully matched in the first preset period is an error packet. And an inbound message sent to the detected network.

可选的,该装置还包括构建及分配单元,用于预先建立以服务器、和/或配置的进程、和/或配置的线程构成的分析单元;Optionally, the apparatus further includes a building and allocating unit, configured to pre-establish an analysis unit composed of a server, and/or configured processes, and/or configured threads;

分配给各分析单元进行划分的一个或一个以上种类的所述入向报文和出向报文中不应发生变化部分的匹配。The matching of the changed parts should not occur in the inbound message and the outgoing message of one or more kinds of allocations assigned to each analysis unit.

与现有技术相比,本申请技术方案包括:按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文;将第一个预设周期和第二个预设周期中缓存的入向报文和出向报文中不应发生变化部分进行匹配,确定第一个预设周期中未匹配成功的报文为发生错误的报文;第一个预设周期与第二个预设周期相邻,且第一个预设周期早于第二个预设周期。本发明方法通过对实时抓取的入向报文和出向报文按照预设周期进行缓存和进行不应发生变化部分的匹配,实现了对实时传输报文中发生错误的报文的检测。Compared with the prior art, the technical solution of the present application includes: capturing, according to a preset period, a real-time capture of an inbound message and an outgoing message transmitted by the detected network; and the first preset period and the second preset period. The inbound and outbound packets of the cache are not matched, and the packets that are not matched in the first preset period are the packets that have failed. The first preset period and the second one. The preset periods are adjacent, and the first preset period is earlier than the second preset period. The method of the invention realizes the detection of the error message in the real-time transmission message by buffering the inbound message and the outgoing message in real time according to a preset period and matching the portion that should not be changed.

附图说明DRAWINGS

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中: The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:

图1为本发明实现报文检错的方法的流程图;1 is a flowchart of a method for implementing packet error detection according to the present invention;

图2为本发明实现报文检错的装置的结构图。FIG. 2 is a structural diagram of an apparatus for implementing packet error detection according to the present invention.

图3为本发明第一实施例的方法流程图;3 is a flow chart of a method according to a first embodiment of the present invention;

图4为本发明第二实施例的方法流程图。4 is a flow chart of a method in accordance with a second embodiment of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.

图1为本发明实现报文检错的方法的流程图,如图1所示,包括:FIG. 1 is a flowchart of a method for implementing packet error detection according to the present invention. As shown in FIG. 1, the method includes:

步骤100,按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文;Step 100: The real-time capture of the inbound packet and the outgoing packet transmitted by the detected network according to the preset period cache;

需要说明的是,预设周期根据被检测网络传输报文的速度进行设定,一般的,预设周期为被检测网络传输一条报文所需的时长,可以通过传输特定的测试报文来获取该时长;另外,第一个和第二个预设周期仅是一个相对的概念,当确定完第一个预设周期发生错误的报文后,第一个预设周期缓存的入向报文和出向报文的报文检错已经结束,此时,原来的第二预设周期更新为新的第一个预设周期,原来的第二个预设周期的下一个预设周期更新为新的第二个预设周期。It should be noted that the preset period is set according to the speed of the packet transmitted by the detected network. Generally, the preset period is the length of time required for the detected network to transmit a packet, and can be obtained by transmitting a specific test packet. In addition, the first and second preset periods are only a relative concept. When the error message is determined in the first preset period, the first preset period buffers the incoming message. The error detection of the message with the outgoing message has ended. At this time, the original second preset period is updated to the new first preset period, and the next preset period of the original second preset period is updated to new. The second preset period.

按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文后,本发明方法还包括:After the real-time capture of the inbound and outbound packets transmitted by the detected network is performed according to the preset period, the method of the present invention further includes:

将缓存的入向报文和出向报文按照预设策略进行种类划分。The cached inbound and outbound packets are classified according to a preset policy.

需要说明的是,由于入向报文和出向报文存在不应发生变化部分,因此划分种类时,相匹配的入向报文和出向报文必然在一个种类中。It should be noted that, since the incoming message and the outgoing message have no change part, when the type is divided, the matched incoming message and the outgoing message are necessarily in one category.

按照预设策略进行种类划分具体包括:The classification according to the preset policy includes:

根据源地址、和/或目的地址、和/或源端口、和/或目的端口进行缓存的入向报文和出向报文种类的划分。The division of the incoming inbound message and the outgoing message type according to the source address, and/or the destination address, and/or the source port, and/or the destination port.

优选的,按照预设策略进行分类具体包括:Preferably, the classification according to the preset policy specifically includes:

将缓存的入向报文或出向报文的源地址、和/或目的地址、和/或源端口、和/或目的端口进行算数相加后,以种类划分的个数作为除数进行取模计算,根据取模计算结果的不同将缓存的入向报文和出向报文划分为相应的种类;或,After adding the buffered inbound or outbound packet source address, and/or destination address, and/or source port, and/or destination port, the number of types is divided into divisors. According to different modulo calculation results, the buffered inbound message and the outgoing message are classified into corresponding categories; or

将缓存的入向报文或出向报文的源地址、目的地址、源端口、目的端口进行变换值计算,以种类划分的个数作为除数进行取模计算,根据取模计算结果的不同将缓存的入向报文和出向报文划分为相应的种类。The value of the source address, the destination address, the source port, and the destination port of the inbound packet or the outgoing packet is calculated. The number of the type is used as the divisor to perform the modulo calculation. The cache is calculated according to the result of the modulo calculation. The incoming message and the outgoing message are classified into corresponding categories.

进一步地,变换值计算包括:哈希计算或消息摘要算法第五版(md5)计算。Further, the transformation value calculation includes: a hash calculation or a message digest algorithm fifth edition (md5) calculation.

步骤101,将第一个预设周期和第二个预设周期中缓存的入向报文和出向报文中不应发生变化部分进行匹配,确定第一个预设周期中未匹配成功的报文为发生错误的 报文;这里,第一个预设周期与第二个预设周期相邻,且第一个预设周期早于第二个预设周期。Step 101: Matching the inbound packets and the outgoing packets in the first preset period and the second preset period are not changed, and determining that the first preset period has not been successfully matched. The text is wrong The message; here, the first preset period is adjacent to the second preset period, and the first preset period is earlier than the second preset period.

对入向报文和出向报文中不应发生变化部分进行匹配具体包括:Matching the changes that should not occur in the incoming message and the outgoing message specifically includes:

对划分的各个种类中的入向报文和出向报文中不应发生变化部分进行匹配。Matching should not be made in the incoming message and the outgoing message in each of the divided categories.

将入向报文与出向报文中不应发生变化部分进行匹配具体包括:Matching the inbound message with the non-change part of the outgoing message specifically includes:

将入向报文中不应发生变化部分的内容与出向报文中不应发生变化部分的内容进行匹配;或,Matching the content of the inbound message that should not change with the content of the outgoing message that should not change; or,

提取入向报文中不应发生变化部分的内容的特征值和出向报文中不应发生变化部分的内容的特征值;Extracting feature values of content that should not change in the incoming message and feature values of content that should not change in the outgoing message;

将提取的入向报文中不应发生变化部分的内容的特征值与提取的出向报文中不应发生变化部分的内容的特征值进行匹配。The feature value of the content of the extracted inbound message that should not be changed is matched with the feature value of the content of the extracted outgoing message that should not change.

确定第一个预设周期中未匹配成功的报文为发生错误的报文之前,本发明方法还包括:Before determining that the unmatched packet in the first preset period is a packet with an error, the method of the present invention further includes:

过滤被检测网络主动发出的出向报文和发送给被检测网络的入向报文。Filtering outgoing packets sent by the detected network and incoming packets sent to the detected network.

本发明方法还包括:The method of the invention further comprises:

预先建立以服务器、和/或配置的进程、和/或配置的线程构成的分析单元;Pre-establishing an analysis unit consisting of a server, and/or configured processes, and/or configured threads;

分配给各分析单元进行划分的一个或一个以上种类的入向报文和出向报文中不应发生变化部分的匹配。The matching of the changed parts should not occur in one or more kinds of inbound messages and outgoing messages assigned to each analysis unit.

优选的,分配给各分析单元进行划分的一个或一个以上种类的入向报文和出向报文中不应发生变化部分的匹配具体包括:Preferably, the matching of the one or more types of inbound packets and the outgoing packets that are allocated to each analysis unit to be changed does not include:

根据各分析单元的负荷,确定分配给各分析单元进行相应个数种类的入向报文和出向报文中不应发生变化部分的匹配。According to the load of each analysis unit, it is determined that the matching units allocated to the respective analysis units for the corresponding number of types and the matching portions of the outgoing messages should not be changed.

本发明方法通过对实时抓取的入向报文和出向报文按照预设周期进行缓存和进行不应发生变化部分的匹配,实现了对实时传输报文中发生错误的报文的检测。进一步地,通过错误报文的检测提高了对大规模网络中造成报文错误的网络设备故障处理的准确率。The method of the invention realizes the detection of the error message in the real-time transmission message by buffering the inbound message and the outgoing message in real time according to a preset period and matching the portion that should not be changed. Further, the detection of the error packet improves the accuracy of the network device failure handling of the packet error caused by the large-scale network.

图2为本发明实现报文检错的装置的结构图,如图2所示,包括:缓存单元和匹配单元;其中,2 is a structural diagram of an apparatus for implementing packet error detection according to the present invention. As shown in FIG. 2, the method includes: a buffer unit and a matching unit;

缓存单元,用于按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文;a cache unit, configured to cache an inbound message and an outgoing message transmitted by the detected network in real time according to a preset period;

匹配单元,用于将第一个预设周期和第二个预设周期中缓存的入向报文和出向报文中不应发生变化部分进行匹配,确定第一个预设周期中未匹配成功的报文为发生错误的报文;The matching unit is configured to match the inbound packet buffered in the first preset period and the second preset period with the unchanged portion in the outgoing packet, and determine that the first preset period is not successfully matched. The message is an error message;

第一个预设周期与第二个预设周期相邻,且第一个预设周期早于第二个预设周期。 The first preset period is adjacent to the second preset period, and the first preset period is earlier than the second preset period.

匹配单元具体用于,The matching unit is specifically used,

将第一个预设周期和第二个预设周期中缓存的入向报文和出向报文中不应发生变化部分,The incoming packets and outgoing packets buffered in the first preset period and the second preset period should not change.

将入向报文中不应发生变化部分的内容与出向报文中不应发生变化部分的内容进行匹配;或,Matching the content of the inbound message that should not change with the content of the outgoing message that should not change; or,

提取入向报文中不应发生变化部分的内容的特征值和出向报文中不应发生变化部分的内容的特征值;Extracting feature values of content that should not change in the incoming message and feature values of content that should not change in the outgoing message;

将提取的入向报文中不应发生变化部分的内容的特征值与提取的出向报文中不应发生变化部分的内容的特征值进行匹配;Matching the feature value of the content of the extracted inbound message that should not be changed to the feature value of the content of the extracted outgoing message that should not change part;

确定第一个预设周期中未匹配成功的报文为发生错误的报文。The packet that is not matched successfully in the first preset period is determined to be the packet with the error.

本发明装置还包括种类划分单元,用于按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文后,将缓存的入向报文和出向报文按照预设策略进行种类划分。The device of the present invention further includes a category dividing unit, configured to cache the inbound packet and the outgoing packet transmitted by the detected network according to the preset period, and then cache the inbound packet and the outgoing packet according to a preset policy. Type division.

种类划分单元具体用于,按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文后,将缓存的入向报文和出向报文根据源地址、和/或目的地址、和/或源端口、和/或目的端口进行种类的划分。The categorization unit is configured to cache the inbound packet and the outgoing packet according to the source address and/or the destination address after the real-time capture of the inbound packet and the outgoing packet transmitted by the detected network according to the preset period. And/or source port, and/or destination port are classified.

优选的,种类划分单元具体用于,Preferably, the category dividing unit is specifically configured to:

按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文后,将缓存的入向报文或出向报文的源地址、和/或目的地址、和/或源端口、和/或目的端口进行算数相加后,以种类划分的个数作为除数进行取模计算,根据取模计算结果的不同将缓存的入向报文和出向报文划分为相应的种类;或,The source address, and/or the destination address, and/or the source port of the inbound packet or the outgoing packet, which are buffered, after the inbound packet and the outgoing packet transmitted by the detected network are captured in real time according to the preset period. And performing the modulo calculation by using the number of types as the divisor, and dividing the buffered inbound message and the outgoing message into corresponding categories according to different modulo calculation results; or

将缓存的入向报文或出向报文的源地址、目的地址、源端口、目的端口进行变换值计算,以种类划分的个数作为除数进行取模计算,根据取模计算结果的不同将缓存的入向报文和出向报文划分为相应的种类。The value of the source address, the destination address, the source port, and the destination port of the inbound packet or the outgoing packet is calculated. The number of the type is used as the divisor to perform the modulo calculation. The cache is calculated according to the result of the modulo calculation. The incoming message and the outgoing message are classified into corresponding categories.

匹配单元具体用于,The matching unit is specifically used,

对划分的各个种类中,将第一个预设周期和第二个预设周期中缓存的入向报文和出向报文中不应发生变化部分进行匹配,确定第一个预设周期中未匹配成功的报文为发生错误的报文;For each type of division, the inbound and outbound packets buffered in the first preset period and the second preset period are not matched, and the first preset period is not determined. The packet matching the packet is the one with the error.

本发明装置还包括过滤单元,用于在匹配单元确定第一个预设周期中未匹配成功的报文为发生错误的报文之前,过滤被检测网络主动发出的出向报文和发送给被检测网络的入向报文。The device of the present invention further includes a filtering unit, configured to: before the matching unit determines that the unmatched packet in the first preset period is a packet with an error, filtering the outgoing packet actively sent by the detected network and sending the detected packet to the detected packet. Inbound message of the network.

本发明装置还包括构建及分配单元,用于预先建立以服务器、和/或配置的进程、和/或配置的线程构成的分析单元;The apparatus of the present invention further includes a construction and distribution unit for pre-establishing an analysis unit consisting of a server, and/or configured processes, and/or configured threads;

分配给各分析单元进行划分的一个或一个以上种类的入向报文和出向报文中不应发生变化部分的匹配。 The matching of the changed parts should not occur in one or more kinds of inbound messages and outgoing messages assigned to each analysis unit.

构建及分配单元具体用于,The construction and distribution unit is specifically used,

预先建立以服务器、和/或配置的进程、和/或配置的线程构成的分析单元;Pre-establishing an analysis unit consisting of a server, and/or configured processes, and/or configured threads;

根据各分析单元的负荷,确定分配给各分析单元进行相应个数种类的入向报文和出向报文中不应发生变化部分的匹配。According to the load of each analysis unit, it is determined that the matching units allocated to the respective analysis units for the corresponding number of types and the matching portions of the outgoing messages should not be changed.

以下通过具体实施例对本发明方法进行清楚详细的说明,实施例仅用于陈述本发明,并不用于限定本发明方法的保护范围。The method of the present invention will be described in detail below by way of specific examples, which are merely intended to illustrate the invention and are not intended to limit the scope of the invention.

实施例1Example 1

本实施例进行报文检错时,被检测网络可以是一个或一个以上网络设备构成的网络,网络设备可以是路由器或交换机等;本实施例对被检测网络传输的入向报文和出向报文实时的进行抓取和缓存,缓存入向报文和出向报文时还记录包含时间属性、报文的流向的信息等。图3为本发明第一实施例的方法流程图,如图3所示,包括:In this embodiment, when the packet is detected, the detected network may be a network composed of one or more network devices, and the network device may be a router or a switch. In this embodiment, the inbound packet and the outgoing packet transmitted by the detected network are used. The capture and cache are performed in real time, and the information about the time attribute and the flow of the packet is also recorded when the incoming message and the outgoing message are buffered. FIG. 3 is a flowchart of a method according to a first embodiment of the present invention. As shown in FIG. 3, the method includes:

如图3所示,本实施例具体包含如下步骤As shown in FIG. 3, this embodiment specifically includes the following steps.

步骤300,实时抓取被检测网络传输的入向报文和出向报文;In step 300, the inbound packet and the outgoing packet transmitted by the detected network are captured in real time;

步骤301,按照预设周期对实时抓取的被检测网络的入向报文和出向报文进行缓存;Step 301: Cache the inbound packet and the outgoing packet of the detected network that is captured in real time according to a preset period.

步骤302,将缓存的入向报文和出向报文按照预设策略进行种类划分;Step 302: Perform the type division of the buffered inbound message and the outgoing message according to a preset policy.

需要说明的是,对于一个经过被检测网络未发生错误的报文,假设是报文P,当它进入被检测网络时作为入向报文被抓取时为P1;离开被检测网络时被抓取时为P2,进行种类划分时,需要保证报文P的入向报文和出向报文在同一个种类中。It should be noted that, for a packet that has not been erroneously detected by the detected network, it is assumed that the packet P is P1 when it enters the detected network, and is captured when the incoming packet is captured; When the type is P2, the type of the incoming packet and the outgoing packet of the packet P are in the same category.

本实施例进行种类划分可以通过以下方式实现:The type division in this embodiment can be implemented in the following manner:

将缓存的入向报文或出向报文的源地址、和/或目的地址、和/或源端口、和/或目的端口进行算数相加后,以种类划分的个数作为除数进行取模计算,根据取模计算结果的不同将缓存的入向报文和出向报文划分为相应的种类;或,After adding the buffered inbound or outbound packet source address, and/or destination address, and/or source port, and/or destination port, the number of types is divided into divisors. According to different modulo calculation results, the buffered inbound message and the outgoing message are classified into corresponding categories; or

将缓存的入向报文或出向报文的源地址、目的地址、源端口、目的端口进行变换值计算,以种类划分的个数作为除数进行取模计算,根据取模计算结果的不同将缓存的入向报文和出向报文划分为相应的种类。这里,变换值计算包括:哈希计算或消息摘要算法第五版(md5)计算。The value of the source address, the destination address, the source port, and the destination port of the inbound packet or the outgoing packet is calculated. The number of the type is used as the divisor to perform the modulo calculation. The cache is calculated according to the result of the modulo calculation. The incoming message and the outgoing message are classified into corresponding categories. Here, the transform value calculation includes: a hash calculation or a message digest algorithm fifth edition (md5) calculation.

步骤303,对划分的各个种类,将第一个预设周期和第二个预设周期中缓存的入向报文和出向报文中不应发生变化部分进行匹配,确定第一个预设周期中未匹配成功的报文为发生错误的报文。这里,第一个预设周期与第二个预设周期相邻,且第一个预设周期早于第二个预设周期。Step 303: Matching, in each of the divided categories, the inbound packets and the outgoing packets in the first preset period and the second preset period are not changed, and determining the first preset period. A packet that has not been successfully matched is a packet with an error. Here, the first preset period is adjacent to the second preset period, and the first preset period is earlier than the second preset period.

需要说明的是,入向报文和出向报文可以在缓存过程中进行区分。另外,报文从流入到流出被检测网络所需时长为预设周期,所以与第一个预设周期内的入向报文相匹配的出向报文必然在第一个预设周期或第二个预设周期内,如果在第一个和第二个预设周期内不存在与第一个预设周期内的入向报文相匹配的出向报文,则报文在被检 测网络传输时发生了错误。It should be noted that the inbound packet and the outgoing packet can be distinguished in the caching process. In addition, the length of time required for the message to flow from the inbound to the outbound network is a preset period, so the outgoing message matching the incoming message in the first preset period must be in the first preset period or second. During the preset period, if there is no outgoing message matching the incoming message in the first preset period in the first and second preset periods, the message is checked. An error occurred while measuring network transmission.

本实施例进行入向报文和出向报文中不应发生变化部分的匹配可以通过以下优选方式实现:In this embodiment, the matching between the incoming packet and the outgoing packet that should not be changed may be implemented by the following preferred manner:

本实施例预先建立以服务器、和/或配置的进程、和/或配置的线程构成的分析单元;The embodiment pre-establishes an analysis unit composed of a server, and/or a configured process, and/or a configured thread;

由各分析单元进行划分的一个或一个以上种类的入向报文和出向报文中不应发生变化部分的匹配。The matching of the changed parts should not occur in one or more kinds of incoming and outgoing messages divided by each analysis unit.

具体的,根据各分析单元的负荷,确定由各分析单元进行相应个数种类的入向报文和出向报文中不应发生变化部分的匹配。例如,本实施例包括分析单元1、分析单元2、分析单元3;其中,分析单元1由单独的物理服务器构成,分析单元2和分析单元3在另一物理服务器配置的两个线程构成,分析单元2和分析单元3的性能和内存可以根据本领域技术人员对划分种类的多少和各种类报文数量结合经验进行配置。本实施例假设划分为4个种类,则理论上分析单元1应该进行两个种类的入向报文和出向报文中不应发生变化部分的匹配;分析单元2和分析单元3分别进行1个种类的入向报文和出向报文中不应发生变化部分的匹配;如果划分种类较多,在给各分析单元分配完划分的种类后,对新划分的种类,可以根据分析单元的负荷情况进行负载均衡,当然,本领域技术人员还可以通过建立新的分析单元,用于新划分种类的入向报文和出向报文中不应发生变化部分的匹配。负荷状态可以通过分析单元实时或周期反馈,也可以通过设定告警阈值,在超过告警阈值时主动进行反馈。Specifically, according to the load of each analysis unit, it is determined that each of the analysis units performs matching of the corresponding number of types of inbound messages and outgoing messages in which no change occurs. For example, the embodiment includes an analysis unit 1, an analysis unit 2, and an analysis unit 3; wherein the analysis unit 1 is composed of a separate physical server, and the analysis unit 2 and the analysis unit 3 are configured by two threads configured on another physical server, and analyzed. The performance and memory of unit 2 and analysis unit 3 can be configured according to the number of division types and the number of various types of packets in accordance with the experience of those skilled in the art. In this embodiment, if it is divided into four categories, the analysis unit 1 should theoretically perform matching of two types of inbound messages and outgoing messages in which no change occurs; the analyzing unit 2 and the analyzing unit 3 respectively perform one The matching of the changed part should not occur in the incoming message and the outgoing message of the type; if there are many types of division, after assigning the type of division to each analysis unit, the type of the new division can be based on the load of the analysis unit. Load balancing is performed. Of course, a person skilled in the art can also establish a new analysis unit for matching the incoming part of the newly classified type and the unchanged part of the outgoing message. The load status can be feedbacked in real time or periodically by the analysis unit, or by setting an alarm threshold, and actively feedback when the alarm threshold is exceeded.

需要说明的是,报文经过网络设备传输时,不应发生变化部分从流入网络设备到流出网络设备,其内容是不会发生变化的,即如果网络未出现链路问题,则入向报文中不应发生变化部分的报文字段和出向报文中不应发生变化部分的报文字段所包含的内容是一样的,匹配确定包含内容一致时,确定报文没有发生错误;例如、假设网络设备传输的报文不应发生变化部分的内容是[0x10,0x20,0x30],则报文检错的装置如果获取到一个入向报文,不应发生变化部分的内容是[0x10,0x20,0x30];报文检错的装置根据入向报文和出向报文不应发生变化部分的匹配,确定报文未发生错误;本实施例中如果报文不应发生变化部分在传输过程中发生了改变,则例如获取的出向报文变成[0x10,0x20,0x31],此时,报文检错的装置无法匹配与入向报文不应发生变化部分相同的出向报文,确定报文发生了错误。不同种类的报文,在网络设备传输时不发生变化的报文字段部分可能是不同的,具体可以根据本领域技术人员的公知常识进行确定,发生变化的报文字段是指除不发生变化的报文字段部分的内容,如IP报文的TTL字段,在传输过程中会被网络设备做合法修改(比如、此时网络设备时一个路由器)。It should be noted that, when a packet is transmitted through a network device, the change does not change from the incoming network device to the outgoing network device, and the content does not change, that is, if the link does not occur on the network, the incoming packet is sent. The message field that should not change in the middle part of the message field and the message field that should not change in the outgoing message part are the same. When the matching content is consistent, the message is determined to have no error; for example, the network is assumed. If the message transmitted by the device should not change, the content of the message is [0x10, 0x20, 0x30]. If the device that detects the error of the packet obtains an incoming message, the content of the change should not be [0x10, 0x20, 0x30]; the device for error detection of the packet determines that the packet does not have an error according to the matching of the incoming message and the outgoing message; in this embodiment, if the message should not change, the part occurs during the transmission. If the change is made, for example, the obtained outgoing message becomes [0x10, 0x20, 0x31]. At this time, the device that detects the error of the message cannot match the same outgoing direction as the incoming message should not change. Wen, determine packet error has occurred. The packet field of the packet that does not change when the network device is transmitted may be different, and may be determined according to common knowledge of those skilled in the art. The changed message field refers to the change without changing. The content of the packet field part, such as the TTL field of the IP packet, is legally modified by the network device during transmission (for example, a router for the network device at this time).

对入向报文与出向报文中不应发生变化部分进行匹配可以是对入向报文中不应发生变化部分与出向报文中不应发生变化部分进行内容上的一一对比; The matching between the incoming message and the outgoing message should not be changed. The content of the incoming message should not be changed, and the content of the outgoing message should not be changed.

对入向报文与出向报文中不应发生变化部分进行匹配还可以通过对入向报文中不应发生变化部分和出向报文中不应发生变化部分分别提取特征值后,将入向报文中不应发生变化部分提取的特征值与出向报文中不应发生变化部分提取的特征值进行匹配,通过提取特征值的方法可以提高入向报文和出向报文的匹配效率。The matching between the incoming message and the outgoing message should not be changed. The feature value can be extracted separately after the change should not be made in the incoming message and the change should not be made in the outgoing message. The feature value extracted in the packet should not match the feature value extracted in the outgoing packet, and the feature value extracted from the outgoing packet can be improved.

需要说明的是,本实施例抓取的报文在种类划分和后续匹配过程中,可以直接通过提取的特征值(哈希计算获得的值或md5计算获得的值)进行,提取的特征值包括报文长度、和/或源地址、和/或目的地址、和/或源端口、和/或目的端口、和/或报文区分字段等。It should be noted that, in the process of class division and subsequent matching, the message captured in this embodiment may be directly performed by using the extracted feature value (a value obtained by hash calculation or a value obtained by md5 calculation), and the extracted feature value includes Message length, and/or source address, and/or destination address, and/or source port, and/or destination port, and/or message distinguishing field, and the like.

确定第一个预设周期中未匹配成功的报文为发生错误的报文之前,本实施例还包括:过滤被检测网络主动发出的出向报文和发送给被检测网络的入向报文。Before determining that the unmatched packet in the first preset period is the packet with the error, the embodiment further includes: filtering the outgoing packet actively sent by the detected network and the inbound packet sent to the detected network.

实施例2Example 2

本实施例中,预先建立以服务器、和/或配置的进程、和/或配置的线程构成的分析单元;假设之前划分的各个种类的报文已经根据各个分析单元的性能和负荷进行了分配,本实施例假设根据种类划分的方法产生一个新的种类,图4为本发明第二实施例的方法流程图,如图4所示,包括:In this embodiment, an analysis unit composed of a server, and/or a configured process, and/or a configured thread is established in advance; it is assumed that the previously classified types of packets have been allocated according to the performance and load of each analysis unit. This embodiment assumes that a new type is generated according to the method of class division. FIG. 4 is a flowchart of a method according to a second embodiment of the present invention. As shown in FIG. 4, the method includes:

步骤400,将缓存的入向报文和出向报文按照预设策略进行种类划分,产生新的种类;Step 400: The buffered inbound packet and the outgoing packet are classified according to a preset policy to generate a new category.

步骤401,获取各个分析单元的负荷状态,根据负荷装置将新产生的种类分配到一个分析单元中。Step 401: Acquire a load state of each analysis unit, and assign the newly generated category to an analysis unit according to the load device.

分析单元的负荷状态可以包括:CPU使用率、内存使用率,还可以包括缓存的未进行匹配的报文的数量等。The load status of the analysis unit may include: CPU usage, memory usage, and may also include the number of cached unmatched messages.

本实施例中,可以设定各个分析单元相应的负荷阈值,当分析单元负荷达到负荷阈值时,则无需获取该分析单元的负荷状态。In this embodiment, the corresponding load threshold of each analysis unit can be set. When the analysis unit load reaches the load threshold, it is not necessary to acquire the load status of the analysis unit.

步骤402,若分析单元接收新产生种类的入向报文和出向报文时负荷过大,则拒绝接收分配的新产生种类的入向报文和出向报文;Step 402: If the analysis unit receives the inbound packet and the outgoing packet of the newly generated type, the load is too large, and then rejects the received incoming packet and the outgoing packet of the newly generated type;

步骤403,重新将新产生的种类分配到一个新确认的分析单元中。In step 403, the newly generated category is newly assigned to a newly confirmed analysis unit.

需要说明的是,分析单元的负荷可以周期性或触发性反馈,也可以通过查询方式获得。分析单元还可以在负荷降低(例如有些种类的报文已经匹配完成,或者该种类报文缓存数量减少)及负荷超出一定范围时主动进行反馈。使分析单元的负荷信息可以及时的获得。It should be noted that the load of the analysis unit may be periodically or triggered by feedback, or may be obtained by query. The analysis unit can also actively feedback when the load is reduced (for example, some types of messages have been matched, or the number of message buffers of the type is reduced) and the load exceeds a certain range. The load information of the analysis unit can be obtained in time.

本申请实施例提供的报文检错装置中的各个模块或单元可以通过一个或多个数字信号处理器(DSP)、专用集成电路(ASIC)、处理器、微处理器、控制器、微控制器、现场可编程阵列(FPGA)、可编程逻辑器件或其他电子单元或其任意组合来实现。在本申请实施例中描述的一些功能或处理也可以通过在处理器上执行的软件来实现。 The modules or units in the message error detecting apparatus provided by the embodiments of the present application may pass through one or more digital signal processors (DSPs), application specific integrated circuits (ASICs), processors, microprocessors, controllers, and micro-controls. Implemented by a field, programmable array (FPGA), programmable logic device, or other electronic unit, or any combination thereof. Some of the functions or processes described in this application embodiment may also be implemented by software executing on a processor.

工业实用性Industrial applicability

本发明涉及数据通信领域,通过对实时抓取的入向报文和出向报文按照预设周期进行缓存和进行不应发生变化部分的匹配,实现了对实时传输报文中发生错误的报文的检测。The invention relates to the field of data communication, which realizes the error message in the real-time transmission message by buffering the inbound message and the outgoing message in real time according to a preset period and matching the portion that should not be changed. Detection.

虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。 While the embodiments of the present invention have been described above, the described embodiments are merely for the purpose of understanding the invention and are not intended to limit the invention. Any modification and variation in the form and details of the embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention. The scope defined by the appended claims shall prevail.

Claims (15)

一种实现报文检错的方法,包括:A method for implementing packet error detection, including: 按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文;The real-time capture of the inbound packet and the outgoing packet transmitted by the detected network according to the preset period buffer; 将第一个预设周期和第二个预设周期中缓存的入向报文和出向报文中不应发生变化部分进行匹配,确定第一个预设周期中未匹配成功的报文为发生错误的报文;The inbound and outbound packets buffered in the first preset period and the second preset period are matched, and the unmatched packets in the first preset period are determined to be generated. Wrong message; 所述第一个预设周期与第二个预设周期相邻,且第一个预设周期早于第二个预设周期。The first preset period is adjacent to the second preset period, and the first preset period is earlier than the second preset period. 根据权利要求1所述的方法,其中,按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文后,该方法还包括:The method of claim 1, wherein the method further comprises: after the real-time capture of the inbound packet and the outgoing packet transmitted by the detected network according to the preset period, the method further comprises: 将缓存的入向报文和出向报文按照预设策略进行种类划分。The cached inbound and outbound packets are classified according to a preset policy. 根据权利要求2所述的方法,其中,所述按照预设策略进行种类划分包括:The method according to claim 2, wherein the classifying according to the preset policy comprises: 根据源地址、和/或目的地址、和/或源端口、和/或目的端口进行所述缓存的入向报文和出向报文种类的划分。The buffered inbound packet and the outgoing packet type are divided according to the source address, and/or the destination address, and/or the source port, and/or the destination port. 根据权利要求2或3所述的方法,其中,按照预设策略进行分类包括:The method according to claim 2 or 3, wherein the classifying according to the preset policy comprises: 将缓存的入向报文或出向报文的源地址、和/或目的地址、和/或源端口、和/或目的端口进行算数相加后,以种类划分的个数作为除数进行取模计算,根据取模计算结果的不同将所述缓存的入向报文和出向报文划分为相应的种类;或,After adding the buffered inbound or outbound packet source address, and/or destination address, and/or source port, and/or destination port, the number of types is divided into divisors. And dividing the cached inbound message and the outgoing message into corresponding categories according to different modulo calculation results; or 将缓存的入向报文或出向报文的源地址、目的地址、源端口、目的端口进行变换值计算,以种类划分的个数作为除数进行取模计算,根据取模计算结果的不同将所述缓存的入向报文和出向报文划分为相应的种类。The value of the source address, the destination address, the source port, and the destination port of the buffered inbound packet or the outgoing packet is calculated, and the number of types is divided into divisors to perform modulo calculation, according to different modulo calculation results. The inbound and outgoing packets of the cache are classified into corresponding categories. 根据权利要求4所述的方法,其中,所述变换值计算包括:哈希计算或消息摘要算法第五版md5计算。The method of claim 4, wherein the transform value calculation comprises: a hash calculation or a message digest algorithm fifth edition md5 calculation. 根据权利要求2~5任一项所述的方法,其中,所述对入向报文和出向报文中不应发生变化部分进行匹配包括:The method according to any one of claims 2 to 5, wherein the matching between the incoming message and the outgoing message in which the change does not occur includes: 对划分的各个种类中的所述入向报文和出向报文中不应发生变化部分进行匹配。Matching should not be made in the incoming message and the outgoing message in each of the classified categories. 根据权利要求1~5任一项所述的方法,其中,确定第一个预设周期中未匹配成功的报文为发生错误的报文之前,该方法还包括:The method according to any one of claims 1 to 5, wherein before the determining that the unmatched packet in the first preset period is a packet with an error, the method further includes: 过滤所述被检测网络主动发出的出向报文和发送给所述被检测网络的入向报文。And filtering an outgoing packet sent by the detected network and an incoming packet sent to the detected network. 根据权利要求1~5任一项所述的方法,其中,该方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises: 预先建立以服务器、和/或配置的进程、和/或配置的线程构成的分析单元;Pre-establishing an analysis unit consisting of a server, and/or configured processes, and/or configured threads; 分配给各分析单元进行划分的一个或一个以上种类的所述入向报文和出向报文中不应发生变化部分的匹配。 The matching of the changed parts should not occur in the inbound message and the outgoing message of one or more kinds of allocations assigned to each analysis unit. 根据权利要求8所述的方法,其中,所述分配给各分析单元进行划分的一个或一个以上种类的所述入向报文和出向报文中不应发生变化部分的匹配包括:The method according to claim 8, wherein the matching of the one-to-one message and the outgoing message of the one or more kinds of the divided units that are allocated to each analysis unit should not change: 根据各分析单元的负荷,确定分配给各分析单元进行相应个数种类的所述入向报文和出向报文中不应发生变化部分的匹配。According to the load of each analysis unit, the matching of the incoming part of the corresponding number of types and the change of the outgoing part of the outgoing message is determined. 根据权利要求1~5任一项所述的方法,其中,将入向报文与出向报文中不应发生变化部分进行匹配包括:The method according to any one of claims 1 to 5, wherein matching the incoming message with the non-changeable part of the outgoing message comprises: 将所述入向报文中不应发生变化部分的内容与出向报文中所述不应发生变化部分的内容进行匹配;或,Matching the content of the incoming message in the incoming message with the content of the outgoing message that should not change; or 提取所述入向报文中不应发生变化部分的内容的特征值和所述出向报文中不应发生变化部分的内容的特征值;Extracting, in the inbound message, a feature value of the content of the change portion and a feature value of the content of the outgoing message that should not change; 将提取的所述入向报文中不应发生变化部分的内容的特征值与提取的所述出向报文中不应发生变化部分的内容的特征值进行匹配。And extracting, in the extracted inbound message, the feature value of the content that should not be changed, and the extracted feature value of the content of the outgoing message that should not change. 一种实现报文检错的装置,包括:缓存单元和匹配单元;其中,An apparatus for implementing packet error detection, comprising: a buffer unit and a matching unit; wherein 缓存单元,设置为按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文;The cache unit is configured to cache the inbound packet and the outgoing packet transmitted by the detected network in real time according to the preset period; 匹配单元,设置为将第一个预设周期和第二个预设周期中缓存的入向报文和出向报文中不应发生变化部分进行匹配,确定第一个预设周期中未匹配成功的报文为发生错误的报文;The matching unit is configured to match the inbound and outbound packets buffered in the first preset period and the second preset period, and not to change, to determine that the first preset period is not successfully matched. The message is an error message; 所述第一个预设周期与第二个预设周期相邻,且第一个预设周期早于第二个预设周期。The first preset period is adjacent to the second preset period, and the first preset period is earlier than the second preset period. 根据权利要求11所述的装置,其中,该装置还包括种类划分单元,设置为按照预设周期缓存实时抓取被检测网络传输的入向报文和出向报文后,将缓存的入向报文和出向报文按照预设策略进行种类划分。The device according to claim 11, wherein the device further comprises a category dividing unit, configured to cache the inbound message and the outgoing message transmitted by the detected network according to the preset period, and then cache the incoming report. The text and outgoing packets are classified according to the preset policy. 根据权利要求12所述的装置,其中,所述匹配单元设置为,The apparatus according to claim 12, wherein said matching unit is configured to 对划分的各个种类中,将第一个预设周期和第二个预设周期中缓存的入向报文和出向报文中不应发生变化部分进行匹配,确定第一个预设周期中未匹配成功的报文为发生错误的报文。For each type of division, the inbound and outbound packets buffered in the first preset period and the second preset period are not matched, and the first preset period is not determined. A packet that matches successfully is a packet with an error. 根据权利要求11~13任一项所述的装置,其中,该装置还包括过滤单元,设置为在匹配单元确定第一个预设周期中未匹配成功的报文为发生错误的报文之前,过滤所述被检测网络主动发出的出向报文和发送给所述被检测网络的入向报文。The device according to any one of claims 11 to 13, wherein the device further comprises a filtering unit, configured to: before the matching unit determines that the unmatched message in the first preset period is a packet with an error, And filtering an outgoing packet sent by the detected network and an incoming packet sent to the detected network. 根据权利要求11~13任一项所述的装置,其中,该装置还包括构建及分配单元,设置为预先建立以服务器、和/或配置的进程、和/或配置的线程构成的分析单元;Apparatus according to any one of claims 11 to 13, wherein the apparatus further comprises a construction and distribution unit arranged to pre-establish an analysis unit consisting of a server, and/or configured processes, and/or configured threads; 分配给各分析单元进行划分的一个或一个以上种类的所述入向报文和出向报文中不应发生变化部分的匹配。 The matching of the changed parts should not occur in the inbound message and the outgoing message of one or more kinds of allocations assigned to each analysis unit.
PCT/CN2017/070452 2016-01-06 2017-01-06 Method and apparatus for realizing message error detection Ceased WO2017118416A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610012576.9A CN106953777A (en) 2016-01-06 2016-01-06 A kind of method and device for realizing message error detection
CN201610012576.9 2016-01-06

Publications (1)

Publication Number Publication Date
WO2017118416A1 true WO2017118416A1 (en) 2017-07-13

Family

ID=59273285

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/070452 Ceased WO2017118416A1 (en) 2016-01-06 2017-01-06 Method and apparatus for realizing message error detection

Country Status (2)

Country Link
CN (1) CN106953777A (en)
WO (1) WO2017118416A1 (en)

Citations (5)

* 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
CN101414486A (en) * 2007-09-25 2009-04-22 英特尔公司 Data Storage and Processing Algorithms for Multi-Level Flash Cell (MLC) VT Settings
CN101803253A (en) * 2008-02-04 2010-08-11 松下电器产业株式会社 Stream data multiplexing device and multiplexing method
CN103595590A (en) * 2013-11-28 2014-02-19 成都科来软件有限公司 Method, device and system for detecting data package tampering
CN105490865A (en) * 2014-09-17 2016-04-13 中兴通讯股份有限公司 Method and device for implementing flow analysis

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572584B (en) * 2008-04-30 2012-01-04 华为技术有限公司 Error detection method, equipment and system for message
CN102469006B (en) * 2010-11-01 2015-03-18 杭州华三通信技术有限公司 Method and device for quickly forwarding data report

Patent Citations (5)

* 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
CN101414486A (en) * 2007-09-25 2009-04-22 英特尔公司 Data Storage and Processing Algorithms for Multi-Level Flash Cell (MLC) VT Settings
CN101803253A (en) * 2008-02-04 2010-08-11 松下电器产业株式会社 Stream data multiplexing device and multiplexing method
CN103595590A (en) * 2013-11-28 2014-02-19 成都科来软件有限公司 Method, device and system for detecting data package tampering
CN105490865A (en) * 2014-09-17 2016-04-13 中兴通讯股份有限公司 Method and device for implementing flow analysis

Also Published As

Publication number Publication date
CN106953777A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
US8798051B2 (en) Information and communication processing system, method, and network node
JP5846221B2 (en) Network system and topology management method
US9967188B2 (en) Network traffic flow management using machine learning
CN102546849B (en) Detection method for IP (Internet Protocol) address conflict and network equipment
CN109347705B (en) A loop detection method and device
WO2015188579A1 (en) Distributed virtual firewall apparatus and method, and firewall controller
CN108833293A (en) A data center congestion control method and device based on software-defined network SDN
CN109039959A (en) A kind of the consistency judgment method and relevant apparatus of SDN network rule
WO2017190467A1 (en) Adjustment method and apparatus for maximum transmission unit of terminal, and terminal device
CN105530188A (en) Multicast forwarding method and device
CN107196816A (en) Anomalous traffic detection method, system and Network analyzing equipment
CN115885502A (en) Diagnosing intermediate network nodes
CN105207908B (en) A kind of message processing method and system
CN118475886A (en) Method and system for providing time-critical control applications
CN106789728A (en) A kind of voip traffic real-time identification method based on NetFPGA
US20180167337A1 (en) Application of network flow rule action based on packet counter
CN106302006B (en) A kind of dynamic source tracing method of the IP spoofing data packet based on SDN
CN105519058A (en) Controllers, Service Nodes, and Packet Forwarding Methods
CN104735000A (en) OpenFlow signaling control method and device
CN102904770A (en) A High Bandwidth VoIP Detection System
WO2017118416A1 (en) Method and apparatus for realizing message error detection
CN111106977B (en) Data stream detection method, device and storage medium
CN119363433A (en) A method, system, device, equipment and medium for verifying media data
CN109495311B (en) Network fault detection method and device
CN111200505B (en) Message processing method and device

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: 17735854

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: 17735854

Country of ref document: EP

Kind code of ref document: A1