Method and device for controlling communication device and related equipment

By controlling the optical switch unit by using the reference attribute changes of optical signals in the optical communication system, the problem of optical fiber link control in the new campus network is solved, and flexible management and business stability of the ring optical path are achieved.

CN118694470APending Publication Date: 2024-09-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310353897.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The traditional three-layer campus network structure is complex, which leads to the need to omit the aggregation switch in the middle layer in the new campus network to simplify the network structure, and it is difficult to control the optical fiber link to ensure the normal operation of services.

Method used

By using multiple optical switch units and control units in the optical communication system, the reference attribute change rules of the optical signal are used to control the access or exit of the communication device from the ring optical path to ensure the normal operation of the business.

Benefits of technology

It realizes timely access or exit from the ring light path without demodulating and modulating the ring light path, avoiding affecting normal business operations and simplifying the network structure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694470A
    Figure CN118694470A
Patent Text Reader

Abstract

The embodiment of the invention discloses a method and device for controlling a communication device and related equipment, and belongs to the technical field of optical communication. According to the embodiment of the invention, in the embodiment of the invention, the condition of the second communication device is notified to the control unit in a mode that the first communication device adjusts the reference attribute of the optical signal; therefore, the control unit can timely access or exit the second communication device to or from the annular light path under the condition that the optical signal in the annular light path is not demodulated and modulated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of optical communication technology, and in particular, to a method and device for controlling a communication device, and related equipment. Background Art

[0002] The traditional three-layer campus network includes access switches, aggregation switches, and core switches. The structure of this campus network is relatively complex. Based on this, more and more new campus networks hope to omit the aggregation switches in the middle layer to simplify the network structure. In new campus networks, it is usually necessary to control certain communication devices in the optical fiber link to ensure the normal operation of the network services. Summary of the invention

[0003] The embodiment of the present application provides a method, device and related equipment for controlling a communication device, which can ensure the normal operation of services in the network. The technical solution is as follows:

[0004] In a first aspect, a method for controlling a communication device is provided, the method being applied to an optical communication system, the optical communication system comprising a plurality of communication devices, a plurality of optical switch units and a control unit, the plurality of communication devices being connected to the plurality of optical switch units via an optical path to form a ring optical path, each of the plurality of optical switch units being used to control a communication device to enter or exit the ring optical path.

[0005] In the method, a control unit detects an optical signal sent by a first communication device among multiple communication devices; based on the variation pattern of the optical signal in a reference property, the control unit switches the connection state of a second optical switch unit connected to a second communication device, so that the second communication device enters or exits a ring optical path.

[0006] In an embodiment of the present application, the first communication device adjusts the reference properties of the optical signal to notify the control unit of the situation of the second communication device, so that the control unit can promptly connect or exit the second communication device to the ring optical path without demodulating and modulating the optical signal in the ring optical path, so as to ensure the normal operation of the business in the ring optical path.

[0007] Optionally, the optical communication system further includes a signal detection unit. In this scenario, the control unit may detect the optical signal sent by the first communication device among the multiple communication devices in the following manner: the control unit detects the optical signal sent by the first communication device based on the signal detection unit.

[0008] By providing a signal detection unit, changes in the optical signal emitted by the first communication device can be notified to the control unit.

[0009] Optionally, the control unit switches the connection state of the second optical switch unit connected to the second communication device based on the variation pattern of the optical signal in the reference property. This can be achieved by: if the variation pattern of the optical signal in the reference property satisfies a first rule, fault information is determined based on the variation pattern of the optical signal in the reference property, and the fault information indicates that the second communication device has detected a fault; and the control unit controls the second optical switch unit to switch from the access state to the bypass state, so that the second communication device exits the ring optical path.

[0010] Through the method provided in the embodiment of the present application, the first communication device can notify the control unit of relevant information of the second communication device that detects a fault, so that the control unit can promptly withdraw the second communication device from the ring optical path, thereby avoiding affecting the normal operation of the business in the ring optical path.

[0011] Optionally, after determining the fault information based on the changing pattern of the optical signal in the reference property, the control unit can also control the third optical switch unit connected to the third communication device to switch from the access state to the bypass state, so that the third communication device exits the ring optical path; wherein the third communication device is the previous hop communication device of the second communication device in the ring optical path.

[0012] When the second communication device detects a fault, the cause of the fault may be caused by the third communication device that is the previous hop of the second communication device. Therefore, through the method provided in the embodiment of the present application, the control unit can also promptly withdraw the third communication device from the ring optical path, thereby avoiding affecting the normal operation of the business in the ring optical path.

[0013] Optionally, the multiple communication devices include at least one master communication device and multiple slave communication devices, each of the multiple optical switch units is connected to a slave communication device, and a master communication device in at least one master communication device and the multiple slave communication devices connected to the multiple optical switch units form a ring optical path; the first communication device is one of the at least one master communication device, and the second communication device is one of the multiple slave communication devices.

[0014] In an embodiment of the present application, the slave communication device may transmit fault information to the master communication device via in-band OAM, so that the master communication device adjusts the reference property of its own optical signal, thereby notifying the control unit that a fault is detected at the slave communication device.

[0015] Optionally, the multiple communication devices include at least one master communication device and multiple slave communication devices, each of the multiple optical switch units is connected to a slave communication device, a master communication device in at least one master communication device and the multiple slave communication devices connected to the multiple optical switch units form a ring optical path; the first communication device and the second communication device are the same communication device among the multiple slave communication devices.

[0016] In the embodiment of the present application, each slave communication device can directly adjust the reference attribute of the optical signal emitted by itself based on its own state, so as to promptly notify the control unit of its own state.

[0017] Optionally, the first communication device and the second communication device are the same communication device, and the second optical switch unit is the first optical switch unit connected to the first communication device. In this scenario, the control unit switches the connection state of the second optical switch unit connected to the second communication device based on the variation rule of the optical signal in the reference attribute in an implementation manner that: if the variation rule of the optical signal in the reference attribute does not satisfy the second rule and the second optical switch unit connected to the second communication device is in an access state, the second optical switch unit is controlled to switch from the access state to the bypass state, so that the second communication device exits the ring optical path.

[0018] When the first communication device adjusts the reference property of the optical signal emitted by itself based on its own state, the first communication device may choose to adjust the reference property of the optical signal emitted by itself when the function of the first communication device is normal.

[0019] Optionally, the control unit may switch the connection state of the second optical switch unit connected to the second communication device based on the variation pattern of the optical signal in the reference property in an implementation manner as follows: if the variation pattern of the optical signal in the reference property satisfies a third law and the second optical switch unit is in a bypass state, the second optical switch unit is controlled to switch from the bypass state to the access state so that the second communication device is connected to the ring optical path.

[0020] When the first communication device adjusts the reference property of the optical signal transmitted by itself based on its own state, the first communication device may also choose to adjust the reference property of the optical signal transmitted by itself when the first communication device detects a fault.

[0021] Optionally, the reference attribute is power; the control unit switches the connection state of the second optical switch unit connected to the second communication device based on the change rule of the optical signal in the reference attribute in an implementation manner as follows: if the optical signal includes at least one first-class optical signal and at least one second-class optical signal, and the duration of the first-class optical signal is a first reference duration, the duration of the second-class optical signal is a second reference duration, the power of the first-class optical signal satisfies a first power condition, and the power of the second-class optical signal satisfies a second power condition, then based on the sorting of at least one first-class optical signal and at least one second-class optical signal in the optical signal, a target bit sequence is determined, and the sorting of at least one first bit value and at least one second bit value in the target bit sequence is consistent with the sorting of at least one first-class optical signal and at least one second-class optical signal in the optical signal; based on the target bit sequence, the connection state of the second optical switch unit is switched.

[0022] In the above manner, the power of the optical signal transmitted by the first communication device can be adjusted to change according to a rule similar to that in the target bit sequence, so as to indicate the state of the second communication device through the optical signal power change rule.

[0023] In a second aspect, a method for controlling a communication device is provided, and the method is applied to an optical communication system, wherein the optical communication system includes multiple communication devices, multiple optical switch units and a control unit, the multiple communication devices are connected to the multiple optical switch units through an optical path to form a ring optical path, and each of the multiple optical switch units is used to control a communication device to enter or exit the ring optical path.

[0024] In this method, a first communication device among multiple communication devices determines the state of a second communication device; based on the state of the second communication device, the first communication device adjusts the reference properties of the optical signal emitted by itself to obtain a target optical signal, and the change pattern of the target optical signal in the reference property indicates the state of the second communication device.

[0025] In an embodiment of the present application, the first communication device adjusts the reference properties of the optical signal to notify the control unit of the situation of the second communication device, so that the control unit can promptly connect or exit the second communication device to the ring optical path without demodulating and modulating the optical signal in the ring optical path, so as to ensure the normal operation of the business in the ring optical path.

[0026] Optionally, the first communication device and the second communication device are different communication devices; the first communication device determines the state of the second communication device in an implementation manner as follows: the first communication device receives an optical signal in a ring optical path; the first communication device demodulates the optical signal to obtain fault information, and the fault information indicates that the second communication device has detected a fault.

[0027] In an embodiment of the present application, a communication device may transmit fault information to another communication device via in-band OAM, so that the other communication device adjusts the reference properties of its own optical signal, thereby notifying the control unit that a fault is detected in the slave communication device.

[0028] Optionally, the multiple communication devices include at least one master communication device and multiple slave communication devices, each of the multiple optical switch units is connected to a slave communication device, a master communication device in at least one master communication device and the multiple slave communication devices connected to the multiple optical switch units form a ring optical path, the first communication device is one of the at least one master communication device, and the second communication device is one of the multiple slave communication devices.

[0029] In an embodiment of the present application, the slave communication device may transmit fault information to the master communication device via in-band OAM, so that the master communication device adjusts the reference property of its own optical signal, thereby notifying the control unit that a fault is detected at the slave communication device.

[0030] Optionally, the first communication device and the second communication device are the same communication device; the first communication device determines the state of the second communication device by: the first communication device detects whether its own function is normal. Accordingly, the first communication device adjusts the reference property of the optical signal emitted by itself based on the state of the second communication device by: when the first communication device detects a fault, the reference property of the optical signal emitted by itself is adjusted.

[0031] In the embodiment of the present application, each communication device can directly adjust the reference property of the optical signal emitted by itself based on its own state to promptly notify the control unit of its own state. For example, each communication device can also choose to adjust the reference property of the optical signal emitted by itself when it detects a fault, so as to notify the control unit that it is currently in a fault state.

[0032] Optionally, the first communication device adjusts the reference property of the optical signal emitted by itself based on the state of the second communication device by adjusting the reference property of the optical signal emitted by itself when the first communication device determines that its function is normal.

[0033] The first communication device may also choose to adjust the reference property of the optical signal emitted by itself when the function of the first communication device is normal, so as to inform the control unit that it is currently in a normal state.

[0034] Optionally, the first communication device adjusts the reference property of the optical signal emitted by itself based on the state of the second communication device to obtain the target optical signal. The implementation method may be: the first communication device determines the target bit sequence based on the state of the second communication device, and the target bit sequence indicates the state of the second communication device; the first communication device adjusts the reference property of the optical signal emitted by itself based on the target bit sequence to obtain the target optical signal; wherein the target optical signal includes at least one first-class optical signal and at least one second-class optical signal, the duration of the first-class optical signal is a first reference duration, the duration of the second-class optical signal is a second reference duration, the power of the first-class optical signal satisfies a first power condition, the power of the second-class optical signal satisfies a second power condition, and the ordering of at least one first-class optical signal and at least one second-class optical signal in the target optical signal is consistent with the ordering of at least one first bit value and at least one second bit value in the target bit sequence.

[0035] In the above manner, the power of the optical signal transmitted by the first communication device can be adjusted to change according to a rule similar to that in the target bit sequence, so as to indicate the state of the second communication device through the optical signal power change rule.

[0036] According to a third aspect, a method for controlling a communication device is provided. The method is applied to an optical communication system. The optical communication system includes multiple communication devices, multiple optical switch units and a control unit. The multiple communication devices are connected to the multiple optical switch units through an optical path to form a ring optical path. Each of the multiple optical switch units is used to control a communication device to enter or exit the ring optical path.

[0037] In the method, a second communication device among the plurality of communication devices sends fault information via an optical signal transmitted via a ring optical path, wherein the fault information indicates that the second communication device has detected a fault.

[0038] In an embodiment of the present application, a communication device may transmit fault information to another communication device via in-band OAM, so that the other communication device adjusts the reference properties of its own optical signal, thereby notifying the control unit that a fault is detected in the slave communication device.

[0039] Optionally, the multiple communication devices include at least one master communication device and multiple slave communication devices, each of the multiple optical switch units is connected to a slave communication device, a master communication device in at least one master communication device and the multiple slave communication devices connected to the multiple optical switch units form a ring optical path, and the second communication device is one of the multiple slave communication devices.

[0040] In an embodiment of the present application, the slave communication device may transmit fault information to the master communication device via in-band OAM, so that the master communication device adjusts the reference property of its own optical signal, thereby notifying the control unit that a fault is detected at the slave communication device.

[0041] In a fourth aspect, a device for controlling a communication device is provided, the device having the function of implementing the method for controlling a communication device in the first aspect. The device includes at least one module, the at least one module being used to implement the method for controlling a communication device provided in the first aspect.

[0042] In a fifth aspect, a device for controlling a communication device is provided, the device having the function of implementing the method for controlling a communication device in the second aspect. The device includes at least one module, the at least one module being used to implement the method for controlling a communication device provided in the second aspect.

[0043] In a sixth aspect, a device for controlling a communication device is provided, the device having the function of implementing the method for controlling a communication device in the third aspect. The device includes at least one module, the at least one module being used to implement the method for controlling a communication device provided in the third aspect.

[0044] In a seventh aspect, a control unit is provided, wherein the structure of the control unit includes a processor and a memory, wherein the memory is used to store a program that supports the control unit to execute the method for controlling a communication device provided in the first aspect, and to store data involved in implementing the method for controlling a communication device provided in the first aspect. The processor is configured to execute the program stored in the memory.

[0045] In an eighth aspect, a communication device is provided, wherein the structure of the communication device includes a processor and a memory, wherein the memory is used to store a program that supports the communication device to execute the method for controlling the communication device provided in the second aspect, and to store data involved in implementing the method for controlling the communication device provided in the second aspect. The processor is configured to execute the program stored in the memory.

[0046] In a ninth aspect, a communication device is provided, wherein the structure of the communication device includes a processor and a memory, wherein the memory is used to store a program that supports the communication device to execute the method for controlling the communication device provided in the second aspect, and to store data involved in implementing the method for controlling the communication device provided in the second aspect. The processor is configured to execute the program stored in the memory.

[0047] In the tenth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on a computer, the computer executes the method for controlling a communication device described in the first aspect, or executes the method for controlling a communication device described in the second aspect, or executes the method for controlling a communication device described in the third aspect.

[0048] In the eleventh aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method for controlling a communication device described in the first aspect, or the method for controlling a communication device described in the second aspect, or the method for controlling a communication device described in the third aspect.

[0049] The technical effects obtained in the above-mentioned fourth to eleventh aspects are similar to the technical effects obtained by the corresponding technical means in the first to third aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1It is a schematic diagram of the architecture of a traditional campus network provided in an embodiment of the present application;

[0051] Figure 2 It is a schematic diagram of the architecture of a campus network based on a passive optical access local area network provided in an embodiment of the present application;

[0052] Figure 3 It is a schematic diagram of the architecture of a campus network based on coarse wavelength division multiplexing provided in an embodiment of the present application;

[0053] Figure 4 is a schematic diagram of the architecture of an optical communication system provided in an embodiment of the present application;

[0054] Figure 5 is a schematic diagram of the architecture of another optical communication system provided in an embodiment of the present application;

[0055] Figure 6 is a schematic diagram of the architecture of another optical communication system provided in an embodiment of the present application;

[0056] Figure 7 It is a schematic diagram of the architecture of a dual-homing optical communication network provided in an embodiment of the present application;

[0057] Figure 8 It is a schematic diagram of the architecture of a single-homed optical communication network provided in an embodiment of the present application;

[0058] Fig. 9 is a flow chart of a method for controlling a communication device provided in an embodiment of the present application;

[0059] Fig.10 It is a schematic diagram of the internal structure of a communication device and an optical module provided in an embodiment of the present application;

[0060] Fig.11 This is a schematic diagram of the format of an O code block provided in an embodiment of the present application;

[0061] Fig.12 is a waveform diagram of a target optical signal provided in an embodiment of the present application;

[0062] Fig.13 is a waveform diagram of another target optical signal provided in an embodiment of the present application;

[0063] Fig.14 is a flow chart of another method for controlling a communication device provided in an embodiment of the present application;

[0064] Fig.15 is a flow chart of another method for controlling a communication device provided in an embodiment of the present application;

[0065] Fig.16is a flow chart of another method for controlling a communication device provided in an embodiment of the present application;

[0066] Fig.17 is a flow chart of another method for controlling a communication device provided in an embodiment of the present application;

[0067] Fig.18 is a flow chart of another method for controlling a communication device provided in an embodiment of the present application;

[0068] Fig.19 is a flow chart of another method for controlling a communication device provided in an embodiment of the present application;

[0069] Fig. 20 is a structural diagram of a control communication device provided in an embodiment of the present application;

[0070] Fig.21 is a structural diagram of another control communication device provided in an embodiment of the present application;

[0071] Fig. 22 is a structural diagram of another control communication device provided in an embodiment of the present application;

[0072] Fig.23 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0073] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0074] It should be understood that the "multiple" mentioned herein refers to two or more. In the description of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not limit them to be necessarily different.

[0075] Before explaining the embodiments of the present application in detail, the application scenarios of the embodiments of the present application are first introduced.

[0076] The method provided in the embodiment of the present application is applied to a campus network by way of example, but is not limited to being applied to a campus network. To facilitate subsequent understanding, several common campus network architectures are explained below.

[0077] Figure 1 Schematic diagram of a traditional campus network architecture provided by an embodiment of the present application. Figure 1 As shown in the figure, the traditional campus network is usually a tree-type network, and the tree-type network is exemplified as a three-layer network, so the campus network can also be called a three-layer campus network. The three layers are the access layer, the aggregation layer, and the core layer. The switch located in the access layer is called the access switch (or access point (AP) switch), the switch located in the aggregation layer is called the aggregation switch, and the switch located in the core layer is called the core switch (or core point (CP) switch). Each layer completes the aggregation of the next layer of data to the previous layer through the switch.

[0078] like Figure 1 As shown in the figure, an access switch can be connected to multiple network devices (or end users), such as personal computers (PCs), printers, or monitoring devices. An aggregation switch can be connected to multiple access switches. A core switch can be connected to multiple aggregation switches.

[0079] The access layer can be connected to network devices through network cables or optical fibers. The access layer and the aggregation layer, as well as the aggregation layer and the core layer, are interconnected through optical fibers. The connection between each layer is point-to-point (P2P). Figure 1 In the campus network shown, neither optical fibers nor network cables are converged, and data convergence and exchange are achieved only at the switch.

[0080] In addition, if Figure 1 As shown in the figure, in order to improve the reliability of the entire network, the core switch can be protected by dual-home mode, that is, a main core switch and a backup core switch are used, and when the main core switch fails, it is switched to the backup core switch. Figure 1 As shown, the aggregation switch can also be protected in a dual-home manner, which will not be described in detail here.

[0081] Figure 1 The structure of the campus network shown is complex, and a large number of optical modules are required. In addition, a large number of devices are involved when launching new services in the campus network, resulting in high costs for opening new services. In addition, due to the complex structure of the campus network, it is difficult to locate the fault point when a problem occurs in the campus network.

[0082] Figure 2The present invention provides an architecture diagram of a campus network based on a passive optical LAN (POL) provided in an embodiment of the present invention. POL is a technology that applies access network passive optical network (PON) technology to a campus network. It is a passive optical network with a point-to-multipoint (P2MP) structure.

[0083] like Figure 2 As shown in the figure, the campus network based on POL includes a core switch, an optical line terminal (OLT), an optical module on the OLT side, a passive optical splitter, an optical fiber, an optical network unit (ONU / ONT), and an optical module on the ONU side. Among them, the optical line terminal (OLT), the optical module on the OLT side, the passive optical splitter, the optical fiber, the optical network unit (ONU / ONT), and the optical module on the ONU side constitute the POL.

[0084] PON, in a broad sense, refers to passive devices between OLT and ONU, including various PON technologies; in a narrow sense, it refers specifically to time division multiplexing (TDM) PON. Currently, only TDM PON is commercially available on a large scale, so "PON" without a prefix usually refers specifically to TDM PON. In TDM PON, the wavelengths of the upstream and downstream optical signals are different, and wavelength division multiplexing (WDM) technology is used to achieve single-fiber bidirectional transmission.

[0085] Figure 2 The left side is the transmission direction of the downstream optical signal. The downstream adopts the broadcast mode, and each ONU receives the same optical signal. After each ONU recovers the data through optoelectronic conversion, it only extracts its own information (message). Figure 2 The right side is the transmission direction of the uplink optical signal. The uplink uses TDMA (Time Division Multiple Access) to multiplex time slots. All ONUs are uniformly scheduled by the OLT and emit light in the time slots specified by the OLT, so that different network devices can send data uplink in different time slots. Figure 2 As shown, network device 1 sends data uplink in time slot 1, network device 2 sends data uplink in time slot 2, and network device 3 sends data uplink in time slot 3.

[0086] contrast Figure 1 The campus network shown in Figure 2 In the campus network shown in the figure, POL is used to replace the access and aggregation layers, and the OLT and core switch are placed together. Passive optical splitters and optical fibers are used in the middle to complete the P2MP connection. The PON protocol is transmitted between the OLT and the ONU. Both the OLT upstream and the ONU downstream need to terminate the PON protocol to transmit the Ethernet protocol. Since the passive optical splitter does not need to process services, Figure 2 Compared with the traditional three-layer campus network, the campus network shown can save the weak-current room required for the aggregation switch.

[0087] but, Figure 2 The campus network shown uses a 1:N passive optical splitter, where N is the number of ONUs connected to the passive optical splitter. This will result in a large power attenuation of the optical signal from the OLT to the ONU. Table 1 is a typical power loss value of the optical signal in a POL.

