CN114938516A - Method, system, device and medium for protecting communication link - Google Patents

Method, system, device and medium for protecting communication link Download PDF

Info

Publication number
CN114938516A
CN114938516A CN202210438738.0A CN202210438738A CN114938516A CN 114938516 A CN114938516 A CN 114938516A CN 202210438738 A CN202210438738 A CN 202210438738A CN 114938516 A CN114938516 A CN 114938516A
Authority
CN
China
Prior art keywords
link
virtual interface
interface
communication
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210438738.0A
Other languages
Chinese (zh)
Inventor
上官福义
徐星涛
郭永立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Cncr Information Technology Co ltd
Original Assignee
Hangzhou Cncr Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Cncr Information Technology Co ltd filed Critical Hangzhou Cncr Information Technology Co ltd
Priority to CN202210438738.0A priority Critical patent/CN114938516A/en
Publication of CN114938516A publication Critical patent/CN114938516A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a method, a system, a device and a medium for protecting a communication link, wherein the method comprises the following steps: the first 5G equipment is in communication connection with a client, the second 5G equipment is in communication connection with a server, the first 5G equipment and the second 5G equipment establish an active link based on the 5G network, when the active link is monitored to be abnormal, switching the communication link between the first 5G equipment and the second 5G equipment from the active link to a standby link, so that the client and the server communicate through the backup link between the first 5G device and the second 5G device to ensure normal communication of the whole communication link, thereby improving the stability of the whole communication system, solving the problem that the 5G network is interrupted due to unstable 5G signals or emergencies in the related technology, the communication system is in a paralyzed state, thereby seriously influencing the experience of the user.

Description

Method, system, device and medium for protecting communication link
Technical Field
The present application relates to the field of communications, and in particular, to a method, a system, an electronic device, and a storage medium for protecting a communication link.
Background
The fifth Generation Mobile Communication Technology (5th Generation Mobile Communication Technology, abbreviated as 5G) is a new Generation broadband Mobile Communication Technology with the characteristics of high speed, low time delay and large connection, and is a network infrastructure for realizing man-machine interconnection.
At present, when a two-layer private line scheme is established through a vxlan tunnel of a 5G network, the situation that a 5G signal is unstable or the 5G network is interrupted due to an emergency cannot be eliminated, so that not only is the whole communication system in a paralyzed state, but also huge economic loss can be seriously and even brought to a user under the condition that the 5G network is interrupted for a very long time, and the experience of the user is seriously influenced.
Disclosure of Invention
The embodiment of the application provides a method for protecting a communication link, so as to solve at least the problem that the experience of a user is seriously affected because a communication system is in a paralyzed state due to the fact that the condition that a 5G signal is unstable or a 5G network is interrupted due to an emergency cannot be eliminated in the related art.
In a first aspect, an embodiment of the present application provides a method for protecting a communication link, where the method is applied to a 5G network, where the 5G network includes at least one 5G device, and the method includes:
the server is in communication connection with the client through first 5G equipment and is in communication connection with the server through second 5G equipment;
enabling the first 5G device and the second 5G device to establish an active link based on the 5G network;
when the active link is monitored to be abnormal, switching a communication link between the first 5G device and the second 5G device from the active link to a standby link so that the client and the server communicate with each other through the standby link between the first 5G device and the second 5G device, wherein the standby link is a wired connection link connected between the first 5G device and the second 5G device.
In some embodiments, the causing the first 5G device and the second 5G device to establish the active link based on the 5G network includes:
establishing a first VXLAN tunnel link through the first 5G device and the second 5G device;
and taking the first VXLAN tunnel link as an active link, and enabling the client and the server to communicate through the active link between the first 5G device and the second 5G device, wherein the first VXLAN tunnel link is established by communication connection between a first wireless port of the first 5G device and a first wireless port of the second 5G device.
In some of these embodiments, after establishing the first VXLAN tunnel link through the first 5G device and the second 5G device, the method further comprises:
bridging a second wired port and a first virtual interface of the first 5G device to generate a first bridging interface;
forming a first large second layer link based on a second wired port of a first 5G device, the first virtual interface, and the first bridging interface;
bridging a second wired port and a second virtual interface of the second 5G device while bridging the second wired port and the first virtual interface of the first 5G device, generating a second bridging interface;
and forming a second large second-layer link based on a second wired port of the second 5G device, the second virtual interface and the second bridge interface, so that the client and the server establish communication connection based on the first large second-layer link and the second large second-layer link, wherein the first virtual interface is a virtual interface which is generated when a first VXLAN tunnel link is established and is connected with a first wireless port of the first 5G device, and the second virtual interface is a virtual interface which is generated when a first VXLAN tunnel link is established and is connected with a first wireless port of the second 5G device.
In some embodiments, the monitoring the working condition of the active link when the first VXLAN tunnel link is used as the active link includes:
respectively configuring the same network segment IP addresses for the first virtual interface and the second virtual interface;
configuring an inner core based on an ebtables tool, enabling an ARP message to bypass a first bridging interface and a second bridging interface respectively, and confirming whether the first virtual interface and the second virtual interface are conducted or not through a ping instruction, if so, enabling a first VXLAN tunnel link to work normally, and if not, enabling the first VXLAN tunnel to work abnormally, wherein the ARP message is a message sent by the client based on an ARP protocol.
In some embodiments, while the first 5G device and the second 5G device establish the active link based on the 5G network, the method further includes:
establishing a second VXLAN tunnel link through the first 5G device and the second 5G device;
and taking the second VXLAN tunnel link as a standby link, wherein the second VXLAN tunnel link is established by the first wired port of the first 5G device and the first wired port of the second 5G device through communication connection.
In some embodiments, the monitoring that the active link is abnormal, switching a communication link between the first 5G device and the second 5G device from the active link to a standby link so that the client and the server communicate with each other through the standby link includes:
when the active link is monitored to be abnormal, bridge connection between a second wired port and a first virtual interface of the first 5G device is canceled, and after bridge connection between a second wired port and a second virtual interface of the second 5G device is canceled, a second wired port and a third virtual interface of the first 5G device are bridged to generate a third bridge connection interface;
forming a third large second-layer link based on a second wired port of the first 5G device, the third virtual interface, and the third bridging interface;
bridging a second wired port and a fourth virtual interface of the second 5G device while bridging the second wired port and the third virtual interface of the first 5G device, to generate a fourth bridging interface;
and forming a fourth large second-layer link based on the second wired port of the second 5G device, the fourth virtual interface and the fourth bridge interface, so that the client and the server establish communication connection based on the third large second-layer link and the fourth large second-layer link, wherein the third virtual interface is a virtual interface which is generated when a second VXLAN tunnel link is established and is connected with the first wired port of the first 5G device, and the fourth virtual interface is a virtual interface which is generated when a second VXLAN tunnel link is established and is connected with the first wired port of the second 5G device.
In some embodiments, when it is monitored that the active link is abnormal, the method further includes, after switching a communication link between the first 5G device and the second 5G device from the active link to a standby link so that the client and the server communicate with each other through the standby link:
and when the situation that the active link circuit recovers normal communication is monitored, switching a communication link circuit between the first 5G device and the second 5G device from a standby link circuit to the active link circuit, so that the client and the server communicate through the active link circuit between the first 5G device and the second 5G device.
In a second aspect, an embodiment of the present application provides a protection system for a communication link, where the system includes:
the first connection module is used for being in communication connection with the client through first 5G equipment;
the second connection module is used for being in communication connection with the server through second 5G equipment;
an establishing module, configured to enable the first 5G device and the second 5G device to establish an active link based on the 5G network;
and a switching module, configured to switch a communication link between the first 5G device and the second 5G device from an active link to a standby link when it is monitored that the active link is abnormal, so that the client and the server communicate with each other through the standby link between the first 5G device and the second 5G device, where the standby link is a wired connection link connected between the first 5G device and the second 5G device.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor, when executing the computer program, implements the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium, on which a computer program is stored, which when executed by a processor implements the method according to the first aspect.
In the technical solution of this embodiment, first, a first 5G device is in communication connection with a client, and a second 5G device is in communication connection with a server, then, a primary link is established between the first 5G device and the second 5G device based on a 5G network, and then, when it is detected that the primary link is abnormal, a communication link between the first 5G device and the second 5G device is switched from the primary link to a standby link, compared with the previous case that the primary link is in a disabled state, when it is detected that the primary link is abnormal, the present embodiment switches the communication link between the first 5G device and the second 5G device from the primary link to the standby link, so that the client and the server perform normal communication through the standby link between the first 5G device and the second 5G device, thereby ensuring the stability of the communication of the entire system, therefore, the experience of the user is improved, and the problem that the experience of the user is seriously influenced because the condition that the 5G network is interrupted due to instability of a 5G signal or an emergency cannot be eliminated in the related technology and the communication system is in a paralyzed state is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic application environment diagram of a method for protecting a communication link according to an embodiment of the present application;
FIG. 2 is a first flowchart of a method for protecting a communication link according to an embodiment of the present application;
FIG. 3 is a first schematic diagram of an overall architecture of a communication link according to an embodiment of the present application;
FIG. 4 is a second schematic diagram of the overall architecture of a communication link according to embodiments of the present application;
FIG. 5 is a block diagram of a protection system for a communication link according to an embodiment of the application;
fig. 6 is an internal structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless otherwise defined, technical or scientific terms referred to herein should have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but rather can include electrical connections, whether direct or indirect. Reference herein to "a plurality" means greater than or equal to two. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
To begin with for ease of understanding, reference will now be made to terms involved in the writing of the present invention, specifically as follows:
5G network: that is, the fifth Generation Mobile Communication Technology (5th Generation Mobile Communication Technology, abbreviated as 5G) is a new Generation broadband Mobile Communication Technology with the characteristics of high speed, low time delay and large connection, and is a network infrastructure for implementing man-machine interconnection. The International Telecommunications Union (ITU) defines three major application scenarios of 5G, namely enhanced mobile broadband (eMBB), ultra-high reliability low latency communication (urrllc) and mass machine type communication (mtc). Enhanced mobile broadband (eMBB) is mainly oriented to the explosive growth of mobile internet traffic, and provides more extreme application experience for mobile internet users; the ultra-high reliable low-delay communication (uRLLC) mainly faces to the application requirements of the vertical industry with extremely high requirements on delay and reliability, such as industrial control, telemedicine, automatic driving and the like; mass machine type communication (mMTC) mainly faces to the application requirements of smart cities, smart homes, environment monitoring and the like which aim at sensing and data acquisition. In order to meet the requirement of 5G diversified application scenes, the key performance indexes of 5G are more diversified. ITU defines eight key performance indexes of 5G, where high speed, low latency, and large connection become the most prominent features of 5G, user experience speed reaches 1Gbps, latency is as low as 1ms, and user connection capability reaches 100 ten thousand connections/square kilometer.
Bridge (Bridge): frame forwarding two-port two-layer network equipment; a bridge, also called a bridge, is a store/forward device that connects two LANs, and can divide a large LAN into multiple segments, or interconnect more than two LANs into a logical LAN, so that all users on the LAN can access the server.
The most common method of extending a local area network is to use a bridge. The simplest bridge has two ports, and more complex bridges may have more ports. Each port of the bridge is connected to a network segment.
ebtables: a linux kernel bridge firewall tool; specifically, the Ebtables is a linux kernel firewall configuration tool, is specially used for controlling and screening the flow of the bridge interface for the linux system kernel, and can control the take-over of the ARP protocol by the bridge interface;
VXLAN (Virtual eXtensible Local Area Network ): the method is used for realizing two-layer network expansion penetrating through a three-layer network; in addition, the VXLAN technology is a virtual network technology with two layers, and the main principle is to introduce an outer tunnel in UDP format as a data link layer, and the original data message content is transmitted as the tunnel payload. Because the outer layer adopts UDP as transmission means, the payload data can be easily transmitted in a two-layer network and a three-layer network.
The protection method for a communication link provided by the present application may be applied to an application environment shown in fig. 1, where fig. 1 is an application environment schematic diagram of a protection method for a communication link according to an embodiment of the present application, and as shown in fig. 1, a first 5G device 110 is in wired communication connection with a client 130, a second 5G device 120 is in wired communication connection with a server 140, and the first 5G device 110 and the second 5G device 120 establish an active link based on a 5G network; when the active link is monitored to be abnormal, the communication link between the first 5G device 110 and the second 5G device 120 is switched from the active link to the standby link, so that the client 130 and the server 140 communicate with each other through the standby link between the first 5G device 110 and the second 5G device 120, and the stable operation of the whole communication link is ensured. Wherein the backup link is a wired connection link connected between the first 5G device 110 and the second 5G device 120. In addition, the client 130 may be, but is not limited to, various personal computers, laptops, smartphones, tablets and portable wearable devices, and the server 140 may be implemented by a stand-alone server 140 or a server 140 cluster composed of a plurality of servers 140.
The present application provides a protection method for a communication link, which is applied to a 5G network, and fig. 2 is a first flowchart of a protection method for a communication link according to an embodiment of the present application, as shown in fig. 2, the method includes the following steps:
step S201, the client 130 is in communication connection with the first 5G device 110, and the server 140 is in communication connection with the second 5G device 120;
step S202, establishing an active link between the first 5G device 110 and the second 5G device 120 based on the 5G network; that is, a communication link formed between the client 130 and the server 140 through the 5G network serves as a primary link, thereby providing a private line service;
step S203, when it is monitored that the active link is abnormal, switching the communication link between the first 5G device 110 and the second 5G device 120 from the active link to a standby link, so that the client 130 and the server 140 communicate with each other through the standby link between the first 5G device 110 and the second 5G device 120, where the standby link is a wired connection link connected between the first 5G device 110 and the second 5G device 120. A person skilled in the art can monitor the communication condition of the primary link through some existing software, programs or algorithms, that is, as long as the purpose of monitoring can be achieved, which is not specifically limited herein;
through the steps S201 to S203, compared with the previous 5G network numbers which are unstable or abnormal, when the main link is detected to be abnormal, the present embodiment detects that the main link is abnormal, the communication link between the first 5G device 110 and the second 5G device 120 is switched from the active link to the standby link, such that normal communication between the client 130 and the server 140 occurs over the backup link between the first 5G device 110 and the second 5G device 120, therefore, the stability of the communication of the whole system is improved, good experience is brought to users, the problem that the 5G network is interrupted due to instability or emergency of 5G signals cannot be eliminated in the related technology is solved, the communication system is in a paralyzed state, thereby seriously influencing the experience of the user.
Fig. 3 is a first schematic diagram of an overall structure of a communication link according to an embodiment of the present application, fig. 4 is a second schematic diagram of an overall structure of a communication link according to an embodiment of the present application, and referring to fig. 3 and fig. 4, in some embodiments, establishing an active link between a first 5G device 110 and a second 5G device 120 based on a 5G network includes the following steps:
establishing a first VXLAN tunnel link through the first 5G device 110 and the second 5G device 120;
the first VXLAN tunnel link is used as an active link, so that the client 130 and the server 140 perform communication through the active link between the first 5G device 110 and the second 5G device 120, where the first VXLAN tunnel link is established by communication connection between the first wireless port 310 of the first 5G device 110 and the first wireless port 311 of the second 5G device 120. Referring to fig. 3 and 4, in this embodiment, the name of the first wireless port 310 of the first 5G device 110 is lte1, and the name of the first wireless port 311 of the second 5G device 120 is lte2, but in other embodiments, the names of the interfaces of the wireless ports may be set to be other, and are not limited herein;
in some of these embodiments, after establishing the first VXLAN tunnel link through the first 5G device 110 and the second 5G device 120, the method further comprises the steps of:
bridging the second wired port 330 and the first virtual interface 3100 of the first 5G device 110, generating a first bridging interface 3101;
forming a first large two-layer link based on the second wired port 330, the first virtual interface 3100, and the first bridging interface 3101 of the first 5G device 110;
bridging the second wired port 331 and the second virtual interface 3110 of the second 5G device 120 while bridging the second wired port 330 and the first virtual interface 3100 of the first 5G device 110, generating a second bridging interface 3111; referring to fig. 3 and 4, the first bridge interface 3101 is named br-vxlan-lte1-lan1, and the second bridge interface 3111 is named br-vxlan-lte2-lan2, although in other embodiments, the names of the bridge interfaces may be different, and are not limited herein.
A second large second-layer link is formed based on the second wired port 331, the second virtual interface 3110 and the second bridge interface 3111 of the second 5G device 120, so that the client 130 and the server 140 establish communication connection based on the first large second-layer link and the second large second-layer link, where the first virtual interface 3100 is a virtual interface connected to the first wireless port 310 of the first 5G device 110 generated when the first VXLAN tunnel link is established, and the second virtual interface 3110 is a virtual interface connected to the first wireless port 311 of the second 5G device 120 generated when the first VXLAN tunnel link is established. Referring to fig. 3 and 4, in this embodiment, the name of the first virtual interface 3100 is vxlan-lte1, and the name of the second virtual interface 3110 is vxlan-lte2, but in other embodiments, the names of the virtual interfaces may be set to other names, and are not specifically limited herein;
for convenience of monitoring, in some embodiments, when the first VXLAN tunnel link is used as the active link, the step of monitoring the working condition of the active link includes the following steps:
the first virtual interface 3100 and the second virtual interface 3110 are respectively configured with the same network segment IP address; for example, the IP addresses of the same network segment are configured to be 1.1.1.1/24 and 1.1.1.2/24 for the first virtual interface 3100 and the second virtual interface 3110, respectively;
configuring the kernel based on the ebtables tool, enabling the ARP message to respectively bypass the first bridging interface 3101 and the second bridging interface 3111, and confirming whether the first virtual interface 3100 and the second virtual interface 3110 are conducted through a ping instruction, if so, the first VXLAN tunnel link normally works, and if not, the first VXLAN tunnel abnormally works, wherein the ARP message is a message sent by the client 130 based on an ARP protocol. That is, the ping is generally regarded as that the first VXLAN tunnel link works normally, whereas, the first VXLAN tunnel link works abnormally, and since the person skilled in the art knows the using method of the ping instruction, the ping instruction is not described herein.
In order to prevent the active link from being abnormal and causing the entire system to be in a paralyzed state, in some embodiments, the method further includes the following steps while establishing the active link between the first 5G device 110 and the second 5G device 120 based on the 5G network:
establishing a second VXLAN tunnel link through the first 5G device 110 and the second 5G device 120;
the second VXLAN tunnel link is used as a standby link, so that even if the active link is abnormal, the client 130 and the server 140 can communicate through the standby link between the first 5G device 110 and the second 5G device 120, so as to ensure the stability of the whole system communication. The second VXLAN tunnel link is established by communicatively connecting the first wired port 320 of the first 5G device 110 and the first wired port 321 of the second 5G device 120.
In order to ensure that the entire system can normally communicate, in some embodiments, when monitoring that the active link is abnormal, switching the communication link between the first 5G device 110 and the second 5G device 120 from the active link to the standby link so that the client 130 and the server 140 communicate through the standby link includes the following steps:
when it is monitored that the active link is abnormal, the bridge connection between the second wired port 330 of the first 5G device 110 and the first virtual interface 3100 is cancelled, and after the bridge connection between the second wired port 331 of the second 5G device 120 and the second virtual interface 3110 is cancelled, the second wired port 330 and the third virtual interface 3200 of the first 5G device 110 are bridged, so as to generate a third bridge connection interface 410;
forming a third large second layer link based on the second wired port 330, the third virtual interface 3200, and the third bridging interface 410 of the first 5G device 110;
bridging the second wired port 331 and the fourth virtual interface 3210 of the second 5G device 120 while bridging the second wired port 330 and the third virtual interface 3200 of the first 5G device 110, generating a fourth bridging interface 411; referring to fig. 3 and 4, the name of the third bridge interface 410 is br-vxlan-wan1-lan1, and the name of the fourth bridge interface 411 is br-vxlan-wan2-lan2, although in other embodiments, the names of the bridge interfaces may be different, and are not limited herein.
A fourth large second-layer link is formed based on the second wired port 331, the fourth virtual interface 3210, and the fourth bridge interface 411 of the second 5G device 120, so that the client 130 and the server 140 establish communication connection based on the third large second-layer link and the fourth large second-layer link, that is, when the 5G network communication is abnormal, the wired standby link is immediately switched, and the risk of communication abnormality is reduced.
The third virtual interface 3200 is a virtual interface generated when the second VXLAN tunnel link is established and connected to the first wired port 320 of the first 5G device 110, and the fourth virtual interface 3210 is a virtual interface generated when the second VXLAN tunnel link is established and connected to the first wired port 321 of the second 5G device 120. Referring to fig. 3 and 4, in the present embodiment, the third virtual interface 3200 is named vxlan-wan1, and the fourth virtual interface 3210 is named vxlan-wan 2. It should be noted that each wired port may be implemented by an ethernet port, and certainly, other wired ports may also be implemented in other embodiments, and are not specifically limited herein;
since the transmission speed of the communication data in the 5G network is faster than that of the wired link based on the backup link, in some embodiments, when it is detected that the active link is abnormal, the communication link between the first 5G device 110 and the second 5G device 120 is switched from the active link to the backup link, so that the client 130 and the server 140 communicate with each other through the backup link, the method further includes the following steps:
when it is monitored that the active link path recovers normal communication, the communication link between the first 5G device 110 and the second 5G device 120 is switched from the standby link to the active link, so that the client 130 and the server 140 communicate with each other through the active link between the first 5G device 110 and the second 5G device 120, and the 5G network is restarted, thereby not only realizing faster data transmission, but also improving the experience of the user.
In another embodiment, switching the communication link between the first 5G device 110 and the second 5G device 120 from the standby link to the active link includes:
when it is monitored that the first VXLAN tunnel link recovers normal communication, the bridge between the second wired port 330 of the first 5G device 110 and the third virtual interface 3200 is canceled, and after the bridge between the second wired port 331 of the second 5G device 120 and the fourth virtual interface 3210 is canceled, the second wired port 330 of the first 5G device 110 and the first virtual interface 3100 are bridged again, and the second wired port 331 of the second 5G device 120 and the second virtual interface 3110 are bridged again.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
This embodiment also provides a system for protecting a communication link, where the system is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of a protection system for a communication link according to an embodiment of the present application, and as shown in fig. 5, the system includes:
the first connection module 51 is configured to be in communication connection with the client 130 through the first 5G device 110;
the second connection module 52 is configured to be in communication connection with the server 140 through the second 5G device 120;
an establishing module 53, configured to establish an active link between the first 5G device 110 and the second 5G device 120 based on a 5G network;
the switching module 54 is configured to, when it is monitored that the active link is abnormal, switch a communication link between the first 5G device 110 and the second 5G device 120 from the active link to a standby link, so that the client 130 and the server 140 communicate with each other through the standby link between the first 5G device 110 and the second 5G device 120, where the standby link is a wired connection link connected between the first 5G device 110 and the second 5G device 120. Compared with the prior art that when the main link is abnormal, the entire system is in a paralyzed state, in this embodiment, when it is monitored that the main link is abnormal, the communication link between the first 5G device 110 and the second 5G device 120 is switched from the main link to the standby link, so that the client 130 and the server 140 perform normal communication through the standby link between the first 5G device 110 and the second 5G device 120, and the stability of the communication of the entire system is ensured, thereby improving the experience of a user, and solving the problem that the communication system is in a paralyzed state and the experience of the user is seriously affected due to the fact that the 5G network is interrupted because the 5G signal is unstable or an emergency cannot be eliminated in the related art.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
The present embodiment also provides an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
step S201, the client 130 is in communication connection with the first 5G device 110, and the server 140 is in communication connection with the second 5G device 120;
step S202, establishing an active link between the first 5G device 110 and the second 5G device 120 based on the 5G network;
step S203, when it is monitored that the active link is abnormal, switching a communication link between the first 5G device 110 and the second 5G device 120 from the active link to a standby link, so that the client 130 and the server 140 communicate with each other through the standby link between the first 5G device 110 and the second 5G device 120, where the standby link is a wired connection link connected between the first 5G device 110 and the second 5G device 120.
It should be noted that, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiment and optional implementation manners, and details of this embodiment are not described herein again.
In addition, in combination with the method for protecting a communication link in the foregoing embodiments, the embodiments of the present application may provide a storage medium to implement. The storage medium having stored thereon a computer program; the computer program, when executed by a processor, implements a method of protecting a communication link as in any of the above embodiments.
In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of protecting a communication link. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
In an embodiment, fig. 6 is a schematic internal structure diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 6, there is provided an electronic device, which may be a server 140, and its internal structure diagram may be as shown in fig. 6. The electronic device comprises a processor, a network interface, an internal memory and a non-volatile memory connected by an internal bus, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is used for providing calculation and control capability, the network interface is used for communicating with an external terminal through network connection, the internal memory is used for providing an environment for an operating system and the running of a computer program, the computer program is executed by the processor to realize a protection method of a communication link, and the database is used for storing data.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is a block diagram of only a portion of the structure associated with the present application, and does not constitute a limitation on the electronic device to which the present application applies, and that a particular electronic device may include more or fewer components than shown, or combine certain components, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be understood by those skilled in the art that various features of the above-described embodiments can be combined in any combination, and for the sake of brevity, all possible combinations of features in the above-described embodiments are not described in detail, but rather, all combinations of features which are not inconsistent with each other should be construed as being within the scope of the present disclosure.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A protection method of a communication link is applied to a 5G network, and the method comprises the following steps:
the server is in communication connection with the client through first 5G equipment and is in communication connection with the server through second 5G equipment;
enabling the first 5G device and the second 5G device to establish an active link based on the 5G network;
when the active link is monitored to be abnormal, switching a communication link between the first 5G device and the second 5G device from the active link to a standby link so that the client and the server communicate with each other through the standby link between the first 5G device and the second 5G device, wherein the standby link is a wired connection link connected between the first 5G device and the second 5G device.
2. The method of claim 1, wherein the causing the first 5G device and the second 5G device to establish the active link based on the 5G network comprises:
establishing a first VXLAN tunnel link through the first 5G device and the second 5G device;
and taking the first VXLAN tunnel link as an active link, and enabling the client and the server to communicate through the active link between the first 5G device and the second 5G device, wherein the first VXLAN tunnel link is established by communication connection between a first wireless port of the first 5G device and a first wireless port of the second 5G device.
3. The method of claim 2, wherein after establishing the first VXLAN tunnel link with the first 5G device and the second 5G device, the method further comprises:
bridging a second wired port and a first virtual interface of the first 5G device to generate a first bridging interface;
forming a first large second layer link based on a second wired port of a first 5G device, the first virtual interface, and the first bridging interface;
bridging a second wired port and a second virtual interface of the second 5G device while bridging the second wired port and the first virtual interface of the first 5G device, generating a second bridging interface;
and forming a second big second layer link based on a second wired port, the second virtual interface and the second bridging interface of the second 5G device, so that the client and the server establish communication connection based on the first big second layer link and the second big second layer link, wherein the first virtual interface is a virtual interface which is generated when a first VXLAN tunnel link is established and is connected with a first wireless port of the first 5G device, and the second virtual interface is a virtual interface which is generated when the first VXLAN tunnel link is established and is connected with a first wireless port of the second 5G device.
4. The method of claim 3, wherein monitoring the working status of the primary link when the first VXLAN tunnel link is used as the primary link comprises:
respectively configuring the same network segment IP addresses for the first virtual interface and the second virtual interface;
and configuring an inner core based on an ebtables tool, enabling an ARP message to bypass a first bridging interface and a second bridging interface respectively, confirming whether the first virtual interface and the second virtual interface are conducted or not through a ping instruction, if so, enabling a first VXLAN tunnel link to work normally, and if not, enabling the first VXLAN tunnel to work abnormally, wherein the ARP message is a message sent by the client based on an ARP protocol.
5. The method of claim 1, wherein while establishing the active link between the first 5G device and the second 5G device based on the 5G network, the method further comprises:
establishing a second VXLAN tunnel link through the first 5G device and the second 5G device;
and taking the second VXLAN tunnel link as a standby link, wherein the second VXLAN tunnel link is established by the first wired port of the first 5G device and the first wired port of the second 5G device through communication connection.
6. The method of claim 5, wherein the monitoring that the active link is abnormal, and switching a communication link between the first 5G device and the second 5G device from the active link to a standby link so that the client and the server communicate with each other through the standby link comprises:
when the active link is monitored to be abnormal, bridge connection between the second wired port of the first 5G device and the first virtual interface is cancelled, and after bridge connection between the second wired port of the second 5G device and the second virtual interface is cancelled, the second wired port of the first 5G device and the third virtual interface are bridged, so that a third bridge connection interface is generated;
forming a third large second layer link based on a second wired port of the first 5G device, the third virtual interface, and the third bridging interface;
bridging a second wired port and a fourth virtual interface of the second 5G device while bridging the second wired port and the third virtual interface of the first 5G device, to generate a fourth bridging interface;
and forming a fourth large second-layer link based on the second wired port of the second 5G device, the fourth virtual interface and the fourth bridge interface, so that the client and the server establish communication connection based on the third large second-layer link and the fourth large second-layer link, wherein the third virtual interface is a virtual interface which is generated when a second VXLAN tunnel link is established and is connected with the first wired port of the first 5G device, and the fourth virtual interface is a virtual interface which is generated when a second VXLAN tunnel link is established and is connected with the first wired port of the second 5G device.
7. The method according to claim 1, wherein when it is monitored that the active link is abnormal, the communication link between the first 5G device and the second 5G device is switched from the active link to a standby link, so that the client and the server communicate with each other through the standby link, and the method further comprises:
and when the situation that the active link circuit recovers normal communication is monitored, switching a communication link circuit between the first 5G device and the second 5G device from a standby link circuit to the active link circuit so as to enable the client and the server to communicate through the active link circuit between the first 5G device and the second 5G device.
8. A system for protecting a communication link, comprising:
the first connection module is used for being in communication connection with the client through first 5G equipment;
the second connection module is used for being in communication connection with the server through second 5G equipment;
an establishing module, configured to enable the first 5G device and the second 5G device to establish an active link based on the 5G network;
and a switching module, configured to switch, when it is monitored that the active link is abnormal, a communication link between the first 5G device and the second 5G device from the active link to a standby link, so that the client and the server communicate with each other through the standby link between the first 5G device and the second 5G device, where the standby link is a wired connection link connected between the first 5G device and the second 5G device.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
10. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any one of claims 1 to 7 when executed.
CN202210438738.0A 2022-04-21 2022-04-21 Method, system, device and medium for protecting communication link Pending CN114938516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210438738.0A CN114938516A (en) 2022-04-21 2022-04-21 Method, system, device and medium for protecting communication link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210438738.0A CN114938516A (en) 2022-04-21 2022-04-21 Method, system, device and medium for protecting communication link

Publications (1)

Publication Number Publication Date
CN114938516A true CN114938516A (en) 2022-08-23

Family

ID=82861641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210438738.0A Pending CN114938516A (en) 2022-04-21 2022-04-21 Method, system, device and medium for protecting communication link

Country Status (1)

Country Link
CN (1) CN114938516A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130041931A1 (en) * 2011-08-08 2013-02-14 Ctera Networks Ltd. Remote access service for cloud-enabled network devices
CN110311861A (en) * 2019-05-31 2019-10-08 厦门网宿有限公司 A kind of method and apparatus guiding data traffic
CN110417569A (en) * 2018-04-28 2019-11-05 华为技术有限公司 A kind of network link failure processing method and endpoint of a tunnel equipment
CN112333091A (en) * 2020-11-05 2021-02-05 中国联合网络通信集团有限公司 Routing system, method and device
CN113542005A (en) * 2021-06-01 2021-10-22 浙江捷创方舟数字技术有限公司 Backup system based on 5G network and WiFi6 technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130041931A1 (en) * 2011-08-08 2013-02-14 Ctera Networks Ltd. Remote access service for cloud-enabled network devices
CN110417569A (en) * 2018-04-28 2019-11-05 华为技术有限公司 A kind of network link failure processing method and endpoint of a tunnel equipment
CN110311861A (en) * 2019-05-31 2019-10-08 厦门网宿有限公司 A kind of method and apparatus guiding data traffic
CN112333091A (en) * 2020-11-05 2021-02-05 中国联合网络通信集团有限公司 Routing system, method and device
CN113542005A (en) * 2021-06-01 2021-10-22 浙江捷创方舟数字技术有限公司 Backup system based on 5G network and WiFi6 technology

