CN117156326A - Protection switching method and device and OLT equipment - Google Patents

Protection switching method and device and OLT equipment Download PDF

Info

Publication number
CN117156326A
CN117156326A CN202311397746.6A CN202311397746A CN117156326A CN 117156326 A CN117156326 A CN 117156326A CN 202311397746 A CN202311397746 A CN 202311397746A CN 117156326 A CN117156326 A CN 117156326A
Authority
CN
China
Prior art keywords
onu
port
pon port
service flow
pon
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
Application number
CN202311397746.6A
Other languages
Chinese (zh)
Other versions
CN117156326B (en
Inventor
刘宁
许恩齐
袁文利
王莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Yangtze Optical Technology Co ltd
Original Assignee
Wuhan Yangtze Optical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Yangtze Optical Technology Co ltd filed Critical Wuhan Yangtze Optical Technology Co ltd
Priority to CN202311397746.6A priority Critical patent/CN117156326B/en
Publication of CN117156326A publication Critical patent/CN117156326A/en
Application granted granted Critical
Publication of CN117156326B publication Critical patent/CN117156326B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/03Arrangements for fault recovery
    • H04B10/032Arrangements for fault recovery using working and protection systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J14/00Optical multiplex systems
    • H04J14/02Wavelength-division multiplex systems
    • H04J14/0227Operation, administration, maintenance or provisioning [OAMP] of WDM networks, e.g. media access, routing or wavelength allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0073Provisions for forwarding or routing, e.g. lookup tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0081Fault tolerance; Redundancy; Recovery; Reconfigurability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application provides a protection switching method, a device and an OLT device, which relate to the technical field of multiplexing communication, wherein the method comprises the following steps: recording relevant information of an ONU which is normally registered at a first PON port in a main state, wherein the relevant information comprises service flow mapping information and ONU registration state; the service flow mapping information is used for representing the mapping relation between the attribute of the service flow and the ONU, the AWG port and the wavelength; synchronizing related information of the normally registered ONU and a protocol state machine of the first PON port at the second PON port in the standby state; when PON protection switching occurs, the first PON port is switched to the standby state, the second PON port is switched to the main state, and the second PON port communicates with the ONU that is normally registered based on the protocol state machine of the first PON port and information about the ONU that is normally registered. The application realizes the protection switching of the WDM-PON system.

Description

Protection switching method and device and OLT equipment
Technical Field
The present application relates to the field of multiplexing communications technologies, and in particular, to a protection switching method, a device, and an OLT apparatus.
Background
A passive optical network (Passive Optical Network, PON) based on wavelength division multiplexing (Wavelength Division Multiplexing, WDM) is a point-to-point passive optical network employing wavelength division multiplexing technology. Multiple optical signals can be transmitted on one optical fiber at the same time, so that the transmission bandwidth and the utilization rate of the optical fiber are improved.
The WDM-PON backbone optical fiber line needs to be protected in consideration of reliability of the high-speed network. In the current WDM-PON system, a PON port of each optical network unit (Optical Network Unit, ONU) uses a pair of wavelengths for upstream and downstream communications, and the wavelengths are combined by an arrayed waveguide grating (Arrayed Waveguide Grating, AWG), converged into a trunk optical fiber, and connected to a PON port of an optical line terminal (Optical Line Terminal, OLT). In order to protect the main optical fiber, an optical splitter is added between the PON ports of the AWG and the OLT, and two branch optical fibers of the optical splitter are respectively connected with the two PON ports of the OLT.
The two PON ports of the OLT are in a main and standby state respectively, and an optical module of the PON port in the main state can transmit and receive light and communicate with the ONU; the optical module of the PON port in the standby state does not receive light and does not communicate with the ONU. When the PON port optical fiber in the main state is broken, protection switching is started, and all ONUs are switched to the optical fiber corresponding to the PON port in the standby state. How to implement fast protection switching is still a problem to be solved.
Disclosure of Invention
Aiming at the problems existing in the prior art, the embodiment of the application provides a protection switching method, a device and an OLT device.
In a first aspect, an embodiment of the present application provides a protection switching method, including:
recording related information of an ONU which is normally registered at a first PON port in a main state, wherein the related information comprises service flow mapping information and ONU registration state; the service flow mapping information is used for representing the mapping relation between the attribute of the service flow and the ONU, the AWG port and the wavelength;
synchronizing the related information of the normally registered ONU and the protocol state machine of the first PON port at the second PON port in the standby state;
and when the PON protection switching occurs, switching the first PON port to a standby state, switching the second PON port to a main state, and communicating with the normally registered ONU by the second PON port based on the protocol state machine of the first PON port and the related information of the normally registered ONU.
In some embodiments, the traffic flow mapping information includes:
identification information of the ONU;
wavelength selected by ONU;
AWG port corresponding to wavelength;
attributes of the traffic stream.
In some embodiments, recording, at the first PON port in the primary state, traffic mapping information of an ONU that is normally registered, includes:
receiving an uplink traffic stream sent by a normally registered ONU at the first PON port;
and determining service flow mapping information of the ONU based on the attribute of the uplink service flow, the identification information of the ONU, the wavelength selected by the ONU and the AWG port.
In some embodiments, the method further comprises:
based on the attribute of the downlink service flow and the recorded service flow mapping information, selecting ONU, wavelength and AWG port corresponding to the downlink service flow;
forwarding the downstream traffic stream based on the selected ONU, wavelength, and AWG port.
In some embodiments, the method further comprises:
and forwarding the downlink service flow to all the normally registered ONUs under the condition that the ONUs are not determined based on the attribute of the downlink service flow and the recorded service flow mapping information.
In some embodiments, the method further comprises:
setting an aging timer of the service flow mapping information;
if the aging timer is overtime, the currently recorded service flow mapping information is cleared;
and if the recorded service flow mapping information is updated, resetting the aging timer.
In some embodiments, the method further comprises:
transmitting configuration information to the ONU which is normally registered at the first PON port in the main state;
synchronizing the configuration information to the second PON port in the standby state;
the configuration information includes a state maintaining parameter, where the state maintaining parameter is used to indicate the ONU to maintain a registration state in a preset time period when the optical signal of the main optical fiber is lost.
In some embodiments, the method further comprises:
and when the first PON port and the second PON port are connected to different ports of the switching chip, if the PON protection switching occurs, the MAC address table of the first PON port in the switching chip is emptied, and/or the source port of the MAC address table in the switching chip is updated to be the second PON port.
In a second aspect, an embodiment of the present application further provides a protection switching device, including:
a recording unit, configured to record, at a first PON port in a main state, related information of an ONU that is normally registered, where the related information includes service flow mapping information and an ONU registration state; the service flow mapping information is used for representing the mapping relation between the attribute of the service flow and the ONU, the AWG port and the wavelength;
a first synchronization unit, configured to synchronize, at a second PON port in a standby state, related information of the ONU that is normally registered with a protocol state machine of the first PON port;
and the switching unit is used for switching the first PON port to be in a standby state and switching the second PON port to be in a main state under the condition of PON protection switching, and the second PON port is communicated with the normally registered ONU based on the protocol state machine of the first PON port and the related information of the normally registered ONU.
In some embodiments, the traffic flow mapping information includes:
identification information of the ONU;
wavelength selected by ONU;
AWG port corresponding to wavelength;
attributes of the traffic stream.
In some embodiments, the recording unit 301 is specifically configured to:
receiving an uplink traffic stream sent by a normally registered ONU at the first PON port;
and determining service flow mapping information of the ONU based on the attribute of the uplink service flow, the identification information of the ONU, the wavelength selected by the ONU and the AWG port.
In some embodiments, the apparatus further comprises:
a selecting unit, configured to select an ONU, a wavelength, and an AWG port corresponding to a downlink traffic flow based on an attribute of the downlink traffic flow and the recorded traffic flow mapping information;
and the first forwarding unit is used for forwarding the downlink service flow based on the selected ONU, wavelength and AWG port.
In some embodiments, the apparatus further comprises:
and the second forwarding unit is used for forwarding the downlink service flow to all the normally registered ONUs under the condition that the ONUs are not determined based on the attribute of the downlink service flow and the recorded service flow mapping information.
In some embodiments, the apparatus further comprises:
a setting unit, configured to set an aging timer of the traffic flow mapping information;
the clearing unit is used for clearing the currently recorded service flow mapping information if the aging timer is overtime;
and the resetting unit is used for resetting the aging timer if the recorded service flow mapping information is updated.
In some embodiments, the apparatus further comprises:
a transmitting unit, configured to transmit configuration information to an ONU that is normally registered at the first PON port in the main state;
a second synchronization unit, configured to synchronize the configuration information to the second PON port in the standby state;
the configuration information includes a state maintaining parameter, where the state maintaining parameter is used to indicate the ONU to maintain a registration state in a preset time period when the optical signal of the main optical fiber is lost.
In some embodiments, the apparatus further comprises:
and the emptying unit is used for emptying the MAC address table of the first PON port in the exchange chip and/or updating the source port of the MAC address table in the exchange chip as the second PON port if the PON protection switching occurs under the condition that the first PON port and the second PON port are connected to different ports of the exchange chip.
In a third aspect, an embodiment of the present application further provides an OLT apparatus, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements any one of the protection switching methods described above when executing the program.
In a fourth aspect, embodiments of the present application also provide a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a protection switching method as described in any of the above.
In a fifth aspect, embodiments of the present application further provide a computer program product, comprising a computer program, which when executed by a processor implements a protection switching method as described in any of the above.
The protection switching method, the device and the OLT equipment provided by the embodiments of the present application, for the OLT equipment in the WDM-PON system, record the relevant information of the ONU that is normally registered at the first PON port that is in the main state, including the traffic mapping information and the ONU registration state, and synchronize the relevant information of the ONU and the protocol state machine of the first PON port at the second PON port that is in the standby state, so that when protection switching occurs, the first PON port is switched to the standby state, the second PON port is switched to the main state, and the second PON port that is switched to the main state can keep the state machine of the WDM-PON system still in the running state based on the protocol state machine of the first PON port, and communicate with the ONU directly based on the relevant information of the ONU, without re-registering the ONU, thereby greatly reducing the time required for protection switching while implementing protection switching of the WDM-PON system.
Drawings
In order to more clearly illustrate the application or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a scenario of a protection switching method provided by an embodiment of the present application;
fig. 2 is a flow chart of a protection switching method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a protection switching device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an OLT apparatus according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The WDM-PON system adopts a wavelength division technology, and one WDM-PON OLT is connected with a plurality of ONUs in a downlink mode. Fig. 1 is a schematic view of a scenario of a protection switching method provided by an embodiment of the present application, as shown in fig. 1, a PON port of each ONU uses a pair of wavelengths for upstream and downstream communications, and is converged to a trunk optical fiber through AWG combining, and connected to an OLT PON port. In order to protect the main optical fiber, an optical splitter is added between the PON ports of the AWG and the OLT, and two branch optical fibers of the optical splitter are respectively connected with the two PON ports of the OLT.
The two PON ports of the OLT are in a main and standby state respectively, and an optical module of the PON port in the main state can transmit and receive light and communicate with the ONU; the optical module of the PON port in the standby state does not receive light and does not communicate with the ONU. When the PON port optical fiber in the main state is broken, protection switching is started, and all ONUs are switched to the optical fiber corresponding to the PON port in the standby state.
Fig. 2 is a schematic flow chart of a protection switching method provided by an embodiment of the present application, as shown in fig. 2, an execution body of the method is OLT equipment of a WDM-PON system, and the method at least includes the following steps:
step 201, recording relevant information of an ONU which is normally registered at a first PON port in a main state, wherein the relevant information comprises service flow mapping information and ONU registration state; the service flow mapping information is used for representing the mapping relation between the attribute of the service flow and the ONU, the AWG port and the wavelength;
step 202, synchronizing related information of the normally registered ONU and a protocol state machine of the first PON port at a second PON port in a standby state;
step 203, when PON protection switching occurs, switching the first PON port to a standby state, and switching the second PON port to a main state, where the second PON port communicates with the ONU that is normally registered based on the protocol state machine of the first PON port and the related information of the ONU that is normally registered.
Specifically, the OLT apparatus for the WDM-PON system includes two PON ports, one in a main state and the other in a standby state. The optical module of the first PON port in the main state can transmit and receive light and communicate with the ONU; the optical module of the second PON in the standby state does not receive light and does not communicate with the ONU.
For the first PON port in the main state, the ONU completes registration at the first PON port and issues relevant configuration information by the first PON port.
And recording relevant information of the normally registered ONU at the first PON port, wherein the relevant information comprises ONU registration state and service flow mapping information. The OLT PON port only supports the services of the registered ONUs.
The traffic flow mapping information is used to represent the mapping relationship between the attributes of the traffic flow and the ONU, AWG port and wavelength. In the WDM-PON system, a PON port of each ONU uses a pair of wavelengths for upstream and downstream communications, and different ONUs have different wavelengths. The uplink light is multiplexed to the OLT through the AWG, and the downlink light is demultiplexed to the ONUs through the AWG. Different wavelengths are bound with the AWG ports, and the different AWG ports are connected with the ONU to form a corresponding relation. Therefore, it is necessary to record the wavelength selected by each ONU at the OLT PON port and the AWG port. Meanwhile, the flow attribute of the ONU service generally corresponds to a certain wavelength, AWG port and ONU.
Therefore, the first PON port in the main state needs to record traffic mapping information of the ONU that is normally registered, so as to avoid confusion of wavelengths of downstream traffic flows, AWG ports, and ONU selection.
Optionally, the second PON port in the standby state synchronizes traffic mapping information of the ONU normally registered at the first PON port. The synchronous service flow mapping information can avoid the confusion of wavelength selection during switching, which leads to the wrong forwarding of the service flow.
Optionally, the second PON port in the standby state synchronizes the registration state of the ONU normally registered at the first PON port.
Optionally, the protocol state machine of the first PON port is synchronized at the second PON port, so that the WDM-PON system state machine is still in an operating state during switching, so as to further shorten the PON protection switching time.
The protocol state machine of the first PON port and the registration state of the ONU are synchronized, so that the problem that after the second PON port is switched to the main state, the service time is interrupted because the PON port protocol state machine error or the ONU registration state error requires the ONU to be re-registered is avoided.
When the OLT device performs PON protection switching, for example, when an optical fiber of a first PON is broken, the first PON port is switched to a standby state (even if the optical fiber connection of the subsequent first PON port is recovered), the second PON port is switched to a main state, and an optical module of the second PON port is opened, and the second PON port communicates with the ONU. At this time, the second PON port communicates with the ONU according to the protocol state machine of the first PON port recorded in synchronization with the previous and the information related to the ONU normally registered in the first PON port.
The protection switching method provided by the embodiment of the application records the relevant information of the normally registered ONU, including the service flow mapping information and the ONU registration state, of the OLT equipment in the WDM-PON system at the first PON port in the main state, and synchronizes the relevant information of the ONU and the protocol state machine of the first PON port at the second PON port in the standby state, so that when the protection switching occurs, the first PON port is switched to the standby state, the second PON port is switched to the main state, the second PON port switched to the main state can keep the state machine of the WDM-PON system still in the running state based on the protocol state machine of the first PON port, and communicates with the ONU directly based on the relevant information of the ONU, so that the ONU registration is not required to be carried out again, and the time required by the protection switching is greatly shortened while the protection switching of the WDM-PON system is realized.
In some embodiments, the traffic flow mapping information includes:
identification information of the ONU;
wavelength selected by ONU;
AWG port corresponding to wavelength;
attributes of the traffic stream.
Specifically, the traffic flow mapping information of the ONU at least includes the following information:
(1) the identification information of the ONU, such as an ONU Identifier (ID), an ONU Serial Number (SN), and the like, is used to distinguish different ONUs.
(2) The wavelength selected by the ONU. For the WDM-PON system, a wavelength division multiplexing technology is adopted, a PON port of each ONU uses a pair of wavelengths for upstream and downstream communications, and the wavelengths are combined by an AWG, converged into a trunk optical fiber, and connected to a PON port of the OLT.
(3) Wavelength-corresponding AWG ports. Each wavelength is bound with an AWG port, and the AWG port is connected with the ONU to form a corresponding relation.
(4) Attributes of the traffic stream. The attributes of the traffic flows may be differentiated according to the media access control (Media Access Control, MAC) addresses and virtual local area networks (Virtual Local Area Network, VLAN) of the different traffic flows.
Alternatively, the traffic flow mapping information may be a traffic flow mapping table. Through the form of the service flow mapping table, the mapping relation between the attribute of the service flow and the ONU, the AWG port and the wavelength can be more intuitively embodied.
The protection switching method provided by the embodiment of the application records the service flow mapping information of the normally registered ONU at the first PON port in the main state, wherein the service flow mapping information comprises the identification information of the ONU, the wavelength selected by the ONU, the AWG port corresponding to the wavelength and the attribute of the ONU service flow, and avoids the confusion of the wavelength of the downlink service flow, the AWG port and the ONU selection; meanwhile, the service flow mapping information of the ONU is synchronized to the second PON port in the standby state, thereby avoiding the confusion of wavelength selection, the transmission of service errors and the like during the protection switching and shortening the time required by the protection switching.
In some embodiments, recording, at the first PON port in the primary state, traffic mapping information of an ONU that is normally registered, includes:
receiving an uplink traffic stream sent by a normally registered ONU at the first PON port;
and determining service flow mapping information of the ONU based on the attribute of the uplink service flow, the identification information of the ONU, the wavelength selected by the ONU and the AWG port.
Specifically, each ONU service flow is converged to the OLT, and when the ONU uplink service flow passes through the OLT, a mapping relationship between an attribute (mac+vlan) of the uplink service flow and a source ONU (wavelength, AWG port, ONU identification information) is determined, that is, service flow mapping information of the source ONU is recorded. The source ONU is a normally registered ONU.
In some embodiments, the method further comprises:
based on the attribute of the downlink service flow and the recorded service flow mapping information, selecting ONU, wavelength and AWG port corresponding to the downlink service flow;
forwarding the downstream traffic stream based on the selected ONU, wavelength, and AWG port.
Specifically, when the downlink traffic flows pass through the OLT PON, according to the genus (mac+vlan) of the downlink traffic flows, the traffic flow mapping information of the currently recorded ONU is queried, and the corresponding forwarding ONU, and the corresponding wavelength and AWG port are determined.
And selecting a forwarding ONU, and using the corresponding wavelength and the AWG port to ensure that the downlink traffic flow is forwarded to the selected ONU.
The protection switching method provided by the embodiment of the application records the service flow mapping information of the ONU which is normally registered at the main PON port, and ensures that the downlink service flow can be forwarded to the appointed ONU.
In some embodiments, the method further comprises:
and forwarding the downlink service flow to all the normally registered ONUs under the condition that the ONUs are not determined based on the attribute of the downlink service flow and the recorded service flow mapping information.
Specifically, if, in the recorded traffic mapping information, the ONU corresponding to the current downlink traffic is not queried, for example, the previous ONU has not sent the uplink traffic with the same attribute, and then, for example, the traffic mapping information recorded by the OLT is lost or updated, so that there is no information of the traffic with the corresponding attribute, the main PON port broadcasts the downlink traffic to all the ONUs that are normally registered, and forwards the downlink traffic to all the ONUs that are normally registered, that is, all the wavelengths are used to send the traffic to the respective corresponding AWG ports, so as to reach the corresponding ONUs.
According to the protection switching method provided by the embodiment of the application, under the condition that the forwarding ONU is not determined according to the attribute of the downlink service flow and the recorded service flow mapping information, the downlink service flow is broadcasted to all normally registered ONUs, and service interruption is avoided.
In some embodiments, the method further comprises:
setting an aging timer of the service flow mapping information;
if the aging timer is overtime, the currently recorded service flow mapping information is cleared;
and if the recorded service flow mapping information is updated, resetting the aging timer.
Specifically, the service of the WDM-PON system is continuously updated, and similarly, the service flow mapping information of the ONU recorded in the OLT is not unchanged, for example, the ONU is newly added for registration, the registration state of the ONU that is originally registered changes (the ONU goes offline, etc.), and the service flow attribute is newly added.
Considering that the storage capacity of the OLT is limited, setting an aging timer of the service flow mapping information, and clearing the currently recorded service flow mapping information under the condition that the aging timer is overtime; in case that the traffic flow mapping information is updated and the aging timer is not timed out, the aging timer is reset.
According to the protection switching method provided by the embodiment of the application, the real-time performance of the service flow mapping information is improved by setting the aging timer.
In some embodiments, the method further comprises:
transmitting configuration information to the ONU which is normally registered at the first PON port in the main state;
synchronizing the configuration information to the second PON port in the standby state;
the configuration information includes a state maintaining parameter, where the state maintaining parameter is used to indicate the ONU to maintain a registration state in a preset time period when the optical signal of the main optical fiber is lost.
Specifically, the OLT issues configuration information to the ONU that is normally registered through the first PON port that is in the main state, and synchronizes the issued configuration information to the second PON port that is in the standby state. So that the configuration issue of ONU does not need to be carried out again during the protection switching. And the error operation caused by inconsistent configuration parameters of the OLT and the ONU is avoided.
The configuration information at least includes a state maintaining parameter, where the state maintaining parameter indicates a preset time period, and when the ONU detects that the main optical fiber signal is lost, that is, after protection switching starts, the ONU maintains a registration state in the preset time period based on the state maintaining parameter, instead of directly entering a LOSs (LOS) state, so that a new main PON needs to complete registration and configuration issuing processes again after switching, which results in long-time service interruption.
In the protection switching method provided by the embodiment of the application, the first PON port in the main state sends the configuration information to the ONU which is normally registered, and the configuration information is synchronized to the second PON port in the standby state, and the configuration information at least contains the state maintaining parameter, so that the ONU is prevented from directly entering the lost state in the protection switching process, and the continuity of ONU service is ensured.
In some embodiments, the method further comprises:
and when the first PON port and the second PON port are connected to different ports of the switching chip, if the PON protection switching occurs, the MAC address table of the first PON port in the switching chip is emptied, and/or the source port of the MAC address table in the switching chip is updated to be the second PON port.
Specifically, if the first PON port and the second PON port of the OLT are connected to different ports of the switching chip, when PON protection is switched, the MAC address table of the first PON port in the switching chip is cleared, and/or the source of the MAC address table in the switching chip is updated to be the second PON port, so as to avoid forwarding the downstream traffic to the wrong PON port.
The protection switching method provided by the embodiment of the application aims at the condition that the main PON port and the standby PON port of the OLT equipment are connected to different ports of the switching chip, and when PON protection switching occurs, the source of the MAC address table in the switching chip is updated or the MAC address table of the original main PON port is cleared, so that the error forwarding of the service flow is avoided.
The protection switching device provided by the present application is described below, and the protection switching device described below and the protection switching method described above can be referred to correspondingly.
Fig. 3 is a schematic structural diagram of a protection switching device according to an embodiment of the present application, where, as shown in fig. 3, the device at least includes:
a recording unit 301, configured to record, at a first PON port in a main state, relevant information of an ONU that is normally registered, where the relevant information includes service flow mapping information and an ONU registration state; the service flow mapping information is used for representing the mapping relation between the attribute of the service flow and the ONU, the AWG port and the wavelength;
a first synchronization unit 302, configured to synchronize, at a second PON port in a standby state, information about the ONU that is normally registered with a protocol state machine of the first PON port;
and a switching unit 303, configured to switch the first PON port to a standby state and switch the second PON port to a main state when PON protection switching occurs, where the second PON port communicates with the normally registered ONU based on a protocol state machine of the first PON port and related information of the normally registered ONU.
In some embodiments, the traffic flow mapping information includes:
identification information of the ONU;
wavelength selected by ONU;
AWG port corresponding to wavelength;
attributes of the traffic stream.
In some embodiments, the recording unit 301 is specifically configured to:
receiving an uplink traffic stream sent by a normally registered ONU at the first PON port;
and determining service flow mapping information of the ONU based on the attribute of the uplink service flow, the identification information of the ONU, the wavelength selected by the ONU and the AWG port.
In some embodiments, the apparatus further comprises:
a selecting unit, configured to select an ONU, a wavelength, and an AWG port corresponding to a downlink traffic flow based on an attribute of the downlink traffic flow and the recorded traffic flow mapping information;
and the first forwarding unit is used for forwarding the downlink service flow based on the selected ONU, wavelength and AWG port.
In some embodiments, the apparatus further comprises:
and the second forwarding unit is used for forwarding the downlink service flow to all the normally registered ONUs under the condition that the ONUs are not determined based on the attribute of the downlink service flow and the recorded service flow mapping information.
In some embodiments, the apparatus further comprises:
a setting unit, configured to set an aging timer of the traffic flow mapping information;
the clearing unit is used for clearing the currently recorded service flow mapping information if the aging timer is overtime;
and the resetting unit is used for resetting the aging timer if the recorded service flow mapping information is updated.
In some embodiments, the apparatus further comprises:
a transmitting unit, configured to transmit configuration information to an ONU that is normally registered at the first PON port in the main state;
a second synchronization unit, configured to synchronize the configuration information to the second PON port in the standby state;
the configuration information includes a state maintaining parameter, where the state maintaining parameter is used to indicate the ONU to maintain a registration state in a preset time period when the optical signal of the main optical fiber is lost.
In some embodiments, the apparatus further comprises:
and the emptying unit is used for emptying the MAC address table of the first PON port in the exchange chip and/or updating the source port of the MAC address table in the exchange chip as the second PON port if the PON protection switching occurs under the condition that the first PON port and the second PON port are connected to different ports of the exchange chip.
It should be noted that, the above device provided in the embodiment of the present application can implement all the method steps implemented in the method embodiment and achieve the same technical effects, and detailed descriptions of the same parts and beneficial effects as those in the method embodiment in this embodiment are omitted.
Fig. 4 is a schematic structural diagram of an OLT apparatus according to an embodiment of the present application, and as shown in fig. 4, the electronic apparatus may include: a processor (processor) 401, a communication interface (Communications Interface) 402, a memory (memory) 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 complete communication with each other through the communication bus 404. The processor 401 may call logic instructions in the memory 403 to perform a protection switching method, including:
recording related information of an ONU which is normally registered at a first PON port in a main state, wherein the related information comprises service flow mapping information and ONU registration state; the service flow mapping information is used for representing the mapping relation between the attribute of the service flow and the ONU, the AWG port and the wavelength;
synchronizing the related information of the normally registered ONU and the protocol state machine of the first PON port at the second PON port in the standby state;
and when the PON protection switching occurs, switching the first PON port to a standby state, switching the second PON port to a main state, and communicating with the normally registered ONU by the second PON port based on the protocol state machine of the first PON port and the related information of the normally registered ONU.
In some embodiments, the traffic flow mapping information includes:
identification information of the ONU;
wavelength selected by ONU;
AWG port corresponding to wavelength;
attributes of the traffic stream.
In some embodiments, recording, at the first PON port in the primary state, traffic mapping information of an ONU that is normally registered, includes:
receiving an uplink traffic stream sent by a normally registered ONU at the first PON port;
and determining service flow mapping information of the ONU based on the attribute of the uplink service flow, the identification information of the ONU, the wavelength selected by the ONU and the AWG port.
In some embodiments, the method further comprises:
based on the attribute of the downlink service flow and the recorded service flow mapping information, selecting ONU, wavelength and AWG port corresponding to the downlink service flow;
forwarding the downstream traffic stream based on the selected ONU, wavelength, and AWG port.
In some embodiments, the method further comprises:
and forwarding the downlink service flow to all the normally registered ONUs under the condition that the ONUs are not determined based on the attribute of the downlink service flow and the recorded service flow mapping information.
In some embodiments, the method further comprises:
setting an aging timer of the service flow mapping information;
if the aging timer is overtime, the currently recorded service flow mapping information is cleared;
and if the recorded service flow mapping information is updated, resetting the aging timer.
In some embodiments, the method further comprises:
transmitting configuration information to the ONU which is normally registered at the first PON port in the main state;
synchronizing the configuration information to the second PON port in the standby state;
the configuration information includes a state maintaining parameter, where the state maintaining parameter is used to indicate the ONU to maintain a registration state in a preset time period when the optical signal of the main optical fiber is lost.
In some embodiments, the method further comprises:
and when the first PON port and the second PON port are connected to different ports of the switching chip, if the PON protection switching occurs, the MAC address table of the first PON port in the switching chip is emptied, and/or the source port of the MAC address table in the switching chip is updated to be the second PON port.
Further, the logic instructions in the memory 403 may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present application also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can execute a protection switching method provided by the above methods, where the protection switching method includes:
recording related information of an ONU which is normally registered at a first PON port in a main state, wherein the related information comprises service flow mapping information and ONU registration state; the service flow mapping information is used for representing the mapping relation between the attribute of the service flow and the ONU, the AWG port and the wavelength;
synchronizing the related information of the normally registered ONU and the protocol state machine of the first PON port at the second PON port in the standby state;
and when the PON protection switching occurs, switching the first PON port to a standby state, switching the second PON port to a main state, and communicating with the normally registered ONU by the second PON port based on the protocol state machine of the first PON port and the related information of the normally registered ONU.
In some embodiments, the traffic flow mapping information includes:
identification information of the ONU;
wavelength selected by ONU;
AWG port corresponding to wavelength;
attributes of the traffic stream.
In some embodiments, recording, at the first PON port in the primary state, traffic mapping information of an ONU that is normally registered, includes:
receiving an uplink traffic stream sent by a normally registered ONU at the first PON port;
and determining service flow mapping information of the ONU based on the attribute of the uplink service flow, the identification information of the ONU, the wavelength selected by the ONU and the AWG port.
In some embodiments, the method further comprises:
based on the attribute of the downlink service flow and the recorded service flow mapping information, selecting ONU, wavelength and AWG port corresponding to the downlink service flow;
forwarding the downstream traffic stream based on the selected ONU, wavelength, and AWG port.
In some embodiments, the method further comprises:
and forwarding the downlink service flow to all the normally registered ONUs under the condition that the ONUs are not determined based on the attribute of the downlink service flow and the recorded service flow mapping information.
In some embodiments, the method further comprises:
setting an aging timer of the service flow mapping information;
if the aging timer is overtime, the currently recorded service flow mapping information is cleared;
and if the recorded service flow mapping information is updated, resetting the aging timer.
In some embodiments, the method further comprises:
transmitting configuration information to the ONU which is normally registered at the first PON port in the main state;
synchronizing the configuration information to the second PON port in the standby state;
the configuration information includes a state maintaining parameter, where the state maintaining parameter is used to indicate the ONU to maintain a registration state in a preset time period when the optical signal of the main optical fiber is lost.
In some embodiments, the method further comprises:
and when the first PON port and the second PON port are connected to different ports of the switching chip, if the PON protection switching occurs, the MAC address table of the first PON port in the switching chip is emptied, and/or the source port of the MAC address table in the switching chip is updated to be the second PON port.
In yet another aspect, the present application further provides a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor is implemented to perform the protection switching method provided by the above methods, comprising:
recording related information of an ONU which is normally registered at a first PON port in a main state, wherein the related information comprises service flow mapping information and ONU registration state; the service flow mapping information is used for representing the mapping relation between the attribute of the service flow and the ONU, the AWG port and the wavelength;
synchronizing the related information of the normally registered ONU and the protocol state machine of the first PON port at the second PON port in the standby state;
and when the PON protection switching occurs, switching the first PON port to a standby state, switching the second PON port to a main state, and communicating with the normally registered ONU by the second PON port based on the protocol state machine of the first PON port and the related information of the normally registered ONU.
In some embodiments, the traffic flow mapping information includes:
identification information of the ONU;
wavelength selected by ONU;
AWG port corresponding to wavelength;
attributes of the traffic stream.
In some embodiments, recording, at the first PON port in the primary state, traffic mapping information of an ONU that is normally registered, includes:
receiving an uplink traffic stream sent by a normally registered ONU at the first PON port;
and determining service flow mapping information of the ONU based on the attribute of the uplink service flow, the identification information of the ONU, the wavelength selected by the ONU and the AWG port.
In some embodiments, the method further comprises:
based on the attribute of the downlink service flow and the recorded service flow mapping information, selecting ONU, wavelength and AWG port corresponding to the downlink service flow;
forwarding the downstream traffic stream based on the selected ONU, wavelength, and AWG port.
In some embodiments, the method further comprises:
and forwarding the downlink service flow to all the normally registered ONUs under the condition that the ONUs are not determined based on the attribute of the downlink service flow and the recorded service flow mapping information.
In some embodiments, the method further comprises:
setting an aging timer of the service flow mapping information;
if the aging timer is overtime, the currently recorded service flow mapping information is cleared;
and if the recorded service flow mapping information is updated, resetting the aging timer.
In some embodiments, the method further comprises:
transmitting configuration information to the ONU which is normally registered at the first PON port in the main state;
synchronizing the configuration information to the second PON port in the standby state;
the configuration information includes a state maintaining parameter, where the state maintaining parameter is used to indicate the ONU to maintain a registration state in a preset time period when the optical signal of the main optical fiber is lost.
In some embodiments, the method further comprises:
and when the first PON port and the second PON port are connected to different ports of the switching chip, if the PON protection switching occurs, the MAC address table of the first PON port in the switching chip is emptied, and/or the source port of the MAC address table in the switching chip is updated to be the second PON port.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present application without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. The protection switching method is characterized in that the method is applied to an OLT device of a WDM-PON system and comprises the following steps:
recording related information of an ONU which is normally registered at a first PON port in a main state, wherein the related information comprises service flow mapping information and ONU registration state; the service flow mapping information is used for representing the mapping relation between the attribute of the service flow and the ONU, the AWG port and the wavelength;
synchronizing the related information of the normally registered ONU and the protocol state machine of the first PON port at the second PON port in the standby state;
and when the PON protection switching occurs, switching the first PON port to a standby state, switching the second PON port to a main state, and communicating with the normally registered ONU by the second PON port based on the protocol state machine of the first PON port and the related information of the normally registered ONU.
2. The protection switching method according to claim 1, wherein the traffic mapping information includes:
identification information of the ONU;
wavelength selected by ONU;
AWG port corresponding to wavelength;
attributes of the traffic stream.
3. The protection switching method according to claim 1 or 2, wherein recording traffic mapping information of an ONU that is normally registered at the first PON port in the main state includes:
receiving an uplink traffic stream sent by a normally registered ONU at the first PON port;
and determining service flow mapping information of the ONU based on the attribute of the uplink service flow, the identification information of the ONU, the wavelength selected by the ONU and the AWG port.
4. A protection switching method according to claim 3, characterized in that the method further comprises:
based on the attribute of the downlink service flow and the recorded service flow mapping information, selecting ONU, wavelength and AWG port corresponding to the downlink service flow;
forwarding the downstream traffic stream based on the selected ONU, wavelength, and AWG port.
5. The protection switching method according to claim 4, further comprising:
and forwarding the downlink service flow to all the normally registered ONUs under the condition that the ONUs are not determined based on the attribute of the downlink service flow and the recorded service flow mapping information.
6. The protection switching method according to claim 1, wherein the method further comprises:
setting an aging timer of the service flow mapping information;
if the aging timer is overtime, the currently recorded service flow mapping information is cleared;
and if the recorded service flow mapping information is updated, resetting the aging timer.
7. The protection switching method according to claim 1, wherein the method further comprises:
transmitting configuration information to the ONU which is normally registered at the first PON port in the main state;
synchronizing the configuration information to the second PON port in the standby state;
the configuration information includes a state maintaining parameter, where the state maintaining parameter is used to indicate the ONU to maintain a registration state in a preset time period when the optical signal of the main optical fiber is lost.
8. The protection switching method according to claim 1, wherein the method further comprises:
and when the first PON port and the second PON port are connected to different ports of the switching chip, if the PON protection switching occurs, the MAC address table of the first PON port in the switching chip is emptied, and/or the source port of the MAC address table in the switching chip is updated to be the second PON port.
9. A protection switching device, comprising:
a recording unit, configured to record, at a first PON port in a main state, related information of an ONU that is normally registered, where the related information includes service flow mapping information and an ONU registration state; the service flow mapping information is used for representing the mapping relation between the attribute of the service flow and the ONU, the AWG port and the wavelength;
a first synchronization unit, configured to synchronize, at a second PON port in a standby state, related information of the ONU that is normally registered with a protocol state machine of the first PON port;
and the switching unit is used for switching the first PON port to be in a standby state and switching the second PON port to be in a main state under the condition of PON protection switching, and the second PON port is communicated with the normally registered ONU based on the protocol state machine of the first PON port and the related information of the normally registered ONU.
10. OLT device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the protection switching method according to any of claims 1 to 8 when executing the program.
CN202311397746.6A 2023-10-26 2023-10-26 Protection switching method and device and OLT equipment Active CN117156326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311397746.6A CN117156326B (en) 2023-10-26 2023-10-26 Protection switching method and device and OLT equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311397746.6A CN117156326B (en) 2023-10-26 2023-10-26 Protection switching method and device and OLT equipment

Publications (2)

Publication Number Publication Date
CN117156326A true CN117156326A (en) 2023-12-01
CN117156326B CN117156326B (en) 2024-01-12

Family

ID=88884556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311397746.6A Active CN117156326B (en) 2023-10-26 2023-10-26 Protection switching method and device and OLT equipment

Country Status (1)

Country Link
CN (1) CN117156326B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010027599A (en) * 1999-09-14 2001-04-06 서평원 Method for protection switching of SDH optical transmission equipment by using FSM
CN1801735A (en) * 2005-01-01 2006-07-12 华为技术有限公司 Heat backup device for multiplex section protection reverse and its method
CN101867392A (en) * 2009-04-15 2010-10-20 中兴通讯股份有限公司 Method, equipment and system for improving type B protection switching performance
CN202634436U (en) * 2012-03-22 2012-12-26 绍兴电力局 Passive optical network communication system with uplink and downlink ports possessing complete self-healing protection function
WO2016169406A1 (en) * 2015-04-20 2016-10-27 中兴通讯股份有限公司 Registration method and apparatus
CN111093125A (en) * 2019-12-27 2020-05-01 瑞斯康达科技发展股份有限公司 Method, device and storage medium for realizing trunk optical fiber protection of optical line terminal
CN113518271A (en) * 2020-04-10 2021-10-19 上海诺基亚贝尔股份有限公司 Method, device and system for channel management in passive optical network

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010027599A (en) * 1999-09-14 2001-04-06 서평원 Method for protection switching of SDH optical transmission equipment by using FSM
CN1801735A (en) * 2005-01-01 2006-07-12 华为技术有限公司 Heat backup device for multiplex section protection reverse and its method
CN101867392A (en) * 2009-04-15 2010-10-20 中兴通讯股份有限公司 Method, equipment and system for improving type B protection switching performance
WO2010118619A1 (en) * 2009-04-15 2010-10-21 中兴通讯股份有限公司 Method, device and system for improving the performance of type b protection switching
CN202634436U (en) * 2012-03-22 2012-12-26 绍兴电力局 Passive optical network communication system with uplink and downlink ports possessing complete self-healing protection function
WO2016169406A1 (en) * 2015-04-20 2016-10-27 中兴通讯股份有限公司 Registration method and apparatus
CN111093125A (en) * 2019-12-27 2020-05-01 瑞斯康达科技发展股份有限公司 Method, device and storage medium for realizing trunk optical fiber protection of optical line terminal
CN113518271A (en) * 2020-04-10 2021-10-19 上海诺基亚贝尔股份有限公司 Method, device and system for channel management in passive optical network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
唐世庆 等: "光传送网的可移动主控自动保护倒换机制", 《光通信技术》 *
罗志成 等: "基于1+1工作模式OLT的LACP协议研究", 《电子设计工程》 *

Also Published As

Publication number Publication date
CN117156326B (en) 2024-01-12

Similar Documents

Publication Publication Date Title
US8554075B2 (en) Communication system, subscriber accommodating apparatus and communication method
US7603036B2 (en) System and method for managing network components in a hybrid passive optical network
US9525507B2 (en) Method of tuning wavelength in time and wavelength division multiplexing-passive optical network (TWDM-PON)
US7920792B2 (en) System and method for managing communication in a hybrid passive optical network
EP2556680B1 (en) Method and arrangements for protection in an optical network
JP5460886B2 (en) Logical link management method and communication apparatus
US20140178067A1 (en) Data communication method in optical network system, optical network unit and system
CN111654765B (en) Business service processing method and device and optical line terminal
MX2015000508A (en) Wavelength negotiation method, system, and device for multi-wavelength passive optical network.
WO2010130123A1 (en) Method and apparatus for implementing trunk optical fiber protection in ethernet passive optical network (epon)
JP2015033003A (en) Network system, and subscriber device
JP2009188471A (en) Optical access network, and optical communication path switching control system
WO2011009368A1 (en) Method, apparatus and system for transmitting information in passive optical network
JP2022540600A (en) Method and related apparatus for reducing upstream delay in passive optical networks
JP7235398B2 (en) Information transmission method, optical line terminal, optical network unit, and communication system
CN103248419A (en) ONU (optical network unit), OLT (optical line terminal), D type PON (passive optical network) protecting system and method
CN117156326B (en) Protection switching method and device and OLT equipment
JP2016149609A (en) Access control system, access control method, master station device, and slave station device
EP2562947B1 (en) Method, apparatus and system for passive optical network communication
CN102487466B (en) The method and system of the transmission data under a kind of full guard pattern in EPON
KR20150144280A (en) Wavelength tuning sequences in time and wavelength division multiplexing - passive optical network
JP2012222767A (en) Communication system, master station device, and communication circuit changeover method
CN111356038B (en) Method for realizing channel self-adaption in PON and related equipment
JP5247482B2 (en) Main station side device, sub station side device, central station and optical communication system
WO2011076256A1 (en) Method and device for data protection in an optical communication network

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