WO2016123907A1 - Method and apparatus for detecting repeated simulation packet - Google Patents

Method and apparatus for detecting repeated simulation packet Download PDF

Info

Publication number
WO2016123907A1
WO2016123907A1 PCT/CN2015/084128 CN2015084128W WO2016123907A1 WO 2016123907 A1 WO2016123907 A1 WO 2016123907A1 CN 2015084128 W CN2015084128 W CN 2015084128W WO 2016123907 A1 WO2016123907 A1 WO 2016123907A1
Authority
WO
WIPO (PCT)
Prior art keywords
simulation
simulation message
message
time period
number field
Prior art date
Application number
PCT/CN2015/084128
Other languages
French (fr)
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 WO2016123907A1 publication Critical patent/WO2016123907A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Definitions

  • This paper relates to the field of communication technologies, and in particular, to a method and apparatus for detecting repeated simulation messages.
  • the transmission system is an important part of the communication network, and the quality of the transmission system directly restricts the development of the communication network.
  • One of the key points of the information highways that are being developed by countries all over the world is to build a large-capacity transmission optical network, continuously increase the signal rate on the transmission line, and widen the transmission frequency band, just like an ever-expanding highway that can accommodate a large number of traffic.
  • the traditional transmission network is formed by the PDH (Plesiochronous Digital Hierarchy) transmission system. Because of its multiplexed mode, it can not meet the requirements of large-capacity transmission of signals. In addition, the regional specifications of the PDH system also increase the difficulty of network interconnection. . Therefore, in today's communication network to large-capacity, standardization development, PDH transmission system has become a bottleneck of modern communication networks, restricting the development of transmission networks to higher speeds.
  • the SDH transmission system evolved from the PDH transmission system, so it has the unparalleled advantages of the PDH system. It is a brand new generation transmission system different from the PDH system, and it has undergone fundamental changes in the technical system compared with PDH.
  • the core of the SDH concept is to form a digital communication network from a unified national telecommunication network and international interoperability. It is an important part of the Integrated Services Digital Network (ISDN), especially the Broadband Integrated Services Digital Network (B-ISDN).
  • ISDN Integrated Services Digital Network
  • B-ISDN Broadband Integrated Services Digital Network
  • the network formed by SDH is a highly unified, standardized and intelligent network. It adopts a globally unified interface to achieve compatibility between multi-vendor environments of the device, and achieves efficient and coordinated management and operation throughout the entire network, enabling flexible networking and service scheduling, realizing network self-healing functions, and improving network resource utilization. . And because the maintenance function is enhanced, the operation and maintenance costs of the equipment are greatly reduced.
  • the 2G or 3G services of the accessed base station are transmitted through an MPLS (Multi Protocol Label Switching) network.
  • MPLS Multi Protocol Label Switching
  • the concept of protection or backup must be introduced in the networking process.
  • tunnel protection, pseudowire protection, and port protection are used.
  • the emulation packet is transmitted in the network environment where these protections are used. It is bound to be copied. Once the copied emulation message continues to be transmitted in the network and sent to the receiving device, the following situations may occur:
  • the port bandwidth buffer capacity of the receiving device is limited, and excessive repetitive emulation packets preempt the limited bandwidth resources.
  • the embodiment of the invention provides a method and a device for detecting a repeated simulation message, which can effectively detect a repeated simulation message transmitted in a network environment.
  • an embodiment of the present invention provides a method for detecting a repeated simulation message, including:
  • the method further includes:
  • the first simulation message and the second simulation message are respectively stored.
  • the method further includes:
  • the second time period and the first time period are adjacent time periods.
  • the method further includes:
  • the embodiment of the invention further provides an apparatus for detecting a repeated simulation message, comprising:
  • the first acquiring module is configured to acquire the first simulation packet received in the first time period and the second simulation packet received in the second time period;
  • a first detecting module configured to detect a serial number field value in a pseudowire control word of the first simulation message and a serial number field value in a pseudowire control word of the second simulation message;
  • the first processing module is configured to compare the serial number field value in the pseudowire control word of the first simulation message with the serial number field value in the pseudowire control word of the second simulation message, when the second simulation message is When there is the same sequence number field value as the first simulation message, it is determined that there is a simulation message in the second simulation message that is overlapped with at least part of the simulation message of the first simulation message.
  • the device further includes:
  • the storage module is configured to store the first simulation message and the second simulation message respectively.
  • the device further includes:
  • the searching module is configured to find a corresponding repeated simulation message according to the same sequence number field value that exists in the second simulation message and the first simulation message;
  • the module is deleted and set to delete the repeated simulation message.
  • the device further includes:
  • a second acquiring module configured to acquire a third simulation packet received in a third time period and a fourth simulation packet received in a fourth time period, where the third time period and the second time period are adjacent time segments, The third time period and the fourth time period are adjacent time periods;
  • a second detecting module configured to detect a serial number field value in the pseudowire control word of the third simulation message and a serial number field value in the pseudowire control word of the fourth simulation message;
  • the second processing module is configured to compare the serial number field value in the pseudowire control word of the third simulation message with the serial number field value in the pseudowire control word of the fourth simulation message, when the fourth simulation message When there is the same sequence number field value as the third simulation message, it is determined that there is a simulation message in the fourth simulation message that is repeated with at least part of the simulation message of the third simulation message.
  • the embodiment of the present invention further provides a computer readable storage medium, where the storage medium stores a computer program, where the computer program includes program instructions, when the program instruction is executed by the network node device, enabling the device to perform the above detection and repeated simulation The method of the message.
  • the beneficial effects of the embodiment of the present invention are: determining the existence of the repeated simulation message by comparing the value of the serial number field in the pseudowire control word of the simulation message in the adjacent time period, and according to the same serial number field value Effectively search for corresponding duplicate simulation messages and delete duplicate simulation messages to effectively avoid network problems caused by repeated simulation messages. In addition, by detecting duplicate simulation messages with a large amount of data, the loss of useful simulation messages can also be avoided.
  • FIG. 1 is a schematic diagram of networking of an application of a simulated message
  • FIG. 2 is a schematic diagram of networking for transmitting simulation packets in an MPLS network according to an embodiment of the present invention
  • FIG. 3 is a flow chart 1 of a method for detecting a repeated simulation message according to an embodiment of the present invention
  • FIG. 4 is a second flowchart of a method for detecting a repeated simulation message according to an embodiment of the present invention
  • FIG. 5 is a flowchart 3 of a method for detecting a repeated simulation message according to an embodiment of the present invention.
  • FIG. 6 is a flow chart showing the overall steps of a method for detecting a repeated simulation message according to an embodiment of the present invention
  • FIG. 7 is a block diagram of a device for detecting a repeated simulation message according to an embodiment of the present invention.
  • FIG. 8 is a second block diagram of a device for detecting repeated simulation messages according to an embodiment of the present invention.
  • FIG. 9 is a block diagram 3 of a device for detecting a repeated simulation message according to an embodiment of the present invention.
  • FIG. 10 is a block diagram 4 showing an apparatus for detecting a repeated simulation message according to an embodiment of the present invention.
  • FIG. 2 it is a networking diagram of transmitting an emulation packet in an MPLS network according to an embodiment of the present invention.
  • the emulation packet enters the MPLS network on the access side and is transmitted in the MPLS network, and the MPLS transport network is a narrowband transport network.
  • the method for detecting the repeated simulation message in the embodiment of the present invention needs to enable the pseudowire (PW) control word function on the system device, and the serial number in the pseudowire control word is defined by the standard instead of being customized.
  • PW pseudowire
  • an embodiment of the present invention provides a method for detecting a repeated simulation message, including:
  • Step S100 Obtain a first simulation message received in a first time period and a second simulation message received in a second time period;
  • Step S200 detecting a sequence number field value in a pseudowire control word of the first simulation message and a sequence number field value in a pseudowire control word of the second simulation message;
  • Step S300 Comparing the sequence number field value in the pseudowire control word of the first simulation message with the sequence number field value in the pseudowire control word of the second simulation message, when the second simulation message exists and the first When the same sequence number field value of the message is simulated, it is determined that the second simulation message has a simulation message that is repeated with at least part of the simulation message of the first simulation message.
  • the serial number in the pseudo line control word of the first simulation message and the second simulation message is detected, and the detected result is compared.
  • the second simulation message has the same sequence number field value as the first simulation message, it may be determined that at least part of the second simulation message exists and the first Simulation message with simulated message repetition.
  • the serial number field value in the pseudo line control word of the first simulation message and the serial number field value in the pseudo line control word of the second simulation message are implemented at the software level. Detection eliminates the cumbersome use of pure chip algorithms. It should be noted that the value of the sequence number field in the pseudo-line control word of different simulation messages is different, and different simulation messages are distinguished according to the difference of the serial number field values in the pseudo-line control words of different simulation messages. Similarly, the simulation message with the same sequence number field value is the same simulation message.
  • pseudowire control word structure includes:
  • sequence number is a sequence number
  • embodiment of the present invention is applicable to the transmission of the simulation message in the MPLS network, including framing and non-framing simulation messages, and the framing simulation message includes Pcm30, pcm30crc, pcm31, pcm31crc.
  • the method further includes:
  • the first simulation message and the second simulation message are respectively stored.
  • the system device stores the first simulation message in the first time period and then stores the first simulation message in the first buffer unit; and then acquires the second simulation message in the second time period to obtain the second time period.
  • the second simulation message is stored in the second buffer unit.
  • the size of the first buffer unit and the second buffer unit depends on the size of the memory space of the system device.
  • the size of the first simulation packet in the first time period depends on the size of the first buffer unit, and the second simulation packet in the second time period. The size depends on the size of the second cache unit.
  • the method further includes:
  • Step S400 Find a corresponding repeated simulation message according to the same sequence number field value that exists in the second simulation message and the first simulation message;
  • step S500 the repeated simulation message is deleted.
  • the simulation message having the same sequence number field value is the same simulation message, according to the same sequence number field value existing in the first simulation message, the corresponding repeated simulation is found.
  • the message discards one or more simulated packets, leaving only one emulation message for transmission.
  • the reliability of the network can be greatly improved, thereby effectively avoiding network problems caused by repeated simulation messages.
  • the loss of the beneficial simulation message can be avoided.
  • the second time period and the first time period are adjacent time periods.
  • the system device compares the sequence number field values in the pseudowire control words of the simulation message in the adjacent time period, determines the existence of the repeated simulation message, and detects the repeated simulation message for processing. Specifically, the system device receives the first simulation message of the first time period and the second simulation message of the second time period, and serial numbers in the pseudo-line control words of the first simulation message and the second simulation message The field values are compared to determine the existence of duplicate simulation messages. a pseudowire of one or more emulation messages in the second emulation message When the serial number field value in the control word is the same as the serial number field value in the pseudowire control word of one or more simulation messages in the first simulation message, the corresponding duplicate simulation message is found and deleted.
  • the method further includes:
  • Step S600 Obtain a third simulation message received in a third time period and a fourth simulation message received in a fourth time period, where the third time period and the second time period are adjacent time segments, and the third time period And the fourth time period is an adjacent time period;
  • Step S700 detecting a sequence number field value in a pseudowire control word of the third simulation message and a sequence number field value in a pseudowire control word of the fourth simulation message;
  • Step S800 Comparing the sequence number field value in the pseudowire control word of the third simulation message with the sequence number field value in the pseudowire control word of the fourth simulation message, when the fourth simulation message exists and the third When the same sequence number field value of the message is simulated, it is determined that there is a simulation message in the fourth simulation message that is repeated with at least part of the simulation message of the third simulation message.
  • the system device receives the third simulation message of the third time period and the fourth simulation message of the fourth time period, and serial numbers in the pseudo-line control words of the third simulation message and the fourth simulation message
  • the field values are compared to determine the existence of duplicate simulation messages.
  • the serial number field value in the pseudowire control word of one or more simulation messages in the fourth simulation message and the serial number in the pseudowire control word of one or more simulation messages in the third simulation message When the field values are the same, the corresponding duplicate simulation message is found and deleted. In the same way, the above processing is repeated for the fifth simulation message of the fifth time period and the sixth simulation message of the sixth time period, and the repeated simulation message is found.
  • FIG. 6 is a flow chart showing the overall steps of a method for detecting a repeated simulation message according to an embodiment of the present invention.
  • Step S101 Put the first simulation message of the first time period into the first buffer unit.
  • Step S102 Read a sequence number field value in a pseudo line control word of the first simulation message in the first buffer unit.
  • Step S103 Put the second simulation message of the second time period into the second buffer unit.
  • Step S104 Read a sequence number field value in a pseudowire control word of the second simulation message in the second buffer unit.
  • Step S105 Compare the sequence number field value in the pseudowire control word of the first simulation message and the second simulation message, and if there is the same sequence number field value, determine that there is a duplicate simulation message.
  • Step S106 The system device searches and deletes the repeated simulation message according to the determination that the repeated simulation message exists. After the repeated simulation message of the second time period is deleted, the process returns to step S101 to determine the repeated simulation message in the next first time period and the next second time period.
  • the next first time period here is the third time period, the fifth time period, the seventh time period, and the like; and so on, the next second time period is the fourth time period and the sixth time. Time period and eighth time period, etc.
  • An embodiment of the present invention further provides an apparatus for detecting a repetitive emulation message, including a processor and a program storage device. As shown in FIG. 7, the method further includes:
  • the first obtaining module 10 is adapted to obtain the first simulation message received in the first time period and the second simulation message received in the second time period;
  • the first detecting module 20 is adapted to detect a sequence number field value in the pseudowire control word of the first simulation message and a sequence number field value in the pseudowire control word of the second simulation message;
  • the first processing module 30 is configured to compare the sequence number field value in the pseudowire control word of the first simulation message with the sequence number field value in the pseudowire control word of the second simulation message, when the second simulation report When there is the same sequence number field value as the first simulation message, it is determined that there is a simulation message in the second simulation message that is repeated with at least part of the simulation message of the first simulation message.
  • the device further includes:
  • the storage module 40 is adapted to store the first simulation message and the second simulation message respectively.
  • the storage module 40 includes:
  • the first buffer unit 41 is adapted to store the first simulation message
  • the second buffer unit 42 is adapted to store the second simulation message.
  • the device further includes:
  • the searching module 50 is configured to search for a corresponding repeated simulation message according to the same sequence number field value that exists in the second simulation message and the first simulation message;
  • the deletion module 60 is adapted to delete the duplicate simulation message.
  • the device further includes:
  • the second obtaining module 70 is adapted to obtain the third simulation message and the fourth time received in the third time period. a fourth simulation message received by the inter-segment, wherein the third time period and the second time period are adjacent time segments, and the third time period and the fourth time period are adjacent time segments;
  • the second detecting module 80 is configured to detect a sequence number field value in the pseudowire control word of the third simulation message and a sequence number field value in the pseudowire control word of the fourth simulation message;
  • the second processing module 90 is configured to compare the sequence number field value in the pseudowire control word of the third simulation message with the sequence number field value in the pseudowire control word of the fourth simulation message, when the fourth simulation report When there is the same sequence number field value as the third simulation message, it is determined that there is a simulation message in the fourth simulation message that is repeated with at least part of the simulation message of the third simulation message.
  • the method for detecting a repeated simulation message in the embodiment of the present invention by comparing the serial number field values in the pseudowire control word of the simulation message in the adjacent time period, determining the existence of the repeated simulation message, and according to the same The serial number field value is used to find the corresponding duplicate simulation message, and the repeated simulation message is deleted, which can greatly improve the reliability of the network, thereby effectively avoiding network problems caused by repeated simulation messages. Further, by deleting the repeated simulation message with a large amount of data, the loss of the beneficial simulation message can be avoided.
  • the apparatus for detecting the repeated simulation message provided by the embodiment of the present invention is the apparatus applying the foregoing method, and all the embodiments of the foregoing method are applicable to the apparatus, and all of the same or similar beneficial effects can be achieved.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

