CN101267363A - Loop testing method, system and device - Google Patents

Loop testing method, system and device Download PDF

Info

Publication number
CN101267363A
CN101267363A CN 200810104863 CN200810104863A CN101267363A CN 101267363 A CN101267363 A CN 101267363A CN 200810104863 CN200810104863 CN 200810104863 CN 200810104863 A CN200810104863 A CN 200810104863A CN 101267363 A CN101267363 A CN 101267363A
Authority
CN
China
Prior art keywords
packet
test
loop
loopback
back
Prior art date
Application number
CN 200810104863
Other languages
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 杭州华三通信技术有限公司
Priority to CN 200810104863 priority Critical patent/CN101267363A/en
Publication of CN101267363A publication Critical patent/CN101267363A/en

Links

Abstract

The invention provides a method for loop test, comprising: a home end OAM entity generates loop test message after starting a remote end loop; the message carries special information for identify the loop test message; then the home end OAM entity transmits the generated loop test message to the remote end OAM entity and process a statistic for the number of the loop test messages; the remote end OAM entity returns the received loop test message to the home end OAM entity, processing a statistic for the number of the returned loop test messages, and obtaining a loop test result according to the number of the self-transmitted loop test messages and the number of the loop test messages returned by the remote end OAM entity. In addition, the invention also provides a loop test system and home end OAM entity. This invention can reduce the cost of the loop test and enhance precision of the loop test.

Description

