CN101753211A - A kind of test method and device - Google Patents
A kind of test method and device Download PDFInfo
- Publication number
- CN101753211A CN101753211A CN200810241618A CN200810241618A CN101753211A CN 101753211 A CN101753211 A CN 101753211A CN 200810241618 A CN200810241618 A CN 200810241618A CN 200810241618 A CN200810241618 A CN 200810241618A CN 101753211 A CN101753211 A CN 101753211A
- Authority
- CN
- China
- Prior art keywords
- module
- data frame
- olt
- downlink data
- uplink data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
本发明实施例公开了一种测试装置,包括:业务适配模块,以及确定模块;所述业务适配模块,用于将待测模块根据测试数据输出的下行数据帧,转换为上行数据帧,并将所述上行数据帧向所述待测模块发送;或者,将从待测模块根据测试数据输出的上行数据帧,转换为下行数据帧,并将所述下行数据向所述待测模块发送;确定模块,用于对所述待测模块输入测试数据,并对:所述待测模块根据所述经过转换得到的上行数据帧或下行数据帧进行处理的处理结果,进行检查,确定所述待测模块的状态。通过将待测模块输出的上行数据帧或下行数据帧进行转换后环回,解决了对上下行数据帧传送的方式不同,上下行数据帧遵循的协议不统一的设备的测试的问题。
The embodiment of the present invention discloses a test device, including: a service adaptation module, and a determination module; the service adaptation module is used to convert the downlink data frame output by the module to be tested according to the test data into an uplink data frame, and sending the uplink data frame to the module under test; or, converting the uplink data frame output from the module under test according to the test data into a downlink data frame, and sending the downlink data to the module under test The determination module is used to input test data to the module to be tested, and to: check the processing result of the module to be tested according to the converted uplink data frame or downlink data frame, and determine the The state of the module under test. By converting the uplink data frame or downlink data frame output by the module to be tested and then looping back, it solves the problem of testing devices with different transmission methods of uplink and downlink data frames and inconsistent protocols followed by uplink and downlink data frames.
Description
技术领域technical field
本发明涉及电子通信技术领域,特别涉及一种测试方法及装置。The invention relates to the technical field of electronic communication, in particular to a testing method and device.
背景技术Background technique
xPON(Passive Optical Network,无源光网络)技术以光纤为传输媒质,通过上下行波分复用,实现单纤双向通讯;同时通过下行方向广播,上行方向时分复用的技术实现了点对多点通讯。目前业内普遍看好的xPON技术有EPON(EthernetPassive Optical Network,以太网无源光网络)和GPON(Gigabit-capable PassiveOptical Network,G比特无源光网络)两种模式。这两种模式均采用单纤波分复用的光传输方式,上行波长1310nm、下行波长1490nm,OLT(Optical Line Terminal,光线路终端)与ONU(Optical Network Unit,光网络单元),以及,OLT与ONT(Optical Network Terminal,光纤网络终端)之间进行单纤双向数据传送。作为点对多点的传输方式,为了分离同一根光纤上多个用户来去方向的信号,采用以下两种复用技术:xPON (Passive Optical Network, Passive Optical Network) technology uses optical fiber as the transmission medium, and realizes single-fiber two-way communication through uplink and downlink wavelength division multiplexing; at the same time, it realizes point-to-multiple through downlink broadcast and uplink time division multiplexing technology Click Communications. At present, the xPON technology that is generally optimistic in the industry has two modes: EPON (Ethernet Passive Optical Network, Ethernet Passive Optical Network) and GPON (Gigabit-capable Passive Optical Network, Gbit Passive Optical Network). These two modes both adopt the optical transmission mode of single-fiber wavelength division multiplexing, the upstream wavelength is 1310nm, the downstream wavelength is 1490nm, OLT (Optical Line Terminal, optical line terminal) and ONU (Optical Network Unit, optical network unit), and, OLT Single-fiber bidirectional data transmission between ONT (Optical Network Terminal, optical network terminal). As a point-to-multipoint transmission method, in order to separate the signals of multiple users on the same optical fiber, the following two multiplexing technologies are used:
1)下行数据采用广播技术,各ONU/ONT只接收属于自己的数据。1) The downlink data adopts broadcast technology, and each ONU/ONT only receives its own data.
2)上行数据采用时分复用技术,各ONU/ONT在分配的特定时隙内发送数据。2) Uplink data adopts time-division multiplexing technology, and each ONU/ONT sends data in a specific allocated time slot.
此外,下行方向上,无源分光器将来自OLT的光信号分配到各个ONU/ONT上,同时将各个ONU/ONT的上行光信号汇聚到OLT。In addition, in the downstream direction, the passive optical splitter distributes the optical signals from the OLT to each ONU/ONT, and at the same time converges the upstream optical signals of each ONU/ONT to the OLT.
目前,对于如何对这种上下行数据采用不同的方式进行传送的设备进行测试,是一个技术难题。At present, it is a technical problem how to test the equipment that transmits uplink and downlink data in different ways.
发明内容Contents of the invention
本发明实施例提供一种测试方法,通过数据适配,实现了上下行数据的传送方式不同的设备的测试。The embodiment of the present invention provides a test method, which implements the test of devices with different transmission modes of uplink and downlink data through data adaptation.
本发明的实施例采用如下技术方案:Embodiments of the invention adopt the following technical solutions:
本发明的实施例提供一种测试装置,包括:业务适配模块,以及确定模块;An embodiment of the present invention provides a test device, including: a business adaptation module, and a determination module;
所述业务适配模块,用于将待测模块根据测试数据输出的下行数据帧,转换为上行数据帧,并将所述上行数据帧向所述待测模块发送;或者,将从待测模块根据测试数据输出的上行数据帧,转换为下行数据帧,并将所述下行数据向所述待测模块发送;The service adaptation module is used to convert the downlink data frame output by the module under test into an uplink data frame according to the test data, and send the uplink data frame to the module under test; converting the uplink data frame output according to the test data into a downlink data frame, and sending the downlink data to the module to be tested;
确定模块,用于对所述待测模块输入测试数据,并对:所述待测模块根据所述经过转换得到的上行数据帧或下行数据帧进行处理的处理结果,进行检查,确定所述待测模块的状态。A determination module, configured to input test data to the module to be tested, and check the processing result of the module to be tested according to the converted uplink data frame or downlink data frame, and determine the Check the status of the module.
本发明的实施例还提供一种测试装置,包括:转换模块,判断模块,以及环回模块;Embodiments of the present invention also provide a test device, including: a conversion module, a judgment module, and a loopback module;
所述环回模块,用于在所述待测模块根据所述测试数据输出的下行数据帧或上行数据帧的传输线路上的至少两个不同位置,获得所述下行数据帧或上行数据帧,并将所述获得的至少两个下行数据帧或上行数据帧,向所述转换模块发送;The loopback module is configured to obtain the downlink data frame or uplink data frame at at least two different positions on the transmission line of the downlink data frame or uplink data frame output by the module under test according to the test data, and Sending the obtained at least two downlink data frames or uplink data frames to the conversion module;
所述转换模块,用于将所述至少两个下行数据帧,转换为上行数据帧,并将所述上行数据帧向所述待测模块发送;或者,将所述至少两个上行数据帧,转换为下行数据帧,并将所述下行数据帧向所述待测模块发送;The converting module is configured to convert the at least two downlink data frames into uplink data frames, and send the uplink data frames to the module to be tested; or, convert the at least two uplink data frames, Converting to a downlink data frame, and sending the downlink data frame to the module to be tested;
判断模块,用于对所述待测模块输入测试数据,并根据:所述待测模块根据所述至少两个经过转换得到的上行数据帧或下行数据帧分别进行处理得到的至少两个处理结果,确定故障的位置。A judging module, configured to input test data to the module under test, and according to: at least two processing results obtained by processing the module under test according to the at least two converted uplink data frames or downlink data frames respectively , to determine the location of the fault.
本发明的实施例还提供一种测试方法,包括:Embodiments of the present invention also provide a test method, including:
向待测模块输入测试数据;Input test data to the module under test;
将待测模块根据所述测试数据输出的下行数据帧,转换为上行数据帧,并将所述上行数据帧向所述待测模块发送;或者,将从待测模块根据所述测试数据输出的上行数据帧,转换为下行数据帧,并将所述下行数据帧向所述待测模块发送;Converting the downlink data frame output by the module to be tested according to the test data into an uplink data frame, and sending the uplink data frame to the module to be tested; Uplink data frames are converted into downlink data frames, and the downlink data frames are sent to the module to be tested;
对所述待测模块根据所述经过转换得到的上行数据帧或下行数据帧的进行处理的处理结果,进行检查,确定所述待测模块的状态。Checking the module under test according to the processing result of the converted uplink data frame or downlink data frame to determine the state of the module under test.
上述技术方案中具有如下的优点:The above technical solution has the following advantages:
在本发明的实施例中,通过将待测模块输出的上行数据帧或下行数据帧进行转换后环回,从而实现了对待测模块的环回测试,解决了对上下行数据帧传送的方式不同,上下行数据帧遵循的协议不统一的设备的测试的问题。In the embodiment of the present invention, the loopback test of the module to be tested is realized by converting the uplink data frame or the downlink data frame output by the module to be tested and then looping back, which solves the problem of different transmission methods of the uplink and downlink data frames , the problem of testing devices whose protocols the uplink and downlink data frames follow are not uniform.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本发明一种测试装置的实施例一的示意图;Fig. 1 is the schematic diagram of Embodiment 1 of a kind of test device of the present invention;
图2为本发明一种测试装置的实施例二的示意图;Fig. 2 is the schematic diagram of
图3为本发明一种测试装置的实施例二中环回模块的示意图;3 is a schematic diagram of a loopback module in
图4为本发明一种测试装置的实施例二中第一转发模块以及第二选路器的示意图;4 is a schematic diagram of a first forwarding module and a second route selector in
图5为本发明一种测试装置的实施例中业务适配模块或转换模块的示意图;FIG. 5 is a schematic diagram of a service adaptation module or a conversion module in an embodiment of a test device of the present invention;
图6为本发明一种测试装置的实施例中构造模块的示意图;Fig. 6 is the schematic diagram of the construction module in the embodiment of a kind of test device of the present invention;
图7为本发明一种测试装置的实施例中业务适配模块或转换模块的示意图;FIG. 7 is a schematic diagram of a service adaptation module or conversion module in an embodiment of a test device of the present invention;
图8为本发明一种测试方法的实施例的示意图;Fig. 8 is the schematic diagram of the embodiment of a kind of test method of the present invention;
图9为本发明一种测试方法的实施例中步骤12的示意图;Fig. 9 is the schematic diagram of
图10为本发明一种测试方法的实施例中步骤122的示意图。FIG. 10 is a schematic diagram of
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
如图1所示,本发明提供一种测试装置的实施例一,包括:业务适配模块11,以及确定模块12;As shown in FIG. 1 , the present invention provides a first embodiment of a test device, including: a
所述业务适配模块11,用于将待测模块根据测试数据输出的下行数据帧,转换为上行数据帧,并将所述上行数据帧向所述待测模块发送;或者,将从待测模块根据测试数据输出的上行数据帧,转换为下行数据帧,并将所述下行数据向所述待测模块发送;The
确定模块12,用于对所述待测模块输入测试数据,并对:所述待测模块根据所述经过转换得到的上行数据帧或下行数据帧进行处理的处理结果,进行检查,确定所述待测模块的状态。The
其中,所述待测模块为采用多点协议传送数据的模块,例如可以为ONU,或者ONT,或者OLT;所述上行数据帧可以为从ONU/ONT向OLT发送的数据帧;所述下行数据帧可以为从OLT向ONU/ONT发送的数据帧。Wherein, the module to be tested is a module that uses a multipoint protocol to transmit data, such as an ONU, or ONT, or OLT; the uplink data frame can be a data frame sent from the ONU/ONT to the OLT; the downlink data frame The frame may be a data frame sent from the OLT to the ONU/ONT.
通过设置业务适配模块,将待测模块输出的上行数据帧,转换为下行数据帧后环回给待测模块,通过检查待测模块对所述下行数据帧的处理结果,可以确定待测模块的状态,例如:如果发现待测模块对所述下行数据帧的处理结果与正确的结果不一致,则可以确定,该待测模块出现故障。类似的,业务适配模块可以将待测模块输出的下行数据帧,转换为上行数据帧后环回给待测模块,通过检查待测模块对所述上行数据帧的处理结果,可以确定待测模块的状态。这样,通过上下行数据帧的转换,实现了测试数据的环回,从而实现了对待测模块的环回测试,解决了对上下行数据帧传送的方式不同,上下行数据帧遵循的协议不统一的设备的测试的问题。By setting the business adaptation module, the uplink data frame output by the module to be tested is converted into a downlink data frame and then looped back to the module to be tested, and the module to be tested can be determined by checking the processing result of the downlink data frame by the module to be tested For example, if it is found that the processing result of the module under test for the downlink data frame is inconsistent with the correct result, it can be determined that the module under test is faulty. Similarly, the business adaptation module can convert the downlink data frame output by the module to be tested into an uplink data frame and loop it back to the module to be tested. By checking the processing result of the uplink data frame by the module to be tested, it can determine the The state of the module. In this way, through the conversion of the uplink and downlink data frames, the loopback of the test data is realized, thereby realizing the loopback test of the module to be tested, and solving the problem that the uplink and downlink data frames are transmitted in different ways, and the protocols followed by the uplink and downlink data frames are not uniform The problem with the testing of the equipment.
进一步地,所述测试数据可以为待测模块当前正在处理的业务数据。在待测模块处于处理业务的工作状态时,待测模块产生的业务数据向外部输出,业务适配模块不工作;在待测模块处于被测试的状态时,业务适配模块将待测模块产生的上行数据帧或下行数据帧进行转换后环回。通过在待测模块运行正常业务的间歇里,进行测试,从而节省了测试时间,方便简捷。Further, the test data may be business data currently being processed by the module to be tested. When the module to be tested is in the working state of processing business, the business data generated by the module to be tested is output to the outside, and the business adaptation module does not work; when the module to be tested is in the state of being tested, the business adaptation module generates The uplink data frame or downlink data frame is converted and looped back. By performing the test during the interval of normal operation of the module to be tested, the test time is saved, which is convenient and simple.
其中,所述测试装置可以与待测模块集成在一起,例如:如果待测模块为OLT,可以将测试装置设置在OLT MAC(Medium Access Control,媒质接入控制)芯片上,如果待测模块为ONU,可以将测试装置设置在ONU MAC芯片上。另外,也可以将测试装置的一部分,例如业务适配模块,与待测模块集成在一起。Wherein, the test device can be integrated with the module to be tested, for example: if the module to be tested is an OLT, the test device can be set on an OLT MAC (Medium Access Control, Media Access Control) chip, if the module to be tested is ONU, the test device can be set on the ONU MAC chip. In addition, a part of the test device, such as a service adaptation module, can also be integrated with the module to be tested.
参见图2,本发明测试装置应用在xPON系统中的实施利二,所述测试装置包括所述转换模块21,判断模块22,以及环回模块23;Referring to Fig. 2, the implementation example 2 of the test device of the present invention applied in the xPON system, the test device includes the conversion module 21, the judgment module 22, and the loopback module 23;
所述环回模块23,用于在所述待测模块根据所述测试数据输出的下行数据帧或上行数据帧的传输线路上的至少两个不同位置,获得所述下行数据帧或上行数据帧,并将所述获得的至少两个下行数据帧或上行数据帧,向所述转换模块发送;The loopback module 23 is configured to obtain the downlink data frame or uplink data frame at at least two different positions on the transmission line of the downlink data frame or uplink data frame output by the module under test according to the test data, and sending the obtained at least two downlink data frames or uplink data frames to the conversion module;
所述转换模块21,用于将所述至少两个下行数据帧,转换为上行数据帧,并将所述上行数据帧向所述待测模块发送;或者,将所述至少两个上行数据帧,转换为下行数据帧,并将所述下行数据帧向所述待测模块发送;The conversion module 21 is configured to convert the at least two downlink data frames into uplink data frames, and send the uplink data frames to the module to be tested; or, convert the at least two uplink data frames , converting it into a downlink data frame, and sending the downlink data frame to the module to be tested;
判断模块22,用于对所述待测模块输入测试数据,并根据:所述待测模块根据所述至少两个经过转换得到的上行数据帧或下行数据帧分别进行处理得到的至少两个处理结果,确定故障的位置。The judging module 22 is configured to input test data to the module to be tested, and according to at least two processes obtained by processing the module to be tested according to the at least two converted uplink data frames or downlink data frames respectively. As a result, the location of the fault is determined.
请参阅图3,在待测模块为OLT时,所述环回模块可以具体包括以下模块的全部或者至少两个转发模块的组合:Referring to Fig. 3, when the module to be tested is an OLT, the loopback module can specifically include all of the following modules or a combination of at least two forwarding modules:
第一转发模块,用于将从OLT输出的下行数据帧转发给所述转换模块;A first forwarding module, configured to forward the downlink data frame output from the OLT to the conversion module;
第二转发模块,用于将靠近OLT的光模块输出的下行数据帧转发给所述转换模块;The second forwarding module is used to forward the downlink data frame output by the optical module close to the OLT to the conversion module;
第三转发模块,用于将分光器输出的下行数据帧转发给所述转换模块;A third forwarding module, configured to forward the downlink data frame output by the optical splitter to the converting module;
第四转发模块,用于将靠近ONU的光模块输出的下行数据帧转发给所述转换模块。The fourth forwarding module is configured to forward the downlink data frame output by the optical module close to the ONU to the converting module.
其中,所述第一转发模块可以与OLT一起集成在OLT MAC(MAC:MediumAccess Control,媒质接入控制)芯片上。Wherein, the first forwarding module can be integrated with the OLT on an OLT MAC (MAC: Medium Access Control, medium access control) chip.
其中,所述光模块是指用于光信号和电信号转换的模块;所述分光器是用于将下行广播的下行数据帧的光信号,分配到不同支路的无源光分路器。Wherein, the optical module refers to a module for converting optical signals and electrical signals; the optical splitter is a passive optical splitter for distributing optical signals of downlink data frames of downlink broadcasts to different branches.
在所述环回模块包括第一转发模块和第二转发模块的情况下,所述判断模块具体用于在自第一转发模块转发给所述转换模块的下行数据帧,经过所述转换模块转换,以及OLT的处理后,得到处理结果,所述处理结果正确,并且,在自第二转发模块转发给所述转换模块的下行数据帧,经过所述转换模块转换,以及OLT的处理后,得到处理结果,所述处理结果不正确时,确定自所述第一转发模块到第二转发模块之间存在故障。In the case where the loopback module includes a first forwarding module and a second forwarding module, the judgment module is specifically configured to convert the downlink data frame forwarded from the first forwarding module to the conversion module by the conversion module , and after the processing of the OLT, the processing result is obtained, and the processing result is correct, and, after the downlink data frame forwarded from the second forwarding module to the conversion module is converted by the conversion module and processed by the OLT, it is obtained The processing result, when the processing result is incorrect, it is determined that there is a fault between the first forwarding module and the second forwarding module.
所述确定自所述第一转发模块到第二转发模块之间存在故障可以理解为:靠近OLT的光模块,或者第一转发模块到靠近OLT的光模块之间的传输线路,或者靠近OLT的光模块与第二转发模块之间的传输线路出现了故障。The determination that there is a fault between the first forwarding module and the second forwarding module can be understood as: an optical module close to the OLT, or a transmission line between the first forwarding module and an optical module close to the OLT, or a transmission line close to the OLT The transmission line between the optical module and the second forwarding module is faulty.
在所述环回模块包括第二转发模块和第三转发模块的情况下,所述判断模块具体用于在自第二转发模块转发给所述转换模块的下行数据帧,经过所述转换模块转换,以及OLT的处理后,得到处理结果,所述处理结果正确,并且,在自第三转发模块转发给所述转换模块的下行数据帧,经过所述转换模块转换,以及待测模块的处理后,得到处理结果,所述处理结果不正确时,确定自所述第二转发模块到第三转发模块之间存在故障。In the case where the loopback module includes a second forwarding module and a third forwarding module, the judgment module is specifically configured to convert the downlink data frame forwarded from the second forwarding module to the conversion module by the conversion module , and after the processing of the OLT, a processing result is obtained, and the processing result is correct, and, after the downlink data frame forwarded from the third forwarding module to the conversion module is converted by the conversion module and processed by the module to be tested , to obtain a processing result, and when the processing result is incorrect, it is determined that there is a fault between the second forwarding module and the third forwarding module.
在所述环回模块包括第一转发模块和第四转发模块的情况下,所述判断模块具体用于在自第一转发模块转发给所述转换模块的下行数据帧,经过所述转换模块转换,以及OLT的处理后,得到处理结果,所述处理结果正确,并且,在自第四转发模块转发给所述转换模块的下行数据帧,经过所述转换模块转换,以及待测模块的处理后,得到处理结果,所述处理结果不正确时,确定自所述第一转发模块到第四转发模块之间存在故障。In the case where the loopback module includes a first forwarding module and a fourth forwarding module, the judgment module is specifically configured to convert the downlink data frame forwarded from the first forwarding module to the conversion module by the conversion module , and after the processing of the OLT, a processing result is obtained, the processing result is correct, and, after the downlink data frame forwarded from the fourth forwarding module to the conversion module is converted by the conversion module and processed by the module to be tested , to obtain a processing result, and when the processing result is incorrect, it is determined that there is a fault between the first forwarding module and the fourth forwarding module.
在所述环回模块包括其他转发模块组合的情况下,类似,不再赘述。In the case where the loopback module includes other combinations of forwarding modules, it is similar and will not be described again.
在待测模块为ONU时,情况类似,不再赘述。When the module to be tested is an ONU, the situation is similar and will not be repeated here.
参见图4,在所述测试装置的实施例二中,所述第一转发模块可以具体包括第一选路器131,所述测试装置还可以进一步包括第二选路器132,Referring to FIG. 4, in the second embodiment of the test device, the first forwarding module may specifically include a
所述第一选路器131,用于在OLT运行正常业务时,选通到ONU或ONT的通道,将来自OLT的下行数据帧向ONU或ONT发送,并且,在OLT处于测试状态时,选通到所述OLT输出的下行数据帧的传输线路的通道,通过与所述OLT输出的下行数据帧耦合,从而得到所述OLT输出的下行数据帧,并将所述OLT输出的下行数据帧向所述转换模块发送;以及,在OLT处于测试状态并且第二选路器选通到第一选路器的通道时,选通与第二选路器连通的通道,接收第二选路器的下行数据帧,并将所述下行数据帧向所述转换模块发送;The
所述第二选路器132,用于在OLT处于测试状态时,选通到第一选路器的通道,将从第二转发模块,或第三转发模块,或第四转发模块向所述转换模块发送的下行数据帧,转发给所述第一选路器131;并且,在OLT运行正常业务时,选通到OLT的通道,将来自ONU或ONT的上行数据帧向OLT发送。The
其中,所述第二选路器可以与OLT一起集成在OLT MAC芯片上。Wherein, the second route selector can be integrated with the OLT on the OLT MAC chip.
在所述测试装置的实施例一和实施例二中,所述业务适配模块11或转换模块21可以具体包括ONU MAC芯片。In the first and second embodiments of the test device, the
另外,在测试多个待测模块时,所述多个待测模块可以共享使用一个业务适配模块或转换模块,这样,可以降低测试成本。In addition, when testing multiple modules to be tested, the multiple modules to be tested can share a business adaptation module or conversion module, thus reducing the testing cost.
参见图5,在所述测试装置的实施例一和实施例二中,在所述待测模块为OLT的情况下,所述业务适配模块或转换模块可以具体包括:Referring to Fig. 5, in the first embodiment and the second embodiment of the test device, in the case that the module to be tested is an OLT, the service adaptation module or conversion module may specifically include:
提取模块111,用于获得下行数据帧,并提取所述下行数据帧的净荷(payload);An
构造模块112,用于根据多点协议标准,构造携带所述净荷,并且OLT也可以识别的上行数据帧,并将所述上行数据帧向OLT发送。The
其中,所述多点协议标准包括G.984.x协议标准或者IEEE-802.3ah协议标准等。Wherein, the multipoint protocol standard includes the G.984.x protocol standard or the IEEE-802.3ah protocol standard.
G.984.x协议标准是指:SERIES G:TRANSMISSION SYSTEMS AND MEDIA,DIGITAL SYSTEMS AND NETWORKS Digital sections and digital line system-Optical line systems for local and access networks Gigabit-capable Passive OpticalNetworks(GPON);G.984.x protocol standard refers to: SERIES G: TRANSMISSION SYSTEMS AND MEDIA, DIGITAL SYSTEMS AND NETWORKS Digital sections and digital line system-Optical line systems for local and access networks Gigabit-capable Passive OpticalNetworks (GPON);
翻译为中文为:传输系统和媒质-数字系统和网络-数字部分和数字线系统-本地接入网的光线路系统千兆比特无源光网络(G-PON)。Translated into Chinese as: transmission system and medium - digital system and network - digital part and digital line system - optical line system of local access network gigabit passive optical network (G-PON).
IEEE-802.3ah协议标准是指:IEEE Standard for Information technologyTelecommunications and information exchange between systems Local andmetropolitan area networks Specific requirements Part 3:Carrier Sense Multiple Accesswith Collision Detection(CSMA/CD)Access Method and Physical LayerSpecifications Amendment:Media Access Control Parameters,Physical Layers,andManagement Parameters for Subscriber Access Networks;IEEE-802.3ah协议标准是指:IEEE Standard for Information technologyTelecommunications and information exchange between systems Local andmetropolitan area networks Specific requirements Part 3:Carrier Sense Multiple Accesswith Collision Detection(CSMA/CD)Access Method and Physical LayerSpecifications Amendment:Media Access Control Parameters , Physical Layers, and Management Parameters for Subscriber Access Networks;
翻译为中文为:信息技术-系统间通信和信息交换-局域网和城域网特定要求-第3部分:CSMA/CD接入方式和物理层规范-增补文件:用于用户接入网的媒质接入控制参数、物理层和管理参数。Translated into Chinese as: Information Technology - Intersystem Communication and Information Exchange - Specific Requirements for Local Area Networks and Metropolitan Area Networks - Part 3: CSMA/CD Access Modes and Physical Layer Specifications - Supplementary Documents: Media Interfaces for User Access Networks Input control parameters, physical layer and management parameters.
进一步地,参见图6,所述构造模块,可以具体包括:Further, referring to FIG. 6, the construction module may specifically include:
帧头信息构造模块1121,用于根据多点协议标准,扮作ONU或ONT,通过与OLT的信息交互,获得构造信息,并根据所述构造信息构造上行数据帧的帧头信息,或者,根据多点协议标准,以及预设的构造信息,构造上行数据帧的帧头信息。其中,所述构造信息可以包括以下信息中的一种或多种:终端识别信息,消息字段,带宽状态信息,以及数据帧格式信息;The frame header information construction module 1121 is used to act as an ONU or ONT according to the multi-point protocol standard, obtain the construction information by interacting with the information of the OLT, and construct the frame header information of the uplink data frame according to the construction information, or, according to The multipoint protocol standard and the preset construction information construct the frame header information of the uplink data frame. Wherein, the configuration information may include one or more of the following information: terminal identification information, message fields, bandwidth status information, and data frame format information;
发送模块1122,用于将所述净荷和所述帧头信息组成上行数据帧向OLT发送。A sending module 1122, configured to compose the payload and the frame header information into an uplink data frame and send it to the OLT.
其中,所述终端识别信息包括ONU终端ID,或者SN(Serial Number,序列号),所述ONU终端ID或者SN,可以根据多点协议标准,扮作ONU,通过与OLT的信息交互,由OLT分配得到;或者,也可以根据多点协议标准,预先设置OLT可以识别的ONU终端ID,或者SN。Wherein, the terminal identification information includes an ONU terminal ID, or SN (Serial Number, serial number), and the ONU terminal ID or SN can act as an ONU according to a multipoint protocol standard, and through information interaction with the OLT, the OLT Or, according to the multipoint protocol standard, the ONU terminal ID or SN that can be recognized by the OLT can also be preset.
所述消息字段,为多点协议标准中,ONU与OLT进行协商或者交换信息的字段,例如:握手消息、或者告警消息、或者终端状态信息,或者有关测量ONU与某一位置之间的距离的信息等。The message field is a field for negotiating or exchanging information between the ONU and the OLT in the multipoint protocol standard, such as: handshake messages, or alarm messages, or terminal status information, or information about measuring the distance between the ONU and a certain location information etc.
所述带宽状态信息,是指上行带宽状态信息,可以根据多点协议标准,扮作ONU,通过与OLT进行信息交互获得,或者,根据也可以根据多点协议标准,预先设置OLT可以识别的带宽状态信息;The bandwidth status information refers to the uplink bandwidth status information, which can be obtained through information interaction with the OLT by acting as an ONU according to the multipoint protocol standard, or pre-set the bandwidth that the OLT can recognize according to the multipoint protocol standard status information;
所述数据帧格式信息,包括前导码,前导码、界定符、校验信息等,可以根据多点协议标准预先进行设置,或者也可以根据多点协议标准动态生成。The data frame format information, including preamble, preamble, delimiter, check information, etc., can be pre-set according to the multipoint protocol standard, or can also be dynamically generated according to the multipoint protocol standard.
另外,参阅图7,所述转换还可以进一步包括存储模块;In addition, referring to FIG. 7, the conversion may further include a storage module;
所述存储模块113,用于存储所述根据多点协议标准预先设置的构造信息。The
参阅图8,本发明还提供一种测试方法的实施例,包括:Referring to Fig. 8, the present invention also provides an embodiment of a test method, including:
步骤11,向待测模块输入测试数据;
步骤12,将待测模块根据所述测试数据输出的下行数据帧,转换为上行数据帧,并将所述上行数据帧向所述待测模块发送;或者,将从待测模块根据所述测试数据输出的上行数据帧,转换为下行数据帧,并将所述下行数据帧向所述待测模块发送;
步骤13,对所述待测模块根据所述经过转换得到的上行数据帧或下行数据帧的进行处理的处理结果,进行检查,确定所述待测模块的状态。Step 13: Check the module under test according to the processed processing result of the converted uplink data frame or downlink data frame, and determine the status of the module under test.
通过将待测模块输出的上行数据帧或下行数据帧进行转换后环回,从而实现了对待测模块的环回测试,解决了对上下行数据帧传送的方式不同,上下行数据帧遵循的协议不统一的设备的测试的问题。By converting the uplink data frame or downlink data frame output by the module to be tested and looping back, the loopback test of the module to be tested is realized, and the method of transmitting the uplink and downlink data frames is different, and the protocol followed by the uplink and downlink data frames The problem with the testing of non-uniform devices.
参阅图9,所述待测模块为OLT的情况下,所述步骤12,具体包括:Referring to Fig. 9, in the case where the module to be tested is an OLT, the
步骤121,获得下行数据帧,并提取所述下行数据帧的净荷(payload);
步骤122,根据多点协议标准,构造携带所述净荷,并且OLT也可以识别的上行数据帧,并将所述上行数据帧向OLT发送。Step 122: Construct an uplink data frame carrying the payload according to the multipoint protocol standard and that can be identified by the OLT, and send the uplink data frame to the OLT.
参阅图10,其中,所述步骤122,可以具体包括:Referring to Fig. 10, wherein, the
步骤1221,根据多点协议标准,扮作ONU或ONT,通过与OLT的信息交互,获得构造信息,并根据所述构造信息构造上行数据帧的帧头信息,或者,根据多点协议标准,以及预设的构造信息,构造上行数据帧的帧头信息。其中,所述构造信息可以包括以下信息中的一种或多种:终端识别信息,消息字段,带宽状态信息,以及数据帧格式信息;Step 1221, according to the multipoint protocol standard, pretending to be an ONU or ONT, through information interaction with the OLT, to obtain configuration information, and construct the frame header information of the uplink data frame according to the configuration information, or, according to the multipoint protocol standard, and The preset construction information is used to construct the frame header information of the uplink data frame. Wherein, the configuration information may include one or more of the following information: terminal identification information, message fields, bandwidth status information, and data frame format information;
步骤1222,将所述净荷信息和所述帧头信息组成上行数据帧进行发送。Step 1222, compose the payload information and the frame header information into an uplink data frame and send it.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
以上所述仅为本发明的几个实施例,本领域的技术人员依据申请文件公开的可以对本发明进行各种改动或变型而不脱离本发明的精神和范围。The above descriptions are only a few embodiments of the present invention, and those skilled in the art can make various changes or modifications to the present invention according to the disclosure of the application documents without departing from the spirit and scope of the present invention.
Claims (18)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200810241618A CN101753211A (en) | 2008-12-18 | 2008-12-18 | A kind of test method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200810241618A CN101753211A (en) | 2008-12-18 | 2008-12-18 | A kind of test method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN101753211A true CN101753211A (en) | 2010-06-23 |
Family
ID=42479681
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200810241618A Pending CN101753211A (en) | 2008-12-18 | 2008-12-18 | A kind of test method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101753211A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102917285A (en) * | 2012-10-30 | 2013-02-06 | 华为机器有限公司 | Method and device for testing Ethernet passive optical network devices |
| CN104836617A (en) * | 2015-05-29 | 2015-08-12 | 杭州华三通信技术有限公司 | Fault positioning method and device |
| WO2016127759A1 (en) * | 2015-02-12 | 2016-08-18 | 中兴通讯股份有限公司 | Signal processing method and apparatus, and passive optical fibre concentrator |
| CN107947851A (en) * | 2017-11-13 | 2018-04-20 | 深圳市飞鸿光电子有限公司 | The rogue's optical network unit detection method and system of a kind of passive optical network |
| CN111064553A (en) * | 2019-12-12 | 2020-04-24 | 苏州浪潮智能科技有限公司 | Method, device and storage medium for loopback diagnosis of switch and its management network port |
| CN115022215A (en) * | 2022-05-25 | 2022-09-06 | 四川九州电子科技股份有限公司 | Method and system for testing MAC address of optical network unit |
-
2008
- 2008-12-18 CN CN200810241618A patent/CN101753211A/en active Pending
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102917285A (en) * | 2012-10-30 | 2013-02-06 | 华为机器有限公司 | Method and device for testing Ethernet passive optical network devices |
| CN102917285B (en) * | 2012-10-30 | 2015-05-27 | 华为机器有限公司 | Method and device for testing Ethernet passive optical network devices |
| WO2016127759A1 (en) * | 2015-02-12 | 2016-08-18 | 中兴通讯股份有限公司 | Signal processing method and apparatus, and passive optical fibre concentrator |
| CN104836617A (en) * | 2015-05-29 | 2015-08-12 | 杭州华三通信技术有限公司 | Fault positioning method and device |
| CN104836617B (en) * | 2015-05-29 | 2017-08-11 | 新华三技术有限公司 | fault locating method and device |
| CN107947851A (en) * | 2017-11-13 | 2018-04-20 | 深圳市飞鸿光电子有限公司 | The rogue's optical network unit detection method and system of a kind of passive optical network |
| CN111064553A (en) * | 2019-12-12 | 2020-04-24 | 苏州浪潮智能科技有限公司 | Method, device and storage medium for loopback diagnosis of switch and its management network port |
| CN115022215A (en) * | 2022-05-25 | 2022-09-06 | 四川九州电子科技股份有限公司 | Method and system for testing MAC address of optical network unit |
| CN115022215B (en) * | 2022-05-25 | 2023-06-02 | 四川九州电子科技股份有限公司 | Method and system for testing MAC address of optical network unit |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI455501B (en) | Methods and apparatus for extending mac control messages in epon | |
| US7876762B2 (en) | Ethernet service configuration device, method, and system in passive optical network | |
| KR100640328B1 (en) | Discovery of OEM Function in Ethernet Passive Fluorescence Subscriber Network | |
| CN101971537B (en) | Processing method of optical line terminal OLT, optical line terminal equipment and PON network | |
| US20070025734A1 (en) | PON system and logical link allocation method | |
| CN108370270B (en) | Dynamic bandwidth allocation method and device and passive optical network system | |
| JP2007174641A (en) | TDMAPONOLT system for broadcasting services | |
| US10798472B2 (en) | Data transmission method, data receiving method, optical line terminal and optical network unit | |
| CN113038304B (en) | Data processing method, optical line terminal, optical network unit and system | |
| CN101753211A (en) | A kind of test method and device | |
| US9615153B2 (en) | System and method for applying an extended multipoint protocol to wireless access systems | |
| EP2949129B1 (en) | Transmission prioritization based on polling time | |
| CN102065344A (en) | Data transmission method and gigabit-capable passive optical network system | |
| CN100417082C (en) | Method for Terminal Management of Ethernet-Based Passive Optical Network | |
| CN118870233A (en) | A message transmission method, a main device, an OLT and an optical communication system | |
| US6801497B1 (en) | Method to provide a management channel, a line terminator, a first network terminator card and a second network terminator card realizing such a method and an access network | |
| US8041215B2 (en) | ONT discovery in a DWDM hybrid PON LT configuration | |
| CN104396162A (en) | Devices and methods for flow control of messages in passive optical network (PON) and methods therein | |
| US20150195039A1 (en) | System and method for interchanging data in a hybrid ethernet-based passive optical network | |
| WO2014166186A1 (en) | Method, apparatus and system for multicast service transfer between fiber and copper cable | |
| CN101453672A (en) | Optical network terminal, port speed limiting attribute configuration method and packet process method | |
| CN104137444A (en) | Wavelength identification method, device, and system | |
| WO2016095381A1 (en) | Service transmission method and device | |
| CN101162947B (en) | Method of implementing passive optical network system multicast service safety transmission | |
| EP2667632A2 (en) | Method and apparatus for extending multipoint control protocols to mixed media access systems |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20100623 |