[go: up one dir, main page]

CN103888303A - Method and device for controlling data messages - Google Patents

Method and device for controlling data messages Download PDF

Info

Publication number
CN103888303A
CN103888303A CN201410159520.7A CN201410159520A CN103888303A CN 103888303 A CN103888303 A CN 103888303A CN 201410159520 A CN201410159520 A CN 201410159520A CN 103888303 A CN103888303 A CN 103888303A
Authority
CN
China
Prior art keywords
port
data
read
data message
data buffer
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
Application number
CN201410159520.7A
Other languages
Chinese (zh)
Inventor
邵炜平
马平
徐志强
卢业
张磊
高钧利
徐伟东
张倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HANGZHOU CHENXIAO TECHNOLOGIES CO LTD
State Grid Zhejiang Electric Power Co Ltd
Shaoxing Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
State Grid Corp of China SGCC
Original Assignee
HANGZHOU CHENXIAO TECHNOLOGIES CO LTD
State Grid Zhejiang Electric Power Co Ltd
Shaoxing Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
State Grid Corp of China SGCC
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 HANGZHOU CHENXIAO TECHNOLOGIES CO LTD, State Grid Zhejiang Electric Power Co Ltd, Shaoxing Power Supply Co of State Grid Zhejiang Electric Power Co Ltd, State Grid Corp of China SGCC filed Critical HANGZHOU CHENXIAO TECHNOLOGIES CO LTD
Priority to CN201410159520.7A priority Critical patent/CN103888303A/en
Publication of CN103888303A publication Critical patent/CN103888303A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

本发明公开了一种数据报文的控制方法和装置,应用于光网络分配单元中,所述光网络分配单元包括用于接收数据报文的用户口、用于缓存数据报文的数据缓存器、用于发送从所述数据缓存器中读取的数据报文的PON口以及备用端口;该方法包括:检测所述光网络分配单元的PON口是否掉线;若是,将从所述数据缓存器中读取的数据报文通过所述备用端口发送出去;统计通过所述备用端口发送的数据报文;若否,将从所述数据缓存器中读取的数据报文通过所述PON口发送,经由所述无源光分路器至所述光线路终端,本发明提高了网络故障定的准确度,使得网络可以快速恢复。

The invention discloses a data message control method and device, which are applied to an optical network distribution unit, and the optical network distribution unit includes a user port for receiving data messages and a data buffer for caching data messages . A PON port and a spare port for sending data messages read from the data buffer; the method includes: detecting whether the PON port of the optical network distribution unit is offline; The data message read in the device is sent out through the standby port; the data message sent through the standby port is counted; if not, the data message read from the data buffer is passed through the PON port Sending to the optical line terminal through the passive optical splitter, the present invention improves the accuracy of network fault diagnosis, so that the network can be restored quickly.

Description

一种数据报文的控制方法和装置A data message control method and device

技术领域technical field

本发明涉及以太网无源光网络技术领域,更具体的说是涉及一种数据报文的控制方法和装置。The present invention relates to the technical field of Ethernet passive optical network, and more specifically relates to a data message control method and device.

背景技术Background technique

以太网无源光网络(Ethernet Passive Optical Network,EPON)系统是一种点到多点的网络系统,在该网络系统中,多个光网络分配单元(OpticalNetwork Units,ONU)通过无源光分路器与一个光线路终端(Optical LineTerminal,OLT)相连。其中,ONU主要包括用户口、PON口以及数据缓存器,在工作状态下,ONU可以从用户口接收数据报文并写入到数据缓存器中,从PON口获取OLT为之分配的时间窗口,并在该时间窗口上,将从数据缓存器中读取的数据报文从PON口发送至OLT。Ethernet Passive Optical Network (EPON) system is a point-to-multipoint network system, in which multiple optical network distribution units (Optical Network Units, ONU) pass passive optical branching The device is connected to an Optical Line Terminal (OLT). Among them, the ONU mainly includes a user port, a PON port and a data buffer. In the working state, the ONU can receive data packets from the user port and write them into the data buffer, and obtain the time window allocated by the OLT from the PON port. And in the time window, send the data message read from the data buffer to the OLT from the PON port.

但是,当PON口掉线时,ONU将不能把数据缓存器中的数据报文通过PON口发送至OLT,此时,由于ONU的数据缓存器还在源源不断的写入数据报文,使得当PON口再次上线时,数据缓存器中的已有数据报文已为无效数据报文,若仍将这些数据报文从PON口发送至OLT,将会占用线路上的额外带宽。However, when the PON port is offline, the ONU cannot send the data message in the data buffer to the OLT through the PON port. At this time, because the data buffer of the ONU is still continuously writing data messages, the current When the PON port goes online again, the existing data packets in the data buffer are invalid data packets. If these data packets are still sent from the PON port to the OLT, additional bandwidth on the line will be occupied.

因此,在现有技术中,当检测到PON口掉线时,ONU会将写入数据缓存器中的数据报文全部清空并关闭用户口以禁止数据报文继续写入。而在网络系统中,一般需要根据各个节点处所统计的数据报文进行网络故障的定位,而采用上述方法将使得在PON口以及用户口的节点上所统计的数据报文不精确,从而导致网络故障的定位不准确,影响网络的快速恢复。Therefore, in the prior art, when it is detected that the PON port is disconnected, the ONU will clear all the data packets written in the data buffer and close the user port to prohibit further writing of the data packets. However, in a network system, it is generally necessary to locate network faults based on the statistics of data packets at each node, and the use of the above method will make the statistics of data packets on the nodes of the PON port and user port inaccurate, resulting in network failures. The location of the fault is not accurate, which affects the rapid recovery of the network.

发明内容Contents of the invention

有鉴于此,本发明提供了一种数据报文的控制方法和装置,以解决现有技术中,在PON口或用户口的节点上所统计的数据报文个数不精确,从而导致网络故障的定位不准确,影响网络的快速恢复的技术问题。In view of this, the present invention provides a data packet control method and device to solve the problem of inaccurate statistics of the number of data packets on the nodes of the PON port or user port in the prior art, resulting in network failures The positioning is inaccurate, and it is a technical problem that affects the rapid recovery of the network.

为实现上述目的,本发明提供如下技术方案:To achieve the above object, the present invention provides the following technical solutions:

一种数据报文的控制方法,应用于光网络分配单元中,所述光网络分配单元包括用于接收数据报文的用户口、用于缓存数据报文的数据缓存器、用于发送从所述数据缓存器中读取的数据报文的PON口以及备用端口;A method for controlling data messages, which is applied to an optical network distribution unit, and the optical network distribution unit includes a user port for receiving data messages, a data buffer for buffering data messages, and a data buffer for sending The PON port and the standby port of the data message read in the data buffer;

该方法包括:The method includes:

检测所述光网络分配单元的PON口是否掉线;Detect whether the PON port of the optical network distribution unit is offline;