[0088] Table 1

[0089]

[0090]

[0091] As shown in Table 1, as the splitting ratio of the passive optical splitter increases, the power loss of the optical signal from the OLT to the ONU also gradually increases. This requires the optical module between the OLT and the ONU to support a larger power budget. At present, the optical modules on the OLT and the ONU generally use high-cost and high-sensitivity avalanche photodiodes (APD) for photoelectric conversion at the receiving end. In addition, in some scenarios, it is also necessary to increase the output power of the laser at the transmitting end of the optical module on the OLT and the ONU, which will increase the cost and power consumption of the laser accordingly.

[0092] and, Figure 2 The uplink of the campus network shown uses time division multiplexing to send optical signals, which means that the OLT needs to process optical signals in time slots, so that the receiving end of the optical module on the OLT needs special burst devices, which need to be independently developed and are becoming increasingly difficult to evolve. In addition, in this scenario, the higher the optical signal transmission rate, the faster the response time required by the burst device, and the greater the difficulty of preparing the corresponding burst device.

[0093] also, Figure 2 In the campus network shown, bandwidth utilization is low because time slots need to be reserved for TDM bursts.

[0094] Figure 3This is a schematic diagram of the architecture of a campus network based on coarse wavelength division multiplexing (CWDM) provided in an embodiment of the present application. The campus network is also a P2MP architecture.

[0095] like Figure 3 As shown, the core switch uses multiple different optical modules to transmit optical signals of different wavelengths. For example, the core switch can transmit optical signals with a wavelength of 1331nm (nanometers), an optical signal with a wavelength of 1351nm, and an optical signal with a wavelength of 1371nm through different optical modules. After the optical signals of different wavelengths pass through the optical wavelength division multiplexer (multiplexer, MUX), the optical signals of multiple wavelengths are multiplexed on one optical fiber for transmission. At similar aggregation switches, a wavelength division multiplexer (demultiplexer, DEMUX) is used to demultiplex the optical signals of multiple wavelengths and send them to different access switches. The access switch also uses wavelength division multiplexing to the core switch upstream. Using different wavelengths for upstream and downstream can also achieve single-fiber bidirectional transmission. Since the MUX / DEMUX does not need to process services, Figure 3 Compared with the traditional three-layer campus network, the campus network shown can also save the weak-current room required for the aggregation switch.

[0096] Figure 3 The campus network shown only converges the optical fibers in the middle link, which means that multiple optical fibers are combined into one optical fiber. The number of optical modules at both ends of the optical fiber is not reduced, and different access switches need to stock optical modules of different wavelengths, which is costly and inconvenient to stock and manage uniformly. In addition, Figure 3 The number of core switch ports required by the campus network shown in the figure corresponds to the number of access switches. The ports are not converged, and a large number of core switch ports are occupied, resulting in high costs.

[0097] Based on this, the embodiment of the present application provides an optical communication system and a method for controlling a communication device. On the one hand, the optical communication system connects multiple communication devices to a ring optical path through multiple optical switch units, thereby avoiding Figure 2 and Figure 3 On the other hand, the problem in the campus network shown in the figure can also be solved by controlling the access or exit of each communication device in the optical communication system to the ring loop to ensure the normal operation of the services in the ring optical path.

[0098] The optical communication system, method for controlling a communication device, and related equipment provided in the embodiments of the present application are explained in detail below.

[0099] Figure 4 Schematic diagram of an optical communication system provided in an embodiment of the present application. Figure 4As shown, the optical communication system includes a plurality of communication devices, a plurality of optical switch units and a control unit.

[0100] Wherein, a plurality of communication devices and a plurality of optical switch units are connected through an optical path to form a ring optical path. For example, each of the plurality of optical switch units is connected to an optical module of a communication device. The control unit is used to control the connection state of each optical switch unit to control the communication device corresponding to the optical switch unit to enter or exit the ring optical path.

[0101] In some embodiments, the plurality of communication devices include at least one master communication device and a plurality of slave communication devices. The plurality of slave communication devices are connected to the plurality of optical switch units in a one-to-one correspondence. Figure 5 Take the optical communication system in this scenario as an example to explain in detail.

[0102] Figure 5 Schematic diagram of another optical communication system provided in an embodiment of the present application. Figure 5 As shown, the optical communication system includes at least one main communication device ( Figure 5 Taking 1 master communication device as an example), N slave communication devices, N optical switch units and a control unit (also called an optical switch control unit).

[0103] Among them, each of the N optical switch units is connected to a slave communication device, the N optical switch units are connected in series, and the input and output ends of the N optical switch units after the series connection are respectively connected to the two ends of each master communication device, so that the N optical switch units and one of the master communication devices respectively form a ring optical path, which is a unidirectional transmission ring optical path composed of optical fibers, and is therefore also called an optical fiber unidirectional ring. Assuming that at least one master communication device includes a first master communication device and a second master communication device, the input and output ends of the N optical switch units in series are respectively connected to the two ends of the first master communication device, so that the N optical switch units and the first master communication device form a ring optical path. At the same time, the input and output ends of the N optical switch units in series are respectively connected to the two ends of the second master communication device, so that the N optical switch units and the second master communication device form a ring optical path.

[0104] For example, a 50:50 optical splitter may be provided at the output end of the N optical switch units connected in series, so as to divide the optical signals output from the output end of the N optical switch units connected in series into two paths and send them to the first main communication device and the second main communication device respectively. Correspondingly, a 1:2 optical switch may be provided at the input end of the N optical switch units connected in series, so that the input end of the N optical switch units connected in series selectively receives one of the optical signals sent from the first main communication device and the second main communication device.