环回测试方法、系统及装置技术领域本发明涉及以太网操作、管理和维护(OAM)技术,尤其涉及以太网OAM中的环回测试方法、系统及装置。 Loopback test method, system and device Technical Field The present invention relates to an Ethernet Operations, Administration and Maintenance (OAM) techniques, in particular, it relates to Ethernet OAM loopback test methods, systems and apparatus. 背景技术以太网OAM是IEEE802.3ah制定的一种用于4企测以太网直连链路状态的协议,它工作在数据链路层,通过设备之间定时交互OAM协议数据单元(OAMPDU)来报告网络状态,使网络管理员能够有效地管理网络。 BACKGROUND IEEE802.3ah Ethernet OAM is a 4 to develop enterprise Ethernet direct measurement of the link state protocol is used, it works at the data link layer, by the timing of the interactive OAM protocol data unit (OAMPDUs) between devices report network status, enabling network managers to efficiently manage the network. 以太网OAM的基本操作包括:建立以太网OAM连接、链路监控、远端故障检测和远端环回。 Basic Ethernet OAM operations comprising: establishing OAM connection, link monitoring, fault detection and a distal end remote loopback. 其中,远端环回是在建立以太网OAM连接的基础上进行的, 启动远端环回的过程如下:本端OAM实体向远端OAM实体发起远端环回启动命令;远端OAM实体收到后进入环回模式,并向本端OAM实体返回远端环回启动响应。 Wherein the remote loopback is based on the Ethernet OAM connection establishment carried on, to start remote loopback process is as follows: The OAM entity to initiate remote loopback OAM entity distal start command; closed distal end OAM entity after entering the loopback mode, and returns the distal end of this promoter in response loopback OAM entity. 在环回模式下,除OAMPDU报文之外,远端OAM实体将原路返回所有来自本端OAM实体的l艮文;对于远端OAM实体返回的报文,本端OAM实体不再转发,以免对网络造成影响。 In loopback mode, in addition to OAMPDU packets, the distal end OAM entity returns the original path from the present text all Gen l OAM entity; for remote OAM entity returns the message, and the present OAM entity not forwarded, so as not to affect the network. 远端环回启动后, 本端OAM实体便可以向远端OAM实体发送才艮文进行环回测试,然后根据测试结果确定当前的网络状态。 After start remote loopback, the OAM entity can send to the remote entity OAM packets before Gen loopback test, then the current network state is determined according to test results. 定期进行环回测试可以及时发现网络故障, 帮助用户尽早排除故障。 Regular loopback test can detect network faults, as soon as possible to help users troubleshoot. 目前,常用的环回测试方案如下:在本端OAM实体上外接测试工具, 通过测试工具向远端OAM实体打入测试流量,远端OAM实体收到后向本端OAM实体原路返回,本端OAM实体通过统计打入的流量数量和远端OAM实体返回的流量数量得到测试结果。 At present, the commonly used loop-back test protocol is as follows: in the present OAM entity external test tool, test traffic into the OAM entity distally through testing tool, the distal end OAM entity receives backtrack OAM entity to the present, the present the amount of traffic through the OAM entity and the amount of traffic statistics into the distal end OAM entity returns the test results obtained. 上述方案虽然能够实现环回测试,但存在以下缺陷:首先,用户需要额外采购测试工具,成本较高;其次,该方案的适用范围较窄,只适用于较干净的网络环境,不适用于存在其它流量的网络环境,因为:当网络中存在其它流量时,本端OAM实体将无法区分远端OAM实体返回的究竟是测试流量还是其它流量,从而造成测试流量统计错误,得不到准确的测试结果。 Although the above scheme enables loopback test, but the following shortcomings: First, users need to purchase additional test tools, high cost; secondly, narrow the scope of the program applies only to relatively clean network environment, does not apply to exist other traffic network environments, because: when there is other traffic on the network, the local OAM entity will not be able to distinguish between remote OAM entity returns what is test traffic or other traffic, resulting in test traffic statistics error, lack of accurate test result. 发明内容有鉴于此,本发明的目的在于提供一种环回测试方法、系统及装置,降低环回测试的成本,提高环回测试的准确性。 SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a loopback test method, system and apparatus to reduce the cost of the loopback test, improve the accuracy of the loopback test. 为达到上述目的,本发明提供的技术方案如下: 一种环回测试方法,包括:启动远端环回后,本端OAM实体生成环回测试报文,该报文中携带用来标识环回测试报文的特定信息,然后本端OAM实体将生成的环回测试报文发送给远端OAM实体,并统计发出的环回测试报文个数;远端OAM实体将收到的环回测试报文返回给本端OAM实体;本端OAM实体通过报文中携带的特定信息识别环回测试报文,统计远端OAM实体返回的环回测试报文个数,并根据自身发出的环回测试报文个数及远端OAM实体返回的环回测试报文个数得到环回测试结果。 To achieve the above object, the present invention provides a technical solution as follows: A loop-back testing method, comprising: starting the remote loopback, the loopback OAM entity generating test packets, is used to identify the packet carries loopback number of test packets loopback test specific information packets, and then this produced OAM entity loopback test packet to the remote OAM entity and issued statistics; remote OAM entity the received loopback test packet back to the local OAM entity; local OAM entity message carries specific information for identifying the loop-back test packet, statistics remote OAM loopback entity returns the number of test packets, and issued under its own loopback loopback number of test packets and the number of test packets distal end OAM entity returned loopback test results obtained. 所述特定信息为目的MAC地址。 The specific information for the destination MAC address. 所述远端OAM实体将收到的环回测试报文返回给本端OAM实体之前进一步包括:远端OAM实体判断收到的报文是否属于OAMPDU报文,如果属于,则对收到的报文进行解析处理;否则,将收到的报文返回给本端OAM实体,其中,所述环回测试报文属于非OAMPDU报文。 The distal end of the received OAM entity loopback test packet before returning it to the present OAM entity further comprises: a distal end OAM entity determines whether the received packet OAMPDU packets, if they are, then the received message text analyzing process; otherwise, the received packet back to the local OAM entity, wherein the loop-back test packets are non OAMPDU packets. 该方法进一步包括:本端OAM实体在发出的各环回测试报文中分別携带不同的序列号;本端OAM实体收到远端OAM实体返回的环回测试4艮文后,通过报文中携带的序列号区分各个不同的环回测试报文,并根据各环回测试报文的发送时间和接收时间差确定网络的转发时延。 The method further comprising: present OAM entity different serial numbers are carried in the loop-back test packet sent in; this OAM entity after receiving entity returns the distal end OAM loopback test Gen 4 packets, packet by serial numbers are carried in various loopback test message, and determines the forwarding delay of each network in accordance with the loop-back test packet transmission time and the reception time difference. 一种环回测试系统,包括本端OAM实体和远端OAM实体,所述本端OAM实体包括报文生成单元、报文发送单元、报文接收单元和环回监控单元,其中,才艮文生成单元,用于生成环回测试才艮文,并将生成的环回测试净艮文发送给报文发送单元,所述环回测试报文中携带用来标识环回测试报文的特定信台•4艮文发送单元,用于将环回测试报文发送给远端OAM实体,并在环回监控单元进4于环回测试才艮文发送记录;导艮文接收单元,用于接收远端OAM实体返回的报文,通过报文中携带的特定信息识别环回测试报文,并将收到的环回测试报文发送给环回监控单元;环回监控单元,用于统计发出的环回测试^艮文个数及返回的环回测试才艮文个数,根据发出的环回测试报文个数及返回的环回测试l艮文个数得到环回测试结果;所述远端OAM实体包括:净艮文接收单元和 A cyclic-back test system, comprising a distal end and a present OAM OAM entity entity, the entity comprising local OAM packet generating means, message sending unit, receiving unit and the loop packets back to the control unit, wherein only the text Gen generating means for generating a loopback test only Gen text, and the resulting net Gen loopback test message packet to a transmitting unit, the loop-back test packet is used to identify the particular channel carrying the loopback test packets • 4 Gen station sending unit, configured to test the loopback OAM packets to the remote entity, and feed 4 to loopback test in a loop back only the monitoring unit sending Gen record; Gen guide message receiving means for receiving remote OAM entity returns packets through the packet carries specific information for identifying the loop-back test packet, and the received loop back test packet to loop back to the control unit; loop monitoring unit for issuing statistical loopback test message number ^ Burgundy Burgundy loopback test only the number of packets and returned loopback test results obtained in accordance with the loopback test number of packets sent and the number l loopback test described Gen returned; the distal end OAM entity comprising: a message receiving unit and the net Gen 才艮文环回单元,其中, 净艮文接收单元,用于接收来自本端OAM实体的环回测试报文,并将收到的环回测试报文发送给报文环回单元;净艮文环回单元,用于将收到的环回测试纟艮文返回给本端OAM实体。 Gen text only loop-back cell, wherein the net Gen message receiving means for receiving a loop-back test packet from the local OAM entity and received loopback test message packet to the loopback means; net Gen loopback packet unit, configured to receive the loop-back test packet back to the present Gen Si OAM entity. 所述报文生成单元包括:报文组装单元和用于生成序列号的序列号生成单元,其中,报文组装单元,用于从序列号生成单元中获取不同的序列号封装到不同的环回测试报文中,并将封装后的环回测试报文发送给报文发送单元;环回监控单元,收到报文接收单元发来的环回测试报文后,通过报文中携带的序列号区分各个不同的环回测试报文,并根据各环回测试报文的发送时间和接收时间差确定网络的转发时延。 Said message generating means comprises: means for assembling packet sequence number generating means generates a sequence number, wherein the packet assembling unit, configured to obtain a different sequence number to a different package from the loop sequence number generating unit test packet, and the loop-back test the encapsulated packet to the packet sending unit; loop back to the control unit, sent to the receiving unit described later loopback test message packet is received by the packet carries a sequence No distinction between the various loopback test packets, and forwards back to the delay time difference between the transmission time and the reception of the test packet is determined according to the respective ring network. 所述远端OAM实体进一步包括:才艮文处理单元,用于对收到的净艮文进行解析处理;远端OAM实体的报文接收单元,收到来自本端OAM实体的报文后,判断收到的报文是否属于OAMPDU报文,如果属于,则将收到的报文发送给报文处理单元;否则,将收到的报文发送给报文环回单元,其中,所述环回测试报文属于非OAMPDU报文。 The distal end OAM entity further comprises: Gen only text processing unit configured to receive packets net Gen performs analysis processing; distal end OAM packet receiving unit entity, the packet from the local OAM entity received, determining whether the received packet OAMPDU packets, if they are, then the received packet to the packet processing unit; otherwise, the received packet to the packet loop-back cell, wherein said ring test packets are non OAMPDU message. 一种本端OAM实体,用于与远端OAM实体进行环回测试,包括:才艮文生成单元、报文发送单元、报文接收单元和环回监控单元,其中,才艮文生成单元,用于生成环回测试才艮文,并将生成的环回测试^艮文发送给报文发送单元,所述环回测试报文中携带用来标识环回测试报文的特定信息;才良文发送单元,用于将环回测试报文发送给远端OAM实体,并在环回监控单元进行环回测试报文发送记录;报文接收单元,用于接收远端OAM实体返回的报文,通过报文中携带的特定信息识别环回测试报文,并将收到的环回测试报文发送给环回监控单元;环回监控单元,用于统计发出的环回测试报文个数及返回的环回测试报文个数,根据发出的环回测试报文个数及返回的环回测试报文个数得到环回测试结果。 This one kind of OAM entity for performing a loopback test, the distal end OAM entity comprising: Gen only text generating unit, packet sending unit, receiving unit and the loop packets back to the control unit, wherein only the text generating unit Burgundy, for generating a loopback test only Gen text, and the resulting loop-back test packet to a Gen ^ packet sending unit, the loop-back test packet carries information used to identify a specific test loop back packets; only Yoshibumi a sending unit, configured to test the loopback OAM packet to the distal end of the entity, and loopback test packets back to the control loop recording unit; packet receiving unit, for receiving the distal end OAM entity returns a message, specific information carried in the packet identified by the loop-back test packet, and the received loopback test loopback packet to the monitoring unit; loop back to the control unit for the loopback test of the number of packets sent and statistics loopback test number of packets returned loopback test in accordance with the number of packets sent and the number of the returned loopback test packet loop-back test results obtained. 所述报文生成单元包括:报文组装单元和用于生成序列号的序列号生成单元,其中,报文组装单元,用于从序列号生成单元中获取不同的序列号封装到不同的环回测试报文中,并将封装后的环回测试报文发送给报文发送单元;环回监控单元,收到报文接收单元发来的环回测试净艮文后,通过才艮文中携带的序列号区分各个不同的环回测试报文,并根据各环回测试报文的发送时间和接收时间差确定网络的转发时延。 Said message generating means comprises: means for assembling packet sequence number generating means generates a sequence number, wherein the packet assembling unit, configured to obtain a different sequence number to a different package from the loop sequence number generating unit test packet, and the loop-back test packet to the packet transmission unit after encapsulation; loopback monitoring unit, the receiving unit receives the message sent by the loop-back test packets Gen net, by the packet carries only Gen serial numbers are various loopback test message, and determines the forwarding delay of each network in accordance with the loop-back test packet transmission time and the reception time difference. 由此可见,采用本发明提供的利用环回测试报文进行环回测试的方案, 无需通过额外的测试工具打入测试流量,可以减少额外采购测试工具的开销,降低环回测试成本;并且,本发明所提供方案的适用范围不受限制,不仅适用于较干净的网络环境,也适用于存在其它流量的网络环境,即使在存在其它流量的网络环境下,本端OAM实体也可以4艮方俊J也区分出环回测试报文和其它报文,避免了统计错误情况的发生,提高了环回测试准确性。 Thus, the present invention provides the use of loop-back test packet loop-back test solution without test traffic into the tool through additional testing, additional overhead can be reduced procurement test tools, cost of test loopback; and, the present invention provides solutions to the scope of application is not limited, not only suitable for relatively clean network environment, but also to the presence of other traffic network environment, even in the presence of other traffic in the network environment, the OAM entity 4 may be square Gen Jun J also distinguish the loopback test packets and other packets, avoiding the occurrence of statistical error conditions, improving the loopback test accuracy. 附图说明图1为本发明实施例中的环回测试方式方法流程图; 图2为本发明实施例中的环回测试报文格式示意图; 图3为本发明实施例中的环回测试系统结构示意图; 图4示出了本发明实施例中的另一种环回测试系统结构示意图。 1 shows a flowchart of embodiments of the present invention, the loopback test of the method of the embodiment; FIG. 2 is a schematic loopback test packet format in the embodiment of the present invention; FIG. 3 loopback test system in the embodiment of the present invention. schematic structural diagram; FIG. 4 shows an embodiment of the present invention, a schematic diagram of another embodiment of a system configuration loopback test. 具体实施方式本发明的基本思想是:新增一种专用报文作为环回测试报文,远端环回启动后,本端OAM实体生成专门的环回测试才艮文,并将生成的环回测试才艮文发送给远端OAM实体;远端OAM实体收到后,将收到的环回测试报文返回给本端OAM实体;本端OAM实体根据自身发出的环回测试报文及远端OAM实体返回的环回测试4艮文得到测试结果。 DETAILED DESCRIPTION The basic idea of ​​the present invention is: the new message as a special loopback test packets, remote loopback after start, the generated OAM entity dedicated loop-back test packet was Burgundy, and the resulting ring Gen-back test packet was transmitted to the distal end OAM entity; OAM entity receives the distal end, the received loopback test packet back to the local OAM entity; present OAM entity test packets sent by itself and in accordance with ring remote OAM entity returns Gen 4 loopback test described the test results obtained. 采用专门的环回测试才艮文进行环回测试,无需通过测试工具打入测试流量,可以减少额外采购测试工具的开销,降低环回测试成本;并且,即使在存在其它流量的网络环境下,本端OAM实体也可以很方便地区分出测试报文和其它报文,避免了统计错误情况的发生,提高了环回测试准确性。 Using a special loopback test before Gen text loopback test, without having to pass the test tools to test into traffic, you can purchase additional test tools to reduce the overhead cost of test loop; and, even in the presence of other traffic in the network environment, the local OAM entity can also be very easy to separate area test packets and other packets, avoiding the occurrence of statistical error conditions, improving the loopback test accuracy. 为使本发明的目的、技术方案及优点更加清楚明白,下面参照附图并举实施例,对本发明作进一步详细说明。 For purposes of this invention, the technical solution and merits thereof more apparent, with reference to the accompanying drawings and the following embodiments, the present invention is described in further detail. 图1示出了本发明实施例中的环回测试方法流程图,包括以下步骤:步骤101:本端OAM实体与远端OAM实体建立OAM连坤妻。 FIG 1 shows a flow chart of the present invention the loopback test method in the embodiment, comprising the following steps: Step 101: The OAM entity and the OAM entity to establish OAM distal kun connected wife. 步骤102:本端OAM实体向远端OAM实体发起远端环回启动命令; 远端OAM实体收到远端环回启动命令后进入环回才莫式,并向本端OAM实体返回远端环回启动响应,两端进入环回测试状态。 Step 102: The OAM entity initiates a remote OAM loopback entity start command; remote OAM loopback entity receives the start command back into the ring before Mohs, and returns this OAM entity distal ring start response back ends into the loopback test state. 步骤103:本端OAM实体生成环回测试才艮文,将生成的环回测试才艮发送给远端OAM实体,并进行环回测试报文发送记录,如统计发出的环回测试报文个数。 Step 103: The OAM entity generating the loopback test only Gen text, generated loopback test only sent to the remote OAM entity Burgundy, and loopback test packets recorded loopback test statistics such as packet sent by a number. 其中,环回测试报文可通过携带特定信息来标识,比如,在环回测试才艮文中携带特定的目的媒介访问控制(MAC)地址,本端OAM实体和远端OAM实体通过目的MAC地址来区分环回控制l艮文。 Wherein the loop-back test packets can be identified by carrying specific information such as the loopback test only Gen message carries a specific object of Media Access Control (MAC) address, the OAM entity and a distal end OAM entity destination MAC address Gen l distinguish loopback control packets. 步骤104:远端OAM实体收到来自本端OAM实体的才艮文后,判断收到的报文是否属于OAMPDU报文,如果属于OAMPDU报文,则进行解析处理;否则,将收到的报文原路返回给本端OAM实体。 Step 104: after the distal end OAM entity receives only messages from Gen present OAM entity determines whether the received packet OAMPDU packets, if they are OAMPDU packet analysis processing is performed; otherwise, the received packet backtrack to the present text OAM entity. 这里,环回测试报文属于非OAMPDU报文,远端OAM实体收到后直接将本端OAM实体发出的环回测试报文返回给本端OAM实体。 Here, the loop-back test packets are non OAMPDU packets, the remote OAM loopback entity receives this OAM entity directly sent back to the test packets present OAM entity. 步骤105:本端OAM实体将远端OAM实体返回的环回测试净艮文上送CPU, CPU根据收到的环回测试报文及自身的环回测试报文发送记录得到分析结果。 Step 105: The OAM entity remote OAM loopback test entity returns the packet to the net Gen CPU, CPU self test packets and the packets sent loopback test recording to obtain the received ring according to the analysis result. 比如,统计远端OAM实体返回的环回测试4艮文个数,结合远端OAM实体返回的环回测试报文个数和自身发出的环回测试报文个数对链路状态进行分析,得到测试结果。 For example, statistics remote OAM loopback test entity returns the number of packets Gen 4, in conjunction with number of test packets loopback OAM entity returns the distal end of the loopback test and the number of packets sent to its own link-state analysis, get the test results. 进一步地,在步骤103中,本端OAM实体还可以在发出的每个环回测试报文中都携带一个不同的序列号,用于在回收环回测试报文时进行识别, 比如发出的第一个环回测试报文的序列号为1,后续发出的环回测试报文的序列号在1的基础上依次递增。 Each loop-back test packets Further, in step 103, may also be present in the OAM entity carries issued by a different serial number, for identifying a loopback test in the recovery packets, such as requesting section a loop-back test packet sequence number 1, the loopback test packet sequence number is incremented sequentially subsequent issued on the basis of 1. 在步骤105中,本端OAM实体收到远端OAM实体返回的环回测试报文后,可通过报文中携带的序列号来区分各个不同的环回测试报文,根据各环回测试报文的发送时间和接收时间差确定网络的转发时延,并进行时延抖动分析。 After step 105, the local entity receives the OAM loopback test message returned by the distal end OAM entity may distinguish various loopback test message packet by the sequence number carried in the loop-back test packets according to the respective the transmission time and reception time difference to determine a forwarding packets network delay, and delay jitter analysis. 图2示出了环回测试报文的一种示例性格式。 Figure 2 illustrates an exemplary format of the loopback test packets. 需要说明的是,环回测试报文的具体格式、长度以及向远端OAM实体发送的环回测试才艮文个数都可根据实际需求进行设置,本发明对此不作限制。 It should be noted that the specific format of the loopback test packets, and the length of the loop-back test to a remote OAM entity transmits only the number of packets can Gen accordance with actual needs, the present invention is not limited to this. 相应地,本发明还提供了一种环回测试系统,其结构参见图3所示,包括本端OAM实体和远端OAM实体。 Accordingly, the present invention also provides a loopback test, the structure shown in Figure 3, including the present OAM entity and a distal end OAM entity. 较佳地,本端OAM实体包括报文生成单元、报文发送单元、报文接收单元和环回监控单元,其中,报文生成单元,用于生成环回测试报文,并将生成的环回测试净艮文发送给报文发送单元,所述环回测试报文中携带用来标识环回测试报文的特定信白•报文发送单元,用于将环回测试才艮文发送给远端OAM实体,并在环回监控单元进行环回测试报文发送记录;报文接收单元,用于接收远端OAM实体返回的报文,通过报文中携带的特定信息识别环回测试报文,并将收到的环回测试报文发送给环回监控单元;环回监控单元,用于统计发出的环回测试寺艮文个数及返回的环回测试牙艮文个数,根据发出的环回测试报文个数及返回的环回测试报文个数得到环回测试结果。 Preferably, the ring, the OAM entity comprises a packet generation unit, packet sending unit, receiving unit and the loop packets back to the control unit, wherein the packet generating means for generating a loop-back test packet, and the resulting net Gen-back test packet to a packet sending unit, used to identify the loopback loopback test packets of particular white • test packet sending unit carries packet for loopback test message was sent to Burgundy OAM entity distal end, and loopback test packets back to the control unit records in a loop; packet receiving unit, for receiving the distal end OAM packet entity returns the specific information carried in the packet identified by the loop-back test packets the text, and the received loopback test loopback packet to the monitoring unit; loop back to the control unit, the number of loop-back test for the temple Gen statistical sent loopback test packets and the number of teeth Gen returned, according to the loopback number of test packets sent loopback number of test packets and returned to get the loopback test results. 较佳地,远端OAM实体包括:报文接收单元和报文环回单元,其中,报文接收单元,用于接收来自本端OAM实体的环回测试报文,并将收到的环回测试4良文发送给净良文环回单元;报文环回单元,用于将收到的环回测试报文返回给本端OAM实体。 Preferably, the distal end OAM entity comprising: a packet receiving unit and the packet loop-back cell, wherein the packet receiving unit, for receiving a loop-back test packet from the local OAM entity and received loopback test 4 Yoshibumi to a net Yoshibumi loopback means; means loopback packet, the loopback for the received test packet back to the local OAM entity. 参见图4所示,本端OAM实体的报文生成单元可包括:报文组装单元和用于生成序列号的序列号生成单元,其中,报文组装单元,用于从序列号生成单元中获取不同的序列号封装到不同的环回测试报文中,并将封装后的环回测试报文发送给报文发送单元;环回监控单元,收到报文接收单元发来的环回测试报文后,通过报文中携带的序列号区分各个不同的环回测试报文,并根据各环回测试报文的发送时间和接收时间差确定网络的转发时延。 Referring to FIG. 4, the packet generating unit may present OAM entity comprising: a packet assembling unit and a sequence number generating means generates a sequence number, wherein the packet assembling unit, configured to obtain from the sequence number generating unit different sequence numbers encapsulated in different loop-back test packet, and the loop-back test the encapsulated packet to the packet sending unit; loop back to the control unit, the receiving unit receives the message sent by the loop-back test packets hereinafter, the packet carries a sequence number to distinguish various loopback test message, and determines the forwarding delay of each network in accordance with the loop-back test packet transmission time and the reception time difference. 如图4所示,远端OAM实体可进一步包括:净艮文处理单元,用于对收到的报文进行解析处理;远端OAM实体的报文4妄收单元,收到来自本端OAM实体的净艮文后,判断收到的报文是否属于OAMPDU报文(该操作具体可由芯片实现),如果属于,则将收到的报文发送给报文处理单元;否则,将收到的报文发送给报文环回单元,其中,所述环回测试报文属于非OAMPDU报文。 4, the distal end OAM entity may further comprise: Net Gen packet processing unit, configured to parse the received packet processing; remote OAM packets jump entity receiving unit 4, received from the local OAM net after Gen text entity determines whether the received message packet OAMPDU (particularly by the chip operation), if they are, then the received packet to the packet processing unit; otherwise, the received packet to the packet loop-back cell, wherein the loop-back test packets are non OAMPDU packets. 以上所述对本发明的目的、技术方案和有益效果进行了进一步的详细说明,所应理解的是,以上所述并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above has been described in detail further objectives, technical solutions, and beneficial effects of the present invention, It should be understood that the foregoing is not intended to limit the present invention, all within the spirit and principle of the present invention, made any modifications, equivalent substitutions and improvements should be included within the scope of the present invention.

Claims (9)

1. 一种环回测试方法,其特征在于,包括: 启动远端环回后,本端OAM实体生成环回测试报文,该报文中携带用来标识环回测试报文的特定信息,然后本端OAM实体将生成的环回测试报文发送给远端OAM实体,并统计发出的环回测试报文个数; 远端OAM实体将收到的环回测试报文返回给本端OAM实体; 本端OAM实体通过报文中携带的特定信息识别环回测试报文,统计远端OAM实体返回的环回测试报文个数,并根据自身发出的环回测试报文个数及远端OAM实体返回的环回测试报文个数得到环回测试结果。 A loopback test method comprising: after starting the remote loopback, the loopback OAM entity generates a test packet, the packet carries information used to identify a specific test loop back packets, number of test packets loopback OAM entity and present the generated loopback test packet to the remote OAM entity and issued statistics; remote OAM loopback entity will receive test packets back to the local OAM entity; specific information identifying the local OAM entity carried in the packet loop-back test packet, the test message number of the OAM loopback packet statistics entity returns the distal end, and loopback test in accordance with the number of packets sent by itself and away number of test packets loopback OAM entity returned loopback test results obtained.
2、 根据权利要求1所述的方法,其特征在于,所述特定信息为目的MAC 地址。 2. The method according to claim 1, wherein the specific information for the destination MAC address.
3、 根据权利要求1所述的方法,其特征在于,所述远端OAM实体将收到的环回测试才艮文返回给本端OAM实体之前进一步包括:远端OAM实体判断收到的报文是否属于OAMPDU报文,如果属于,则对收到的报文进行解析处理;否则,将收到的报文返回给本端OAM实体,其中,所述环回测试报文属于非OAMPDU报文。 3. The method according to claim 1, wherein the distal end OAM loopback test entity was received before returning it to the present text Gen OAM entity further comprises: a distal end OAM packet entity determines that the received OAMPDU whether text messages, if they are, then the received packet analyzing process; otherwise, the received packet back to the local OAM entity, wherein the loopback test message packet is a non OAMPDU .
4、 根据权利要求1至3任一项所述的方法,其特征在于,该方法进一步包括:本端OAM实体在发出的各环回测试报文中分别携带不同的序列号;本端OAM实体收到远端OAM实体返回的环回测试报文后,通过报文中携带的序列号区分各个不同的环回测试报文,并根据各环回测试报文的发送时间和接收时间差确定网络的转发时延。 4. The method according to any one of claims 1 to 3, characterized in that the method further comprises: The OAM entity different serial numbers are carried in the loop-back test packet sent in; this OAM entity after receiving the loop-back test packets distal end OAM entity returned by the packet carries a sequence number to distinguish various loopback test packets and the test packets transmission time and reception time difference determined in accordance with each ring network forwarding delay.
5、 一种环回测试系统,包括本端OAM实体和远端OAM实体,其特征在于,所述本端OAM实体包括报文生成单元、报文发送单元、报文接收单元和环回监控单元,其中,报文生成单元,用于生成环回测试报文,并将生成的环回测试报文发送给报文发送单元,所述环回测试报文中携带用来标识环回测试报文的特定信息;报文发送单元,用于将环回测试l艮文发送给远端OAM实体,并在环回监控单元进行环回测试报文发送记录;报文接收单元,用于接收远端OAM实体返回的报文,通过报文中携带的特定信息识别环回测试报文,并将收到的环回测试报文发送给环回监控单元;环回监控单元,用于统计发出的环回测试报文个数及返回的环回测试报文个数,根据发出的环回测试报文个数及返回的环回测试报文个数得到环回测试结果;所述远端OAM实体包括:报文接收单元和 5. A loop-back test system, comprising a distal end and a present OAM entity OAM entity, wherein said entity comprises a local OAM packet generating means, message sending unit, receiving unit and the loop packets back to the control unit wherein the packet generating means for generating a loop-back test packet, and the resulting loop-back test packet to the packet sending unit, the loop-back test packet carrying the loopback test is used to identify packets specific information; packet sending unit, for the loopback test message sent to the remote Gen l OAM entities, and loopback test packets back to the control unit records in a loop; packet receiving unit, for receiving the distal end OAM entity returns packets through the packet carries specific information for identifying the loop-back test packet, and the received loop back test packet to loop back to the control unit; loop monitoring unit for statistical issued ring number of test packets back test loop and the number of packets returned loopback test results obtained in accordance with the loopback test number of packets sent and the number of the returned loopback test packet; said distal end OAM entity comprising : packet receiving unit, and 文环回单元,其中, 报文接收单元,用于接收来自本端OAM实体的环回测试报文,并将收到的环回测试报文发送给报文环回单元;报文环回单元,用于将收到的环回测试报文返回给本端OAM实体。 Wen loop-back cell, wherein the packet receiving unit, for receiving test packets from the loopback OAM entity is present, and the received loopback test message packet to the loopback means; means loopback packets for the loopback test the received packet back to the local OAM entity.
6、 根据权利要求5所述的系统,其特征在于,所述报文生成单元包括:报文组装单元和用于生成序列号的序列号生成单元,其中,报文组装单元,用于从序列号生成单元中获取不同的序列号封装到不同的环回测试报文中,并将封装后的环回测试报文发送给报文发送单元;环回监控单元,收到报文接收单元发来的环回测试报文后,通过报文中携带的序列号区分各个不同的环回测试报文,并根据各环回测试报文的发送时间和接收时间差确定网络的转发时延。 6. The system as claimed in claim 5, wherein said message generating means comprises: packet assembly means for generating a sequence number and a sequence number generating unit, wherein the packet assembling unit, the sequence for signal generating unit acquires a different sequence number encapsulated in different loop-back test packet, and the loop-back test packet to the packet transmission unit after encapsulation; loop back to the control unit, the receiving unit receives the message sent by after the loop-back test packet by packet carries a sequence number to distinguish various loopback test message, and determines the forwarding delay of each network in accordance with the loop-back test packet transmission time and the reception time difference.
7、 根据权利要求5或6所述的系统,其特征在于,所述远端OAM实体进一步包括:报文处理单元,用于对收到的报文进行解析处理;远端OAM实体的报文接收单元,收到来自本端OAM实体的报文后,判断收到的报文是否属于OAMPDU报文,如果属于,则将收到的报文发送给报文处理单元;否则,将收到的报文发送给报文环回单元,其中,所述环回测试报文属于非OAMPDU报文。 7. The system according to claim 5 or claim 6, wherein said distal end further OAM entity comprising: a packet processing unit, configured to parse the received packet processing; distal end OAM packet entity after the receiving means receives a packet from the local OAM entity determines whether the received packet OAMPDU packets, if they are, then the received packet to the packet processing unit; otherwise, the received packet to the packet loop-back cell, wherein the loop-back test packets are non OAMPDU packets.
8、 一种本端OAM实体,用于与远端OAM实体进行环回测试,其特征在于,包括:报文生成单元、报文发送单元、报文接收单元和环回监控单元,其中,报文生成单元,用于生成环回测试报文,并将生成的环回测试报文发送给报文发送单元,所述环回测试报文中携带用来标识环回测试报文的特定信息;才艮文发送单元,用于将环回测试报文发送给远端OAM实体,并在环回监控单元进行环回测试报文发送记录;报文接收单元,用于接收远端OAM实体返回的报文,通过报文中携带的特定信息识别环回测试报文,并将收到的环回测试报文发送给环回监控单元;环回监控单元,用于统计发出的环回测试报文个数及返回的环回测试报文个数,根据发出的环回测试报文个数及返回的环回测试报文个数得到环回测试结果。 8. A local OAM entity for performing a loopback test OAM entity and a distal end, wherein, comprising: a message generation unit, packet sending unit, receiving unit and the loop packets back to the control unit, wherein the packet sentence generating means for generating a loop-back test packet, and the resulting loop-back test packet to the packet sending unit, the loop-back test packet carries information used to identify a specific test loop back packets; Gen before sending unit, configured to test the loopback OAM packets to the remote entity, and loopback test packets back to the control loop recording unit; packet receiving unit, for receiving the distal end of the OAM entity returns message, identified by the specific information carried in the packet loop-back test packet, and the received loopback test loopback packet to the monitoring unit; loop monitoring unit for issuing statistical loopback test packets loopback test number and number of packets returned loopback test in accordance with the number of packets sent and the number of the returned loopback test packet loop-back test results obtained.
9、根据权利要求8所述的本端OAM实体,其特征在于,所述报文生成单元包括:报文组装单元和用于生成序列号的序列号生成单元,其中,报文组装单元,用于从序列号生成单元中获取不同的序列号封装到不同的环回测试才艮文中,并将封装后的环回测试报文发送给报文发送单元;环回监控单元,收到报文接收单元发来的环回测试报文后,通过报文中携带的序列号区分各个不同的环回测试报文,并根据各环回测试报文的发送时间和接收时间差确定网络的转发时延。 9, according to the present OAM entity as claimed in claim 8, wherein said message generating means comprises: means for assembling packet sequence number generating means generates a sequence number, wherein the packet assembling unit, with to obtain a different serial number from the serial number of the package generating unit to a different loopback test only Gen herein, and loop-back test the encapsulated packet to the packet sending unit; loop back to the control unit receives the message reception after the unit sent loopback test packet by packet carries a sequence number to distinguish various loopback test message, and determines the forwarding delay network in accordance with each loop-back test packet transmission time and the reception time difference.
CN 200810104863 2008-04-24 2008-04-24 Loop testing method, system and device CN101267363A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810104863 CN101267363A (en) 2008-04-24 2008-04-24 Loop testing method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810104863 CN101267363A (en) 2008-04-24 2008-04-24 Loop testing method, system and device