若是,将从所述数据缓存器中读取的数据报文通过所述备用端口发送出去;If yes, send the data message read from the data buffer through the standby port;

统计通过所述备用端口发送的数据报文;Counting data packets sent through the standby port;

若否,将从所述数据缓存器中读取的数据报文通过所述PON口发送,经由所述无源光分路器至所述光线路终端。If not, send the data message read from the data buffer through the PON port to the optical line terminal via the passive optical splitter.

优选的,所述统计通过所述备用端口发送的数据报文之后,还包括:Preferably, after the data packets sent through the standby port, the statistics further include:

检测所述光网络分配单元的PON口是否上线;Detect whether the PON port of the optical network distribution unit is online;

若是,则将从所述数据缓存器中读取的数据报文由所述备用端口发送出去切换至由所述PON口发送以经由所述无源光分路器至所述光线路终端;If so, the data message read from the data buffer is sent out from the standby port and switched to be sent by the PON port so as to pass through the passive optical splitter to the optical line terminal;

若否,则保持将从所述数据缓存器中读取的数据报文通过所述备用端口发送出去。If not, keep sending the data message read from the data buffer through the standby port.

优选的,所述将从所述数据缓存器中读取的数据报文由所述备用端口发送出去切换至由所述PON口发送以经由所述无源光分路器至所述光线路终端之前,还包括:Preferably, the data message read from the data buffer is switched from being sent by the standby port to being sent by the PON port to the optical line terminal via the passive optical splitter Previously, also included:

确定读取到所述数据缓存器中满足预设条件的所有数据报文,且所读取的数据报文全部通过所述备用端口发送出去。It is determined that all data packets satisfying the preset condition are read in the data buffer, and all the read data packets are sent out through the standby port.

优选的,所述确定读取到所述数据缓存中满足预设条件的所有数据报文,具体为:Preferably, the determination reads all the data packets meeting the preset conditions in the data cache, specifically:

检测写入所述数据缓存器的数据报文在所述PON口上线时的写地址;Detecting the write address of the data message written into the data buffer when the PON port goes online;

确定读取所述数据缓存器的数据报文的读地址与所述写地址相同。It is determined that the read address of the data message for reading the data buffer is the same as the write address.

优选的,检测所述光网络分配单元的PON口是否掉线,具体包括:Preferably, detecting whether the PON port of the optical network distribution unit is offline includes:

检测所述光网络分配单元的PON口是否未接收到光信号。Detecting whether the PON port of the optical network distribution unit does not receive an optical signal.

一种数据报文的控制装置,应用于光网络分配单元中,所述光网络分配单元包括用于接收数据报文的用户口、用于缓存数据报文的数据缓存器、用于发送从所述数据缓存器中读取的数据报文的PON口以及备用端口;A control device for data messages, which is applied to an optical network distribution unit, and the optical network distribution unit includes a user port for receiving data messages, a data buffer for buffering data messages, and a data buffer for sending The PON port and the standby port of the data message read in the data buffer;

该装置包括:The unit includes:

第一检测单元,用于检测所述光网络分配单元的PON口是否掉线;The first detection unit is used to detect whether the PON port of the optical network distribution unit is offline;

第一发送单元,用于在检测到所述光网络分配单元掉线时,将从所述数据缓存器中读取的数据报文通过所述备用端口发送出去;The first sending unit is configured to send the data message read from the data buffer through the backup port when it is detected that the optical network distribution unit is offline;

第一统计单元,用于统计通过所述备用端口发送的数据报文;a first statistical unit, configured to count data packets sent through the standby port;

第二发送单元,用于在检测到所述光网络分配单元未掉线时,将从所述数据缓存器中读取的数据报文通过所述PON口发送,经由所述无源光分路器至所述光线路终端。The second sending unit is configured to send the data message read from the data buffer through the PON port through the passive optical branch when it is detected that the optical network distribution unit is not offline device to the optical line terminal.

优选的,还包括:Preferably, it also includes:

第二检测单元,用于检测所述光网络分配单元的PON口是否上线;The second detection unit is used to detect whether the PON port of the optical network distribution unit is online;

第一切换单元,用于在检测到所述光网络分配单元的PON口上线时,将从所述数据缓存器中读取的数据报文由所述备用端口发送出去切换至由所述PON口发送以经由所述无源光分路器至所述光线路终端;The first switching unit is used to send the data message read from the data buffer from the standby port to switch to the PON port when detecting that the PON port of the optical network distribution unit is online. sending to the optical line terminal via the passive optical splitter;

第一保持单元,用于在检测到所述光网络分配单元的PON口未上线时,保持将从所述数据缓存器中读取的数据报文通过所述备用端口发送出去。The first holding unit is configured to keep sending the data message read from the data buffer through the standby port when detecting that the PON port of the optical network distribution unit is not online.

优选的,还包括:Preferably, it also includes:

第一确定单元,用于确定读取到所述数据缓存器中满足预设条件的所有数据报文,且所读取的数据报文全部通过所述备用端口发送出去。The first determining unit is configured to determine all the data packets that meet the preset conditions read in the data buffer, and all the read data packets are sent out through the standby port.

优选的,所述第一确定单元包括:Preferably, the first determination unit includes:

第一检测模块,用于检测写入所述数据缓存器的数据报文在所述PON口上线时的写地址;The first detection module is used to detect the write address of the data message written into the data buffer when the PON port goes online;

第一确定模块,用于确定读取所述数据缓存器的数据报文的读地址与所述写地址相同;A first determination module, configured to determine that the read address of the data message for reading the data buffer is the same as the write address;

第一发送模块,用于将所读取的数据报文全部通过所述备用端口发送出去。The first sending module is configured to send all the read data packets through the standby port.

优选的,所述第一检测单元具体用于检测所述光网络分配单元的PON口是否未接收到光信号。Preferably, the first detection unit is specifically configured to detect whether the PON port of the optical network distribution unit has not received an optical signal.

经由上述的技术方案可知,与现有技术相比,本发明公开提供了一种数据报文的控制方法,可以应用于光网络分配单元中,该光网络分配单元包括备用端口,在该方法中,在检测到所述光网络分配单元的PON口掉线时,可以将从数据缓存器中读取的数据报文通过备用端口发送出去,并统计通过所述备用端口发送的数据报文,从而可以根据在备用端口处所统计的数据报文定位网络故障,且由于无需关闭用户口,还可以根据用户口处所统计的数据报文定位网络故障,因此,本发明提高了网络故障定的准确度,使得网络可以快速恢复。It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a method for controlling data packets, which can be applied to an optical network distribution unit, and the optical network distribution unit includes a spare port. In the method , when detecting that the PON port of the optical network distribution unit is offline, the data message read from the data buffer can be sent out through the backup port, and the data messages sent through the backup port can be counted, so that The network fault can be located according to the data packets counted at the standby port, and since there is no need to close the user port, the network fault can also be located according to the data packets counted at the user port, therefore, the present invention improves the accuracy of network fault determination, Allows the network to recover quickly.

