Method, apparatus, electronic device, and FTTR network system for data transmission
By pre-establishing the main and backup links in the optical fiber communication system, the problem of rapid switching when the fiber link is abnormal is solved, service interruption is reduced, and the reliability of the communication system is improved.
Patent Information
- Application Number
- CN202510134404.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-06
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2045-02-06
AI Technical Summary
In fiber optic communication scenarios, the prior art cannot quickly switch to the wireless communication link when the fiber optic link is abnormal, resulting in service interruption.
The primary and secondary links for fiber optic communication are pre-established between the master and the slave. When the primary link is abnormal, it switches to the secondary link, including the combination of optical fiber and wireless communication links.
It realizes rapid switching to the backup link when fiber link is abnormal, reducing link switching delay and reducing the risk of service interruption.
Smart Images

Figure CN119603586B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technologies, and particularly to a method, apparatus, electronic device, and FTTR network system for data transmission. Background Art
[0002] In a fiber optic communication scenario, an optical link for signal transmission is usually established between a master device and a slave device in a Fiber To The Room (FTTR) network to communicate through this optical link and thus serve a single household or enterprise.
[0003] For example, an Optical Line Terminal (OLT) in the FTTR network can be used as the master device, and an Optical Network Unit (ONU) in the FTTR network can be used as the slave device to create an optical link between the OLT and the ONU.
[0004] Under the related art, if the optical link is detected to be abnormal, a wireless communication link is usually created between the master device and the slave device, and then the current communication link is switched to this wireless communication link.
[0005] However, in this way, the link switching usually cannot be completed within a short time, which may cause service interruption. Summary of the Invention
[0006] To solve the above technical problems, embodiments of the present disclosure provide a method, apparatus, electronic device, and FTTR network system for data transmission.
[0007] In a first aspect, an FTTR network system provided in embodiments of the present disclosure includes: a master device and a slave device. The master device is used to connect to an upstream network based on an optical fiber, and the slave device is used to provide access services to a terminal device. Among them,
[0008] There are a primary link and a backup link for optical fiber communication between the master device and the slave device;
[0009] When the primary link is normal, the master device communicates with the slave device through the primary link;
[0010] When the primary link is abnormal, the master device communicates with the slave device through the backup link.
[0011] In one implementation, a first downstream Passive Optical Network (PON) interface is configured on the master device, and a first upstream PON interface is configured on the slave device;
[0012] The primary link includes an optical link between the first downstream PON interface and the first upstream PON interface;
[0013] The standby link includes a wireless communication link between the master device and the slave device.
[0014] In one embodiment, the master device is configured with a first downlink PON interface and a second downlink PON interface; the primary link includes an optical link between the first downlink PON interface and the slave device; the standby link includes an optical link between the second downlink PON interface and the slave device.
[0015] In one embodiment, the master device includes a primary master device and a standby master device. The primary master device is configured with a first downlink PON interface, and the standby master device is configured with a second downlink PON interface. The slave device is configured with a first uplink PON interface and a second uplink PON interface;
[0016] The primary link includes an optical link between the first downlink PON interface and the first uplink PON interface;
[0017] The standby link includes an optical link between the second downlink PON interface and the first uplink PON interface.
[0018] In one embodiment, the slave device is used to: send a link switching notification to the standby master device when detecting an abnormality in the primary link; the standby master device is used to: enable the standby link to communicate with the slave device when determining that the link switching notification is received.
[0019] In one embodiment, a device communication channel is established between the primary master device and the standby master device;
[0020] The device communication channel is used to synchronize the device status information of the slave device between the primary master device and the standby master device;
[0021] Wherein, the device status information is applied to the service interaction between the primary master device and the standby master device and the slave device respectively.
[0022] In one embodiment, a device communication channel is established between the primary master device and the standby master device;
[0023] The primary master device is used to: when determining that the configuration synchronization condition is met, synchronize the communication configuration information to the standby master device through the device communication channel;
[0024] Wherein, the communication configuration information is applied to the service interaction between the primary master device and the standby master device and the slave device respectively.
[0025] In one embodiment, the FTTR network system further includes an optical splitter; the optical splitter includes a first input interface, a second input interface and an output interface. The first input interface is connected to the first downlink PON interface, the second input interface is connected to the second downlink PON interface, and the output interface is connected to the slave device;
[0026] The primary link passes through the first input interface and the output interface of the optical splitter;
[0027] The standby link passes through the second input interface and the output interface of the optical splitter.
[0028] In one implementation, the FTTR network system further includes a first optical splitter and a second optical splitter; the first optical splitter includes a first input interface and a first output interface, and the second optical splitter includes a second input interface and a second output interface; the slave device is configured with a first upstream PON interface and a second upstream PON interface;
[0029] The first input interface is connected to the first downstream PON interface, and the first output interface is connected to the first upstream PON interface; the second input interface is connected to the second downstream PON interface, and the second output interface is connected to the second upstream PON interface;
[0030] The primary link passes through the first input interface, the first output interface, and the first upstream PON interface;
[0031] The standby link passes through the second input interface, the second output interface, and the second upstream PON interface.
[0032] In a second aspect, an embodiment of the present disclosure provides a data transmission method, which is applied to the master device in any of the FTTR network systems in the first aspect. The method includes:
[0033] When the master device is the primary master device and the primary link is normal, communicate with the slave device through the primary link;
[0034] When the master device is the standby master device and the primary link is abnormal, communicate with the slave device through the standby link;
[0035] Wherein, the primary master device and the standby master device are the same master device or different master devices in the FTTR network system.
[0036] In a third aspect, an embodiment of the present disclosure provides a data transmission method, which is applied to the slave device in any of the FTTR network systems in the first aspect. The method includes:
[0037] When the primary link is normal, communicate with the primary master device through the primary link;
[0038] When the primary link is abnormal, communicate with the standby master device through the standby link;
[0039] Wherein, the primary master device and the standby master device are the same master device or different master devices in the FTTR network system.
[0040] Fourth aspect, an apparatus for data transmission is provided in an embodiment of the present disclosure, which is applied to the master device of any one of the FTTR network systems in the first aspect above. The apparatus includes:
[0041] A first communication unit, configured to communicate with a slave device through a primary link when the primary link is normal and the master device is the primary master device;
[0042] A second communication unit, configured to communicate with the slave device through a backup link when the primary link is abnormal and the master device is the backup master device;
[0043] Wherein, the primary master device and the backup master device are the same master device or different master devices in the FTTR network system.
[0044] Fifth aspect, an apparatus for data transmission is provided in an embodiment of the present disclosure, which is applied to the slave device of any one of the FTTR network systems in the first aspect above. The apparatus includes:
[0045] A first communication unit, configured to communicate with the primary master device through the primary link when the primary link is normal;
[0046] A second communication unit, configured to communicate with the backup master device through the backup link when the primary link is abnormal;
[0047] Wherein, the primary master device and the backup master device are the same master device or different master devices in the FTTR network system.
[0048] Sixth aspect, an electronic device is provided in an embodiment of the present disclosure, including:
[0049] A processor; and
[0050] A memory storing computer instructions, the computer instructions being configured to cause the processor to execute the steps of the method provided in any one of the various optional implementation manners of the data transmission above.
[0051] Seventh aspect, a computer-readable storage medium is provided in an embodiment of the present disclosure, storing computer instructions, the computer instructions being configured to cause a computer to execute the steps of the method provided in any one of the various optional implementation manners of the data transmission above.
[0052] Eighth aspect, a computer program product is provided in an embodiment of the present disclosure, including computer-readable code or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in the processor of the electronic device, the processor in the electronic device executes the steps of the method provided in any one of the various optional implementation manners of the data transmission above.
[0053] The method for data transmission in the embodiments of the present disclosure is applied to an FTTR network system, which includes a master device and a slave device. The master device is used to connect to the upstream network based on an optical fiber, and the slave device is used to provide access services to terminal devices. There are a primary link and a backup link for optical fiber communication between the master device and the slave device. The method includes: when the primary link is normal, the master device and the slave device communicate through the primary link; when the primary link is abnormal, the master device and the slave device communicate through the backup link. In this way, when the primary link is abnormal, it can be timely switched to the backup link, reducing the latency of link switching and thus reducing the problem of service interruption. Description of the Drawings
[0054] Figure 1 It is an example diagram of the architecture of an FTTR network in the embodiments of the present disclosure.
[0055] Figure 2 It is an example diagram of the architecture of an enterprise-level FTTR network in the embodiments of the present disclosure.
[0056] Figure 3 It is a flowchart of a method for data transmission in the embodiments of the present disclosure.
[0057] Figure 4 It is an example diagram of a single-homing Type B protection mode network in the embodiments of the present disclosure.
[0058] Figure 5 It is an example diagram of a single-homing Type C protection mode network in the embodiments of the present disclosure.
[0059] Figure 6 It is a structural diagram of a master device in the embodiments of the present disclosure.
[0060] Figure 7 It is a structural diagram of a slave device in the embodiments of the present disclosure.
[0061] Figure 8 It is an example diagram of a dual-homing Type B protection mode network in the embodiments of the present disclosure.
[0062] Figure 9 It is an example diagram of a dual-homing Type C protection mode network in the embodiments of the present disclosure.
[0063] Figure 10 It is a structural block diagram of a device for data transmission in the embodiments of the present disclosure.
[0064] Figure 11 It is a structural block diagram of another device for data transmission in the embodiments of the present disclosure. Detailed Embodiments
[0065] The technical solutions of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present disclosure without creative efforts belong to the scope of protection of the present disclosure. In addition, the technical features involved in different embodiments of the present disclosure described below can be combined with each other as long as they do not conflict with each other.
[0066] In a fiber optic communication scenario, if the fiber optic communication link between the OLT and the ONU in the FTTR network is abnormal, then usually after detecting the abnormal fiber optic communication link, a wireless communication link is usually created between the OLT and the ONU to perform data communication through the wireless communication link. However, in this way, the link switching usually cannot be completed in a short time, which may cause service interruption.
[0067] Based on the defects existing in the above related technologies, the embodiments of the present disclosure provide a method, apparatus, electronic device, and FTTR network system for data transmission, aiming to reduce the link switching delay.
[0068] The embodiments of the present disclosure provide a method for data transmission, which can be applied to an FTTR network system. The FTTR network system includes a master device and a slave device. The master device is used to connect to the upstream network based on an optical fiber, and the slave device is used to provide access services to terminal devices. There are a primary link and a backup link for fiber optic communication between the master device and the slave device.
[0069] Among them, the FTTR network system is constructed based on the FTTR network, and the FTTR network is created based on the Passive Optical Network (PON) technology. Among them, the FTTR network may also include an Optical Distribution Network (ODN), which includes a splitter and can be used as a transit for the optical link.
[0070] The following will be combined with Figure 1 to illustrate the architecture of the FTTR network. Refer to Figure 1 As shown, it is an example diagram of the architecture of an FTTR network. Figure 1 In the figure, the FTTR network includes a first network device, a splitter, and a plurality of second network devices. Each device is connected by an optical fiber.
[0071] Among them, the first network device includes an upstream optical port and a downstream optical port. The optical splitter is a passive device, also known as an optical branching device. The upstream optical port of the first network device is connected to the upstream network device in the upstream network, and the downstream optical port of the first network device is connected to the upstream optical port of the second network device through the optical splitter. The first network device is the total entrance in the FTTR network. The second network device acts as an ONU in the FTTR network.
[0072] The first network device is located in both the upstream network and the FTTR network, and its roles in the upstream network and the FTTR network are different. The first network device acts as an ONU in the upstream network, and the upstream network device acts as an OLT in the upstream network.
[0073] Among them, the OLT device is an important central office device, which can be connected to devices such as switches in the front end (aggregation layer) by optical fibers and other means, and is interconnected with the optical splitter through a single optical fiber to realize the control and management of the ONU.
[0074] Optionally, the first network device and the second network device can also have radio frequency capabilities and can provide wireless network communication technology (WiFi) services for user devices through radio frequency ports.
[0075] A common FTTR network usually includes one first network device and multiple second network devices. The number range of the second network devices is usually 4, which is mainly suitable for network coverage in homes or small scenarios. To cover larger scenarios, an enterprise-level FTTR network can also be used. The enterprise-level FTTR network includes multiple sub-FTTR networks, and different sub-FTTR networks are used to cover different sub-areas.
[0076] Refer to Figure 2 As shown, it is an architecture example diagram of an enterprise-level FTTR network. Figure 2 In it, three regions and three sub-FTTR networks are taken as examples for illustration. Each sub-FTTR network includes a first network device, an optical splitter, and multiple second network devices. Each sub-FTTR network is connected to the upstream network device in the upstream network through the optical splitter in the upstream network to achieve scenario coverage. The number range of the second network devices in a sub-FTTR network in the enterprise-level FTTR network is usually 32.
[0077] It should be noted that the FTTR network can include at least one OLT, at least one ONU, and at least one optical splitter.
[0078] Next, in combination with the above FTTR network, the FTTR network system in the embodiments of the present disclosure will be described in detail. The FTTR network system includes a master device and a slave device, and can also include one or more optical splitters.
[0079] It should be noted that in the embodiments of the present disclosure, only the OLT (i.e., the above-mentioned first network device) of the PON network inside the FTTR network is used as the master device, and the ONU (i.e., the above-mentioned second network device) of the PON network inside the FTTR network is used as the slave device for illustration. In actual applications, the master device and the slave device can also be other devices in the FTTR network, which is not limited herein.
[0080] In one implementation, when the primary link is normal, the master device communicates with the slave device through the primary link; when the primary link is abnormal, the master device communicates with the slave device through the backup link.
[0081] In this way, it is possible to switch to the backup link in a timely manner when the primary link is abnormal.
[0082] In the embodiments of the present disclosure, there are a primary link and a backup link for optical fiber communication between the master device and the slave device.
[0083] In one implementation, before communication, a primary link and a backup link for optical fiber communication for communication can be created between the master device and the slave device. Among them, the primary link and the backup link can be created in the following multiple ways:
[0084] Method 1: Create an optical link connecting the master device and the slave device as the primary link, and create a wireless communication link connecting the master device and the slave device as the backup link.
[0085] In one implementation, the master device is configured with a first downlink PON interface, and the slave device is configured with a first uplink PON interface; the primary link includes an optical link between the first downlink PON interface and the first uplink PON interface; the backup link includes a wireless communication link between the master device and the slave device.
[0086] Furthermore, the FTTR network system may further include a first optical splitter, which includes a first input interface and a first output interface. The first input interface is connected to the first downlink PON interface, and the first output interface is connected to the first uplink PON interface; the primary link passes through the first input interface, the first output interface, and the first uplink PON interface.
[0087] Optionally, if there are multiple slave devices, the master device can create wireless communication links with each slave device respectively, or can create wireless communication links with some slave devices according to user configuration, which is not limited herein.
[0088] Method 2: Adopt the single-homing method to create a primary link and a backup link connecting the master device and the slave device.
[0089] Among them, single homing means that one end of the primary link and the standby link is the same primary device. The primary device is configured with a first downlink PON interface and a second downlink PON interface; the primary link includes an optical link between the first downlink PON interface and the slave device; the standby link includes an optical link between the second downlink PON interface and the slave device.
[0090] In the above-mentioned Method 1 and Method 2, one end of the primary link and the standby link is the same primary device, and the other end is the same slave device.
[0091] Method 3: Adopt the dual-homing method to create a primary link connecting the primary device and the slave device, and a standby link connecting another primary device and the slave device.
[0092] Among them, dual homing means that the primary device sides of the primary link and the standby link are different primary devices. The primary device includes a primary primary device and a standby primary device. The primary primary device is configured with a first downlink PON interface, and the standby primary device is configured with a second downlink PON interface. The slave device is configured with a first uplink PON interface and a second uplink PON interface; the primary link includes an optical link between the first downlink PON interface and the first uplink PON interface; the standby link includes an optical link between the second downlink PON interface and the first uplink PON interface.
[0093] This is because in the single-homing mode, there is only one primary device. However, if the primary device itself fails, it will still cause the FTTR network to go down. Therefore, to further improve the reliability of the FTTR network, the above-mentioned dual-homing mode network can also be established.
[0094] Furthermore, in Method 2 and Method 3, the FTTR network system can also include one or more optical splitters, and the optical splitters are used as the transfer points of the primary link and the standby link.
[0095] In one implementation, the FTTR network system also includes an optical splitter; the optical splitter includes a first input interface, a second input interface, and an output interface. The first input interface is connected to the first downlink PON interface, the second input interface is connected to the second downlink PON interface, and the output interface is connected to the slave device; the primary link passes through the first input interface and the output interface of the optical splitter; the standby link passes through the second input interface and the output interface of the optical splitter.
[0096] In one implementation, the FTTR network system further includes a first optical splitter and a second optical splitter; the first optical splitter includes a first input interface and a first output interface, and the second optical splitter includes a second input interface and a second output interface; the slave device is configured with a first upstream PON interface and a second upstream PON interface; the first input interface is connected to the first downstream PON interface, and the first output interface is connected to the first upstream PON interface; the second input interface is connected to the second downstream PON interface, and the second output interface is connected to the second upstream PON interface; the primary link passes through the first input interface, the first output interface and the first upstream PON interface; the backup link passes through the second input interface, the second output interface and the second upstream PON interface.
[0097] Among them, in the second mode, the first downstream PON interface and the second downstream PON interface are located in the same master device. In the third mode, the first downstream PON interface is located in the primary master device, and the second downstream PON interface is located in the backup master device.
[0098] In one implementation, when the master device includes a primary master device and a backup master device, the slave device notifies the backup master device of the link switch. The slave device is used for: when detecting that the primary link is abnormal, sending a link switch notification to the backup master device; the backup master device is used for: when determining that the link switch notification is received, enabling the backup link to communicate with the slave device.
[0099] Optionally, a device communication channel can also be established between the primary master device and the backup master device for data synchronization. The synchronized data can include device status information and communication configuration information.
[0100] In one implementation, the device communication channel is used to synchronize the device status information of the slave device between the primary master device and the backup master device.
[0101] Among them, the device status information is applied to the service interaction between the primary master device and the backup master device and the slave device respectively. Optionally, the device status information can include at least one of the following: the online / offline status of the slave device, the status change information of the slave device, the online / offline status of the terminals attached to the slave device, the status change information of the terminals attached to the slave device, and the specified alarm information.
[0102] In practical applications, the status change information can be the change of a relatively important status, the specified alarm information can be an alarm information above level one, and the device status information can be set according to the actual application scenario, which is not limited here.
[0103] In one implementation, a device communication channel is established between the primary master device and the backup master device; the primary master device is used for: when determining that the configuration synchronization condition is met, synchronizing the communication configuration information to the backup master device through the device communication channel.
[0104] Among them, the communication configuration information is applied to the service interaction between the active master device and the standby master device and the slave device respectively. Optionally, the configuration synchronization condition may be that the current communication link is switched to the active link of the active master device, or the communication configuration information is updated.
[0105] For example, when the active master device determines that there is an update in the communication configuration information, it obtains the updated communication configuration information; and synchronizes the updated communication configuration information to the standby master device through the device communication channel.
[0106] Next, in combination with Figure 3 a method for data transmission applied to the above FTTR network system will be described. Refer to Figure 3 As shown, it is a flowchart of a method for data transmission, and the specific implementation process of this method is as follows:
[0107] Step 301: When the active link is normal, the master device communicates with the slave device through the active link.
[0108] Step 302: When the active link is abnormal, the master device communicates with the slave device through the standby link.
[0109] Among them, the active master device and the standby master device are the same master device or different master devices in the FTTR network system.
[0110] That is to say, in the case where the master device is the active master device, when the active link is normal, it communicates with the slave device through the active link; in the case where the master device is the standby master device, when the active link is abnormal, it communicates with the slave device through the standby link. That is to say, when the active link is normal, the slave device communicates with the active master device through the active link; when the active link is abnormal, the slave device communicates with the standby master device through the standby link.
[0111] It should be noted that in the case where the active master device and the standby master device are the same master device, one end of the active link and the standby link is the same master device, and the other end is the same slave device. Then both the master device and the slave device can monitor the communication of the active link. When any party detects that the active link is abnormal, the current communication link is switched from the active link to the standby link.
[0112] In one implementation, the master device detects the active link and, according to the detection result, when it determines that the active link is abnormal, switches the current communication link from the active link to the standby link. The slave device also detects the active link and, according to the detection result, when it determines that the active link is abnormal, switches the current communication link from the active link to the standby link.
[0113] Further, when either the master device or the slave device determines that the primary link has returned to normal, the current communication link can also be switched from the backup link to the primary link.
[0114] Optionally, the primary link returning to normal can be determined based on the received primary link recovery notification, or determined based on the status field corresponding to the primary link returning to normal. That is, after the primary link returns to normal, the status field is updated to normal. Then, when the master device detects that the status field is updated to normal, it determines that the primary link has been restored. In practical applications, the method for determining the primary link returning to normal can be set according to the actual application scenario and is not limited here.
[0115] In one implementation, when the master device determines that it has detected the primary link returning to normal, it switches the current communication link from the backup link to the primary link. When the slave device determines that it has detected the primary link returning to normal, it switches the current communication link from the backup link to the primary link.
[0116] Further, in the case where the master device includes a primary master device and a backup master device, the slave device can notify the backup master device of the link switch.
[0117] In one implementation, the slave device detects the primary link and, based on the detection result, when it determines that the primary link is abnormal, it switches the current communication link from the primary link to the backup link and sends a link switch notification to the backup master device. When the master device determines that it has received the link switch notification sent by the slave device, it enables the backup link to communicate with the slave device.
[0118] In this way, it is possible to detect an abnormal primary link and, when the backup link is normal, perform a link switch.
[0119] Further, when the slave device determines that it has detected the primary link returning to normal, it switches the current communication link from the backup link to the primary link and can send a link switch notification to the backup master device again. Based on this link switch notification, the backup master device deactivates the backup link for communicating with the slave device. When the primary master device detects that the primary link has returned to normal, it enables the primary link.
[0120] In practical applications, any link detection technology can be selected according to the actual application scenario to detect the communication link (i.e., the primary link and / or the backup link) to detect whether the communication link is abnormal. For example, it can be to detect whether the link message is reachable, whether the peer device is normally present, and whether the optical signal strength is normal, etc., and is not limited here.
[0121] Further, in the case of currently communicating through the primary link, the primary link can also be switched to the backup link when any one of the following conditions is met:
[0122] Item 1: Determine the link switching time that reaches a preset value for switching the current communication link to a standby link.
[0123] Item 2: Receive a link switching instruction from the user for the primary link; the link switching instruction is used to switch the current communication link to a standby link.
[0124] Item 3: Receive a link switching notification sent by other devices for switching the current communication link to a standby link.
[0125] In practical applications, the link switching conditions can be set according to the actual application scenario and are not limited here.
[0126] Furthermore, a device communication channel is also established between the primary master device and the standby master device.
[0127] In one implementation, when the primary master device determines that it has received the device status information of the slave device, it can also synchronize the device status information to the standby master device through the device communication channel. Similarly, when the standby master device determines that it has received the device status information of the slave device, it can also synchronize the device status information to the primary master device through the device communication channel.
[0128] In one implementation, when the primary master device determines that it meets the configuration synchronization conditions, it can also synchronize communication configuration information to the standby master device through the device communication channel.
[0129] Optionally, there can be one primary link, and there can be one or more standby links. Since there may be multiple standby links, when there are multiple standby links, the priorities of each standby link can also be set, and the standby link can be selected and switched according to the priorities of each standby link.
[0130] In one implementation, if there are multiple standby links, determine the respective priorities of each standby link; select the standby link with the highest priority from each standby link; switch the current communication link to the standby link with the highest priority.
[0131] Optionally, the respective priorities of each standby link can be preset fixed levels, can be dynamically set according to the link quality of the current communication links, can also be set according to user instructions, and can also be set according to the scenario requirements of the current scenario, and are not limited here.
[0132] The following further elaborates in detail on the link creation and link switching in the above Method 1 in combination with the FTTR network system.
[0133] In the above-mentioned first method, for one slave device and one master device, an optical link serving as the primary link is first established between the slave device and the master device. Then, the master device sends a link creation notification for wireless communication link creation to the slave device. The link creation notification contains relevant parameters for wireless communication link creation, such as base station subsystem information (BSS Information, BSS) information for establishing a wireless communication link and an authentication code, etc. If the slave device supports the wireless communication link function, after receiving the link creation notification from the master device, it establishes a wireless communication link serving as the backup link with the master device based on the above parameters.
[0134] Optionally, the easyMesh protocol can be used to create a wireless communication link. Further, when creating a wireless communication link, the following method can also be adopted: The slave device can also wirelessly access the BSS provided by the master device in client mode, and then establish a Control And Provisioning of Wireless Access Points (CAPWAP) tunnel on the wireless link. In practical applications, the protocol for creating a wireless communication link can be selected according to the actual application scenario, which is not limited here.
[0135] When currently communicating through the primary link, the wireless communication link only performs keep-alive operations to maintain the existence of the link. When either the slave device or the master device detects an abnormality in the primary link, the wireless communication link is used to send a link switching notification to the other party, and the primary link is switched to the wireless communication link, that is, the data traffic and management and control tunnel are switched to the wireless communication link. When the other party receives the link switching notification, it also switches the primary link to the wireless communication link.
[0136] Further, when either the slave device or the master device detects the recovery of the primary link, it can also switch back to the primary link and can send a link switching notification to the other party. When the other party receives the link switching notification, it also switches back to the primary link and can return a switching confirmation.
[0137] Among them, the optical splitter serves as the transfer between the primary link and the backup link. The primary link and the backup link are transferred through two different input interfaces (i.e., the first input interface and the second input interface) and are respectively connected to two different downstream PON interfaces (i.e., the first downstream PON interface and the second downstream PON interface). The two different downstream PON interfaces are located in the same master device or different master devices; the two different input interfaces are located in the same optical splitter or different optical splitters.
[0138] When two different input interfaces are located on the same splitter, after the active link and the standby link are relayed by the same splitter, they are connected to the same upstream PON interface (i.e., the first upstream PON interface) of the slave device.
[0139] When two different input interfaces are located on different splitters, after the active link and the standby link are relayed by different splitters respectively, they are connected to two different upstream PONs (i.e., the first upstream PON interface and the second upstream PON interface) of the slave device.
[0140] That is to say, one end of the connection of the active link and the standby link is the same slave device, and the other end of the connection can be the same master device, or different master devices, and can be relayed through the same splitter or different splitters.
[0141] Optionally, different communication links can be created based on the Type B protection mode or the Type C protection mode. Among them, the Type B protection mode is that in the FTTR network system, there is a splitter with multiple input interfaces, and the active link and the standby link are respectively connected to the master device through different input interfaces. The Type C protection mode is that in the FTTR network system, there are multiple splitters, and the active link and the standby link are respectively connected to the master device through different splitters.
[0142] Next, in combination with the FTTR network system, the link creation and link switching based on the Type B protection mode and the Type C protection mode in the above-mentioned method 2 will be further described in detail respectively.
[0143] Next, in combination with Figure 4 , an example of link creation using the Type B protection mode in the above-mentioned method 2 will be described. Refer to Figure 4 As shown in Figure 4 , it is an example diagram of a single-homed Type B protection mode network. In
[0144] Next, in combination with Figure 5 , an example of link creation using the Type C protection mode in the above-mentioned method 2 will be described. Refer to Figure 5 As shown in Figure 5In this case, a primary link is created based on the first downstream PON interface of the master device 1, the first input interface of the optical splitter 1, and the first upstream PON interface of the slave device. And a standby link can be created based on the second downstream PON interface, the second input interface of the optical splitter 2, and the second upstream PON interface.
[0145] In the embodiments of the present disclosure, to support the single-homing mode, the master device adds a downstream PON interface for redundant backup. That is, two downstream PON interfaces are provided.
[0146] The following combines Figure 6 to illustrate the structure of the master device by way of example. Refer to Figure 6 As shown, it is a structural diagram of a master device. Figure 6 In this case, the master device includes an upstream PON interface, an upstream ONU, wired services, wireless services, an internal network OLT, and two downstream PON interfaces.
[0147] Among them, the upstream PON interface is used to connect to the upstream network device and transmit the signal through the upstream slave device to the wired service or the wireless service. The OLT chip can perform service control and management, and is used to transmit the service processing data of the wired service or the wireless service to other devices through the downstream PON interface. The two downstream PON interfaces include a first downstream PON interface and a second PON interface. One of the first downstream PON interface and the second PON interface is the downstream primary PON interface, and the other is the downstream standby PON interface. The master device can be connected to the downstream slave device through the downstream primary PON interface and the downstream standby PON interface respectively.
[0148] At the hardware level, an OLT chip is provided in the master device, which can be an independent chip or a Field-Programmable Gate Array (FPGA). This OLT chip can support multiple downstream PON interfaces.
[0149] At the software level, in the internal network OLT, a link management module can be added to monitor the link status of the downstream PON interface. If the downstream primary PON link (such as the primary link) is normal, then control is used to communicate with the slave device through the downstream primary PON interface. If the downstream primary PON link is abnormal and the downstream standby PON link (such as the standby link) is normal, then switch to the downstream standby PON interface to communicate with the slave device. If the current communication with the slave device uses the downstream standby PON link and the downstream primary PON link is restored, then switch back to the downstream primary PON link to communicate with the slave device.
[0150] In practical applications, the structure of the master device may not be limited to hardware single boards and structural components, etc., and can be set according to the actual application scenario.
[0151] In this way, in the case where the master device includes two downstream PON interfaces, a splitter with multiple input interfaces (e.g., 2:N splitter) can be used to form an FTTR network system that supports the single-homing Type B protection mode. Here, 2 is the number of input interfaces, N is a positive integer, and is the number of output interfaces.
[0152] In the embodiments of the present disclosure, to support the Type C protection mode, the slave device adds an upstream PON interface for redundant backup. That is, two upstream PON interfaces are provided. The following will be combined with Figure 7 to illustrate the structure of the slave device by way of example.
[0153] Refer to Figure 7 As shown, it is a structural diagram of a slave device. Figure 7 Among them, the slave device includes multiple upstream PON interfaces, an internal network ONU, wired services, and wireless services.
[0154] At the hardware level, the slave device integrates two ONU chips to support two upstream PON interfaces, namely the first upstream PON interface and the second upstream PON interface. One of them is the upstream primary PON, and the other is the upstream standby PON. Each upstream PON interface can be connected to the ONU chip through a switching chip or other means to accelerate traffic switching. The internal network ONU is a control module for managing the signals received by each upstream PON interface to allocate the signals to wired services or wireless services, and then perform service processing.
[0155] At the software level, a link management module can also be added to the internal network ONU of the slave device to monitor the link status of the upstream PON interface. If the upstream primary PON link (i.e., the primary link) is normal, then control is used to communicate with the master device using the upstream primary PON. If the upstream primary PON link is abnormal and the upstream standby PON link is normal, then switch to the upstream standby PON link (i.e., the standby link) to communicate with the master device. If the current communication with the master device uses the upstream standby PON link and the upstream primary PON link is restored, then it can also switch back to the upstream primary PON link to communicate with the master device.
[0156] In this way, if the master device includes two downstream PON interfaces and the slave device includes two upstream PON interfaces, then a splitter with multiple (e.g., 1:N splitter) can be used to form an FTTR network system that supports the single-homing Type C protection mode. Here, 1 is the number of input interfaces. For enterprise-level FTTR network systems, for areas covered by sub-FTTR network systems that require high-reliability coverage, the single-homing Type B mode or the single-homing Type C mode can be adopted for link creation and communication, so as to improve the reliability of the network link without sacrificing wireless performance.
[0157] Before creating a communication link, one master device can be used as the primary device and the other master device can be used as the standby master device. Optionally, the primary master device and the standby master device can be distinguished by user configuration or by their own negotiation. When negotiating by themselves, the master device with a higher priority, the master device with a shorter running time, or the master device with a smaller physical address (Media Access Control Address, MAC) can be used as the primary master device.
[0158] Next, in combination with the FTTR network system, the link creation and link switching based on the Type B protection mode and the Type C protection mode in the above method 3 will be further described in detail respectively.
[0159] Next, in combination with Figure 8 , an example of link creation using the Type B protection mode in the above method 3 will be described. Refer to Figure 8 As shown, it is an example diagram of a dual-homed Type B protection mode network. Figure 8 It includes two master devices, a 2:N optical splitter, and slave devices. Each master device can be equipped with only one downlink PON interface (i.e., the first downlink PON interface). Figure 8 In it, a primary link is created based on the first downlink PON interface of master device 1 (i.e., the primary master device), the first input interface of optical splitter 1, and the first uplink PON interface of the slave device, and a standby link is created based on the second downlink PON interface of master device 2 (i.e., the standby master device), the second input interface of optical splitter 1, and the first uplink PON interface of the slave device.
[0160] Next, in combination with Figure 9 , an example of link creation using the Type C protection mode in the above method 3 will be described. Refer to Figure 9 As shown, it is an example diagram of a dual-homed Type C protection mode network. Figure 9 In it, a primary link is created based on the first downlink PON interface of master device 1 (i.e., the primary master device), the first input interface of optical splitter 1, and the first uplink PON interface of the slave device, and a standby link is created based on the second downlink PON interface, the second input interface of optical splitter 2, and the second uplink PON interface.
[0161] Next, the link creation and link switching in the above method 3 will be further described in detail.
[0162] First, after the slave device is powered on and accesses the network, it sends a device discovery request for discovering the master device. When the two master devices receive the device discovery request, they will both return a device discovery response to the slave device. The slave device determines whether the master device is the primary device or the standby master device based on the received device discovery response.
[0163] Then, the slave device establishes a primary link with the primary device for normal inter-device protocol communication and data communication. At this time, the primary master device is the control point for this slave device. Also, the slave device establishes a backup link with the backup primary device. The backup link can only perform keep-alive operations to maintain the link in a smooth state.
[0164] When the slave device detects a problem with the primary link itself or a failure of the physical optical link carrying the primary link, that is, when the primary link is abnormal, the slave device promotes the backup link to a temporary primary link, takes over the functions of the primary link, and sends a link switching notification to the backup primary device. When the backup primary device determines that it has received the link switching notification and meets the link switching conditions, it enables the backup link to communicate with the slave device and performs temporary control of its own services. At this time, the backup primary device is the control point for this slave device.
[0165] When the slave device communicates with the backup primary device through the temporary primary link, if the slave device determines that the primary link has been restored, it switches the backup link back to the primary link and sends a link switching notification to the primary master device. When the primary master device determines that it has received the link switching notification, it enables the primary link to communicate with the slave device to switch back to the primary link, the control device switches back from the backup primary device to the primary device, the temporary primary link is downgraded to a backup link, and the backup primary device is notified to end the temporary control. At this time, the primary device is the control point for this slave device. It should be noted that the primary master device and the backup primary device are connected to the upstream network device through different upstream links. Therefore, when the primary master device is abnormal and the slave device switches the current communication link to the backup link, after the backup primary device enables the backup link, the slave device will send the packet to the backup primary device through the backup link. Then, the backup primary device can forward the packet to the upstream network device through the corresponding upstream link. The backup primary device can also forward the packet sent by the upstream network device through this upstream link to the slave device.
[0166] In practical applications, the communication protocol between the slave device and the master device can be set according to the actual application scenario, such as it can be easymesh or CAPWAP.
[0167] The information synchronization between the primary master device and the backup primary device is described below.
[0168] The slave device and the master device perform service interactions through the primary link or the backup link. If the primary master device and the backup primary device are switched, the synchronization of service-related information between the primary master device and the backup primary device is also required, so that when the link is switched, the normal interaction of the service will not be affected, and seamless switching of the service can be achieved.
[0169] First, the primary master device and the slave device can discover each other through a specified protocol, establish a two-way device communication channel, and synchronize the device status information of the slave device received through this device communication channel. Among them, the specified protocol can be set according to the actual application scenario and is not limited here.
[0170] The master device currently communicating with the slave device is the control point of the slave device. When the control point of the slave device determines that it has received the device status information of the slave device, it synchronizes the device status information to another master device. In one implementation, this control point receives the device status information of the slave device in real time and synchronizes this device status information to another master device in real time.
[0171] In one implementation, if the two downlink PON interfaces are located in different master devices, the primary master device establishes a device communication channel with the standby master device; when a master device determines that it has received the device status information of the slave device, it can synchronize the device status information to another master device through the device communication channel.
[0172] Furthermore, if the device communication channel between the primary master device and the standby master device is disconnected, then one master device (e.g., the primary master device) continues to provide control for the connected slave device and stores the received device status information. When it is determined that this device communication channel is restored, the stored device status information is synchronously sent in batches to the master device (e.g., the standby master device).
[0173] Optionally, it can also be pre-set to use the communication configuration information of the primary master device as the standard. Therefore, it can also be synchronized to the standby master device only when the communication configuration information of the primary master device is updated.
[0174] Furthermore, if the device communication channel between the primary master device and the standby master device is disconnected and the communication configuration information of the primary master device changes, then when it is determined that this device communication channel is restored, it is synchronized to the standby master device. When the standby master device enables the connected communication link, seamless switching of services can be achieved.
[0175] Furthermore, there can be multiple standby links. When one standby link is abnormal, it can also be switched to other standby links.
[0176] In the embodiments of the present disclosure, the main link and the backup link for connecting the master device and the slave device in the FTTR network system can be created through the downstream PON interface of the master device, the input interface in the optical splitter, and the upstream PON interface of the slave device. The main link and the backup link can be connected to the same master device (i.e., single-homing mode), or can be connected to different master devices (i.e., dual-homing mode), and can also be relayed through two input interfaces of a single optical splitter to achieve Type B mode protection, or can be relayed through two optical splitters and respectively connected to the two upstream PON interfaces of the slave device to achieve Type C mode protection. Thus, when an abnormality occurs in the main link, etc., it can be quickly switched to the backup link, the optical link communication quality is high, the switching delay is small, the service interruption problem is reduced, and the high-reliability network requirements can be met without sacrificing the wireless performance.
[0177] Furthermore, by pre-creating a wireless communication link and directly switching to the wireless communication link when a link switch is needed, the switching speed to the wireless communication link is improved, the service interruption problem can also be reduced, and no additional cost is incurred.
[0178] Further, when the dual-homing mode is adopted, the risk brought by the failure of one master device can be reduced, and information synchronization can also be performed between the primary master device and the backup master device. Thus, when the link is switched, service interaction can be performed through the synchronized information to achieve seamless switching of services.
[0179] Based on the same inventive concept, an apparatus for data transmission is also provided in the embodiments of the present disclosure. Since the principle of solving problems by the above apparatus and device is similar to that of a method for data transmission, the implementation of the above apparatus can refer to the implementation of the method, and the repeated parts will not be elaborated. The apparatus can be applied to an electronic device. The present disclosure does not limit the type of the electronic device, which can be any device type suitable for implementation, such as a terminal device and a server, etc., and the present disclosure will not elaborate on this. The apparatus embodiment can be implemented by software, or can be implemented by hardware or a combination of software and hardware. Taking software implementation as an example, as a logically meaningful apparatus, it is formed by the processor of the electronic device where it is located reading the corresponding computer program instructions in the non-volatile memory into the memory for running.
[0180] Refer to Figure 10 As shown, it is a structural block diagram of an apparatus for data transmission in the embodiments of the present disclosure. In some embodiments, the apparatus for data transmission exemplified by the present disclosure includes:
[0181] A first communication unit 1001, configured to communicate with a slave device through a main link when the main link is normal in the case that the master device is the primary master device;
[0182] A second communication unit 1002, configured to communicate with a slave device via a standby link when the main link is abnormal and the master device is a standby master device;
[0183] Wherein, the active master device and the standby master device are the same master device or different master devices in the FTTR network system.
[0184] Refer to Figure 11 As shown, it is a structural block diagram of another data transmission device in an embodiment of the present disclosure. In some embodiments, the data transmission device of the present disclosure example includes:
[0185] A first communication unit 1101, configured to communicate with an active master device via an active link when the active link is normal;
[0186] A second communication unit 1102, configured to communicate with a standby master device via a standby link when the active link is abnormal;
[0187] Wherein, the active master device and the standby master device are the same master device or different master devices in the FTTR network system.
[0188] The data transmission method in the embodiment of the present disclosure is applied to an FTTR network system, which includes a master device and a slave device. The master device is used to connect to the upstream network based on an optical fiber, and the slave device is used to provide access services to terminal devices. There are an active link and a standby link for optical fiber communication between the master device and the slave device. The method includes: when the active link is normal, the master device and the slave device communicate via the active link; when the active link is abnormal, the master device and the slave device communicate via the standby link. In this way, when the active link is abnormal, it can be timely switched to the standby link, reducing the link switching delay and further reducing the service interruption problem.
[0189] In the embodiment of the present disclosure, an electronic device is further provided, including:
[0190] A processor; and
[0191] A memory storing computer instructions for causing the processor to execute the method of any of the above embodiments.
[0192] In the embodiment of the present disclosure, a computer-readable storage medium is provided, storing computer instructions for causing a computer to execute the method of any of the above embodiments.
[0193] Embodiments of the present disclosure also provide a computer program product, including computer-readable code or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device is configured to execute the methods of any of the above embodiments.
[0194] The foregoing are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various modifications and variations can be made to the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the scope of protection of the present application.
Claims
1. An optical fiber to room FTTR network system, characterized in that, Including: A master device and a slave device, where the master device is used to connect to the upstream network based on an optical fiber, and the slave device is used to provide access services to terminal devices. Among them, The master device includes an active master device and a standby master device. There is an active link for optical fiber communication between the active master device and the slave device, and there is a standby link for optical fiber communication between the standby master device and the slave device; When the active link is normal, the active master device communicates with the slave device through the active link; When the active link is abnormal, the standby master device communicates with the slave device through the standby link; Among them, a device communication channel is established between the active master device and the standby master device; the active master device is used to synchronize service-related information including the status information of the slave device and the status information of the terminals attached to the slave device to the standby master device through the device communication channel when receiving the status information of the slave device and the status information of the terminals attached to the slave device sent by the slave device; the service-related information is applied to the service interaction between the active master device and the standby master device and the slave device respectively; the slave device is used to: send a link switching notification to the standby master device when detecting that the active link is abnormal; the standby master device is used to: when determining that the link switching notification is received, enable the standby link to communicate with the slave device and perform service interaction with the slave device through the service-related information.
2. The system according to claim 1, wherein A first downlink PON interface is configured on the active master device, a second downlink PON interface is configured on the standby master device, and a first uplink PON interface and a second uplink PON interface are configured in the slave device; The active link includes an optical link between the first downlink PON interface and the first uplink PON interface; The standby link includes an optical link between the second downlink PON interface and the first uplink PON interface.
3. The system according to claim 2, wherein The device communication channel is used to synchronize the device status information of the slave device between the active master device and the standby master device; Among them, the device status information is applied to the service interaction between the active master device and the standby master device and the slave device respectively.
4. The system according to claim 2, wherein The active master device is used to: when determining that the configuration synchronization condition is met, synchronize communication configuration information to the standby master device through the device communication channel; Among them, the communication configuration information is applied to the service interaction between the active master device and the standby master device and the slave device respectively.
5. The system according to claim 2, wherein The FTTR network system also includes an optical splitter; the optical splitter includes a first input interface, a second input interface and an output interface. The first input interface is connected to the first downlink PON interface, the second input interface is connected to the second downlink PON interface, and the output interface is connected to the slave device; The active link passes through the first input interface and the output interface of the optical splitter; The standby link passes through the second input interface and the output interface of the optical splitter.
6. The system according to claim 2, wherein The FTTR network system further includes a first optical splitter and a second optical splitter; the first optical splitter includes a first input interface and a first output interface, and the second optical splitter includes a second input interface and a second output interface; the slave device is configured with a first upstream PON interface and a second upstream PON interface; The first input interface is connected to the first downstream PON interface, and the first output interface is connected to the first upstream PON interface; the second input interface is connected to the second downstream PON interface, and the second output interface is connected to the second upstream PON interface; The primary link passes through the first input interface, the first output interface, and the first upstream PON interface; The backup link passes through the second input interface, the second output interface, and the second upstream PON interface.
7. A method for data transmission, characterized in that, Applied to the master device of the FTTR network system according to any one of claims 1-6, the method includes: When the master device is the primary master device and the primary link is normal, communicate with the slave device through the primary link; When the master device is the backup master device and the primary link is abnormal, communicate with the slave device through the backup link; Wherein, the primary master device and the backup master device are the same master device or different master devices in the FTTR network system.
8. A method for data transmission, characterized in that, Applied to the slave device of the FTTR network system according to any one of claims 1-6, the method includes: When the primary link is normal, communicate with the primary master device through the primary link; When the primary link is abnormal, communicate with the backup master device through the backup link; Wherein, the primary master device and the backup master device are the same master device or different master devices in the FTTR network system.
9. A device for data transmission, characterized in that Applied to the master device of the FTTR network system according to any one of claims 1-6, the device includes: A first communication unit, configured to communicate with the slave device through the primary link when the master device is the primary master device and the primary link is normal; A second communication unit, configured to communicate with the slave device through the backup link when the master device is the backup master device and the primary link is abnormal; Wherein, the primary master device and the backup master device are the same master device or different master devices in the FTTR network system.
10. A device for data transmission, characterized in that, Applied to the slave device of the FTTR network system according to any one of claims 1-6, the device includes: A first communication unit, configured to communicate with the primary master device through the primary link when the primary link is normal; A second communication unit, configured to communicate with the backup master device through the backup link when the primary link is abnormal; Wherein, the primary master device and the backup master device are the same master device or different master devices in the FTTR network system.
11. An electronic device, characterized in that, Includes: A processor; And A memory storing computer instructions for causing the processor to execute the method according to claim 7 or 8.
Citation Information
Patent Citations
Method, device and system for measuring link state and storage medium
CN115243122A
OLT (Optical Line Terminal) state switching method and system for dual-homing PON (Passive Optical Network) protection system and OLT
CN115250388A
OLT (Optical Line Terminal) dual-homing service rapid recovery method and device
CN117834393A
Trunk optical fiber protection method, device and equipment and readable storage medium
CN119136084A