A method and apparatus for detecting a repeated simulation packet. The method for detecting a repeated simulation packet comprises: acquiring a first simulation packet received within a first time period and a second simulation packet received within a second time period; detecting a serial number field value in a pseudo-wire control word of the first simulation packet and a serial number field value in a pseudo-wire control word of the second simulation packet; and comparing the serial number field value in the pseudo-wire control word of the first simulation packet with the serial number field value in the pseudo-wire control word of the second simulation packet, and when the second simulation packet has the same serial number field value as that of the first simulation packet, determining that the second simulation packet has a repeated simulation packet with at least part of the simulation packet of the first simulation packet. By way of detecting a repeated simulation packet transmitted in a network environment, and deleting the repeated simulation packet after detecting same, the reliability of a network can be greatly improved.

Description

一种检测重复仿真报文的方法及装置Method and device for detecting repeated simulation message 技术领域Technical field
本文涉及通信技术领域,尤其涉及一种检测重复仿真报文的方法及装置。This paper relates to the field of communication technologies, and in particular, to a method and apparatus for detecting repeated simulation messages.
背景技术Background technique
当今社会是高度发达的信息社会,要求通信网能提供多种多样的电信业务,通过通信网传输、交换、处理的信息量将不断增大,这就要求现代化的通信网向数字化、综合化、智能化和个人化方向发展。Today's society is a highly developed information society. It requires communication networks to provide a variety of telecommunication services. The amount of information transmitted, exchanged, and processed through communication networks will continue to increase. This requires modernized communication networks to be digitized and integrated. Intelligent and personal development.
传输系统是通信网的重要组成部分,传输系统的好坏直接制约着通信网的发展。当前世界各国大力发展的信息高速公路,其中一个重点就是组建大容量的传输光纤网络,不断提高传输线路上的信号速率,扩宽传输频带,就好比一条不断扩展的能容纳大量车流的高速公路。同时用户希望传输网能有世界范围的接口标准,能实现我们这个地球村中的每一个用户随时随地便捷地通信。The transmission system is an important part of the communication network, and the quality of the transmission system directly restricts the development of the communication network. One of the key points of the information highways that are being developed by countries all over the world is to build a large-capacity transmission optical network, continuously increase the signal rate on the transmission line, and widen the transmission frequency band, just like an ever-expanding highway that can accommodate a large number of traffic. At the same time, users hope that the transmission network can have a worldwide interface standard, which enables each user in our global village to communicate conveniently and conveniently at any time and place.
传统的传输网由PDH(准同步数字系列Plesiochronous Digital Hierarchy)传输体制组建,由于其复用的方式明显不能满足信号大容量传输的要求,另外PDH体制的地区性规范也使网络互连增加了难度。因此,在通信网向大容量、标准化发展的今天,PDH的传输体制已经愈来愈成为现代通信网的瓶颈,制约了传输网向更高的速率发展。SDH传输体制是由PDH传输体制进化而来的,因此它具有PDH体制所无可比拟的优点。它是不同于PDH体制的全新的一代传输体制,与PDH相比在技术体制上进行了根本的变革。SDH概念的核心是从统一的国家电信网和国际互通的高度来组建数字通信网,是构成综合业务数字网(ISDN),特别是宽带综合业务数字网(B-ISDN)的重要组成部分。与传统的PDH体制不同,按SDH组建的网络是一个高度统一的、标准化的、智能化的网络。它采用全球统一的接口以实现设备多厂家环境的兼容,在全程全网范围实现高效的协调一致的管理和操作,实现灵活的组网与业务调度,实现网络自愈功能,提高网络资源利用率。并且由于维护功能的加强大大降低了设备的运行维护费用。 The traditional transmission network is formed by the PDH (Plesiochronous Digital Hierarchy) transmission system. Because of its multiplexed mode, it can not meet the requirements of large-capacity transmission of signals. In addition, the regional specifications of the PDH system also increase the difficulty of network interconnection. . Therefore, in today's communication network to large-capacity, standardization development, PDH transmission system has become a bottleneck of modern communication networks, restricting the development of transmission networks to higher speeds. The SDH transmission system evolved from the PDH transmission system, so it has the unparalleled advantages of the PDH system. It is a brand new generation transmission system different from the PDH system, and it has undergone fundamental changes in the technical system compared with PDH. The core of the SDH concept is to form a digital communication network from a unified national telecommunication network and international interoperability. It is an important part of the Integrated Services Digital Network (ISDN), especially the Broadband Integrated Services Digital Network (B-ISDN). Different from the traditional PDH system, the network formed by SDH is a highly unified, standardized and intelligent network. It adopts a globally unified interface to achieve compatibility between multi-vendor environments of the device, and achieves efficient and coordinated management and operation throughout the entire network, enabling flexible networking and service scheduling, realizing network self-healing functions, and improving network resource utilization. . And because the maintenance function is enhanced, the operation and maintenance costs of the equipment are greatly reduced.
但在涉及到有需要使用仿真报文进行业务传输的SDH和PDH技术的设备和系统时,特别是在发生重复仿真报文传输时,会出现带宽受限,有益的报文被丢弃的情况,从而导致业务传输质量下降。如图1所示,接入的基站的2G或3G业务通过MPLS(多协议标签交换)网络进行传输。从网络稳定角度考虑,组网过程中必然引入保护或者备份的概念。目前流行的有隧道保护,伪线保护,端口保护。仿真报文在使用这些保护的组网环境中传输,必然会有被复制的情况,一旦复制的仿真报文继续在网络中传输,并且被送往接收的设备,会导致如下一些情况产生:However, when it comes to devices and systems that use SDH and PDH technologies that need to use simulated packets for service transmission, especially when repetitive emulation packets are transmitted, bandwidth is limited and useful packets are discarded. As a result, the quality of service transmission is degraded. As shown in FIG. 1, the 2G or 3G services of the accessed base station are transmitted through an MPLS (Multi Protocol Label Switching) network. From the perspective of network stability, the concept of protection or backup must be introduced in the networking process. Currently popular are tunnel protection, pseudowire protection, and port protection. The emulation packet is transmitted in the network environment where these protections are used. It is bound to be copied. Once the copied emulation message continues to be transmitted in the network and sent to the receiving device, the following situations may occur:
(1)接收设备的端口带宽缓存容量有限,过多的重复仿真报文抢占有限带宽资源。(1) The port bandwidth buffer capacity of the receiving device is limited, and excessive repetitive emulation packets preempt the limited bandwidth resources.
(2)重复仿真报文数据量过大,导致一些有益的仿真报文只能被丢弃。(2) The amount of data of the repeated simulation message is too large, so that some useful simulation messages can only be discarded.
(3)对设备CPU的工作造成极大的负担。(3) A great burden on the work of the device CPU.
发明内容Summary of the invention
本发明实施例提供一种检测重复仿真报文的方法及装置,能够有效检测出网络环境中传输的重复仿真报文。The embodiment of the invention provides a method and a device for detecting a repeated simulation message, which can effectively detect a repeated simulation message transmitted in a network environment.
为了解决上述技术问题,本发明实施例提供一种检测重复仿真报文的方法,包括:In order to solve the above technical problem, an embodiment of the present invention provides a method for detecting a repeated simulation message, including:
获取第一时间段收到的第一仿真报文和第二时间段收到的第二仿真报文;Acquiring the first simulation message received in the first time period and the second simulation message received in the second time period;
检测第一仿真报文的伪线控制字中的序列号字段值和第二仿真报文的伪线控制字中的序列号字段值;Detecting a sequence number field value in the pseudowire control word of the first simulation message and a sequence number field value in the pseudowire control word of the second simulation message;
将第一仿真报文的伪线控制字中的序列号字段值与第二仿真报文的伪线控制字中的序列号字段值进行比较,当第二仿真报文存在与第一仿真报文相同的序列号字段值时,判定第二仿真报文中存在与第一仿真报文的至少部分仿真报文相重复的仿真报文。Comparing the sequence number field value in the pseudowire control word of the first simulation message with the sequence number field value in the pseudowire control word of the second simulation message, when the second simulation message exists and the first simulation message When the same sequence number field value is used, it is determined that the second simulation message has a simulation message that is overlapped with at least part of the simulation message of the first simulation message.
可选地,其中,在获取第一时间段收到的第一仿真报文和第二时间段收到的第二仿真报文后,该还包括: Optionally, after the obtaining the first simulation message received in the first time period and the second simulation message received in the second time period, the method further includes:
分别对第一仿真报文和第二仿真报文进行存储。The first simulation message and the second simulation message are respectively stored.
可选地,其中,在判定第二仿真报文中存在与第一仿真报文的至少部分仿真报文相重复的仿真报文后,还包括:Optionally, after determining that the second simulation message has a simulation message that is repeated with the at least part of the simulation message of the first simulation message, the method further includes:
根据第二仿真报文中与第一仿真报文存在的相同的序列号字段值,查找相对应的重复仿真报文;And searching for a corresponding repeated simulation message according to the same sequence number field value that exists in the second simulation message and the first simulation message;
删除所述重复仿真报文。Delete the repeated simulation message.
可选地,其中,所述第二时间段与第一时间段为相邻时间段。Optionally, wherein the second time period and the first time period are adjacent time periods.
可选地,该方法还包括:Optionally, the method further includes:
获取第三时间段收到的第三仿真报文和第四时间段收到的第四仿真报文,其中第三时间段与第二时间段为相邻时间段,第三时间段与第四时间段为相邻时间段;Obtaining a third simulation message received in the third time period and a fourth simulation message received in the fourth time period, where the third time period and the second time period are adjacent time segments, and the third time period and the fourth time period The time period is an adjacent time period;
检测第三仿真报文的伪线控制字中的序列号字段值和第四仿真报文的伪线控制字中的序列号字段值;Detecting a sequence number field value in a pseudowire control word of the third simulation message and a sequence number field value in a pseudowire control word of the fourth simulation message;
将第三仿真报文的伪线控制字中的序列号字段值与第四仿真报文的伪线控制字中的序列号字段值进行比较,当第四仿真报文存在与第三仿真报文相同的序列号字段值时,判定第四仿真报文中存在与第三仿真报文的至少部分仿真报文相重复的仿真报文。Comparing the sequence number field value in the pseudowire control word of the third simulation message with the sequence number field value in the pseudowire control word of the fourth simulation message, when the fourth simulation message exists and the third simulation message When the same sequence number field value is used, it is determined that there is a simulation message in the fourth simulation message that is overlapped with at least part of the simulation message of the third simulation message.
本发明实施例还提供一种检测重复仿真报文的装置,包括:The embodiment of the invention further provides an apparatus for detecting a repeated simulation message, comprising:
第一获取模块,设置为获取第一时间段收到的第一仿真报文和第二时间段收到的第二仿真报文;The first acquiring module is configured to acquire the first simulation packet received in the first time period and the second simulation packet received in the second time period;
第一检测模块,设置为检测第一仿真报文的伪线控制字中的序列号字段值和第二仿真报文的伪线控制字中的序列号字段值;a first detecting module, configured to detect a serial number field value in a pseudowire control word of the first simulation message and a serial number field value in a pseudowire control word of the second simulation message;
第一处理模块,设置为将第一仿真报文的伪线控制字中的序列号字段值与第二仿真报文的伪线控制字中的序列号字段值进行比较,当第二仿真报文存在与第一仿真报文相同的序列号字段值时,判定第二仿真报文中存在与第一仿真报文的至少部分仿真报文相重复的仿真报文。The first processing module is configured to compare the serial number field value in the pseudowire control word of the first simulation message with the serial number field value in the pseudowire control word of the second simulation message, when the second simulation message is When there is the same sequence number field value as the first simulation message, it is determined that there is a simulation message in the second simulation message that is overlapped with at least part of the simulation message of the first simulation message.
可选地,该装置还包括: Optionally, the device further includes:
存储模块,设置为分别对第一仿真报文和第二仿真报文进行存储。The storage module is configured to store the first simulation message and the second simulation message respectively.
可选地,该装置还包括:Optionally, the device further includes:
查找模块,设置为根据第二仿真报文中与第一仿真报文存在的相同的序列号字段值,查找出相对应的重复仿真报文;The searching module is configured to find a corresponding repeated simulation message according to the same sequence number field value that exists in the second simulation message and the first simulation message;
删除模块,设置为删除所述重复仿真报文。The module is deleted and set to delete the repeated simulation message.
可选地,该装置还包括:Optionally, the device further includes:
第二获取模块,设置为获取第三时间段收到的第三仿真报文和第四时间段收到的第四仿真报文,其中第三时间段与第二时间段为相邻时间段,第三时间段与第四时间段为相邻时间段;a second acquiring module, configured to acquire a third simulation packet received in a third time period and a fourth simulation packet received in a fourth time period, where the third time period and the second time period are adjacent time segments, The third time period and the fourth time period are adjacent time periods;
第二检测模块,设置为检测第三仿真报文的伪线控制字中的序列号字段值和第四仿真报文的伪线控制字中的序列号字段值;a second detecting module, configured to detect a serial number field value in the pseudowire control word of the third simulation message and a serial number field value in the pseudowire control word of the fourth simulation message;
第二处理模块,设置为将第三仿真报文的伪线控制字中的序列号字段值与第四仿真报文的伪线控制字中的序列号字段值进行比较,当第四仿真报文存在与第三仿真报文相同的序列号字段值时,判定第四仿真报文中存在与第三仿真报文的至少部分仿真报文相重复的仿真报文。The second processing module is configured to compare the serial number field value in the pseudowire control word of the third simulation message with the serial number field value in the pseudowire control word of the fourth simulation message, when the fourth simulation message When there is the same sequence number field value as the third simulation message, it is determined that there is a simulation message in the fourth simulation message that is repeated with at least part of the simulation message of the third simulation message.
本发明实施例还提供一种计算机可读存储介质,所述存储介质存储有计算机程序,该计算机程序包括程序指令,当该程序指令被网络节点设备执行时,使得该设备可执行上述检测重复仿真报文的方法。The embodiment of the present invention further provides a computer readable storage medium, where the storage medium stores a computer program, where the computer program includes program instructions, when the program instruction is executed by the network node device, enabling the device to perform the above detection and repeated simulation The method of the message.
本发明实施例的有益效果是:通过对相邻时间段内的仿真报文的伪线控制字中的序列号字段值进行比较,判定重复仿真报文的存在,并根据相同的序列号字段值,有效查找相对应的重复仿真报文,并删除重复仿真报文,以有效避免因为重复仿真报文造成的网络问题。此外,通过检测出数据量较大的重复仿真报文,还可以避免有用仿真报文的丢失。The beneficial effects of the embodiment of the present invention are: determining the existence of the repeated simulation message by comparing the value of the serial number field in the pseudowire control word of the simulation message in the adjacent time period, and according to the same serial number field value Effectively search for corresponding duplicate simulation messages and delete duplicate simulation messages to effectively avoid network problems caused by repeated simulation messages. In addition, by detecting duplicate simulation messages with a large amount of data, the loss of useful simulation messages can also be avoided.
附图概述BRIEF abstract
图1表示仿真报文应用的组网示意图; FIG. 1 is a schematic diagram of networking of an application of a simulated message;
图2表示本发明实施例MPLS网络中传输仿真报文的组网示意图;2 is a schematic diagram of networking for transmitting simulation packets in an MPLS network according to an embodiment of the present invention;
图3表示本发明实施例检测重复仿真报文的方法步骤流程图一;3 is a flow chart 1 of a method for detecting a repeated simulation message according to an embodiment of the present invention;
图4表示本发明实施例检测重复仿真报文的方法步骤流程图二;4 is a second flowchart of a method for detecting a repeated simulation message according to an embodiment of the present invention;
图5表示本发明实施例检测重复仿真报文的方法步骤流程图三;FIG. 5 is a flowchart 3 of a method for detecting a repeated simulation message according to an embodiment of the present invention;
图6表示本发明实施例检测重复仿真报文的方法整体步骤流程图;6 is a flow chart showing the overall steps of a method for detecting a repeated simulation message according to an embodiment of the present invention;
图7表示本发明实施例检测重复仿真报文的装置框图一;7 is a block diagram of a device for detecting a repeated simulation message according to an embodiment of the present invention;
图8表示本发明实施例检测重复仿真报文的装置框图二;FIG. 8 is a second block diagram of a device for detecting repeated simulation messages according to an embodiment of the present invention; FIG.
图9表示本发明实施例检测重复仿真报文的装置框图三;FIG. 9 is a block diagram 3 of a device for detecting a repeated simulation message according to an embodiment of the present invention; FIG.
图10表示本发明实施例检测重复仿真报文的装置框图四。FIG. 10 is a block diagram 4 showing an apparatus for detecting a repeated simulation message according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。另外,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。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. Additionally, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
如图2所示,为本发明实施例在MPLS网络中传输仿真报文的组网示意图,仿真报文在接入侧进入MPLS网络,在MPLS网络中传输,MPLS传输网络是窄带传输网络。需要说明的是,本发明实施例检测重复仿真报文的方法需要在系统设备上开启伪线(PW)控制字功能,伪线控制字中的序列号是标准定义的,而非自定义的。As shown in FIG. 2, it is a networking diagram of transmitting an emulation packet in an MPLS network according to an embodiment of the present invention. The emulation packet enters the MPLS network on the access side and is transmitted in the MPLS network, and the MPLS transport network is a narrowband transport network. It should be noted that the method for detecting the repeated simulation message in the embodiment of the present invention needs to enable the pseudowire (PW) control word function on the system device, and the serial number in the pseudowire control word is defined by the standard instead of being customized.
如图3所示,本发明实施例提供了一种检测重复仿真报文的方法,包括:As shown in FIG. 3, an embodiment of the present invention provides a method for detecting a repeated simulation message, including:
步骤S100、获得第一时间段收到的第一仿真报文和第二时间段收到的第二仿真报文;Step S100: Obtain a first simulation message received in a first time period and a second simulation message received in a second time period;
步骤S200、检测第一仿真报文的伪线控制字中的序列号字段值和第二仿真报文的伪线控制字中的序列号字段值;Step S200: detecting a sequence number field value in a pseudowire control word of the first simulation message and a sequence number field value in a pseudowire control word of the second simulation message;
步骤S300、将第一仿真报文的伪线控制字中的序列号字段值与第二仿真报文的伪线控制字中的序列号字段值进行比较,当第二仿真报文存在与第一 仿真报文相同的序列号字段值时,判定第二仿真报文中存在与第一仿真报文的至少部分仿真报文相重复的仿真报文。Step S300: Comparing the sequence number field value in the pseudowire control word of the first simulation message with the sequence number field value in the pseudowire control word of the second simulation message, when the second simulation message exists and the first When the same sequence number field value of the message is simulated, it is determined that the second simulation message has a simulation message that is repeated with at least part of the simulation message of the first simulation message.
具体地,系统设备获取第一时间段的第一仿真报文和第二时间段的第二仿真报文后,对第一仿真报文和第二仿真报文的伪线控制字中的序列号字段值进行检测,并将检测的结果进行比较,当第二仿真报文存在与第一仿真报文相同的序列号字段值时,这时可以判定第二仿真报文中存在至少部分与第一仿真报文相重复的仿真报文。通过对相邻时间段内的仿真报文的伪线控制字中的序列号字段值进行比较,判定重复仿真报文的存在,方案简单可靠且准确性较高。本发明实施例在已有芯片基础上,在软件层面实现对第一仿真报文的伪线控制字中的序列号字段值和第二仿真报文的伪线控制字中的序列号字段值的检测,避免了使用纯粹芯片算法带来的繁琐。需要说明的是,不同的仿真报文的伪线控制字中的序列号字段值有所差异,根据不同仿真报文的伪线控制字中的序列号字段值的不同来区分不同的仿真报文,同理具有相同序列号字段值的仿真报文则为相同的仿真报文。Specifically, after the system device acquires the first simulation message of the first time period and the second simulation message of the second time period, the serial number in the pseudo line control word of the first simulation message and the second simulation message The field value is detected, and the detected result is compared. When the second simulation message has the same sequence number field value as the first simulation message, it may be determined that at least part of the second simulation message exists and the first Simulation message with simulated message repetition. By comparing the value of the serial number field in the pseudowire control word of the simulation message in the adjacent time period, the existence of the repeated simulation message is determined, and the scheme is simple, reliable and accurate. In the embodiment of the present invention, on the basis of the existing chip, the serial number field value in the pseudo line control word of the first simulation message and the serial number field value in the pseudo line control word of the second simulation message are implemented at the software level. Detection eliminates the cumbersome use of pure chip algorithms. It should be noted that the value of the sequence number field in the pseudo-line control word of different simulation messages is different, and different simulation messages are distinguished according to the difference of the serial number field values in the pseudo-line control words of different simulation messages. Similarly, the simulation message with the same sequence number field value is the same simulation message.
需要说明的是,伪线控制字结构包括:It should be noted that the pseudowire control word structure includes:
非成帧结构:Unframed structure:
Figure PCTCN2015084128-appb-000001
Figure PCTCN2015084128-appb-000001
成帧结构:Framing structure:
Figure PCTCN2015084128-appb-000002
Figure PCTCN2015084128-appb-000002
需要说明的是,Sequence number为序列号,本发明实施例适用于仿真报文在MPLS网络中的传输,包括成帧和非成帧仿真报文,成帧仿真报文包括 pcm30,pcm30crc,pcm31,pcm31crc。It should be noted that the sequence number is a sequence number, and the embodiment of the present invention is applicable to the transmission of the simulation message in the MPLS network, including framing and non-framing simulation messages, and the framing simulation message includes Pcm30, pcm30crc, pcm31, pcm31crc.
在本发明上述实施例中,获得第一时间段收到的第一仿真报文和第二时间段收到的第二仿真报文后,该还包括:In the above embodiment of the present invention, after obtaining the first simulation message received in the first time period and the second simulation message received in the second time period, the method further includes:
分别对第一仿真报文和第二仿真报文进行存储。The first simulation message and the second simulation message are respectively stored.
具体地,系统设备获取第一时间段的第一仿真报文后将第一仿真报文存储到第一缓存单元;再获取第二时间段的第二仿真报文,获得第二时间段的第二仿真报文后,将第二仿真报文存储到第二缓存单元。第一缓存单元和第二缓存单元的大小取决于系统设备内存空间大小,第一时间段内第一仿真报文的大小取决于第一缓存单元的大小,第二时间段内第二仿真报文的大小取决于第二缓存单元的大小。Specifically, the system device stores the first simulation message in the first time period and then stores the first simulation message in the first buffer unit; and then acquires the second simulation message in the second time period to obtain the second time period. After the second simulation message, the second simulation message is stored in the second buffer unit. The size of the first buffer unit and the second buffer unit depends on the size of the memory space of the system device. The size of the first simulation packet in the first time period depends on the size of the first buffer unit, and the second simulation packet in the second time period. The size depends on the size of the second cache unit.
在本发明上述实施例中,如图4所示,在判定第二仿真报文中存在与第一仿真报文的至少部分仿真报文相重复的仿真报文后,该方法还包括:In the foregoing embodiment of the present invention, as shown in FIG. 4, after determining that the second simulation message has a simulation message that is overlapped with at least part of the simulation message of the first simulation message, the method further includes:
步骤S400、根据第二仿真报文中与第一仿真报文存在的相同的序列号字段值,查找出相对应的重复仿真报文;Step S400: Find a corresponding repeated simulation message according to the same sequence number field value that exists in the second simulation message and the first simulation message;
步骤S500、将重复仿真报文进行删除。In step S500, the repeated simulation message is deleted.
具体地,因为具有相同序列号字段值的仿真报文为相同的仿真报文,根据第二仿真报文中与第一仿真报文存在的相同的序列号字段值,查找出相对应的重复仿真报文,将重复的一个或多个仿真报文丢弃,仅只留下一个仿真报文进行传输。将重复仿真报文进行删除处理,可以大大提高网络的可靠性,从而有效避免因为重复仿真报文造成的网络问题。进一步地,通过删除数据量较大的重复仿真报文,可以避免有益仿真报文的丢失。Specifically, because the simulation message having the same sequence number field value is the same simulation message, according to the same sequence number field value existing in the first simulation message, the corresponding repeated simulation is found. The message discards one or more simulated packets, leaving only one emulation message for transmission. By deleting the repeated simulation packets, the reliability of the network can be greatly improved, thereby effectively avoiding network problems caused by repeated simulation messages. Further, by deleting the repeated simulation message with a large amount of data, the loss of the beneficial simulation message can be avoided.
在本发明上述实施例中,该方法中:In the above embodiment of the present invention, in the method:
第二时间段与第一时间段为相邻时间段。The second time period and the first time period are adjacent time periods.
系统设备对相邻时间段内的仿真报文的伪线控制字中的序列号字段值进行比较,判定重复仿真报文的存在,并检测重复仿真报文进行处理。具体地,系统设备接收第一时间段的第一仿真报文和第二时间段的第二仿真报文,并对第一仿真报文和第二仿真报文的伪线控制字中的序列号字段值进行比较,判定重复仿真报文的存在。当第二仿真报文中的一个或多个仿真报文的伪线 控制字中的序列号字段值和第一仿真报文中的一个或多个仿真报文的伪线控制字中的序列号字段值相同时,查找出相应的重复仿真报文并进行删除处理。The system device compares the sequence number field values in the pseudowire control words of the simulation message in the adjacent time period, determines the existence of the repeated simulation message, and detects the repeated simulation message for processing. Specifically, the system device receives the first simulation message of the first time period and the second simulation message of the second time period, and serial numbers in the pseudo-line control words of the first simulation message and the second simulation message The field values are compared to determine the existence of duplicate simulation messages. a pseudowire of one or more emulation messages in the second emulation message When the serial number field value in the control word is the same as the serial number field value in the pseudowire control word of one or more simulation messages in the first simulation message, the corresponding duplicate simulation message is found and deleted.
在本发明上述实施例中,如图5所示,该方法还包括:In the above embodiment of the present invention, as shown in FIG. 5, the method further includes:
步骤S600、获得第三时间段收到的第三仿真报文和第四时间段收到的第四仿真报文,其中第三时间段与第二时间段为相邻时间段,第三时间段与第四时间段为相邻时间段;Step S600: Obtain a third simulation message received in a third time period and a fourth simulation message received in a fourth time period, where the third time period and the second time period are adjacent time segments, and the third time period And the fourth time period is an adjacent time period;
步骤S700、检测第三仿真报文的伪线控制字中的序列号字段值和第四仿真报文的伪线控制字中的序列号字段值;Step S700: detecting a sequence number field value in a pseudowire control word of the third simulation message and a sequence number field value in a pseudowire control word of the fourth simulation message;
步骤S800、将第三仿真报文的伪线控制字中的序列号字段值与第四仿真报文的伪线控制字中的序列号字段值进行比较,当第四仿真报文存在与第三仿真报文相同的序列号字段值时,判定第四仿真报文中存在与第三仿真报文的至少部分仿真报文相重复的仿真报文。Step S800: Comparing the sequence number field value in the pseudowire control word of the third simulation message with the sequence number field value in the pseudowire control word of the fourth simulation message, when the fourth simulation message exists and the third When the same sequence number field value of the message is simulated, it is determined that there is a simulation message in the fourth simulation message that is repeated with at least part of the simulation message of the third simulation message.
具体地,系统设备接收第三时间段的第三仿真报文和第四时间段的第四仿真报文,并对第三仿真报文和第四仿真报文的伪线控制字中的序列号字段值进行比较,判定重复仿真报文的存在。当第四仿真报文中的一个或多个仿真报文的伪线控制字中的序列号字段值和第三仿真报文中的一个或多个仿真报文的伪线控制字中的序列号字段值相同时,查找出相应的重复仿真报文并进行删除处理。同理,依次对第五时间段的第五仿真报文和第六时间段的第六仿真报文重复进行上述处理,查找出重复仿真报文。Specifically, the system device receives the third simulation message of the third time period and the fourth simulation message of the fourth time period, and serial numbers in the pseudo-line control words of the third simulation message and the fourth simulation message The field values are compared to determine the existence of duplicate simulation messages. The serial number field value in the pseudowire control word of one or more simulation messages in the fourth simulation message and the serial number in the pseudowire control word of one or more simulation messages in the third simulation message When the field values are the same, the corresponding duplicate simulation message is found and deleted. In the same way, the above processing is repeated for the fifth simulation message of the fifth time period and the sixth simulation message of the sixth time period, and the repeated simulation message is found.
如图6所示,为本发明实施例检测重复仿真报文的方法整体步骤流程图。FIG. 6 is a flow chart showing the overall steps of a method for detecting a repeated simulation message according to an embodiment of the present invention.
步骤S101、将第一时间段的第一仿真报文放入第一缓存单元。Step S101: Put the first simulation message of the first time period into the first buffer unit.
步骤S102、读取第一缓存单元中的第一仿真报文的伪线控制字中的序列号字段值。Step S102: Read a sequence number field value in a pseudo line control word of the first simulation message in the first buffer unit.
步骤S103、将第二时间段的第二仿真报文放入第二缓存单元。Step S103: Put the second simulation message of the second time period into the second buffer unit.
步骤S104、读取第二缓存单元中的第二仿真报文的伪线控制字中的序列号字段值。Step S104: Read a sequence number field value in a pseudowire control word of the second simulation message in the second buffer unit.
步骤S105、比较第一仿真报文和第二仿真报文的伪线控制字中的序列号字段值,如果存在相同的序列号字段值,判定存在重复仿真报文。 Step S105: Compare the sequence number field value in the pseudowire control word of the first simulation message and the second simulation message, and if there is the same sequence number field value, determine that there is a duplicate simulation message.
步骤S106、系统设备根据存在重复仿真报文的判定,对重复仿真报文进行查找并删除。删除第二时间段的重复仿真报文后,继续返回到步骤S101,判定下一个第一时间段和下一个第二时间段内的相重复的仿真报文。需要说明的是,这里的下一个第一时间段即为第三时间段、第五时间段和第七时间段等;依此类推,下一个第二时间段即为第四时间段、第六时间段和第八时间段等。Step S106: The system device searches and deletes the repeated simulation message according to the determination that the repeated simulation message exists. After the repeated simulation message of the second time period is deleted, the process returns to step S101 to determine the repeated simulation message in the next first time period and the next second time period. It should be noted that the next first time period here is the third time period, the fifth time period, the seventh time period, and the like; and so on, the next second time period is the fourth time period and the sixth time. Time period and eighth time period, etc.
本发明实施例还提供一种检测重复仿真报文的装置,包括处理器和程序存储设备,如图7所示,还包括:An embodiment of the present invention further provides an apparatus for detecting a repetitive emulation message, including a processor and a program storage device. As shown in FIG. 7, the method further includes:
第一获取模块10,适用于获得第一时间段收到的第一仿真报文和第二时间段收到的第二仿真报文;The first obtaining module 10 is adapted to obtain the first simulation message received in the first time period and the second simulation message received in the second time period;
第一检测模块20,适用于检测第一仿真报文的伪线控制字中的序列号字段值和第二仿真报文的伪线控制字中的序列号字段值;The first detecting module 20 is adapted to detect a sequence number field value in the pseudowire control word of the first simulation message and a sequence number field value in the pseudowire control word of the second simulation message;
第一处理模块30,适用于将第一仿真报文的伪线控制字中的序列号字段值与第二仿真报文的伪线控制字中的序列号字段值进行比较,当第二仿真报文存在与第一仿真报文相同的序列号字段值时,判定第二仿真报文中存在与第一仿真报文的至少部分仿真报文相重复的仿真报文。The first processing module 30 is configured to compare the sequence number field value in the pseudowire control word of the first simulation message with the sequence number field value in the pseudowire control word of the second simulation message, when the second simulation report When there is the same sequence number field value as the first simulation message, it is determined that there is a simulation message in the second simulation message that is repeated with at least part of the simulation message of the first simulation message.
在本发明上述实施例中,该装置还包括:In the above embodiment of the present invention, the device further includes:
存储模块40,适用于分别对第一仿真报文和第二仿真报文进行存储。The storage module 40 is adapted to store the first simulation message and the second simulation message respectively.
在本发明上述实施例中,如图8所示,存储模块40包括:In the above embodiment of the present invention, as shown in FIG. 8, the storage module 40 includes:
第一缓存单元41,适用于对第一仿真报文进行存储;The first buffer unit 41 is adapted to store the first simulation message;
第二缓存单元42,适用于对第二仿真报文进行存储。The second buffer unit 42 is adapted to store the second simulation message.
在本发明上述实施例中,如图9所示,该装置还包括:In the above embodiment of the present invention, as shown in FIG. 9, the device further includes:
查找模块50,适用于根据第二仿真报文中与第一仿真报文存在的相同的序列号字段值,查找出相对应的重复仿真报文;The searching module 50 is configured to search for a corresponding repeated simulation message according to the same sequence number field value that exists in the second simulation message and the first simulation message;
删除模块60,适用于将重复仿真报文进行删除。The deletion module 60 is adapted to delete the duplicate simulation message.
在本发明上述实施例中,如图10所示,该装置还包括:In the above embodiment of the present invention, as shown in FIG. 10, the device further includes:
第二获取模块70,适用于获得第三时间段收到的第三仿真报文和第四时 间段收到的第四仿真报文,其中第三时间段与第二时间段为相邻时间段,第三时间段与第四时间段为相邻时间段;The second obtaining module 70 is adapted to obtain the third simulation message and the fourth time received in the third time period. a fourth simulation message received by the inter-segment, wherein the third time period and the second time period are adjacent time segments, and the third time period and the fourth time period are adjacent time segments;
第二检测模块80,适用于检测第三仿真报文的伪线控制字中的序列号字段值和第四仿真报文的伪线控制字中的序列号字段值;The second detecting module 80 is configured to detect a sequence number field value in the pseudowire control word of the third simulation message and a sequence number field value in the pseudowire control word of the fourth simulation message;
第二处理模块90,适用于将第三仿真报文的伪线控制字中的序列号字段值与第四仿真报文的伪线控制字中的序列号字段值进行比较,当第四仿真报文存在与第三仿真报文相同的序列号字段值时,判定第四仿真报文中存在与第三仿真报文的至少部分仿真报文相重复的仿真报文。The second processing module 90 is configured to compare the sequence number field value in the pseudowire control word of the third simulation message with the sequence number field value in the pseudowire control word of the fourth simulation message, when the fourth simulation report When there is the same sequence number field value as the third simulation message, it is determined that there is a simulation message in the fourth simulation message that is repeated with at least part of the simulation message of the third simulation message.
本发明实施例的检测重复仿真报文的方法中,通过对相邻时间段内的仿真报文的伪线控制字中的序列号字段值进行比较,判定重复仿真报文的存在,并根据相同的序列号字段值,查找出相对应的重复仿真报文,将重复仿真报文进行删除处理,可大大提高网络的可靠性,从而有效避免因为重复仿真报文造成的网络问题。进一步地,通过删除数据量较大的重复仿真报文,可以避免有益仿真报文的丢失。In the method for detecting a repeated simulation message in the embodiment of the present invention, by comparing the serial number field values in the pseudowire control word of the simulation message in the adjacent time period, determining the existence of the repeated simulation message, and according to the same The serial number field value is used to find the corresponding duplicate simulation message, and the repeated simulation message is deleted, which can greatly improve the reliability of the network, thereby effectively avoiding network problems caused by repeated simulation messages. Further, by deleting the repeated simulation message with a large amount of data, the loss of the beneficial simulation message can be avoided.
需要说明的是,本发明实施例提供的检测重复仿真报文的装置是应用上述方法的装置,则上述方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the apparatus for detecting the repeated simulation message provided by the embodiment of the present invention is the apparatus applying the foregoing method, and all the embodiments of the foregoing method are applicable to the apparatus, and all of the same or similar beneficial effects can be achieved.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。 The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。Variations or substitutions are readily conceivable within the scope of the present invention by those skilled in the art and are within the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.
工业实用性Industrial applicability
通过对相邻时间段内的仿真报文的伪线控制字中的序列号字段值进行比较,判定重复仿真报文的存在,并根据相同的序列号字段值,有效查找相对应的重复仿真报文,并删除重复仿真报文,可以有效避免因为重复仿真报文造成的网络问题。此外,通过检测出数据量较大的重复仿真报文,还可以避免有用仿真报文的丢失。 By comparing the serial number field values in the pseudowire control words of the simulated message in the adjacent time period, the existence of the repeated simulation message is determined, and the corresponding duplicate simulation report is effectively searched according to the same serial number field value. Text, and delete the repeated simulation message, can effectively avoid the network problem caused by repeated simulation messages. In addition, by detecting duplicate simulation messages with a large amount of data, the loss of useful simulation messages can also be avoided.