附图说明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 It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为本发明公开的一种EPON网络系统的结构示意图;Fig. 1 is the structural representation of a kind of EPON network system disclosed by the present invention;

图2为本发明公开的一种数据报文的控制方法的一个实施例的流程示意图;FIG. 2 is a schematic flow diagram of an embodiment of a method for controlling data packets disclosed in the present invention;

图3为本发明公开的一种数据报文的控制方法的另一实施例的流程示意图;FIG. 3 is a schematic flowchart of another embodiment of a method for controlling data packets disclosed in the present invention;

图4为本发明公开的一种数据报文的控制方法的又一实施例的流程示意图;FIG. 4 is a schematic flowchart of another embodiment of a method for controlling data packets disclosed in the present invention;

图5为本发明公开的一种数据报文的控制装置的一个实施例的结构示意图;FIG. 5 is a schematic structural diagram of an embodiment of a data message control device disclosed in the present invention;

图6为本发明公开的一种数据报文的控制装置的另一实施例的结构示意图;FIG. 6 is a schematic structural diagram of another embodiment of a data message control device disclosed in the present invention;

图7为本发明公开的一种数据报文的控制装置的又一实施例的结构示意图。Fig. 7 is a schematic structural diagram of another embodiment of a device for controlling data packets disclosed in the present invention.

具体实施方式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 making creative efforts belong to the protection scope of the present invention.

本发明实施例公开了一种数据报文的控制方法,该方法可以应用于光网络分配单元中;The embodiment of the present invention discloses a data message control method, which can be applied to an optical network distribution unit;

其中,光网络分配单元为EPON(Ethernet Passive Optical Network,以太网无源光网络)系统的组成部分,参见图1,示出了EPON系统的结构示意图;Wherein, the optical network distribution unit is an integral part of the EPON (Ethernet Passive Optical Network, Ethernet Passive Optical Network) system, see Figure 1, which shows a schematic structural diagram of the EPON system;

由图1可以看出,该系统可以包括ONU(Optical Network Units,光网络分配单元)组100、无源光分路器200以及OLT(Optical Line Terminal,光线路终端)300;ONU组100包括ONU1,ONU2,…,ONUn;As can be seen from Fig. 1, the system can include ONU (Optical Network Units, optical network distribution unit) group 100, passive optical splitter 200 and OLT (Optical Line Terminal, optical line terminal) 300; ONU group 100 includes ONU1 ,ONU2,...,ONUn;

其中,每一ONU均可以包括用于接收数据报文的用户口、用于缓存数据报文的数据缓存器、用于发送从所述数据缓存器中读取的数据报文的PON口以及备用端口。Wherein, each ONU can include a user port for receiving data messages, a data buffer for buffering data messages, a PON port for sending data messages read from the data buffer, and a spare port.

需要说明的是,该EPON网络系统中,在其下行方向上,OLT可以通过无源光分路器向每一ONU发送数据报文,为一点对多点网络;而在上行方向上,每一ONU均通过PON口经由无源光分路器向同一OLT发送数据报文,多个ONU共享无源光分路器与OLT之间的同一根光纤,为多点对一点网络。It should be noted that in the EPON network system, in the downstream direction, the OLT can send data packets to each ONU through a passive optical splitter, which is a point-to-multipoint network; and in the upstream direction, each The ONUs all send data packets to the same OLT through the PON port through the passive optical splitter, and multiple ONUs share the same optical fiber between the passive optical splitter and the OLT, which is a multipoint-to-point network.

图2公开了一种数据报文的控制方法的一个实施例的流程示意图,如图2所示,该方法可以包括以下步骤:Fig. 2 discloses a schematic flow chart of an embodiment of a data packet control method, as shown in Fig. 2, the method may include the following steps:

步骤201:检测光网络分配单元的PON口是否掉线;若是,进入步骤202;若否,进入步骤204;Step 201: Detect whether the PON port of the optical network distribution unit is offline; if so, enter step 202; if not, enter step 204;

其中,光网络分配单元的PON口掉线具体是指光网络分配单元的PON口不能接收到光信号,相应的,步骤201具体可以为检测光网络分配单元的PON口是否未接收到光信号,若是,进入步骤202;若否,进入步骤204。Wherein, the disconnection of the PON port of the optical network distribution unit specifically means that the PON port of the optical network distribution unit cannot receive an optical signal. Correspondingly, step 201 may specifically detect whether the PON port of the optical network distribution unit has not received an optical signal, If yes, go to step 202; if not, go to step 204.

其中,PON口掉线的原因有多种,如光网络分配单元与光线路终端之间的光纤断开、对端的发送光模块出现故障、本端的接收光模块出现故障、对端设备掉电等等。Among them, there are many reasons for the disconnection of the PON port, such as the disconnection of the optical fiber between the optical network distribution unit and the optical line terminal, failure of the sending optical module at the opposite end, failure of the receiving optical module at the local end, power failure of the opposite end, etc. wait.

步骤202:将从数据缓存器中读取的数据报文通过备用端口发送出去;Step 202: Send the data message read from the data buffer through the standby port;

其中,当光网络分配单元的PON口掉线后,ONU将不能把从数据缓存器中读取的数据报文通过PON口发送至OLT,在这种情况下,ONU的用户口还在源源不断的接收数据报文,所接收的数据报文也在源源不断的写入数据缓存器中,而写入数据缓存器中的数据报文已为无效报文,因此,ONU可以继续从数据缓存器中读取数据报文,并将所读取的数据报文通过备用端口发送出去,无需关闭用户口。Among them, when the PON port of the optical network distribution unit is offline, the ONU will not be able to send the data message read from the data buffer to the OLT through the PON port. In this case, the user port of the ONU is still flowing received data packets, the received data packets are also continuously written into the data buffer, and the data packets written into the data buffer are invalid messages, therefore, the ONU can continue to read from the data buffer Read the data message in and send the read data message through the standby port without closing the user port.

需要说明的是,由备用端口发送出去的数据报文并不会传输至光线路终端,而是被直接丢弃。It should be noted that the data packets sent by the standby port are not transmitted to the optical line terminal, but are directly discarded.

步骤203:统计通过所述备用端口发送的数据报文;Step 203: Counting the data packets sent through the standby port;

其中,统计通过备用端口发送的数据报文具体可以为:统计通过备用端口发送的数据报文的个数;当然,还可以统计每一数据报文的属性信息,如每一数据包的长度等等;最终,使得可以根据该统计结果进行网络故障定位。Wherein, counting the data packets sent through the standby port can specifically be: counting the number of data packets sent through the standby port; of course, it is also possible to count the attribute information of each data packet, such as the length of each data packet, etc. and so on; finally, network fault location can be performed according to the statistical results.

