Power distribution network communication channel switching gateway, switching method and switching system

The distribution network communication channel switching gateway addresses the lack of Ethernet interfaces in 5G modules by enabling automatic switching between fiber-optic and 5G channels, ensuring reliable and secure data transmission in distribution networks.

CN119211979APending Publication Date: 2024-12-27GUANGDONG POWER GRID CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411336185.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

Existing 5G modules lack an Ethernet interface and cannot switch between northbound fiber-optic private networks and 5G channels, limiting their use in distribution networks.

Method used

A distribution network communication channel switching gateway with a relay switch, processor, switching chip, and 5G module, enabling automatic switching between fiber-optic and 5G communication channels based on channel status, ensuring physical isolation and seamless data transmission.

Benefits of technology

The gateway allows simultaneous connection to fiber-optic and 5G channels, automatically switching between them as needed, ensuring reliable and secure data transmission in distribution networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211979A_ABST
    Figure CN119211979A_ABST
Patent Text Reader

Abstract

The invention discloses a power distribution network communication channel switching gateway, switching method and system, and the gateway comprises a relay switch which is used for controlling the connection between a southbound interface and a switching chip or a routing chip; the processor is connected with the relay switch, and is used for detecting the state of the communication channel, controlling the relay switch to be switched to the routing chip when detecting that the optical fiber private network channel is abnormal, and controlling the relay switch to be switched back to the switching chip when the optical fiber private network channel returns to normal; the exchange chip is used for processing data exchange of a distribution network optical fiber private network, and when an optical fiber private network channel is normal, the southbound interface is connected with the exchange chip through the relay switch. The technical problems that an existing 5G module is not provided with an Ethernet interface, data can only be sent outwards by registering to a base station through 5G, and the switching function between a northbound optical fiber private network and a 5G channel cannot be achieved are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communication technology, and in particular, relates to a distribution network communication channel switching gateway, a switching method and a system. Background Art

[0002] 5G gateways use the high bandwidth and low latency characteristics of 5G networks to provide more efficient and reliable communication guarantees for distribution networks. In distribution networks, a large number of devices require real-time monitoring and two-way information exchange, while traditional wireless communication methods have problems such as difficult connections and poor communication quality. The introduction of 5G gateways can significantly improve data transmission speed and response time, ensure the real-time and accuracy of various data in the distribution network, and thus meet the distribution network's high requirements for communication efficiency and reliability.

[0003] Traditional distribution network automation and other services usually use fiber optic switch networking to transmit data. In recent years, with the penetration of 5G in industrial scenarios, 5G can be used to complete data communication when there are no conditions for laying fiber optic cables.

[0004] For the power system, network security must be achieved. It requires that the devices accessing the fiber-optic private network and the devices accessing the 5G channel must be physically isolated. At present, the dual SIM card switching gateway is more commonly used. The gateway consists of a routing chip, a 5G module, and two SIM cards. The 5G module uses SIM card 1 to send and receive data. If the communication quality of SIM1 is poor, the 5G module switches to using SIM card 2 to register the network.

[0005] However, two SIM cards share one 5G module and one routing chip, so it is impossible to physically isolate the communication channels of the two SIM cards. Secondly, the switching logic is implemented inside the 5G module, and the 5G module does not have an Ethernet interface. It can only send data to the base station through 5G registration. Therefore, for northbound data, the 5G module cannot be connected to the distribution network fiber private network switch, and the switching function between the northbound fiber private network and the 5G channel cannot be realized. Summary of the invention

[0006] The embodiments of the present invention provide a distribution network communication channel switching gateway, switching method and system, so as to at least solve the technical problem that the existing 5G module does not have an Ethernet interface, can only send data to the base station through 5G registration, and cannot realize the switching function between the northbound optical fiber private network and the 5G channel.