Claims (10)

  1. 一种检测重复仿真报文的方法,包括:A method for detecting repeated simulation messages, comprising:
    获取第一时间段收到的第一仿真报文和第二时间段收到的第二仿真报文;Acquiring the first simulation message received in the first time period and the second simulation message received in the second time period;
    检测所述第一仿真报文的伪线控制字中的序列号字段值和所述第二仿真报文的伪线控制字中的序列号字段值;Detecting a sequence number field value in the pseudowire control word of the first simulation message and a sequence number field value in the pseudowire control word of the second simulation message;
    将所述第一仿真报文的伪线控制字中的序列号字段值与所述第二仿真报文的伪线控制字中的序列号字段值进行比较,当所述第二仿真报文存在与所述第一仿真报文相同的序列号字段值时,判定所述第二仿真报文中存在与所述第一仿真报文的至少部分仿真报文相重复的仿真报文。Comparing the sequence number field value in the pseudowire control word of the first simulation message with the sequence number field value in the pseudowire control word of the second simulation message, when the second simulation message exists When the sequence number field value is the same as the first simulation message, it is determined that the second simulation message has a simulation message that is overlapped with at least part of the simulation message of the first simulation message.
  2. 如权利要求1所述的方法,其中,在获取第一时间段收到的第一仿真报文和第二时间段收到的第二仿真报文后,还包括:The method of claim 1, wherein after acquiring the first simulation message received in the first time period and the second simulation message received in the second time period, the method further includes:
    分别对所述第一仿真报文和所述第二仿真报文进行存储。The first simulation message and the second simulation message are respectively stored.
  3. 如权利要求1所述的方法,其中,在判定所述第二仿真报文中存在与所述第一仿真报文的至少部分仿真报文相重复的仿真报文后,还包括:The method of claim 1, wherein after determining that the second simulation message has a simulation message that is repeated with the at least part of the simulation message of the first simulation message, the method further includes:
    根据所述第二仿真报文中与所述第一仿真报文存在的相同的序列号字段值,查找相对应的重复仿真报文;And searching for a corresponding repeated simulation message according to the same sequence number field value that exists in the second simulation packet in the second simulation packet;
    删除所述重复仿真报文。Delete the repeated simulation message.
  4. 如权利要求1所述的方法,其中,The method of claim 1 wherein
    所述第二时间段与所述第一时间段为相邻时间段。The second time period and the first time period are adjacent time periods.
  5. 如权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    获取第三时间段收到的第三仿真报文和第四时间段收到的第四仿真报文,其中所述第三时间段与所述第二时间段为相邻时间段,所述第三时间段与所述第四时间段为相邻时间段;Obtaining a third simulation packet received in the third time period and a fourth simulation packet received in the fourth time period, where the third time period and the second time period are adjacent time segments, where the The third time period and the fourth time period are adjacent time periods;
    检测所述第三仿真报文的伪线控制字中的序列号字段值和所述第四仿真报文的伪线控制字中的序列号字段值;Detecting a sequence number field value in the pseudowire control word of the third simulation message and a sequence number field value in the pseudowire control word of the fourth simulation message;
    将所述第三仿真报文的伪线控制字中的序列号字段值与所述第四仿真报 文的伪线控制字中的序列号字段值进行比较,当所述第四仿真报文存在与所述第三仿真报文相同的序列号字段值时,判定所述第四仿真报文中存在与所述第三仿真报文的至少部分仿真报文相重复的仿真报文。And the serial number field value in the pseudowire control word of the third simulation message is compared with the fourth simulation report Comparing the value of the sequence number field in the pseudowire control word of the text, when the fourth simulation message has the same sequence number field value as the third simulation message, determining that the fourth simulation message exists An emulation message repeated with at least part of the emulation message of the third emulation message.
  6. 一种检测重复仿真报文的装置,包括:A device for detecting repeated simulation messages, comprising:
    第一获取模块,设置为获取第一时间段收到的第一仿真报文和第二时间段收到的第二仿真报文;The first acquiring module is configured to acquire the first simulation packet received in the first time period and the second simulation packet received in the second time period;
    第一检测模块,设置为检测所述第一仿真报文的伪线控制字中的序列号字段值和所述第二仿真报文的伪线控制字中的序列号字段值;a first detecting module, configured to detect a sequence number field value in a pseudowire control word of the first simulation message and a sequence number field value in a pseudowire control word of the second simulation message;
    第一处理模块,设置为将所述第一仿真报文的伪线控制字中的序列号字段值与所述第二仿真报文的伪线控制字中的序列号字段值进行比较,当所述第二仿真报文存在与所述第一仿真报文相同的序列号字段值时,判定所述第二仿真报文中存在与所述第一仿真报文的至少部分仿真报文相重复的仿真报文。a first processing module, configured to compare a sequence number field value in the pseudowire control word of the first simulation message with a sequence number field value in a pseudowire control word of the second simulation message, When the second simulation message has the same sequence number field value as the first simulation message, it is determined that the second simulation message is overlapped with at least part of the simulation message of the first simulation message. Simulation message.
  7. 如权利要求6所述的装置,还包括:The apparatus of claim 6 further comprising:
    存储模块,设置为分别对所述第一仿真报文和所述第二仿真报文进行存储。The storage module is configured to store the first simulation message and the second simulation message respectively.
  8. 如权利要求6所述的装置,还包括:The apparatus of claim 6 further comprising:
    查找模块,设置为根据所述第二仿真报文中与所述第一仿真报文存在的相同的序列号字段值,查找相对应的重复仿真报文;a locating module, configured to search for a corresponding repeated simulation message according to the same sequence number field value that exists in the second simulation packet and the first simulation packet;
    删除模块,设置为删除所述重复仿真报文。The module is deleted and set to delete the repeated simulation message.
  9. 如权利要求6所述的装置,还包括:The apparatus of claim 6 further comprising:
    第二获取模块,设置为获取第三时间段收到的第三仿真报文和第四时间段收到的第四仿真报文,其中所述第三时间段与所述第二时间段为相邻时间段,所述第三时间段与所述第四时间段为相邻时间段;a second acquiring module, configured to acquire a third simulation packet received in a third time period and a fourth simulation packet received in a fourth time period, where the third time period and the second time period are The adjacent time period, the third time period and the fourth time period are adjacent time segments;
    第二检测模块,设置为检测所述第三仿真报文的伪线控制字中的序列号字段值和所述第四仿真报文的伪线控制字中的序列号字段值;a second detection module, configured to detect a sequence number field value in the pseudowire control word of the third simulation message and a sequence number field value in the pseudowire control word of the fourth simulation message;
    第二处理模块,设置为将所述第三仿真报文的伪线控制字中的序列号字 段值与所述第四仿真报文的伪线控制字中的序列号字段值进行比较,当所述第四仿真报文存在与所述第三仿真报文相同的序列号字段值时,判定所述第四仿真报文中存在与所述第三仿真报文的至少部分仿真报文相重复的仿真报文。a second processing module, configured to set a serial number word in a pseudowire control word of the third simulation message The segment value is compared with the sequence number field value in the pseudowire control word of the fourth simulation message, and when the fourth simulation message has the same sequence number field value as the third simulation message, the determination is performed. There is a simulation message in the fourth simulation message that is repeated with at least part of the simulation message of the third simulation message.
  10. 一种计算机可读存储介质,所述存储介质存储有计算机程序,该计算机程序包括程序指令,当该程序指令被网络节点设备执行时,使得该设备可执行权利要求1-5任一项的方法。 A computer readable storage medium storing a computer program, the computer program comprising program instructions, when the program instructions are executed by a network node device, causing the device to perform the method of any of claims 1-5 .