步骤204:将从所述数据缓存器中读取的数据报文通过所述PON口发送,经由所述无源光分路器至光线路终端。Step 204: Send the data message read from the data buffer through the PON port to an optical line terminal via the passive optical splitter.

当光网络分配单元的PON口没有掉线时,说明ONU可以将从数据缓存器中读取的数据报文通过PON口发送,经由无源光分路器至OLT。When the PON port of the optical network distribution unit is not disconnected, it means that the ONU can send the data message read from the data buffer through the PON port to the OLT through the passive optical splitter.

在本发明实施例中,在检测到所述光网络分配单元的PON口掉线时,可以将从数据缓存器中读取的数据报文通过备用端口发送出去,并统计通过所述备用端口发送的数据报文,从而可以根据在备用端口处所统计的数据报文定位网络故障,且由于无需关闭用户口,还可以根据用户口处所统计的数据报文定位网络故障,因此,本发明提高了网络故障定的准确度,使得网络可以快速恢复。In the embodiment of the present invention, when it is detected that the PON port of the optical network distribution unit is offline, the data message read from the data buffer can be sent out through the backup port, and the statistics sent through the backup port can be counted. data packets, so that network faults can be located according to the data packets counted at the standby port, and because there is no need to close the user port, network faults can also be located according to the data packets counted at the user port. Therefore, the present invention improves network The accuracy of fault determination enables the network to recover quickly.

本发明另一实施例还公开了一种数据报文的控制方法,如图3所示,该方法可以包括以下步骤:Another embodiment of the present invention also discloses a data message control method, as shown in Figure 3, the method may include the following steps:

步骤301:检测光网络分配单元的PON口是否掉线;若是,进入步骤302,若否,进入步骤306;Step 301: Detect whether the PON port of the optical network distribution unit is offline; if so, enter step 302, if not, enter step 306;

步骤302:将从数据缓存器中读取的数据报文通过备用端口发送出去;Step 302: Send the data message read from the data buffer through the standby port;

步骤303:统计通过备用端口发送的数据报文;Step 303: Count the data packets sent through the standby port;

步骤304:检测光网络分配单元的PON口是否上线;若是,进入步骤305,若否,返回步骤302;Step 304: Detect whether the PON port of the optical network distribution unit is online; if so, enter step 305, if not, return to step 302;

其中,在光网络分配单元的PON口掉线后,数据缓存器中的数据报文已为无效报文,在这种情况下,可以通过备用端口将已为无效报文的数据报文发送出去;而当光网络分配单元的PON口上线后再写入数据缓存器中的数据报文则为有效报文,而这些有效报文需要通过PON口发送至光线路终端。Among them, after the PON port of the optical network distribution unit is disconnected, the data message in the data buffer is an invalid message. In this case, the data message that has been an invalid message can be sent out through the standby port ; and when the PON port of the optical network distribution unit is online, the data message written into the data buffer is a valid message, and these valid messages need to be sent to the optical line terminal through the PON port.

因此,需要实时检测光网络分配单元的PON口是否上线,若没有上线,则可以保持通过备用端口发送从数据缓存器中读取的数据报文。Therefore, it is necessary to detect in real time whether the PON port of the optical network distribution unit is online, and if not, the data message read from the data buffer can be kept sent through the standby port.

步骤305:将从数据缓存器中读取的数据报文由备用端口发送出去切换至由PON口发送以经由无源光分路器至光线路终端;Step 305: Send the data message read from the data buffer from the standby port to switch to the PON port to send it to the optical line terminal via the passive optical splitter;

其中,当检测到光网络分配单元的PON口上线后,写入数据缓存器中的数据报文为有效报文,因此,可以进行切换动作,使得从数据缓存器中读取的数据报文可以通过PON口发送,并经由无源分路器至光线路终端。Wherein, after detecting that the PON port of the optical network distribution unit is on-line, the data message written in the data buffer is a valid message, therefore, the switching action can be performed, so that the data message read from the data buffer can be Send it through the PON port, and go through the passive splitter to the optical line terminal.

步骤306:将从数据缓存器中读取的数据报文通过PON口发送,经由无源光分路器至光线路终端。Step 306: Send the data message read from the data buffer through the PON port to the optical line terminal via the passive optical splitter.

在本发明实施例中,在检测到所述光网络分配单元的PON口掉线时,可以将从数据缓存器中读取的数据报文通过备用端口发送出去,并统计通过所述备用端口发送的数据报文,从而可以根据在备用端口处所统计的数据报文定位网络故障,且由于无需关闭用户口,还可以根据用户口处所统计的数据报文定位网络故障,因此,本发明提高了网络故障定的准确度,使得网络可以快速恢复;此外,在本发明中,通过备用端口发送出去的数据报文可以直接丢弃,使得光网络分配单元的PON再次上线后,减少了占用线路带宽的无效报文。In the embodiment of the present invention, when it is detected that the PON port of the optical network distribution unit is offline, the data message read from the data buffer can be sent out through the backup port, and the statistics sent through the backup port can be counted. data packets, so that network faults can be located according to the data packets counted at the standby port, and because there is no need to close the user port, network faults can also be located according to the data packets counted at the user port. Therefore, the present invention improves network The accuracy of fault determination makes the network recover quickly; in addition, in the present invention, the data message sent out through the standby port can be directly discarded, so that after the PON of the optical network distribution unit goes online again, the ineffectiveness of occupying the line bandwidth is reduced. message.

在本发明实施例中,在由备用端口发送数据报文切换至由PON发送数据报文之前,若不能将在光网络分配单元的PON口再次上线之前写入数据缓存器中的数据报文全部清空,那么将导致数据缓存器中还存在无效报文,使得一部分无效报文仍会通过PON口发送至光线路终端,占用线路带宽,影响网络速度。In the embodiment of the present invention, before the data message sent by the standby port is switched to the data message sent by the PON, if the data message written in the data buffer before the PON port of the optical network distribution unit goes online again cannot be completely If it is cleared, there will still be invalid packets in the data buffer, so that some invalid packets will still be sent to the optical line terminal through the PON port, occupying the line bandwidth and affecting the network speed.

基于此,本发明又一实施例还公开了一种数据报文的控制方法,如图4所示,该方法可以包括以下步骤:Based on this, another embodiment of the present invention also discloses a data message control method, as shown in Figure 4, the method may include the following steps:

步骤401:检测光网络分配单元的PON口是否掉线;若是,进入步骤402,若否,进入步骤407;Step 401: Detect whether the PON port of the optical network distribution unit is offline; if so, go to step 402, if not, go to step 407;

步骤402:将从数据缓存器中读取的数据报文通过备用端口发送出去;Step 402: Send the data message read from the data buffer through the standby port;

