WO2017124684A1 - Optical network terminal and method for capturing abnormal message of optical network terminal - Google Patents

Optical network terminal and method for capturing abnormal message of optical network terminal Download PDF

Info

Publication number
WO2017124684A1
WO2017124684A1 PCT/CN2016/085735 CN2016085735W WO2017124684A1 WO 2017124684 A1 WO2017124684 A1 WO 2017124684A1 CN 2016085735 W CN2016085735 W CN 2016085735W WO 2017124684 A1 WO2017124684 A1 WO 2017124684A1
Authority
WO
WIPO (PCT)
Prior art keywords
cont
preset
data frame
storage buffer
register
Prior art date
Application number
PCT/CN2016/085735
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 WO2017124684A1 publication Critical patent/WO2017124684A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0791Fault location on the transmission path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/27Arrangements for networking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring

Definitions

  • the present application relates to, but is not limited to, the field of optical network terminal technologies, and in particular, to an abnormal packet capture method for an optical network terminal and an optical network terminal.
  • the GPON (Gigabit-Capable Passive Optical Network) system is mainly composed of an OLT (Optical Line Termina), an ODN (Optical Distribution Network), and an ONT (Optical Network Terminal).
  • the composition is a point-to-multipoint structure, that is, one optical line terminal is connected to a plurality of optical network units.
  • the OLT is generally placed in a telecommunications room and can be connected to 32/64/128 ONT devices.
  • the ONT equipment is placed at a location away from the user's corridor with a maximum distance of 60 kilometers from the central office.
  • the transmission container T-CONT Transmission Containe
  • the uplink transmission container in GPON which is the basic unit for uplink bandwidth request and allocation.
  • Each ONT supports multiple TCONTs (the number of specific supports is determined by the ONT capability), usually Can support 8, 16, 32, 64.
  • the GPON system divides the uplink into different time slots, and uses a DBA (Dynamic Bandwidth Allocation, Dynamic Bandwidth Allocation) algorithm to allocate a transmission time slot to each transmission container T-CONT.
  • the ONT transmits the transmission container T-CONT in the allocated time slot.
  • the data The data.
  • Each transport container T-CONT generally supports 4-8 queues, and the GPON ONT upstream traffic is scheduled in the transport container T-CONT queue.
  • the ONT device supports dozens of user ports (each port is connected to one user), and aggregates uplink data of different services of all users to the Internet through the GPON system, and forwards the received downlink data to each user through a certain forwarding policy. port.
  • the ONT device In the on-site environment, the ONT device often receives a large number of protocol packets and causes abnormal hangs. After the device restarts automatically, the fault recurrence time is uncertain. It may be 1 hour or several days. The faulty device is directly attached to the central office OLT, and the problem cannot be reproduced.
  • the reason why the device is abnormally hanged is as follows: the protocol packet is invalid, the ONT software itself is BUG, and so on. Under current technical conditions, each ONT manufacturer excludes non-data such as temperature. If the cause is abnormal, the abnormal packet data is usually obtained by the following method to locate the cause of the hang.
  • Method 1 Connect a laptop to the ONT network port, perform data mirroring configuration on the ONT, copy the data stream to the network port connected to the notebook, and then open the packet capture tool on the laptop to capture the packet in real time. Since the ONT layout environment is far from the central office and the situation is complicated, it takes a lot of manpower to implement the method, and is subject to the ONT installation environment, which seriously hinders the progress speed of the fault resolution.
  • Method 2 Remotely enable the underlying ONT printing, and store all received messages in a log file for analysis and processing. Due to the uncertainty of the fault recurrence time, the packet capture process must be continued, so that the CPU resources are occupied in a large amount, which seriously affects the normal operation of the ONT.
  • Method 3 Store the received packets in a memory device such as high-end memory. After the packet capture process is enabled, the device running memory will be squeezed out, and the system performance and stability will be seriously affected.
  • Method 4 Store the received message in an external storage device such as FLASH. Since the CPU writes data to the external storage device slowly and the embedded device has limited external storage, the method is difficult to implement during the operation of the device.
  • Each of the above methods can obtain the packet data that causes the device to be abnormal. However, each method takes a long time to obtain the packet data that causes the device to be abnormal.
  • the main purpose of the embodiments of the present invention is to provide an abnormal packet capture method for an optical network terminal and an optical network terminal, which can solve the problem that it takes a long time to obtain packet data that causes the device to be abnormal.
  • An optical network terminal includes: a processor, a first chip, a second chip, a monitoring module, and a register control module, wherein the register control module is connected to the processor and the monitoring module,
  • the first chip includes a transfer container T-CONT and a register, and the register control module is further connected to the register, wherein:
  • the processor is configured to, after receiving the packet, encapsulate the packet into a data frame of a preset format, and forward the data frame to the first chip by using the second chip.
  • the first chip is configured to store the data frame in a pre-received manner when the data frame is received Set in the storage buffer of the T-CONT.
  • the monitoring module is configured to send a reset signal to the register control module when the processor abnormality is detected.
  • the register control module is configured to set a preset bit position of the register to a preset value after receiving the reset signal.
  • the first chip is further configured to send the data frame in the storage buffer of the T-CONT to the optical line terminal when the preset bit of the register is a preset value.
  • the first chip includes:
  • a reporting unit configured to report length information of all data frames in the storage buffer of the T-CONT to the optical line terminal.
  • a receiving unit configured to receive a time slot that the optical line terminal feeds back based on the length information.
  • a sending unit configured to send the data frame in the storage buffer of the T-CONT to the optical line terminal in the received time slot.
  • the first chip is further configured to: detect whether a preset bit of the register is the preset value.
  • the data frame in the storage buffer of the T-CONT is transmitted to the optical line terminal.
  • the optical line terminal does not feed back the slot information to the optical network terminal.
  • the processor is further configured to: after receiving the packet, intercept data of a preset byte length of the packet, and encapsulate the data into a data frame of a preset format.
  • the packet is divided into different types, and the processor is further configured to encapsulate the intercepted data of different types of packets into data frames of different types of preset formats.
  • the storage buffer of the T-CONT is a ring stack area.
  • An abnormal packet capture method for an optical network terminal includes:
  • the packet After receiving the packet, the packet is encapsulated into a data frame in a preset format;
  • the data frame is stored in a storage buffer of a preset transmission container T-CONT;
  • the data frame in the storage buffer of the transmission container T-CONT is sent to the optical line terminal.
  • the compressing the packet into a data frame in a preset format comprises: intercepting data of a preset byte length of the packet and packaging the data frame into a preset format.
  • the packet is divided into different types, and the method further includes: encapsulating the intercepted data of different types of packets into data frames of different types of preset formats.
  • the sending the data frame in the storage buffer of the T-CONT to the optical line terminal includes:
  • the method further includes: detecting whether the preset bit of the register is the preset value.
  • the data frame in the storage buffer of the T-CONT is transmitted to the optical line terminal.
  • the optical line terminal does not feed back the slot information to the optical network terminal.
  • the storage buffer of the T-CONT is a ring stack area.
  • a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the abnormal message capture method of the optical network terminal.
  • the processor After receiving the packet, the processor encapsulates the packet into a data frame of a preset format, and forwards the data frame to the first chip by using the second chip;
  • the chip When receiving the data frame, the chip stores the data frame in a storage buffer of the T-CONT, and provides a data foundation for capturing a message before the optical network terminal is abnormally suspended, and is monitored by the monitoring module.
  • the register control module Setting a preset bit position of the register to a preset value; when the preset bit of the register is a preset value, the first chip sends the data frame in the storage buffer of the T-CONT to The optical line terminal, that is, the timing of transmitting the data frame in the storage buffer of the T-CONT by the register control module, and the preset of the register is only when the monitoring module detects the abnormality of the processor
  • the bit position is a preset value, so that the data frame in the storage buffer of the T-CONT is sent to the optical line terminal, thereby solving the problem that it takes a long time to obtain the packet data that causes the device to be abnormal. In turn, the time required to solve the equipment failure can be reduced, and the efficiency of solving the failure can be improved.
  • FIG. 1 is a schematic structural diagram of an optical network terminal according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a data frame stored in a related transport container T-CONT;
  • FIG. 3 is a schematic diagram of a refinement function module of the first chip of FIG. 1;
  • FIG. 4 is a schematic flowchart of a first embodiment of an abnormal packet capture of an optical network terminal according to an embodiment of the present invention
  • FIG. 5 is a schematic flowchart diagram of a second embodiment of an abnormal packet capture of an optical network terminal according to an embodiment of the present invention.
  • an embodiment of the present invention provides an optical network terminal.
  • FIG. 1 is a schematic structural diagram of an optical network terminal according to an embodiment of the present invention.
  • the optical network terminal includes: a first chip 10, a processor 11, a second chip 12, a monitoring module 13 and a register control module 14, and the register control module 14 is connected to the processor 11 and the monitoring module 13,
  • the first chip 10 includes a transfer container T-CONT 15 and a register 16, and the register control module 14 is also coupled to the register 16.
  • the processor 11 is configured to, after receiving the packet, encapsulate the packet into a data frame of a preset format, and forward the data frame to the first chip 10 through the second chip 12 .
  • the processor 11 is a central control module of the optical network terminal, preferably a CPU, and the second chip 12 is preferably a switch chip, and the first chip 10 is preferably For the PON-MAC chip. All the switching chips received by the processor include the Internet Group Management Protocol (IGMP), the Dynamic Host Configuration Protocol (DHCP), and the ARP (Address Resolution Protocol).
  • IGMP Internet Group Management Protocol
  • DHCP Dynamic Host Configuration Protocol
  • ARP Address Resolution Protocol
  • the data frame in the preset format is a data frame in a frame format as described in FIG. 2, and the data frame includes a destination MAC address, a source MAC address, a constant value field, a vlan+priority field, a type field, a length field, and a packet.
  • the destination MAC address is set to the MAC address of the ONT next hop gateway, and the source MAC address field may be set to the CPU inband MAC, and the constant value field is set to OX8100, indicating that the frame includes an 802.1Q VLAN tag, and the vlan+
  • the priority field can be flexibly set according to the needs of the service, and is a basis for the PON-MAC chip to forward to different GEMPORTs (for bearer services) under the transport container.
  • the type field is the packet received by the CPU and other types.
  • the difference field of the message may be set to OX8900, where the length field is the length field of the message, that is, how many bytes of the message are, and the message data is the message received by the CPU. .
  • the network driver After the received packet is encapsulated into a data frame, the network driver sends a packet interface function, and sends the encapsulated data frame to an uplink port of the switch chip, and then sends the data frame to the PON through the uplink port.
  • -MAC chip The uplink port of the switch chip is a port that is connected to a PON-MAC chip through an interface such as a Gigabit Medium Independent Interface (GMII), and all uplink data sent to the OLT is sent to the PON through the port.
  • GMII Medium Independent Interface
  • the MAC chip, and the downlink data sent from the OLT enters the switch chip through the port through the PON-MAC chip, and is forwarded to the destination user port or the CPU port.
  • the processor 11 is further configured to: after receiving the packet, intercept data of a preset byte length of the packet, and encapsulate the data into a data frame of a preset format.
  • the preset byte length of the packet is a preset number of bytes for intercepting the packet.
  • the data of the preset byte length is intercepted from the destination MAC (Media Access Control) address data of the received message until the data of the preset byte is intercepted.
  • the preset byte length is 500 bytes
  • the data of the preset byte length is calculated from the destination MAC address data of the packet, until the 500 message data is obtained.
  • the 500 bytes of data of the obtained packet is the data of the preset byte length.
  • the interception data of different types of packets can be encapsulated into data frames of different priorities.
  • different types of packets can be encapsulated into different vlan+priority frames.
  • the PON-MAC chip can match data frames according to preset classification rules, so that frames matching different classification rules are sent to T-CONT. Storage slots of different priorities under the storage buffer.
  • the first chip 10 is configured to store the data frame in a storage buffer of the preset transmission container T-CONT when the data frame is received.
  • the first chip 10 preferably a PON-MAC chip, stores the data frame in a preset storage buffer of the T-CONT when receiving the data frame.
  • the storage buffer of the transport container T-CONT includes a plurality of priority queues.
  • the storage buffer of the T-CONT is organized into a ring stack area having different transmission priorities, that is, a ring stack area including a plurality of different priorities. Taking the storage buffer of the T-CONT as a ring stack area as an example, the process of storing data frames in the storage buffer of the T-CONT is as follows:
  • the data frame is filled to the data block currently pointed by the cursor, and the stack area cursor points clockwise to the start position of the next data block, if If the data block pointed to by the current cursor has been occupied, the data filled in the data block is overwritten with the data of the current data frame, which is a pre-allocated fixed length data storage unit.
  • the reason why the storage buffer of the T-CONT is set to a plurality of ring stacks of different priorities is that the packet causing the ONT to be abnormally hanged should be a finite number of packets received before the hang, and the previous period is received.
  • the received packet is irrelevant, and the closer the packet is received, the closer the ONT device hangs, the more likely the ONT device hangs. Therefore, the storage buffer of the T-CONT is set to be different.
  • the priority ring stack area can be used to send only a part of the data frame in the ring stack area when transmitting the message in the ring stack area.
  • the monitoring module 13 is configured to send a reset signal to the register control module 14 when the processor 11 is detected to be abnormal.
  • the monitoring module 13, preferably a watchdog circuit, is preferably a CPLD.
  • the watchdog circuit is a timer circuit. It generally has an input and an output. The input is called a dog. The output is generally connected to the reset terminal of another part.
  • the basic working principle is as follows: After that, the watchdog counter is started. At this time, the watchdog starts to automatically time. If it reaches a certain time, it will not be cleared. The watchdog meter The counter will overflow and cause the watchdog to be interrupted, causing a system reset. For example, when the watchdog circuit does not receive the dog feed signal sent by the CPU for a period of time, that is, the CPU abnormality is detected, for example, the CPU is in a program running state or an infinite loop state, etc. The watchdog circuit sends a reset signal to the CPLD connected to it.
  • the register control module 14 is configured to set a preset bit position of the register 16 to a preset value after receiving the reset signal.
  • the register control module 14 takes the CPLD as an example, and after receiving the reset signal sent by the monitoring circuit, configures a preset bit of the register in the PON-MAC chip through the PCI bus.
  • the preset bit is a control bit for controlling the T-CONT by the register.
  • the preset value is '1' representing a high level.
  • the first chip 10 is further configured to send the data frame in the storage buffer of the T-CONT 15 to the optical line terminal when the preset bit of the register 16 is a preset value.
  • the preset bit of the register is a preset value.
  • the preset bit of the register is '1'
  • the first chip first sends a data frame filled in a data block pointed by the current cursor in each ring stack area, and after the transmission is completed, the cursor is in a counterclockwise direction. Pointing to the starting position of the previous data block, continue to send the data frame filled in the data block pointed by the cursor until all the data frames stored in the ring stack area are sent or the authorized time slot ends.
  • the above sending process is Taking the storage buffer of the transport container T-CONT as a ring stack area as an example.
  • the first chip 10 includes a reporting unit 100, a receiving unit 101, and a transmitting unit 102.
  • the reporting unit 100 is configured to report length information of all data frames in the storage buffer of the T-CONT to the optical line terminal.
  • the receiving unit 101 is configured to receive a time slot that the optical line terminal feeds back based on the length information, where the optical line terminal does not feed back a time slot to the optical network terminal when the length information is zero information.
  • the sending unit 102 is configured to send a data frame in the storage buffer of the T-CONT to the optical line terminal in the received time slot.
  • the OLT when the first chip of the ONT sends the data frame in the storage buffer of the T-CONT to the OLT, it needs to send a DBA report to the OLT, and report the storage buffer in the storage buffer T-CONT.
  • the length information of all data frames the OLT will check the DBA report, It is then decided whether to grant the first chip of the ONT the time slot in which the data frame stored in the storage buffer of the T-CONT is transmitted. For example, if the sent report reports the actual length information of the data frame stored in the storage buffer of the T-CONT, according to the standard G.984.3 protocol, the OLT sends an authorization to the ONT to grant the storage of the T-CONT.
  • the PON-MAC chip transmits a data frame stored in a storage buffer of the T-CONT within the authorized time slot; if the transmitted report reports the T-CONT The length information of the data frame stored in the storage buffer is zero.
  • the OLT does not grant the ONT a time slot for transmitting the data frame stored in the storage buffer of the T-CONT, so that the PON- The MAC chip cannot transmit the data frame stored in the storage buffer of the transport container T-CONT.
  • only the preset bit of the register is a preset value. Reporting the length information of all data frames in the storage buffer of the T-CONT, and reporting all the storage buffers in the T-CONT when the preset bits of the register are not preset values.
  • the length information of the data frame is zero, that is, there is no data frame to be sent in the storage buffer of the T-CONT, so that the PON-MAC chip cannot transmit the data frame stored in the storage buffer of the T-CONT.
  • the processor After receiving the packet, the processor encapsulates the packet into a data frame of a preset format, and forwards the data frame to the first chip by using the second chip; the first chip When the data frame is received, the data frame is stored in a storage buffer of the T-CONT, and provides a data foundation for capturing a message before the optical network terminal is abnormally suspended, and monitoring the device through the monitoring module.
  • the register control module sets the preset bit position of the register to a preset value;
  • the first chip sends the data frame in the storage buffer of the T-CONT to the optical line terminal, that is, the T is controlled by the register control module to send the T - the timing of the data frame in the storage buffer of -CONT, only when the monitoring module detects the abnormality of the processor, the preset bit position of the register is set to a preset value, thereby causing the T-CO
  • the data frame in the storage buffer of the NT is sent to the optical line terminal, which solves the problem that it takes a long time to obtain the packet data that causes the device to be abnormal, thereby reducing the time required to solve the device failure and improving the solution. The efficiency of the failure.
  • the first embodiment of the method for capturing an abnormal packet of the optical network terminal is provided.
  • the abnormal packet capture of the optical network terminal is performed.
  • the method includes the following steps S10-S30:
  • Step S10 The first chip receives the data frame sent by the second chip, and stores the data frame in a storage buffer of a preset T-CONT.
  • the data frame may be a data frame that is encapsulated into a preset format by the processor after receiving the message.
  • the processor is a central control module of the optical network terminal, preferably a CPU, the second chip, preferably a switch chip, and the first chip, preferably a PON-MAC chip. All the switching chips received by the processor include the Internet Group Management Protocol (IGMP), the Dynamic Host Configuration Protocol (DHCP), and the ARP (Address Resolution Protocol).
  • IGMP Internet Group Management Protocol
  • DHCP Dynamic Host Configuration Protocol
  • ARP Address Resolution Protocol
  • the data frame includes a destination MAC address, a source MAC address, a constant value field, a vlan+priority field, a type field, a length field, and a packet.
  • the destination MAC address is set to the MAC address of the ONT next hop gateway, and the source MAC address field may be set to the CPU inband MAC, and the constant value field is set to OX8100, indicating that the frame includes an 802.1Q VLAN tag, and the vlan+
  • the priority field can be flexibly set according to the needs of the service, and is a basis for the PON-MAC chip to forward to different GEMPORTs (for bearer services) under the transport container.
  • the type field is the packet received by the CPU and other types.
  • the difference field of the message may be set to OX8900, where the length field is the length field of the message, that is, how many bytes of the message are, and the message data is the message received by the CPU. .
  • the data frame is a data frame in which the processor intercepts the preset byte length of the packet after receiving the packet, and encapsulates the data into a preset format.
  • the preset byte length of the packet is a preset number of bytes for intercepting the packet.
  • the data of the preset byte length is intercepted from the destination MAC (Media Access Control) address data of the received message until the data of the preset byte is intercepted. For example, if the preset byte length is 500 bytes, the data of the preset byte length is calculated from the destination MAC address data of the packet, until the 500 message data is obtained.
  • the 500 bytes of data of the obtained packet is the data of the preset byte length.
  • the intercepted data of different types of packets can be encapsulated into data frames of different priorities.
  • different types of packets can be encapsulated into different vlan+priority frames.
  • the PON-MAC chip can match data frames according to preset classification rules, so that frames matching different classification rules are sent to T-CONT. Storage slots of different priorities under the storage buffer.
  • the network driver After the received packet is encapsulated into a data frame, the network driver sends a packet interface function, and sends the encapsulated data frame to an uplink port of the switch chip, and then sends the data frame to the PON through the uplink port.
  • -MAC chip The uplink port of the switch chip is a port that is connected to a PON-MAC chip through an interface such as a Gigabit Medium Independent Interface (GMII), and all uplink data sent to the OLT is sent to the PON through the port.
  • GMII Medium Independent Interface
  • the MAC chip, and the downlink data sent from the OLT enters the switch chip through the port through the PON-MAC chip.
  • the data frame Upon receiving the data frame, the data frame is stored in a storage buffer of the T-CONT.
  • the storage buffer of the T-CONT includes a plurality of priority queues.
  • the storage buffer of the T-CONT is organized into a ring stack area having different transmission priorities, that is, a ring stack area including a plurality of different priorities. Taking the storage buffer of the T-CONT as a ring stack area as an example, the process of storing data frames in the storage buffer of the T-CONT is as follows:
  • the data frame is filled to the data block currently pointed by the cursor, and the stack area cursor points clockwise to the start position of the next data block, if If the data block pointed to by the current cursor has been occupied, the data filled in the data block is overwritten with the data of the current data frame, which is a pre-allocated fixed length data storage unit.
  • the reason why the storage buffer of the T-CONT is set to a plurality of ring stacks of different priorities is that the packet causing the ONT to be abnormally hanged should be a finite number of packets received before the hang, and the previous period is received.
  • the received packet is irrelevant, and the closer the packet is received, the closer the ONT device hangs, the more likely the ONT device hangs. Therefore, the storage buffer of the transport container T-CONT is set to be large.
  • the ring stack areas of different priorities may be configured to send only a part of the data frames in the ring stack area when transmitting the message in the ring stack area.
  • Step S20 the first chip detects whether a preset bit of the register that controls the T-CONT is a preset value.
  • the first chip takes a PON-MAC chip as an example, and controls the transmission in real time or timing detection.
  • the preset bit is a control bit for controlling the T-CONT by the register.
  • the preset value is '1' representing a high level.
  • the preset bits of the register can be controlled by a register control module of the optical network terminal.
  • the register control module takes the CPLD as an example, and after receiving the reset signal sent by the monitoring module, configures a preset bit of the register in the PON-MAC chip through the PCI bus.
  • the monitoring module is preferably a watchdog circuit.
  • the watchdog circuit is a timer circuit, generally having an input and an output, wherein the input is called a dog, and the output is generally connected to another part.
  • the reset operation of the reset terminal is as follows: After the whole system is running, the watchdog counter is started. At this time, the watchdog starts to automatically time. If it reaches a certain time, it does not clear it. The dog counter will overflow and cause a watchdog interrupt, causing a system reset. For example, when the watchdog circuit does not receive the dog feed signal sent by the CPU for a period of time, that is, the CPU abnormality is detected, for example, the CPU is in a program running state or an infinite loop state, etc. The watchdog circuit sends a reset signal to the CPLD connected thereto, and the CPLD configures the preset bit position of the register in the PON-MAC chip to be '1' through the PCI bus.
  • Step S30 if the preset bit of the register is the preset value, the first chip sends the data frame in the storage buffer of the T-CONT to the optical line terminal.
  • the first chip for example, the PON-MAC chip, will first send each ring stack.
  • the data frame filled in the data block pointed to by the current cursor in the area after the transmission is completed, the cursor points to the start position of the previous data block in the counterclockwise direction, and continues to send the data frame filled in the data block pointed by the cursor until the circular stack area is All the data frames stored in the end are sent or the end of the authorized time slot.
  • the above sending process is an example in which the storage buffer of the T-CONT is a ring stack area.
  • the processor After receiving the packet, the processor encapsulates the packet into a data frame of a preset format, and forwards the data frame to the first chip by using the second chip;
  • the chip When receiving the data frame, the chip stores the data frame in a storage buffer of the T-CONT, and provides a data foundation for capturing a message before the optical network terminal is abnormally suspended, and is monitored by the monitoring module.
  • the register control module is configured to The preset bit position is a preset value; when the preset bit of the register is a preset value, the first chip sends the data frame in the storage buffer of the T-CONT to the optical line terminal, that is, The timing of transmitting the data frame in the storage buffer of the T-CONT is controlled by the register control module, and the preset bit position of the register is preset only when the monitoring module detects the abnormality of the processor.
  • the value which in turn causes the data frame in the storage buffer of the T-CONT to be sent to the optical line terminal, thereby solving the problem that it takes a long time to obtain the packet data causing the device abnormality, and the solution is reduced.
  • the time required for the failure increases the efficiency of troubleshooting.
  • the step S30 includes steps S31-S34:
  • Step S31 the reporting unit reports length information of all data frames in the storage buffer of the T-CONT when the preset bit of the register is a preset value.
  • Step S32 the first chip receives a time slot that the optical line terminal feeds back based on the actual length information.
  • Step S33 the first chip sends a data frame in the storage buffer of the T-CONT to the optical line terminal in the received time slot.
  • the OLT checks the DBA report and then decides whether to grant the first chip of the ONT the time slot of the data frame stored in the storage buffer of the transport container T-CONT. For example, if the transmitted DBA report reports the actual length information of the data frame stored in the storage buffer of the T-CONT, that is, the true length of the data frame, the OLT sends an authorization to the ONT according to the standard G.984.3 protocol. Granting a time slot for transmitting a data frame stored in a storage buffer of the T-CONT, and the PON-MAC chip transmits a data frame stored in a storage buffer of the T-CONT within an authorized time slot;
  • the method further includes:
  • Step S34 if the preset bit of the register is not the preset value, the first chip reports the length information of all data frames in the storage buffer of the transmission container T-CONT to the optical line terminal.
  • the optical line terminal does not feed back time slot information to the optical network terminal, so that when the optical line terminal does not feed back to the optical network terminal Gap information.
  • the first chip detects that the preset bit of the register is not a preset value in real time or timing, for example, the preset bit of the register is '0', the first chip reports to the optical line terminal
  • the sent DBA report reports that the length information of the data frame stored in the storage buffer of the T-CONT is zero, according to the standard G.984.3 protocol.
  • the OLT does not grant the ONT a time slot for transmitting a data frame stored in the storage buffer of the T-CONT, such that the PON-MAC chip cannot transmit the data frame stored in the storage buffer of the T-CONT.
  • only the preset bit of the register is a preset value. Reporting the length information of all data frames in the storage buffer of the T-CONT, and reporting all the storage buffers in the T-CONT when the preset bits of the register are not preset values.
  • the length information of the data frame is zero, that is, there is no data frame to be sent in the storage buffer of the T-CONT, so that the PON-MAC chip cannot transmit the data frame stored in the storage buffer of the T-CONT.
  • the preset bit of the register when the preset bit of the register is a preset value, the length information of all data frames in the storage buffer of the transport container T-CONT is reported, and the preset bit of the register is not When the value is preset, the length information of all data frames in the storage buffer of the transmission container T-CONT is reported to be zero, thereby controlling all data frames in the storage buffer of the transmission container T-CONT to be issued.
  • the time slot avoids the waste of uplink bandwidth caused by the PON-MAC chip in the ONT continuously transmitting the data frame stored in the storage buffer of the transport container T-CONT to the OLT.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • a storage medium such as ROM/RAM, disk
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in each embodiment of the present invention.
  • a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the abnormal message capture method of the optical network terminal.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the processor After receiving the packet, the processor encapsulates the packet into a data frame of a preset format, and forwards the data frame to the first chip by using the second chip;
  • the chip When receiving the data frame, the chip stores the data frame in a storage buffer of the T-CONT, and provides a data foundation for capturing a message before the optical network terminal is abnormally suspended, and is monitored by the monitoring module.
  • the register control module sets the preset bit position of the register as a preset a value; when the preset bit of the register is a preset value, the first chip sends the data frame in the storage buffer of the T-CONT to the optical line terminal, that is, the sending control station is controlled by the register control module.
  • the timing of the data frame in the storage buffer of the T-CONT only when the monitoring module detects the abnormality of the processor, the preset bit position of the register is set to a preset value, thereby The data frame in the storage buffer of the T-CONT is sent to the optical line terminal, which solves the problem that it takes a long time to obtain the packet data causing the device abnormality, thereby reducing the time required for solving the device failure. Improve the efficiency of troubleshooting.

