The content of the invention
It is a primary object of the present invention to provide the optical port changing method and system of a kind of optical network unit, optical-fiber network is realized
The optical port switching of unit, it is ensured that optical network unit normal work, and simplify optical port switching flow.
The present invention proposes a kind of optical port changing method of optical network unit, and the optical network unit includes being currently work light
First optical port of mouth and currently the second optical port for standby optical port, including step:
The timing of first optical port sends the status information of the second optical port to optical line terminal;
When the first optical port breaks down, optical line terminal judges that the second optical port is currently according to the status information of the second optical port
It is no available;
When the second optical port is currently available, then optical line terminal sends optical port switching to optical network unit by the first optical port and referred to
Order;
Current work optical port is switched to the second optical port, the light of juxtaposition first by optical network unit according to optical port switching command
Mouth is standby optical port.
Preferably, the optical line terminal judges whether the first optical port breaks down in the following manner:
Optical line terminal starts timing clocking capability, judges setting time after the status information of the second optical port is received
Inside whether receive the status information of next second optical port;If it is not, then showing that the first optical port breaks down;If so, then showing
One optical port is normal.
Preferably, the state of second optical port includes:There are the state of optical signal and the state without optical signal.
Preferably, the optical line terminal judges that whether available the second optical port is specific according to the status information of the second optical port
For:
Optical line terminal is according to the status information of the second optical port, and whether judge the second optical port current state is to have optical signal
State;
When the second optical port current state is the state that has optical signal, then it represents that the second optical port can use;
When the second optical port current state is the state without optical signal, then it represents that the second optical port is unavailable.
Preferably, the status information of second optical port is current the last the second optical port received of optical line terminal
Status information.
The present invention separately proposes a kind of optical port switching system of optical network unit, including optical network unit and optical line terminal;
The optical network unit include currently be the first optical port of work optical port and be currently standby optical port the second optical port;
First optical port, the status information of the second optical port is sent for timing to optical line terminal;
Optical line terminal, for when the first optical port failure, judging that the second optical port is current according to the status information of the second optical port
Whether can use;And when the second optical port is currently available, then optical line terminal sends optical port by the first optical port to optical network unit
Switching command;
Optical network unit, for according to optical port switching command, current work optical port to be switched into the second optical port, juxtaposition
One optical port is standby optical port.
Preferably, the optical line terminal, is specifically additionally operable to after the status information of the second optical port is received, and starts timing
Clocking capability, judges the status information of next second optical port whether is received in setting time, if it is not, then showing that the first optical port occurs
Failure;If so, then showing that the first optical port is normal.
Preferably, the optical port switching system of optical network unit, the state of second optical port includes:There is the state of optical signal
With the state without optical signal.
Preferably, the optical line terminal, is specifically additionally operable to the status information according to the second optical port, judges that the second optical port is worked as
Whether preceding state is the state for having optical signal;When the second optical port current state is the state that has optical signal, then it represents that the second optical port
It can use;When the second optical port current state is the state without optical signal, then it represents that the second optical port is unavailable.
Preferably, the status information of second optical port is current the last the second optical port received of optical line terminal
Status information.
The optical port changing method and system of optical network unit provided by the present invention, optical network unit are determined by the optical port that works
When the status information of standby optical port is sent to optical line terminal, when working optical port failure, optical line terminal determines standby optical port
Backward optical network unit optical port switching command can be used, optical network unit is operated the side of optical port switching according to optical port switching command
Formula, realizes the optical port switching of optical network unit, it is ensured that the normal work of optical network unit, simplifies the light of optical network unit
Mouth handover operation flow.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig. 1, the embodiment of optical port changing method one of the optical network unit of the present invention, the optical network unit bag are proposed
Include it is current be the first optical port of work optical port and be currently standby optical port the second optical port.Methods described includes:
Step S101, the timing of the first optical port send the status information of the second optical port to optical line terminal;
Step S102, when the first optical port breaks down, optical line terminal judges second according to the status information of the second optical port
Whether optical port currently can use;When the second optical port is currently available, then step S103 is transferred to;If it is not, then terminating flow.
Step S103, optical line terminal send optical port switching command by the first optical port to optical network unit;
Current work optical port is switched to the second optical port by step S104, optical network unit according to optical port switching command, and
The first optical port is put for standby optical port.
The optical port switching command bag also has the sequence number of target optical port, and optical network unit can be found pair according to the sequence number
The target optical port answered, and work optical port is switched into target optical port.Upper second light if the target optical port sequence number in the present embodiment
The sequence number of mouth.
In the optical port changing method embodiment of above-mentioned optical network unit, the prerequisite for carrying out optical port switching is the light net
The first optical port and the second optical port of network unit are registered to optical line terminal respectively, and are all succeeded in registration respectively.Optical network unit exists
After first, second optical port succeeds in registration, then it is work optical port therefrom to select an optical port, and it is standby optical port to select another.Such as
It is work optical port to select the first optical port, and the second optical port of selection is standby optical port.
Further, in the optical port changing method embodiment of above-mentioned optical network unit, the optical line terminal passes through following
Mode judges whether the first optical port breaks down:Optical line terminal starts timing after the status information of the second optical port is received
Clocking capability, judges the status information of next second optical port whether is received in setting time;If it is not, then showing that the first optical port goes out
Existing failure;If so, then showing that the first optical port is normal.
In the optical port changing method embodiment of above-mentioned optical network unit, first optical port, which breaks down, to be referred to, described the
One optical port sends data without normal direction optical line terminal, but optical line terminal can also be sent out to by the first optical port to optical network unit
Send data.
Further, in the optical port changing method embodiment of above-mentioned optical network unit, the state of second optical port includes:
There are the state of optical signal and the state without optical signal.The state of the second optical port can be represented in the present embodiment by numeral, is such as used
" 1 " represents that the second optical port is the state for having optical signal, and such as " 0 " represents that the second optical port is the state without optical signal.
Further, in the optical port changing method embodiment of above-mentioned optical network unit, the step S103 is specially:Light
Road terminal is according to the status information of the second optical port, and whether judge the second optical port current state is the state for having optical signal;When second
Optical port current state is the state for having optical signal, then it represents that the second optical port can use;When the second optical port current state is without optical signal
State, then it represents that the second optical port is unavailable.
Further, in the optical port changing method embodiment of above-mentioned optical network unit, the status information of second optical port
For the status information of current the last the second optical port received of optical line terminal.
The optical port changing method of above-mentioned optical network unit is applied to the network of an optical line terminal one optical network unit of correspondence
Layout, is also applied for the network topology of the multiple optical network units of optical line terminal correspondence.
The optical port changing method embodiment of above-mentioned optical network unit, optical network unit is by the optical port that works regularly to optical link
Terminal sends the status information of standby optical port, and when working optical port failure, optical line terminal determines that standby optical port can use backward light
NE optical port switching command, optical network unit is operated the mode of optical port switching according to optical port switching command, realizes
The optical port switching of optical network unit, it is ensured that the normal work of optical network unit, simplifies the optical port switching behaviour of optical network unit
Make flow.
Referring to Fig. 2, the embodiment of optical port switching system 100 of the optical network unit of the present invention, including optical network unit are proposed
110 and optical line terminal 120.The optical network unit 110 is including being currently the first optical port 111 of work optical port and being currently standby
With the second optical port 112 of optical port.First optical port 111, the state of the second optical port 112 is sent for timing to optical line terminal
Information.Optical line terminal 120, for being broken down when the first optical port 111, then judges according to the status information of the second optical port 112
Whether the second optical port 112 currently can use;And when the second optical port 112 is currently available, then optical line terminal 120 passes through the first optical port
111 send optical port switching command to optical network unit.Optical network unit 110, for according to optical port switching command, by current work
The second optical port 112 is switched to as optical port, the first optical port of juxtaposition 111 is standby optical port.
The optical port switching command bag also has the sequence number of target optical port, and optical network unit can be found pair according to the sequence number
The target optical port answered, and work optical port is switched into target optical port.Upper second light if the target optical port sequence number in the present embodiment
The sequence number of mouth 112.
In the optical port changing method embodiment of above-mentioned optical network unit 110, the prerequisite for carrying out optical port switching is described
The first optical port 111 and the second optical port 112 of optical network unit 110 are registered to optical line terminal 120 respectively, and are all registered respectively
Work(.It is work optical port that optical network unit 110 therefrom selects an optical port after first, second optical port succeeds in registration, then, and selection is another
One is standby optical port.It is work optical port such as to select the first optical port 111, and the second optical port 112 of selection is standby optical port.
Further, the embodiment of optical port switching system 100 of above-mentioned optical network unit, the optical line terminal 120, specifically
For after the status information of the second optical port 112 is received, starting timing clocking capability, judging whether received down in setting time
The status information of one second optical port 112, if it is not, then showing that the first optical port 111 breaks down;If so, then showing the first optical port 111
Normally.In the optical port changing method embodiment of above-mentioned optical network unit, first optical port 111, which breaks down, refers to described first
Optical port 111 sends data without normal direction optical line terminal 120, but optical line terminal 120 can also be by the first optical port 111 to light net
Network unit 110 sends data.
Further, the optical port switching system of above-mentioned optical network unit, the state of second optical port 112 includes:There is light
The state of signal and the state without optical signal.The state of the second optical port 112 can be represented in the present embodiment by numeral, is such as used
" 1 " represents that the second optical port 112 is the state for having optical signal, and such as " 0 " represents that the second optical port 112 is the state without optical signal.
Further, in the embodiment of optical port switching system 100 of above-mentioned optical network unit, the optical line terminal 120, tool
Body is additionally operable to the status information according to the second optical port 112, and whether judge the current state of the second optical port 112 is the shape for having optical signal
State;When the current state of the second optical port 112 is the state that has optical signal, then it represents that the second optical port 112 can use;When the second optical port 112
Current state is the state without optical signal, then it represents that the second optical port 112 is unavailable.
Further, in the embodiment of optical port switching system 100 of above-mentioned optical network unit, the shape of second optical port 112
State information is the status information of current the last the second optical port 112 received of optical line terminal 120.
The optical port switching system 100 of above-mentioned optical network unit is applied to an optical line terminal 120 one optical network unit of correspondence
110 network topology, is also applied for the network topology of the multiple optical network units 110 of an optical line terminal 120 correspondence.
The embodiment of optical port switching system 100 of above-mentioned optical network unit, optical network unit is by the optical port that works regularly to light
Line terminal 120 sends the status information of standby optical port, and when working optical port failure, optical line terminal 120 determines standby optical port
Optical port can be operated according to optical port switching command and cut with the backward optical port switching command of optical network unit 110, optical network unit 110
The mode changed, realizes the optical port switching of optical network unit 110, it is ensured that the normal work of optical network unit 110, simplifies light
The optical port handover operation flow of NE 110.
Below with illustrate exemplified by the ONU of MDU (Multiple Dwelling Unit, multiuser residential unit) type tool
Body implementation process.
1. the design of optical port state Boolean quantity
The various combination of different Boolean quantities can represent the different conditions of different optical modules on ONU, and PON MAC chips can be with
The optical port for realizing ONU using the corresponding different conditions of these different optical modules is protected.Each optical port has two states:Working condition
ACT and optical signal state SD, therefore this 4 state Boolean quantities can be divided into 2 groups, one group is PON_LT0_ACT and PON_LT0_SD,
Corresponding to work (protection) optical module, and another group then corresponds to protection (work) light for PON_LT1_ACT and PON_LT1_SD
Module.This 2 groups of state Boolean quantities are provided by hardware complex programmable logic device (CPLD), from it is onboard support bag BSP interfaces from
CPLD is obtained in real time, and so for inoperative mouthful, its SD state can be determined by the combination of this 2 groups of state Boolean quantities.
When PON_LT0 operationally, its (PON_LT0_ACT, PON_LT0_SD) value is (1,1), and the PON_LT1_ACT of inoperative mouthful is
0, at this moment inoperative mouthful SD values are PON_LT1_SD values, if SD values are 0, illustrate currently perform pretection switch function,
If SD values are 1, illustrating can be with pretection switch.Boolean's numerical quantity of inoperative mouthful SD states is shown in Table 1.
Table 1BSP interfaces provide real-time status
(2. ONT Management and Control Interface, ONT management and control connect one OMCI of design
Mouthful) management entity TypeC force data
Interacting message is carried out for the ease of OLT and ONU, still using the shape of OMCI management entities as defined in ITU-G.984.4
Formula, designs a TypeC force data management entity, its entity attributes line number represent light path sequence number, and right
ONU is corresponding with the setting parameter line number that OLT active and standby mouth carries out pretection switch, and this management entity passes through attribute
Value changes AVC (Attribute Value Change) message circulates a notice of current inoperative mouthful SD states from trend OLT.
Management entity TypeC force data attribute specification:
Management entity ID:0.(2 byte)
Inactive fiber status:The state of inoperative optical port, OLT is judged to send out in mandatory protection condition with it
PST message calls ONU, which whether can be issued, when raw is switched to inoperative optical port.If currently protection optical port does not have optical signal,
Set to 0, otherwise put 1.(1 byte)
3.ONU optical ports switch
When ONU receives the PST message of optical port switching command PLOAM message race, show that inoperative mouthful has optical signal,
Can (nanosecond) be switched to inoperative mouthful, namely the corresponding optical ports of line number, line number immediately with BSP interfaces
Value 0 or 1 represents OLT and the optical link of optical module 1 or the optical link of optical module 2 is switched to by PST message calls ONU respectively.
The corresponding various real-time status parameters of the present invention can be obtained by BSP from hardware GPIO or CPLD register.
It should be appreciated that these are only the preferred embodiments of the present invention, it is impossible to therefore the scope of the claims of the limitation present invention,
Equivalent structure or equivalent flow conversion that every utilization description of the invention and accompanying drawing content are made, or be directly or indirectly used in
Other related technical fields, are included within the scope of the present invention.