步骤403:统计通过备用端口发送的数据报文;Step 403: Count the data packets sent through the standby port;

步骤404:检测光网络分配单元的PON口是否上线;Step 404: Detect whether the PON port of the optical network distribution unit is online;

步骤405:确定读取到数据缓存器中满足预设条件的所有数据报文,且所读取的数据报文全部通过备用端口发送出去;Step 405: Determine that all data packets that meet the preset conditions are read in the data buffer, and all the read data packets are sent out through the standby port;

其中,该预设条件是指将在光网络分配单元的PON口再次上线之前写入数据缓存器中的数据报文全部清空的条件;Wherein, the preset condition refers to the condition that all the data messages written in the data buffer before the PON port of the optical network distribution unit goes online again are cleared;

在光网络分配单元的PON口再次上线之前写入数据缓存器中的数据报文均为无效报文,为了防止在将数据报文由备用端口发送出去切换至由PON口发送至光线路终端时,无线报文占用线路的额外带宽,需要将数据缓存器中的无效报文全部清空。The data packets written into the data buffer before the PON port of the optical network distribution unit goes online again are all invalid packets. , the wireless packets occupy the extra bandwidth of the line, and all invalid packets in the data buffer need to be cleared.

需要说明的是,本发明中的数据缓存器为FIFO(First In First Out先进先出)存储器,即,先写入数据缓存器中的数据报文被优选读取,后写入数据缓存器中的数据报文择后读取。It should be noted that the data buffer in the present invention is a FIFO (First In First Out) memory, that is, the data message first written in the data buffer is preferably read, and then written into the data buffer The selected datagrams are read later.

其中,清空数据缓存器中无效报文的方式并没有具体限定,作为一种实现方式,步骤405可以具体包括:Wherein, the manner of clearing the invalid message in the data buffer is not specifically limited. As an implementation manner, step 405 may specifically include:

检测写入数据缓存器中的数据报文在PON口上线时的写地址;Detect the write address of the data message written in the data buffer when it goes online on the PON port;

其中,在检测到光网络分配单元的PON口上线时,可以确定此时写入数据缓存器的数据报文的写地址,即,在该写地址之前的数据报文全部为无效报文,在该写地址之后的数据报文为有效报文。Wherein, when it is detected that the PON port of the optical network distribution unit is online, the write address of the data message written into the data buffer at this time can be determined, that is, all the data messages before the write address are invalid messages. The data message after the write address is a valid message.

确定读取数据缓存器的数据报文的读地址与该写地址相同。It is determined that the read address of the data packet for reading the data buffer is the same as the write address.

其中,当读取数据缓存器的数据报文的杜地址与该写地址相同时,说明数据缓存器中的所有无效报文全部被读取完毕。Wherein, when the address of the data message for reading the data buffer is the same as the write address, it means that all invalid messages in the data buffer have been read completely.

将所读取的数据报文全部通过备用端口发送出去。All the read data packets are sent out through the standby port.

作为另一种实现方式,可以为在PON口上线时写入数据缓存器中的数据报文进行标记,检测读取到的数据缓存器中的数据报文是否携带有该标记,若检测到读取到的数据报文携带有该标记,则确定将数据缓存器中的所有无效报文全部读取完毕,通过将所读取的数据报文全部通过备用端口发送出去,使得清空数据缓存器中的所有无效报文。As another implementation, it is possible to mark the data message written in the data buffer when the PON port is online, and detect whether the read data message in the data buffer carries the mark. If the fetched data message carries the mark, it is determined that all invalid messages in the data buffer have been read, and all the read data messages are sent out through the standby port, so that the data buffer in the data buffer is cleared. all invalid messages.

通过将所读取的数据报文通过备用端口发送出去,使得数据缓存器中的无效报文全部被清空,相应的,当由备用端口切换至由PON口时,所发送的数据报文全部为有效报文,从而保证了无效报文不会占用线路的额外带宽,提高了网络速度。By sending the read data message through the standby port, all the invalid messages in the data buffer are cleared. Correspondingly, when switching from the standby port to the PON port, all the sent data messages are Effective messages, thus ensuring that invalid messages will not occupy the extra bandwidth of the line, improving the network speed.

步骤406:将从数据缓存器中读取的数据报文由备用端口发送出去切换至由PON口发送以经由无源光分路器至光线路终端;Step 406: Switch the data message read from the data buffer from the standby port to the PON port to send it to the optical line terminal via the passive optical splitter;

步骤407:将从数据缓存器中读取的数据报文通过PON口发送,经由无源光分路器至光线路终端。Step 407: Send the data message read from the data buffer through the PON port to the optical line terminal via the passive optical splitter.

本发明一个实施例公开了一种数据报文的控制装置,该装置可以应用于光网络分配单元中;An embodiment of the present invention discloses a data message control device, which can be applied to an optical network distribution unit;

其中,光网络分配单元为EPON(Ethernet Passive Optical Network,以太网无源光网络)系统的组成部分,EPON系统的具体结构可参见图1,在此不再详细赘述。Among them, the optical network distribution unit is a component of the EPON (Ethernet Passive Optical Network, Ethernet Passive Optical Network) system. The specific structure of the EPON system can be seen in Figure 1, and will not be described in detail here.

其中,每一ONU均可以包括用于接收数据报文的用户口、用于缓存数据报文的数据缓存器、用于发送从所述数据缓存器中读取的数据报文的PON口以及备用端口。Wherein, each ONU can include a user port for receiving data messages, a data buffer for buffering data messages, a PON port for sending data messages read from the data buffer, and a spare port.

参见图5,该装置可以包括:第一检测单元501、第一发送单元502、第一统计单元503、第二发送单元504;其中:Referring to FIG. 5, the device may include: a first detection unit 501, a first sending unit 502, a first statistics unit 503, and a second sending unit 504; wherein:

第一检测单元501,可以用于检测所述光网络分配单元的PON口是否掉线;The first detection unit 501 can be used to detect whether the PON port of the optical network distribution unit is offline;

其中,第一检测单元具体可以用于检测所述光网络分配单元的PON口是否未接收到光信号。Wherein, the first detection unit may be specifically configured to detect whether the PON port of the optical network distribution unit has not received an optical signal.

第一发送单元502,可以用于在检测到所述光网络分配单元掉线时,将从所述数据缓存器中读取的数据报文通过所述备用端口发送出去;The first sending unit 502 may be configured to send the data message read from the data buffer through the standby port when it is detected that the optical network distribution unit is offline;

第一统计单元503,可以用于统计通过所述备用端口发送的数据报文;The first statistical unit 503 may be used to count data packets sent through the standby port;

第二发送单元504,可以用于在检测到所述光网络分配单元未掉线时,将从所述数据缓存器中读取的数据报文通过所述PON口发送,经由所述无源光分路器至所述光线路终端。The second sending unit 504 can be configured to send the data message read from the data buffer through the PON port when it is detected that the optical network distribution unit is not offline, and send the data message through the passive optical The splitter is connected to the optical line terminal.

在本发明实施例中,在检测到所述光网络分配单元的PON口掉线时,可以将从数据缓存器中读取的数据报文通过备用端口发送出去,并统计通过所述备用端口发送的数据报文,从而可以根据在备用端口处所统计的数据报文定位网络故障,且由于无需关闭用户口,还可以根据用户口处所统计的数据报文定位网络故障,因此,本发明提高了网络故障定的准确度,使得网络可以快速恢复。In the embodiment of the present invention, when it is detected that the PON port of the optical network distribution unit is offline, the data message read from the data buffer can be sent out through the backup port, and the statistics sent through the backup port can be counted. data packets, so that network faults can be located according to the data packets counted at the standby port, and because there is no need to close the user port, network faults can also be located according to the data packets counted at the user port. Therefore, the present invention improves network The accuracy of fault determination enables the network to recover quickly.

本发明另一实施例还公开的一种数据报文的控制装置,参见图6,该装置可以包括:第一检测单元601、第一发送单元602、第一统计单元603、第二检测单元604、第一切换单元605、第一保持单元606、第二发送单元607;其中:Another embodiment of the present invention also discloses a device for controlling data packets, as shown in FIG. 6 , the device may include: a first detection unit 601 , a first sending unit 602 , a first statistics unit 603 , and a second detection unit 604 , the first switching unit 605, the first holding unit 606, and the second sending unit 607; wherein:

第一检测单元601,可以用于检测所述光网络分配单元的PON口是否掉线;The first detection unit 601 can be used to detect whether the PON port of the optical network distribution unit is offline;

第一发送单元602,可以用于在检测到所述光网络分配单元掉线时,将从所述数据缓存器中读取的数据报文通过所述备用端口发送出去;The first sending unit 602 may be configured to send the data message read from the data buffer through the backup port when it is detected that the optical network distribution unit is offline;

第一统计单元603,可以用于统计通过所述备用端口发送的数据报文;The first statistical unit 603 may be used to count data packets sent through the standby port;

第二检测单元604,可以用于检测所述光网络分配单元的PON口是否上线;The second detection unit 604 can be used to detect whether the PON port of the optical network distribution unit is online;

第一切换单元605,可以用于在检测到所述光网络分配单元的PON口上线时,将从所述数据缓存器中读取的数据报文由所述备用端口发送出去切换至由所述PON口发送以经由所述无源光分路器至所述光线路终端;The first switching unit 605 can be used to send the data message read from the data buffer through the backup port to switch to the PON port of the optical network distribution unit when it is detected that the PON port is online. The PON port is sent to the optical line terminal via the passive optical splitter;

第一保持单元606,可以用于在检测到所述光网络分配单元的PON口未上线时,保持将从所述数据缓存器中读取的数据报文通过所述备用端口发送出去;The first holding unit 606 may be configured to keep sending the data message read from the data buffer through the standby port when detecting that the PON port of the optical network distribution unit is not online;

第二发送单元607,可以用于在检测到所述光网络分配单元未掉线时,将从所述数据缓存器中读取的数据报文通过所述PON口发送,经由所述无源光分路器至所述光线路终端。The second sending unit 607 can be configured to send the data message read from the data buffer through the PON port when it is detected that the optical network distribution unit is not offline, and send the data message through the passive optical The splitter is connected to the optical line terminal.

在本发明实施例中,在检测到所述光网络分配单元的PON口掉线时,可以将从数据缓存器中读取的数据报文通过备用端口发送出去,并统计通过所述备用端口发送的数据报文,从而可以根据在备用端口处所统计的数据报文定位网络故障,且由于无需关闭用户口,还可以根据用户口处所统计的数据报文定位网络故障,因此,本发明提高了网络故障定的准确度,使得网络可以快速恢复;此外,在本发明中,通过备用端口发送出去的数据报文可以直接丢弃,使得光网络分配单元的PON再次上线后,减少了占用线路带宽的无效报文。In the embodiment of the present invention, when it is detected that the PON port of the optical network distribution unit is offline, the data message read from the data buffer can be sent out through the backup port, and the statistics sent through the backup port can be counted. data packets, so that network faults can be located according to the data packets counted at the standby port, and because there is no need to close the user port, network faults can also be located according to the data packets counted at the user port. Therefore, the present invention improves network The accuracy of fault determination makes the network recover quickly; in addition, in the present invention, the data message sent out through the standby port can be directly discarded, so that after the PON of the optical network distribution unit goes online again, the ineffectiveness of occupying the line bandwidth is reduced. message.

本发明又一实施例还公开的一种数据报文的控制装置,参见图7,该装置可以包括:第一检测单元701、第一发送单元702、第一统计单元703、第二检测单元704、第一确定单元705、第一切换单元706、第一保持单元707、第二发送单元708;其中:Another embodiment of the present invention also discloses a device for controlling data packets. Referring to FIG. 7 , the device may include: a first detection unit 701 , a first sending unit 702 , a first statistics unit 703 , and a second detection unit 704 , the first determining unit 705, the first switching unit 706, the first holding unit 707, and the second sending unit 708; wherein:

第一检测单元701,可以用于检测所述光网络分配单元的PON口是否掉线;The first detection unit 701 can be used to detect whether the PON port of the optical network distribution unit is offline;

第一发送单元702,可以用于在检测到所述光网络分配单元掉线时,将从所述数据缓存器中读取的数据报文通过所述备用端口发送出去;The first sending unit 702 may be configured to send the data message read from the data buffer through the backup port when it is detected that the optical network distribution unit is offline;

第一统计单元703,可以用于统计通过所述备用端口发送的数据报文;The first statistical unit 703 can be used to count the data packets sent through the standby port;

第二检测单元704,可以用于检测所述光网络分配单元的PON口是否上线;The second detection unit 704 can be used to detect whether the PON port of the optical network distribution unit is online;

第一确定单元705,可以用于确定读取到所述数据缓存器中满足预设条件的所有数据报文,且所读取的数据报文全部通过所述备用端口发送出去。The first determining unit 705 may be configured to determine all the data packets that meet the preset conditions read in the data buffer, and all the read data packets are sent out through the standby port.

第一确定单元可以包括:第一检测模块、第一确定模块以及第一发送模块;其中:The first determination unit may include: a first detection module, a first determination module, and a first sending module; wherein:

第一检测模块,可以用于检测写入所述数据缓存器的数据报文在所述PON口上线时的写地址;The first detection module can be used to detect the write address of the data message written into the data buffer when the PON port goes online;

第一确定模块,可以用于确定读取所述数据缓存器的数据报文的读地址与所述写地址相同;The first determination module may be configured to determine that the read address of the data message for reading the data buffer is the same as the write address;

第一发送模块,可以用于将所读取的数据报文全部通过所述备用端口发送出去。The first sending module may be configured to send all the read data packets through the standby port.

第一切换单元706,可以用于在检测到所述光网络分配单元的PON口上线时,将从所述数据缓存器中读取的数据报文由所述备用端口发送出去切换至由所述PON口发送以经由所述无源光分路器至所述光线路终端;The first switching unit 706 can be used to send the data message read from the data buffer from the standby port to switch to the PON port of the optical network distribution unit when it is detected that the PON port is online. The PON port is sent to the optical line terminal via the passive optical splitter;

第一保持单元707,可以用于在检测到所述光网络分配单元的PON口未上线时,保持将从所述数据缓存器中读取的数据报文通过所述备用端口发送出去;The first holding unit 707 may be configured to keep sending the data message read from the data buffer through the standby port when detecting that the PON port of the optical network distribution unit is not online;

第二发送单元708,可以用于在检测到所述光网络分配单元未掉线时,将从所述数据缓存器中读取的数据报文通过所述PON口发送,经由所述无源光分路器至所述光线路终端。The second sending unit 708 can be configured to send the data message read from the data buffer through the PON port when it is detected that the optical network distribution unit is not offline, and send the data message through the passive optical The splitter is connected to the optical line terminal.

在本发明实施例中,通过确定读取到所述数据缓存器中满足预设条件的所有数据报文,且所读取的数据报文全部通过所述备用端口发送出去,使得数据缓存器中的无效报文全部被清空,相应的,当由备用端口切换至由PON口时,所发送的数据报文全部为有效报文,从而保证了无效报文不会占用线路的额外带宽,提高了网络速度。In the embodiment of the present invention, by determining that all data packets that meet the preset conditions are read in the data buffer, and all the read data packets are sent out through the standby port, so that the data packets in the data buffer Correspondingly, when switching from the standby port to the PON port, all the data packets sent are valid packets, thus ensuring that the invalid packets will not occupy the extra bandwidth of the line and improving the Internet speed.

以上各装置的实施例与方法实施例相对应,具体实现方式可参见方法实施例,在此不再详细赘述。The embodiments of the above devices correspond to the method embodiments, and reference may be made to the method embodiments for specific implementation manners, which will not be described in detail here.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1.一种数据报文的控制方法,其特征在于,应用于光网络分配单元中,所述光网络分配单元包括用于接收数据报文的用户口、用于缓存数据报文的数据缓存器、用于发送从所述数据缓存器中读取的数据报文的PON口以及备用端口;1. A control method for a data message, characterized in that it is applied in an optical network distribution unit, and the optical network distribution unit includes a user port for receiving a data message, a data buffer for buffering a data message , a PON port and a standby port for sending the data message read from the data buffer; 该方法包括:The method includes: 检测所述光网络分配单元的PON口是否掉线;Detect whether the PON port of the optical network distribution unit is offline; 若是,将从所述数据缓存器中读取的数据报文通过所述备用端口发送出去;If yes, send the data message read from the data buffer through the standby port; 统计通过所述备用端口发送的数据报文;Counting data packets sent through the standby port; 若否,将从所述数据缓存器中读取的数据报文通过所述PON口发送,经由所述无源光分路器至所述光线路终端。If not, send the data message read from the data buffer through the PON port to the optical line terminal via the passive optical splitter. 2.根据权利要求1所述的方法,其特征在于,所述统计通过所述备用端口发送的数据报文之后,还包括:2. The method according to claim 1, characterized in that, after the data message sent by the backup port, the statistics further includes: 检测所述光网络分配单元的PON口是否上线;Detect whether the PON port of the optical network distribution unit is online; 若是,则将从所述数据缓存器中读取的数据报文由所述备用端口发送出去切换至由所述PON口发送以经由所述无源光分路器至所述光线路终端;If so, the data message read from the data buffer is sent out from the standby port and switched to be sent by the PON port so as to pass through the passive optical splitter to the optical line terminal; 若否,则保持将从所述数据缓存器中读取的数据报文通过所述备用端口发送出去。If not, keep sending the data message read from the data buffer through the standby port. 3.根据权利要求2所述的方法,其特征在于,所述将从所述数据缓存器中读取的数据报文由所述备用端口发送出去切换至由所述PON口发送以经由所述无源光分路器至所述光线路终端之前,还包括:3. The method according to claim 2, wherein the data message read from the data buffer is switched from being sent out by the standby port to being sent by the PON port through the Before the passive optical splitter to the optical line terminal, it also includes: 确定读取到所述数据缓存器中满足预设条件的所有数据报文,且所读取的数据报文全部通过所述备用端口发送出去。It is determined that all data packets satisfying the preset condition are read in the data buffer, and all the read data packets are sent out through the standby port. 4.根据权利要求3所述的方法,其特征在于,所述确定读取到所述数据缓存中满足预设条件的所有数据报文,具体为:4. The method according to claim 3, wherein said determining to read all data packets that meet preset conditions in said data cache is specifically: 检测写入所述数据缓存器的数据报文在所述PON口上线时的写地址;Detecting the write address of the data message written into the data buffer when the PON port goes online; 确定读取所述数据缓存器的数据报文的读地址与所述写地址相同。It is determined that the read address of the data message for reading the data buffer is the same as the write address. 5.根据权利要求1所述的方法,其特征在于,检测所述光网络分配单元的PON口是否掉线,具体包括:5. The method according to claim 1, wherein detecting whether the PON port of the optical network distribution unit is disconnected includes: 检测所述光网络分配单元的PON口是否未接收到光信号。Detecting whether the PON port of the optical network distribution unit does not receive an optical signal. 6.一种数据报文的控制装置,其特征在于,应用于光网络分配单元中,所述光网络分配单元包括用于接收数据报文的用户口、用于缓存数据报文的数据缓存器、用于发送从所述数据缓存器中读取的数据报文的PON口以及备用端口;6. A control device for a data message, characterized in that it is applied to an optical network distribution unit, and the optical network distribution unit includes a user port for receiving a data message and a data buffer for buffering a data message , a PON port and a standby port for sending the data message read from the data buffer; 该装置包括:The unit includes: 第一检测单元,用于检测所述光网络分配单元的PON口是否掉线;The first detection unit is used to detect whether the PON port of the optical network distribution unit is offline; 第一发送单元,用于在检测到所述光网络分配单元掉线时,将从所述数据缓存器中读取的数据报文通过所述备用端口发送出去;The first sending unit is configured to send the data message read from the data buffer through the backup port when it is detected that the optical network distribution unit is offline; 第一统计单元,用于统计通过所述备用端口发送的数据报文;a first statistical unit, configured to count data packets sent through the standby port; 第二发送单元,用于在检测到所述光网络分配单元未掉线时,将从所述数据缓存器中读取的数据报文通过所述PON口发送,经由所述无源光分路器至所述光线路终端。The second sending unit is configured to send the data message read from the data buffer through the PON port through the passive optical branch when it is detected that the optical network distribution unit is not offline device to the optical line terminal. 7.根据权利要求6所述的装置,其特征在于,还包括:7. The device according to claim 6, further comprising: 第二检测单元,用于检测所述光网络分配单元的PON口是否上线;The second detection unit is used to detect whether the PON port of the optical network distribution unit is online; 第一切换单元,用于在检测到所述光网络分配单元的PON口上线时,将从所述数据缓存器中读取的数据报文由所述备用端口发送出去切换至由所述PON口发送以经由所述无源光分路器至所述光线路终端;The first switching unit is used to send the data message read from the data buffer from the standby port to switch to the PON port when detecting that the PON port of the optical network distribution unit is online. sending to the optical line terminal via the passive optical splitter; 第一保持单元,用于在检测到所述光网络分配单元的PON口未上线时,保持将从所述数据缓存器中读取的数据报文通过所述备用端口发送出去。The first holding unit is configured to keep sending the data message read from the data buffer through the standby port when detecting that the PON port of the optical network distribution unit is not online. 8.根据权利要求7所述的装置,其特征在于,还包括:8. The device according to claim 7, further comprising: 第一确定单元,用于确定读取到所述数据缓存器中满足预设条件的所有数据报文,且所读取的数据报文全部通过所述备用端口发送出去。The first determining unit is configured to determine all the data packets that meet the preset conditions read in the data buffer, and all the read data packets are sent out through the standby port. 9.根据权利要求8所述的装置,其特征在于,所述第一确定单元包括:9. The device according to claim 8, wherein the first determining unit comprises: 第一检测模块,用于检测写入所述数据缓存器的数据报文在所述PON口上线时的写地址;The first detection module is used to detect the write address of the data message written into the data buffer when the PON port goes online; 第一确定模块,用于确定读取所述数据缓存器的数据报文的读地址与所述写地址相同;A first determination module, configured to determine that the read address of the data message for reading the data buffer is the same as the write address; 第一发送模块,用于将所读取的数据报文全部通过所述备用端口发送出去。The first sending module is configured to send all the read data packets through the standby port. 10.根据权利要求6所述的装置,其特征在于,所述第一检测单元具体用于检测所述光网络分配单元的PON口是否未接收到光信号。10. The device according to claim 6, wherein the first detection unit is specifically configured to detect whether the PON port of the optical network distribution unit does not receive an optical signal.
CN201410159520.7A 2014-04-21 2014-04-21 Method and device for controlling data messages Pending CN103888303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410159520.7A CN103888303A (en) 2014-04-21 2014-04-21 Method and device for controlling data messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410159520.7A CN103888303A (en) 2014-04-21 2014-04-21 Method and device for controlling data messages