Abstract

Disclosed in the present application are an optical network terminal and a method for capturing an abnormal message of an optical network terminal, the optical network terminal comprising: a processor configured to encapsulate, after receiving a message, the message into a data frame in a preset format, and forward the data frame to a first chip by means of a second chip; the first chip being configured to store, when having received the data frame, the data frame in a storage buffer of a preset transmission container (T-CONT); a monitoring module configured to send, when having monitored a processor abnormality, a reset signal to a register control module; the register control module being configured to set, after receiving the reset signal, a preset bit of the register to a preset value; the first chip being also configured to send, when the preset bit of the register is the preset value, the data frame in the storage buffer of the T-CONT to an optical line terminal.

Description

一种光网络终端和光网络终端的异常报文捕获方法Abnormal message capture method for optical network terminal and optical network terminal 技术领域Technical field
本申请涉及但不限于光网络终端技术领域,尤其涉及一种光网络终端和光网络终端的异常报文捕获方法。The present application relates to, but is not limited to, the field of optical network terminal technologies, and in particular, to an abnormal packet capture method for an optical network terminal and an optical network terminal.
背景技术Background technique
GPON(Gigabit-Capable Passive Optical Network,吉比特无源光网络)系统主要由OLT(Optical Line Termina,光线路终端)、ODN(Optical Distribution Network,光分配网络)和ONT(Optical network terminal,光网络终端)组成,拓扑结构为点到多点结构,即一个光线路终端连接多个光网络单元。在一个典型的GPON网络中,OLT一般置于电信机房,可以连接32/64/128个ONT设备,ONT设备布置在远离局端最大距离为60千米的用户楼道等位置。传输容器T-CONT(Transmission Containe,传输容器)是GPON中的上行传输容器,是进行上行带宽请求和分配的基本单位,每个ONT支持多个TCONT(具体支持的数量由ONT能力决定),通常可以支持8、16、32、64个。GPON系统将上行链路被分成不同的时隙,采用DBA(DynamicBandwidthAllocation,动态带宽分配)算法向每个传输容器T-CONT分配传输时隙,ONT在分配的时隙内发送传输容器T-CONT内的数据。每个传输容器T-CONT一般支持4-8个队列,GPON ONT上行业务流在传输容器T-CONT队列内进行调度。ONT设备支持几十个用户端口(每个端口与一个用户相连),将所有用户不同业务的上行数据汇聚通过GPON系统接入到互联网,将接收的下行数据通过一定的转发策略转发到每个用户端口。The GPON (Gigabit-Capable Passive Optical Network) system is mainly composed of an OLT (Optical Line Termina), an ODN (Optical Distribution Network), and an ONT (Optical Network Terminal). The composition is a point-to-multipoint structure, that is, one optical line terminal is connected to a plurality of optical network units. In a typical GPON network, the OLT is generally placed in a telecommunications room and can be connected to 32/64/128 ONT devices. The ONT equipment is placed at a location away from the user's corridor with a maximum distance of 60 kilometers from the central office. The transmission container T-CONT (Transmission Containe) is the uplink transmission container in GPON, which is the basic unit for uplink bandwidth request and allocation. Each ONT supports multiple TCONTs (the number of specific supports is determined by the ONT capability), usually Can support 8, 16, 32, 64. The GPON system divides the uplink into different time slots, and uses a DBA (Dynamic Bandwidth Allocation, Dynamic Bandwidth Allocation) algorithm to allocate a transmission time slot to each transmission container T-CONT. The ONT transmits the transmission container T-CONT in the allocated time slot. The data. Each transport container T-CONT generally supports 4-8 queues, and the GPON ONT upstream traffic is scheduled in the transport container T-CONT queue. The ONT device supports dozens of user ports (each port is connected to one user), and aggregates uplink data of different services of all users to the Internet through the GPON system, and forwards the received downlink data to each user through a certain forwarding policy. port.
ONT设备在现场运行环境下,经常出现收到多种类型大量协议报文而导致异常挂死的现象,且设备自动重启后故障复现时间不确定,可能是1个小时也可能是几天,而将出故障的设备直接下挂到局端OLT下,问题不能复现。In the on-site environment, the ONT device often receives a large number of protocol packets and causes abnormal hangs. After the device restarts automatically, the fault recurrence time is uncertain. It may be 1 hour or several days. The faulty device is directly attached to the central office OLT, and the problem cannot be reproduced.
上文所述设备异常挂死的原因包含多种,诸如协议报文不合法、ONT软件本身BUG等。目前技术条件下,每个ONT厂家在排除了温度等非数据 原因情况下,通常通过以下所述方法获取异常的报文数据,以定位挂死原因。The reason why the device is abnormally hanged is as follows: the protocol packet is invalid, the ONT software itself is BUG, and so on. Under current technical conditions, each ONT manufacturer excludes non-data such as temperature. If the cause is abnormal, the abnormal packet data is usually obtained by the following method to locate the cause of the hang.
方法一:将一台笔记本电脑与ONT一网口相连,在ONT上做数据镜像配置,将数据流复制到与笔记本相连的网口,然后在笔记本电脑上开启抓包工具进行实时抓包。由于ONT布置环境远离局端且情况复杂,实施该种方法需要耗费大量人力,且受制于ONT安装环境,严重阻碍了故障解决的进展速度。Method 1: Connect a laptop to the ONT network port, perform data mirroring configuration on the ONT, copy the data stream to the network port connected to the notebook, and then open the packet capture tool on the laptop to capture the packet in real time. Since the ONT layout environment is far from the central office and the situation is complicated, it takes a lot of manpower to implement the method, and is subject to the ONT installation environment, which seriously hinders the progress speed of the fault resolution.
方法二:远程开启ONT底层打印,将收到的所有报文存储到日志文件,供分析处理。由于故障复现时间的不确定,该抓包过程必须持续进行,这样CPU资源被大量占用,严重影响了ONT正常运行。Method 2: Remotely enable the underlying ONT printing, and store all received messages in a log file for analysis and processing. Due to the uncertainty of the fault recurrence time, the packet capture process must be continued, so that the CPU resources are occupied in a large amount, which seriously affects the normal operation of the ONT.
方法三:将收到的报文存储于高端内存等内存设备。开启此种抓包方法抓包过程后,设备运行内存将被挤占,系统性能及稳定性受到严重影响。Method 3: Store the received packets in a memory device such as high-end memory. After the packet capture process is enabled, the device running memory will be squeezed out, and the system performance and stability will be seriously affected.
方法四:将收到的报文存储于FLASH等外存设备。由于CPU向外存设备写数据缓慢且嵌入式设备外存有限,该方法在设备运行过程中很难被实施。Method 4: Store the received message in an external storage device such as FLASH. Since the CPU writes data to the external storage device slowly and the embedded device has limited external storage, the method is difficult to implement during the operation of the device.
上述每个方法虽然能够获取导致设备异常的报文数据,但每个方法在获取导致设备异常的报文数据时,都需要耗费很长的时间。Each of the above methods can obtain the packet data that causes the device to be abnormal. However, each method takes a long time to obtain the packet data that causes the device to be abnormal.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例的主要目的在于提供一种光网络终端和光网络终端的异常报文捕获方法,能够解决获取导致设备异常的报文数据时,需要耗费很长的时间的问题。The main purpose of the embodiments of the present invention is to provide an abnormal packet capture method for an optical network terminal and an optical network terminal, which can solve the problem that it takes a long time to obtain packet data that causes the device to be abnormal.
一种光网络终端,所述光网络终端包括:处理器、第一芯片、第二芯片、监测模块及寄存器控制模块,所述寄存器控制模块与所述处理器及所述监测模块连接,所述第一芯片包括传输容器T-CONT及寄存器,所述寄存器控制模块还与所述寄存器连接,其中:An optical network terminal, the optical network terminal includes: a processor, a first chip, a second chip, a monitoring module, and a register control module, wherein the register control module is connected to the processor and the monitoring module, The first chip includes a transfer container T-CONT and a register, and the register control module is further connected to the register, wherein:
所述处理器,设置为接收到报文后,将所述报文封装成预设格式的数据帧,并将所述数据帧通过所述第二芯片转发至所述第一芯片。The processor is configured to, after receiving the packet, encapsulate the packet into a data frame of a preset format, and forward the data frame to the first chip by using the second chip.
所述第一芯片,设置为在接收到所述数据帧时,将所述数据帧存储于预 设的所述T-CONT的存储缓冲区中。The first chip is configured to store the data frame in a pre-received manner when the data frame is received Set in the storage buffer of the T-CONT.
所述监测模块,设置为在监测到所述处理器异常时,发送复位信号至寄存器控制模块。The monitoring module is configured to send a reset signal to the register control module when the processor abnormality is detected.
所述寄存器控制模块,设置为在接收到所述复位信号后,将所述寄存器的预设比特位置为预设值。The register control module is configured to set a preset bit position of the register to a preset value after receiving the reset signal.
所述第一芯片,还设置为在所述寄存器的预设比特位为预设值时,将所述T-CONT的存储缓冲区中的数据帧发送到光线路终端。The first chip is further configured to send the data frame in the storage buffer of the T-CONT to the optical line terminal when the preset bit of the register is a preset value.
可选地,所述第一芯片包括:Optionally, the first chip includes:
报告单元,设置为向所述光线路终端报告所述T-CONT的存储缓冲区中的所有数据帧的长度信息。And a reporting unit, configured to report length information of all data frames in the storage buffer of the T-CONT to the optical line terminal.
接收单元,设置为接收所述光线路终端基于所述长度信息反馈的时隙。And a receiving unit, configured to receive a time slot that the optical line terminal feeds back based on the length information.
发送单元,设置为在接收到的所述时隙内将所述T-CONT的存储缓冲区中的数据帧发送到所述光线路终端。And a sending unit, configured to send the data frame in the storage buffer of the T-CONT to the optical line terminal in the received time slot.
可选地,所述第一芯片还设置为:检测寄存器的预设比特位是否为所述预设值。Optionally, the first chip is further configured to: detect whether a preset bit of the register is the preset value.
如果所述寄存器的预设比特位是所述预设值,则将所述T-CONT的存储缓冲区中的数据帧发送到所述光线路终端。If the preset bit of the register is the preset value, the data frame in the storage buffer of the T-CONT is transmitted to the optical line terminal.
如果所述寄存器的预设比特位不是所述预设值,则向所述光线路终端报告所述T-CONT的存储缓冲区中的所有数据帧的长度信息为零,其中,在所述长度信息为零时,所述光线路终端不向所述光网络终端反馈时隙信息。If the preset bit of the register is not the preset value, reporting, to the optical line terminal, that the length information of all data frames in the storage buffer of the T-CONT is zero, wherein the length is When the information is zero, the optical line terminal does not feed back the slot information to the optical network terminal.
可选地,所述处理器,还设置为在接收到报文后,截取所述报文的预设字节长度的数据,并将所述数据封装成预设格式的数据帧。Optionally, the processor is further configured to: after receiving the packet, intercept data of a preset byte length of the packet, and encapsulate the data into a data frame of a preset format.
可选地,所述报文分为不同类型,所述处理器,还设置为将不同类型的报文的截取数据封装成不同类型的预设格式的数据帧。Optionally, the packet is divided into different types, and the processor is further configured to encapsulate the intercepted data of different types of packets into data frames of different types of preset formats.
可选地,所述T-CONT的存储缓冲区为环形栈区。Optionally, the storage buffer of the T-CONT is a ring stack area.
一种光网络终端的异常报文捕获方法,包括:An abnormal packet capture method for an optical network terminal includes:
接收到报文后,将所述报文封装成预设格式的数据帧;After receiving the packet, the packet is encapsulated into a data frame in a preset format;
将所述数据帧存储于预设的传输容器T-CONT的存储缓冲区中;The data frame is stored in a storage buffer of a preset transmission container T-CONT;
在监测到处理器异常时,发送复位信号; Sending a reset signal when a processor exception is detected;
在接收到所述复位信号后,将寄存器的预设比特位置为预设值;After receiving the reset signal, setting a preset bit position of the register to a preset value;
在所述寄存器的预设比特位为预设值时,将所述传输容器T-CONT的存储缓冲区中的数据帧发送到光线路终端。When the preset bit of the register is a preset value, the data frame in the storage buffer of the transmission container T-CONT is sent to the optical line terminal.
可选地,所述将所述报文封装成预设格式的数据帧包括:截取所述报文的预设字节长度的数据封装成预设格式的数据帧。Optionally, the compressing the packet into a data frame in a preset format comprises: intercepting data of a preset byte length of the packet and packaging the data frame into a preset format.
可选地,所述报文分为不同类型,所述方法还包括:将不同类型的报文的截取数据封装成不同类型的预设格式的数据帧。Optionally, the packet is divided into different types, and the method further includes: encapsulating the intercepted data of different types of packets into data frames of different types of preset formats.
可选地,所述将所述T-CONT的存储缓冲区中的数据帧发送到光线路终端包括:Optionally, the sending the data frame in the storage buffer of the T-CONT to the optical line terminal includes:
向光线路终端报告所述T-CONT的存储缓冲区中的所有数据帧的实际长度信息;Reporting, to the optical line terminal, actual length information of all data frames in the storage buffer of the T-CONT;
接收所述光线路终端基于所述实际长度信息反馈的时隙;Receiving a time slot that the optical line terminal feeds back based on the actual length information;
在接收到的所述时隙内将所述T-CONT的存储缓冲区中的数据帧发送到所述光线路终端。Transmitting a data frame in the storage buffer of the T-CONT to the optical line terminal within the received time slot.
可选地,所述方法还包括:检测寄存器的预设比特位是否为所述预设值。Optionally, the method further includes: detecting whether the preset bit of the register is the preset value.
如果所述寄存器的预设比特位是所述预设值,则将所述T-CONT的存储缓冲区中的数据帧发送到所述光线路终端。If the preset bit of the register is the preset value, the data frame in the storage buffer of the T-CONT is transmitted to the optical line terminal.
如果所述寄存器的预设比特位不是所述预设值,则向所述光线路终端报告所述传输容器T-CONT的存储缓冲区中的所有数据帧的长度信息为零,其中,在所述长度信息为零时,所述光线路终端不向所述光网络终端反馈时隙信息。If the preset bit of the register is not the preset value, reporting, to the optical line terminal, that the length information of all data frames in the storage buffer of the transport container T-CONT is zero, wherein When the length information is zero, the optical line terminal does not feed back the slot information to the optical network terminal.
可选地,所述T-CONT的存储缓冲区为环形栈区。Optionally, the storage buffer of the T-CONT is a ring stack area.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的光网络终端的异常报文捕获方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the abnormal message capture method of the optical network terminal.
本发明实施例通过处理器接收到报文后,将所述报文封装成预设格式的数据帧,并将所述数据帧通过所述第二芯片转发至所述第一芯片;所述第一芯片在接收到所述数据帧时,将所述数据帧存储于T-CONT的存储缓冲区中,为实现捕获光网络终端异常挂死前的报文提供了数据基础,同时通过监测模块监测到所述处理器的状态,在所述处理器异常时,发送复位信号至寄存器控制模块;所述寄存器控制模块在接收到所述复位信号后, 将所述寄存器的预设比特位置为预设值;当所述寄存器的预设比特位为预设值时,所述第一芯片将所述T-CONT的存储缓冲区中的数据帧发送到光线路终端,即通过寄存器控制模块控制发送所述T-CONT的存储缓冲区中的数据帧的时机,只有当所述监测模块监测到所述处理器异常时,才将所述寄存器的预设比特位置为预设值,进而使得所述T-CONT的存储缓冲区中的数据帧被发送到光线路终端,从而解决了获取导致设备异常的报文数据时,需要耗费很长的时间的问题,进而可以减少解决设备故障需要的时间,提高解决故障的效率。After receiving the packet, the processor encapsulates the packet into a data frame of a preset format, and forwards the data frame to the first chip by using the second chip; When receiving the data frame, the chip stores the data frame in a storage buffer of the T-CONT, and provides a data foundation for capturing a message before the optical network terminal is abnormally suspended, and is monitored by the monitoring module. a state to the processor, when the processor is abnormal, sending a reset signal to a register control module; after receiving the reset signal, the register control module Setting a preset bit position of the register to a preset value; when the preset bit of the register is a preset value, the first chip sends the data frame in the storage buffer of the T-CONT to The optical line terminal, that is, the timing of transmitting the data frame in the storage buffer of the T-CONT by the register control module, and the preset of the register is only when the monitoring module detects the abnormality of the processor The bit position is a preset value, so that the data frame in the storage buffer of the T-CONT is sent to the optical line terminal, thereby solving the problem that it takes a long time to obtain the packet data that causes the device to be abnormal. In turn, the time required to solve the equipment failure can be reduced, and the efficiency of solving the failure can be improved.
附图概述BRIEF abstract
图1为本发明实施例的光网络终端的结构示意图;1 is a schematic structural diagram of an optical network terminal according to an embodiment of the present invention;
图2为相关的传输容器T-CONT中存储的数据帧的结构示意图;2 is a schematic structural diagram of a data frame stored in a related transport container T-CONT;
图3为图1中第一芯片的细化功能模块示意图;3 is a schematic diagram of a refinement function module of the first chip of FIG. 1;
图4为本发明实施例的光网络终端的异常报文捕获的第一实施例的流程示意图;4 is a schematic flowchart of a first embodiment of an abnormal packet capture of an optical network terminal according to an embodiment of the present invention;
图5为本发明实施例的光网络终端的异常报文捕获的第二实施例的流程示意图。FIG. 5 is a schematic flowchart diagram of a second embodiment of an abnormal packet capture of an optical network terminal according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
基于上述问题,本发明实施例提供一种光网络终端。Based on the above problem, an embodiment of the present invention provides an optical network terminal.
参照图1,图1为本发明实施例光网络终端的结构示意图。Referring to FIG. 1, FIG. 1 is a schematic structural diagram of an optical network terminal according to an embodiment of the present invention.
所述光网络终端包括:第一芯片10、处理器11、第二芯片12、监测模块13及寄存器控制模块14,所述寄存器控制模块14与所述处理器11及所述监测模块13连接,所述第一芯片10包括传输容器T-CONT15及寄存器16,所述寄存器控制模块14还与所述寄存器16连接。The optical network terminal includes: a first chip 10, a processor 11, a second chip 12, a monitoring module 13 and a register control module 14, and the register control module 14 is connected to the processor 11 and the monitoring module 13, The first chip 10 includes a transfer container T-CONT 15 and a register 16, and the register control module 14 is also coupled to the register 16.
所述处理器11,设置为当接收到报文后,将所述报文封装成预设格式的数据帧,并将所述数据帧通过所述第二芯片12转发至所述第一芯片10。The processor 11 is configured to, after receiving the packet, encapsulate the packet into a data frame of a preset format, and forward the data frame to the first chip 10 through the second chip 12 .
在本实施例中,所述处理器11,为所述光网络终端的中央控制模块,优选为CPU,所述第二芯片12,优选为交换芯片,所述第一芯片10,优选 为PON-MAC芯片。所述处理器接收到的报文包括IGMP(Internet Group Management Protocol,互联网组管理协议)、DHCP(Dynamic Host Configuration Protocol,动态主机设置协议)、ARP(Address Resolution Protocol,地址解析协议)等所有交换芯片转发到CPU的报文以及CPU通过其他接口收到的报文。所述预设格式的数据帧为如图2所述帧格式的数据帧,所述数据帧包括目的MAC地址、源MAC地址、恒定值域、vlan+优先级字段、类型字段、长度字段、报文数据。所述目的MAC地址设置为ONT下一跳网关的MAC,所述源MAC地址字段可设置为CPU带内MAC,所述恒定值域设为OX8100,表示该帧包含一个802.1QVLAN标签,所述vlan+优先级字段可根据业务的需要灵活设置,是PON-MAC芯片转发到传输容器下不同GEMPORT(用于承载业务)的一个依据,所述类型字段为所述CPU接收到的报文与其它类型的报文的区别字段,可设为OX8900,所述长度字段为所述报文的长度字段,即表示所述报文有多少个字节,所述报文数据为所述CPU接收到的报文。In this embodiment, the processor 11 is a central control module of the optical network terminal, preferably a CPU, and the second chip 12 is preferably a switch chip, and the first chip 10 is preferably For the PON-MAC chip. All the switching chips received by the processor include the Internet Group Management Protocol (IGMP), the Dynamic Host Configuration Protocol (DHCP), and the ARP (Address Resolution Protocol). The packets forwarded to the CPU and the packets received by the CPU through other interfaces. The data frame in the preset format is a data frame in a frame format as described in FIG. 2, and the data frame includes a destination MAC address, a source MAC address, a constant value field, a vlan+priority field, a type field, a length field, and a packet. data. The destination MAC address is set to the MAC address of the ONT next hop gateway, and the source MAC address field may be set to the CPU inband MAC, and the constant value field is set to OX8100, indicating that the frame includes an 802.1Q VLAN tag, and the vlan+ The priority field can be flexibly set according to the needs of the service, and is a basis for the PON-MAC chip to forward to different GEMPORTs (for bearer services) under the transport container. The type field is the packet received by the CPU and other types. The difference field of the message may be set to OX8900, where the length field is the length field of the message, that is, how many bytes of the message are, and the message data is the message received by the CPU. .
在将接收到的报文封装成数据帧后,调用网络驱动发包接口函数,将所述封装的数据帧发送到交换芯片的上行端口,再通过该上行端口将所述数据帧发送到所述PON-MAC芯片。所述交换芯片的上行端口是指与PON-MAC芯片通过GMII(Gigabit Medium Independent Interface,千兆媒体独立接口)等接口相连接的端口,所有发送到OLT的上行数据通过该端口被发送到PON-MAC芯片,而从OLT下发的下行数据经PON-MAC芯片通过该端口进入交换芯片,进而被转发到目的用户端口或CPU口。After the received packet is encapsulated into a data frame, the network driver sends a packet interface function, and sends the encapsulated data frame to an uplink port of the switch chip, and then sends the data frame to the PON through the uplink port. -MAC chip. The uplink port of the switch chip is a port that is connected to a PON-MAC chip through an interface such as a Gigabit Medium Independent Interface (GMII), and all uplink data sent to the OLT is sent to the PON through the port. The MAC chip, and the downlink data sent from the OLT enters the switch chip through the port through the PON-MAC chip, and is forwarded to the destination user port or the CPU port.
可选地,所述处理器11,还设置为在接收到报文后,截取所述报文的预设字节长度的数据,并将所述数据封装成预设格式的数据帧。Optionally, the processor 11 is further configured to: after receiving the packet, intercept data of a preset byte length of the packet, and encapsulate the data into a data frame of a preset format.
所述报文的预设字节长度为预先设定的截取所述报文的字节个数。所述预设字节长度的数据,为从接收到的报文的目的MAC(Media Access Control,媒体访问控制)地址数据开始截取,直到截取到预设个字节的数据为止。例如,所述预设字节长度为500个字节,则所述预设字节长度的数据为从所述报文的目的MAC地址数据开始计算,一直到获取到500个报文数据为止,该获取到的所述报文的500个字节的数据即为所述预设字节长度的数据。在将所述数据封装成预设格式的数据帧的过程中,由于CPU收到各 种类型的报文,而维护人员对不同类型报文的关注程度不同,故在封装成帧的过程中,可以对不同的类型的报文的截取数据封装成不同优先级的数据帧。例如,可以将不同类型的报文封装成不同vlan+优先级的帧,PON-MAC芯片可以根据预先设置的分类规则对数据帧加以匹配,从而将与不同分类规则相匹配的帧送入T-CONT的存储缓冲区下不同优先级的存储区间。The preset byte length of the packet is a preset number of bytes for intercepting the packet. The data of the preset byte length is intercepted from the destination MAC (Media Access Control) address data of the received message until the data of the preset byte is intercepted. For example, if the preset byte length is 500 bytes, the data of the preset byte length is calculated from the destination MAC address data of the packet, until the 500 message data is obtained. The 500 bytes of data of the obtained packet is the data of the preset byte length. In the process of encapsulating the data into a data frame of a preset format, since the CPU receives each In the process of encapsulating a frame, the interception data of different types of packets can be encapsulated into data frames of different priorities. For example, different types of packets can be encapsulated into different vlan+priority frames. The PON-MAC chip can match data frames according to preset classification rules, so that frames matching different classification rules are sent to T-CONT. Storage slots of different priorities under the storage buffer.
所述第一芯片10,设置为在接收到所述数据帧时,将所述数据帧存储于预设的所述传输容器T-CONT的存储缓冲区中。The first chip 10 is configured to store the data frame in a storage buffer of the preset transmission container T-CONT when the data frame is received.
所述第一芯片10,优选为PON-MAC芯片,在接收到所述数据帧时,将所述数据帧存储于预设的所述T-CONT的存储缓冲区中。所述传输容器T-CONT的存储缓冲区中包括多个优先级队列。可选地,将所述T-CONT的存储缓冲区组织成具有不同发送优先级的环形栈区,即包括多个不同优先级的环形栈区。以所述T-CONT的存储缓冲区为环形栈区为例,数据帧存储于所述T-CONT的存储缓冲区中的过程如下:The first chip 10, preferably a PON-MAC chip, stores the data frame in a preset storage buffer of the T-CONT when receiving the data frame. The storage buffer of the transport container T-CONT includes a plurality of priority queues. Optionally, the storage buffer of the T-CONT is organized into a ring stack area having different transmission priorities, that is, a ring stack area including a plurality of different priorities. Taking the storage buffer of the T-CONT as a ring stack area as an example, the process of storing data frames in the storage buffer of the T-CONT is as follows:
例如,向所述T-CONT的某个环形栈区存储一新数据帧,数据帧被填充到游标当前指向的数据块,同时栈区游标沿着顺时针指向下一数据块起始位置,如果当前游标指向的数据块已被占用,则用当前数据帧的数据覆盖数据块内填充的数据,所述数据块是预先分配好的固定长度的数据存储单元。将所述T-CONT的存储缓冲区设置成多个不同优先级的环形栈区的原因是由于造成ONT异常挂死的报文应当是挂死前接收到的有限数目报文,而与前期收到的报文无关,且报文被接收的时间距离ONT设备异常挂死时间越近,造成ONT设备挂死的可能性越大,因此将所述T-CONT的存储缓冲区设置成多个不同优先级的环形栈区,可使得在发送所述环形栈区中的报文时只需发送所述环形栈区中的部分数据帧即可。For example, storing a new data frame to a ring stack area of the T-CONT, the data frame is filled to the data block currently pointed by the cursor, and the stack area cursor points clockwise to the start position of the next data block, if If the data block pointed to by the current cursor has been occupied, the data filled in the data block is overwritten with the data of the current data frame, which is a pre-allocated fixed length data storage unit. The reason why the storage buffer of the T-CONT is set to a plurality of ring stacks of different priorities is that the packet causing the ONT to be abnormally hanged should be a finite number of packets received before the hang, and the previous period is received. The received packet is irrelevant, and the closer the packet is received, the closer the ONT device hangs, the more likely the ONT device hangs. Therefore, the storage buffer of the T-CONT is set to be different. The priority ring stack area can be used to send only a part of the data frame in the ring stack area when transmitting the message in the ring stack area.
所述监测模块13,设置为在监测到所述处理器11异常时,发送复位信号至所述寄存器控制模块14。The monitoring module 13 is configured to send a reset signal to the register control module 14 when the processor 11 is detected to be abnormal.
所述监测模块13,优选为看门狗电路,所述寄存器控制模块14优选为CPLD。从本质上来说看门狗电路就是一个定时器电路,一般有一个输入和一个输出,其中的输入叫做喂狗,输出一般连接到另外一个部分的复位端,其基本工作原理如下:在整个系统运行以后就启动了看门狗的计数器,此时看门狗就开始自动计时,如果到达了一定的时间还不去给它清零,看门狗计 数器就会溢出从而引起看门狗中断,造成系统的复位。例如,当所述看门狗电路在一段时间内接收不到CPU发送的喂狗信号时,即监测到所述CPU异常,例如,所述CPU处于程序跑飞状态或死循环状态等,则所述看门狗电路就会发送一个复位信后至与其连接的CPLD。The monitoring module 13, preferably a watchdog circuit, is preferably a CPLD. In essence, the watchdog circuit is a timer circuit. It generally has an input and an output. The input is called a dog. The output is generally connected to the reset terminal of another part. The basic working principle is as follows: After that, the watchdog counter is started. At this time, the watchdog starts to automatically time. If it reaches a certain time, it will not be cleared. The watchdog meter The counter will overflow and cause the watchdog to be interrupted, causing a system reset. For example, when the watchdog circuit does not receive the dog feed signal sent by the CPU for a period of time, that is, the CPU abnormality is detected, for example, the CPU is in a program running state or an infinite loop state, etc. The watchdog circuit sends a reset signal to the CPLD connected to it.
所述寄存器控制模块14,设置为在接收到所述复位信号后,将所述寄存器16的预设比特位置为预设值。The register control module 14 is configured to set a preset bit position of the register 16 to a preset value after receiving the reset signal.
所述寄存器控制模块14,以CPLD为例,在接收到监测电路发送的复位信号后,通过PCI总线配置PON-MAC芯片中的寄存器的预设比特位。所述预设比特位为所述寄存器控制所述T-CONT的控制比特位。在本实施例中,所述预设值为代表高电平的‘1’。The register control module 14 takes the CPLD as an example, and after receiving the reset signal sent by the monitoring circuit, configures a preset bit of the register in the PON-MAC chip through the PCI bus. The preset bit is a control bit for controlling the T-CONT by the register. In the present embodiment, the preset value is '1' representing a high level.
所述第一芯片10,还设置为在所述寄存器16的预设比特位为预设值时,将所述T-CONT15的存储缓冲区中的数据帧发送到光线路终端。The first chip 10 is further configured to send the data frame in the storage buffer of the T-CONT 15 to the optical line terminal when the preset bit of the register 16 is a preset value.
在所述寄存器的预设比特位为预设值时。例如所述寄存器的预设比特位为‘1‘,所述第一芯片,会首先发送每个环形栈区中当前游标指向的数据块内填充的数据帧,发送完毕后,游标沿逆时针方向指向上一个数据块起始位置,继续发送游标指向的数据块内填充的数据帧,直到将环形栈区内存储的所有数据帧发送完毕或授权时隙结束,需要说明的是,上述发送过程是以所述传输容器T-CONT的存储缓冲区为环形栈区为例的。When the preset bit of the register is a preset value. For example, the preset bit of the register is '1', and the first chip first sends a data frame filled in a data block pointed by the current cursor in each ring stack area, and after the transmission is completed, the cursor is in a counterclockwise direction. Pointing to the starting position of the previous data block, continue to send the data frame filled in the data block pointed by the cursor until all the data frames stored in the ring stack area are sent or the authorized time slot ends. It should be noted that the above sending process is Taking the storage buffer of the transport container T-CONT as a ring stack area as an example.
参照图3,所述第一芯片10包括报告单元100、接收单元101及发送单元102。Referring to FIG. 3, the first chip 10 includes a reporting unit 100, a receiving unit 101, and a transmitting unit 102.
所述报告单元100,设置为向所述光线路终端报告所述T-CONT的存储缓冲区中的所有数据帧的长度信息。The reporting unit 100 is configured to report length information of all data frames in the storage buffer of the T-CONT to the optical line terminal.
所述接收单元101,设置为接收所述光线路终端基于所述长度信息反馈的时隙,其中,在所述长度信息为零时,所述光线路终端不向所述光网络终端反馈时隙信息。The receiving unit 101 is configured to receive a time slot that the optical line terminal feeds back based on the length information, where the optical line terminal does not feed back a time slot to the optical network terminal when the length information is zero information.
所述发送单元102,设置为在接收到的所述时隙内将所述T-CONT的存储缓冲区中的数据帧发送到所述光线路终端。The sending unit 102 is configured to send a data frame in the storage buffer of the T-CONT to the optical line terminal in the received time slot.
在GPON系统中,ONT的第一芯片在向OLT发送所述T-CONT的存储缓冲区中的数据帧时,需要向OLT发送DBA报告,报告所述传输容器T-CONT的存储缓冲区中的所有数据帧的长度信息,OLT会检查DBA报告, 然后决定是否向ONT的第一芯片授予发送所述T-CONT的存储缓冲区中存储的数据帧的时隙。例如,若发送的报告报告了所述T-CONT的存储缓冲区中存储的数据帧实际的长度信息,根据标准G.984.3协议,OLT会向ONT发送授权,授予发送所述T-CONT的存储缓冲区中存储的数据帧的时隙,而所述PON-MAC芯片会在授权时隙内发送T-CONT的存储缓冲区中存储的数据帧;若发送的报告报告了所述T-CONT的存储缓冲区中存储的数据帧的长度信息为零,根据标准G.984.3协议,OLT不向ONT授予发送所述T-CONT的存储缓冲区中存储的数据帧的时隙,使得所述PON-MAC芯片不能发送所述传输容器T-CONT的存储缓冲区中存储的数据帧。因此,为了避免ONT中的PON-MAC芯片持续发送所述T-CONT的存储缓冲区中存储的数据帧到OLT而造成的上行带宽浪费,只在所述寄存器的预设比特位为预设值时,报告所述T-CONT的存储缓冲区中的所有数据帧的长度信息,在所述寄存器的预设比特位不为预设值时,报告所述T-CONT的存储缓冲区中的所有数据帧的长度信息为零,即所述T-CONT的存储缓冲区中没有要发的数据帧,使得所述PON-MAC芯片不能发送所述T-CONT的存储缓冲区中存储的数据帧。In the GPON system, when the first chip of the ONT sends the data frame in the storage buffer of the T-CONT to the OLT, it needs to send a DBA report to the OLT, and report the storage buffer in the storage buffer T-CONT. The length information of all data frames, the OLT will check the DBA report, It is then decided whether to grant the first chip of the ONT the time slot in which the data frame stored in the storage buffer of the T-CONT is transmitted. For example, if the sent report reports the actual length information of the data frame stored in the storage buffer of the T-CONT, according to the standard G.984.3 protocol, the OLT sends an authorization to the ONT to grant the storage of the T-CONT. a time slot of a data frame stored in the buffer, and the PON-MAC chip transmits a data frame stored in a storage buffer of the T-CONT within the authorized time slot; if the transmitted report reports the T-CONT The length information of the data frame stored in the storage buffer is zero. According to the standard G.984.3 protocol, the OLT does not grant the ONT a time slot for transmitting the data frame stored in the storage buffer of the T-CONT, so that the PON- The MAC chip cannot transmit the data frame stored in the storage buffer of the transport container T-CONT. Therefore, in order to avoid the upstream bandwidth waste caused by the PON-MAC chip in the ONT continuously transmitting the data frame stored in the storage buffer of the T-CONT to the OLT, only the preset bit of the register is a preset value. Reporting the length information of all data frames in the storage buffer of the T-CONT, and reporting all the storage buffers in the T-CONT when the preset bits of the register are not preset values. The length information of the data frame is zero, that is, there is no data frame to be sent in the storage buffer of the T-CONT, so that the PON-MAC chip cannot transmit the data frame stored in the storage buffer of the T-CONT.
本发明通过处理器接收到报文后,将所述报文封装成预设格式的数据帧,以及将所述数据帧通过所述第二芯片转发至所述第一芯片;所述第一芯片在接收到所述数据帧时,将所述数据帧存储于T-CONT的存储缓冲区中,为实现捕获光网络终端异常挂死前的报文提供了数据基础,同时通过监测模块监测到所述处理器的状态,在所述处理器异常时,发送复位信号至寄存器控制模块;所述寄存器控制模块在接收到所述复位信号后,将所述寄存器的预设比特位置为预设值;当所述寄存器的预设比特位为预设值时,所述第一芯片将所述T-CONT的存储缓冲区中的数据帧发送到光线路终端,即通过寄存器控制模块控制发送所述T-CONT的存储缓冲区中的数据帧的时机,只有当所述监测模块监测到所述处理器异常时,才将所述寄存器的预设比特位置为预设值,进而使得所述T-CONT的存储缓冲区中的数据帧被发送到光线路终端,从而解决了获取导致设备异常的报文数据时,需要耗费很长的时间的问题,进而可以减少解决设备故障需要的时间,提高解决故障的效率。 After receiving the packet, the processor encapsulates the packet into a data frame of a preset format, and forwards the data frame to the first chip by using the second chip; the first chip When the data frame is received, the data frame is stored in a storage buffer of the T-CONT, and provides a data foundation for capturing a message before the optical network terminal is abnormally suspended, and monitoring the device through the monitoring module. a state of the processor, when the processor is abnormal, sending a reset signal to the register control module; after receiving the reset signal, the register control module sets the preset bit position of the register to a preset value; When the preset bit of the register is a preset value, the first chip sends the data frame in the storage buffer of the T-CONT to the optical line terminal, that is, the T is controlled by the register control module to send the T - the timing of the data frame in the storage buffer of -CONT, only when the monitoring module detects the abnormality of the processor, the preset bit position of the register is set to a preset value, thereby causing the T-CO The data frame in the storage buffer of the NT is sent to the optical line terminal, which solves the problem that it takes a long time to obtain the packet data that causes the device to be abnormal, thereby reducing the time required to solve the device failure and improving the solution. The efficiency of the failure.
基于上述所述的光网络终端,提出本发明实施例的光网络终端的异常报文捕获方法的第一实施例,参照图4,在本实施例中,所述光网络终端的异常报文捕获方法包括以下步骤S10-S30:Based on the optical network terminal, the first embodiment of the method for capturing an abnormal packet of the optical network terminal according to the embodiment of the present invention is provided. Referring to FIG. 4, in the embodiment, the abnormal packet capture of the optical network terminal is performed. The method includes the following steps S10-S30:
步骤S10,第一芯片接收第二芯片发送的数据帧,并将所述数据帧存储于预设的T-CONT的存储缓冲区中。Step S10: The first chip receives the data frame sent by the second chip, and stores the data frame in a storage buffer of a preset T-CONT.
所述数据帧可以为处理器在接收到报文后,将所述报文封装成预设格式的数据帧。所述处理器,为所述光网络终端的中央控制模块,优选为CPU,所述第二芯片,优选为交换芯片,所述第一芯片,优选为PON-MAC芯片。所述处理器接收到的报文包括IGMP(Internet Group Management Protocol,互联网组管理协议)、DHCP(Dynamic Host Configuration Protocol,动态主机设置协议)、ARP(Address Resolution Protocol,地址解析协议)等所有交换芯片转发到CPU的报文以及CPU通过其他接口收到的报文。所述预设格式的数据帧为如图2所述帧格式的数据帧,所述数据帧包括目的MAC地址、源MAC地址、恒定值域、vlan+优先级字段、类型字段、长度字段、报文数据。所述目的MAC地址设置为ONT下一跳网关的MAC,所述源MAC地址字段可设置为CPU带内MAC,所述恒定值域设为OX8100,表示该帧包含一个802.1QVLAN标签,所述vlan+优先级字段可根据业务的需要灵活设置,是PON-MAC芯片转发到传输容器下不同GEMPORT(用于承载业务)的一个依据,所述类型字段为所述CPU接收到的报文与其它类型的报文的区别字段,可设为OX8900,所述长度字段为所述报文的长度字段,即表示所述报文有多少个字节,所述报文数据为所述CPU接收到的报文。The data frame may be a data frame that is encapsulated into a preset format by the processor after receiving the message. The processor is a central control module of the optical network terminal, preferably a CPU, the second chip, preferably a switch chip, and the first chip, preferably a PON-MAC chip. All the switching chips received by the processor include the Internet Group Management Protocol (IGMP), the Dynamic Host Configuration Protocol (DHCP), and the ARP (Address Resolution Protocol). The packets forwarded to the CPU and the packets received by the CPU through other interfaces. The data frame in the preset format is a data frame in a frame format as described in FIG. 2, and the data frame includes a destination MAC address, a source MAC address, a constant value field, a vlan+priority field, a type field, a length field, and a packet. data. The destination MAC address is set to the MAC address of the ONT next hop gateway, and the source MAC address field may be set to the CPU inband MAC, and the constant value field is set to OX8100, indicating that the frame includes an 802.1Q VLAN tag, and the vlan+ The priority field can be flexibly set according to the needs of the service, and is a basis for the PON-MAC chip to forward to different GEMPORTs (for bearer services) under the transport container. The type field is the packet received by the CPU and other types. The difference field of the message may be set to OX8900, where the length field is the length field of the message, that is, how many bytes of the message are, and the message data is the message received by the CPU. .
可选地,所述数据帧为处理器在接收到报文后,截取所述报文的预设字节长度的数据封装成预设格式的数据帧。所述报文的预设字节长度为预先设定的截取所述报文的字节个数。所述预设字节长度的数据,为从接收到的报文的目的MAC(Media Access Control,媒体访问控制)地址数据开始截取,直到截取到预设个字节的数据为止。例如,所述预设字节长度为500个字节,则所述预设字节长度的数据为从所述报文的目的MAC地址数据开始计算,一直到获取到500个报文数据为止,该获取到的所述报文的500个字节的数据即为所述预设字节长度的数据。在将所述数据封装成预设格式的数据帧的过程中,由于CPU收到各种类型的报文,而维护人员对不同类型报文的关 注程度不同,故在封装成帧的过程中,可以对不同的类型的报文的截取数据封装成不同优先级的数据帧。例如,可以将不同类型的报文封装成不同vlan+优先级的帧,PON-MAC芯片可以根据预先设置的分类规则对数据帧加以匹配,从而将与不同分类规则相匹配的帧送入T-CONT的存储缓冲区下不同优先级的存储区间。Optionally, the data frame is a data frame in which the processor intercepts the preset byte length of the packet after receiving the packet, and encapsulates the data into a preset format. The preset byte length of the packet is a preset number of bytes for intercepting the packet. The data of the preset byte length is intercepted from the destination MAC (Media Access Control) address data of the received message until the data of the preset byte is intercepted. For example, if the preset byte length is 500 bytes, the data of the preset byte length is calculated from the destination MAC address data of the packet, until the 500 message data is obtained. The 500 bytes of data of the obtained packet is the data of the preset byte length. In the process of encapsulating the data into a data frame of a preset format, since the CPU receives various types of packets, the maintenance personnel close the different types of packets. The degree of annotation is different. Therefore, in the process of encapsulating a frame, the intercepted data of different types of packets can be encapsulated into data frames of different priorities. For example, different types of packets can be encapsulated into different vlan+priority frames. The PON-MAC chip can match data frames according to preset classification rules, so that frames matching different classification rules are sent to T-CONT. Storage slots of different priorities under the storage buffer.
在将接收到的报文封装成数据帧后,调用网络驱动发包接口函数,将所述封装的数据帧发送到交换芯片的上行端口,再通过该上行端口将所述数据帧发送到所述PON-MAC芯片。所述交换芯片的上行端口是指与PON-MAC芯片通过GMII(Gigabit Medium Independent Interface,千兆媒体独立接口)等接口相连接的端口,所有发送到OLT的上行数据通过该端口被发送到PON-MAC芯片,而从OLT下发的下行数据经PON-MAC芯片通过该端口进入交换芯片。After the received packet is encapsulated into a data frame, the network driver sends a packet interface function, and sends the encapsulated data frame to an uplink port of the switch chip, and then sends the data frame to the PON through the uplink port. -MAC chip. The uplink port of the switch chip is a port that is connected to a PON-MAC chip through an interface such as a Gigabit Medium Independent Interface (GMII), and all uplink data sent to the OLT is sent to the PON through the port. The MAC chip, and the downlink data sent from the OLT enters the switch chip through the port through the PON-MAC chip.
在接收到所述数据帧时,将所述数据帧存储于所述T-CONT的存储缓冲区中。所述T-CONT的存储缓冲区中包括多个优先级队列。可选地,将所述T-CONT的存储缓冲区组织成具有不同发送优先级的环形栈区,即包括多个不同优先级的环形栈区。以所述T-CONT的存储缓冲区为环形栈区为例,数据帧存储于所述T-CONT的存储缓冲区中的过程如下:Upon receiving the data frame, the data frame is stored in a storage buffer of the T-CONT. The storage buffer of the T-CONT includes a plurality of priority queues. Optionally, the storage buffer of the T-CONT is organized into a ring stack area having different transmission priorities, that is, a ring stack area including a plurality of different priorities. Taking the storage buffer of the T-CONT as a ring stack area as an example, the process of storing data frames in the storage buffer of the T-CONT is as follows:
例如,向所述T-CONT的某个环形栈区存储一新数据帧,数据帧被填充到游标当前指向的数据块,同时栈区游标沿着顺时针指向下一数据块起始位置,若当前游标指向的数据块已被占用,则用当前数据帧的数据覆盖数据块内填充的数据,所述数据块是预先分配好的固定长度的数据存储单元。将所述T-CONT的存储缓冲区设置成多个不同优先级的环形栈区的原因是由于造成ONT异常挂死的报文应当是挂死前接收到的有限数目报文,而与前期收到的报文无关,且报文被接收的时间距离ONT设备异常挂死时间越近,造成ONT设备挂死的可能性越大,因此将所述传输容器T-CONT的存储缓冲区设置成多个不同优先级的环形栈区,可使得在发送所述环形栈区中的报文时只需发送所述环形栈区中的部分数据帧即可。For example, storing a new data frame to a ring stack area of the T-CONT, the data frame is filled to the data block currently pointed by the cursor, and the stack area cursor points clockwise to the start position of the next data block, if If the data block pointed to by the current cursor has been occupied, the data filled in the data block is overwritten with the data of the current data frame, which is a pre-allocated fixed length data storage unit. The reason why the storage buffer of the T-CONT is set to a plurality of ring stacks of different priorities is that the packet causing the ONT to be abnormally hanged should be a finite number of packets received before the hang, and the previous period is received. The received packet is irrelevant, and the closer the packet is received, the closer the ONT device hangs, the more likely the ONT device hangs. Therefore, the storage buffer of the transport container T-CONT is set to be large. The ring stack areas of different priorities may be configured to send only a part of the data frames in the ring stack area when transmitting the message in the ring stack area.
步骤S20,所述第一芯片检测控制所述T-CONT的寄存器的预设比特位是否为预设值。Step S20, the first chip detects whether a preset bit of the register that controls the T-CONT is a preset value.
所述第一芯片,以PON-MAC芯片为例,实时或定时检测控制所述传输 容器T-CONT的寄存器的预设比特位是否为预设值。所述预设比特位为所述寄存器控制所述T-CONT的控制比特位。在本实施例中,所述预设值为代表高电平的‘1‘。所述寄存器的预设比特位可以通过光网络终端的寄存器控制模块进行控制。所述寄存器控制模块,以CPLD为例,在接收到监测模块发送的复位信号后,通过PCI总线配置PON-MAC芯片中的寄存器的预设比特位。所述监测模块,优选为看门狗电路,从本质上来说所述看门狗电路就是一个定时器电路,一般有一个输入和一个输出,其中的输入叫做喂狗,输出一般连接到另外一个部分的复位端,其基本工作原理如下:在整个系统运行以后就启动了看门狗的计数器,此时看门狗就开始自动计时,如果到达了一定的时间还不去给它清零,看门狗计数器就会溢出从而引起看门狗中断,造成系统的复位。例如,当所述看门狗电路在一段时间内接收不到CPU发送的喂狗信号时,即监测到所述CPU异常,例如,所述CPU处于程序跑飞状态或死循环状态等,则所述看门狗电路就会发送一个复位信后至与其连接的CPLD,进而所述CPLD通过PCI总线配置PON-MAC芯片中的寄存器的预设比特位置为‘1‘。The first chip takes a PON-MAC chip as an example, and controls the transmission in real time or timing detection. Whether the preset bit of the register of the container T-CONT is a preset value. The preset bit is a control bit for controlling the T-CONT by the register. In this embodiment, the preset value is '1' representing a high level. The preset bits of the register can be controlled by a register control module of the optical network terminal. The register control module takes the CPLD as an example, and after receiving the reset signal sent by the monitoring module, configures a preset bit of the register in the PON-MAC chip through the PCI bus. The monitoring module is preferably a watchdog circuit. In essence, the watchdog circuit is a timer circuit, generally having an input and an output, wherein the input is called a dog, and the output is generally connected to another part. The reset operation of the reset terminal is as follows: After the whole system is running, the watchdog counter is started. At this time, the watchdog starts to automatically time. If it reaches a certain time, it does not clear it. The dog counter will overflow and cause a watchdog interrupt, causing a system reset. For example, when the watchdog circuit does not receive the dog feed signal sent by the CPU for a period of time, that is, the CPU abnormality is detected, for example, the CPU is in a program running state or an infinite loop state, etc. The watchdog circuit sends a reset signal to the CPLD connected thereto, and the CPLD configures the preset bit position of the register in the PON-MAC chip to be '1' through the PCI bus.
步骤S30,如果所述寄存器的预设比特位是所述预设值,则所述第一芯片将所述T-CONT的存储缓冲区中的数据帧发送到光线路终端。Step S30, if the preset bit of the register is the preset value, the first chip sends the data frame in the storage buffer of the T-CONT to the optical line terminal.
如果检测到寄存器的预设比特位为预设值,例如,所述寄存器的预设比特位为‘1‘,则所述第一芯片,以PON-MAC芯片为例,会首先发送各个环形栈区中当前游标指向的数据块内填充的数据帧,发送完毕后,游标沿逆时针方向指向上一个数据块起始位置,继续发送游标指向的数据块内填充的数据帧,直到将环形栈区内存储的所有数据帧发送完毕或授权时隙结束,需要说明的是,上述发送过程是以所述T-CONT的存储缓冲区为环形栈区为例的。If the preset bit of the register is detected as a preset value, for example, the preset bit of the register is '1', the first chip, for example, the PON-MAC chip, will first send each ring stack. The data frame filled in the data block pointed to by the current cursor in the area, after the transmission is completed, the cursor points to the start position of the previous data block in the counterclockwise direction, and continues to send the data frame filled in the data block pointed by the cursor until the circular stack area is All the data frames stored in the end are sent or the end of the authorized time slot. It should be noted that the above sending process is an example in which the storage buffer of the T-CONT is a ring stack area.
本实施例通过处理器接收到报文后,将所述报文封装成预设格式的数据帧,以及将所述数据帧通过所述第二芯片转发至所述第一芯片;所述第一芯片在接收到所述数据帧时,将所述数据帧存储于T-CONT的存储缓冲区中,为实现捕获光网络终端异常挂死前的报文提供了数据基础,同时通过监测模块监测到所述处理器的状态,在所述处理器异常时,发送复位信号至寄存器控制模块;所述寄存器控制模块在接收到所述复位信号后,将所述寄存器的 预设比特位置为预设值;当所述寄存器的预设比特位为预设值时,所述第一芯片将所述T-CONT的存储缓冲区中的数据帧发送到光线路终端,即通过寄存器控制模块控制发送所述T-CONT的存储缓冲区中的数据帧的时机,只有当所述监测模块监测到所述处理器异常时,才将所述寄存器的预设比特位置为预设值,进而使得所述T-CONT的存储缓冲区中的数据帧被发送到光线路终端,从而解决了获取导致设备异常的报文数据时,需要耗费很长的时间的问题,减少了解决设备故障需要的时间,提高了解决故障的效率。After receiving the packet, the processor encapsulates the packet into a data frame of a preset format, and forwards the data frame to the first chip by using the second chip; When receiving the data frame, the chip stores the data frame in a storage buffer of the T-CONT, and provides a data foundation for capturing a message before the optical network terminal is abnormally suspended, and is monitored by the monitoring module. a state of the processor, when the processor is abnormal, sending a reset signal to a register control module; after receiving the reset signal, the register control module is configured to The preset bit position is a preset value; when the preset bit of the register is a preset value, the first chip sends the data frame in the storage buffer of the T-CONT to the optical line terminal, that is, The timing of transmitting the data frame in the storage buffer of the T-CONT is controlled by the register control module, and the preset bit position of the register is preset only when the monitoring module detects the abnormality of the processor. The value, which in turn causes the data frame in the storage buffer of the T-CONT to be sent to the optical line terminal, thereby solving the problem that it takes a long time to obtain the packet data causing the device abnormality, and the solution is reduced. The time required for the failure increases the efficiency of troubleshooting.
可选地,基于第一实施例提出本发明光网络终端的异常报文捕获方法的第二实施例,参照图5,在本实施中,所述步骤S30包括步骤S31-S34:Optionally, a second embodiment of the method for capturing an abnormal packet of the optical network terminal of the present invention is provided based on the first embodiment. Referring to FIG. 5, in the implementation, the step S30 includes steps S31-S34:
步骤S31,所述报告单元在所述寄存器的预设比特位为预设值时,报告所述T-CONT的存储缓冲区中的所有数据帧的长度信息。Step S31, the reporting unit reports length information of all data frames in the storage buffer of the T-CONT when the preset bit of the register is a preset value.
步骤S32,所述第一芯片接收光线路终端基于所述实际长度信息反馈的时隙。Step S32, the first chip receives a time slot that the optical line terminal feeds back based on the actual length information.
步骤S33,所述第一芯片在接收到的所述时隙内将所述T-CONT的存储缓冲区中的数据帧发送到所述光线路终端。Step S33, the first chip sends a data frame in the storage buffer of the T-CONT to the optical line terminal in the received time slot.
在GPON系统中,ONT的第一芯片在向OLT发送所述T-CONT的存储缓冲区中的数据帧时,需要向OLT发送DBA报告,报告所述T-CONT的存储缓冲区中的所有数据帧的长度信息,OLT会检查DBA报告,然后决定是否向ONT的第一芯片授予发送所述传输容器T-CONT的存储缓冲区中存储的数据帧的时隙。例如,如果发送的DBA报告报告了所述T-CONT的存储缓冲区中存储的数据帧实际的长度信息,即所述数据帧的真实长度,根据标准G.984.3协议,OLT会向ONT发送授权,授予发送所述T-CONT的存储缓冲区中存储的数据帧的时隙,而所述PON-MAC芯片会在授权时隙内发送T-CONT的存储缓冲区中存储的数据帧;In the GPON system, when the first chip of the ONT sends the data frame in the storage buffer of the T-CONT to the OLT, it needs to send a DBA report to the OLT, and report all the data in the storage buffer of the T-CONT. For the length information of the frame, the OLT checks the DBA report and then decides whether to grant the first chip of the ONT the time slot of the data frame stored in the storage buffer of the transport container T-CONT. For example, if the transmitted DBA report reports the actual length information of the data frame stored in the storage buffer of the T-CONT, that is, the true length of the data frame, the OLT sends an authorization to the ONT according to the standard G.984.3 protocol. Granting a time slot for transmitting a data frame stored in a storage buffer of the T-CONT, and the PON-MAC chip transmits a data frame stored in a storage buffer of the T-CONT within an authorized time slot;
可选地,所述步骤S20之后,还包括:Optionally, after the step S20, the method further includes:
步骤S34,如果所述寄存器的预设比特位不是所述预设值,,则所述第一芯片向光线路终端报告所述传输容器T-CONT的存储缓冲区中的所有数据帧的长度信息为零,其中,在所述长度信息为零时,所述光线路终端不向所述光网络终端反馈时隙信息,以使光线路终端不向所述光网络终端反馈时 隙信息。Step S34, if the preset bit of the register is not the preset value, the first chip reports the length information of all data frames in the storage buffer of the transmission container T-CONT to the optical line terminal. Zero, wherein, when the length information is zero, the optical line terminal does not feed back time slot information to the optical network terminal, so that when the optical line terminal does not feed back to the optical network terminal Gap information.
如果所述第一芯片实时或定时检测到寄存器的预设比特位不为预设值,例如,所述寄存器的预设比特位为‘0‘,则所述第一芯片向光线路终端报告所述T-CONT的存储缓冲区中的所有数据帧的长度信息时,发送的DBA报告报告所述T-CONT的存储缓冲区中存储的数据帧的长度信息为零,根据标准G.984.3协议,OLT不向ONT授予发送所述T-CONT的存储缓冲区中存储的数据帧的时隙,使得所述PON-MAC芯片不能发送所述T-CONT的存储缓冲区中存储的数据帧。因此,为了避免ONT中的PON-MAC芯片持续发送所述T-CONT的存储缓冲区中存储的数据帧到OLT而造成的上行带宽浪费,只在所述寄存器的预设比特位为预设值时,报告所述T-CONT的存储缓冲区中的所有数据帧的长度信息,在所述寄存器的预设比特位不为预设值时,报告所述T-CONT的存储缓冲区中的所有数据帧的长度信息为零,即所述T-CONT的存储缓冲区中没有要发的数据帧,使得所述PON-MAC芯片不能发送所述T-CONT的存储缓冲区中存储的数据帧。If the first chip detects that the preset bit of the register is not a preset value in real time or timing, for example, the preset bit of the register is '0', the first chip reports to the optical line terminal When the length information of all the data frames in the storage buffer of the T-CONT is described, the sent DBA report reports that the length information of the data frame stored in the storage buffer of the T-CONT is zero, according to the standard G.984.3 protocol. The OLT does not grant the ONT a time slot for transmitting a data frame stored in the storage buffer of the T-CONT, such that the PON-MAC chip cannot transmit the data frame stored in the storage buffer of the T-CONT. Therefore, in order to avoid the upstream bandwidth waste caused by the PON-MAC chip in the ONT continuously transmitting the data frame stored in the storage buffer of the T-CONT to the OLT, only the preset bit of the register is a preset value. Reporting the length information of all data frames in the storage buffer of the T-CONT, and reporting all the storage buffers in the T-CONT when the preset bits of the register are not preset values. The length information of the data frame is zero, that is, there is no data frame to be sent in the storage buffer of the T-CONT, so that the PON-MAC chip cannot transmit the data frame stored in the storage buffer of the T-CONT.
本实施例通过在所述寄存器的预设比特位为预设值时,报告所述传输容器T-CONT的存储缓冲区中的所有数据帧的长度信息,在所述寄存器的预设比特位不为预设值时,报告所述传输容器T-CONT的存储缓冲区中的所有数据帧的长度信息为零,从而控制所述传输容器T-CONT的存储缓冲区中的所有数据帧被发出的时隙,避免ONT中的PON-MAC芯片持续发送所述传输容器T-CONT的存储缓冲区中存储的数据帧到OLT而造成的上行带宽浪费。In this embodiment, when the preset bit of the register is a preset value, the length information of all data frames in the storage buffer of the transport container T-CONT is reported, and the preset bit of the register is not When the value is preset, the length information of all data frames in the storage buffer of the transmission container T-CONT is reported to be zero, thereby controlling all data frames in the storage buffer of the transmission container T-CONT to be issued. The time slot avoids the waste of uplink bandwidth caused by the PON-MAC chip in the ONT continuously transmitting the data frame stored in the storage buffer of the transport container T-CONT to the OLT.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明每个实施例所述的方法。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments. Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in each embodiment of the present invention.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的光网络终端的异常报文捕获方法。 A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the abnormal message capture method of the optical network terminal.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例通过处理器接收到报文后,将所述报文封装成预设格式的数据帧,并将所述数据帧通过所述第二芯片转发至所述第一芯片;所述第一芯片在接收到所述数据帧时,将所述数据帧存储于T-CONT的存储缓冲区中,为实现捕获光网络终端异常挂死前的报文提供了数据基础,同时通过监测模块监测到所述处理器的状态,在所述处理器异常时,发送复位信号至寄存器控制模块;所述寄存器控制模块在接收到所述复位信号后,将所述寄存器的预设比特位置为预设值;当所述寄存器的预设比特位为预设值时,所述第一芯片将所述T-CONT的存储缓冲区中的数据帧发送到光线路终端,即通过寄存器控制模块控制发送所述T-CONT的存储缓冲区中的数据帧的时机,只有当所述监测模块监测到所述处理器异常时,才将所述寄存器的预设比特位置为预设值,进而使得所述T-CONT的存储缓冲区中的数据帧被发送到光线路终端,从而解决了获取导致设备异常的报文数据时,需要耗费很长的时间的问题,进而可以减少解决设备故障需要的时间,提高解决故障的效率。 After receiving the packet, the processor encapsulates the packet into a data frame of a preset format, and forwards the data frame to the first chip by using the second chip; When receiving the data frame, the chip stores the data frame in a storage buffer of the T-CONT, and provides a data foundation for capturing a message before the optical network terminal is abnormally suspended, and is monitored by the monitoring module. Go to the state of the processor, when the processor is abnormal, send a reset signal to the register control module; after receiving the reset signal, the register control module sets the preset bit position of the register as a preset a value; when the preset bit of the register is a preset value, the first chip sends the data frame in the storage buffer of the T-CONT to the optical line terminal, that is, the sending control station is controlled by the register control module. The timing of the data frame in the storage buffer of the T-CONT, only when the monitoring module detects the abnormality of the processor, the preset bit position of the register is set to a preset value, thereby The data frame in the storage buffer of the T-CONT is sent to the optical line terminal, which solves the problem that it takes a long time to obtain the packet data causing the device abnormality, thereby reducing the time required for solving the device failure. Improve the efficiency of troubleshooting.

