Communication port switching method, system, device, equipment, medium and product
By modifying the third port to the startup state when the first port of the OLT device is closed, and using the communication link composed of router equipment, routing switch equipment and OLT device to provide broadband services to user equipment, solving the problem that user equipment cannot use broadband services due to disconnection of communication between backup BRAS equipment and OLT devices, and realizing the unsensed broadband service continuity of user equipment.
Patent Information
- Application Number
- CN202510577708.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-06
- Publication Date
- 2025-07-18
AI Technical Summary
When the backup BRAS device disconnects communication from the OLT device, the user equipment cannot use broadband services, resulting in poor user experience.
The status of the first port is obtained through the OLT device, and when it is in the off state, the status of the third port is modified to the startup state, and the communication link composed of router equipment, routing switch equipment and OLT device is used to provide broadband services to the user equipment to ensure that when the backup BRAS device disconnects communication from the OLT device, the user equipment can transmit traffic data through the transmission link composed of OLT device-routed switch equipment-routed device-BRAS device.
When the backup BRAS device disconnects communication from the OLT device, the user equipment can continuously use broadband services to improve the user experience, and does not need to be configured on the user's device side to achieve user-insensitive communication link switching.
Smart Images

Figure CN120343436A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technologies, and particularly relates to a method, system, device, equipment, medium and product for switching communication ports. Background Art
[0002] The broadband access network bears the network channels for users' broadband access and Internet access. Therefore, the stability of the broadband access network is crucial. The broadband access network corresponding to the user equipment often includes an Optical Line Terminal (OLT) device and a Broadband Remote Access Server (BRAS) device. The OLT device can send traffic data to the BRAS device in response to the broadband access request data sent by the user equipment, and the BRAS device can provide broadband services to the user equipment based on the user identification in the traffic data.
[0003] In order to maintain the stability of users' use of the broadband network in the prior art, two BRAS devices are set in the broadband access network corresponding to the user equipment, one as the primary BRAS device and one as the standby BRAS device. When the OLT device disconnects communication with the primary BRAS device, the standby BRAS device is switched to provide broadband services to the user equipment. However, in the case where the standby BRAS device also disconnects communication with the OLT device, the user equipment will be unable to use broadband services, resulting in a poor user experience. Summary of the Invention
[0004] The embodiments of this application provide a method, system, device, equipment, medium and product for switching communication ports, which can provide broadband services to users through other communication links when the OLT device disconnects from the BRAS device.
[0005] In a first aspect, the embodiments of this application provide a method for switching communication ports, which is applied to an OLT device. The OLT device includes a first port, a second port and a third port. Among them, the OLT device is connected to a first Broadband Remote Access Server (BRAS) device through the first port, the OLT device is connected to a second BRAS device through the second port, and the OLT device is connected to a routing switch device through the third port. The first BRAS device is a standby device for providing broadband services to the user equipment, and the second BRAS device is a primary device for providing broadband services to the user equipment. The method includes:
[0006] Obtain the status of the first port of the OLT device;
[0007] When the state of the first port is in the closed state, the state of the third port is modified to the start state, so that the target BRAS device provides broadband services for the user device based on the communication link composed of the router device, the routing switch device, and the OLT device. Among them, when the state of the first port is in the closed state, the state of the second port is in the closed state, and the target BRAS includes the first BRAS device or the second BRAS device.
[0008] In a second aspect, an embodiment of the present application provides a system for switching communication ports, including:
[0009] The first BRAS device and the second BRAS device, the first BRAS device and the second BRAS device are used to provide broadband services for the user device, the first BRAS device is a standby device for providing broadband services for the user device, and the second BRAS device is a primary device for providing broadband services for the user device;
[0010] The OLT device, the OLT device includes a first port, a second port, and a third port. Among them, the OLT device is connected to the first BRAS device through the first port, the OLT device is connected to the second BRAS device through the second port, the OLT device is connected to the routing switch device through the third port, and the OLT device is used to obtain the state of the first port of the OLT device. When the state of the first port is in the closed state, the state of the third port is modified to the start state, so that the target BRAS device provides broadband services for the user device based on the communication link composed of the router device, the routing switch device, and the OLT device;
[0011] The router device is used to communicate with the target BRAS device and the routing switch device, and the target BRAS device includes the first BRAS device or the second BRAS device;
[0012] The routing switch device is used to communicate with the router device and the OLT device.
[0013] In a third aspect, an embodiment of the present application provides a device for switching communication ports, which is applied to an OLT device. The OLT device includes a first port, a second port, and a third port. Among them, the OLT device is connected to the first BRAS device through the first port, the OLT device is connected to the second BRAS device through the second port, the OLT device is connected to the routing switch device through the third port, the first BRAS device is a standby device for providing broadband services for the user device, and the second BRAS device is a primary device for providing broadband services for the user device. The device includes:
[0014] An acquisition module, configured to acquire the state of the first port of the OLT device;
[0015] A status modification module, configured to modify the status of a third port to a startup status when the status of a first port is a closed status, so that a target BRAS device provides broadband services for a user device based on a communication link composed of a router device, a routing switch device, and an OLT device. Wherein, when the status of the first port is a closed status, the status of a second port is a closed status, and the target BRAS includes a first BRAS device or a second BRAS device.
[0016] Fourthly, an embodiment of the present application provides an electronic device, which includes:
[0017] A processor and a memory storing computer program instructions;
[0018] When the processor executes the computer program instructions, it is used to execute the method for switching communication ports in the first aspect above.
[0019] Fifthly, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method for switching communication ports in the first aspect above is implemented.
[0020] Sixthly, an embodiment of the present application provides a computer program product, including a computer program, which implements the method for switching communication ports in the first aspect above when being processed by a processor.
[0021] The method, system, device, equipment, medium, and product for switching communication ports provided by the embodiments of the present application obtain the status of a first port connected to a first BRAS device. When the status of the first port is a closed status, the status of a third port connected to a routing switch device is modified to a startup status, so that when a standby BRAS device is disconnected from an OLT device, a user device can perform traffic data transmission based on a transmission link composed of an OLT device - routing switch device - router device - BRAS device, enabling the user device to maintain the use of broadband services, improving the user experience, and no configuration is required on the user device side when setting up and switching the above communication link, achieving no perception by the user. Description of the Drawings
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required to be used in the embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.
[0023] Figure 1 It is a schematic diagram of an exemplary system for switching communication ports provided by some embodiments of the present application.
[0024] Figure 2 Schematic diagram of another exemplary system for switching communication ports provided in some embodiments of the present application.
[0025] Figure 3 Flow schematic diagram of a method for switching communication ports provided in some embodiments of the present application.
[0026] Figure 4 Flow schematic diagram of a method for switching communication ports provided in some embodiments of the present application.
[0027] Figure 5 Schematic diagram of a device for switching communication ports provided in some embodiments of the present application.
[0028] Figure 6 Hardware structure schematic diagram of an electronic device provided in an embodiment of the present application. Detailed implementation manners
[0029] The features and exemplary embodiments of various aspects of the present application will be described in detail below. To make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without some of these specific details. The following description of the embodiments is only intended to provide a better understanding of the present application by showing examples of the present application.
[0030] It should be noted that in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variation thereof is intended to cover a non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, elements defined by the statement "comprising..." do not preclude the existence of additional identical elements in the process, method, article or device comprising the elements.
[0031] Before elaborating on the technical solutions provided in the embodiments of the present application, for the convenience of understanding the embodiments of the present application, the present application first specifically describes the problems existing in the related technologies:
[0032] Currently, the broadband access network corresponding to the user equipment is as Figure 1 shown, as Figure 1The exemplary broadband access network provided includes an OLT device 101, a primary BRAS device 102, and a standby BRAS device 103. Usually, based on the Virtual Router Redundancy Protocol (VRRP), the broadband access network provides broadband services for user equipment through the primary BRAS device 102. When the primary BRAS device 102 is disconnected from the OLT device 101, the standby BRAS device 103 provides broadband services for user equipment. However, in the case where the standby BRAS device is also disconnected from the OLT device, the user equipment will be unable to use broadband services, resulting in a poor user experience.
[0033] Based on this, the embodiments of the present application provide a method, system, device, equipment, medium, and product for switching communication ports, which can solve the above problems.
[0034] Next, a system for switching communication ports provided by the embodiments of the present application will be described in detail.
[0035] In some embodiments, as Figure 2 shown, the embodiments of the present application provide a system for switching communication ports. The above system may include:
[0036] A first BRAS device 2011 and a second BRAS device 2012. The first BRAS device and the second BRAS device are used to provide broadband services for user equipment. The first BRAS device 2011 is a standby device for providing broadband services for user equipment, and the second BRAS device 2012 is a primary device for providing broadband services for user equipment;
[0037] An OLT device 202. The OLT device 202 may include a first port 2021, a second port 2022, and a third port 2023. Among them, the OLT device is connected to the first BRAS device 2011 through the first port 2021, the OLT device is connected to the second BRAS device 2012 through the second port 2022, and the OLT device 202 is connected to a routing switch device through the third port 2023. The OLT device 202 is used to obtain the state of the first port 2021 of the OLT device 202. When the state of the first port 2021 is a closed state, the state of the third port 2023 is modified to a start state, so that the target BRAS device provides broadband services for user equipment based on the communication link composed of the router device, the routing switch device, and the OLT device;
[0038] A router device 203, which is used to communicate with the target BRAS device and the routing switch device. The target BRAS device includes the first BRAS device or the second BRAS device;
[0039] A routing switch device 204 for communicating with a router device 203 and an OLT device 201.
[0040] In some embodiments, as Figure 2 shown, the above OLT device may further include a fourth port 2024. When the state of the second port 2022 changes to closed, the OLT device 202 may change the state of the fourth port 2024 from the closed state to the start state. When the OLT device determines that the state of the fourth port 2024 is the start state and the state of the first port 2021 is the closed state, it may change the state of the third port 2023 to the start state, so as to ensure that when the states of both the first port 2021 and the second port 2022 are the closed state, the third port 2023 is started to provide broadband services for the user device based on the communication link composed of the router device, the routing switch device, and the OLT device, and improve the accuracy of changing the state of the third port 2023.
[0041] In some embodiments, when the OLT device later detects that the state of the first port 2021 or the second port 2022 is the start state, it may change the state of the third port 2023 to the closed state, so that the first BRAS device or the second BRAS device provides broadband services for the user device.
[0042] By providing a system for switching communication ports including the above first BRAS device, second BRAS device, OLT device, router device, and routing switch device in the embodiments of the present application, when both the first BRAS device and the second BRAS device are disconnected from the OLT device, the BRAS device can provide broadband services for the user device based on the communication link composed of the router device, the routing switch device, and the OLT device, enabling the user to continuously use broadband services. Moreover, the above communication link does not need to be configured on the user device side, and the communication link can be switched without the user's awareness, improving the user experience.
[0043] In some embodiments, as Figure 3 described, the embodiments of the present application provide a method for switching communication ports, which is applied to an optical line terminal OLT device. The OLT device includes a first port, a second port, and a third port. The OLT device is connected to a first BRAS device through the first port, connected to a second BRAS device through the second port, and connected to a routing switch device through the third port. The first BRAS device is a standby device for providing broadband services to the user device, and the second BRAS device is a primary device for providing broadband services to the user device. The method includes:
[0044] S310: Obtain the state of the first port of the OLT device.
[0045] Here, the status of the first port of the OLT device can be obtained. The status of the first port can include the connection status and communication status of the port. For example, the connection status can be the physical status of the port, and the communication status can be the protocol status of the port.
[0046] S320: When the status of the first port is the closed state, modify the status of the third port to the start state, so that the target BRAS device provides broadband services for the user device based on the communication link composed of the router device, the routing switch device, and the OLT device. Wherein, when the status of the first port is the closed state, the status of the second port is the closed state, and the target BRAS device includes the first BRAS device or the second BRAS device.
[0047] It can be conceived that under normal circumstances, the statuses of the first port and the second port are both in the start state. However, due to the setting of the VRRP protocol, broadband services will only be provided for the user device through the second BRAS device. When the status of the second port is the closed state, broadband services will be provided for the user device through the first BRAS device. When it is detected that the status of the first port is the closed state, the status of the third port can be modified to the start state. For example, the communication status of the third port can be changed from down to up. Here, when the status of the first port is the closed state, it can include that the connection status of the first port is down or the communication status is down.
[0048] In some examples, when it is determined that the statuses of both the first port and the second port are the closed state, the status of the third port can be modified to the start state.
[0049] In some examples, the above-mentioned routing switch device and router device can connect to the same local area network in response to the configuration information input by the user. For example, they can connect to the same Virtual Local Area Network (VLAN) to enable communication between the routing switch device and the router device.
[0050] In some examples, the above-mentioned routing switch device is a device that can convert a wired signal into a wireless signal, enabling the routing switch device to communicate with the router device and enabling the user device such as an Optical Network Unit (ONU) to be unaware when switching the communication link.
[0051] In the embodiments of the present application, by obtaining the status of the first port connected to the first BRAS device, when the status of the first port is in a closed state, the status of the third port connected to the routing switch device is modified to a startup state, so that when the standby BRAS device is disconnected from the OLT device, the user device can perform traffic data transmission based on the transmission link composed of the OLT device - routing switch device - router device - BRAS device, enabling the user device to maintain the use of broadband services, improving the user experience, and no configuration is required on the user device side when setting and switching the above communication link, achieving user imperceptibility.
[0052] It can be conceived that to ensure the accuracy of modifying the status of the third port, the status of the third port can be modified when it is determined that the statuses of the first port and the second port are both in a closed state.
[0053] In some embodiments, the OLT device further includes a fourth port, wherein the OLT device is connected to the routing switch device through the fourth port; when the status of the first port is in a closed state, modifying the status of the third port to a startup state includes:
[0054] Obtaining the status of the fourth port, wherein the status of the fourth port is determined based on the status of the second port; when the status of the fourth port includes a startup state and the status of the first port includes a closed state, modifying the status of the third port to a startup state.
[0055] In some examples, the communication link through which the OLT device is connected to the first BRAS device through the first port can be the first link, the communication link through which the OLT device is connected to the second BRAS device through the second port can be the second link, the communication link through which the target BRAS device is based on the router device, routing switch device, and OLT device can be the third link, and the link through which the OLT device is connected to the routing switch device through the fourth port is the fourth link. The first link and the third link can be set as the first link aggregation group, and at the same time, the second link and the fourth link can be set as the second link aggregation group. The above one link aggregation group can be aggregated through the link aggregation protocol (such as E-TRUNK), and the maximum number of surviving links in one link aggregation group is set to 1.
[0056] When the status of the second port becomes a closed state, the status of the fourth port will be modified from a closed state to a startup state, and it is set that only when the status of the fourth port is in a startup state and the status of the first port is in a closed state, the status of the third port can be modified from a closed state to a startup state, so that the BRAS device provides broadband services for the user device based on the third link. Here, the startup state of the fourth port can include that the communication status of the fourth port changes from down to up.
[0057] In the embodiments of the present application, by setting the fourth port as the indication port for determining whether the second port is closed and jointly forming the control port for whether the third port is started with the first port, it is possible to start the third port when ensuring that the states of the first port and the second port are both closed, improving the accuracy of modifying the state of the third port.
[0058] It can be conceived that when the state of the third port is the started state, the states of the first port and the second port can be continuously monitored, and when it is determined that any one of the ports becomes the started state, the state of the third port can be promptly modified to the closed state to cut off the third link, so that the BRAS device provides broadband services for the user device based on the first link or the second link.
[0059] In some embodiments, as Figure 4 shown, after step S320 modifies the state of the third port to the started state, the method further includes:
[0060] S410: Obtain the state of the target port, where the target port is the first port or the second port.
[0061] The state of the first port or the second port can be obtained.
[0062] S420: When the state of the target port is the started state, modify the state of the third port to the closed state.
[0063] When the state of the target port is the started state, it indicates that the BRAS device corresponding to the target port resumes communication with the OLT device. The state of the third port can be modified to the closed state, so that the BRAS device provides broadband services for the user device based on the aforementioned first link or the second link.
[0064] For example, when it is determined that both the connection state and the communication state of the target port are up, the communication state of the third port is modified to down.
[0065] When the embodiments of the present application detect that the state of the target port is the started state, the state of the third port is promptly modified to the closed state, so that the BRAS device provides broadband services for the user device through the link directly connected to the OLT device, which can improve the quality of broadband services provided for the user device, enhance the user experience, and the above link switching also does not need to be configured on the user side, realizing user imperceptibility.
[0066] In some embodiments, modifying the state of the second port to the closed state includes:
[0067] When the target port includes the second port, modify the state of the fourth port to the closed state to modify the state of the third port to the closed state.
[0068] Here, when the above-mentioned target port is the second port, that is, when the state of the second port changes to the startup state, the state of the fourth port can be modified to the closed state. When the state of the fourth port is the closed state, the state of the third port will be modified to the closed state. Here, the communication state of the fourth port can be directly modified to down, and the communication state of the third port will be modified to down.
[0069] In some embodiments, the third port includes a first sub-port and a second sub-port. The first sub-port is used to transmit user service data, and the second sub-port is used to transmit device management data.
[0070] The above-mentioned first sub-port is used to transmit user service data at the second layer of the link, and the above-mentioned second sub-port is used to transmit device management data at the third layer of the link. The above-mentioned user service data is traffic data generated by users using broadband services, and the above-mentioned device management data is traffic data generated for managing OLT devices.
[0071] It can be set that the third port includes a first sub-port and a second sub-port. Here, the OLT device can transmit user service data to the routing switch device based on the above-mentioned first sub-port, and the OLT device can transmit device management data based on the second sub-port, so that the routing switch device transmits the above-mentioned user service data and device management data to the routing device, so that the routing device transmits the above-mentioned user service data and device management data to the BRAS device, so that the BRAS device manages the user service data and device management data.
[0072] By setting the first sub-port and the second sub-port to transmit user service data and device management data respectively in the embodiments of the present application, it is convenient for the BRAS device to manage the above-mentioned data later, and the communication security is improved.
[0073] In some embodiments, as Figure 5 shown, the embodiments of the present application provide a device for switching communication ports, which is applied to an OLT device. The OLT device includes a first port, a second port and a third port. Among them, the OLT device is connected to a first BRAS device through the first port, the OLT device is connected to a second BRAS device through the second port, and the OLT device is connected to a routing switch device through the third port. The first BRAS device is a standby device for providing broadband services to user devices, and the second BRAS device is a primary device for providing broadband services to user devices. The device includes:
[0074] An acquisition module 501, configured to acquire the state of the first port of the OLT device;
[0075] A status modification module 502 is configured to modify the status of a third port to a startup status when the status of a first port is in a closed state, so that a target BRAS device provides broadband services for a user device based on a communication link composed of a router device, a routing switch device, and an OLT device. Wherein, when the status of the first port is in a closed state, the status of a second port is in a closed state, and the target BRAS includes a first BRAS device or a second BRAS device.
[0076] In some embodiments, the OLT device further includes a fourth port, wherein the OLT device is connected to the routing switch device through the fourth port; specifically, the status modification module may be configured to:
[0077] Obtain the status of the fourth port, where the status of the fourth port is determined based on the status of the second port;
[0078] When the status of the fourth port includes a startup status and the status of the first port includes a closed state, modify the status of the third port to a startup status.
[0079] In some embodiments, the obtaining module may further be configured to:
[0080] Obtain the status of a target port, where the target port is the first port or the second port;
[0081] When the status of the target port is in a startup state, modify the status of the third port to a closed state.
[0082] In some embodiments, the status modification module may further be configured to:
[0083] When the target port includes the second port, modify the status of the fourth port to a closed state, so as to modify the status of the third port to a closed state.
[0084] In some embodiments, the traffic data includes user service data and device management data; the third port includes a first sub-port and a second sub-port, the first sub-port is used to transmit user service data, and the second sub-port is used to transmit device management data.
[0085] The device in the above embodiments is used to implement the corresponding method for switching communication ports in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0086] Figure 6 A schematic diagram of the hardware structure of an electronic device provided by an application embodiment.
[0087] The electronic device 600 may include a processor 601 and a memory 602 storing computer program instructions.
[0088] Specifically, the above-mentioned processor 601 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more integrated circuits for implementing the embodiments of the present application.
[0089] The memory 602 may include a mass storage for data or instructions. By way of example and not limitation, the memory 602 may include a Hard Disk Drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. In a suitable case, the memory 602 may include a removable or non-removable (or fixed) medium. In a suitable case, the memory 602 may be internal or external to the integrated gateway disaster recovery device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory.
[0090] In a specific embodiment, the memory 602 includes a Read-Only Memory (ROM). In a suitable case, the ROM may be a mask-programmed ROM, a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), an Electrically Alterable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0091] The memory may include a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Thus, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect of the present application.
[0092] The processor 601 reads and executes the computer program instructions stored in the memory 602 to implement any one of the methods for switching communication ports in the above embodiments.
[0093] In one example, the electronic device may further include a communication interface 603 and a bus 604. Among them, as Figure 6 , the processor 601, the memory 602, and the communication interface 603 are connected through the bus 604 to complete communication with each other.
[0094] The communication interface 603 is mainly used to implement communication between various modules, devices, units, and / or devices in the embodiments of the present application.
[0095] The bus 604 includes hardware, software, or both, and couples the components of the online data flow meter charging device to each other. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronic Standard Association local (VLB) bus, or other suitable buses or a combination of two or more of these. In a suitable case, the bus 604 may include one or more buses. Although the embodiments of the present application describe and illustrate specific buses, the present application contemplates any suitable bus or interconnect.
[0096] The electronic device in the above embodiment is used to implement the corresponding method for switching communication ports in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0097] In addition, in combination with the method for switching communication ports in the above embodiments, the embodiments of the present application may provide a computer storage medium to implement. Computer program instructions are stored on the computer storage medium; when the computer program instructions are executed by the processor, any one of the methods for switching communication ports in the above embodiments is implemented.
[0098] In addition, in combination with the method for switching communication ports in the above embodiments, an embodiment of the present application can provide a computer program product to implement. When the instructions of the computer program product are executed by a processor of an electronic device, any one of the methods for switching communication ports in the above embodiments is implemented.
[0099] Those of ordinary skill in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the present application (including the claims) is limited to these examples; under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations in different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of brevity.
[0100] The functional blocks shown in the above structural block diagrams can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a functional card, and so on. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium or transmitted via a data signal carried in a carrier wave on a transmission medium or a communication link. A "machine-readable medium" can include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical discs, hard disks, fiber optic media, radio frequency (RF) links, and so on. The code segment can be downloaded via a computer network such as the Internet, an intranet, and so on.
[0101] It should also be noted that the exemplary embodiments mentioned in the present application describe some methods or devices based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps can be executed in the order mentioned in the embodiments, can be different from the order in the embodiments, or several steps can be executed simultaneously.
[0102] Aspects of the present application have been described above with reference to the flowcharts and / or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the present application. It should be understood that each block in the flowchart and / or block diagram, and the combinations of blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the functions / actions specified in one or more blocks of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It should also be understood that each block in the block diagram and / or flowchart, and the combinations of blocks in the block diagram and / or flowchart, can also be implemented by dedicated hardware that performs the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0103] As described above, the foregoing is only a specific implementation manner of the present application. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described devices, modules, and units can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein. It should be understood that the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and these modifications or substitutions should all be covered within the protection scope of the present application.
Claims
1. A method for switching communication ports, characterized in that Applied to an optical line terminal (OLT) device, the OLT device includes a first port, a second port, and a third port. Among them, the OLT device is connected to a first broadband remote access server (BRAS) device through the first port, the OLT device is connected to a second BRAS device through the second port, and the OLT device is connected to a routing switch device through the third port. The first BRAS device is a standby device for providing broadband services to user devices, and the second BRAS device is a primary device for providing broadband services to user devices. The method includes: Obtain the status of the first port of the OLT device; When the status of the first port is in the closed state, modify the status of the third port to the start state, so that the target BRAS device provides broadband services to user devices based on the communication link composed of a router device, a routing switch device, and the OLT device. Among them, when the status of the first port is in the closed state, the status of the second port is in the closed state, and the target BRAS includes the first BRAS device or the second BRAS device.
2. The method for switching a communication port according to claim 1, wherein The OLT device further includes a fourth port. Among them, the OLT device is connected to the routing switch device through the fourth port; when the status of the first port is in the closed state, modifying the status of the third port to the start state includes: Obtain the status of the fourth port, and the status of the fourth port is determined based on the status of the second port; When the status of the fourth port includes the start state and the status of the first port includes the closed state, modify the status of the third port to the start state.
3. The method for switching a communication port according to claim 2, wherein After modifying the status of the third port to the start state, the method further includes: Obtain the status of the target port, where the target port is the first port or the second port; When the status of the target port is in the start state, modify the status of the third port to the closed state.
4. The method for switching a communication port according to claim 3, wherein Modifying the status of the second port to the closed state includes: When the target port includes the second port, modify the status of the fourth port to the closed state, so that the status of the third port is modified to the closed state.
5. The method for switching a communication port according to claim 1, wherein The third port includes a first sub-port and a second sub-port. The first sub-port is used to transmit user service data, and the second sub-port is used to transmit device management data.
6. A system for switching communication ports, characterized in that, Includes: A first BRAS device and a second BRAS device. The first BRAS device and the second BRAS device are used to provide broadband services to user devices. The first BRAS device is a standby device for providing broadband services to user devices, and the second BRAS device is a primary device for providing broadband services to user devices; OLT device, the OLT device includes a first port, a second port and a third port. Among them, the OLT device is connected to a first BRAS device through the first port, the OLT device is connected to a second BRAS device through the second port, and the OLT device is connected to a routing switch device through the third port. The OLT device is used to obtain the status of the first port of the OLT device. When the status of the first port is in the closed state, the status of the third port is modified to the start state, so that the target BRAS device provides broadband services for user equipment based on the communication link composed of a router device, a routing switch device and the OLT device; Router device, used to communicate with the target BRAS device and the routing switch device, and the target BRAS device includes the first BRAS device or the second BRAS device; Routing switch device, used to communicate with the router device and the OLT device.
7. A device for switching communication ports, characterized in that, Applied to an OLT device, the OLT device includes a first port, a second port and a third port. Among them, the OLT device is connected to a first BRAS device through the first port, the OLT device is connected to a second BRAS device through the second port, and the OLT device is connected to a routing switch device through the third port. The first BRAS device is a standby device for providing broadband services for user equipment, and the second BRAS device is a primary device for providing broadband services for user equipment. The device includes: An acquisition module, used to acquire the status of the first port of the OLT device; A status modification module, used to modify the status of the third port to the start state when the status of the first port is in the closed state, so that the target BRAS device provides broadband services for user equipment based on the communication link composed of a router device, a routing switch device and the OLT device. Among them, when the status of the first port is in the closed state, the status of the second port is in the closed state, and the target BRAS includes the first BRAS device or the second BRAS device.
8. An electronic device, characterized in that, The device includes: a processor, and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the method for switching communication ports as described in any one of claims 1 to 5.
9. A readable storage medium, characterized in that, Computer program instructions are stored on the readable storage medium, and when the computer program instructions are executed by the processor, the method for switching communication ports as described in any one of claims 1 to 5 is implemented.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is processed by the processor, the method for switching communication ports as described in any one of claims 1 to 5 is implemented.