CN105634807A - Method and apparatus for port state synchronization - Google Patents
Method and apparatus for port state synchronization Download PDFInfo
- Publication number
- CN105634807A CN105634807A CN201511020966.2A CN201511020966A CN105634807A CN 105634807 A CN105634807 A CN 105634807A CN 201511020966 A CN201511020966 A CN 201511020966A CN 105634807 A CN105634807 A CN 105634807A
- Authority
- CN
- China
- Prior art keywords
- signal
- switching equipment
- cpu
- fault information
- los signal
- 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
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000002159 abnormal effect Effects 0.000 claims abstract description 33
- 230000003287 optical effect Effects 0.000 claims abstract description 21
- 239000013307 optical fiber Substances 0.000 claims description 32
- 239000000835 fiber Substances 0.000 abstract description 4
- 230000008569 process Effects 0.000 description 7
- 230000009471 action Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Optical Communication System (AREA)
Abstract
The embodiment of the invention discloses a method and apparatus for port state synchronization. The method is applied to first switching equipment; the first switching equipment is connected with second switching equipment by two fibers; and an output terminal for outputting an LOS signal representing signal loss in a first optical module of the first switching equipment is connected with a complex programmable logic device (CPLD) pin of the first switching equipment. The method comprises: a CPU of first switching equipment obtains an LOS signal of a CPLD pin; when the LOS signal is an abnormal signal, the CPU of the first switching equipment generates fault information; and a sending terminal of the first switching equipment is notified to send the fault information to second switching equipment, so that the second switching equipment sets a port state of the sending terminal to be a link down state. On the basis of the technical scheme provided by the embodiment of the invention, synchronization of port states of the first switching equipment and the second switching equipment can be realized.
Description
Technical Field
The present invention relates to the field of industrial ethernet technologies, and in particular, to a method and an apparatus for synchronizing port states.
Background
In the industrial Ethernet, one end switching device and the other end switching device are connected through two optical fibers, and a sending end of the one end switching device corresponds to a receiving end of the other end switching device. When the PHY chip and the interfacing MAC chip in the switch device are designed in SGMII (serial gigabit media independent interface) interface mode, the port rate can be forcibly converted from giga to hundred mega, but the auto-negotiation function needs to be turned off. In this interface mode, the port state of the two-terminal switching device is still normal, and only works at the hundred-megabyte rate.
However, in this interface mode, when an optical fiber between the switching devices at both ends is pulled out, the switching device at the receiving end of the optical fiber may send a linkdown alarm, the switching device at the transmitting end of the optical fiber may not have any reaction, and the port status is still in the linkup status. This is because, in such an interface mode, the PHY chip of the switching device at the receiving end of the optical fiber cannot transmit the port state to the MAC chip, and the MAC chip cannot notify the transmitting end of the switching device to transmit the fault information to the switching device at the other end, and the switching device at the other end cannot set the port state of the transmitting end to the linkdown state, so that the port states of the switching devices at both ends cannot be synchronized.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method and an apparatus for port state synchronization, so as to implement port state synchronization of a first switch device and a second switch device. The technical scheme is as follows:
a port state synchronization method is applied to a first switching device which is connected with a second switching device through two optical fibers, wherein an output end of a LOS signal which is used for informing signal LOSs in a first optical module of the first switching device is connected with a Complex Programmable Logic Device (CPLD) pin of the first switching device, and the method comprises the following steps:
a Central Processing Unit (CPU) of the first exchange device obtains an LOS signal on a pin of the CPLD;
when the LOS signal is an abnormal signal, the CPU of the first switching equipment generates fault information;
and informing the sending end of the first switching device to send the fault information to the second switching device, so that the second switching device sets the port state of the sending end to be a linkdown state.
In a specific embodiment of the present invention, the notifying the sending end of the first switch device to send the failure information to the second switch device includes:
and the CPU of the first switching equipment configures the fault information to a fault register, informs a sending end of the first switching equipment to read the fault information in the fault register and sends the fault information to the second switching equipment.
In a specific embodiment of the present invention, the method further comprises:
and when the LOS signal is recovered to be a normal signal from an abnormal signal, the CPU of the first switching equipment clears the fault information in the fault register.
In a specific embodiment of the present invention, the obtaining, by the CPU of the first switch device, an LOS signal on the pin of the CPLD includes:
the CPU of the first exchange device obtains an LOS signal on the CPLD pin by polling the CPLD pin; or,
and the CPU of the first exchange device receives the LOS signal reported by the CPLD pin.
In a specific embodiment of the present invention, the method further comprises:
and when the LOS signal is recovered to be a normal signal from an abnormal signal, the first switching equipment sets the port state of the receiving end of the first switching equipment to be a linkup state.
A port state synchronizer applied to a first switching device, wherein the first switching device is connected with a second switching device through two optical fibers, wherein an output end of a LOS signal which is used for informing signal LOSs in a first optical module of the first switching device is connected with a Complex Programmable Logic Device (CPLD) pin of the first switching device, and the port state synchronizer comprises:
an LOS signal obtaining module, configured to obtain, by a central processing unit CPU of the first switch device, an LOS signal on the CPLD pin;
a fault information generating module, configured to generate fault information by the CPU of the first switching device when the LOS signal is an abnormal signal;
and the fault information sending module is used for informing the sending end of the first switching equipment of sending the fault information to the second switching equipment by the CPU of the first switching equipment so as to enable the second switching equipment to set the port state of the sending end of the second switching equipment to be a linkdown state.
In a specific embodiment of the present invention, the fault information sending module is specifically configured to:
and the CPU of the first switching equipment configures the fault information to a fault register, informs a sending end of the first switching equipment to read the fault information in the fault register and sends the fault information to the second switching equipment.
In one embodiment of the present invention, the apparatus further comprises:
and the fault information clearing module is used for clearing the fault information in the fault register by the CPU of the first switching equipment when the LOS signal is recovered from an abnormal signal to a normal signal.
In an embodiment of the present invention, the LOS signal obtaining module is specifically configured to:
the CPU of the first exchange device obtains an LOS signal on the CPLD pin by polling the CPLD pin; or,
and the CPU of the first exchange device receives the LOS signal reported by the CPLD pin.
In one embodiment of the present invention, the apparatus further comprises:
and the working state setting module is used for setting the port state of the receiving end of the first switching equipment to be a link up state when the LOS signal is recovered from the abnormal signal to a normal signal.
By applying the technical scheme provided by the embodiment of the invention, the output end of the LOS signal of the first optical module of the first exchange device is connected with the CPLD pin of the first exchange device, so that the CPU of the first exchange device can obtain the LOS signal on the CPLD pin. The LOS signal may represent signal LOSs, so when the LOS signal is an abnormal signal, the port state of the receiving end of the first switching device is a linkdown state, and the CPU of the first switching device may notify the transmitting end of the first switching device to transmit the fault information to the second switching device, so that the second switching device may set the port state of the transmitting end thereof to the linkdown state, thereby implementing synchronization of the port states of the first switching device and the second switching device.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a switching device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an implementation of a port state synchronization method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another implementation of a port state synchronization method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a port state synchronization apparatus according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The port state synchronization method provided by the embodiment of the invention is applied to the first switching equipment.
In the industrial ethernet, the optical module inserted into the first switch device is the first optical module, and the optical module inserted into the second switch device is the second optical module. LOSs of signal (LOS) signals in optical modules may characterize LOSs of signal. In the embodiment of the present invention, when a PCB (printed circuit board) is wired, an output terminal of an LOS signal in an optical module of a switch device may be connected to a pin of a CPLD (complex programmable logic device) of the switch device. That is, the output end of the LOS signal of the first optical module of the first switch device is connected to the CPLD pin of the first switch device, and similarly, the output end of the LOS signal of the second optical module of the second switch device is connected to the CPLD pin of the second switch device.
The first switching equipment and the second switching equipment are connected through two optical fibers.
As shown in fig. 1, the switching device a and the switching device B are connected by two optical fibers, a receiving end of the switching device a corresponds to a transmitting end of the switching device B, and a transmitting end of the switching device a corresponds to a receiving end of the switching device B. In this embodiment of the present invention, when the optical fiber at the transmitting end of the switch apparatus a is pulled out, or when the optical fiber at the receiving end of the switch apparatus B is pulled out, the port state at the receiving end of the switch apparatus B may be a linkdown state, where the switch apparatus B is the first switch apparatus in this embodiment of the present invention, and the switch apparatus a is the second switch apparatus in this embodiment of the present invention. By executing the technical solution provided by the embodiment of the present invention, the switching device B serving as the first switching device may enable the switching device a to set the port state of the transmitting end thereof to the linkdown state. Similarly, when the optical fiber at the receiving end of the switch apparatus a is pulled out, or when the optical fiber at the transmitting end of the switch apparatus B is pulled out, the port state at the receiving end of the switch apparatus a may be a linkdown state, where the switch apparatus a is the first switch apparatus in the embodiment of the present invention, and the switch apparatus B is the second switch apparatus in the embodiment of the present invention. By executing the technical solution provided by the embodiment of the present invention, the switching device a serving as the first switching device may enable the switching device B to set the port state of the transmitting end thereof to the linkdown state.
Referring to fig. 2, an implementation flowchart of a port state synchronization method provided in an embodiment of the present invention is shown, where the method may include the following steps:
s210: and the Central Processing Unit (CPU) of the first switching device acquires an LOS signal on the CPLD pin.
In the embodiment of the present invention, the output terminal of the LOS signal of the first optical module is connected to the CPLD pin of the first switch device. During the operation of the first switch device, a Central Processing Unit (CPU) of the first switch device may obtain an LOS signal on a CPLD pin of the first switch device.
In a specific embodiment of the present invention, the CPU of the first switch device may obtain the LOS signal on the CPLD pin by polling the CPLD pin. Specifically, the CPU of the first switch device may query the register of the CPLD of the first switch device according to a set polling mechanism, and obtain the LOS signal on the pin of the CPLD.
In another specific embodiment of the present invention, the CPU of the first switch device receives an LOS signal reported by the CPLD pin. Specifically, the CPLD pin of the first switch device may report the LOS signal to the CPU of the first switch device according to a set period or when the LOS signal changes, and the CPU of the first switch device may obtain the LOS signal reported by the CPLD pin.
S220: when the LOS signal is an abnormal signal, the CPU of the first switching equipment generates fault information;
s230: and informing the sending end of the first switching equipment to send the fault information to the second switching equipment so that the second switching equipment sets the port state of the sending end to be a linkdown state.
For convenience of description, the above two steps are combined for illustration.
As previously mentioned, the LOS signal is used to characterize signal LOSs. When the optical fiber connecting the receiving end of the first switching device and the transmitting end of the second switching device is pulled out, the LOS signal on the CPLD pin of the first switching device will be abnormal, such as signal jump, while the LOS signal on the CPLD pin of the second switching device will not be abnormal. When the optical fiber is inserted again, the LOS signal on the CPLD pin of the first switching device is recovered to be normal, namely, the abnormal signal is recovered to be a normal signal.
In step S210, after the CPU of the first switch device obtains the LOS signal on the CPLD pin of the first switch device, it may determine whether to perform further processing according to the state of the LOS signal. If the LOS signal obtained by the CPU of the first switching device is a normal signal, it indicates that the current optical fiber connection is normal, and no processing may be performed on the current optical fiber connection, but if the LOS signal obtained by the CPU of the first switching device is an abnormal signal, it indicates that the optical fiber connection at the receiving end side of the first switching device has a problem, and it may be that the optical fiber at the receiving end of the first switching device is pulled out, or the optical fiber at the transmitting end of the second switching device is pulled out.
When the optical fiber connection on the receiving end side of the first switching device is in a problem, the port state of the receiving end of the first switching device is in a linkdown state, and the first switching device can send a linkdown alarm. In order to synchronize the port state of the second switching device with the port state of the first switching device, when the LOS signal obtained by the CPU of the first switching device is an abnormal signal, the CPU of the first switching device may generate fault information according to the abnormal signal, and notify the sending end of the first switching device to send the fault information to the second switching device.
Because the optical fiber connection between the sending end of the first switching device and the receiving end of the second switching device is normal, the sending end of the first switching device can send the fault information to the second switching device through the optical fiber channel. Specifically, the first switching device may carry the fault information in a fault message, and send the fault message to the second switching device.
Specifically, the fault information may be a fault code stream, so that after receiving the fault information, the second switching device may know that the port state of the receiving end of the first switching device is a linkdown state, and the second switching device may set the port state of the transmitting end of the second switching device to the linkdown state.
The process of obtaining the LOS signal on the CPLD pin by the CPU of the first switching device may be a continuous obtaining process, and when the LOS signal is recovered from the abnormal signal to the normal signal, the first switching device may set the port state of the receiving end thereof to a link up state, so that the first switching device and the second switching device recover normal communication.
By applying the technical scheme provided by the embodiment of the invention, the output end of the LOS signal of the first optical module of the first exchange device is connected with the CPLD pin of the first exchange device, so that the CPU of the first exchange device can obtain the LOS signal on the CPLD pin. The LOS signal may represent signal LOSs, so when the LOS signal is an abnormal signal, the port state of the receiving end of the first switching device is a linkdown state, and the CPU of the first switching device may notify the transmitting end of the first switching device to transmit the fault information to the second switching device, so that the second switching device may set the port state of the transmitting end thereof to the linkdown state, thereby implementing synchronization of the port states of the first switching device and the second switching device.
Referring to fig. 3, in one embodiment of the present invention, step S230 may include the following steps:
s231: and the CPU of the first switching equipment configures the fault information to a fault register, informs a sending end of the first switching equipment to read the fault information in the fault register and sends the fault information to the second switching equipment.
In practical application, when the LOS signal obtained by the CPU of the first switching device is an abnormal signal, the CPU may configure the generated fault information to a fault Register, where the configured fault Register may be a fiber specific control Register2Page1, a Register26bit [8], that is, Page 21 of the fiber dedicated control Register.
After the CPU of the first switching device configures the fault information to the fault register, the CPU may notify the sending end of the first switching device to read the fault information in the fault register, and send the fault information to the second switching device.
Accordingly, in another embodiment of the present invention, as shown in fig. 3, the method may further include the steps of:
s240: and when the LOS signal is recovered to be a normal signal from an abnormal signal, the CPU of the first switching equipment clears the fault information in the fault register.
It can be understood that, when the optical fiber connecting the receiving end of the first switching device and the transmitting end of the second switching device recovers the connection state, the LOS signal on the CPLD pin of the first switching device will also recover to normal, and when the CPU of the first switching device learns that the LOS signal is recovered from the abnormal signal to the normal signal, the CPU of the first switching device may clear the fault information in the fault register, which indicates that the port state of the receiving end of the CPU has recovered to normal.
For convenience of understanding, fig. 1 is taken as an example to describe a port state synchronization method provided by an embodiment of the present invention.
In the switch a and the switch B shown in fig. 1, when the PCB is wired, the output terminal of the LOS signal of the optical module of the switch a is connected to the CPLD pin of the switch a, and the output terminal of the LOS signal of the optical module of the switch B is connected to the CPLD pin of the switch B.
The CPU of the switching device A polls the CPLD pin of the switching device A to obtain an LOS signal on the CPLD pin, and the CPU of the switching device B polls the CPLD pin of the switching device B to obtain an LOS signal on the CPLD pin.
When the optical fiber at the transmitting end of the switching device a is pulled out, the port state at the receiving end of the switching device B is a linkdown state, the switching device B can send a linkdown alarm, and the port state at the transmitting end of the switching device a is still a linkup state. In this case, the LOS signal on the CPLD pin of the switch B is abnormal, so the CPU of the switch B can know that the LOS signal it obtains is an abnormal signal. At this time, the CPU of the switching device B may generate the fault information, configure the fault information to the fault register, notify the sending end of the switching device B to read the fault information in the fault register, and send the fault information to the switching device a, and after the switching device a receives the fault information, the port state of the receiving end of the switching device B may be known to be the linkdown state, so that the port state of the sending end of the switching device B may be set to be the linkdown state, and the port states of the switching device a and the switching device B may be synchronized.
When the optical fiber at the sending end of the switch device A is inserted, the LOS signal on the CPLD pin of the switch device B is recovered to be normal, the CPU of the switch device B can clear the fault information in the fault register, and the switch device B can set the port state of the receiving end to be a linkup state and recover normal communication with the switch device A.
When the receiving end fiber of the switching device B is pulled out, the process is the same as the above process, and will not be described again.
When the optical fiber at the receiving end of the switching device a is pulled out, or when the optical fiber at the transmitting end of the switching device B is pulled out, the port state at the receiving end of the switching device a is a linkdown state, the switching device a can send a linkdown alarm, and the port state at the transmitting end of the switching device B is still a linkup state. In this case, the LOS signal on the CPLD pin of the switching device a is abnormal, and the CPU of the switching device a may notify the switching device B that the port state of the receiving end is in the linkdown state by using the above method, so that the switching device B may set the port state of the transmitting end itself to the linkdown state, thereby implementing the synchronization of the port states of the switching device a and the switching device B.
When the pulled optical fiber is inserted, the LOS signal on the CPLD pin of the switch device a is restored to normal, the CPU of the switch device a can clear the fault information in the fault register, and the switch device a can set the port state of the receiving end to the link up state to restore normal communication with the switch device B.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a port state synchronization apparatus, which may be applied to a first switch device, where the first switch device is connected to a second switch device through two optical fibers, and an output end of an LOS signal indicating signal LOSs in a first optical module of the first switch device is connected to a CPLD pin of a complex editable logic device of the first switch device.
Referring to fig. 4, the apparatus may include the following modules:
an LOS signal obtaining module 410, configured to obtain, by a central processing unit CPU of the first switch device, an LOS signal on a pin of the CPLD;
a fault information generating module 420, configured to, when the LOS signal is an abnormal signal, generate fault information by a CPU of the first switching device;
a failure information sending module 430, configured to notify the sending end of the first switching device to send the failure information to the second switching device by the CPU of the first switching device, so that the second switching device sets the port state of the sending end to a linkdown state.
By applying the device provided by the embodiment of the invention, the output end of the LOS signal of the first optical module of the first switching equipment is connected with the CPLD pin of the first switching equipment, so that the CPU of the first switching equipment can obtain the LOS signal on the CPLD pin. The LOS signal may represent signal LOSs, so when the LOS signal is an abnormal signal, the port state of the receiving end of the first switching device is a linkdown state, and the CPU of the first switching device may notify the transmitting end of the first switching device to transmit the fault information to the second switching device, so that the second switching device may set the port state of the transmitting end thereof to the linkdown state, thereby implementing synchronization of the port states of the first switching device and the second switching device.
In a specific embodiment of the present invention, the fault information sending module 430 may be specifically configured to:
and the CPU of the first switching equipment configures the fault information to a fault register, informs a sending end of the first switching equipment to read the fault information in the fault register and sends the fault information to the second switching equipment.
In one embodiment of the present invention, the apparatus may further include:
and the fault information clearing module is used for clearing the fault information in the fault register by the CPU of the first switching equipment when the LOS signal is recovered from an abnormal signal to a normal signal.
In an embodiment of the present invention, the LOS signal obtaining module 410 may be specifically configured to:
the CPU of the first exchange device obtains an LOS signal on the CPLD pin by polling the CPLD pin; or,
and the CPU of the first exchange device receives the LOS signal reported by the CPLD pin.
In one embodiment of the present invention, the apparatus may further include:
and the working state setting module is used for setting the port state of the receiving end of the first switching equipment to be a link up state when the LOS signal is recovered from the abnormal signal to a normal signal.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising", without further limitation, means that the element so defined is not excluded from the group consisting of additional identical elements in the process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Those skilled in the art will appreciate that all or part of the steps in the above method embodiments may be implemented by a program to instruct relevant hardware to perform the steps, and the program may be stored in a computer-readable storage medium, which is referred to herein as a storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. A port state synchronization method applied to a first switch device connected to a second switch device through two optical fibers, wherein an output terminal of a LOS signal indicating signal LOSs in a first optical module of the first switch device is connected to a CPLD pin of a Complex Programmable Logic Device (CPLD) of the first switch device, the method comprising:
a Central Processing Unit (CPU) of the first exchange device obtains an LOS signal on a pin of the CPLD;
when the LOS signal is an abnormal signal, the CPU of the first switching equipment generates fault information;
and informing the sending end of the first switching device to send the fault information to the second switching device, so that the second switching device sets the port state of the sending end to be a linkdown state.
2. The method of claim 1, wherein the notifying a sending end of the first switch device to send the failure information to the second switch device comprises:
and the CPU of the first switching equipment configures the fault information to a fault register, informs a sending end of the first switching equipment to read the fault information in the fault register and sends the fault information to the second switching equipment.
3. The method of claim 2, further comprising:
and when the LOS signal is recovered to be a normal signal from an abnormal signal, the CPU of the first switching equipment clears the fault information in the fault register.
4. The method of claim 1, wherein obtaining the LOS signal on the CPLD pin by the central processor CPU of the first switching device comprises:
the CPU of the first exchange device obtains an LOS signal on the CPLD pin by polling the CPLD pin; or,
and the CPU of the first exchange device receives the LOS signal reported by the CPLD pin.
5. The method according to any one of claims 1 to 4, further comprising:
and when the LOS signal is recovered to be a normal signal from an abnormal signal, the first switching equipment sets the port state of the receiving end of the first switching equipment to be a linkup state.
6. A port state synchronization apparatus applied to a first switch device, the first switch device being connected to a second switch device through two optical fibers, wherein an output terminal of a LOS signal indicating a signal LOSs in a first optical module of the first switch device is connected to a CPLD pin of a Complex Programmable Logic Device (CPLD) of the first switch device, the apparatus comprising:
an LOS signal obtaining module, configured to obtain, by a central processing unit CPU of the first switch device, an LOS signal on the CPLD pin;
a fault information generating module, configured to generate fault information by the CPU of the first switching device when the LOS signal is an abnormal signal;
and the fault information sending module is used for informing the sending end of the first switching equipment of sending the fault information to the second switching equipment by the CPU of the first switching equipment so as to enable the second switching equipment to set the port state of the sending end of the second switching equipment to be a linkdown state.
7. The apparatus according to claim 6, wherein the failure information sending module is specifically configured to:
and the CPU of the first switching equipment configures the fault information to a fault register, informs a sending end of the first switching equipment to read the fault information in the fault register and sends the fault information to the second switching equipment.
8. The apparatus of claim 7, further comprising:
and the fault information clearing module is used for clearing the fault information in the fault register by the CPU of the first switching equipment when the LOS signal is recovered from an abnormal signal to a normal signal.
9. The apparatus of claim 6, wherein the LOS signal acquisition module is specifically configured to:
the CPU of the first exchange device obtains an LOS signal on the CPLD pin by polling the CPLD pin; or,
and the CPU of the first exchange device receives the LOS signal reported by the CPLD pin.
10. The apparatus of any one of claims 6 to 9, further comprising:
and the working state setting module is used for setting the port state of the receiving end of the first switching equipment to be a link up state when the LOS signal is recovered from the abnormal signal to a normal signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511020966.2A CN105634807B (en) | 2015-12-30 | 2015-12-30 | A kind of port status synchronous method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511020966.2A CN105634807B (en) | 2015-12-30 | 2015-12-30 | A kind of port status synchronous method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105634807A true CN105634807A (en) | 2016-06-01 |
CN105634807B CN105634807B (en) | 2019-01-08 |
Family
ID=56049345
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511020966.2A Active CN105634807B (en) | 2015-12-30 | 2015-12-30 | A kind of port status synchronous method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105634807B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506074A (en) * | 2016-10-12 | 2017-03-15 | 杭州迪普科技股份有限公司 | A kind of method and apparatus of detection optical port state |
CN111953412A (en) * | 2020-08-07 | 2020-11-17 | 苏州浪潮智能科技有限公司 | Method and device for realizing optical information synchronization of optical module switch |
US11051654B2 (en) | 2019-02-25 | 2021-07-06 | Sharkninja Operating Llc | Cooking device and components thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7251256B1 (en) * | 2000-05-18 | 2007-07-31 | Luminous Networks, Inc. | Synchronization of asynchronous networks using media access control (MAC) layer synchronization symbols |
CN102064885A (en) * | 2010-12-17 | 2011-05-18 | 武汉烽火网络有限责任公司 | Method and device for rapid protection switching of passive optical network (PON) ports in any slot position in 10 Gbit/s Ethernet PON (10G-EPON) system |
CN103501239A (en) * | 2013-09-13 | 2014-01-08 | 华为技术有限公司 | Port state synchronization method and system and port state synchronization associated devices |
-
2015
- 2015-12-30 CN CN201511020966.2A patent/CN105634807B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7251256B1 (en) * | 2000-05-18 | 2007-07-31 | Luminous Networks, Inc. | Synchronization of asynchronous networks using media access control (MAC) layer synchronization symbols |
CN102064885A (en) * | 2010-12-17 | 2011-05-18 | 武汉烽火网络有限责任公司 | Method and device for rapid protection switching of passive optical network (PON) ports in any slot position in 10 Gbit/s Ethernet PON (10G-EPON) system |
CN103501239A (en) * | 2013-09-13 | 2014-01-08 | 华为技术有限公司 | Port state synchronization method and system and port state synchronization associated devices |
Non-Patent Citations (1)
Title |
---|
沈宜: "《PON系统中的链路保护倒换》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506074A (en) * | 2016-10-12 | 2017-03-15 | 杭州迪普科技股份有限公司 | A kind of method and apparatus of detection optical port state |
CN106506074B (en) * | 2016-10-12 | 2019-02-19 | 杭州迪普科技股份有限公司 | A kind of method and apparatus detecting optical port state |
US11051654B2 (en) | 2019-02-25 | 2021-07-06 | Sharkninja Operating Llc | Cooking device and components thereof |
CN111953412A (en) * | 2020-08-07 | 2020-11-17 | 苏州浪潮智能科技有限公司 | Method and device for realizing optical information synchronization of optical module switch |
CN111953412B (en) * | 2020-08-07 | 2022-03-08 | 苏州浪潮智能科技有限公司 | Method and device for realizing optical information synchronization of optical module switch |
Also Published As
Publication number | Publication date |
---|---|
CN105634807B (en) | 2019-01-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101610145B (en) | Method and system for realizing synchronous control of distributed system | |
CN103312428B (en) | For the method and apparatus of precision clock protocol synchronization network | |
CN105634807B (en) | A kind of port status synchronous method and device | |
US9331922B2 (en) | Automatic recover after loss of signal event in a network device | |
CN101262401A (en) | A method for realizing network recovery in loop network | |
EP2297885B1 (en) | Method for synchronizing local clocks in a distributed computer network | |
CN105577348B (en) | Frequency deviation monitoring method and device based on time synchronization network | |
CN104104434A (en) | Power failure alarm implementation method capable of rapidly inserting alarm frame | |
CN105530115A (en) | Method and device for realizing operation management and maintenance function | |
CN105790965A (en) | Method and device for link switching and line card | |
EP3220557B1 (en) | Burr removing method and apparatus for optical signal loss signal | |
CN105553762A (en) | Communication method and communication system between domestic appliance and mobile terminal and corresponding devices | |
CN101854263B (en) | Method, system and management server for analysis processing of network topology | |
CN102118266A (en) | Industrial Ethernet dual-link redundancy technology | |
CN101494801A (en) | Method, system and network appliance for fault recovery | |
CN105553766A (en) | Monitoring method of abnormal node dynamic tracking cluster node state | |
CN105634774A (en) | Method, service line card and system for recovering link communication | |
CN117527653A (en) | Cluster heartbeat management method, system, equipment and medium | |
KR20120121352A (en) | The shelf of network synchronization apparatus, network synchronization apparatus | |
CN105790872B (en) | A kind of network clock synchronous device and its working method | |
CN104518928A (en) | Method and system for transmission of remote image messages through RPR (resilient packet ring) network | |
CN104348676A (en) | Link detection method and device based on operation administration and maintenance | |
KR101764652B1 (en) | Remote contact monitoring apparatus and method thereof | |
CN113346974A (en) | Method, apparatus, communication system and storage medium for clock synchronization | |
CN107820308B (en) | Data communication method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20160601 Assignee: Hubei Dongtu Taiyi Wisdom Technology Co., Ltd. Assignor: Beijing Dongtu Technology Co., Ltd. Contract record no.: 2019990000255 Denomination of invention: Method and apparatus for port state synchronization Granted publication date: 20190108 License type: Common License Record date: 20190729 |