Claims (13)

  1. 一种光网络终端,所述光网络终端包括:处理器、第一芯片、第二芯片、监测模块及寄存器控制模块,所述第一芯片包括传输容器T-CONT及寄存器,所述寄存器控制模块与所述处理器、所述监测模块以及所述寄存器连接,其中:An optical network terminal includes: a processor, a first chip, a second chip, a monitoring module, and a register control module, wherein the first chip includes a transmission container T-CONT and a register, and the register control module Connected to the processor, the monitoring module, and the register, wherein:
    所述处理器,设置为接收到报文后,将所述报文封装成预设格式的数据帧,并将所述数据帧通过所述第二芯片转发至所述第一芯片;The processor is configured to, after receiving the packet, encapsulate the packet into a data frame of a preset format, and forward the data frame to the first chip by using the second chip;
    所述第一芯片,设置为在接收到所述数据帧时,将所述数据帧存储于预设的所述T-CONT的存储缓冲区中;The first chip is configured to: when receiving the data frame, store the data frame in a preset storage buffer of the T-CONT;
    所述监测模块,设置为在监测到所述处理器异常时,发送复位信号至所述寄存器控制模块;The monitoring module is configured to send a reset signal to the register control module when the processor abnormality is detected;
    所述寄存器控制模块,设置为在接收到所述复位信号后,将所述寄存器的预设比特位置为预设值;The register control module is configured to: after receiving the reset signal, set a preset bit position of the register to a preset value;
    所述第一芯片,还设置为在所述寄存器的预设比特位为预设值时,将所述T-CONT的存储缓冲区中的数据帧发送到光线路终端。The first chip is further configured to send the data frame in the storage buffer of the T-CONT to the optical line terminal when the preset bit of the register is a preset value.
  2. 如权利要求1所述的光网络终端,其中,所述第一芯片包括:The optical network terminal of claim 1 wherein said first chip comprises:
    报告单元,设置为向所述光线路终端报告所述T-CONT的存储缓冲区中的所有数据帧的长度信息;a reporting unit, configured to report length information of all data frames in the storage buffer of the T-CONT to the optical line terminal;
    接收单元,设置为接收所述光线路终端基于所述长度信息反馈的时隙;a receiving unit, configured to receive a time slot that the optical line terminal feeds back based on the length information;
    发送单元,设置为在接收到的所述时隙内将所述T-CONT的存储缓冲区中的数据帧发送到所述光线路终端。And a sending unit, configured to send the data frame in the storage buffer of the T-CONT to the optical line terminal in the received time slot.
  3. 如权利要求1所述的光网络终端,所述第一芯片还设置为:检测寄存器的预设比特位是否为所述预设值;The optical network terminal according to claim 1, wherein the first chip is further configured to: detect whether a preset bit of the register is the preset value;
    如果所述寄存器的预设比特位是所述预设值,则将所述T-CONT的存储缓冲区中的数据帧发送到所述光线路终端;And if the preset bit of the register is the preset value, sending a data frame in the storage buffer of the T-CONT to the optical line terminal;
    如果所述寄存器的预设比特位不是所述预设值,则向所述光线路终端报告所述T-CONT的存储缓冲区中的所有数据帧的长度信息为零,其中,在所述长度信息为零时,所述光线路终端不向所述光网络终端反馈时隙信息。 If the preset bit of the register is not the preset value, reporting, to the optical line terminal, that the length information of all data frames in the storage buffer of the T-CONT is zero, wherein the length is When the information is zero, the optical line terminal does not feed back the slot information to the optical network terminal.
  4. 如权利要求1所述的光网络终端,其中,所述处理器,还设置为在接收到报文后,截取所述报文的预设字节长度的数据,并将所述数据封装成预设格式的数据帧。The optical network terminal according to claim 1, wherein the processor is further configured to: after receiving the message, intercept data of a preset byte length of the message, and encapsulate the data into a pre-package Formatted data frames.
  5. 如权利要求4所述的光网络终端,其中,所述报文分为不同类型,所述处理器,还设置为将不同类型的报文的截取数据封装成不同类型的预设格式的数据帧。The optical network terminal according to claim 4, wherein the packets are classified into different types, and the processor is further configured to encapsulate the intercepted data of different types of packets into data frames of different types of preset formats. .
  6. 如权利要求1至5任一项所述的光网络终端,其中,所述T-CONT的存储缓冲区为环形栈区。The optical network terminal according to any one of claims 1 to 5, wherein the storage buffer of the T-CONT is a ring stack area.
  7. 一种光网络终端的异常报文捕获方法,包括:An abnormal packet capture method for an optical network terminal includes:
    接收到报文后,将所述报文封装成预设格式的数据帧;After receiving the packet, the packet is encapsulated into a data frame in a preset format;
    将所述数据帧存储于预设的传输容器T-CONT的存储缓冲区中;The data frame is stored in a storage buffer of a preset transmission container T-CONT;
    在监测到处理器异常时,发送复位信号;Sending a reset signal when a processor exception is detected;
    在接收到所述复位信号后,将寄存器的预设比特位置为预设值;After receiving the reset signal, setting a preset bit position of the register to a preset value;
    在所述寄存器的预设比特位为预设值时,将所述传输容器T-CONT的存储缓冲区中的数据帧发送到光线路终端。When the preset bit of the register is a preset value, the data frame in the storage buffer of the transmission container T-CONT is sent to the optical line terminal.
  8. 如权利要求7所述的光网络终端的异常报文捕获方法,其中,所述将所述报文封装成预设格式的数据帧包括:截取所述报文的预设字节长度的数据封装成预设格式的数据帧。The method for capturing an abnormal packet of an optical network terminal according to claim 7, wherein the encapsulating the packet into a data frame of a preset format comprises: encapsulating a data package of a preset byte length of the packet A data frame in a preset format.
  9. 如权利要求8所述的光网络终端的异常报文捕获方法,其中,所述报文分为不同类型,所述方法还包括:将不同类型的报文的截取数据封装成不同类型的预设格式的数据帧。The abnormal packet capture method of the optical network terminal according to claim 8, wherein the packet is divided into different types, and the method further comprises: encapsulating the intercepted data of different types of packets into different types of presets. Formatted data frame.
  10. 如权利要求7所述的光网络终端的异常报文捕获方法,其中,所述将所述T-CONT的存储缓冲区中的数据帧发送到光线路终端包括: The abnormal packet capture method of the optical network terminal according to claim 7, wherein the transmitting the data frame in the storage buffer of the T-CONT to the optical line terminal comprises:
    向光线路终端报告所述T-CONT的存储缓冲区中的所有数据帧的实际长度信息;Reporting, to the optical line terminal, actual length information of all data frames in the storage buffer of the T-CONT;
    接收所述光线路终端基于所述实际长度信息反馈的时隙;Receiving a time slot that the optical line terminal feeds back based on the actual length information;
    在接收到的所述时隙内将所述T-CONT的存储缓冲区中的数据帧发送到所述光线路终端。Transmitting a data frame in the storage buffer of the T-CONT to the optical line terminal within the received time slot.
  11. 如权利要求7所述的光网络终端的异常报文捕获方法,所述方法还包括:检测寄存器的预设比特位是否为所述预设值;如果所述寄存器的预设比特位是所述预设值,则将所述T-CONT的存储缓冲区中的数据帧发送到所述光线路终端;The method of capturing an abnormal message of an optical network terminal according to claim 7, further comprising: detecting whether a preset bit of the register is the preset value; if a preset bit of the register is the a preset value, the data frame in the storage buffer of the T-CONT is sent to the optical line terminal;
    如果所述寄存器的预设比特位不是所述预设值,则向所述光线路终端报告所述T-CONT的存储缓冲区中的所有数据帧的长度信息为零,其中,在所述长度信息为零时,所述光线路终端不向所述光网络终端反馈时隙信息。If the preset bit of the register is not the preset value, reporting, to the optical line terminal, that the length information of all data frames in the storage buffer of the T-CONT is zero, wherein the length is When the information is zero, the optical line terminal does not feed back the slot information to the optical network terminal.
  12. 如权利要求7至11任一项所述的光网络终端的异常报文捕获方法,其中,所述T-CONT的存储缓冲区为环形栈区。The abnormal message capturing method of the optical network terminal according to any one of claims 7 to 11, wherein the storage buffer of the T-CONT is a ring stack area.
  13. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求7至11任意一项所述的光网络终端的异常报文捕获方法。 A computer readable storage medium storing computer executable instructions, the computer executable instructions being executed by a processor to implement an abnormal message capture method of an optical network terminal according to any one of claims 7 to 11.