Publications (1)

Publication Number Publication Date
CN101267363A true CN101267363A (en) 2008-09-17

Family

ID=39989510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810104863 CN101267363A (en) 2008-04-24 2008-04-24 Loop testing method, system and device

Country Status (1)

Country Link
CN (1) CN101267363A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873236A (en) * 2010-06-13 2010-10-27 中兴通讯股份有限公司 Method and system for testing message
WO2011020271A1 (en) * 2009-08-21 2011-02-24 中兴通讯股份有限公司 Test method and device for evolved packet system bearer switching in the process of network switching
CN101989955A (en) * 2010-11-17 2011-03-23 中兴通讯股份有限公司 Realization method and system of remote loopback
CN101998422A (en) * 2009-08-18 2011-03-30 中兴通讯股份有限公司 Test method and system for data carrying in calling establishing process
CN102025570A (en) * 2010-12-22 2011-04-20 瑞斯康达科技发展股份有限公司 Loopback monitoring method and equipment
CN101425978B (en) 2008-12-02 2011-08-24 中兴通讯股份有限公司 Method and device for preventing routing loop in autonomous system
CN102223238A (en) * 2010-04-16 2011-10-19 鸿富锦精密工业(深圳)有限公司 Switching equipment and loopback detecting method thereof
CN102394795A (en) * 2011-11-04 2012-03-28 盛科网络(苏州)有限公司 Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor
WO2012155817A1 (en) * 2011-05-16 2012-11-22 华为技术有限公司 Loopback testing method, device and system
CN102833122A (en) * 2011-06-17 2012-12-19 中兴通讯股份有限公司 Loopback detection method and system
CN104137595A (en) * 2012-02-22 2014-11-05 瑞典爱立信有限公司 Self-organizing network function interaction
CN104410544A (en) * 2014-11-20 2015-03-11 中国联合网络通信集团有限公司 Ethernet network loop circuit testing method and device
CN104486780A (en) * 2014-12-30 2015-04-01 郑州向心力通信技术股份有限公司 Wireless local area network environment testing method
CN104506391A (en) * 2015-01-04 2015-04-08 中国联合网络通信集团有限公司 Method and device for testing private Ethernet line
CN104935508A (en) * 2014-03-18 2015-09-23 华为技术有限公司 Method and device for preventing routing loop
CN106936657A (en) * 2015-12-30 2017-07-07 华为技术有限公司 A kind of methods, devices and systems for realizing time delay detection
CN106936657B (en) * 2015-12-30 2020-01-03 华为技术有限公司 Method, device and system for realizing time delay detection

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425978B (en) 2008-12-02 2011-08-24 中兴通讯股份有限公司 Method and device for preventing routing loop in autonomous system
CN101998422B (en) * 2009-08-18 2015-07-22 中兴通讯股份有限公司 Test method and system for data carrying in calling establishing process
CN101998422A (en) * 2009-08-18 2011-03-30 中兴通讯股份有限公司 Test method and system for data carrying in calling establishing process
WO2011020271A1 (en) * 2009-08-21 2011-02-24 中兴通讯股份有限公司 Test method and device for evolved packet system bearer switching in the process of network switching
CN101998489B (en) * 2009-08-21 2015-01-28 中兴通讯股份有限公司 Method and device for testing EPS load bearing switching in network switching process
CN102223238B (en) 2010-04-16 2013-11-06 鸿富锦精密工业(深圳)有限公司 Switching equipment and loopback detecting method thereof
CN102223238A (en) * 2010-04-16 2011-10-19 鸿富锦精密工业(深圳)有限公司 Switching equipment and loopback detecting method thereof
CN101873236B (en) 2010-06-13 2014-04-30 中兴通讯股份有限公司 Method and system for testing message
CN101873236A (en) * 2010-06-13 2010-10-27 中兴通讯股份有限公司 Method and system for testing message
CN101989955B (en) * 2010-11-17 2015-04-01 中兴通讯股份有限公司 Realization method and system of remote loopback
CN101989955A (en) * 2010-11-17 2011-03-23 中兴通讯股份有限公司 Realization method and system of remote loopback
CN102025570A (en) * 2010-12-22 2011-04-20 瑞斯康达科技发展股份有限公司 Loopback monitoring method and equipment
CN102025570B (en) 2010-12-22 2012-08-29 瑞斯康达科技发展股份有限公司 Loopback monitoring method and equipment
WO2012155817A1 (en) * 2011-05-16 2012-11-22 华为技术有限公司 Loopback testing method, device and system
CN102833122A (en) * 2011-06-17 2012-12-19 中兴通讯股份有限公司 Loopback detection method and system
WO2012171382A1 (en) * 2011-06-17 2012-12-20 中兴通讯股份有限公司 Loopback detection method and system
CN102394795B (en) 2011-11-04 2013-10-30 盛科网络(苏州)有限公司 Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor
CN102394795A (en) * 2011-11-04 2012-03-28 盛科网络(苏州)有限公司 Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor
CN104137595B (en) * 2012-02-22 2018-07-27 瑞典爱立信有限公司 Self-organizing network function interacts
CN104137595A (en) * 2012-02-22 2014-11-05 瑞典爱立信有限公司 Self-organizing network function interaction
CN104935508B (en) * 2014-03-18 2019-01-25 华为技术有限公司 A kind of method and device preventing route loop
CN104935508A (en) * 2014-03-18 2015-09-23 华为技术有限公司 Method and device for preventing routing loop
CN104410544A (en) * 2014-11-20 2015-03-11 中国联合网络通信集团有限公司 Ethernet network loop circuit testing method and device
CN104410544B (en) * 2014-11-20 2017-11-10 中国联合网络通信集团有限公司 Ethernet Circle method of testing and device
CN104486780A (en) * 2014-12-30 2015-04-01 郑州向心力通信技术股份有限公司 Wireless local area network environment testing method
CN104506391B (en) * 2015-01-04 2018-06-01 中国联合网络通信集团有限公司 Ethernet private line test method and device
CN104506391A (en) * 2015-01-04 2015-04-08 中国联合网络通信集团有限公司 Method and device for testing private Ethernet line
CN106936657A (en) * 2015-12-30 2017-07-07 华为技术有限公司 A kind of methods, devices and systems for realizing time delay detection
CN106936657B (en) * 2015-12-30 2020-01-03 华为技术有限公司 Method, device and system for realizing time delay detection