PCT/CN2015/084128 2015-02-06 2015-07-15 Method and apparatus for detecting repeated simulation packet WO2016123907A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510066351.7 2015-02-06
CN201510066351.7A CN105991359A (en) 2015-02-06 2015-02-06 Method and device for detecting repeated simulation messages

Publications (1)

Publication Number Publication Date
WO2016123907A1 true WO2016123907A1 (en) 2016-08-11

Family

ID=56563379

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/084128 WO2016123907A1 (en) 2015-02-06 2015-07-15 Method and apparatus for detecting repeated simulation packet

Country Status (2)

Country Link
CN (1) CN105991359A (en)
WO (1) WO2016123907A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108462591B (en) 2017-02-20 2020-04-14 华为技术有限公司 Method and device for processing service flow in packet network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854454A (en) * 1996-09-16 1998-12-29 Otis Elevator Company Message routing in control area network (CAN) protocol
CN102065067A (en) * 2009-11-11 2011-05-18 杭州华三通信技术有限公司 Method and device for preventing replay attack between portal server and client
CN102143078A (en) * 2011-03-29 2011-08-03 华为技术有限公司 Forwarding equipment as well as method and system for processing message

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202734A (en) * 2006-12-14 2008-06-18 中兴通讯股份有限公司 Method for deleting complete sequence number protocol data unit record block
CN101257441B (en) * 2008-02-29 2011-12-21 华为技术有限公司 Method, equipment and system for forwarding message as well as equipment for receiving message
JP4763819B2 (en) * 2009-05-22 2011-08-31 株式会社バッファロー Wireless LAN access point device and fraud management frame detection method
CN102611631A (en) * 2012-04-12 2012-07-25 中兴通讯股份有限公司 Method, device and system for protecting protocol under pseudo-wire scene

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854454A (en) * 1996-09-16 1998-12-29 Otis Elevator Company Message routing in control area network (CAN) protocol
CN102065067A (en) * 2009-11-11 2011-05-18 杭州华三通信技术有限公司 Method and device for preventing replay attack between portal server and client
CN102143078A (en) * 2011-03-29 2011-08-03 华为技术有限公司 Forwarding equipment as well as method and system for processing message

Also Published As

Publication number Publication date
CN105991359A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
US11223438B2 (en) Service transmission method, network device, and network system
US6654802B1 (en) Network system and method for automatic discovery of topology using overhead bandwidth
RU2493677C2 (en) Method and router for implementing mirroring
US7346081B2 (en) Traffic handling in a protected synchronous communication network
WO2019071598A1 (en) Method and device for transmitting and receiving clock synchronization message
US10284460B1 (en) Network packet tracing
US20200145119A1 (en) Data Transmission Methods, Apparatuses, Devices, and System
WO2020063593A1 (en) Time delay symmetry measurement method, apparatus and system
CN106330579B (en) Packet loss statistical method and device for PTN (packet transport network) equipment
US6816494B1 (en) Method and apparatus for distributed fairness algorithm for dynamic bandwidth allocation on a ring
WO2017088495A1 (en) Method and apparatus for acquiring routing information
CN112738259A (en) Ethernet data transmission method, device, equipment and storage medium
CN110858790B (en) Data packet transmission method and device, storage medium and electronic device
US7974187B2 (en) Data transmission
CN109981235A (en) A kind of FlexE Group machinery of consultation and network element
US7305013B2 (en) Handling traffic in a synchronous communication network
WO2019100982A1 (en) Data transmission method and device
WO2016123907A1 (en) Method and apparatus for detecting repeated simulation packet
CA2529599C (en) Method and apparatus for providing tandem connection, performance monitoring, and protection architectures over ethernet protocols
US20030161344A1 (en) Method and device for transporting ethernet frames over transport SDH/SONET network
CN112583736A (en) Signaling message distribution method, device, equipment and medium
CN114024844B (en) Data scheduling method, data scheduling device and electronic equipment
EP2242195B1 (en) Method and apparatus for service protection
US8407365B2 (en) Method and system for autodiscovery of a network path
US20120140776A1 (en) Communication device and communication method

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

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

Country of ref document: EP

Kind code of ref document: A1