[0105] like Figure 5As shown, the main communication device includes at least one optical module, and the main communication device transmits through the transmitting end ( Figure 5 TX) and the receiving end ( Figure 5 Each slave communication device also includes at least one optical module, and each slave communication device sends optical signals to the ring optical path and receives optical signals from the ring optical path through TX and RX in the corresponding optical module.

[0106] The control unit is used to control the connection state of each optical switch unit to enable the slave communication device corresponding to each optical switch unit to access or exit the ring optical path. When the control unit controls the connection state of an optical switch unit to be the access state, the slave communication device corresponding to the optical switch unit can receive the optical signal from the previous optical switch unit through the optical switch unit, demodulate the optical signal to obtain data, select the data required by itself from the data, and add the data to be sent to the main communication device to the remaining data, and then modulate the obtained data into an optical signal, and send it to the next optical switch unit through the optical switch unit. When the control unit controls the connection state of an optical switch unit to be the bypass state, the optical switch unit directly sends the optical signal from the previous optical switch unit to the next optical switch unit, and the optical signal does not pass through the slave communication device connected to the optical switch unit.

[0107] For example, Figure 4 or Figure 5 As shown, when the input port on the upper left side of the optical switch unit is connected to the output port on the lower right side, and the input port on the lower left side is connected to the output port on the upper right side, the optical switch unit is in the access state. Therefore, the access state of the optical switch unit can also be called the cross state. When the input port on the upper left side of the optical switch unit is connected to the output port on the upper right side, and the input port on the lower left side is connected to the output port on the lower right side, the optical switch unit is in the bypass state. Therefore, the bypass state of the optical switch unit can also be called the through state.

[0108] It should be noted that Figure 4 as well as Figure 5 The optical switch unit shown is an optional structure of the switch unit involved in the embodiment of the present application, and the embodiment of the present application does not limit the type of the optical switch unit.

[0109] In addition, Figure 5 In the optical communication system shown, multiple optical switch units and a control unit can be integrated into an independent device. Figure 5 The optical communication system shown can be simplified as follows: Figure 6 The optical communication system shown in FIG. Figure 6As shown, the control unit and each optical switch unit can be collectively referred to as an optical switch unit array, and each component in the optical switch unit array is integrated in an independent device. For example, it can be deployed at a location similar to that of a convergence switch in a traditional three-layer campus network.

[0110] like Figure 6 As shown, the main communication device includes an optical module, which is connected to the optical switch unit array through an optical fiber. The internal architecture of the optical switch unit array can be referred to Figure 5 The function of the optical switch unit array is to connect each slave communication device to the ring optical path. N slave communication devices are hung under the optical switch unit array, where N≥1. Each slave communication device includes an optical module, which is connected to the optical switch unit array through an optical fiber.

[0111] about Figure 6 The function of each component in the system shown can be referred to the above embodiments and will not be described in detail here.

[0112] Optionally, in Figure 5 In the optical communication system shown, each optical switch unit can be integrated on the corresponding slave communication device. In this case, the control unit can be an independent device or integrated on the master communication device to control each communication device through the method provided by the implementation of this application.

[0113] Optionally, in Figure 5 In the optical communication system shown, each optical switch unit can be integrated into the corresponding slave communication device. In this case, each slave communication device is also integrated with a control unit corresponding to the optical switch unit, that is, each optical switch unit corresponds to a control unit. In this scenario, when a slave communication device fails and needs to exit the loop, or when the self-check functions are normal and need to request to access the loop, the slave communication device directly controls the control unit corresponding to the optical switch unit to adjust the connection state of the corresponding optical switch unit, thereby controlling the slave communication device to exit or access the ring loop, which will not be described in detail here.

[0114] when Figure 5 as well as Figure 6 When the architecture shown is applied to a campus network, for example, the master communication device may be a core switch (a switch is used as an example here, but it may also be a router or other device), and the slave communication device may be an access switch. The optical switch unit array is located at the location of the aggregation switch of a traditional three-layer campus network.

[0115] In this scenario, if Figure 5As shown in the figure, the optical signal sent by the optical module on the core switch passes through N access switches in sequence, where the minimum value of N is 1. At each access switch, all service data is converted into photoelectric data. The access switch takes the service data corresponding to it, and then inserts the service data to be sent and sends it to the next access switch together with the service data of other access switches. Each access switch accesses or exits the ring optical path through an optical switch unit in the optical switch unit array, and the corresponding states of the optical switch unit are access state and bypass state.

[0116] in addition, Figure 5 In the optical communication system shown, there may be two or one main communication device. When there are two main communication devices, the optical communication system may be called a dual-homing optical communication system. When there is one main communication device, the optical communication system may be called a single-homing optical communication system.

[0117] Figure 7 Schematic diagram of the architecture of a dual-homing optical communication network provided by an embodiment of the present application. Figure 7 As shown, the optical communication system includes two main communication devices, respectively marked as main communication device 1 and main communication device 2. For example, when main communication device 1 is a main main communication device, main communication device 2 can be used as a backup main communication device, and vice versa.

[0118] An optical splitter is configured at the output end of the multiple optical switch units connected in series, and the optical signals at the output ends of the multiple optical switch units connected in series are divided into two paths and sent to the main communication device 1 and the main communication device 2 respectively. For the convenience of subsequent explanation, if the TX of the optical module of the main communication device 1 is currently connected to the input end of the optical switch array, the path between the optical splitter and the main communication device 1 is used as the main path, and the path between the optical splitter and the main communication device 2 is used as the backup path. It should be noted that after the optical communication system is in operation, the main path and the backup path may be switched according to the link situation. For example, after the switch, the TX of the optical module of the main communication device 2 is connected to the input end of the optical switch array. At this time, the path between the optical splitter and the main communication device 1 is used as the backup path, and the path between the optical splitter and the main communication device 2 is used as the main path.

[0119] Figure 8 Schematic diagram of the architecture of a single-homed optical communication network provided in an embodiment of the present application. Figure 8 As shown, the optical communication system includes a main communication device. The input end and the output end of a plurality of optical switch units connected in series are respectively connected to two ends of the main communication device to form a ring optical path.

[0120] In addition, Figures 4 to 8In the optical communication system shown, the control unit may be, for example, a field programmable gate array (FPGA) or a microcontroller unit (MCU).

[0121] like Figure 5 , Figure 7 as well as Figure 8 As shown, an optical splitter is connected to the light entrance of each optical switch unit (that is, the place where the optical switch unit is connected to the TX of the optical module of the slave communication device). Figure 5 A black dot is used to mark the optical splitter, which splits a small part of the light and sends it to a photoelectric diode (PD) to detect whether the corresponding slave communication device is emitting light. The detection results of each PD are sent to the control unit. If the control unit detects that the power output of the PD corresponding to a slave communication device is greater than a certain threshold, it is considered that the slave communication device requests access, and the control unit adjusts the corresponding optical switch unit to the access state. On the contrary, if it is detected that the power output of the PD corresponding to the slave communication device is less than the specific threshold, it is considered that the slave communication device has a fault or is actively offline, and the control unit adjusts the corresponding optical switch unit to the bypass state.

[0122] In the above-mentioned scheme for controlling the slave communication device to enter or exit the ring optical path, whether the slave communication device emits light is detected by detecting the PD located at the light output point of the slave communication device. If light is emitted, it is considered that the slave communication device is normal. However, during the operation of the slave communication device, there may be a scenario where the slave communication device can emit light but the function of the slave communication device fails. For example, the media access control (MAC) or physical layer (PHY) chip of the slave communication device fails, or the optical module type of the slave communication device does not match the optical module type of the adjacent slave communication device, resulting in the optical signals in the ring optical path being unable to communicate with each other, or the clock and data recovery (CDR) unit of the optical module of the slave communication device loses lock, resulting in the inability to demodulate data normally, and the switch forwarding of the slave communication device fails, etc.

[0123] In the above scenario, if the communication device cannot be withdrawn from the ring optical path in time, the normal operation of the services in the ring optical path will be affected.

[0124] Based on this, an embodiment of the present application provides a method for controlling a communication device, which can notify the control unit of the situation of the second communication device by adjusting the reference properties of the optical signal by the first communication device, so that the control unit can timely connect or exit the second communication device to the ring optical path without demodulating and modulating the optical signal in the ring optical path.

[0125] In order to implement the method provided in the embodiment of the present application, Figure 4-6 A signal detection unit is provided in the optical communication system shown. The signal detection unit may be a PD or a carrier detection unit, so as to detect the change in reference properties such as power of the optical signal sent by the first communication device in the ring optical path through the signal detection unit, thereby controlling the second communication device to access or exit the ring optical path. The relationship between the second communication device and the first communication device may refer to the subsequent method embodiments. In addition, the deployment position of the signal detection unit may also refer to the subsequent method embodiments.

[0126] Combine the following Figures 4 to 8 The optical communication system shown provides a detailed explanation of the method for controlling a communication device provided in an embodiment of the present application.

[0127] Fig. 9 1 is a flow chart of a method for controlling a communication device provided in an embodiment of the present application. Fig. 9 As shown, the method includes the following steps.

[0128] Step 901: A first communication device determines a status of a second communication device.

[0129] The method for controlling a communication device provided in the embodiments of the present application includes but is not limited to the following two methods.

[0130] Method 1: The second communication device adds fault information to the optical signal in the ring optical path through in-band operations, administration and maintenance (OAM). When the first communication device demodulates to the fault information, it changes the reference attribute of the optical signal emitted by itself based on the fault information to instruct the control unit to switch the connection state of the optical switch unit connected to the second communication device.

[0131] For example, Figure 5 As shown, the multiple communication devices in the optical communication system include at least one master communication device and multiple slave communication devices, each of the multiple optical switch units is connected to a slave communication device, and a master communication device in at least one master communication device and the multiple slave communication devices connected to the multiple optical switch units form a ring optical path.

[0132] In this scenario, the first communication device may be one of at least one master communication device, and the second communication device may be one of multiple slave communication devices. At this time, step 901 may be used to implement the slave communication device transmitting the fault information to the master communication device through an in-band OAM method, so that the master communication device adjusts the reference property of its own optical signal, thereby notifying the control unit that a fault is detected at the slave communication device.

[0133] Optionally, the first communication device and the second communication device may be any two slave communication devices in the ring optical path. At this time, through step 901, a slave communication device can transmit fault information to another slave communication device through an in-band OAM method, so that the reference property of the optical signal emitted by itself is adjusted by the other slave communication device, thereby notifying the control unit that a fault is detected at the slave communication device.

[0134] In some embodiments, in method 1, step 901 may be implemented as follows: the first communication device receives an optical signal in a ring optical path; the first communication device demodulates the optical signal to obtain fault information, and the fault information indicates that the second communication device detects a fault.

[0135] In the above manner, when the second communication device detects a fault, the fault information can be sent through an optical signal transmitted via a ring optical path, so as to transmit the fault information to the first communication device in an in-band OAM manner.

[0136] The following description will be made by taking the first communication device as the master communication device and the second communication device as the slave communication device as an example.

[0137] like Figure 5 As shown, when a fault is detected from the communication device 2, the communication device 2 demodulates the received optical signal to obtain service data, downloads the data required from the service data, and adds fault information to other data to obtain data to be sent. Then, the data to be sent is modulated into an optical signal through an optical module, and the modulated optical signal is sent to the ring optical path through the optical module. When the main communication device receives the optical signal, it demodulates the optical signal to obtain fault information.

[0138] The fault information carries the identifier of the slave communication device 2 , so the master communication device determines that the slave communication device 2 has detected a fault.

[0139] In addition, in order to facilitate understanding of various scenarios in which a fault is detected from the communication device 2, the internal structures of the communication device and the optical module are first explained below.

[0140] Fig.10 Schematic diagram of the internal structure of a communication device and an optical module provided in an embodiment of the present application. Fig.10As shown, the communication device includes a MAC chip and a PHY chip to realize the processing of data at the MAC layer and the PHY layer. The communication device is connected to the optical module through a pair of serializer / deserializer (SerDes). The electrical signal (carrying data) from the communication device first passes through the CDR unit of the optical module for clock and data recovery, and then amplifies the electrical signal through the driver unit (Driver), and finally converts the electrical signal into an optical signal through the laser (Laser) and outputs it to the optical fiber. The optical signal received by the optical module from the outside is first converted into a photocurrent by the PD or APD, and then converted into an electrical signal through a trans-impedance amplifier (TIA), and finally recovered by the CDR unit and output to the communication device.

[0141] It should be noted that Fig.10 The communication device and the optical module are distributed on different boards as an example for description. Optionally, the communication device and the optical module can be integrated on the same board.

[0142] based on Fig.10 According to the structure shown, the following scenarios may occur when a fault is detected by the communication device 2.

[0143] Scenario 1: The forwarding layer of slave communication device 2 fails. Slave communication device 2 cannot normally extract and insert data of this node, but can normally receive and send data of other communication devices.

[0144] Scenario 2: The CDR unit on the receiving side of the optical module of slave communication device 2 is unlocked, causing slave communication device 2 to be unable to parse the data from the previous hop communication device, but the transmission is normal.

[0145] Scenario 3: The optical module type of slave communication device 1 does not match or the MAC / PHY chip of slave communication device 1 fails, causing slave communication device 1 to be unable to parse the data from the previous hop communication device and unable to send any data. At this time, the optical module receiving end of slave communication device 2 cannot parse the data from communication device 1.

[0146] In any of the above scenarios, when communication device 2 detects a fault, it can send an in-band OAM signal including fault information to the downstream node, which is relayed by each downstream node until it is transmitted to the main communication device, so that the main communication device obtains the status of slave communication device 2: a fault is detected at the current time.

[0147] It should be noted that when a fault is detected from the communication device 2, such as the three fault scenarios described above, the cause of the fault may be a fault in the communication device 2 itself, or a fault in the previous hop, the communication device 1. In some embodiments, when the communication device 2 supports the fault factor troubleshooting function, the communication device 2 can detect whether it is a fault in itself or in the previous hop. In this case, the fault information can not only indicate that the fault is detected from the communication device 2, but also further indicate whether the fault location is a fault in itself or in the previous hop.

[0148] Optionally, when the slave communication device 2 does not support the fault factor troubleshooting function, the fault information cannot indicate the fault type. The subsequent control unit can determine whether the fault location is the slave communication device 2 or the previous hop by elimination method, which will not be described in detail here.

[0149] In addition, there are two implementations of sending fault information from the communication device 2 via an optical signal transmitted through a ring optical path.

[0150] Method 1 for sending fault information: inserting an OAM code block in the Ethernet PHY layer to carry the fault information.

[0151] For example, a specific (ordered, O)O code block in a 64B / 66B code block may be used to carry fault information, wherein the O code block belongs to a control code block, and the code block type is 0x4B.

[0152] Fig.11 Schematic diagram of the format of an O code block provided in an embodiment of the present application. Fig.11 As shown, the O code block includes a one-byte code block type 0x4B, three bytes D1 to D3, which can be used to carry fault information. There are also 4 bits of O code (0xA is used as an example here) used to indicate the purpose of a specific scenario in conjunction with the code block type, and finally 28 bits of all 0.

[0153] Table 2 is a schematic table of the format of fault information carried by an O-code block provided in an embodiment of the present application. As shown in Table 2, the fault information includes an identifier of a slave communication device, which is used to indicate that the communication device currently detects the fault and reports the fault information through an in-band OAM signal. The identifier of the slave communication device occupies 4 bits, for example, 0001 represents the first slave communication device in the ring optical path, that is, slave communication device 1, and 0010 represents the second slave communication device in the ring optical path, that is, slave communication device 2.

[0154] Optionally, as shown in Table 2, the fault information may also include a fault type. The fault type occupies 2 bits. For example, 00 indicates a device forwarding fault; 01 indicates that the receiving end cannot normally recover the data.

[0155] Table 2

[0156]

[0157] Optionally, when the slave communication device 2 supports the fault factor troubleshooting function, the fault information may further include a fault location, where the fault location indicates whether the fault currently occurs from the communication device 2 itself or from the previous hop of the communication device 2. The fields occupied by the fault location may be set as required, and examples are not given one by one here.

[0158] In addition, in order to improve data reliability, multiple copies of the same fault information may be carried in one O code block, or several O code blocks may be sent, each O code block being used to carry at least one copy of the same fault information.

[0159] A second implementation method for sending fault information: using standard Ethernet OAM messages to carry fault information.

[0160] For example, the Ethernet OAM message in the IEEE 802.3ah standard may be used to carry the fault information. Table 3 is used to explain various fields of an Ethernet OAM message in the IEEE 802.3ah standard provided in an embodiment of the present application.

[0161] Table 3

[0162] Fields meaning Dest addr Destination MAC address of Ethernet OAM packets Source addr Ethernet OAM message source MAC address Type Protocol type of Ethernet OAM message, 0x8809 Subtype Protocol subtype of Ethernet OAM message, 0x03 Flags The Flag field contains the status information of the Ethernet OAM entity. Code OAM message type Data / Pad Ethernet OAM message payload and padding CRC Message cyclic redundancy check

[0163] As shown in Table 3, the fault information may be carried in the Data / Pad (payload and padding) field. The specific contents of the fault information may refer to Table 2, which will not be described in detail here.

[0164] The above two implementations are used to illustrate that the fault information is sent by the optical signal transmitted through the ring optical path from the communication device 2. Optionally, the fault information can also be sent by the optical signal transmitted through the ring optical path from the communication device 2 in other ways, which will not be described one by one here.

[0165] Mode 2: Any communication device adjusts the reference property of the optical signal emitted by itself based on its own state to instruct the control unit to switch the connection state of the optical switch unit connected to the communication device.

[0166] At this time, the first communication device and the second communication device are the same communication device in the optical communication system.

[0167] For example, Figure 5 As shown, the multiple communication devices include at least one master communication device and multiple slave communication devices, each of the multiple optical switch units is connected to a slave communication device, and a master communication device in at least one master communication device and the multiple slave communication devices connected to the multiple optical switch units form a ring optical path.

[0168] In this scenario, the first communication device and the second communication device may be the same slave communication device among multiple slave communication devices. At this time, each slave communication device can directly adjust the reference attribute of the optical signal emitted by itself based on its own state to promptly notify its own state to the control unit.

[0169] In some embodiments, in the second method, step 901 may be implemented as follows: the first communication device detects whether its own function is normal to determine its own status.

[0170] For example, the first communication device may detect whether its own functions are normal by checking whether the first communication device can normally extract and insert data of the current node, whether it can normally receive and send data of other communication devices, and so on.

[0171] When the first communication device detects that all its functions are normal, it can be determined that it is in a normal working state. When the first communication device detects that a certain function of itself has a fault, it can be determined that the fault is detected at the current time. Among them, the various scenarios in which the first communication device detects a fault can refer to the scenario in which the second communication device detects a fault in method 1, and will not be repeated here.

[0172] The above is explained using method 1 and method 2 as examples. Optionally, the first communication device can also obtain the status of the second communication device through other methods, such as obtaining the status of the second communication device through notification messages from other management nodes. Examples will not be given one by one here.

[0173] Step 902: The first communication device adjusts the reference property of the optical signal emitted by itself based on the state of the second communication device to obtain a target optical signal, and the change pattern of the target optical signal in the reference property indicates the state of the second communication device.

[0174] In some embodiments, step 902 may be implemented as follows: the first communication device determines a target bit sequence based on the state of the second communication device, where the target bit sequence indicates the state of the second communication device; and the first communication device adjusts a reference property of an optical signal emitted by itself based on the target bit sequence to obtain a target optical signal.

[0175] Among them, the target optical signal includes at least one first-class optical signal and at least one second-class optical signal, the duration of the first-class optical signal is a first reference duration, the duration of the second-class optical signal is a second reference duration, the power of the first-class optical signal satisfies a first power condition, the power of the second-class optical signal satisfies a second power condition, and the ordering of at least one first-class optical signal and at least one second-class optical signal in the target optical signal is consistent with the ordering of at least one first bit value and at least one second bit value in the target bit sequence.

[0176] In some embodiments, the target bit sequence indicating the state of the second communication device can be understood as: when the state of the second communication device is that a fault is detected at the current time, the target bit sequence can illustratively indicate the aforementioned fault information. In other embodiments, the target bit sequence indicating the state of the second communication device can be understood as: when the state of the second communication device is a normal function state, the target bit sequence can illustratively indicate that the second communication device is currently functioning normally.

[0177] In the above manner, the power of the optical signal transmitted by the first communication device can be adjusted to change according to a rule similar to the target bit sequence, so as to indicate the state of the second communication device through the optical signal power change rule. Optionally, the first communication device can also adjust the power change of the optical signal in other ways so that the optical signal power change rule can indicate the state of the second communication device, which will not be described one by one here.

[0178] By way of example, the first communication device adjusts the reference attribute of the optical signal emitted by itself based on the target bit sequence as follows: the first communication device sends at least one first drive signal and at least one second drive signal to its own optical module in sequence according to the order of the first bit value and the second bit value in the target bit sequence; when the optical module receives the first drive signal, the power of the output optical signal is adjusted to meet the first power condition; when the optical module receives the second drive signal, the power of the output optical signal is adjusted to meet the second power condition.

[0179] In the embodiment of the present application, the state of the second communication device can be indicated by the optical signal power variation rule based on the target bit sequence in the following two ways. The two implementation ways are described below.

[0180] (1) Blinking method.

[0181] In this scenario, the first power condition is: the ratio between the power of the first type of optical signal and the reference power is the first reference ratio; the second power condition is: the ratio between the power of the second type of optical signal and the reference power is the second reference ratio; wherein the first reference ratio and the second reference ratio are both greater than or equal to 0 and less than or equal to 1.

[0182] The reference power may be understood as the power of the optical signal transmitted by the first communication device when the power of the optical signal transmitted by the first communication device is not adjusted.

[0183] In the above manner, the first communication device notifies the control unit of the state of the second communication device by attenuating the power of the optical signal. This manner is easy to implement and has low cost.

[0184] Since the light intensity of the target light signal received by the control unit changes in a burst, like blinking, this method can be called the blinking method.

[0185] For example, the first bit value is 1, the second bit value is 0, and the first reference ratio is 100%, and the second reference ratio is 90%. In this scenario, it is assumed that the first reference duration and the second reference duration are both 3ms, and the target bit sequence is 1011010. The reference duration and the bit sequence are not limited in the specific implementation. Then the first communication device switches the working state of the transmitter of the optical module every 3ms, and the switched working states are: no attenuation state → attenuation to 90% state → no attenuation state → no attenuation state → attenuation to 90% state → no attenuation state → attenuation to 90% state. Among them, the no attenuation state means that no attenuation operation is performed on the transmitted optical signal. Attenuation to 90% state means that the power of the transmitted optical signal is attenuated to 90% of the original.

[0186] In the above implementation, since the first communication device attenuates the power of the optical signal to 90% at most, it has little impact on the normal services in the optical communication system.

[0187] Fig.12 is a waveform diagram of a target optical signal provided in an embodiment of the present application. Fig.12 As shown, the target bit sequence is 10101010101 by way of example, and the target optical signal is an optical signal similar to a square wave.

[0188] The above description is based on the second reference ratio of 90%. Optionally, the second reference ratio can also be other ratios less than 100%. The second reference ratio can be set by the management personnel based on the optical signal detection accuracy and decision threshold at the control unit. Figure 8 In the single-homing scenario shown, when the first communication device is the primary communication device, the larger the second reference ratio is, the smaller the demodulation effect on the normal service data in the ring optical path is, and the smaller the second reference ratio is, the easier it is to demodulate the target bit sequence carried by the target optical signal. Figure 7 In the dual-homing scenario shown, when the first communication device is the main communication device on the backup path, or the ring optical path service has been disconnected, there is no need to consider the impact on the service in these scenarios, and the proportion of the second reference light can be very small.

[0189] (2) Carrier modulation method.

[0190] In this scenario, the first power condition is exemplified as follows: the power of the first type of optical signal changes in a triangular function wave trend within a reference time period; the second power condition is exemplified as follows: the power of the second type of optical signal is a reference power. The reference power can also be understood as the power of the optical signal emitted by the first communication device when the power of the optical signal emitted by itself is not adjusted.

[0191] In the above manner, the first communication device can adjust the power of the optical signal by means of carrier modulation, and can also notify the control unit of the state of the second communication device.

[0192] Among them, the implementation method of the first communication device adjusting the power of the optical signal through carrier modulation can be: a low-frequency sinusoidal wave signal source is generated on the first communication device, the first communication device sets the on and off time of the low-frequency sinusoidal wave signal source according to the target bit sequence, obtains a low-frequency driving signal, and then drives the transmitter of its own optical module through the low-frequency driving signal, thereby changing the power of the optical signal emitted by itself.

[0193] Driving the optical module by a low-frequency driving signal can be understood as follows: when the low-frequency driving signal is currently a sine wave, the transmitter of the optical module adjusts the power change trend of the optical signal output by itself according to the power change trend of the low-frequency driving signal, so that the change trends of the two remain the same. When the power of the low-frequency driving signal is 0, the transmitter does not adjust the power of the optical signal output by itself.

[0194] The transmitter adjusts the power variation trend of the optical signal outputted by itself according to the power variation trend of the low-frequency driving signal, which can be achieved by the following formula for example.

[0195]

[0196] Where P0(t) is the optical signal output by the transmitter before carrier modulation. P(t) is the optical signal output by the transmitter after carrier modulation by the transmitter. m is the modulation depth, f PT is the frequency of the low-frequency sine wave signal source, is the initial phase of the optical signal input to the transmitter.

[0197] In addition, when it is necessary not to affect the normal services in the optical communication system, the modulation depth m should not be too large, such as 6%. In addition, the frequency of the optical signal of the low-frequency signal source can be selected, for example, from several kHz to tens of MHz.

[0198] Fig.13 is a waveform diagram of another target optical signal provided in an embodiment of the present application. Fig.13As shown, the target bit sequence is 10101 by way of example, and the target optical signal is adjusted to a triangular function wave within the reference duration corresponding to the bit value of 1, and the power at the trough of the triangular function wave is 94% of the optical signal power before modulation, so as to achieve a modulation depth of 6%. The target optical signal is not modulated within the reference duration corresponding to the bit value of 0.

[0199] The above description uses a triangular function wave as an example. Optionally, other types of low-frequency driving signals can be modulated by carrier modulation, and then the transmitter in the first communication device is controlled by the low-frequency driving signal to adjust the power of the optical signal emitted by itself. Examples will not be given one by one here.

[0200] The above is used to illustrate how the first communication device adjusts the reference properties of the optical signal emitted by itself. Optionally, in the embodiment of the present application, the reference properties of the optical signal emitted by itself can also be adjusted in other ways, which will not be explained one by one here.

[0201] In addition, the above embodiment is described by taking the reference attribute of power as an example, and the reference attribute may optionally be other attributes of the optical signal, such as phase. For other reference attributes, the above embodiment can also be referred to, and no further examples are given here.

[0202] The following uses the method 1 and the method 2 in step 901 as examples to illustrate step 902.

[0203] For method 1 in step 901, when the first communication device receives fault information reported from the second communication device through the in-band OAM signal, the first communication device can determine the target bit sequence based on the fault information, and then adjust the reference properties of the optical signal emitted by itself according to the target bit sequence to obtain the target optical signal. At this time, the change pattern of the reference property of the target optical signal indicates that the second communication device has detected a fault.

[0204] Based on the first approach in step 901, the fault information may indicate that the second communication device has detected a fault. The fault information may also indicate that the second communication device has detected a fault and the node where the fault occurs is the second communication device or the previous hop of the second communication device.

[0205] Based on this, when the fault information can simultaneously indicate that the second communication device detects the fault and the node where the fault occurs is the second communication device or the previous hop of the second communication device, the target bit sequence can also simultaneously indicate that the second communication device detects the fault and the node where the fault occurs is the second communication device or the previous hop of the second communication device, that is, the fault position notified by the second communication device is carried in the target bit sequence. This allows the subsequent control unit to directly control the optical switch unit of the node where the fault occurs to switch from the access state to the bypass state.

[0206] Table 4 is a schematic illustration of a method of carrying fault information through a target bit sequence provided by an embodiment of the present application. As shown in Table 4, the target bit sequence includes fields such as a frame header, communication device information, and a fault type. Among them, the frame header occupies the first 8 bits of the target bit sequence, which can be 01101101 by way of example. The communication device information occupies the 9th to 16th bits of the target bit sequence, and is used to indicate the identifier of the slave communication device that notifies the control unit of the fault information. The fault type occupies the 17th to 18th bits of the target bit sequence, and is used to indicate the fault type of the current fault state. By way of example, 00 indicates that the fault type of the current fault state is a receiving side fault, and 01 indicates that the fault type of the current fault state is a forwarding layer fault.

[0207] Table 4

[0208]

[0209]

[0210] For method 2 in step 901, when the first communication device and the second communication device are the same device, when the first communication device adjusts the reference properties of the optical signal emitted by itself based on its own state, the first communication device can choose to adjust the reference properties of the optical signal emitted by itself when the function of the first communication device is normal.

[0211] For example, for Figure 5 In the optical communication system shown, the slave communication device 2 can detect its own functions every 10 minutes. If the slave communication device 2 itself functions normally, the slave communication device 2 adjusts the power of the optical signal emitted by itself. Since a PD is configured at the light output of the slave communication device 2, the PD can detect whether the power of the optical signal emitted from the communication device 2 changes, so as to transmit the target bit sequence to the control unit by the power change of the optical signal.

[0212] Optionally, the first communication device may also choose to adjust the reference property of the optical signal emitted by itself when the first communication device detects a fault.

[0213] For example, for Figure 5 In the optical communication system shown, when a fault is detected by the slave communication device 2, the slave communication device 2 adjusts the power of the optical signal emitted by itself, so as to transmit the target bit sequence to the control unit by means of the power change of the optical signal.

[0214] Among them, the fault detected from the communication device 2 can be triggered by a fault in the communication device 2 itself, or by a fault in the previous hop of the communication device 2. Therefore, when the communication device 2 supports the fault factor troubleshooting function, the target bit sequence can also indicate the fault location, whether it occurs from the communication device 2 itself or from the previous hop of the communication device 2.

[0215] It should be noted that the target bit sequence used by the first communication device in each of the above scenarios may be different, so that the target bit sequence indicates different information in different scenarios. The embodiment of the present application does not limit the target bit sequence.

[0216] Step 903: The control unit detects an optical signal sent by a first communication device among the multiple communication devices.

[0217] In some embodiments, the optical communication system further includes a signal detection unit, and the implementation of step 903 may be: the control unit detects the optical signal sent by the first communication device based on the signal detection unit.

[0218] For example, for method one in step 901, a small portion of light can be separated from the optical outgoing path of the first communication device through a splitter for detection by a signal detection unit. The signal detection unit can be placed together with the corresponding splitter close to the control unit and located at the port of the optical switch unit that receives the optical signal emitted by the first communication device, so that the control unit can detect changes in the reference properties of the optical signal through the signal detection unit.

[0219] For example, for Figure 7 In the dual-homing scenario shown, when the first communication device is the master communication device and the second communication device is the slave communication device, in some embodiments, two signal detection units can be respectively configured on the master and backup paths and located near the entrance of the 1:2 optical switch connected to the master and backup paths. At this time, the state of the second communication device can be notified by the optical signal emitted by the master communication device on the master path or the master communication device on the backup path. If the optical signal emitted by the master communication device on the master path is used to notify the state of the second communication device, the control unit detects that it is the optical signal emitted by the master communication device on the master path. If the optical signal emitted by the master communication device on the backup path is used to notify the state of the second communication device, the control unit detects that it is the optical signal emitted by the master communication device on the backup path.

[0220] Optionally, for Figure 7 In the dual-homing scenario shown, when the first communication device is the master communication device and the second communication device is the slave communication device, in other embodiments, the signal detection unit can be configured at the output end of the 1:2 optical switch connected to the primary and backup paths. In this case, the signal detection unit detects the optical signal emitted by the master communication device on the primary path.

[0221] For example, for Figure 8 In the single-homing scenario shown, when the first communication device is the master communication device and the second communication device is the slave communication device, the signal detection unit can be configured near the optical inlet of the first optical switch unit on the left side to receive the optical signal transmitted by the first communication device. In this case, the signal detection unit detects the optical signal transmitted by the master communication device.

[0222] As another example, for the second method in step 901, the signal detection unit can be configured near the port of the optical switch unit that receives the optical signals transmitted from the communication device. In this case, the signal detection unit can be Figure 5 PD1 to PDN in the optical signal source, so that the control unit detects the change of the reference property of the optical signal through the signal detection unit.

[0223] Optionally, for method 2 in step 901, a carrier detection unit can also be configured as a signal detection unit near the port of each optical switch unit that receives the optical signal transmitted from the communication device, so that the control unit can detect changes in the reference properties of the optical signal through the signal detection unit.

[0224] Step 904: The control unit switches the connection state of the second optical switch unit connected to the second communication device based on the variation rule of the reference property of the optical signal, so that the second communication device enters or exits the ring optical path.

[0225] In some embodiments, if the variation law of the optical signal in the reference property satisfies the first law, fault information is determined based on the variation law of the optical signal in the reference property, and the fault information indicates that the second communication device has detected a fault; the second optical switch unit is controlled to switch from the access state to the bypass state so that the second communication device exits the ring optical path.

[0226] Among them, if the variation law of the optical signal on the reference attribute satisfies the first law, then the implementation method of determining the fault information based on the variation law of the optical signal on the reference attribute can be: determining the target bit sequence based on the variation law of the optical signal on the reference attribute, and obtaining the fault information from the target bit sequence. The specific implementation method can refer to the related content of adjusting the power of the optical signal based on the target bit sequence, which will not be repeated here.

[0227] In addition, based on the relevant content of the second communication device detecting a fault, it can be known that the fault information can not only indicate that the second communication device has detected a fault, but also indicate whether the fault occurs in the second communication device or the third communication device, where the third communication device is the previous hop communication device of the second communication device in the ring optical path.

[0228] Based on this, the control unit has the following different processing methods.

[0229] Processing method 1: When the fault information only indicates that the second communication device has detected a fault, the control unit can first control the second optical switch unit to switch from the access state to the bypass state to make the second communication device exit the ring optical path, and then determine whether the service in the ring optical path is restored. If not, control the third optical switch unit connected to the third communication device to switch from the access state to the bypass state to make the third communication device exit the ring optical path.

[0230] Alternatively, the control unit can first control the third optical switch unit to switch from the access state to the bypass state to make the third communication device exit the ring optical path, and then determine whether the service in the ring optical path is restored. If not, control the second optical switch unit to switch from the access state to the bypass state to make the second communication device exit the ring optical path.

[0231] Alternatively, the control unit may simultaneously control the second optical switch unit and the third optical switch unit to switch from the access state to the bypass state, so that the second communication device and the third communication device both exit the ring optical path, so that the services in the ring optical path are quickly restored.

[0232] Processing method 2: When the fault information indicates that the second communication device has detected a fault and whether the fault occurs in the second communication device or the third communication device, the control unit determines the faulty communication device based on the fault information, and then directly controls the faulty communication device to exit the ring optical path.

[0233] For example, for method 1 in step 901, when the first communication device is one of at least one main communication device in the optical communication system and the second communication device is one of multiple slave communication devices, through step 904, the control unit can use the power variation law of the optical signal emitted by the main communication device to promptly withdraw the faulty second communication device and / or the third communication device from the ring optical path to avoid affecting normal services in the ring optical path.

[0234] Below Fig.14 and Fig.15 Take the distance as an example to illustrate the above example.

[0235] like Fig.14 As shown, when the second communication device detects a fault due to a fault of itself, the second communication device transmits the fault information to the first communication device through the in-band OAM method, and the first communication device adjusts the reference property of the optical signal emitted by itself based on the fault information to notify the control unit of the fault information. The control unit switches the second optical switch unit connected to the second communication device from the access state to the bypass state, so that the second communication device exits the ring optical path.

[0236] For example, in Fig.14In the present invention, the first communication device determines a first target bit sequence based on the fault information, and then adjusts the reference property of the optical signal emitted by itself according to the first target bit sequence by blinking or carrier modulation.

[0237] like Fig.15 As shown, when the second communication device detects a fault due to a fault in the previous hop third communication device, the second communication device transmits the fault information to the first communication device through the in-band OAM method, and the first communication device adjusts the reference property of the optical signal emitted by itself based on the fault information to notify the control unit of the fault information. The control unit switches the third optical switch unit connected to the third communication device from the access state to the bypass state, so that the third communication device exits the ring optical path.

[0238] For example, in Fig.15 In the present invention, the first communication device determines a second target bit sequence based on the fault information, and then adjusts the reference property of the optical signal emitted by itself according to the second target bit sequence by blinking or carrier modulation.

[0239] about Fig.14 and Fig.15 The detailed implementation method can refer to the above embodiment and will not be repeated here.

[0240] As another example, for method two in step 901, when the first communication device and the second communication device are the same slave communication device among multiple slave communication devices, through step 904, the control unit can use the power variation law of the optical signal emitted by the second communication device to promptly remove the faulty second communication device and / or the third communication device from the ring optical path to avoid affecting normal services in the ring optical path.

[0241] Below Figures 16 to 18 Take the above example as an example to illustrate the above example.

[0242] like Fig.16 As shown, when the second communication device detects a fault due to a fault of itself, the second communication device adjusts the reference property of the optical signal emitted by itself to notify the control unit of the fault information. The control unit switches the second optical switch unit connected to the second communication device from the access state to the bypass state to make the second communication device exit the ring optical path.

[0243] For example, in Fig.16 In the embodiment, the second communication device determines a third target bit sequence based on the fault information, and then adjusts the reference property of the optical signal emitted by itself according to the third target bit sequence by blinking or carrier modulation.

[0244] like Fig.17As shown, when the second communication device detects a fault due to a fault in the previous hop third communication device, the second communication device adjusts the reference property of the optical signal emitted by itself to notify the control unit of the fault information. The control unit switches the third optical switch unit connected to the third communication device from the access state to the bypass state so that the third communication device exits the ring optical path.

[0245] For example, in Fig.17 In the embodiment, the second communication device determines a fourth target bit sequence based on the fault information, and then adjusts the reference property of the optical signal emitted by itself according to the fourth target bit sequence by blinking or carrier modulation.

[0246] In addition, as described in method 2 in step 901, the first communication device can adjust the power of the optical signal emitted by itself when it periodically detects that its own function is normal. In this scenario, the implementation method of step 904 can be: if the change law of the optical signal in the reference attribute does not satisfy the second law and the second optical switch unit connected to the second communication device is in the access state, then the second optical switch unit is controlled to switch from the access state to the bypass state to make the second communication device exit the ring optical path.

[0247] like Fig.18 As shown, after the second communication device periodically checks whether its own function is normal, if the current function is normal, it adjusts the reference attribute of the optical signal emitted by itself to inform the control unit that it is currently in a normal state. After the control unit detects that the optical signal emitted by the second communication device does not meet a certain rule, it switches the second optical switch unit connected to the second communication device from the access state to the bypass state, so that the second communication device exits the ring optical path.

[0248] For example, in Fig.18 In the embodiment, the second communication device determines a fifth target bit sequence based on the current normal state of various functions, and then adjusts the reference attribute of the optical signal emitted by itself through blinking or carrier modulation according to the fifth target bit sequence.

[0249] In addition, in this scenario, when the first communication device can also request to access the ring optical path by adjusting the power of the optical signal emitted by itself when each function of the self-test is normal, the implementation method of step 904 can be: if the change law of the optical signal in the reference attribute satisfies the third law and the second optical switch unit is in the bypass state, then the second optical switch unit is controlled to switch from the bypass state to the access state, so that the second communication device can access the ring optical path.

[0250] like Fig.19As shown, after the second communication device needs to access the ring optical path, it first checks whether its own function is normal. If its own function is normal at present, it adjusts the reference attribute of the optical signal emitted by itself to inform the control unit that it is currently in a normal state and requests access. After the control unit detects the access request signal, it switches the second optical switch unit connected to the second communication device from the bypass state to the access state, so that the second communication device accesses the ring optical path.

[0251] For example, in Fig.19 In the embodiment, the second communication device determines the sixth target bit sequence based on the current state that all functions are normal and access is requested, and then adjusts the reference properties of the optical signal emitted by itself according to the sixth target bit sequence by blinking or carrier modulation.

[0252] The above-mentioned first rule, second rule and third rule are all related to the setting of each target bit sequence. The target bit sequence in different scenarios can be set by technical personnel, and no examples are given here one by one.

[0253] To summarize, in an embodiment of the present application, the first communication device adjusts the reference properties of the optical signal to inform the control unit of the situation of the second communication device, so that the control unit can timely connect or exit the second communication device to the ring optical path without demodulating and modulating the optical signal in the ring optical path.

[0254] Fig. 20 It is a structural schematic diagram of a control communication device provided in an embodiment of the present application. The device is applied to a control unit in an optical communication system. The optical communication system also includes multiple communication devices and multiple optical switch units. The multiple communication devices and the multiple optical switch units are connected through optical paths to form a ring optical path. Each of the multiple optical switch units is used to control a communication device to enter or exit the ring optical path.

[0255] like Fig. 20 As shown, the device 2000 includes:

[0256] The detection module 2001 is used to detect the optical signal sent by the first communication device among the multiple communication devices. Fig. 9 Step 903 in the embodiment.

[0257] The switching module 2002 is used to switch the connection state of the second optical switch unit connected to the second communication device based on the change rule of the reference attribute of the optical signal, so that the second communication device can access or exit the ring optical path. Fig. 9 Step 904 in an embodiment.

[0258] Optionally, the optical communication system further comprises a signal detection unit;

[0259] The detection module is used to:

[0260] The optical signal transmitted by the first communication device is detected based on the signal detection unit.

[0261] Optionally, the switching module is used to:

[0262] If the variation rule of the optical signal on the reference property satisfies the first rule, determining fault information based on the variation rule of the optical signal on the reference property, the fault information indicating that the second communication device has detected a fault;

[0263] The second optical switch unit is controlled to switch from the access state to the bypass state, so that the second communication device exits the ring optical path.

[0264] Optionally, the switching module is further configured to:

[0265] Controlling a third optical switch unit connected to a third communication device to switch from an access state to a bypass state, so that the third communication device exits the ring optical path;

[0266] The third communication device is a previous-hop communication device of the second communication device in the ring optical path.

[0267] Optionally, the multiple communication devices include at least one master communication device and multiple slave communication devices, each of the multiple optical switch units is connected to a slave communication device, and a master communication device in the at least one master communication device and the multiple slave communication devices connected to the multiple optical switch units form a ring optical path;

[0268] The first communication device is one of at least one master communication device, and the second communication device is one of a plurality of slave communication devices.

[0269] Optionally, the multiple communication devices include at least one master communication device and multiple slave communication devices, each of the multiple optical switch units is connected to a slave communication device, and a master communication device in the at least one master communication device and the multiple slave communication devices connected to the multiple optical switch units form a ring optical path;

[0270] The first communication device and the second communication device are the same slave communication device among the plurality of slave communication devices.

[0271] Optionally, the first communication device and the second communication device are the same communication device, and the second optical switch unit is a first optical switch unit connected to the first communication device;

[0272] The switch module is used to:

[0273] If the variation rule of the optical signal in the reference property does not satisfy the second rule and the second optical switch unit connected to the second communication device is in the access state, the second optical switch unit is controlled to switch from the access state to the bypass state to make the second communication device exit the ring optical path.

[0274] Optionally, the switching module is used to:

[0275] If the variation rule of the optical signal in the reference property satisfies the third rule and the second optical switch unit is in the bypass state, the second optical switch unit is controlled to switch from the bypass state to the access state so that the second communication device is accessed to the ring optical path.

[0276] Optionally, the reference attribute is power;

[0277] The switch module is used to:

[0278] If the optical signal includes at least one first-category optical signal and at least one second-category optical signal, and the duration of the first-category optical signal is a first reference duration, the duration of the second-category optical signal is a second reference duration, the power of the first-category optical signal satisfies a first power condition, and the power of the second-category optical signal satisfies a second power condition, then based on the sorting of at least one first-category optical signal and at least one second-category optical signal in the optical signal, a target bit sequence is determined, and the sorting of at least one first bit value and at least one second bit value in the target bit sequence is consistent with the sorting of at least one first-category optical signal and at least one second-category optical signal in the optical signal;

[0279] Based on the target bit sequence, the connection state of the second optical switch unit is switched.

[0280] In an embodiment of the present application, the first communication device adjusts the reference properties of the optical signal to notify the control unit of the situation of the second communication device, so that the control unit can timely connect or exit the second communication device to the ring optical path without demodulating and modulating the optical signal in the ring optical path.

[0281] It should be noted that: the device provided in the above embodiment only uses the division of the above functional modules as an example when controlling the communication device. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment and the method embodiment for controlling the communication device belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0282] Fig.21A device for controlling a communication device provided in an embodiment of the present application is applied to a first communication device in an optical communication system. The optical communication system includes multiple communication devices, multiple optical switch units and a control unit. The multiple communication devices and the multiple optical switch units are connected through an optical path to form a ring optical path. Each of the multiple optical switch units is used to control a communication device to enter or exit the ring optical path. The first communication device is one of the multiple communication devices. Fig.21 As shown, the device 2100 includes:

[0283] The determination module 2101 is used to determine the state of the second communication device. Fig. 9 Step 901 in the embodiment.

[0284] The adjustment module 2102 is used to adjust the reference property of the optical signal emitted by itself based on the state of the second communication device to obtain a target optical signal. The change rule of the target optical signal on the reference property indicates the state of the second communication device. For specific implementation methods, please refer to Fig. 9 Step 902 in an embodiment.

[0285] Optionally, the first communication device and the second communication device are different communication devices;

[0286] Determine the module used to:

[0287] receiving an optical signal in a ring optical path;

[0288] The optical signal is demodulated to obtain fault information, where the fault information indicates that the second communication device has detected a fault.

[0289] Optionally, the multiple communication devices include at least one master communication device and multiple slave communication devices, each of the multiple optical switch units is connected to a slave communication device, a master communication device in at least one master communication device and the multiple slave communication devices connected to the multiple optical switch units form a ring optical path, the first communication device is one of the at least one master communication device, and the second communication device is one of the multiple slave communication devices.

[0290] Optionally, the first communication device and the second communication device are the same communication device;

[0291] Determine the module used to:

[0292] detecting whether the function of the first communication device is normal;

[0293] The adjustment module is used to:

[0294] When a fault is detected, the reference property of the optical signal emitted by itself is adjusted.