PCT/CN2016/085735 2016-01-18 2016-06-14 Optical network terminal and method for capturing abnormal message of optical network terminal WO2017124684A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610032710.1A CN106982092B (en) 2016-01-18 2016-01-18 Abnormal message capturing method of optical network terminal and optical network terminal
CN201610032710.1 2016-01-18

Publications (1)

Publication Number Publication Date
WO2017124684A1 true WO2017124684A1 (en) 2017-07-27

Family

ID=59340770

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/085735 WO2017124684A1 (en) 2016-01-18 2016-06-14 Optical network terminal and method for capturing abnormal message of optical network terminal

Country Status (2)

Country Link
CN (1) CN106982092B (en)
WO (1) WO2017124684A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813590A (en) * 2020-06-02 2020-10-23 中车株洲电力机车研究所有限公司 Method and device for diagnosing abnormal reset of main control module and main control module
CN113055225A (en) * 2021-02-08 2021-06-29 网宿科技股份有限公司 Method for acquiring network fault analysis data, terminal and server

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109636256B (en) * 2019-01-30 2022-04-12 四川长虹电器股份有限公司 MAC address management method of MES system
CN111752502B (en) * 2020-06-29 2023-09-19 珠海奔图电子有限公司 Printing control apparatus, printing control method, and image forming apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007123692A2 (en) * 2006-04-05 2007-11-01 Tellabs Petaluma, Inc. Detecting and minimizing effects of optical network faults
CN101304281A (en) * 2007-05-09 2008-11-12 日立通讯技术株式会社 PON system optical line terminal and optical network unit capable of performing alarm transmission strategy
CN101494497A (en) * 2008-01-25 2009-07-29 华为技术有限公司 Method, system and equipment for managing line
US20110013903A1 (en) * 2008-01-29 2011-01-20 Albert Rafel Porti Optical communication
CN103117871A (en) * 2012-12-31 2013-05-22 广东东研网络科技股份有限公司 Message limiting system and message limiting method used in optical line terminal (OLT) network administration channel
CN103200129A (en) * 2013-04-05 2013-07-10 张小云 Mirroring method and device of unusual messages

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8108880B2 (en) * 2007-03-07 2012-01-31 International Business Machines Corporation Method and system for enabling state save and debug operations for co-routines in an event-driven environment
CN104065160B (en) * 2014-06-06 2016-01-27 武汉中元华电科技股份有限公司 Exception message processing method in a kind of electric power system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007123692A2 (en) * 2006-04-05 2007-11-01 Tellabs Petaluma, Inc. Detecting and minimizing effects of optical network faults
CN101304281A (en) * 2007-05-09 2008-11-12 日立通讯技术株式会社 PON system optical line terminal and optical network unit capable of performing alarm transmission strategy
CN101494497A (en) * 2008-01-25 2009-07-29 华为技术有限公司 Method, system and equipment for managing line
US20110013903A1 (en) * 2008-01-29 2011-01-20 Albert Rafel Porti Optical communication
CN103117871A (en) * 2012-12-31 2013-05-22 广东东研网络科技股份有限公司 Message limiting system and message limiting method used in optical line terminal (OLT) network administration channel
CN103200129A (en) * 2013-04-05 2013-07-10 张小云 Mirroring method and device of unusual messages

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813590A (en) * 2020-06-02 2020-10-23 中车株洲电力机车研究所有限公司 Method and device for diagnosing abnormal reset of main control module and main control module
CN111813590B (en) * 2020-06-02 2024-02-27 中车株洲电力机车研究所有限公司 Method and device for diagnosing abnormal reset of main control module and main control module
CN113055225A (en) * 2021-02-08 2021-06-29 网宿科技股份有限公司 Method for acquiring network fault analysis data, terminal and server
CN113055225B (en) * 2021-02-08 2023-12-05 网宿科技股份有限公司 Network fault analysis data acquisition method, terminal and server

Also Published As

Publication number Publication date
CN106982092B (en) 2021-01-08
CN106982092A (en) 2017-07-25

Similar Documents

Publication Publication Date Title
JP5233504B2 (en) Route control apparatus and packet discarding method
US11388107B2 (en) Method, apparatus, and system for locating root cause of network anomaly, and computer storage medium
US11032205B2 (en) Flow control method and switching device
WO2017124684A1 (en) Optical network terminal and method for capturing abnormal message of optical network terminal
WO2019218786A1 (en) Route detection method based on tunneling technology, and routing node and central server
US11272396B2 (en) Frame aggregation method, network setting frame sending method, and device
US9819599B2 (en) Method and system for improving bandwidth allocation efficiency
US8817799B2 (en) Network processor for supporting residential gateway applications
US20140050078A1 (en) Communication interruption time reduction method in a packet communication network
GB2532054A (en) NC-SI port controller
JP2004153836A (en) Oam packet data transmission method and ethernet (r) passive optical subscriber network including control multiplexer for oam packwet data transmission method
CN103414594A (en) IP stream information statistical method for charging and monitoring
KR101710385B1 (en) Method, apparatus and computer program for managing arp packet
CN101540772A (en) DPI (deep packet inspection) equipment and communication method thereof
US20160373322A1 (en) Controlling generation of filtered result packets
WO2018209914A1 (en) Method and system for olt loopback detection in gpon system
CN101355585B (en) System and method for protecting information of distributed architecture data communication equipment
CN112822128B (en) PON system message mirroring method and PON system
KR20120073869A (en) Method for transmitting oam message and processing error in pon system
CN109286564B (en) Message forwarding method and device
CN104618148A (en) Firewall device and backup method thereof
JP2014007501A (en) Communication device
WO2021109851A1 (en) Network communication method, apparatus and device, and storage medium
JP4768668B2 (en) Communication system, subscriber terminal, station side device, communication method and program
Neufeld et al. The LHCb eventbuilder: Design, implementation and operational experience

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

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

Country of ref document: EP

Kind code of ref document: A1