[0007] According to a first aspect of an embodiment of the present invention, a distribution network communication channel switching gateway is provided, comprising: a relay switch, the relay switch is used to control the connection between the southbound interface and the switching chip or the routing chip; a processor, connected to the relay switch, is used to detect the state of the communication channel, and when an abnormality is detected in the optical fiber private network channel, controls the relay switch to switch to the routing chip, and when the optical fiber private network channel returns to normal, controls the relay switch to switch back to the switching chip; the switching chip is used to process data exchange of the distribution network optical fiber private network, and when the optical fiber private network channel is normal, the southbound interface is connected to the switching chip through the relay switch; the routing chip is connected to the 5G module The southbound interface is used to connect to the fiber-optic private network switch and is connected to the routing chip through a relay switch. The 5G module is used to provide 5G communication capabilities. When the fiber-optic private network channel is abnormal, the 5G module cooperates with the routing chip to complete data transmission. The southbound interface is used to connect to the distribution network service device and is connected to the relay switch. According to the control signal of the processor, the southbound interface switches the connection between the switching chip and the routing chip. The northbound interface is used to connect to the fiber-optic private network switch and is connected to the switching chip. When the fiber-optic private network channel is normal, the data of the northbound interface is exchanged through the switching chip.

[0008] Optionally, the relay switch is a mechanical multi-way selection switch.

[0009] Optionally, the processor uses a transmission control protocol for communication monitoring.

[0010] Optionally, the southbound interface and the northbound interface are RJ45 interfaces.

[0011] According to a second aspect of an embodiment of the present invention, a distribution network communication channel switching method is also provided, including:

[0012] Obtain the status of the fiber-optic private network channel; in response to the fiber-optic private network channel status being abnormal, control the relay switch to switch to the 5G communication channel; in response to the fiber-optic private network channel status changing from abnormal to normal, control the relay switch to switch back to the fiber-optic private network channel.

[0013] Optionally, obtaining the status of the fiber-optic private network channel includes: using a processor to send messages to the fiber-optic private network switch at preset time intervals and monitoring the response results; in response to the response result indicating that the processor has received the response message, determining that the status of the fiber-optic private network channel is normal; or, in response to the response result indicating that the processor has not received a response message for a preset number of consecutive sending cycles, determining that the status of the fiber-optic private network channel is abnormal.

[0014] According to a third aspect of an embodiment of the present invention, a distribution network communication channel switching system is further provided, comprising:

[0015] An acquisition module is used to obtain the status of the fiber-optic private network channel; a control switching module is used to control the relay switch to switch to the 5G communication channel in response to the fiber-optic private network channel status being abnormal; the control switching module is also used to control the relay switch to switch back to the fiber-optic private network channel in response to the fiber-optic private network channel status changing from abnormal to normal.

[0016] According to a fourth aspect of an embodiment of the present invention, there is also provided an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the distribution network communication channel switching method in any embodiment of the second aspect above.

[0017] According to a fifth aspect of an embodiment of the present invention, a non-volatile storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to execute the distribution network communication channel switching method in any embodiment of the above-mentioned second aspect when running on a computer or a processor.

[0018] According to a sixth aspect of an embodiment of the present invention, a computer program product is also provided, including a computer program, which, when executed by a processor, implements the distribution network communication channel switching method of any embodiment of the second aspect above.

[0019] In an embodiment of the present invention, a relay switch is used to control the connection between the southbound interface and the switching chip or the routing chip; a processor is connected to the relay switch, used to detect the state of the communication channel, and when an abnormality is detected in the optical fiber private network channel, the relay switch is controlled to switch to the routing chip, and when the optical fiber private network channel returns to normal, the relay switch is controlled to switch back to the switching chip; the switching chip is used to process data exchange of the optical fiber private network of the distribution network. When the optical fiber private network channel is normal, the southbound interface is connected to the switching chip through the relay switch; the routing chip is connected to the 5G module, used to complete the forwarding of 5G data, when the optical fiber private network channel is abnormal, the southbound interface is connected to the routing chip through the relay switch; the 5G module is used to provide 5G communication capabilities, when the optical fiber private network channel is abnormal, the 5G module cooperates with the routing chip to complete data transmission; the southbound interface is used to connect to the distribution network service device, the southbound interface is connected to the relay switch, and according to the control signal of the processor, the southbound interface switches the connection between the switching chip and the routing chip; the northbound interface is used to connect to the optical fiber private network switch, the northbound interface is connected to the switching chip, and when the optical fiber private network channel is normal, the data of the northbound interface is exchanged through the switching chip. The gateway provided by the present invention may have an Ethernet switching communication channel and a 5G communication channel, two data forwarding capabilities. Secondly, the two communication channels can switch automatically, and the switching channel is used by default. When the switching channel communication fails, it can automatically switch to the 5G channel. When it is detected that the switching channel resumes communication, it automatically switches back to the switching channel communication. Finally, the two channels are physically isolated inside the gateway, which can solve the technical problem that the existing 5G module does not have an Ethernet interface, can only send data to the base station through 5G registration, and cannot realize the switching function between the northbound fiber private network and the 5G channel. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0021] Figure 1 is an architecture diagram of a distribution network communication channel switching gateway according to one embodiment of the present invention;

[0022] Figure 2 is a flow chart of a method for switching a communication channel of a distribution network according to one embodiment of the present invention;

[0023] Figure 3 is a schematic flow chart of a method for switching communication channels in a distribution network according to one embodiment of the present invention;

[0024] Figure 4 It is a structural block diagram of a distribution network communication channel switching system according to one embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] Reference Figure 1 According to an embodiment of the present invention, a distribution network communication channel switching gateway is provided, comprising: a relay switch, the relay switch is used to control the connection between the southbound interface and the switching chip or the routing chip; a processor, connected to the relay switch, is used to detect the communication channel state, and when an abnormality is detected in the optical fiber private network channel, controls the relay switch to switch to the routing chip, and when the optical fiber private network channel returns to normal, controls the relay switch to switch back to the switching chip; the switching chip is used to process data exchange of the distribution network optical fiber private network, when the optical fiber private network channel is normal, the southbound interface is connected to the switching chip through the relay switch; the routing chip is connected to the 5G module, Used to complete the forwarding of 5G data. When the fiber-optic private network channel is abnormal, the southbound interface is connected to the routing chip through a relay switch. The 5G module is used to provide 5G communication capabilities. When the fiber-optic private network channel is abnormal, the 5G module cooperates with the routing chip to complete data transmission. The southbound interface is used to connect to the distribution network service device. The southbound interface is connected to the relay switch. According to the control signal of the processor, the southbound interface switches the connection between the switching chip and the routing chip. The northbound interface is used to connect to the fiber-optic private network switch. The northbound interface is connected to the switching chip. When the fiber-optic private network channel is normal, the data of the northbound interface is exchanged through the switching chip.

[0028] Optionally, the relay switch is a mechanical multi-way selection switch.

[0029] Optionally, the processor uses a transmission control protocol for communication monitoring.

[0030] Optionally, the southbound interface and the northbound interface are RJ45 interfaces.

[0031] Specifically, the distribution network communication channel switching gateway consists of a southbound RJ45 port, a northbound RJ45 port, a relay switch, a CPU, a switching chip, a routing chip, and a 5G module.

[0032] The southbound RJ45 port is responsible for connecting to the distribution network service device.

[0033] The relay switch uses a physical on / off method to determine whether the circuit of the southbound RJ45 port is connected to the switching chip or the routing chip. It has two switch points, A and B, and only one switch point can be connected at the same time.

[0034] The switching chip is connected to point A of the relay switch to realize the data exchange function among the southbound RJ45 port, the northbound RJ45 port and the CPU.

[0035] The CPU determines whether the communication between the switching chip and the optical fiber private network switch of the distribution network is normal, and sends a switch instruction to the relay switch.

[0036] The northbound RJ45 port is connected to the fiber-optic private network switch to complete data sending and receiving.

[0037] The routing chip is connected to point B of the relay switch to complete the routing conversion between the 5G module and the distribution network service device.

[0038] The 5G module completes the registration of the SIM card and the 5G base station, and realizes the 5G data forwarding function.

[0039] Working principle design of distribution network communication channel switching gateway:

[0040] After the distribution network communication channel switching gateway is powered on, the relay switch is connected to the A connection point by default, that is, the exchange channel is used by default for data forwarding.

[0041] The CPU component uses ICMP protocol to communicate with the fiber private network switch IP: xxxx. It sends an ICMP message once per second. If it receives an ICMP response message from the fiber private network switch, it is determined that the fiber private network channel is normal, and the relay switch maintains the default A point connection point.

[0042] When the CPU component fails to receive a response message from the fiber private network switch IP: xxxx for three consecutive times, the CPU component determines that the fiber private network channel is abnormal. The CPU component sends a switch command to the relay switch, and the relay switch disconnects the A connection point and closes to the B connection point, so that the southbound RJ45 port is connected to the router component. The distribution network service device uses the 5G module to send data to the 5G base station through the router component, and completes communication with the distribution network master station through the 5G network.

[0043] When the relay switch is closed to the state of connection point B, the CPU component continues to send ICMP messages to the fiber private network switch IP: xxxx once a second. If the CPU component receives ICMP response messages from the fiber private network switch IP: xxxx three times in a row, it is determined that the fiber private network channel has returned to normal. The CPU component sends a switch command to the relay switch to close the connection point A and disconnect the connection point B.

[0044] According to an embodiment of the present invention, an embodiment of a distribution network communication channel switching method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system containing at least one set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0045] The method embodiment can also be executed in an electronic device including a memory and a processor, a similar control device or a cloud. Taking an electronic device as an example, the electronic device may include one or more processors and a memory for storing data. Optionally, the electronic device may also include a communication device and a display device for communication functions. It can be understood by those of ordinary skill in the art that the above structural description is only illustrative and does not limit the structure of the above electronic device. For example, the electronic device may also include more or fewer components than the above structural description, or have a configuration different from the above structural description.

[0046] The processor may include one or more processing units. For example, the processor may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microcontroller unit (MCU), a field-programmable gate array (FPGA), a neural network processor (NPU), a tensor processing unit (TPU), an artificial intelligence (AI) type processor, and the like. Among them, different processing units may be independent components or integrated into one or more processors. In some instances, the electronic device may also include one or more processors.

[0047] The memory can be used to store computer programs, such as storing a computer program corresponding to the distribution network communication channel switching method in the embodiment of the present invention, and the processor implements the above-mentioned distribution network communication channel switching method by running the computer program stored in the memory. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0048] The communication device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the communication device includes a network adapter (network interface controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the communication device can be a radio frequency (radio frequency, RF) module, which is used to communicate with the Internet wirelessly. In some embodiments of the present solution, the communication device is used to connect to mobile devices such as mobile phones and tablets, and instructions can be sent to electronic devices through the mobile device.

[0049] The display device may be a touch screen type liquid crystal display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the electronic device. In some embodiments, the electronic device has a graphical user interface (GUI), and a user may interact with the GUI by touching a finger release and / or gestures on a touch-sensitive surface, and executable instructions for executing the above-mentioned human-computer interaction functions are configured / stored in a computer program product or a readable storage medium executable by one or more processors.

[0050] Figure 2 is a flow chart of a method for switching a communication channel of a distribution network according to one embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:

[0051] Step S101, obtaining the fiber private network channel status;

[0052] Step S102, in response to the state of the optical fiber private network channel being abnormal, controlling the relay switch to switch to the 5G communication channel;

[0053] Step S103, in response to the fiber private network channel state changing from abnormal to normal, controlling the relay switch to switch back to the fiber private network channel.

[0054] Optionally, obtaining the status of the fiber-optic private network channel includes: using a processor to send messages to the fiber-optic private network switch at preset time intervals and monitoring the response results; in response to the response result indicating that the processor has received the response message, determining that the status of the fiber-optic private network channel is normal; or, in response to the response result indicating that the processor has not received a response message for a preset number of consecutive sending cycles, determining that the status of the fiber-optic private network channel is abnormal.

[0055] Specifically, refer to Figure 3 , the specific implementation of the above method is as follows:

[0056] After the distribution network communication channel switching gateway is powered on, the relay switch is connected to the A connection point by default, that is, the exchange channel is used by default for data forwarding.

[0057] The CPU component uses ICMP protocol to communicate with the fiber private network switch IP: xxxx. It sends an ICMP message once per second. If it receives an ICMP response message from the fiber private network switch, it is determined that the fiber private network channel is normal, and the relay switch maintains the default A point connection point.

[0058] When the CPU component fails to receive a response message from the fiber private network switch IP: xxxx for three consecutive times, the CPU component determines that the fiber private network channel is abnormal. The CPU component sends a switch command to the relay switch, and the relay switch disconnects the A connection point and closes to the B connection point, so that the southbound RJ45 port is connected to the router component. The distribution network service device uses the 5G module to send data to the 5G base station through the router component, and completes communication with the distribution network master station through the 5G network.

[0059] When the relay switch is closed to the state of connection point B, the CPU component continues to send ICMP messages to the fiber private network switch IP: xxxx once a second. If the CPU component receives ICMP response messages from the fiber private network switch IP: xxxx three times in a row, it is determined that the fiber private network channel has returned to normal. The CPU component sends a switch command to the relay switch to close the connection point A and disconnect the connection point B.

[0060] It can be understood that by adopting the technical solution of the present invention, the distribution network service device can be connected to the fiber-optic private network channel and the 5G communication channel at the same time, and complete information transmission with the distribution network master station. The fiber-optic private network channel is used by default, and it can automatically switch to the 5G channel after the fiber-optic private network channel fails to communicate. After the fiber-optic private network channel returns to normal, it can automatically switch back to the fiber-optic private network channel. Secondly, the relay switch realizes the physical isolation of the two channels inside the gateway, meeting the security requirements and specifications of the distribution network for data transmission.

[0061] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0062] In this embodiment, a distribution network communication channel switching system is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" is a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0063] Figure 4is a structural block diagram of a distribution network communication channel switching system 200 according to one embodiment of the present invention. Figure 4 As shown, taking the distribution network communication channel switching system 200 as an example, it includes: an acquisition module 201, used to obtain the state of the fiber-optic private network channel; a control switching module 202, used to control the relay switch to switch to the 5G communication channel in response to the state of the fiber-optic private network channel being abnormal; the control switching module is also used to control the relay switch to switch back to the fiber-optic private network channel in response to the state of the fiber-optic private network channel changing from abnormal to normal.

[0064] Optionally, the acquisition module is also used to: use the processor to send messages to the fiber-optic private network switch at preset time intervals and monitor the response results; in response to the response result indicating that the processor has received the response message, determine that the fiber-optic private network channel status is normal; or, in response to the response result indicating that the processor has not received a response message for a preset number of consecutive sending cycles, determine that the fiber-optic private network channel status is abnormal.

[0065] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the distribution network communication channel switching method described in any of the above embodiments.

[0066] Optionally, in this embodiment, the processor in the above electronic device may be configured to run a computer program to perform the following steps:

[0067] Step S101, obtaining the fiber private network channel status;

[0068] Step S102, in response to the state of the optical fiber private network channel being abnormal, controlling the relay switch to switch to the 5G communication channel;

[0069] Step S103, in response to the fiber private network channel state changing from abnormal to normal, controlling the relay switch to switch back to the fiber private network channel.

[0070] Optionally, obtaining the status of the fiber-optic private network channel includes: using a processor to send messages to the fiber-optic private network switch at preset time intervals and monitoring the response results; in response to the response result indicating that the processor has received the response message, determining that the status of the fiber-optic private network channel is normal; or, in response to the response result indicating that the processor has not received a response message for a preset number of consecutive sending cycles, determining that the status of the fiber-optic private network channel is abnormal.

[0071] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0072] An embodiment of the present invention further provides a non-volatile storage medium, in which a computer program is stored, wherein the computer program is configured to execute the distribution network communication channel switching method described in any of the above embodiments when running on a computer or a processor.

[0073] Optionally, in this embodiment, the above-mentioned computer program may be configured to store a computer program for performing the following steps:

[0074] Step S101, obtaining the fiber private network channel status;

[0075] Step S102, in response to the state of the optical fiber private network channel being abnormal, controlling the relay switch to switch to the 5G communication channel;

[0076] Step S103, in response to the fiber private network channel state changing from abnormal to normal, controlling the relay switch to switch back to the fiber private network channel.

[0077] Optionally, obtaining the status of the fiber-optic private network channel includes: using a processor to send messages to the fiber-optic private network switch at preset time intervals and monitoring the response results; in response to the response result indicating that the processor has received the response message, determining that the status of the fiber-optic private network channel is normal; or, in response to the response result indicating that the processor has not received a response message for a preset number of consecutive sending cycles, determining that the status of the fiber-optic private network channel is abnormal.

[0078] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0079] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the distribution network communication channel switching method described in any of the above embodiments when executed by a processor.

[0080] Optionally, in this embodiment, the above computer program implements the following steps when executed by a processor:

[0081] Step S101, obtaining the fiber private network channel status;

[0082] Step S102, in response to the state of the optical fiber private network channel being abnormal, controlling the relay switch to switch to the 5G communication channel;

[0083] Step S103, in response to the fiber private network channel state changing from abnormal to normal, controlling the relay switch to switch back to the fiber private network channel.

[0084] Optionally, obtaining the status of the fiber-optic private network channel includes: using a processor to send messages to the fiber-optic private network switch at preset time intervals and monitoring the response results; in response to the response result indicating that the processor has received the response message, determining that the status of the fiber-optic private network channel is normal; or, in response to the response result indicating that the processor has not received a response message for a preset number of consecutive sending cycles, determining that the status of the fiber-optic private network channel is abnormal.

[0085] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0086] In some embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the modules can be a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, modules or indirect coupling or communication connection of modules, which can be electrical or other forms.

[0087] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0088] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.

[0089] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0090] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A distribution network communication channel switching gateway, characterized in that: include: A relay switch, wherein the relay switch is used to control the connection between the southbound interface and the switching chip or the routing chip; A processor connected to the relay switch, configured to detect the state of the communication channel, and control the relay switch to switch to the routing chip when an abnormality of the optical fiber private network channel is detected, and control the relay switch to switch back to the switching chip when the optical fiber private network channel returns to normal; The switching chip is used to process data exchange of the optical fiber private network of the distribution network. When the optical fiber private network channel is normal, the southbound interface is connected to the switching chip through the relay switch; The routing chip is connected to the 5G module to complete the forwarding of 5G data. When the optical fiber private network channel is abnormal, the southbound interface is connected to the routing chip through the relay switch; The 5G module is used to provide 5G communication capabilities. When the optical fiber private network channel is abnormal, the 5G module cooperates with the routing chip to complete data transmission; A southbound interface, used to connect to a distribution network service device, the southbound interface being connected to the relay switch, and according to a control signal of the processor, the southbound interface switches the connection between the switching chip and the routing chip; The northbound interface is used to connect to the fiber-optic private network switch. The northbound interface is connected to the switching chip. When the fiber-optic private network channel is normal, the data of the northbound interface is exchanged through the switching chip.

2. The distribution network communication channel switching gateway according to claim 1, characterized in that: The relay switch is a mechanical multi-way selection switch.

3. The distribution network communication channel switching gateway according to claim 1, characterized in that: The processor performs communication monitoring using a transmission control protocol.

4. The distribution network communication channel switching gateway according to claim 3, characterized in that: The southbound interface and the northbound interface are RJ45 interfaces.

5. A method for switching communication channels in a distribution network, characterized in that: include: Get the status of the fiber private network channel; In response to the state of the optical fiber private network channel being abnormal, controlling the relay switch to switch to the 5G communication channel; In response to the state of the fiber private network channel changing from abnormal to normal, the relay switch is controlled to switch back to the fiber private network channel.

6. The method for switching communication channels of a distribution network according to claim 5, characterized in that: The obtaining of the fiber private network channel status includes: Using the processor to send messages to the optical fiber private network switch at preset time intervals and monitor the response results; In response to the response result indicating that the processor receives a response message, determining that the fiber private network channel state is normal; or, In response to the response result indicating that the processor has not received a response message for a preset number of sending cycles in a row, it is determined that the state of the fiber private network channel is abnormal.

7. A distribution network communication channel switching system, characterized in that: include: An acquisition module is used to obtain the status of the fiber private network channel; A control switching module, configured to control a relay switch to switch to a 5G communication channel in response to an abnormal state of the optical fiber private network channel; The control switching module is also used to control the relay switch to switch back to the fiber private network channel in response to the state of the fiber private network channel changing from abnormal to normal.

8. An electronic device, comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the distribution network communication channel switching method described in any one of claims 5 to 6.

9. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, wherein the computer program is configured to execute the distribution network communication channel switching method described in any one of claims 5 to 6 when running on a computer or a processor.

10. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the distribution network communication channel switching method according to any one of claims 5 to 6.

Citation Information

Patent Citations

  • Intelligent switching system for power optical fiber private network and 5G public network

    CN113517940A

  • Transmission line triple main protection implementation method and system based on channel switching

    CN114400626A

  • Power distribution automation communication network multipath switching method and related device

    CN117097666A