[0295] Optionally, the adjustment module is further configured to:

[0296] When it is determined that the function of the first communication device is normal, the reference property of the optical signal emitted by itself is adjusted.

[0297] Optionally, the adjustment module is used to:

[0298] determining a target bit sequence based on the state of the second communication device, the target bit sequence indicating the state of the second communication device;

[0299] Based on the target bit sequence, the reference property of the optical signal emitted by itself is adjusted to obtain the target optical signal;

[0300] Among them, the target optical signal includes at least one first-class optical signal and at least one second-class optical signal, the duration of the first-class optical signal is a first reference duration, the duration of the second-class optical signal is a second reference duration, the power of the first-class optical signal satisfies a first power condition, the power of the second-class optical signal satisfies a second power condition, and the ordering of at least one first-class optical signal and at least one second-class optical signal in the target optical signal is consistent with the ordering of at least one first bit value and at least one second bit value in the target bit sequence.

[0301] In an embodiment of the present application, the first communication device adjusts the reference properties of the optical signal to notify the control unit of the situation of the second communication device, so that the control unit can timely connect or exit the second communication device to the ring optical path without demodulating and modulating the optical signal in the ring optical path.

[0302] It should be noted that: the device provided in the above embodiment only uses the division of the above functional modules as an example when controlling the communication device. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment and the method embodiment for controlling the communication device belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0303] Fig. 22 A device for controlling a communication device provided in an embodiment of the present application is applied to a second communication device in an optical communication system. The optical communication system includes multiple communication devices, multiple optical switch units and a control unit. The multiple communication devices and the multiple optical switch units are connected through an optical path to form a ring optical path. Each of the multiple optical switch units is used to control a communication device to enter or exit the ring optical path. The second communication device is one of the multiple communication devices. Fig. 22 As shown, the device 2200 includes:

[0304] The sending module 2201 is used to send fault information through an optical signal transmitted through a ring optical path, and the fault information indicates that the second communication device has detected a fault. Fig. 9 Step 901 in the embodiment.

[0305] Optionally, the multiple communication devices include at least one master communication device and multiple slave communication devices, each of the multiple optical switch units is connected to a slave communication device, a master communication device in at least one master communication device and the multiple slave communication devices connected to the multiple optical switch units form a ring optical path, and the second communication device is one of the multiple slave communication devices.

[0306] In an embodiment of the present application, the first communication device adjusts the reference properties of the optical signal to notify the control unit of the situation of the second communication device, so that the control unit can timely connect or exit the second communication device to the ring optical path without demodulating and modulating the optical signal in the ring optical path.

[0307] It should be noted that: the device provided in the above embodiment only uses the division of the above functional modules as an example when controlling the communication device. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment and the method embodiment for controlling the communication device belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0308] Fig.23 Schematic diagram of the structure of a computer device provided in the embodiment of the present application. The control unit and the communication device in the above-mentioned embodiment can be Fig.23 The computer device shown is implemented. Fig.23 The computer device includes a processor 2301, a communication bus 2302, a memory 2303 and at least one communication interface 2304.

[0309] The processor 2301 may be a general-purpose central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0310] The communication bus 2302 is used to transmit information between the above components.

[0311] The memory 2303 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a disk or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2303 may exist independently and be connected to the processor 2301 via the communication bus 2302. The memory 2303 may also be integrated with the processor 2301.

[0312] Among them, the memory 2303 is used to store the program code for executing the solution of the present application, and the execution is controlled by the processor 2301. The processor 2301 is used to execute the program code stored in the memory 2303. The program code may include one or more software modules. The control unit and the communication device in the aforementioned embodiment can determine the data for developing the application through the processor 2301 and one or more software modules in the program code in the memory 2303.

[0313] The communication interface 2304 uses any transceiver or other device to communicate with other devices or communication networks. The communication network can be Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0314] In a specific implementation, as an embodiment, a computer device may include multiple processors, such as Fig.23 2301 and processor 2305 shown in . Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here can refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0315] The above-mentioned computer device can be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the computer device can be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device. The embodiment of the present application does not limit the type of computer device.

[0316] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0317] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0318] The above-described embodiments are provided for the present application and are not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application shall be included in the protection scope of the embodiments of the present application.

Claims

1. A method for controlling a communication device, characterized in that: The method is applied to an optical communication system, which includes a plurality of communication devices, a plurality of optical switch units and a control unit, wherein the plurality of communication devices are connected with the plurality of optical switch units through an optical path to form a ring optical path, and each of the plurality of optical switch units is used to control a communication device to enter or exit the ring optical path; the method includes: The control unit detects an optical signal sent by a first communication device among the plurality of communication devices; The control unit switches the connection state of the second optical switch unit connected to the second communication device based on the variation rule of the reference property of the optical signal, so that the second communication device enters or exits the annular optical path.

2. The method according to claim 1, characterized in that The optical communication system further comprises a signal detection unit; The control unit detects an optical signal sent by a first communication device among the plurality of communication devices, comprising: The control unit detects the optical signal transmitted by the first communication device based on the signal detection unit.

3. The method according to claim 1, characterized in that The control unit switches the connection state of the second optical switch unit connected to the second communication device based on the change rule of the reference attribute of the optical signal, including: If the variation rule of the optical signal on the reference attribute satisfies a first rule, determining fault information based on the variation rule of the optical signal on the reference attribute, the fault information indicating that the second communication device has detected a fault; The control unit controls the second optical switch unit to switch from an access state to a bypass state, so that the second communication device exits the ring optical path.

4. The method according to claim 3, characterized in that After determining the fault information based on the variation rule of the optical signal on the reference attribute, the method further includes: The control unit controls the third optical switch unit connected to the third communication device to switch from an access state to a bypass state, so that the third communication device exits the ring optical path; The third communication device is a previous-hop communication device of the second communication device in the ring optical path.

5. The method according to claim 3, characterized in that The multiple communication devices include at least one master communication device and multiple slave communication devices, each of the multiple optical switch units is connected to a slave communication device, and a master communication device in the at least one master communication device and the multiple slave communication devices connected to the multiple optical switch units form a ring optical path; The first communication device is one of the at least one master communication device, and the second communication device is one of the plurality of slave communication devices.

6. The method according to claim 3, characterized in that The multiple communication devices include at least one master communication device and multiple slave communication devices, each of the multiple optical switch units is connected to a slave communication device, and a master communication device in the at least one master communication device and the multiple slave communication devices connected to the multiple optical switch units form a ring optical path; The first communication device and the second communication device are the same slave communication device among the plurality of slave communication devices.

7. The method according to claim 1, characterized in that The first communication device and the second communication device are the same communication device, and the second optical switch unit is the first optical switch unit connected to the first communication device; The control unit switches the connection state of the second optical switch unit connected to the second communication device based on the change rule of the reference attribute of the optical signal, including: If the variation rule of the optical signal on the reference attribute does not satisfy the second rule and the second optical switch unit connected to the second communication device is in the access state, the second optical switch unit is controlled to switch from the access state to the bypass state so that the second communication device exits the ring optical path.

8. The method according to claim 7, characterized in that The control unit switches the connection state of the second optical switch unit connected to the second communication device based on the change rule of the reference attribute of the optical signal, including: If the variation rule of the optical signal on the reference attribute satisfies a third rule and the second optical switch unit is in a bypass state, the second optical switch unit is controlled to switch from the bypass state to the access state so that the second communication device accesses the ring optical path.

9. The method according to claim 1, characterized in that The reference attribute is power; The control unit switches the connection state of the second optical switch unit connected to the second communication device based on the change rule of the reference attribute of the optical signal, including: If the optical signal includes at least one first-category optical signal and at least one second-category optical signal, and the duration of the first-category optical signal is a first reference duration, the duration of the second-category optical signal is a second reference duration, the power of the first-category optical signal satisfies a first power condition, and the power of the second-category optical signal satisfies a second power condition, then based on the sorting of the at least one first-category optical signal and the at least one second-category optical signal in the optical signal, a target bit sequence is determined, and the sorting of at least one first bit value and at least one second bit value in the target bit sequence is consistent with the sorting of the at least one first-category optical signal and the at least one second-category optical signal in the optical signal; Based on the target bit sequence, a connection state of the second optical switch unit is switched.

10. A method for controlling a communication device, characterized in that: The method is applied to an optical communication system, which includes a plurality of communication devices, a plurality of optical switch units and a control unit, wherein the plurality of communication devices are connected with the plurality of optical switch units through an optical path to form a ring optical path, and each of the plurality of optical switch units is used to control a communication device to enter or exit the ring optical path; the method includes: A first communication device among the plurality of communication devices determines a status of a second communication device; The first communication device adjusts the reference property of the optical signal emitted by itself based on the state of the second communication device to obtain a target optical signal, and a variation pattern of the target optical signal on the reference property indicates the state of the second communication device.

11. The method according to claim 10, characterized in that The first communication device and the second communication device are different communication devices; The first communication device determines a state of the second communication device, including: The first communication device receives the optical signal in the annular optical path; The first communication device demodulates the optical signal to obtain fault information, where the fault information indicates that the second communication device has detected a fault.

12. The method according to claim 11, characterized in that The multiple communication devices include at least one master communication device and multiple slave communication devices, each of the multiple optical switch units is connected to a slave communication device, a master communication device in the at least one master communication device and the multiple slave communication devices connected to the multiple optical switch units form a ring optical path, the first communication device is one of the at least one master communication device, and the second communication device is one of the multiple slave communication devices.

13. The method according to claim 10, characterized in that The first communication device and the second communication device are the same communication device; The first communication device determines a state of the second communication device, including: The first communication device detects whether its function is normal; The first communication device adjusts a reference property of an optical signal emitted by the first communication device based on a state of the second communication device, including: When the first communication device detects a fault, the reference property of the optical signal emitted by the first communication device is adjusted.

14. The method according to claim 13, characterized in that The first communication device adjusts a reference property of an optical signal emitted by the first communication device based on a state of the second communication device, including: When the first communication device determines that its function is normal, it adjusts the reference property of the optical signal emitted by itself.

15. The method according to claim 10, characterized in that The first communication device adjusts the reference property of the optical signal emitted by itself based on the state of the second communication device to obtain the target optical signal, including: The first communication device determines a target bit sequence based on a state of the second communication device, wherein the target bit sequence indicates the state of the second communication device; The first communication device adjusts a reference property of an optical signal emitted by itself based on the target bit sequence to obtain the target optical signal; The target optical signal includes at least one first-class optical signal and at least one second-class optical signal, the duration of the first-class optical signal is a first reference duration, the duration of the second-class optical signal is a second reference duration, the power of the first-class optical signal satisfies a first power condition, the power of the second-class optical signal satisfies a second power condition, and the ordering of the at least one first-class optical signal and the at least one second-class optical signal in the target optical signal is consistent with the ordering of at least one first bit value and at least one second bit value in the target bit sequence.

16. A method for controlling a communication device, characterized in that: The method is applied to an optical communication system, which includes a plurality of communication devices, a plurality of optical switch units and a control unit, wherein the plurality of communication devices are connected with the plurality of optical switch units through an optical path to form a ring optical path, and each of the plurality of optical switch units is used to control a communication device to enter or exit the ring optical path; the method includes: A second communication device among the plurality of communication devices sends fault information via an optical signal transmitted through the ring optical path, wherein the fault information indicates that the second communication device has detected a fault.

17. The method according to claim 16, characterized in that The multiple communication devices include at least one master communication device and multiple slave communication devices, each of the multiple optical switch units is connected to a slave communication device, a master communication device in the at least one master communication device and the multiple slave communication devices connected to the multiple optical switch units form a ring optical path, and the second communication device is one of the multiple slave communication devices.

18. A device for controlling a communication device, characterized in that: The device is applied to a control unit in an optical communication system, wherein the optical communication system further comprises a plurality of communication devices and a plurality of optical switch units, wherein the plurality of communication devices and the plurality of optical switch units are connected via an optical path to form a ring optical path, wherein each of the plurality of optical switch units is used to control a communication device to access or exit the ring optical path; the device comprises: a detection module, configured to detect an optical signal sent by a first communication device among the plurality of communication devices; The switching module is used to switch the connection state of the second optical switch unit connected to the second communication device based on the change rule of the reference property of the optical signal, so that the second communication device can access or exit the ring optical path.

19. A device for controlling a communication device, characterized in that: The device is applied to a first communication device in an optical communication system, wherein the optical communication system comprises a plurality of communication devices, a plurality of optical switch units and a control unit, wherein the plurality of communication devices are connected with the plurality of optical switch units through an optical path to form a ring optical path, wherein each of the plurality of optical switch units is used to control a communication device to access or exit the ring optical path, and the first communication device is one of the plurality of communication devices; the device comprises: A determination module, configured to determine a state of a second communication device; The adjustment module is used to adjust the reference property of the optical signal emitted by the second communication device based on the state of the second communication device to obtain a target optical signal, wherein the change rule of the target optical signal on the reference property indicates the state of the second communication device.

20. A device for controlling a communication device, characterized in that: The device is applied to a second communication device in an optical communication system, wherein the optical communication system comprises a plurality of communication devices, a plurality of optical switch units and a control unit, wherein the plurality of communication devices are connected with the plurality of optical switch units through an optical path to form a ring optical path, wherein each of the plurality of optical switch units is used to control a communication device to access or exit the ring optical path, and the second communication device is one of the plurality of slave communication devices; the device comprises: A sending module is used to send fault information through the optical signal transmitted by the ring optical path, and the fault information indicates that the second communication device has detected a fault.

21. A control unit, characterized in that: The control unit includes a memory and a processor; The memory is used to store a program that supports the device to execute the method according to any one of claims 1 to 9, and to store data involved in implementing the method according to any one of claims 1 to 9; The processor is configured to execute the program stored in the memory.

22. A communication device, characterized in that: The communication device includes a memory and a processor; The memory is used to store a program that supports the device to execute the method described in any one of claims 10 to 15, and to store data involved in implementing the method described in any one of claims 10 to 15; The processor is configured to execute the program stored in the memory.

23. A communication device, characterized in that: The communication device includes a memory and a processor; The memory is used to store a program that supports the device to execute the method described in any one of claims 16-17, and to store data involved in implementing the method described in any one of claims 16-17; The processor is configured to execute the program stored in the memory.

24. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method described in any one of claims 1 to 9, or the method described in any one of claims 10 to 15, or the method described in any one of claims 16 to 17.