CN107979412A - Optical network unit loop detecting method and device - Google Patents
Optical network unit loop detecting method and device Download PDFInfo
- Publication number
- CN107979412A CN107979412A CN201711392179.XA CN201711392179A CN107979412A CN 107979412 A CN107979412 A CN 107979412A CN 201711392179 A CN201711392179 A CN 201711392179A CN 107979412 A CN107979412 A CN 107979412A
- Authority
- CN
- China
- Prior art keywords
- optical network
- network unit
- loop
- label
- identifier
- 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.)
- Granted
Links
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/077—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using a supervisory or additional 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/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/077—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using a supervisory or additional signal
- H04B10/0773—Network aspects, e.g. central monitoring of transmission parameters
-
- 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
- H04B10/275—Ring-type networks
-
- 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)
- Optical Communication System (AREA)
- Small-Scale Networks (AREA)
Abstract
An embodiment of the present invention provides a kind of optical network unit loop detecting method and device, wherein, first determine whether the message transmitted from the first optical network unit that passive optical network interface board receives is loop detection message, if loop detection message, then the identifier of the second optical network unit is determined according to the content of message;Determine the identifier of the first optical network unit with the logical link identifier that the first optical network unit communicates according to passive optical network interface board afterwards;The optical network unit of composition loop is finally determined according to the identifier of the identifier of the second optical network unit and the first optical network unit, and classify according to loop, above-mentioned technical proposal is provided with the identifier of optical network unit in loop detection message, avoid the inquiry mac tables in loop detection, so as to efficiently detect the existing loop in EPON system, it ensure that the normal operation of EPON system and provide normal network service to the user.
Description
Technical field
The present embodiments relate to technical field passive optical network and Ethernet field, and more particularly, to one kind
Optical network unit loop detecting method and device.
Background technology
EPON (Ethernet Passive Optical Network, Ethernet passive optical network) is based on Ethernet
Passive optical network technique.It uses point-to-multipoint structure, is carried out data transmission using passive fiber, is carried over ethernet for user
For multiple business service, the advantages of combining PON (passive optical network) technologies and ethernet technology.As shown in Figure 1, EPON system
By local side apparatus OLT (Optical Line Terminal, optical line terminal), ustomer premises access equipment ONU (Optical Network
Unit, optical network unit) and optical distribution network ODN (Optical Distribution Network, optical distribution network) compositions.
OLT is used for the equipment for connecting trunk optical fiber, and ONU is used for sending Ethernet data to user, and ODN is used for carrying between OLT and ONU
For transmission line.
One OLT machine frame would generally set multiple groove positions, and a passive optical network interface board is may be inserted on each groove position
(PON plates), is provided with multiple passive optical network ports (PON ports), each passive optical network on each passive optical network interface board
The passive optical network port of network interface board is connected to by ODN on the passive optical network port of multiple ONU, the user network of ONU
Port (uni mouthfuls) is connected to user, it is achieved thereby that user's access network based on ethernet passive optical network.It can be seen that an OLT would generally be noted
The a fairly large number of ONU of volume, and ONU inevitably produces loop in the connection of user side.Loop can cause in EPON system
There are mac (Media Access Control, the physical address) drifts of broadcast, multicast, unknown unicast flooding, and regular traffic
Move etc., the congestion of network is not only resulted in, influences the regular traffic of a large amount of other users, or even EPON system can be caused to paralyse.
It can in time be detected therefore, it is necessary to a kind of technical solution and remove the existing loop in EPON system, to ensure
The normal operation of EPON system and provide normal network service to the user.
The content of the invention
The embodiment of the present invention provides a kind of optical network unit loop detecting method and device, it can detect and remove in time
Existing loop in EPON system, ensure that the normal operation of EPON system and provides normal network service to the user.
First aspect, there is provided optical network unit loop detecting method, described method includes following steps:
The message of the first optical network unit transmission is received, wherein, the message includes leading to first optical network unit
The logical link identifier of the logical links of letter;
Judge whether the message includes loop detection message identifier, if the message includes the loop detection message
Identifier, then determine the identifier of the second optical network unit according to the message;Wherein, second optical network unit is transmission
The optical network unit of the message;
The identifier of first optical network unit is determined according to the logical link identifier;
Determine to form according to the identifier of the identifier of second optical network unit and first optical network unit
The optical network unit of loop, and classify to loop.
With reference to first aspect, in the first possible implementation, the method further includes following steps:
Loop detection message is sent to second optical network unit, so that second optical network unit is according to the ring
The purpose mac of road detection messages sends the loop detection message;
Wherein, the purpose mac of the loop detection message is the mac of broadcasting packet, and the loop detection message includes institute
State the identifier and loop detection message identifier of the second optical network unit.
With reference to first aspect or first aspect the first possible implementation, in second of possible implementation
In, the loop detection message includes the logical link identifier of the logical links to communicate with second optical network unit, institute
State method and the loop detection message is sent to by second optical network unit according to the logical link identifier.
With reference to first aspect, in the third possible implementation,
The identifier of first optical network unit includes the label of first optical network unit, the first passive optical network
Port label and the first groove position label;Wherein, first passive optical network port marked as with the first optical-fiber network list
Member connection passive optical network interface board passive optical network port label, the first groove position marked as with first light
The corresponding groove position label of passive optical network interface board of network unit connection;
The identifier of second optical network unit includes the label of second optical network unit, the second passive optical network
Port label and the second groove position label;Wherein, second passive optical network port marked as with the second optical-fiber network list
Member connection passive optical network interface board passive optical network port label, the second groove position marked as with second light
The corresponding groove position label of passive optical network interface board of network unit connection.
The third possible implementation with reference to first aspect, in the 4th kind of possible implementation, the basis
The identifier of the identifier of second optical network unit and first optical network unit determines the optical-fiber network of composition loop
Unit, and classification is carried out to loop and is included the following steps:
Judge whether the first groove position label and the second groove position label are identical, if the first groove position label and institute
The second groove position label difference is stated, then the loop is present between two passive optical network interface boards, and the loop includes first
Optical network unit and the second optical network unit;
If the first groove position label is identical with the second groove position label, first passive optical network port is judged
Whether label and the second passive optical network port label are identical, if the first passive optical network port label and described the
Two passive optical network port labels are different, then the loop is present in two passive optical network of a passive optical network interface board
Between port, the loop includes the first optical network unit and the second optical network unit;
If the first passive optical network port label is identical with the second passive optical network port label, institute is judged
It is whether identical with the label of second optical network unit to state the label of the first optical network unit, if first optical network unit
Label it is different from the label of second optical network unit, then loop is present in two light nets of a passive optical network port
Between network unit, the loop includes the first optical network unit and the second optical network unit;
If the label of first optical network unit is identical with the label of second optical network unit, the loop is
Formed by first optical network unit or second optical network unit itself, the loop include the first optical network unit or
Second optical network unit.
With reference to first aspect, in the 5th kind of possible implementation, the method further includes following steps:
Alarm command is generated, and is sent to network management device, wherein alert command includes the light included by the loop
The identifier of network unit;
An optical network unit included by the loop is chosen, obtains pending optical network unit;
The light for closing the pending optical network unit sends one predetermined amount of time of power supply.
Second aspect, there is provided a kind of optical network unit loop detection means, described device include:
Message receiving module, for receive the first optical network unit send message, wherein, the message include with it is described
The logical link identifier of the logical links of first optical network unit communication;
Message differentiates processing module, for judging whether the message includes loop detection message identifier, if the report
Text includes the loop detection message identifier, then the identifier of the second optical network unit is determined according to the message;Wherein, institute
The second optical network unit is stated to send the optical network unit of the message;
Identifier extraction module, for determining the mark of first optical network unit according to the logical link identifier
Symbol;
Loop determining module, for the identifier according to second optical network unit and first optical network unit
Identifier determine the optical network unit of composition loop, and classify to loop.
With reference to second aspect, in the first possible implementation, described device further includes message sending module, is used for
Loop detection message is sent to second optical network unit, so that second optical network unit is according to the loop detection report
The purpose mac of text sends the loop detection message;
Wherein, the purpose mac of the loop detection message is the mac of broadcasting packet, and the loop detection message includes institute
State the identifier and loop detection message identifier of the second optical network unit.
With reference to second aspect, in second of possible implementation, the loop determining module includes:
First determination sub-module, for judging whether the first groove position label and the second groove position label are identical, if
The first groove position label is different from the second groove position label, it is determined that the loop is present in two passive optical network interfaces
Between plate, the loop includes the first optical network unit and the second optical network unit;
Second determination sub-module, for when the first groove position label is identical with the second groove position label, judging institute
State the first passive optical network port label and whether the second passive optical network port label is identical, if first passive light
Network port label is different from the second passive optical network port label, it is determined that the loop is present in a passive optical network
Between two passive optical network ports of network interface board, the loop includes the first optical network unit and the second optical network unit;
3rd determination sub-module, in the first passive optical network port label and the second passive optical network end
When mouth label is identical, judge whether the label of first optical network unit is identical with the label of second optical network unit,
If the label of first optical network unit is different from the label of second optical network unit, it is determined that loop is present in one
Between two optical network units of passive optical network port, the loop includes the first optical network unit and the second optical-fiber network list
Member;
If the label of first optical network unit is identical with the label of second optical network unit, it is determined that the ring
Road is formed by first optical network unit or second optical network unit itself, and the loop includes the first optical-fiber network list
Member or the second optical network unit;
Wherein, the label of the identifier of first optical network unit including first optical network unit, first passive
Optical network port label and the first groove position label;First passive optical network port marked as with the first optical-fiber network list
Member connection passive optical network interface board passive optical network port label, the first groove position marked as with first light
The corresponding groove position label of passive optical network interface board of network unit connection;
The identifier of second optical network unit includes the label of second optical network unit, the second passive optical network
Port label and the second groove position label;Second passive optical network port is connected marked as with second optical network unit
Passive optical network interface board passive optical network port label, the second groove position marked as with the second optical-fiber network list
The corresponding groove position label of passive optical network interface board of member connection.
With reference to second aspect, in the third possible implementation, described device further includes:
Alarm module, for generating alarm command, and is sent to network management device, and wherein alert command includes the ring
The identifier of optical network unit included by road;
Module is chosen, for choosing an optical network unit included by the loop, obtains pending optical network unit;
Loop processed module, the light for closing the pending optical network unit send one predetermined amount of time of power supply.
In the above-mentioned technical proposal of the embodiment of the present invention, first determine whether that passive optical network interface board receives from the first light
Whether the message that network unit transmits is loop detection message, if the message received is loop detection message, according to report
The content of text determines the identifier of the second optical network unit;Wherein, the second optical network unit is reception passive optical network interface board
The loop detection message of transmission, and the optical network unit that the loop detection message is forwarded, first network unit are reception
The loop detection message that other optical network units are sent, and it is transmitted to the optical network unit of passive optical network interface board.Afterwards without
Source optical network interface plate determines the first light according to the logical link identifier of its logical links to communicate with the first optical network unit
The identifier of network unit;Last passive optical network interface board is according to the identifier and the first optical-fiber network of the second optical network unit
The identifier of unit determines the optical network unit of composition loop, and according to the identifier and the second optical-fiber network of the first optical network unit
The identifier of unit classifies loop, and above-mentioned technical proposal is provided with the mark of optical network unit in loop detection message
Symbol, avoids the inquiry mac tables in loop detection, so as to efficiently detect the existing loop in EPON system, ensures
The normal operation of EPON system and provide normal network service to the user.
In addition, the loop detection message that above-mentioned technical proposal passive optical network interface board is sent includes passive optical network interface
The logical link identifier for the logical links that plate communicates with the second optical network unit, selects to correspond to according to the logical link identifier
Logical links, realize only loop detection message is sent to the second optical network unit specified, such passive optical network connects
Oralia receive optical network unit transmission loop detection message when can be directly in loop detection message identifier
Determine to form the optical network unit of loop, it is not necessary to remove inquiry mac tables, improve loop detection efficiency.
Brief description of the drawings
, below will be in embodiment or description of the prior art for the technical solution of the clearer explanation embodiment of the present invention
Required attached drawing is briefly described, it should be apparent that, drawings in the following description are only some realities of the present invention
Example is applied, for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 schematically illustrates EPON system structure chart in the prior art.
Fig. 2 schematically illustrates the flow chart of optical network unit loop detecting method according to an embodiment of the invention.
Fig. 3 schematically illustrates the flow of optical network unit loop detecting method according to yet another embodiment of the invention
Figure.
Fig. 4 schematically illustrates the flow of the optical network unit loop detecting method of another embodiment according to the present invention
Figure.
Fig. 5 A are schematically illustrated to be sent in the optical network unit loop detecting method of another embodiment according to the present invention
The flow chart of loop detection message.
Fig. 5 B are schematically illustrated to be formed in the optical network unit loop detecting method of another embodiment according to the present invention
The flow chart of loop detection message.
Fig. 5 C schematically illustrate the optical network unit loop detecting method intermediate ring road of another embodiment according to the present invention
Detection messages schematic diagram.
Fig. 5 D schematically illustrate the optical network unit loop detecting method intermediate ring road of another embodiment according to the present invention
Detection messages forward schematic diagram.
Fig. 5 E are schematically illustrated to be parsed in the optical network unit loop detecting method of another embodiment according to the present invention
The flow chart of loop detection message.
Fig. 5 F are schematically illustrated to be alerted in the optical network unit loop detecting method of another embodiment according to the present invention
Instruct schematic diagram.
Fig. 6 schematically illustrates the loop classification schematic diagram of another embodiment according to the present invention.
Fig. 7 schematically illustrates the block diagram of optical network unit loop detection means according to an embodiment of the invention.
Fig. 8 schematically illustrates the block diagram of the optical network unit loop detection means of another embodiment according to the present invention.
Fig. 9 schematically illustrates the block diagram of optical network unit loop detection means according to yet another embodiment of the invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is the part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained without creative efforts
Example is applied, belongs to the scope of protection of the invention.
A kind of optical network unit loop detecting method, as shown in Fig. 2, this method comprises the following steps:
110th, the message that the first optical network unit is sent is received, wherein, message includes what is communicated with the first optical network unit
The logical link identifier of logical links;
It should be noted that the optical network unit loop detecting method of this step and the embodiment of the present invention is by passive light
What network interface board or optical line terminal performed.
In this step, the first optical network unit is connected with a passive optical network port of passive optical network interface board, nothing
Source optical network interface plate receives the message that the first optical network unit sends over, these messages are probably loop detection message,
It is probably other messages.
Here message includes logical link identifier, for indicating message is sended over by which optical network unit
, i.e., logical link identifier can also regard the hardware address of corresponding optical network unit as.
120th, judge whether message includes loop detection message identifier, if message includes loop detection message identifier,
The identifier of the second optical network unit is then determined according to message;
Loop detection message includes the identifier and loop detection message identifier of the second optical network unit.Here, such as
Logical link identifier is provided with fruit message, then the message is loop detection message.Second is provided with loop detection message
The identifier of optical network unit, therefore the identifier of the second optical network unit can be determined according to message.
The purpose mac of loop detection message is the mac of broadcasting packet, therefore loop detection message can be from optical network unit
Any uni mouthfuls (i.e. user network ports) be transferred to other optical network units being connected with optical network unit.
Second optical network unit is connected with passive optical network interface board, and passive optical network interface board is to the second optical network unit
Loop detection message is sent, if the second optical network unit can be by loop detection message there are loop, the second optical network unit
Connected optical network unit is sent to, by the transmission of optical network unit in loop, final loop detection message can transmit
To the first optical network unit.
It should be noted that multiple optical-fiber network lists can be connected between the first optical network unit and the second optical network unit
Member, can not also connect other optical network units.
130th, the identifier of the first optical network unit is determined according to the logical link identifier in step 110;
According to above to the introduction of logical link identifier according to logical link identifier can to indicate message be by which
What optical network unit sended over, i.e., logical link identifier can determine the identifier for indicating the first optical network unit.
140th, composition loop is determined according to the identifier of the identifier of the second optical network unit and the first optical network unit
Optical network unit, and classify to loop.
If detecting loop detection message, there will necessarily be loop, in the case of there are loop, it is necessary to according to for
The identifier for indicating the second optical network unit and the first optical network unit specifically determines the species of loop, such as determines that loop is to deposit
It is between two passive optical network interface boards, is still present between two passive optical network ports.
The present embodiment first determines whether the message transmitted from the first optical network unit that passive optical network interface board receives
Whether it is loop detection message, if the message received is loop detection message, the second optical-fiber network is determined according to the content of message
The identifier of unit;Passive optical network interface board is according to the logic chain of its logical links to communicate with the first optical network unit afterwards
Line symbol determines the identifier of the first optical network unit;Last passive optical network interface board is according to the mark of the second optical network unit
The identifier of knowledge symbol and the first optical network unit determines the optical network unit of composition loop, and according to the first optical network unit
The identifier of identifier and the second optical network unit classifies loop, and above-mentioned technical proposal is set in loop detection message
The identifier of optical network unit, avoids the inquiry mac tables in loop detection, so as to efficiently detecting in EPON system
Existing loop, ensure that the normal operation of EPON system and provide normal network service to the user.
In one embodiment, as shown in figure 3, optical network unit loop detecting method further includes following steps:
100th, loop detection message is sent to the second optical network unit, so that the second optical network unit is according to loop detection report
The purpose mac of text sends loop detection message.
Here, loop detection message includes the logical links that passive optical network interface board communicates with the second optical network unit
Logical link identifier, i.e. loop detection message include the hardware address with the second optical network unit, according to the logic chain road sign
Know symbol and loop detection message is simply sent to the second optical network unit.
In the present embodiment, corresponding logical links is selected according to logical link identifier, is realized loop detection report only
Text is sent to the second optical network unit specified, and such passive optical network interface board is receiving the loop inspection of optical network unit transmission
Identifier that can be directly in loop detection message when observing and predicting text determines to form the optical network unit of loop, it is not necessary to goes
Mac tables are inquired about, improve loop detection efficiency.
In one embodiment, the identifier of the first optical network unit includes the label of the first optical network unit, the first nothing
Source optical network port label and the first groove position label;Wherein, the first passive optical network port marked as with the first optical-fiber network list
Member connection passive optical network interface board passive optical network port label, the first groove position marked as with the first optical network unit
The corresponding groove position label of passive optical network interface board of connection.
The identifier of second optical network unit includes label, the second passive optical network port label of the second optical network unit
And the second groove position label;Wherein, the second passive optical network port is marked as the passive optical network being connected with the second optical network unit
The label of the passive optical network port of network interface board, the second groove position is marked as the passive optical network being connected with the second optical network unit
The corresponding groove position label of interface board.
In the present embodiment, as shown in figure 4, according to the identifier of the second optical network unit and the mark of the first optical network unit
Know symbol and determine the optical network unit of composition loop, and classification is carried out to loop and is included the following steps:
210th, judge whether the first groove position label and the second groove position label are identical, if the first groove position label and the second groove position are marked
Number difference, then loop be present between two passive optical network interface boards, loop includes the first optical network unit and the second light net
Network unit;
As shown in fig. 6, loop be present in groove position marked as 3 and two passive optical network interface boards of the groove position marked as 4 it
Between, the passive optical network end of the passive optical network interface board being connected with the first optical network unit and the second optical network unit here
The label of mouth is 1, and the label of the first optical network unit and the second optical network unit is 3 and 1, specifically, the first light respectively
Network unit is connected with No. 1 passive optical network port of passive optical network interface board of the groove position marked as 3, the second optical-fiber network list
Member is connected with No. 1 passive optical network port of passive optical network interface board of the position marked as 4.Here loop is properly termed as outer
Ring.
If the 220, the first groove position label is identical with the second groove position label, the first passive optical network port label and are judged
Whether two passive optical network port labels are identical, if the first passive optical network port label and the second passive optical network port label
Difference, then loop be present between two passive optical network ports of a passive optical network interface board, loop includes the first light
Network unit and the second optical network unit;
If the 230, the first passive optical network port label is identical with the second passive optical network port label, the first light is judged
Whether the label of network unit is identical with the label of the second optical network unit, if the label of the first optical network unit and the second light net
The label of network unit is different, then loop is present between two optical network units of a passive optical network port, loop bag
Include the first optical network unit and the second optical network unit;
As shown in fig. 6, the label that loop is present in same passive optical network port is respectively 1 and 2 two optical-fiber networks
Between unit.Specifically, the first optical network unit and the second optical network unit with passive optical network interface of the groove position marked as 2
No. 1 passive optical network port connection of plate.Here loop is properly termed as inner ring.
If the 240, the label of the first optical network unit is identical with the label of the second optical network unit, loop is by the first light
Network unit or the second optical network unit itself formation, loop include the first optical network unit or the second optical network unit.Here
The first optical network unit and the second optical network unit be same optical network unit.
As shown in fig. 6, loop is formed by same optical network unit, specifically with passive light of the groove position marked as 1
The optical network unit itself of No. 1 passive optical network port connection of network interface board forms a loop, the optical network unit
Marked as 2.Here loop is properly termed as from ring.
In one embodiment, optical network unit loop detecting method further includes following steps:
310th, alarm command is generated, and is sent to network management device, wherein alert command includes the light included by loop
The identifier of network unit;Network management device can determine that to form the optical network unit of loop according to alarm command;
320th, an optical network unit included by loop is chosen, obtains pending optical network unit;Here pending
Optical network unit can be any one in the optical network unit included by loop or be chosen according to pre-defined rule
Optical network unit, such as choose the optical network unit of identifier minimum.
330th, the light for closing the pending optical network unit sends one predetermined amount of time of power supply.Here the scheduled time
Section is flexibly set according to concrete application scene, such as can be arranged to predetermined amount of time 65535 seconds, represents that permanent close waits to locate
The light of Ricoh's network unit sends power supply.
After closing pending optical network unit predetermined amount of time, the light that can automatically open up pending optical network unit sends electricity
Source, if subsequently detecting that the pending optical network unit still forms loop, then performs shutoff operation, and circulation performs.
The optical network unit loop detecting method of the present invention is described in detail below by one embodiment.
In the present embodiment, multiple follow is devised according to the label of the label of passive optical network port and optical network unit
Ring, circulation every time performs a loop detection, it is achieved thereby that all passive optical network pair with a passive optical network interface board
The loop detection of all optical network units of port connection.Certainly can increase according to passive optical network on the basis of the present embodiment
The circulation of the label design of network interface board, to realize the loop of pair optical network unit being connected with the passive optical network interface board
Detection.
In the present embodiment, each PON mouthfuls of OLT of agreement is identified by SlotId/PonId forms, the ONU logical identifiers of system
It is then SlotId/PonId:OnuId.SlotId represents groove position label, and PonId represents passive optical network port label, OnuId tables
Show optical network unit label.
The method of the present embodiment includes the following steps:
Step 1, loop detection message is sent to the second optical network unit;
Passive optical network interface board (i.e. PON plates) periodicity sending loop detection message to each optical network unit ONU,
The sending cycle can flexibly be set according to application scenarios, such as is arranged to 60 seconds.
As shown in Figure 5A, the present embodiment is according to passive optical network port label PonId and optical network unit label OnuId
Successively loop detection message is sent to each optical network unit.MaxPonNum represents passive optical network port label most in figure
Big value, MaxOnuNum represent the maximum of the label of the optical network unit of each passive optical network port connection.PonNumber
Represent passive optical network port quantity, T/PonNumber represents to send the cycle of loop detection message to optical network unit.Perform
Flow shown in Fig. 5 A can send loop detection message with property performance period to each optical network unit, detect each optical-fiber network
Unit whether there is loop.
Loop detection message can set the mark for whether including virtual LAN Vlan according to actual application scenarios
Vlan Tag.If having carried out virtual LAN division to optical network unit, need to set Vlan in loop detection message
Tag。
Female mac of loop detection message is FF:FF:FF:FF:FF:Female mac of FF, i.e. broadcasting packet, then depositing
In loop, this loop detection message can then be broadcast to the uni mouths of other ONU, then by the passive optical network port of other ONU
Return to passive optical network interface board.
As shown in Figure 5 C, loop detection message includes loop detection message identifier to the structure of loop detection message
FAFA, purpose mac (FF:FF:FF:FF:FF:FF), VLAN ID Vlan Tag, groove position label SlotId, passive light
Network port label PonId and optical network unit label OnuId.
The product process of loop detection message as shown in Figure 5 B, is first filled with purpose mac and the source of loop detection message
Mac, wherein, source mac is corresponding with slot number, for identifying the slot number for the PON plates being connected with optical network unit;Judge afterwards
Whether need to set VLAN ID, VLAN ID is set if necessary, otherwise fills ethernet type;It
Groove position label SlotId, passive optical network port label PonId and optical network unit label OnuId are set afterwards.
Specifically, as shown in Figure 5 D, in this step, identifier is sent to as 2/1:The loop detection message of 1 ONU carries
The logic ID (2 | 1 | 1) of OUN, loop detection message purpose mac is the purpose mac of broadcasting packet, but it is without using broadcast
The logical links LLID of message is sent, but loop detection message is sent to identifier for 2/1:The 1 corresponding logic chains of ONU
Road LLID, so only identifier is 2/1:1 ONU receives this message, then message is 2/1 by identifier:2 ONU loopbacks
To marked as 2/1 passive optical network port.The OUN marks 2/1 carried afterwards according to message:1, then can determine that identifier is 2/1:
2 ONU is 2/1 with identifier:There are loop by 1 ONU.
Step 2, receives and parses through the loop detection message of the first optical network unit transmission,
As shown in fig. 5e, after the passive optical network port of passive optical network interface board receives loop detection message, examine first
Survey whether the message is loop detection message, if loop detection message, then the ring is received according to passive optical network interface board
The logical links of road detection messages determines the identifier of the first optical network unit, parses the message afterwards, determines what message carried
The identifier of second optical network unit;Afterwards according to the identifier of the first optical network unit and the identifier of the second optical network unit
Determine loop information, and then send alarm command to network management device, and close the first optical network unit or the second optical-fiber network
The light of unit sends power supply.
The present embodiment can quickly determine loop and loop type according to the identifier of OUN entrained in message.
Step 3: loop is handled.
Determine after loop, it is necessary to generate alarm command, and alarm command be uploaded to network management device, at the same according to
The closing power supply predetermined amount of time shutdown time of family configuration, solve the less optical network unit of login ID.Identifier compared with
It is small compared with little finger of toe:Three digits of SlotIdPonIdOnuId compositions are smaller, such as the identifier in Fig. 2 is 2/1:The mark of 1 OUN
Symbol is smaller.Represent permanent when Shutdown time are arranged to 65535 seconds to close, naturally it is also possible to configure other values.When
When loops of the shutdown time then and on actual physics is not removed, then loop can be detected again, continue to close corresponding
The light of optical network unit sends power supply, and if shutdown time are not arrived, link has been removed, and loop detection function is then automatic
Cleared alarm.
After sending alarm command, power supply is sent using the light of the CTC standards OAM shut-off less optical network units of identifier
Mode solution registers optical network unit, and such time is controllable, and convenient control.
After alarm is sent to network management device, network management device can be in inquiry of command line alarm command, while net
Alarm command can be sent to webmastering software by network management equipment.
As illustrated in figure 5f, alarm command includes the identifier of the optical network unit included by loop to alarm command form, from
And which optical network unit can be identified there are loop.
This implementation passes through cycle detection, positions between which optical network unit there are loop, and then timely report and alarm refers to
Make and being set to network management, while the light transmission power supply of corresponding optical network unit is turned off by the user configuration time, to solve registration
Optical network unit in loop, temporarily releases loop, ensures that other users business is normal, operation maintenance personnel goes to arrange by alarm command
Except the physics loop under optical network unit.
Corresponding to the optical network unit loop detecting method of above-described embodiment, the embodiment of the invention also discloses a kind of light net
Network unit loop detection means, as shown in fig. 7, the device includes:
Message receiving module, the message sent for receiving the first optical network unit, wherein, message includes and the first light net
The logical link identifier of the logical links of network unit communication;
Message differentiates processing module, for judging whether message includes loop detection message identifier, if message includes ring
Road detection messages identifier, then determine the identifier of the second optical network unit according to message;Wherein, the second optical network unit is hair
Deliver newspaper text optical network unit;
Identifier extraction module, for determining the identifier of the first optical network unit according to logical link identifier;
Loop determining module, for the identifier according to the second optical network unit and the identifier of the first optical network unit
Determine the optical network unit of composition loop, and classify to loop.
In one embodiment, as shown in figure 8, optical network unit loop detection means further include message sending module, use
In sending loop detection message to the second optical network unit, so that purpose of second optical network unit according to loop detection message
Mac sends loop detection message;Wherein, the purpose mac of loop detection message be broadcasting packet mac, loop detection message bag
Include the identifier and loop detection message identifier of the second optical network unit.
In one embodiment, loop determining module includes:
First determination sub-module, for judging whether the first groove position label and the second groove position label are identical, if the first groove position
Label is different from the second groove position label, it is determined that loop is present between two passive optical network interface boards, and loop includes first
Optical network unit and the second optical network unit;
Second determination sub-module, for when the first groove position label is identical with the second groove position label, judging the first passive light
Whether network port label and the second passive optical network port label are identical, if the first passive optical network port label and the second nothing
Source optical network port label is different, it is determined that loop is present in two passive optical network ports of a passive optical network interface board
Between, loop includes the first optical network unit and the second optical network unit;
3rd determination sub-module, in the first passive optical network port label and the second passive optical network port label phase
Meanwhile judge whether the label of the first optical network unit is identical with the label of the second optical network unit, if the first optical network unit
Label it is different from the label of the second optical network unit, it is determined that loop is present in two light with a passive optical network port
Between network unit, loop includes the first optical network unit and the second optical network unit;
If the label of the first optical network unit is identical with the label of the second optical network unit, it is determined that loop is by the first light
Network unit or the second optical network unit itself formation, loop include the first optical network unit or the second optical network unit;
Wherein, the identifier of the first optical network unit includes the label of the first optical network unit, the first passive optical network end
Mouth label and the first groove position label;First passive optical network port is marked as the passive optical network being connected with the first optical network unit
The label of the passive optical network port of network interface board, the first groove position is marked as the passive optical network being connected with the first optical network unit
The corresponding groove position label of interface board;
The identifier of second optical network unit includes label, the second passive optical network port label of the second optical network unit
And the second groove position label;Second passive optical network port is marked as the passive optical network interface being connected with the second optical network unit
The label of the passive optical network port of plate, the second groove position is marked as the passive optical network interface board being connected with the second optical network unit
Corresponding groove position label.
In one embodiment, as shown in figure 9, optical network unit loop detection means further include:
Alarm module, for generating alarm command, and is sent to network management device, and wherein alert command includes loop institute
Including optical network unit identifier;
Module is chosen, for choosing an optical network unit included by loop, obtains pending optical network unit;
Loop processed module, the light for closing the pending optical network unit send one predetermined amount of time of power supply.
The detecting step of the device of each step and the embodiment of the present invention of the method for the embodiment of the present invention is to correspond
, therefore the part for wherein repeating, no longer repeated.
The embodiment of the present invention improves the form of loop detection message, and the mark of optical network unit is carried in loop detection message
Know symbol, it is not necessary to which the software of optical network unit does any configuration, can be straight according to the identifier write in loop detection message
Connect and determine there are loop between which optical network unit, without removing inquiry mac tables, more rapid and convenient.It is in addition, of the invention
Embodiment can be completed the loop detection of optical network unit by passive optical network interface board, it is not necessary to master cpu go to look into mac and
Position where optical network unit, can mitigate the pressure of master cpu significantly.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those skilled in the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be covered
Within protection scope of the present invention.Therefore, protection scope of the present invention answers the scope of the claims of being subject to.
Claims (10)
1. a kind of optical network unit loop detecting method, it is characterised in that described method includes following steps:
The message of the first optical network unit transmission is received, wherein, the message includes what is communicated with first optical network unit
The logical link identifier of logical links;
Judge whether the message includes loop detection message identifier, if the message is identified including the loop detection message
Symbol, then determine the identifier of the second optical network unit according to the message;Wherein, second optical network unit is described in transmission
The optical network unit of message;
The identifier of first optical network unit is determined according to the logical link identifier;
Composition loop is determined according to the identifier of the identifier of second optical network unit and first optical network unit
Optical network unit, and classify to loop.
2. according to the method described in claim 1, it is characterized in that, the method further includes following steps:
Loop detection message is sent to second optical network unit, so that second optical network unit is examined according to the loop
The purpose mac for observing and predicting text sends the loop detection message;
Wherein, the purpose mac of the loop detection message is the mac of broadcasting packet, and the loop detection message includes described the
The identifier and loop detection message identifier of two optical network units.
3. method according to claim 1 or 2, it is characterised in that the loop detection message includes and second light
The logical link identifier of the logical links of network unit communication, the method is according to the logical link identifier by the loop
Detection messages are sent to second optical network unit.
4. according to the method described in claim 1, it is characterized in that,
The identifier of first optical network unit includes label, the first passive optical network port of first optical network unit
Label and the first groove position label;Wherein, first passive optical network port connects marked as with first optical network unit
The label of the passive optical network port of the passive optical network interface board connect, the first groove position marked as with first optical-fiber network
The corresponding groove position label of passive optical network interface board of unit connection;
The identifier of second optical network unit includes label, the second passive optical network port of second optical network unit
Label and the second groove position label;Wherein, second passive optical network port connects marked as with second optical network unit
The label of the passive optical network port of the passive optical network interface board connect, the second groove position marked as with second optical-fiber network
The corresponding groove position label of passive optical network interface board of unit connection.
5. according to the method described in claim 4, it is characterized in that, the identifier according to second optical network unit with
And the identifier of first optical network unit determines the optical network unit of composition loop, and classification is carried out to loop including as follows
Step:
Judge whether the first groove position label and the second groove position label are identical, if the first groove position label and described the
Two groove position labels are different, then the loop is present between two passive optical network interface boards, and the loop includes the first light net
Network unit and the second optical network unit;
If the first groove position label is identical with the second groove position label, the first passive optical network port label is judged
It is whether identical with the second passive optical network port label, if the first passive optical network port label and second nothing
Source optical network port label is different, then the loop is present in two passive optical network ports of a passive optical network interface board
Between, the loop includes the first optical network unit and the second optical network unit;
If the first passive optical network port label is identical with the second passive optical network port label, described is judged
Whether the label of one optical network unit is identical with the label of second optical network unit, if the mark of first optical network unit
Number different from the label of second optical network unit, then loop is present in two optical-fiber networks with a passive optical network port
Between unit, the loop includes the first optical network unit and the second optical network unit;
If the label of first optical network unit is identical with the label of second optical network unit, the loop is by institute
Stating the first optical network unit or second optical network unit itself formation, the loop includes the first optical network unit or second
Optical network unit.
6. according to the method described in claim 1, it is characterized in that, the method further includes following steps:
Alarm command is generated, and is sent to network management device, wherein alert command includes the optical-fiber network included by the loop
The identifier of unit;
An optical network unit included by the loop is chosen, obtains pending optical network unit;
The light for closing the pending optical network unit sends one predetermined amount of time of power supply.
7. a kind of optical network unit loop detection means, it is characterised in that described device includes:
Message receiving module, the message sent for receiving the first optical network unit, wherein, the message includes and described first
The logical link identifier of the logical links of optical network unit communication;
Message differentiates processing module, for judging whether the message includes loop detection message identifier, if the message bag
The loop detection message identifier is included, then the identifier of the second optical network unit is determined according to the message;Wherein, described
Two optical network units are the optical network unit for sending the message;
Identifier extraction module, for determining the identifier of first optical network unit according to the logical link identifier;
Loop determining module, for the identifier according to second optical network unit and the mark of first optical network unit
Know symbol and determine the optical network unit of composition loop, and classify to loop.
8. device according to claim 7, it is characterised in that described device further includes message sending module, for institute
State the second optical network unit and send loop detection message, so that second optical network unit is according to the loop detection message
Purpose mac sends the loop detection message;
Wherein, the purpose mac of the loop detection message is the mac of broadcasting packet, and the loop detection message includes described the
The identifier and loop detection message identifier of two optical network units.
9. device according to claim 7, it is characterised in that the loop determining module includes:
First determination sub-module, for judging whether the first groove position label and the second groove position label are identical, if described
First groove position label is different from the second groove position label, it is determined that the loop be present in two passive optical network interface boards it
Between, the loop includes the first optical network unit and the second optical network unit;
Second determination sub-module, for when the first groove position label is identical with the second groove position label, judging described
Whether one passive optical network port label and the second passive optical network port label are identical, if first passive optical network
Port label is different from the second passive optical network port label, it is determined that the loop is present in a passive optical network and connects
Between two passive optical network ports of oralia, the loop includes the first optical network unit and the second optical network unit;
3rd determination sub-module, in the first passive optical network port label and the second passive optical network port mark
When number identical, judge whether the label of first optical network unit is identical with the label of second optical network unit, if institute
The label for stating the first optical network unit is different from the label of second optical network unit, it is determined that loop is present in and a nothing
Between two optical network units of source optical network port, the loop includes the first optical network unit and the second optical network unit;
If the label of first optical network unit is identical with the label of second optical network unit, it is determined that the loop is
Formed by first optical network unit or second optical network unit itself, the loop include the first optical network unit or
Second optical network unit;
Wherein, the identifier of first optical network unit includes label, the first passive optical network of first optical network unit
Network port label and the first groove position label;First passive optical network port connects marked as with first optical network unit
The label of the passive optical network port of the passive optical network interface board connect, the first groove position marked as with first optical-fiber network
The corresponding groove position label of passive optical network interface board of unit connection;
The identifier of second optical network unit includes label, the second passive optical network port of second optical network unit
Label and the second groove position label;Second passive optical network port is marked as the nothing being connected with second optical network unit
The label of the passive optical network port of source optical network interface plate, the second groove position connect marked as with second optical network unit
The corresponding groove position label of passive optical network interface board connect.
10. device according to claim 7, it is characterised in that described device further includes:
Alarm module, for generating alarm command, and is sent to network management device, and wherein alert command includes the loop institute
Including optical network unit identifier;
Module is chosen, for choosing an optical network unit included by the loop, obtains pending optical network unit;
Loop processed module, the light for closing the pending optical network unit send one predetermined amount of time of power supply.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711392179.XA CN107979412B (en) | 2017-12-21 | 2017-12-21 | Optical network unit loop detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711392179.XA CN107979412B (en) | 2017-12-21 | 2017-12-21 | Optical network unit loop detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107979412A true CN107979412A (en) | 2018-05-01 |
CN107979412B CN107979412B (en) | 2020-03-13 |
Family
ID=62007159
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711392179.XA Active CN107979412B (en) | 2017-12-21 | 2017-12-21 | Optical network unit loop detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107979412B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113014442A (en) * | 2019-12-19 | 2021-06-22 | 西安诺瓦星云科技股份有限公司 | Network port loop detection method and network port loop detection system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101170462A (en) * | 2007-12-07 | 2008-04-30 | 杭州华三通信技术有限公司 | Downlink loop detection method and device for tree network |
CN102055525A (en) * | 2010-12-17 | 2011-05-11 | 北京格林伟迪科技有限公司 | Loop detecting and controlling method |
CN102740171A (en) * | 2011-04-08 | 2012-10-17 | 中兴通讯股份有限公司 | Round trip detection method and system for passive optical network |
CN105591692A (en) * | 2015-11-04 | 2016-05-18 | 杭州华三通信技术有限公司 | Method and device of loop elimination in Ethernet passive optical network (EPON) |
-
2017
- 2017-12-21 CN CN201711392179.XA patent/CN107979412B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101170462A (en) * | 2007-12-07 | 2008-04-30 | 杭州华三通信技术有限公司 | Downlink loop detection method and device for tree network |
CN102055525A (en) * | 2010-12-17 | 2011-05-11 | 北京格林伟迪科技有限公司 | Loop detecting and controlling method |
CN102740171A (en) * | 2011-04-08 | 2012-10-17 | 中兴通讯股份有限公司 | Round trip detection method and system for passive optical network |
CN105591692A (en) * | 2015-11-04 | 2016-05-18 | 杭州华三通信技术有限公司 | Method and device of loop elimination in Ethernet passive optical network (EPON) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113014442A (en) * | 2019-12-19 | 2021-06-22 | 西安诺瓦星云科技股份有限公司 | Network port loop detection method and network port loop detection system |
Also Published As
Publication number | Publication date |
---|---|
CN107979412B (en) | 2020-03-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101707538B (en) | Method for detecting and automatically recovering Ethernet loopback | |
CN101015157B (en) | Alarm indication and suppression (ais) method and system in an Ethernet oam network. | |
CN101197648B (en) | Self-loop detection method and device used for access network | |
CN101626381B (en) | Frame forwarding apparatus | |
CN102821009B (en) | Method for monitoring ring network on basis of link layer discovery protocol and device | |
CN108964943A (en) | A kind of method and device for realizing IOAM encapsulation | |
CN101345581B (en) | Fault location method and system for passive optical network | |
CN104618010B (en) | Optical network resource information verification method | |
CN104202334B (en) | A kind of method and device for establishing network connection | |
CN103686466B (en) | The method and apparatus generating forwarding-table item for the equipment in optical-fiber network | |
CN106375223B (en) | A kind of data forwarding system and method based on SDN | |
JP2008227985A (en) | Communication system, termination apparatus and pon virtualizing method used therefor | |
EP2339796A1 (en) | Method and apparatus for processing broadcast packet/multicast control message | |
CN108768882A (en) | A kind of processing method and system of protocol massages | |
CN105007221B (en) | A kind of loop detecting method and system | |
CN102739539A (en) | Method for carrying out topology association on optical network unit (ONU) and Ethernet over coax (EOC) | |
CN105122759A (en) | Method for processing packet in access network, and network device | |
CN101425941B (en) | Loop network link convergence time and recovery time test system | |
CN105591692A (en) | Method and device of loop elimination in Ethernet passive optical network (EPON) | |
CN102326370B (en) | Message processing method, apparatus and system | |
CN104486242A (en) | VLAN (virtual local area network) centralized control method and system of EPON (Ethernet passive optical network) | |
CN103457782B (en) | A kind of loop detection method and the network equipment based on VLAN | |
CN104067559A (en) | Method, apparatus and system for detecting performance of multicast channel | |
CN107979412A (en) | Optical network unit loop detecting method and device | |
CN106211801B (en) | Data processing method and device |
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 |