Publications (1)

Publication Number Publication Date
CN103888303A true CN103888303A (en) 2014-06-25

Family

ID=50957030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410159520.7A Pending CN103888303A (en) 2014-04-21 2014-04-21 Method and device for controlling data messages

Country Status (1)

Country Link
CN (1) CN103888303A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213176A (en) * 2019-06-28 2019-09-06 北京东土军悦科技有限公司 Message processing method, device, equipment and the medium of interchanger

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080145064A1 (en) * 2006-12-13 2008-06-19 Masaki Ohira Optical line terminal and optical network terminal
CN101656573A (en) * 2009-09-07 2010-02-24 中兴通讯股份有限公司 Method and optical line terminal for protecting passive optical network service
CN101834687A (en) * 2009-03-11 2010-09-15 华为技术有限公司 Method, system and device for switching main and spare light access networks
CN102137282A (en) * 2010-12-15 2011-07-27 华为技术有限公司 Method, device, nodes and system for detecting faulted link
CN102186117A (en) * 2011-03-30 2011-09-14 深圳市同洲电子股份有限公司 Network state judgment method and digital television terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080145064A1 (en) * 2006-12-13 2008-06-19 Masaki Ohira Optical line terminal and optical network terminal
CN101834687A (en) * 2009-03-11 2010-09-15 华为技术有限公司 Method, system and device for switching main and spare light access networks
CN101656573A (en) * 2009-09-07 2010-02-24 中兴通讯股份有限公司 Method and optical line terminal for protecting passive optical network service
CN102137282A (en) * 2010-12-15 2011-07-27 华为技术有限公司 Method, device, nodes and system for detecting faulted link
CN102186117A (en) * 2011-03-30 2011-09-14 深圳市同洲电子股份有限公司 Network state judgment method and digital television terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213176A (en) * 2019-06-28 2019-09-06 北京东土军悦科技有限公司 Message processing method, device, equipment and the medium of interchanger

Similar Documents

Publication Publication Date Title
CN101867392B (en) Method, equipment and system for improving type B protection switching performance
TWI430594B (en) Method and system for protection switching in ethernet passive optical networks
US8243608B2 (en) Metro Ethernet connectivity fault management acceleration
CN101895791A (en) Method and device for protection switching in Ethernet passive optical network
JP2004096734A (en) Apparatus and method for duplicating Gigabit Ethernet (registered trademark) passive optical network system, and frame format for controlling the same
WO2008011780A1 (en) Method, system and apparatus for detecting a faulty network terminal in pon
JP2007282153A (en) Network system and communication device
EP2966798B1 (en) Active and standby changeover method, apparatus, device, and system for network device
CN101877612A (en) System, device and method for realizing passive optical network optical link protection
CN101917648A (en) Method and device for realizing service control in all-fiber protection system
CN101640617A (en) Method, system and device for detecting and positioning network failure
CN103023613A (en) Method and device for checking length of data frame
CN113727222B (en) Method and device for detecting MAC address drift in PON system
CN101013928B (en) Apparatus and method for implementing line fault detection of pseudo-wire simulation
JP4884184B2 (en) Communication device and program for link aggregation
CN105704021A (en) Rerouting method based on elastic label
CN101895797B (en) Method and device for realizing all-fiber protection
CN102316392A (en) Method for realizing optical network unit (ONU) redundancy protection in fiber to the home (FTTH) network, apparatus and system thereof
CN103888303A (en) Method and device for controlling data messages
CN102263587A (en) Optical interface switching method of ONU and system thereof
CN102123098B (en) Method and system for protection switching of P2MP (Point-to-Multipoint) multicast channel
WO2014000509A1 (en) Transmission monitoring method and device
EP1592171B1 (en) Silent datapath failure detection
CN101414937A (en) Method and apparatus for switching tunnel
CN101729201B (en) Method for detecting signal degradation defect

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140625

RJ01 Rejection of invention patent application after publication