Similar Documents

Publication Publication Date Title
Wundsam et al. OFRewind: enabling record and replay troubleshooting for networks
EP2863585B1 (en) Controller driven OAM for openflow
Mahajan et al. User-level internet path diagnosis
CN1697401B (en) Remote access link fault indication method and network
JP2004112791A (en) Method of measuring network operation parameter
CN101076972B (en) Obtaining path information related to a virtual private lan services (vpls) based network
US20040165595A1 (en) Discovery and integrity testing method in an ethernet domain
US8396945B2 (en) Network management system with adaptive sampled proactive diagnostic capabilities
EP1585301A1 (en) Apparatus and method for testing and fault isolation in a communication network
US7342897B1 (en) Network verification tool
JPWO2009098757A1 (en) Frame loss measuring method, system and apparatus
CN102291291B (en) For the method that would know that the built-in Remote Switched Port Analyzer of time
US9203726B2 (en) Performance measurement in a network supporting multiprotocol label switching (MPLS)
US7817568B2 (en) Method for measuring characteristics of path between nodes by using active testing packets based on priority
CN100417080C (en) Method for detecting network chain fault and positioning said fault
US20040218542A1 (en) Ethernet path verification
CN100356740C (en) System and method for conducting comprehensive measurement and association analysis to time delay and drop
US20070064611A1 (en) Method for monitoring packet loss ratio
CN101247321B (en) Method, device and system for routing diagnosis in network based on diameter protocol
CA2411848A1 (en) Network packet tracking
US7120121B2 (en) System, analyzer, and method for synchronizing a distributed system
CN1551571A (en) Central internet protocol/multi protocol label switching verification in communication network management environment
US7760663B2 (en) Packet tracing using dynamic packet filters
CN1659833B (en) Methods and apparatus for characterizing a route in a fibre channel fabric
CN102946325A (en) Network diagnosis method, system and equipment based on software defined network

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C02 Deemed withdrawal of patent application after publication (patent law 2001)