Similar Documents

Publication Publication Date Title
CN108574614B (en) Message processing method, device and network system
CN113572831B (en) Communication method, computer equipment and medium between Kubernetes clusters
US9992058B2 (en) Redundant storage solution
US10560550B1 (en) Automatic configuration of a replacement network device in a high-availability cluster
US8984114B2 (en) Dynamic session migration between network security gateways
EP2939401B1 (en) Method for guaranteeing service continuity in a telecommunication network and system thereof
CN111641522A (en) Method, system and computer equipment for node switching
WO2017215430A1 (en) Node management method in cluster and node device
CN113515408A (en) Data disaster tolerance method, device, equipment and medium
CN110932876B (en) Communication system, method and device
CN109309617A (en) Disaster tolerance switching method, relevant device and computer storage medium
CN116881053B (en) Data processing method, exchange board, data processing system and data processing device
CN111988222A (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN112398689A (en) Network recovery method and device, storage medium and electronic equipment
CN112511326B (en) Switching method, device, equipment and storage medium
CN113132159A (en) Storage cluster node fault processing method and device and storage system
WO2022217786A1 (en) Cross-network communicaton method, apparatus, and system for multi-bus network, and storage medium
KR20120054651A (en) Methods for improved server redundancy in dynamic networks
CN116193481A (en) 5G core network processing method, device, equipment and medium
CN114938516A (en) Method, system, device and medium for protecting communication link
CN111490932A (en) Communication method and device
JP2009278297A (en) Gateway device, communication system including the same, and communication method
JP2019205153A (en) Multi-node apparatus and spare communication method thereof
CN114157606B (en) Virtual network element device switching method, device and storage medium
CN113518131A (en) Fault-tolerant processing method, device and system for transmission data of network abnormity

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination