CN106982092B - Abnormal message capturing method of optical network terminal and optical network terminal - Google Patents
Abnormal message capturing method of optical network terminal and optical network terminal Download PDFInfo
- Publication number
- CN106982092B CN106982092B CN201610032710.1A CN201610032710A CN106982092B CN 106982092 B CN106982092 B CN 106982092B CN 201610032710 A CN201610032710 A CN 201610032710A CN 106982092 B CN106982092 B CN 106982092B
- Authority
- CN
- China
- Prior art keywords
- chip
- cont
- data frame
- data
- storage buffer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/07—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
- H04B10/075—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
- H04B10/079—Arrangements 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/0791—Fault location on the transmission path
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/07—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
- H04B10/075—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
- H04B10/079—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/27—Arrangements for networking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q11/0067—Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Optical Communication System (AREA)
Abstract
The invention discloses a method for capturing an abnormal message of an optical network terminal, which comprises the following steps: the method comprises the steps that a first chip receives a data frame sent by a second chip, and the data frame is stored in a storage buffer area of a preset transmission container T-CONT; the first chip detects whether a preset bit of a register controlling the transmission container T-CONT is a preset value or not; and if so, the first chip sends the data frame in the storage buffer area of the transmission container T-CONT to an optical line terminal. The invention also discloses an optical network terminal. The invention reduces the time required for solving the equipment fault and improves the efficiency of solving the fault.
Description
Technical Field
The present invention relates to the field of optical network terminal technology, and in particular, to an abnormal packet capturing method for an optical network terminal and an optical network terminal.
Background
A GPON (Gigabit-Capable Passive Optical Network) system mainly comprises an OLT (Optical Line terminal), an ODN (Optical Distribution Network) and an ONT (Optical Network terminal), and the topology 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 typically located in a telecommunications room, where 32/64/128 ONT devices can be connected, and the ONT devices are located in a user corridor or the like, which is a maximum distance of 60 km away from the office. The Transmission container T-CONT (Transmission container) is an upstream Transmission container in the GPON, and is a basic unit for performing upstream bandwidth request and allocation, and each ONT supports multiple TCONTs (the specific number supported is determined by ONT capability), and may generally support 8, 16, 32, and 64. The GPON system divides the uplink into different time slots, allocates transmission time slots to each transmission container T-CONT by using a DBA (dynamic bandwidth allocation) algorithm, and the ONT transmits data in the transmission containers T-CONT in the allocated time slots. Each transport container T-CONT generally supports 4-8 queues, and upstream traffic flows of the GPON ONTs are scheduled in the transport container T-CONT queues. The ONT equipment supports dozens of user ports (each port is connected with one user), converges uplink data of different services of all users and accesses the internet through a GPON system, and forwards the received downlink data to each user port through a certain forwarding strategy.
Under the field operation environment, the ONT equipment often receives a large number of protocol messages of various types to cause abnormal hanging, the fault recurrence time after the equipment is automatically restarted is uncertain, which may be 1 hour or several days, and the fault equipment is directly hung under the local OLT, so that the problem can not be recovered.
The reasons for the abnormal hang-up of the device include various reasons, such as illegal protocol messages, BUG of ONT software itself, and the like. Under the current technical conditions, each ONT manufacturer usually obtains abnormal message data by the following method to locate the cause of hang-up when excluding non-data causes such as temperature.
The method comprises the following steps: connecting a notebook computer with a network port of ONT, configuring data mirror image on ONT, copying data stream to the network port connected with the notebook computer, and then starting a packet capturing tool on the notebook computer to capture packets in real time. Since the ONT deployment environment is far from the local side and the situation is complicated, a lot of manpower is required to implement this method, and the progress speed of the troubleshooting is seriously hindered due to the ONT installation environment.
The second method comprises the following steps: and remotely starting the ONT bottom layer printing, and storing all received messages into a log file for analysis and processing. Because the fault recurrence time is uncertain, the packet capturing process must be continuously carried out, so that a large amount of CPU resources are occupied, and the normal operation of the ONT is seriously influenced.
The third method comprises the following steps: and storing the received message in memory devices such as a high-end memory. After the packet grabbing process of the packet grabbing method is started, the running memory of the equipment is occupied, and the system performance and stability are seriously influenced.
The method four comprises the following steps: and storing the received message in external storage equipment such as FLASH and the like. Since the CPU writes data to the external memory device slowly and the embedded device has limited external memory, this method is difficult to implement during device operation.
Although the above methods can acquire the message data causing the device abnormality, the methods all need to consume a long time when acquiring the message data causing the device abnormality.
Disclosure of Invention
The invention mainly aims to provide a method and a device for capturing abnormal messages of an optical network terminal and the optical network terminal, and aims to solve the problem that long time is consumed when message data causing equipment abnormality is acquired.
In order to achieve the above object, the present invention provides an optical network terminal, including: the system comprises a processor, a first chip, a second chip, a monitoring module and a register control module, wherein the register control module is connected with the processor and the monitoring module, the first chip comprises a transmission container T-CONT and a register, and the register control module is also connected with the register, wherein:
the processor is configured to encapsulate a packet into a data frame in a preset format after receiving the packet, and forward the data frame to the first chip through the second chip;
the first chip is used for storing the data frame in a preset storage buffer area of the transmission container T-CONT when the data frame is received;
the monitoring module is used for sending a reset signal to the register control module when the processor is monitored to be abnormal;
the register control module is used for setting the preset bit position of the register to be a preset value after receiving the reset signal;
and the first chip is further configured to send the data frame in the storage buffer of the transmission container T-CONT to an optical line terminal when the preset bit of the register is a preset value.
Optionally, the first chip includes:
a reporting unit, configured to report, to the olt, length information of all data frames in a storage buffer of the transport container T-CONT;
a receiving unit, configured to receive a time slot fed back by the optical line terminal based on the length information, where when the length information is zero, the optical line terminal does not feed back time slot information to the optical network terminal;
and a sending unit, configured to send the data frame in the storage buffer of the transport container T-CONT to the optical line terminal in the received time slot.
Optionally, the processor is further configured to intercept data of a preset byte length of the packet after receiving the packet, and encapsulate the data into a data frame of a preset format.
Optionally, the messages may be classified into different types, and the processor is further configured to encapsulate intercepted data of the messages of different types into data frames of different types in preset formats.
Optionally, the storage buffer area of the transport container T-CONT is a ring stack area.
Correspondingly, in order to achieve the above object, the present invention further provides an abnormal packet capturing method of an optical network terminal, where the abnormal packet capturing method of the optical network terminal includes the following steps:
the method comprises the steps that a first chip receives a data frame sent by a second chip, and the data frame is stored in a storage buffer area of a preset transmission container T-CONT;
the first chip detects whether a preset bit of the register is a preset value or not;
and if so, the first chip sends the data frame in the storage buffer area of the transmission container T-CONT to an optical line terminal.
Optionally, the data frame is a data frame in which a processor intercepts data of a preset byte length of a message and encapsulates the data into a preset format after receiving the message.
Optionally, the step of sending, by the first chip, the data frame in the storage buffer of the transport container T-CONT to the optical line terminal includes:
the first chip reports the actual length information of all data frames in the storage buffer area of the transmission container T-CONT to an optical line terminal;
the first chip receives a time slot fed back by the optical line terminal based on the actual length information;
and the first chip sends the data frame in the storage buffer area of the transmission container T-CONT to the optical line terminal in the received time slot.
Optionally, after the step of detecting whether the preset bit of the register is a preset value by the first chip, the method further includes:
if not, the first chip reports that the length information of all data frames in the storage buffer area of the transmission container T-CONT is zero to the optical line terminal, wherein when the length information is zero, the optical line terminal does not feed back time slot information to the optical network terminal.
Optionally, the storage buffer area of the transport container T-CONT is a ring stack area.
After a message is received by a processor, the message is packaged into a data frame with a preset format, and the data frame is forwarded to a first chip through a second chip; when the first chip receives the data frame, the data frame is stored in a storage buffer area of a transmission container T-CONT, a data basis is provided for capturing messages before an optical network terminal is abnormally hung, meanwhile, the state of the processor is monitored through a monitoring module, and when the processor is abnormal, a reset signal is sent to a register control module; after receiving the reset signal, the register control module sets the preset bit position of the register to be 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 area of the transmission container T-CONT to the optical line terminal, that is, the timing for sending the data frame in the storage buffer area of the transmission container T-CONT is controlled by the register control module, and only when the monitoring module monitors that the processor is abnormal, the preset bit position of the register is the preset value, so that the data frame in the storage buffer area of the transmission container T-CONT is sent to the optical line terminal, thereby solving the problem that a long time is required to be consumed when message data causing equipment abnormality is obtained, further reducing the time required for solving equipment faults, and improving the efficiency for solving the faults.
Drawings
Fig. 1 is a schematic structural diagram of an optical network terminal according to the present invention;
fig. 2 is a schematic diagram of the structure of a data frame stored in a transport container T-CONT;
FIG. 3 is a schematic diagram of a detailed functional block of the first chip in FIG. 1 according to the present invention;
fig. 4 is a schematic flowchart of a first embodiment of capturing an abnormal packet of an optical network terminal according to the present invention;
fig. 5 is a flowchart illustrating abnormal packet capturing of an optical network terminal according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Based on the above problem, the present invention provides an optical network terminal.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an optical network terminal according to the present invention.
The optical network terminal comprises: the chip comprises a first chip 10, a processor 11, a second chip 12, a monitoring module 13 and a register control module 14, wherein the register control module 14 is connected with the processor 11 and the monitoring module 13, the first chip 10 comprises a transmission container T-CONT15 and a register 16, and the register control module 14 is further connected with the register 16.
The processor 11 is configured to encapsulate, after receiving a packet, the packet into a data frame in a preset format, and forward the data frame to the first chip 10 through the second chip 12;
in this embodiment, the processor 11 is a central control module of the optical network terminal, preferably a CPU, the second chip 12 is preferably a switch chip, and the first chip 10 is preferably a PON-MAC chip. The messages received by the processor include messages forwarded to the CPU by all switching chips such as an IGMP (Internet Group Management Protocol), a DHCP (Dynamic Host Configuration Protocol), an ARP (Address Resolution Protocol), and the like, and messages received by the CPU through other interfaces. The data frame in the preset format is the data frame in the frame format as shown 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 packet data. The destination MAC address is set as the MAC of the ONT next-hop gateway, the source MAC address field may be set as the CPU in-band MAC, the constant value field is set as OX8100, which indicates that the frame includes an 802.1QVLAN tag, the vlan + priority field may be flexibly set according to the needs of the service, which is a basis for the PON-MAC chip to forward to different GEMPORT (for carrying the service) under the transport container, the type field is a distinguishing field between the message received by the CPU and other types of messages, which may be set as OX8900, the length field is the length field of the message, which indicates how many bytes the message has, and the message data is the message received by the CPU.
After the received message is encapsulated into a data frame, a network drive packet sending interface function is called, the encapsulated data frame is sent to an uplink port of a switching chip, and then the data frame is sent to the PON-MAC chip through the uplink port. The uplink port of the switch chip is a port connected to the PON-MAC chip through an Interface such as a GMII (Gigabit media Independent Interface), all uplink data sent to the OLT is sent to the PON-MAC chip through the port, and downlink data sent from the OLT enters the switch chip through the port through the PON-MAC chip and is further forwarded to a destination user port or a CPU port.
Further, the processor 11 is further configured to intercept data of a preset byte length of the packet after receiving the packet, and encapsulate the data into a data frame of a preset format.
The preset byte length of the message is the preset number of bytes for intercepting the message. The data with the preset byte length is intercepted from the destination MAC (Media Access Control) address data of the received message until the data with the preset byte length is intercepted. For example, if the preset byte length is 500 bytes, the data with the preset byte length is calculated from the destination MAC address data of the packet until 500 pieces of packet data are acquired, and the acquired 500 pieces of data of the packet are the data with the preset byte length. In the process of encapsulating the data into the data frames with the preset format, as the CPU receives various types of messages and the attention degree of maintenance personnel to different types of messages is different, in the process of encapsulating and framing, the intercepted data of different types of messages can be encapsulated into the data frames with different priorities. For example, different types of messages may be encapsulated into frames with different vlan + priorities, and the PON-MAC chip may match the data frames according to a preset classification rule, so as to send the frames matched with the different classification rules into storage regions with different priorities under the storage buffer of the transmission container T-CONT.
The first chip 10 is configured to store the data frame in a preset storage buffer of the 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 transmission container T-CONT when receiving the data frame. And the storage buffer area of the transmission container T-CONT comprises a plurality of priority queues. Further, the storage buffers of the transport containers T-CONT are organized into ring stacks with different sending priorities, that is, ring stacks with a plurality of different priorities are included. Taking the storage buffer area of the transmission container T-CONT as an annular stack area as an example, the process of storing the data frame in the storage buffer area of the transmission container T-CONT is as follows:
for example, a new data frame is stored in a ring-shaped stack area of the transport container T-CONT, the data frame is filled in the data block pointed by the cursor currently, the cursor of the stack area points clockwise to the start position of the next data block, and if the data block pointed by the cursor currently is occupied, the data filled in the data block is covered by the data of the current data frame, where the data block is a pre-allocated data storage unit with a fixed length. The reason why the storage buffer area of the transmission container T-CONT is set as the plurality of ring stack areas with different priorities is that the message causing the ONT to hang up abnormally should be a limited number of messages received before hanging up, but not related to the earlier received messages, and the closer the time when the message is received is to the abnormal hanging up time of the ONT device, the higher the possibility that the ONT device hangs up is caused, so the storage buffer area of the transmission container T-CONT is set as the plurality of ring stack areas with different priorities, so that only part of the data frames in the ring stack area need to be sent when the message in the ring stack area is sent.
The monitoring module 13 is configured to send a reset signal to the register control module 14 when monitoring that the processor 11 is abnormal;
the monitoring module 13 is preferably a watchdog circuit, and the register control module 14 is preferably a CPLD. A watchdog circuit is essentially a timer circuit, generally having an input, called a watchdog, and an output, generally connected to the reset terminal of the other part, and operating according to the following basic principle: the watchdog counter is started after the whole system runs, the watchdog starts to automatically time, and if the watchdog is not cleared for zero clearing after a certain time, the watchdog counter overflows to cause the watchdog to be interrupted, so that the system is reset. For example, when the watchdog circuit does not receive the watchdog feeding signal sent by the CPU within a period of time, that is, the watchdog circuit monitors that the CPU is abnormal, for example, the CPU is in a program running state or a dead loop state, the watchdog circuit sends a reset signal to the CPLD connected to the watchdog circuit.
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, taking CPLD as an example, configures a preset bit of a register in the PON-MAC chip through the PCI bus after receiving a reset signal sent by the monitoring circuit. The preset bit is a control bit for controlling the transmission container T-CONT by the register. In the present embodiment, 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 transport container T-CONT15 to an optical line terminal when the preset bit of the register 16 is a preset value.
And when the preset bit of the register is a preset value. For example, the preset bit of the register is '1', the first chip may first send a data frame filled in a data block pointed by the cursor in each ring stack region, after sending is completed, the cursor points to the start position of a previous data block in the counterclockwise direction, and continue sending the data frame filled in the data block pointed by the cursor until all data frames stored in the ring stack region are sent completely or an authorized time slot is completed, where it should be noted that the sending process is exemplified by taking the storage buffer region of the transmission container T-CONT as the ring stack region.
Specifically, referring to fig. 3, 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 transport container T-CONT to the olt;
the receiving unit 101 is configured to receive a time slot fed back by the optical line terminal based on the length information, where when the length information is zero, the optical line terminal does not feed back time slot information to the optical network terminal;
the sending unit 102 is configured to send the data frame in the storage buffer of the transport container T-CONT to the optical line terminal within the received time slot.
In the GPON system, when the first chip of the ONT sends the data frame in the storage buffer of the transmission container T-CONT to the OLT, it needs to send a DBA report to the OLT, report the length information of all the data frames in the storage buffer of the transmission container T-CONT, and the OLT checks the DBA report and then determines whether to grant the first chip of the ONT the time slot for sending the data frame stored in the storage buffer of the transmission container T-CONT. For example, if the sent report reports the actual length information of the data frame stored in the storage buffer of the transmission container T-CONT, according to the standard g.984.3 protocol, the OLT may send an authorization to the ONT to grant a time slot for sending the data frame stored in the storage buffer of the transmission container T-CONT, and the PON-MAC chip may send the data frame stored in the storage buffer of the transmission container T-CONT within the granted time slot; if the sent report reports that the length information of the data frame stored in the storage buffer area of the transmission container T-CONT is zero, according to the standard G.984.3 protocol, the OLT does not grant the ONT the time slot for sending the data frame stored in the storage buffer area of the transmission container T-CONT, so that the PON-MAC chip cannot send the data frame stored in the storage buffer area of the transmission container T-CONT. Therefore, in order to avoid uplink bandwidth waste caused by the PON-MAC chip in the ONT continuously sending the data frames stored in the storage buffer of the transmission container T-CONT to the OLT, only when the preset bit of the register is a preset value, the length information of all the data frames in the storage buffer of the transmission container T-CONT is reported, and when the preset bit of the register is not the preset value, the length information of all the data frames in the storage buffer of the transmission container T-CONT is reported to be zero, that is, there is no data frame to be sent in the storage buffer of the transmission container T-CONT, so that the PON-MAC chip cannot send the data frames stored in the storage buffer of the transmission container T-CONT.
After a message is received by a processor, the message is packaged into a data frame with a preset format, and the data frame is forwarded to a first chip through a second chip; when the first chip receives the data frame, the data frame is stored in a storage buffer area of a transmission container T-CONT, a data basis is provided for capturing messages before an optical network terminal is abnormally hung, meanwhile, the state of the processor is monitored through a monitoring module, and when the processor is abnormal, a reset signal is sent to a register control module; after receiving the reset signal, the register control module sets the preset bit position of the register to be 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 area of the transmission container T-CONT to the optical line terminal, that is, the timing for sending the data frame in the storage buffer area of the transmission container T-CONT is controlled by the register control module, and only when the monitoring module monitors that the processor is abnormal, the preset bit position of the register is the preset value, so that the data frame in the storage buffer area of the transmission container T-CONT is sent to the optical line terminal, thereby solving the problem that a long time is required to be consumed when message data causing equipment abnormality is obtained, further reducing the time required for solving equipment faults, and improving the efficiency for solving the faults.
Based on the foregoing optical network terminal, a first embodiment of the method for capturing an abnormal packet of an optical network terminal of the present invention is provided, and referring to fig. 4, in this embodiment, the method for capturing an abnormal packet of an optical network terminal includes the following steps:
step S10, the first chip receives the data frame sent by the second chip and stores the data frame in a storage buffer area of a preset transmission container T-CONT;
the data frame may be a data frame in which the processor encapsulates a message into a preset format after receiving the message. The processor is a central control module of the optical network terminal, preferably a CPU, the second chip is preferably a switch chip, and the first chip is preferably a PON-MAC chip. The messages received by the processor include messages forwarded to the CPU by all switching chips such as an IGMP (Internet Group Management Protocol), a DHCP (Dynamic Host Configuration Protocol), an ARP (Address Resolution Protocol), and the like, and messages received by the CPU through other interfaces. The data frame in the preset format is the data frame in the frame format as shown 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 packet data. The destination MAC address is set as the MAC of the ONT next-hop gateway, the source MAC address field may be set as the CPU in-band MAC, the constant value field is set as OX8100, which indicates that the frame includes an 802.1QVLAN tag, the vlan + priority field may be flexibly set according to the needs of the service, which is a basis for the PON-MAC chip to forward to different GEMPORT (for carrying the service) under the transport container, the type field is a distinguishing field between the message received by the CPU and other types of messages, which may be set as OX8900, the length field is the length field of the message, which indicates how many bytes the message has, and the message data is the message received by the CPU.
Further, the data frame is a data frame in which a processor intercepts data of a preset byte length of a message and encapsulates the data into a preset format after receiving the message. The preset byte length of the message is the preset number of bytes for intercepting the message. The data with the preset byte length is intercepted from the destination MAC (Media Access Control) address data of the received message until the data with the preset byte length is intercepted. For example, if the preset byte length is 500 bytes, the data with the preset byte length is calculated from the destination MAC address data of the packet until 500 pieces of packet data are acquired, and the acquired 500 pieces of data of the packet are the data with the preset byte length. In the process of encapsulating the data into the data frames with the preset format, as the CPU receives various types of messages and the attention degree of maintenance personnel to different types of messages is different, in the process of encapsulating and framing, the intercepted data of different types of messages can be encapsulated into the data frames with different priorities. For example, different types of messages may be encapsulated into frames with different vlan + priorities, and the PON-MAC chip may match the data frames according to a preset classification rule, so as to send the frames matched with the different classification rules into storage regions with different priorities under the storage buffer of the transmission container T-CONT.
After the received message is encapsulated into a data frame, a network drive packet sending interface function is called, the encapsulated data frame is sent to an uplink port of a switching chip, and then the data frame is sent to the PON-MAC chip through the uplink port. The uplink port of the switch chip is a port connected to the PON-MAC chip through an Interface such as a GMII (Gigabit media Independent Interface), all uplink data sent to the OLT is sent to the PON-MAC chip through the port, and downlink data sent from the OLT enters the switch chip through the port through the PON-MAC chip.
And when the data frame is received, storing the data frame in a storage buffer area of the transmission container T-CONT. And the storage buffer area of the transmission container T-CONT comprises a plurality of priority queues. Further, the storage buffers of the transport containers T-CONT are organized into ring stacks with different sending priorities, that is, ring stacks with a plurality of different priorities are included. Taking the storage buffer area of the transmission container T-CONT as an annular stack area as an example, the process of storing the data frame in the storage buffer area of the transmission container T-CONT is as follows:
for example, a new data frame is stored in a ring-shaped stack area of the transport container T-CONT, the data frame is filled in the data block pointed by the cursor currently, the cursor of the stack area points clockwise to the start position of the next data block, and if the data block pointed by the cursor currently is occupied, the data filled in the data block is covered by the data of the current data frame, where the data block is a pre-allocated data storage unit with a fixed length. The reason why the storage buffer area of the transmission container T-CONT is set as the plurality of ring stack areas with different priorities is that the message causing the ONT to hang up abnormally should be a limited number of messages received before hanging up, but not related to the earlier received messages, and the closer the time when the message is received is to the abnormal hanging up time of the ONT device, the higher the possibility that the ONT device hangs up is caused, so the storage buffer area of the transmission container T-CONT is set as the plurality of ring stack areas with different priorities, so that only part of the data frames in the ring stack area need to be sent when the message in the ring stack area is sent.
Step S20, the first chip detects whether a preset bit of a register controlling the transmission container T-CONT is a preset value;
and the first chip, taking a PON-MAC chip as an example, detects in real time or at regular time whether a preset bit of a register controlling the transmission container T-CONT is a preset value. The preset bit is a control bit for controlling the transmission container T-CONT by the register. In the present embodiment, the preset value is '1' representing a high level. The preset bit of the register can be controlled by a register control module of the optical network terminal. The register control module, taking CPLD as an example, configures a preset bit of a register in the PON-MAC chip through the PCI bus after receiving a reset signal sent by the monitoring module. The monitoring module, preferably a watchdog circuit, is essentially a timer circuit, generally having an input called a feed dog and an output generally connected to a reset terminal of another part, and basically operates according to the following principle: the watchdog counter is started after the whole system runs, the watchdog starts to automatically time, and if the watchdog is not cleared for zero clearing after a certain time, the watchdog counter overflows to cause the watchdog to be interrupted, so that the system is reset. For example, when the watchdog circuit does not receive a dog feeding signal sent by the CPU within a period of time, that is, the CPU is monitored to be abnormal, for example, the CPU is in a program runaway state or a dead cycle state, the watchdog circuit sends a reset signal to the CPLD connected thereto, and the CPLD configures a preset bit position of a register in the PON-MAC chip to be '1' through the PCI bus.
And step S30, if yes, the first chip sends the data frame in the storage buffer of the transport container T-CONT to the optical line terminal.
If it is detected that the preset bit of the register is a preset value, for example, the preset bit of the register is '1', the first chip, taking the PON-MAC chip as an example, first sends a data frame filled in a data block pointed by the cursor in each ring-shaped stack region, after the sending is completed, the cursor points to the start position of an upper data block in the counterclockwise direction, and continues to send the data frame filled in the data block pointed by the cursor until all data frames stored in the ring-shaped stack region are sent completely or an authorized timeslot is ended, it should be noted that the sending process takes the storage buffer region of the transmission container T-CONT as an example, as a ring-shaped stack region.
In this embodiment, after receiving a packet through a processor, the packet is encapsulated into a data frame in a preset format, and the data frame is forwarded to the first chip through the second chip; when the first chip receives the data frame, the data frame is stored in a storage buffer area of a transmission container T-CONT, a data basis is provided for capturing messages before an optical network terminal is abnormally hung, meanwhile, the state of the processor is monitored through a monitoring module, and when the processor is abnormal, a reset signal is sent to a register control module; after receiving the reset signal, the register control module sets the preset bit position of the register to be 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 area of the transmission container T-CONT to an optical line terminal, namely, the timing for sending the data frame in the storage buffer area of the transmission container T-CONT is controlled by a register control module, and only when the monitoring module monitors that the processor is abnormal, the preset bit position of the register is the preset value, so that the data frame in the storage buffer area of the transmission container T-CONT is sent to the optical line terminal, thereby solving the problem that a long time is needed when message data causing equipment abnormality is obtained, reducing the time needed for solving equipment faults, and improving the efficiency for solving the faults.
Further, a second embodiment of the method for capturing an abnormal packet of an optical network terminal according to the present invention is provided based on the first embodiment, and referring to fig. 5, in this implementation, the step S30 includes:
step S31, when the preset bit of the register is a preset value, the reporting unit reports the length information of all data frames in the storage buffer of the transmission container T-CONT;
step S32, the first chip receives the time slot fed back by the optical line terminal based on the actual length information;
and step S33, the first chip sends the data frame in the storage buffer of the transport container T-CONT to the optical line terminal within the received time slot.
In the GPON system, when the first chip of the ONT sends the data frame in the storage buffer of the transmission container T-CONT to the OLT, it needs to send a DBA report to the OLT, report the length information of all the data frames in the storage buffer of the transmission container T-CONT, and the OLT checks the DBA report and then determines whether to grant the first chip of the ONT the time slot for sending the data frame stored in the storage buffer of the transmission 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 transmission container T-CONT, i.e. the actual length of the data frame, according to the standard g.984.3 protocol, the OLT may transmit an authorization to the ONT to grant a time slot for transmitting the data frame stored in the storage buffer of the transmission container T-CONT, and the PON-MAC chip may transmit the data frame stored in the storage buffer of the transmission container T-CONT within the granted time slot;
further, after the step S20, the method further includes:
step S34, if not, the first chip reports to an optical line terminal that length information of all data frames in the storage buffer of the transmission container T-CONT is zero, so that the optical line terminal does not feed back time slot information to the optical network terminal.
If the first chip detects in real time or at regular time that the preset bit of the register is not a preset value, for example, the preset bit of the register is '0', when the first chip reports the length information of all the data frames in the storage buffer area of the transmission container T-CONT to an optical line terminal, the sent DBA report reports that the length information of the data frames stored in the storage buffer area of the transmission container T-CONT is zero, and according to a standard g.984.3 protocol, the OLT does not grant the ONT a time slot for sending the data frames stored in the storage buffer area of the transmission container T-CONT, so that the PON-MAC chip cannot send the data frames stored in the storage buffer area of the transmission container T-CONT. Therefore, in order to avoid uplink bandwidth waste caused by the PON-MAC chip in the ONT continuously sending the data frames stored in the storage buffer of the transmission container T-CONT to the OLT, only when the preset bit of the register is a preset value, the length information of all the data frames in the storage buffer of the transmission container T-CONT is reported, and when the preset bit of the register is not the preset value, the length information of all the data frames in the storage buffer of the transmission container T-CONT is reported to be zero, that is, there is no data frame to be sent in the storage buffer of the transmission container T-CONT, so that the PON-MAC chip cannot send the data frames stored in the storage buffer of the transmission container T-CONT.
In this embodiment, when the preset bit of the register is a preset value, the length information of all the data frames in the storage buffer of the transmission container T-CONT is reported, and when the preset bit of the register is not the preset value, the length information of all the data frames in the storage buffer of the transmission container T-CONT is reported to be zero, so as to control the time slot in which all the data frames in the storage buffer of the transmission container T-CONT are sent, thereby avoiding uplink bandwidth waste caused by the PON-MAC chip in the ONT continuously sending the data frames stored in the storage buffer of the transmission container T-CONT to the OLT.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. An optical network terminal, comprising: the device comprises a processor, a first chip, a second chip, a monitoring module and a register control module, wherein the first chip comprises a transmission container T-CONT and a register, and the register control module is connected with the processor, the monitoring module and the register, and comprises:
the processor is configured to encapsulate a packet into a data frame in a preset format after receiving the packet, and forward the data frame to the first chip through the second chip;
the first chip is used for storing the data frame in a preset storage buffer area of the transmission container T-CONT when the data frame is received;
the monitoring module is used for sending a reset signal to the register control module when the processor is monitored to be abnormal;
the register control module is used for setting the preset bit position of the register to be a preset value after receiving the reset signal;
and the first chip is further configured to send the data frame in the storage buffer of the transmission container T-CONT to an optical line terminal when the preset bit of the register is a preset value.
2. The optical network terminal of claim 1, wherein the first chip comprises:
a reporting unit, configured to report, to the olt, length information of all data frames in a storage buffer of the transport container T-CONT;
a receiving unit, configured to receive a time slot fed back by the optical line terminal based on the length information, where when the length information is zero, the optical line terminal does not feed back time slot information to the optical network terminal;
and a sending unit, configured to send the data frame in the storage buffer of the transport container T-CONT to the optical line terminal in the received time slot.
3. The optical network terminal according to claim 1, wherein the processor is further configured to intercept data of a preset byte length of a message after receiving the message, and encapsulate the data into a data frame of a preset format.
4. The optical network terminal according to claim 3, wherein the messages are classified into different types, and the processor is further configured to encapsulate intercepted data of the messages of different types into data frames of different types in preset formats.
5. Optical network terminal according to any of claims 1 to 4, characterized in that the storage buffer of the transport container T-CONT is a ring stack.
6. An abnormal message capturing method for an optical network terminal is characterized in that the abnormal message capturing method for the optical network terminal comprises the following steps:
the method comprises the steps that a first chip receives a data frame sent by a second chip, and the data frame is stored in a storage buffer area of a preset transmission container T-CONT;
the first chip detects whether a preset bit of the register is a preset value or not;
and if so, the first chip sends the data frame in the storage buffer area of the transmission container T-CONT to an optical line terminal.
7. The method for capturing abnormal packets of an optical network terminal according to claim 6, wherein the data frame is a data frame in which a processor intercepts data of a preset byte length of the packet and encapsulates the data into a preset format after receiving the packet.
8. The method for capturing abnormal packets in an optical network terminal according to claim 6, wherein the step of the first chip sending the data frame in the storage buffer of the transport container T-CONT to the optical line terminal includes:
the first chip reports the actual length information of all data frames in the storage buffer area of the transmission container T-CONT to an optical line terminal;
the first chip receives a time slot fed back by the optical line terminal based on the actual length information;
and the first chip sends the data frame in the storage buffer area of the transmission container T-CONT to the optical line terminal in the received time slot.
9. The method for capturing abnormal packets of an optical network terminal according to claim 8, wherein after the step of detecting whether the preset bit of the register is the preset value, the method further comprises:
if not, the first chip reports that the length information of all data frames in the storage buffer area of the transmission container T-CONT is zero to the optical line terminal, wherein when the length information is zero, the optical line terminal does not feed back time slot information to the optical network terminal.
10. The method for capturing abnormal messages in an optical network terminal according to any of claims 6 to 9, wherein the storage buffer area of the transmission container T-CONT is a ring stack area.
Priority Applications (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 |
PCT/CN2016/085735 WO2017124684A1 (en) | 2016-01-18 | 2016-06-14 | Optical network terminal and method for capturing abnormal message of optical network terminal |
Applications Claiming Priority (1)
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 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106982092A CN106982092A (en) | 2017-07-25 |
CN106982092B true CN106982092B (en) | 2021-01-08 |
Family
ID=59340770
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610032710.1A Active CN106982092B (en) | 2016-01-18 | 2016-01-18 | Abnormal message capturing method of optical network terminal and optical network terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106982092B (en) |
WO (1) | WO2017124684A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109636256B (en) * | 2019-01-30 | 2022-04-12 | 四川长虹电器股份有限公司 | MAC address management method of MES system |
CN111813590B (en) * | 2020-06-02 | 2024-02-27 | 中车株洲电力机车研究所有限公司 | Method and device for diagnosing abnormal reset of main control module and main control module |
CN111752502B (en) * | 2020-06-29 | 2023-09-19 | 珠海奔图电子有限公司 | Printing control apparatus, printing control method, and image forming apparatus |
CN113055225B (en) * | 2021-02-08 | 2023-12-05 | 网宿科技股份有限公司 | Network fault analysis data acquisition method, terminal and server |
Citations (7)
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 |
CN101261593A (en) * | 2007-03-07 | 2008-09-10 | 国际商业机器公司 | Method and system for enabling state save |
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 |
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 |
CN104065160A (en) * | 2014-06-06 | 2014-09-24 | 武汉中元华电科技股份有限公司 | Method for processing abnormal message in electric power system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2086136A1 (en) * | 2008-01-29 | 2009-08-05 | British Telecommunications Public Limited Company | Optical communication |
-
2016
- 2016-01-18 CN CN201610032710.1A patent/CN106982092B/en active Active
- 2016-06-14 WO PCT/CN2016/085735 patent/WO2017124684A1/en active Application Filing
Patent Citations (7)
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 |
CN101261593A (en) * | 2007-03-07 | 2008-09-10 | 国际商业机器公司 | Method and system for enabling state save |
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 |
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 |
CN104065160A (en) * | 2014-06-06 | 2014-09-24 | 武汉中元华电科技股份有限公司 | Method for processing abnormal message in electric power system |
Also Published As
Publication number | Publication date |
---|---|
CN106982092A (en) | 2017-07-25 |
WO2017124684A1 (en) | 2017-07-27 |
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 | |
US7428586B2 (en) | System and method for discovering undiscovered nodes using a registry bit in a point-to-multipoint network | |
CN106982092B (en) | Abnormal message capturing method of optical network terminal and optical network terminal | |
CN103763121A (en) | Method and device for quickly issuing network configuration information | |
CN103812750B (en) | System and method for protecting data communication equipment CPU receiving and transmitting message | |
JP2004112803A (en) | Oam function discovery method in ethernet (r) passive optical subscriber network | |
US8817799B2 (en) | Network processor for supporting residential gateway applications | |
CN112822128B (en) | PON system message mirroring method and PON system | |
EP3220556B1 (en) | Method, device and system for detecting rogue optical network unit | |
KR100640464B1 (en) | Method for method for transmitting oamoperation, administration, and maintenance packet data and ethernet passive optical network having control multiplexer therefor | |
US9007228B2 (en) | Transmission system using dying gasp | |
KR101710385B1 (en) | Method, apparatus and computer program for managing arp packet | |
JP2012151604A (en) | Provider network and provider edge device | |
KR100566294B1 (en) | Dynamic bandwidth allocation method for gigabit ethernet passive optical network | |
KR20120073869A (en) | Method for transmitting oam message and processing error in pon system | |
US20160373322A1 (en) | Controlling generation of filtered result packets | |
WO2018209914A1 (en) | Method and system for olt loopback detection in gpon system | |
JP2008160329A (en) | Communication management device monitoring system and method | |
WO2021109851A1 (en) | Network communication method, apparatus and device, and storage medium | |
JP6829023B2 (en) | Communication equipment, information notification method and computer program | |
JP2011119850A (en) | Communication system and band allocation control method | |
JP4768668B2 (en) | Communication system, subscriber terminal, station side device, communication method and program | |
KR101802037B1 (en) | Method and system of transmitting oam message for service function chaining in software defined network environment | |
CN114070799B (en) | Processing method and processing device of priority pause frame and target network equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |