WO2016062034A1 - Data processing method and device, data control unit and storage medium - Google Patents

Data processing method and device, data control unit and storage medium Download PDF

Info

Publication number
WO2016062034A1
WO2016062034A1 PCT/CN2015/076494 CN2015076494W WO2016062034A1 WO 2016062034 A1 WO2016062034 A1 WO 2016062034A1 CN 2015076494 W CN2015076494 W CN 2015076494W WO 2016062034 A1 WO2016062034 A1 WO 2016062034A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
bandwidth
traffic bearer
control unit
bearer entity
Prior art date
Application number
PCT/CN2015/076494
Other languages
French (fr)
Chinese (zh)
Inventor
金琳
Original Assignee
深圳市中兴微电子技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2016062034A1 publication Critical patent/WO2016062034A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems

Definitions

  • the present invention relates to data processing technologies within an Optical Network Unit (ONU), and more particularly to an ONU data processing method and apparatus, a data control unit, and a storage medium.
  • ONU Optical Network Unit
  • the Ethernet Passive Optical Network (EPON) technology extends each ONU to an eight-way Logical Link Identifier (LLID).
  • LLID Logical Link Identifier
  • the design of the eight-way LLID can greatly increase the type of application layer service data. Support for a wider variety of application services.
  • GPON Gigabit-Capable PON
  • TCONT transport containers
  • Traffic Management (TM) uplink egress data control unit is an important part of ONU. Under the system supporting multiple LLID/TCONT, when the randomly unplugged fiber is plugged in again, the ONU needs to be re-registered; When the re-registered LLID number or TCONT number is consistent with the original, the TM uplink egress data control unit can perform data processing according to the hardware logic, and send the correct data to the Medium Access Control (MAC) unit; but when re-registered If the LLID number or TCONT number is inconsistent with the original, if the TM uplink export data control unit still performs data processing according to the hardware logic, the cached data cannot be cleared, and the correctness of data processing cannot be guaranteed.
  • MAC Medium Access Control
  • the embodiments of the present invention are expected to provide an ONU data processing method and apparatus, a data control unit, and a storage medium, which can ensure the correctness of data processing.
  • An embodiment of the present invention provides an ONU data processing method, including:
  • the traffic bearer entity number is a TCONT number, or an LLID number.
  • the performing the clearing process on the data corresponding to the traffic bearer entity number of the unallocated bandwidth includes: reading the TM uplink export data control unit corresponding to the traffic bearer entity number of the unallocated bandwidth Data is discarded; the descriptor in the TM uplink egress data control unit corresponding to the unassigned bandwidth traffic bearer entity number is read and discarded; and the data packet corresponding to the descriptor in the data buffer unit is discarded.
  • the method further includes: when there is bandwidth, sending a data packet corresponding to the traffic bearer entity number of the unallocated bandwidth.
  • the embodiment of the present invention further provides a TM uplink export data control unit, including a receiving module, a clearing module, and a sending module;
  • the receiving module is configured to receive a traffic bearer entity number of unallocated bandwidth
  • the clearing module is configured to perform clearing processing on data corresponding to the traffic bearer entity number of the unallocated bandwidth
  • the sending module is configured to send the traffic bearer entity number of the unallocated bandwidth.
  • the clearing module is further configured to: read data corresponding to the traffic bearer entity number of the unallocated bandwidth in the TM uplink egress data control unit, and discard the data; and read the TM uplink egress data control unit
  • the traffic of the unallocated bandwidth carries the descriptor corresponding to the entity number and discards; and the data packet corresponding to the descriptor in the data buffer unit is discarded.
  • the embodiment of the invention further provides an ONU data processing device, comprising: a data buffer unit, TM uplink export data control unit, MAC unit, and CPU; wherein
  • a data cache unit configured to cache data for the TM
  • the TM uplink egress data control unit is configured to receive a traffic bearer entity number of the unallocated bandwidth sent by the CPU, perform a clearing process on the data corresponding to the traffic bearer entity number of the unallocated bandwidth, and perform the unallocated bandwidth traffic.
  • the bearer entity number is sent to the MAC unit;
  • the MAC unit is configured to determine whether there is bandwidth. When there is no bandwidth, the data packet corresponding to the traffic bearer entity number of the unallocated bandwidth is marked with an error message, and the data packet marked with the error information is discarded;
  • the CPU is configured to send the traffic bearer entity number of the unallocated bandwidth to the TM uplink egress data control unit.
  • the TM uplink export data control unit is any one of the above TM uplink export data control units.
  • the MAC unit is further configured to: when there is a bandwidth, send a data packet corresponding to the traffic bearer entity number of the unallocated bandwidth.
  • the ONU data processing method and device, the data control unit, and the storage medium provided by the embodiment of the present invention receive the traffic bearer entity number of the unallocated bandwidth, and clear the data corresponding to the traffic bearer entity number of the unallocated bandwidth. Determining whether there is bandwidth, when there is no bandwidth, marking the error packet with the packet corresponding to the traffic bearer entity number of the unallocated bandwidth, and discarding the data packet marked with the error information; thus, the ONU can be randomly unplugged When the optical fiber is plugged in again, if the re-registered LLID number or TCONT number is inconsistent with the original, the residual data retained in the ONU can be cleared to ensure the correctness of the ONU data processing.
  • FIG. 1 is a schematic flowchart of an implementation process of an ONU data processing method according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a structure of an ONU data processing apparatus according to an embodiment of the present invention
  • FIG. 3 is a TM uplink export data control unit in an ONU data processing device according to an embodiment of the present invention; Schematic diagram of the composition.
  • the traffic bearer entity number of the unallocated bandwidth is received, and the data corresponding to the traffic bearer entity number of the unallocated bandwidth is cleared; the bandwidth is determined, and when there is no bandwidth, The packet corresponding to the traffic bearer entity number of the unallocated bandwidth marks the error information, and discards the data packet marked with the error information.
  • the receiving and performing the clearing process may be performed by the TM uplink egress data control unit in the ONU; the unassigned bandwidth traffic bearer entity number is from the CPU in the ONU; the determining, marking, and discarding operations may be performed by the MAC in the ONU
  • the unit is completed, wherein the discarding means that the MAC unit completes the discarding process for the data that has been sent to itself; and, for the data corresponding to the unloaded bandwidth of the unassigned bandwidth that has not been sent to the MAC unit, the data may be controlled by the TM uplink egress data control unit. Discard directly.
  • FIG. 1 is a schematic flowchart of an ONU data processing method according to an embodiment of the present invention. As shown in FIG. 1 , an ONU data processing method according to an embodiment of the present invention includes the following steps:
  • Step 101 Receive a traffic bearer entity number of an unallocated bandwidth.
  • Step 102 Perform a clearing process on data corresponding to the traffic bearer entity number of the unallocated bandwidth.
  • This step can be performed by the TM uplink egress data control unit in the ONU; the unloaded bandwidth traffic bearer entity number is from the CPU in the ONU; wherein the traffic bearer entity number can be a TCONT number or an LLID number.
  • the performing the clearing process on the data corresponding to the traffic bearer entity number of the unallocated bandwidth includes: reading data corresponding to the traffic bearer entity number of the unallocated bandwidth in the TM uplink egress data control unit, and discarding; Read TM upstream export data control unit The descriptor corresponding to the traffic bearer entity number of the unallocated bandwidth is discarded, and the data packet corresponding to the descriptor in the data buffer unit is discarded.
  • the method further includes: the CPU monitoring the traffic bearer entity number in real time, and the traffic bearer entity number of the unallocated bandwidth Send to the TM uplink export data control unit.
  • the CPU monitors the current TCONT number to determine which TCONT numbers are valid and which TCONT numbers are discarded. Specifically, after the fiber is removed, the CPU monitors the re-registered TCONT. Whether the number is the same as the original TCONT number, so as to determine which TCONT numbers are valid and which TCONT numbers are discarded, that is, if the TCONT number after re-registration is inconsistent with the original TCONT number, the new registration is currently used. The TCONT number, while the original TCONT number is no longer allocated bandwidth, the TCONT number of the unallocated bandwidth is discarded. The CPU sends the TCONT number of the unallocated bandwidth to the TM uplink export data control unit;
  • the TM uplink egress data control unit receives the TCONT number of the unallocated bandwidth, and the TM uplink egress data control unit has the TCONT data storage space and the TCONT descriptor storage space; after receiving the TCONT number of the unallocated bandwidth, the read storage Data corresponding to the TCONT number of the unallocated bandwidth in the TCONT data storage space is discarded, and the descriptor corresponding to the TCONT number of the unallocated bandwidth stored in the TCONT descriptor storage space is read and discarded; and, The data packets corresponding to the above descriptors stored in the data buffer unit are also discarded.
  • Step 103 Determine whether there is bandwidth, and if there is no bandwidth, mark the error packet with the data packet corresponding to the traffic bearer entity number of the unallocated bandwidth, and discard the data packet marked with the error information;
  • the method further includes: when there is bandwidth, transmitting the traffic with the unallocated bandwidth The data packet corresponding to the entity number; wherein the sending data packet operation can be completed by the MAC unit.
  • the MAC unit receives the TCONT number of the unallocated bandwidth sent by the TM uplink egress data control unit, for the MAC that has arrived.
  • the data packet corresponding to the TCONT number of the unallocated bandwidth of the unit the MAC unit will process according to its own situation; specifically, the MAC unit has a register for statistical bandwidth usage, and judges whether there is still bandwidth according to the data stored in the register; When there is bandwidth, the data packet corresponding to the TCONT number of the unallocated bandwidth is continuously transmitted. When there is no bandwidth, the data packet corresponding to the TCONT number of the unallocated bandwidth is first marked with an error message, and then discarded.
  • Embodiments of the present invention also provide a computer readable storage medium including a set of instructions for performing the method as shown in FIG.
  • the ONU data processing apparatus includes: a data buffer unit 201, a TM uplink egress data control unit 202, a MAC unit 203, and a CPU 204; among them,
  • the data cache unit 201 is configured to cache data for the TM;
  • the TM uplink egress data control unit 202 is configured to receive the traffic bearer entity number of the unallocated bandwidth sent by the CPU 204, perform clear processing on the data corresponding to the traffic bearer entity number of the unallocated bandwidth, and clear the unallocated bandwidth.
  • the traffic bearer entity number is sent to the MAC unit 203;
  • the MAC unit 203 is configured to determine whether there is bandwidth. When there is no bandwidth, the data packet corresponding to the traffic bearer entity number of the unallocated bandwidth is marked with an error message, and the data packet marked with the error information is discarded;
  • the MAC unit 203 can determine whether there is still bandwidth according to data stored in a register having a function of counting bandwidth usage.
  • the CPU 204 is configured to send the traffic bearer entity number of the unallocated bandwidth to the TM uplink exit Data control unit 202.
  • the MAC unit 203 is further configured to: when there is bandwidth, send a data packet corresponding to the traffic bearer entity number of the unallocated bandwidth.
  • the traffic bearer entity number is the TCONT number.
  • the CPU 204 monitors whether the re-registered TCONT number is consistent with the original TCONT number, thereby determining which TCONT numbers are valid. Which TCONT numbers are discarded, that is, if the re-registered TCONT number is inconsistent with the original, the newly registered TCONT number is currently used, and the original TCONT number is no longer allocated bandwidth, and the bandwidth is not allocated. The TCONT number is discarded.
  • the CPU 204 monitors all the TCONT numbers, and obtains the TCONT number of the unallocated bandwidth and sends it to the TM uplink egress data control unit 202.
  • the TM uplink egress data control unit 202 has the TCONT data storage space.
  • the TCONT descriptor storage space after receiving the TCONT number of the unallocated bandwidth, the data corresponding to the TCONT number of the unallocated bandwidth stored in the TCONT data storage space is read and discarded, and the TCONT descriptor is read and stored.
  • the TM uplink egress data control unit 202 also transmits the TCONT number of the unallocated bandwidth to the MAC unit 203.
  • the MAC unit 203 will according to itself. The case is processed; specifically, the MAC unit 203 has a register for counting the bandwidth usage function, and the MAC unit 203 can determine whether there is still bandwidth according to the data stored in the own register; the statistical bandwidth usage stored in the specific register, the MAC unit The 203 can be updated in real time based on its own internal clock.
  • the data packet corresponding to the TCONT number of the unallocated bandwidth is continuously sent out; when there is no bandwidth, the data packet corresponding to the TCONT number of the unallocated bandwidth is marked, the error information is marked, and the error is discarded. Marking the packet of the error message; thus causing the ONU to appear randomly
  • the CPU 204 monitors whether the re-registered LLID number or TCONT number is consistent with the original LLID number or TCONT number. If the re-registered LLID number or TCONT number is inconsistent with the original, it can clear the stay in the internal The residual data ensures the correctness of the ONU data processing.
  • FIG. 3 is a schematic structural diagram of a structure of a TM uplink data control unit in an ONU data processing apparatus according to an embodiment of the present invention.
  • the composition of the uplink uplink data control unit of the embodiment of the present invention includes: a receiving module 301, and a clearing module 302. And sending module 303; wherein
  • the receiving module 301 is configured to receive a traffic bearer entity number of unallocated bandwidth
  • the clearing module 302 is configured to perform clear processing on data corresponding to the traffic bearer entity number of the unallocated bandwidth
  • the sending module 303 is configured to send the traffic bearer entity number of the unallocated bandwidth.
  • the traffic bearer entity number may be a TCONT number or an LLID number.
  • the clearing module 302 is further configured to: read data corresponding to the traffic bearer entity number of the unallocated bandwidth in the TM uplink egress data control unit, and discard; and read the TM uplink egress data control unit and the The traffic of the unallocated bandwidth carries the descriptor corresponding to the entity number and discards, and discards the data packet corresponding to the descriptor in the data buffer unit.
  • the functions of the receiving module 301, the clearing module 302, and the transmitting module 303 may be by a central processing unit (CPU), or a microprocessor (MPU), or a digital signal processor located on the TM upstream egress data control unit. (DSP), or programmable gate array (FPGA) implementation.
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor located on the TM upstream egress data control unit.
  • FPGA programmable gate array
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the present invention is directed to a method, apparatus (system), and computer program in accordance with an embodiment of the present invention
  • the flow chart and/or block diagram of the product is described. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the embodiment of the present invention receives the traffic bearer entity number of the unallocated bandwidth, and performs clear processing on the data corresponding to the traffic bearer entity number of the unallocated bandwidth; determines whether there is bandwidth, and when there is no bandwidth, the pair does not
  • the packet corresponding to the traffic bearer entity number of the allocated bandwidth marks the error information, and discards the data packet marked with the error information; thus, the ONU can re-register the LLID when the randomly unplugged fiber is inserted again. Number or TCONT number and Inconsistent, it can clear the residual data that is stuck inside the ONU, and ensure the correctness of the ONU data processing.

Abstract

Disclosed is an optical network unit (ONU) data processing method, comprising: receiving the number of a traffic bearer entity to which a bandwidth is not allocated, and conducting elimination processing on data corresponding to the number of the traffic bearer entity to which the bandwidth is not allocated; and judging whether there is a bandwidth, and when there is not a bandwidth, marking error information on a data packet corresponding to the number of the traffic bearer entity to which the bandwidth is not allocated, and discarding the data packet on which the error information is marked. Also disclosed at the same time are a traffic management (TM) uplink outlet data control unit, an ONU data processing device and a storage medium.

Description

一种数据处理方法及装置、数据控制单元、存储介质Data processing method and device, data control unit and storage medium 技术领域Technical field
本发明涉及光网络单元(Optical Network Unit,ONU)内部的数据处理技术,尤其涉及一种ONU数据处理方法及装置、数据控制单元、存储介质。The present invention relates to data processing technologies within an Optical Network Unit (ONU), and more particularly to an ONU data processing method and apparatus, a data control unit, and a storage medium.
背景技术Background technique
以太网无源光网络(Ethernet Passive Optical Network,EPON)技术将每个ONU扩展到八路逻辑链路标记(Logical Link Identifier,LLID),八路LLID的设计可以大幅度增加应用层业务数据的类型,从而支持更多种类的应用服务。同样,在吉比特无源光网络(Gigabit-Capable PON,GPON)系统中,一般是支持32至64个传输容器(TCONT),从而可支持更多种类的业务。The Ethernet Passive Optical Network (EPON) technology extends each ONU to an eight-way Logical Link Identifier (LLID). The design of the eight-way LLID can greatly increase the type of application layer service data. Support for a wider variety of application services. Similarly, in Gigabit-Capable PON (GPON) systems, 32 to 64 transport containers (TCONT) are typically supported to support a wider variety of services.
流量管理(Traffic Management,TM)上行出口数据控制单元是ONU的重要组成部分,在支持多LLID/TCONT的系统下,当出现随机拔掉的光纤又再次被插上时,ONU需要重新注册;当重新注册的LLID号或TCONT号与原来一致时,TM上行出口数据控制单元可以按照硬件逻辑进行数据处理,将正确的数据发送给介质访问控制(Medium Access Control,MAC)单元;但当重新注册的LLID号或TCONT号与原来不一致时,如果TM上行出口数据控制单元仍然按照硬件逻辑进行数据处理,就无法清除已缓存的数据,也无法保证数据处理的正确性。Traffic Management (TM) uplink egress data control unit is an important part of ONU. Under the system supporting multiple LLID/TCONT, when the randomly unplugged fiber is plugged in again, the ONU needs to be re-registered; When the re-registered LLID number or TCONT number is consistent with the original, the TM uplink egress data control unit can perform data processing according to the hardware logic, and send the correct data to the Medium Access Control (MAC) unit; but when re-registered If the LLID number or TCONT number is inconsistent with the original, if the TM uplink export data control unit still performs data processing according to the hardware logic, the cached data cannot be cleared, and the correctness of data processing cannot be guaranteed.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种ONU数据处理方法及装置、数据控制单元、存储介质,能保证数据处理的正确性。 In view of this, the embodiments of the present invention are expected to provide an ONU data processing method and apparatus, a data control unit, and a storage medium, which can ensure the correctness of data processing.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供了一种ONU数据处理方法,包括:An embodiment of the present invention provides an ONU data processing method, including:
接收未分配带宽的流量承载实体号;Receiving a traffic bearer entity number of unallocated bandwidth;
对与所述未分配带宽的流量承载实体号对应的数据进行清除处理;Clearing data corresponding to the traffic bearer entity number of the unallocated bandwidth;
判断是否有带宽,当没有带宽时,对与所述未分配带宽的流量承载实体号对应的数据包标记错误信息,并丢弃标记错误信息的数据包。It is determined whether there is bandwidth. When there is no bandwidth, the data packet corresponding to the traffic bearer entity number of the unallocated bandwidth is marked with an error message, and the data packet marked with the error information is discarded.
上述方案中,所述流量承载实体号为TCONT号、或LLID号。In the above solution, the traffic bearer entity number is a TCONT number, or an LLID number.
上述方案中,所述对与所述未分配带宽的流量承载实体号对应的数据进行清除处理,包括:读取与所述未分配带宽的流量承载实体号对应的TM上行出口数据控制单元中的数据并进行丢弃;读取与所述未分配带宽的流量承载实体号对应的TM上行出口数据控制单元中的描述符并进行丢弃;将数据缓存单元中与所述描述符对应的数据包进行丢弃。In the above solution, the performing the clearing process on the data corresponding to the traffic bearer entity number of the unallocated bandwidth includes: reading the TM uplink export data control unit corresponding to the traffic bearer entity number of the unallocated bandwidth Data is discarded; the descriptor in the TM uplink egress data control unit corresponding to the unassigned bandwidth traffic bearer entity number is read and discarded; and the data packet corresponding to the descriptor in the data buffer unit is discarded. .
上述方案中,所述方法还包括:当有带宽时,发送与所述未分配带宽的流量承载实体号对应的数据包。In the above solution, the method further includes: when there is bandwidth, sending a data packet corresponding to the traffic bearer entity number of the unallocated bandwidth.
本发明实施例还提供了一种TM上行出口数据控制单元,包括接收模块、清除模块和发送模块;其中,The embodiment of the present invention further provides a TM uplink export data control unit, including a receiving module, a clearing module, and a sending module;
所述接收模块,配置为接收未分配带宽的流量承载实体号;The receiving module is configured to receive a traffic bearer entity number of unallocated bandwidth;
所述清除模块,配置为对与所述未分配带宽的流量承载实体号对应的数据进行清除处理;The clearing module is configured to perform clearing processing on data corresponding to the traffic bearer entity number of the unallocated bandwidth;
所述发送模块,配置为发送所述未分配带宽的流量承载实体号。The sending module is configured to send the traffic bearer entity number of the unallocated bandwidth.
上述方案中,所述清除模块,还配置为读取TM上行出口数据控制单元中与所述未分配带宽的流量承载实体号对应的数据并进行丢弃;读取TM上行出口数据控制单元中与所述未分配带宽的流量承载实体号对应的描述符并进行丢弃;将数据缓存单元中与所述描述符对应的数据包进行丢弃。In the above solution, the clearing module is further configured to: read data corresponding to the traffic bearer entity number of the unallocated bandwidth in the TM uplink egress data control unit, and discard the data; and read the TM uplink egress data control unit The traffic of the unallocated bandwidth carries the descriptor corresponding to the entity number and discards; and the data packet corresponding to the descriptor in the data buffer unit is discarded.
本发明实施例又提供了一种ONU数据处理装置,包括:数据缓存单元、 TM上行出口数据控制单元、MAC单元以及CPU;其中,The embodiment of the invention further provides an ONU data processing device, comprising: a data buffer unit, TM uplink export data control unit, MAC unit, and CPU; wherein
数据缓存单元,配置为为TM缓存数据;a data cache unit configured to cache data for the TM;
TM上行出口数据控制单元,配置为接收CPU发送的未分配带宽的流量承载实体号,对与所述未分配带宽的流量承载实体号对应的数据进行清除处理;并将所述未分配带宽的流量承载实体号发送给MAC单元;The TM uplink egress data control unit is configured to receive a traffic bearer entity number of the unallocated bandwidth sent by the CPU, perform a clearing process on the data corresponding to the traffic bearer entity number of the unallocated bandwidth, and perform the unallocated bandwidth traffic. The bearer entity number is sent to the MAC unit;
MAC单元,配置为判断是否有带宽,当没有带宽时,对与所述未分配带宽的流量承载实体号对应的数据包标记错误信息,并丢弃标记错误信息的数据包;The MAC unit is configured to determine whether there is bandwidth. When there is no bandwidth, the data packet corresponding to the traffic bearer entity number of the unallocated bandwidth is marked with an error message, and the data packet marked with the error information is discarded;
CPU,配置为将未分配带宽的流量承载实体号发送给TM上行出口数据控制单元。The CPU is configured to send the traffic bearer entity number of the unallocated bandwidth to the TM uplink egress data control unit.
其中,所述TM上行出口数据控制单元为上述任意一种TM上行出口数据控制单元。The TM uplink export data control unit is any one of the above TM uplink export data control units.
上述方案中,所述MAC单元,还配置为当有带宽时,发送与所述未分配带宽的流量承载实体号对应的数据包。In the foregoing solution, the MAC unit is further configured to: when there is a bandwidth, send a data packet corresponding to the traffic bearer entity number of the unallocated bandwidth.
本发明实施例提供的ONU数据处理方法及装置、数据控制单元、存储介质,通过接收未分配带宽的流量承载实体号,并对与所述未分配带宽的流量承载实体号对应的数据进行清除处理;判断是否有带宽,当没有带宽时,对与所述未分配带宽的流量承载实体号对应的数据包标记错误信息,并丢弃标记错误信息的数据包;如此,可使ONU在出现随机拔掉的光纤又再次被插上的情况时,如果重新注册的LLID号或TCONT号与原来不一致,能够清除滞留在ONU内部的残余数据,保证ONU数据处理的正确性。The ONU data processing method and device, the data control unit, and the storage medium provided by the embodiment of the present invention receive the traffic bearer entity number of the unallocated bandwidth, and clear the data corresponding to the traffic bearer entity number of the unallocated bandwidth. Determining whether there is bandwidth, when there is no bandwidth, marking the error packet with the packet corresponding to the traffic bearer entity number of the unallocated bandwidth, and discarding the data packet marked with the error information; thus, the ONU can be randomly unplugged When the optical fiber is plugged in again, if the re-registered LLID number or TCONT number is inconsistent with the original, the residual data retained in the ONU can be cleared to ensure the correctness of the ONU data processing.
附图说明DRAWINGS
图1为本发明实施例ONU数据处理方法的实现流程示意图;1 is a schematic flowchart of an implementation process of an ONU data processing method according to an embodiment of the present invention;
图2为本发明实施例ONU数据处理装置的组成结构示意图;2 is a schematic structural diagram of a structure of an ONU data processing apparatus according to an embodiment of the present invention;
图3为本发明实施例ONU数据处理装置中TM上行出口数据控制单元 的组成结构示意图。3 is a TM uplink export data control unit in an ONU data processing device according to an embodiment of the present invention; Schematic diagram of the composition.
具体实施方式detailed description
在本发明实施例中,接收未分配带宽的流量承载实体号,并对与所述未分配带宽的流量承载实体号对应的数据进行清除处理;判断是否有带宽,当没有带宽时,对与所述未分配带宽的流量承载实体号对应的数据包标记错误信息,并丢弃标记错误信息的数据包。In the embodiment of the present invention, the traffic bearer entity number of the unallocated bandwidth is received, and the data corresponding to the traffic bearer entity number of the unallocated bandwidth is cleared; the bandwidth is determined, and when there is no bandwidth, The packet corresponding to the traffic bearer entity number of the unallocated bandwidth marks the error information, and discards the data packet marked with the error information.
这里,所述接收以及进行清除处理可由ONU中的TM上行出口数据控制单元完成;所述未分配带宽的流量承载实体号来自ONU中的CPU;所述判断、标记以及丢弃操作可由ONU中的MAC单元完成,其中的丢弃是指MAC单元对已经发送到自身的数据完成丢弃处理;另外,对于还未发送到MAC单元的未分配带宽的流量承载实体号对应的数据,可由TM上行出口数据控制单元直接丢弃。Here, the receiving and performing the clearing process may be performed by the TM uplink egress data control unit in the ONU; the unassigned bandwidth traffic bearer entity number is from the CPU in the ONU; the determining, marking, and discarding operations may be performed by the MAC in the ONU The unit is completed, wherein the discarding means that the MAC unit completes the discarding process for the data that has been sent to itself; and, for the data corresponding to the unloaded bandwidth of the unassigned bandwidth that has not been sent to the MAC unit, the data may be controlled by the TM uplink egress data control unit. Discard directly.
为了使本发明实施例的目的、技术方案和优点更加清楚,下面结合附图对本发明实施例作进一步的详细描述。The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
图1为本发明实施例ONU数据处理方法的实现流程示意图,如图1所示,本发明实施例ONU数据处理方法包括以下步骤:FIG. 1 is a schematic flowchart of an ONU data processing method according to an embodiment of the present invention. As shown in FIG. 1 , an ONU data processing method according to an embodiment of the present invention includes the following steps:
步骤101,接收未分配带宽的流量承载实体号;Step 101: Receive a traffic bearer entity number of an unallocated bandwidth.
步骤102:对与所述未分配带宽的流量承载实体号对应的数据进行清除处理;Step 102: Perform a clearing process on data corresponding to the traffic bearer entity number of the unallocated bandwidth.
本步骤可由ONU中的TM上行出口数据控制单元完成;所述未分配带宽的流量承载实体号来自ONU中的CPU;其中,所述流量承载实体号可以是TCONT号,也可以是LLID号。This step can be performed by the TM uplink egress data control unit in the ONU; the unloaded bandwidth traffic bearer entity number is from the CPU in the ONU; wherein the traffic bearer entity number can be a TCONT number or an LLID number.
这里,所述对与所述未分配带宽的流量承载实体号对应的数据进行清除处理包括:读取TM上行出口数据控制单元中与所述未分配带宽的流量承载实体号对应的数据进行丢弃;读取TM上行出口数据控制单元中与所 述未分配带宽的流量承载实体号对应的描述符进行丢弃,并将数据缓存单元中与所述描述符对应的数据包进行丢弃。Here, the performing the clearing process on the data corresponding to the traffic bearer entity number of the unallocated bandwidth includes: reading data corresponding to the traffic bearer entity number of the unallocated bandwidth in the TM uplink egress data control unit, and discarding; Read TM upstream export data control unit The descriptor corresponding to the traffic bearer entity number of the unallocated bandwidth is discarded, and the data packet corresponding to the descriptor in the data buffer unit is discarded.
需要说明的是,在所述TM上行出口数据控制单元接收CPU发送的未分配带宽的流量承载实体号之前,该方法还包括:CPU实时监控流量承载实体号,将未分配带宽的流量承载实体号发送给所述TM上行出口数据控制单元。It is to be noted that before the TM uplink egress data control unit receives the traffic bearer entity number of the unallocated bandwidth sent by the CPU, the method further includes: the CPU monitoring the traffic bearer entity number in real time, and the traffic bearer entity number of the unallocated bandwidth Send to the TM uplink export data control unit.
例如,如果流量承载实体号是TCONT号,CPU会对当前的TCONT号进行监控,判断哪些TCONT号有效的,哪些TCONT号被废弃的,具体的,在拔插光纤之后,CPU监控重新注册的TCONT号与原TCONT号是否一致,从而判断哪些TCONT号是有效的,哪些TCONT号是被废弃的,也就是说,如果重新注册后的TCONT号与原TCONT号不一致时,当前使用的是新注册的TCONT号,而原TCONT号不再被分配带宽,那未被分配带宽的TCONT号就是被废弃的。CPU就将未分配带宽的TCONT号发送给TM上行出口数据控制单元;For example, if the traffic bearer entity number is TCONT, the CPU monitors the current TCONT number to determine which TCONT numbers are valid and which TCONT numbers are discarded. Specifically, after the fiber is removed, the CPU monitors the re-registered TCONT. Whether the number is the same as the original TCONT number, so as to determine which TCONT numbers are valid and which TCONT numbers are discarded, that is, if the TCONT number after re-registration is inconsistent with the original TCONT number, the new registration is currently used. The TCONT number, while the original TCONT number is no longer allocated bandwidth, the TCONT number of the unallocated bandwidth is discarded. The CPU sends the TCONT number of the unallocated bandwidth to the TM uplink export data control unit;
相应的,TM上行出口数据控制单元接收未分配带宽的TCONT号,TM上行出口数据控制单元中具有TCONT数据存储空间和TCONT描述符存储空间;在接收到未分配带宽的TCONT号之后,读取存储在TCONT数据存储空间中的与未分配带宽的TCONT号对应的数据并进行丢弃,读取存储在TCONT描述符存储空间中的与未分配带宽的TCONT号对应的描述符并进行丢弃;并且,将存储在数据缓存单元中的与上述描述符对应的数据包也进行丢弃。Correspondingly, the TM uplink egress data control unit receives the TCONT number of the unallocated bandwidth, and the TM uplink egress data control unit has the TCONT data storage space and the TCONT descriptor storage space; after receiving the TCONT number of the unallocated bandwidth, the read storage Data corresponding to the TCONT number of the unallocated bandwidth in the TCONT data storage space is discarded, and the descriptor corresponding to the TCONT number of the unallocated bandwidth stored in the TCONT descriptor storage space is read and discarded; and, The data packets corresponding to the above descriptors stored in the data buffer unit are also discarded.
步骤103,判断是否有带宽,没有带宽时,对与所述未分配带宽的流量承载实体号对应的数据包标记错误信息,并丢弃标记错误信息的数据包;Step 103: Determine whether there is bandwidth, and if there is no bandwidth, mark the error packet with the data packet corresponding to the traffic bearer entity number of the unallocated bandwidth, and discard the data packet marked with the error information;
本步骤的判断、标记以及丢弃操作可以由MAC单元完成;The judgment, marking and discarding operations of this step can be completed by the MAC unit;
这里,所述方法还包括:有带宽时,发送与所述未分配带宽的流量承 载实体号对应的数据包;其中,所述发送数据包操作可由MAC单元完成。Here, the method further includes: when there is bandwidth, transmitting the traffic with the unallocated bandwidth The data packet corresponding to the entity number; wherein the sending data packet operation can be completed by the MAC unit.
在实际应用中,数据传输过程中如果光纤被拔下,有可能出现部分数据包已到达MAC单元的情况,MAC单元接收TM上行出口数据控制单元发送的未分配带宽的TCONT号,对于已到达MAC单元的与未分配带宽的TCONT号对应的数据包,MAC单元会根据自身的情况进行处理;具体的,MAC单元具有统计带宽使用情况的寄存器,根据寄存器中存储的数据去判断是否仍有带宽;当有带宽时,则将与未分配带宽的TCONT号对应的数据包继续发送出去,当没有带宽时,则先对与未分配带宽的TCONT号对应的数据包标记错误信息,然后再进行丢弃。In practical applications, if the optical fiber is unplugged during data transmission, it may happen that part of the data packet has arrived at the MAC unit, and the MAC unit receives the TCONT number of the unallocated bandwidth sent by the TM uplink egress data control unit, for the MAC that has arrived. The data packet corresponding to the TCONT number of the unallocated bandwidth of the unit, the MAC unit will process according to its own situation; specifically, the MAC unit has a register for statistical bandwidth usage, and judges whether there is still bandwidth according to the data stored in the register; When there is bandwidth, the data packet corresponding to the TCONT number of the unallocated bandwidth is continuously transmitted. When there is no bandwidth, the data packet corresponding to the TCONT number of the unallocated bandwidth is first marked with an error message, and then discarded.
本发明实施例还提出一种计算机可读存储介质,该存储介质包括一组指令,所述指令用于执行如图1所示的方法。Embodiments of the present invention also provide a computer readable storage medium including a set of instructions for performing the method as shown in FIG.
图2为本发明实施例ONU数据处理装置的组成结构示意图,如图2所示,所述ONU数据处理装置包括:数据缓存单元201、TM上行出口数据控制单元202、MAC单元203以及CPU 204;其中,2 is a schematic structural diagram of an ONU data processing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the ONU data processing apparatus includes: a data buffer unit 201, a TM uplink egress data control unit 202, a MAC unit 203, and a CPU 204; among them,
数据缓存单元201,配置为为TM缓存数据;The data cache unit 201 is configured to cache data for the TM;
TM上行出口数据控制单元202,配置为接收CPU 204发送的未分配带宽的流量承载实体号,对与所述未分配带宽的流量承载实体号对应的数据进行清除处理,并将所述未分配带宽的流量承载实体号发送给MAC单元203;The TM uplink egress data control unit 202 is configured to receive the traffic bearer entity number of the unallocated bandwidth sent by the CPU 204, perform clear processing on the data corresponding to the traffic bearer entity number of the unallocated bandwidth, and clear the unallocated bandwidth. The traffic bearer entity number is sent to the MAC unit 203;
MAC单元203,配置为判断是否有带宽,当没有带宽时,对与所述未分配带宽的流量承载实体号对应的数据包标记错误信息,并丢弃标记错误信息的数据包;The MAC unit 203 is configured to determine whether there is bandwidth. When there is no bandwidth, the data packet corresponding to the traffic bearer entity number of the unallocated bandwidth is marked with an error message, and the data packet marked with the error information is discarded;
这里,所述MAC单元203根据自身具有统计带宽使用情况功能的寄存器中存储的数据可以自行判断是否仍有带宽;Here, the MAC unit 203 can determine whether there is still bandwidth according to data stored in a register having a function of counting bandwidth usage.
CPU 204,配置为将未分配带宽的流量承载实体号发送给TM上行出口 数据控制单元202。The CPU 204 is configured to send the traffic bearer entity number of the unallocated bandwidth to the TM uplink exit Data control unit 202.
进一步地,所述MAC单元203,还配置为当有带宽时,发送与所述未分配带宽的流量承载实体号对应的数据包。Further, the MAC unit 203 is further configured to: when there is bandwidth, send a data packet corresponding to the traffic bearer entity number of the unallocated bandwidth.
在实际应用中,假设流量承载实体号是TCONT号,在出现随机拔掉的光纤又再次被插上时,CPU 204监控重新注册的TCONT号与原TCONT号是否一致,从而判断哪些TCONT号是有效的,哪些TCONT号是被废弃的,也就是说,如果重新注册的TCONT号与原来不一致,当前使用的是新注册的TCONT号,而原TCONT号不再被分配带宽,那未被分配带宽的TCONT号就是被废弃的,那么,CPU 204就对所有的TCONT号进行监控,得到未分配带宽的TCONT号发送给TM上行出口数据控制单元202;TM上行出口数据控制单元202中具有TCONT数据存储空间和TCONT描述符存储空间;在接收未分配带宽的TCONT号之后,读取出存储在TCONT数据存储空间中的与未分配带宽的TCONT号对应的数据并进行丢弃,读取出存储在TCONT描述符存储空间中的与未分配带宽的TCONT号对应的描述符并进行丢弃;且将存储在数据缓存单元201中与上述描述符对应的数据包也进行丢弃。In practical applications, it is assumed that the traffic bearer entity number is the TCONT number. When the randomly unplugged fiber is plugged in again, the CPU 204 monitors whether the re-registered TCONT number is consistent with the original TCONT number, thereby determining which TCONT numbers are valid. Which TCONT numbers are discarded, that is, if the re-registered TCONT number is inconsistent with the original, the newly registered TCONT number is currently used, and the original TCONT number is no longer allocated bandwidth, and the bandwidth is not allocated. The TCONT number is discarded. Then, the CPU 204 monitors all the TCONT numbers, and obtains the TCONT number of the unallocated bandwidth and sends it to the TM uplink egress data control unit 202. The TM uplink egress data control unit 202 has the TCONT data storage space. And the TCONT descriptor storage space; after receiving the TCONT number of the unallocated bandwidth, the data corresponding to the TCONT number of the unallocated bandwidth stored in the TCONT data storage space is read and discarded, and the TCONT descriptor is read and stored. a descriptor corresponding to the TCONT number of the unallocated bandwidth in the storage space and discarded; and will be stored in the data cache unit 201 and Corresponding packet descriptor also discarded.
同时,TM上行出口数据控制单元202还会将未分配带宽的TCONT号发送给MAC单元203,对于MAC单元203已经接收到的与未分配带宽的TCONT号对应的数据包,MAC单元203会根据自身的情况进行处理;具体的,MAC单元203具有统计带宽使用情况功能的寄存器,MAC单元203可以根据自身寄存器中存储的数据去判断是否仍有带宽;具体寄存器中存储的统计带宽使用情况,MAC单元203可以基于自身内部的时钟实时更新。当有带宽时,则将与未分配带宽的TCONT号对应的数据包继续发送出去;当没有带宽时,则对与未分配带宽的TCONT号对应的数据包进行标记,标记上错误信息,并丢弃标记错误信息的数据包;进而使得ONU在出现随机 拔掉的光纤又再次被插上时,CPU204监控重新注册的LLID号或TCONT号与原LLID号或TCONT号是否一致,如果重新注册的LLID号或TCONT号与原来不一致,能够清除滞留在其内部的残余数据,保证了ONU数据处理的正确性。At the same time, the TM uplink egress data control unit 202 also transmits the TCONT number of the unallocated bandwidth to the MAC unit 203. For the data packet corresponding to the TCONT number of the unallocated bandwidth that the MAC unit 203 has received, the MAC unit 203 will according to itself. The case is processed; specifically, the MAC unit 203 has a register for counting the bandwidth usage function, and the MAC unit 203 can determine whether there is still bandwidth according to the data stored in the own register; the statistical bandwidth usage stored in the specific register, the MAC unit The 203 can be updated in real time based on its own internal clock. When there is bandwidth, the data packet corresponding to the TCONT number of the unallocated bandwidth is continuously sent out; when there is no bandwidth, the data packet corresponding to the TCONT number of the unallocated bandwidth is marked, the error information is marked, and the error is discarded. Marking the packet of the error message; thus causing the ONU to appear randomly When the unplugged fiber is plugged in again, the CPU 204 monitors whether the re-registered LLID number or TCONT number is consistent with the original LLID number or TCONT number. If the re-registered LLID number or TCONT number is inconsistent with the original, it can clear the stay in the internal The residual data ensures the correctness of the ONU data processing.
图3为本发明实施例ONU数据处理装置中TM上行出口数据控制单元的组成结构示意图,如图3所示,本发明实施例TM上行出口数据控制单元的组成包括:接收模块301、清除模块302和发送模块303;其中,FIG. 3 is a schematic structural diagram of a structure of a TM uplink data control unit in an ONU data processing apparatus according to an embodiment of the present invention. As shown in FIG. 3, the composition of the uplink uplink data control unit of the embodiment of the present invention includes: a receiving module 301, and a clearing module 302. And sending module 303; wherein
所述接收模块301,配置为接收未分配带宽的流量承载实体号;The receiving module 301 is configured to receive a traffic bearer entity number of unallocated bandwidth;
所述清除模块302,配置为对与所述未分配带宽的流量承载实体号对应的数据进行清除处理;The clearing module 302 is configured to perform clear processing on data corresponding to the traffic bearer entity number of the unallocated bandwidth;
所述发送模块303,配置为发送所述未分配带宽的流量承载实体号。The sending module 303 is configured to send the traffic bearer entity number of the unallocated bandwidth.
这里,所述流量承载实体号可以是TCONT号,也可以是LLID号。Here, the traffic bearer entity number may be a TCONT number or an LLID number.
进一步地,所述清除模块302,还配置为读取TM上行出口数据控制单元中与所述未分配带宽的流量承载实体号对应的数据并丢弃;读取TM上行出口数据控制单元中与所述未分配带宽的流量承载实体号对应的描述符并丢弃,将数据缓存单元中与所述描述符相对应的数据包进行丢弃。Further, the clearing module 302 is further configured to: read data corresponding to the traffic bearer entity number of the unallocated bandwidth in the TM uplink egress data control unit, and discard; and read the TM uplink egress data control unit and the The traffic of the unallocated bandwidth carries the descriptor corresponding to the entity number and discards, and discards the data packet corresponding to the descriptor in the data buffer unit.
在实际应用中,所述接收模块301、清除模块302和发送模块303的功能可由位于TM上行出口数据控制单元上的中央处理器(CPU)、或微处理器(MPU)、或数字信号处理器(DSP)、或可编程门阵列(FPGA)实现。In practical applications, the functions of the receiving module 301, the clearing module 302, and the transmitting module 303 may be by a central processing unit (CPU), or a microprocessor (MPU), or a digital signal processor located on the TM upstream egress data control unit. (DSP), or programmable gate array (FPGA) implementation.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序 产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is directed to a method, apparatus (system), and computer program in accordance with an embodiment of the present invention The flow chart and/or block diagram of the product is described. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述仅是本发明实施例的实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明实施例原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明实施例的保护范围。The above is only an embodiment of the embodiments of the present invention, and it should be noted that those skilled in the art can make some improvements and refinements without departing from the principles of the embodiments of the present invention. Retouching should also be considered as the scope of protection of the embodiments of the present invention.
工业实用性Industrial applicability
本发明实施例通过接收未分配带宽的流量承载实体号,并对与所述未分配带宽的流量承载实体号对应的数据进行清除处理;判断是否有带宽,当没有带宽时,对与所述未分配带宽的流量承载实体号对应的数据包标记错误信息,并丢弃标记错误信息的数据包;如此,可使ONU在出现随机拔掉的光纤又再次被插上的情况时,如果重新注册的LLID号或TCONT号与 原来不一致,能够清除滞留在ONU内部的残余数据,保证ONU数据处理的正确性。 The embodiment of the present invention receives the traffic bearer entity number of the unallocated bandwidth, and performs clear processing on the data corresponding to the traffic bearer entity number of the unallocated bandwidth; determines whether there is bandwidth, and when there is no bandwidth, the pair does not The packet corresponding to the traffic bearer entity number of the allocated bandwidth marks the error information, and discards the data packet marked with the error information; thus, the ONU can re-register the LLID when the randomly unplugged fiber is inserted again. Number or TCONT number and Inconsistent, it can clear the residual data that is stuck inside the ONU, and ensure the correctness of the ONU data processing.

Claims (11)

  1. 一种光网络单元ONU数据处理方法,所述方法包括:An optical network unit ONU data processing method, the method comprising:
    接收未分配带宽的流量承载实体号;Receiving a traffic bearer entity number of unallocated bandwidth;
    对与所述未分配带宽的流量承载实体号对应的数据进行清除处理;Clearing data corresponding to the traffic bearer entity number of the unallocated bandwidth;
    判断是否有带宽,当没有带宽时,对与所述未分配带宽的流量承载实体号对应的数据包标记错误信息,并丢弃标记错误信息的数据包。It is determined whether there is bandwidth. When there is no bandwidth, the data packet corresponding to the traffic bearer entity number of the unallocated bandwidth is marked with an error message, and the data packet marked with the error information is discarded.
  2. 根据权利要求1所述的方法,其中,所述流量承载实体号为传输容器TCONT号、或逻辑链路标识LLID号。The method of claim 1, wherein the traffic bearer entity number is a transport container TCONT number, or a logical link identifier LLID number.
  3. 根据权利要求1或2所述的方法,其中,所述对与所述未分配带宽的流量承载实体号对应的数据进行清除处理,包括:The method according to claim 1 or 2, wherein the performing the clearing process on the data corresponding to the traffic bearer entity number of the unallocated bandwidth comprises:
    读取与所述未分配带宽的流量承载实体号对应的流量管理TM上行出口数据控制单元中的数据并进行丢弃;Reading data in the traffic management TM uplink egress data control unit corresponding to the unassigned bandwidth traffic bearer entity number and discarding the data;
    读取与所述未分配带宽的流量承载实体号对应的TM上行出口数据控制单元中的描述符并进行丢弃;Reading a descriptor in the TM uplink export data control unit corresponding to the traffic bearer entity number of the unallocated bandwidth and discarding;
    将数据缓存单元中与所述描述符对应的数据包进行丢弃。The data packet corresponding to the descriptor in the data buffer unit is discarded.
  4. 根据权利要求1所述的方法,其中,所述方法还包括:当有带宽时,发送与所述未分配带宽的流量承载实体号对应的数据包。The method of claim 1, wherein the method further comprises transmitting a data packet corresponding to the traffic bearer entity number of the unallocated bandwidth when there is bandwidth.
  5. 一种TM上行出口数据控制单元,所述TM上行出口数据控制单元包括接收模块、清除模块和发送模块;其中,A TM uplink export data control unit, the TM uplink export data control unit includes a receiving module, a clearing module, and a sending module;
    所述接收模块,配置为接收未分配带宽的流量承载实体号;The receiving module is configured to receive a traffic bearer entity number of unallocated bandwidth;
    所述清除模块,配置为对与所述未分配带宽的流量承载实体号对应的数据进行清除处理;The clearing module is configured to perform clearing processing on data corresponding to the traffic bearer entity number of the unallocated bandwidth;
    所述发送模块,配置为发送所述未分配带宽的流量承载实体号。The sending module is configured to send the traffic bearer entity number of the unallocated bandwidth.
  6. 根据权利要求5所述的TM上行出口数据控制单元,其中,所述流 量承载实体号为传输容器TCONT号、或逻辑链路标识LLID号。The TM uplink egress data control unit according to claim 5, wherein said stream The quantity carrying entity number is the transport container TCONT number or the logical link identifier LLID number.
  7. 根据权利要求5或6所述的TM上行出口数据控制单元,其中,所述清除模块,还配置为读取TM上行出口数据控制单元中与所述未分配带宽的流量承载实体号对应的数据并进行丢弃;The TM uplink egress data control unit according to claim 5 or 6, wherein the clearing module is further configured to read data corresponding to the traffic bearer entity number of the unallocated bandwidth in the TM uplink egress data control unit and Discard;
    读取TM上行出口数据控制单元中与所述未分配带宽的流量承载实体号对应的描述符并进行丢弃;Reading a descriptor corresponding to the traffic bearer entity number of the unallocated bandwidth in the TM uplink export data control unit, and discarding;
    将数据缓存单元中与所述描述符对应的数据包进行丢弃。The data packet corresponding to the descriptor in the data buffer unit is discarded.
  8. 一种ONU数据处理装置,所述装置包括:数据缓存单元、TM上行出口数据控制单元、MAC单元以及CPU;其中,An ONU data processing device, the device comprising: a data buffer unit, a TM uplink egress data control unit, a MAC unit, and a CPU;
    数据缓存单元,配置为为TM缓存数据;a data cache unit configured to cache data for the TM;
    TM上行出口数据控制单元,配置为接收CPU发送的未分配带宽的流量承载实体号;还配置为对与所述未分配带宽的流量承载实体号对应的数据进行清除处理;还配置为将所述未分配带宽的流量承载实体号发送给MAC单元;The TM uplink egress data control unit is configured to receive a traffic bearer entity number of the unallocated bandwidth sent by the CPU, and configured to perform a clearing process on the data corresponding to the traffic bearer entity number of the unallocated bandwidth, and configured to: The traffic bearer entity number of the unallocated bandwidth is sent to the MAC unit;
    MAC单元,配置为判断是否有带宽,当没有带宽时,对与所述未分配带宽的流量承载实体号对应的数据包标记错误信息,并丢弃标记错误信息的数据包;The MAC unit is configured to determine whether there is bandwidth. When there is no bandwidth, the data packet corresponding to the traffic bearer entity number of the unallocated bandwidth is marked with an error message, and the data packet marked with the error information is discarded;
    CPU,配置为将未分配带宽的流量承载实体号发送给TM上行出口数据控制单元。The CPU is configured to send the traffic bearer entity number of the unallocated bandwidth to the TM uplink egress data control unit.
  9. 根据权利要求8所述的装置,其中,所述TM上行出口数据控制单元为权利要求5至7任一项所述的TM上行出口数据控制单元。The apparatus according to claim 8, wherein said TM uplink data control unit is the TM uplink data control unit according to any one of claims 5 to 7.
  10. 根据权利要求8或9所述的装置,其中,所述MAC单元,还配置为当有带宽时,发送与所述未分配带宽的流量承载实体号对应的数据包。The apparatus according to claim 8 or 9, wherein the MAC unit is further configured to, when there is bandwidth, transmit a data packet corresponding to the traffic bearer entity number of the unallocated bandwidth.
  11. 一种计算机可读存储介质,该存储介质包括一组指令,所述指令用于执行权利要求1至4任一项所述的方法。 A computer readable storage medium comprising a set of instructions for performing the method of any one of claims 1 to 4.
PCT/CN2015/076494 2014-10-24 2015-04-13 Data processing method and device, data control unit and storage medium WO2016062034A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410577404.7A CN105592372B (en) 2014-10-24 2014-10-24 A kind of optical network unit data processing method and device, DCU data control unit
CN201410577404.7 2014-10-24

Publications (1)

Publication Number Publication Date
WO2016062034A1 true WO2016062034A1 (en) 2016-04-28

Family

ID=55760190

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/076494 WO2016062034A1 (en) 2014-10-24 2015-04-13 Data processing method and device, data control unit and storage medium

Country Status (2)

Country Link
CN (1) CN105592372B (en)
WO (1) WO2016062034A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895791A (en) * 2009-05-21 2010-11-24 中兴通讯股份有限公司 Protection switching method and device in Ethernet passive optical network
CN101924688A (en) * 2009-06-17 2010-12-22 中兴通讯股份有限公司 Uplink bandwidth allocation method and device
CN102421038A (en) * 2010-09-24 2012-04-18 美国博通公司 Optical network unit and method thereof
WO2012120645A1 (en) * 2011-03-08 2012-09-13 株式会社日立製作所 Pon system, optical line terminal device and optical transmission path terminal device
US20130209103A1 (en) * 2012-02-13 2013-08-15 Marvell World Trade Ltd. Method and apparatus for dynamically allocating bandwidth to a client in a passive optical network

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257347B (en) * 2007-02-28 2011-07-13 株式会社日立制作所 Method and apparatus for bandwidth allocation
US8913549B2 (en) * 2011-08-11 2014-12-16 Cortina Access, Inc. Congestion control in an optical line terminal
CN103152128B (en) * 2013-02-01 2016-01-13 北京邮电大学 Based on the network code connection management method of peer-to-peer communications flow triggering
CN103763148B (en) * 2014-02-25 2019-12-20 上海斐讯数据通信技术有限公司 ONU automatic authorization configuration recovery method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895791A (en) * 2009-05-21 2010-11-24 中兴通讯股份有限公司 Protection switching method and device in Ethernet passive optical network
CN101924688A (en) * 2009-06-17 2010-12-22 中兴通讯股份有限公司 Uplink bandwidth allocation method and device
CN102421038A (en) * 2010-09-24 2012-04-18 美国博通公司 Optical network unit and method thereof
WO2012120645A1 (en) * 2011-03-08 2012-09-13 株式会社日立製作所 Pon system, optical line terminal device and optical transmission path terminal device
US20130209103A1 (en) * 2012-02-13 2013-08-15 Marvell World Trade Ltd. Method and apparatus for dynamically allocating bandwidth to a client in a passive optical network

Also Published As

Publication number Publication date
CN105592372A (en) 2016-05-18
CN105592372B (en) 2019-07-19

Similar Documents

Publication Publication Date Title
US7801161B2 (en) Gigabit passive optical network (GPON) residential gateway
JP2015522968A5 (en)
CN106717111B (en) Method, device and system for receiving CPRI data stream and Ethernet frame
WO2017097008A1 (en) Access method and apparatus for multiple optical network units, and storage medium
CN103209072B (en) A kind of MACsec key updating methods and equipment
WO2018210225A1 (en) Method and device for automatically implementing ioam encapsulation, and storage medium
TW200719638A (en) Method and apparatus for facilitating differentiated service qualities in an ethernet passive optical network
US11019038B2 (en) Methods to strengthen cyber-security and privacy in a deterministic internet of things
WO2010083681A1 (en) Bandwidth allocation method and routing apparatus
JP5968841B2 (en) Network device and processor monitoring method
WO2016086542A1 (en) Message transmission method and device, and computer storage medium
US20140093239A1 (en) Olt mac module for efficiently processing oam frames
WO2016078312A1 (en) Single board testing method and device
RU2013106261A (en) METHOD AND DEVICE FOR DISTRIBUTING VIRTUAL LOCAL NETWORK
JP2008129767A (en) Network apparatus
CN104185970A (en) Discovering forwarding information for local repair
WO2016082367A1 (en) Method and device for realizing hardware table traversal based on network processor
WO2016050022A1 (en) Method, device, system and computer storage medium for allocating uplink bandwidth
US9137158B2 (en) Communication apparatus and communication method
US20090041455A1 (en) Passive optical network systems with loop detection capability and methods for the loop detection
WO2016011819A1 (en) Optical network unit (onu) service opening method, apparatus and storage medium
WO2016101600A1 (en) Line card determination, determination processing method and device, and line card determination system
WO2016062034A1 (en) Data processing method and device, data control unit and storage medium
US9112772B2 (en) OLT and frame transfer control method
JP2011529317A5 (en)

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15852339

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15852339

Country of ref document: EP

Kind code of ref document: A1