CN111629386B - Communication method, system and equipment - Google Patents

Communication method, system and equipment Download PDF

Info

Publication number
CN111629386B
CN111629386B CN201910153072.2A CN201910153072A CN111629386B CN 111629386 B CN111629386 B CN 111629386B CN 201910153072 A CN201910153072 A CN 201910153072A CN 111629386 B CN111629386 B CN 111629386B
Authority
CN
China
Prior art keywords
link
network
routing information
network device
target
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.)
Active
Application number
CN201910153072.2A
Other languages
Chinese (zh)
Other versions
CN111629386A (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910153072.2A priority Critical patent/CN111629386B/en
Publication of CN111629386A publication Critical patent/CN111629386A/en
Application granted granted Critical
Publication of CN111629386B publication Critical patent/CN111629386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/248Connectivity information update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/34Modification of an existing route
    • H04W40/36Modification of an existing route due to handover

Abstract

The embodiment of the application provides a communication method, a communication system and communication equipment. The method comprises the following steps: when a first link corresponding to the routing information of the first network equipment meets a first preset condition, updating the routing information of the first network equipment based on a second link, wherein the first link and the second link are different paths for the first network equipment to access a target network; and sending the updated routing information of the first network equipment to the first equipment, so that the first equipment determines target network equipment for assisting the first equipment in information transmission with the target equipment in the target network according to the updated routing information of the first network equipment and the routing information of the at least one second network equipment. The technical scheme provided by the embodiment of the application can enable the network equipment to switch the decoupling control equipment for automatic switching, and can effectively avoid the problems that the interruption time length is prolonged and even the switching fails and the like caused by uncertain factors such as poor network quality, network disconnection and the like of the control equipment.

Description

Communication method, system and equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method, system, and device.
Background
With the development of network technology, the requirements of users on network reliability are increasing day by day. In order to maintain the reliability of the network, the user equipment generally needs to access the target network by means of device backup and/or link backup, for example: virtual Private network VPC (Virtual Private Cloud).
In a conventional multilink network, a network device, for example, a gateway device, is usually required to report a fault state to a management and control device, and the management and control device determines a link switching or a device switching action. Once the network quality of the management and control device is poor or the network is disconnected, the switching duration (i.e., the interruption duration) is prolonged, or even the switching fails, so that the network reliability is deteriorated and the user experience is affected.
Disclosure of Invention
In view of the above, the present application is proposed to provide a communication method, system and device that solves the above problems, or at least partially solves the above problems.
Thus, in one embodiment of the present application, a method of communication is provided. The method comprises the following steps:
when a first link corresponding to routing information of first network equipment meets a first preset condition, updating the routing information of the first network equipment based on a second link, wherein the first link and the second link are different paths for the first network equipment to access a target network;
and sending the updated routing information of the first network device to a first device, so that the first device determines a target network device for assisting the first device in information transmission with a target device in the target network from the first network device and at least one second network device according to the updated routing information of the first network device and the routing information of at least one second network device.
In another embodiment of the present application, a method of communication is provided. The method comprises the following steps:
when a second link with higher priority than a first link corresponding to routing information of first network equipment does not meet a first preset condition, updating the routing information of the first network equipment based on the second link, wherein the first link and the second link are different paths for the first network equipment to access a target network;
and sending the updated routing information of the first network device to a first device, so that the first device determines a target network device for assisting the first device in information transmission with a target device in the target network from the first network device and at least one second network device according to the updated routing information of the first network device and the routing information of at least one second network device.
In another embodiment of the present application, a method of communication is provided. The method comprises the following steps:
detecting link states of at least two links for a network device to access a target network;
determining a target link in the at least two links according to the link states of the at least two links;
and when receiving a data packet sent by first equipment, transmitting the data packet to target equipment in the target network through the target link.
In another embodiment of the present application, a method of communication is provided. The method comprises the following steps:
acquiring routing information of each network device in at least one network device;
and determining target network equipment for information transmission with the target equipment in the target network in the at least one network equipment according to the routing information of each network equipment in the at least one network equipment.
In one embodiment of the present application, a disaster recovery system is provided. The system comprises: at least two network devices and a first device;
when a first link corresponding to the routing information of any network device in the at least two network devices meets a first preset condition, updating the routing information of any network device based on a second link, wherein the first link and the second link are different paths for any network device to access a target network; sending the updated routing information of any network device to the first device;
the first device is configured to determine, according to the routing information of the at least two network devices, a target network device for assisting the first device in information transmission with a target device in the target network, from the at least two network devices.
In yet another embodiment of the present application, a disaster recovery system is provided. The system comprises: at least two network devices and a first device;
any one of the at least two network devices is configured to update the routing information of the any one network device based on a second link when the second link with a higher priority than a first link corresponding to the routing information of the any one network device does not meet a first preset condition, where the first link and the second link are different paths through which the any one network device accesses a target network; sending the updated routing information of any network device to the first device;
the first device is configured to determine, according to the routing information of the at least two network devices, a target network device in the at least two network devices, where the target network device is used to assist the first device in information transmission with a target device in the target network.
In another embodiment of the present application, a method of communication is provided. The method comprises the following steps:
updating routing information of first network equipment based on a second link, wherein the second link is a passage for the first network equipment to access a target network;
and determining target network equipment for information transmission with the target network from the first network equipment and the at least one second network equipment according to the updated routing information of the first network equipment and the routing information of the at least one second network equipment.
In an embodiment of the present application, a first network device is provided. The first network device includes:
a first memory, a first processor, and a first communication component, wherein,
the first memory is used for storing programs;
the first processor coupled with the first communication component;
the first processor, coupled with the first memory, to execute the program stored in the first memory to:
when a first link corresponding to the routing information of the first network equipment meets a first preset condition, updating the routing information of the first network equipment based on a second link, wherein the first link and the second link are different paths for the first network equipment to access a target network;
and controlling the first communication component to send the updated routing information of the first network device to the first device, so that the first device determines a target network device for assisting the first device in information transmission with a target device in the target network from the first network device and the at least one second network device according to the updated routing information of the first network device and the routing information of the at least one second network device.
In yet another embodiment of the present application, a first network device is provided. The first network device includes:
a second memory, a second processor, and a second communication component, wherein,
the second memory is used for storing programs;
the second processor coupled with the second communication component;
the second processor, coupled to the second memory, is configured to execute the program stored in the second memory to:
updating the routing information of the first network equipment based on a second link when the second link with higher priority than a first link corresponding to the routing information of the first network equipment does not meet a first preset condition, wherein the first link and the second link are different paths for the first network equipment to access a target network;
and controlling the second communication component to send the updated routing information of the first network device to the first device, so that the first device determines a target network device for assisting the first device in information transmission with a target device in the target network from the first network device and the at least one second network device according to the updated routing information of the first network device and the routing information of the at least one second network device.
In yet another embodiment of the present application, a network device is provided. The network device includes:
a third memory, a third processor, and a third communication component, wherein,
the third memory is used for storing programs;
the third processor coupled with the third communication component;
the third processor, coupled to the third memory, is configured to execute the program stored in the third memory to:
detecting link states of at least two links for the network device to access a target network;
determining a target link in the at least two links according to the link states of the at least two links;
and controlling the third communication assembly to transmit the data packet to target equipment in the target network through the target link when receiving the data packet sent by the first equipment.
In yet another embodiment of the present application, an electronic device is provided. The electronic device includes:
a fourth memory and a fourth processor, wherein,
the fourth memory is used for storing programs;
the fourth processor, coupled to the fourth memory, configured to execute the program stored in the fourth memory to:
acquiring routing information of each network device in at least one network device;
and determining target network equipment for information transmission with the target equipment in the target network in the at least one network equipment according to the routing information of each network equipment in the at least one network equipment.
In yet another embodiment of the present application, an electronic device is provided. The electronic device includes:
a fifth memory and a fifth processor, wherein,
the fifth memory is used for storing programs;
the fifth processor, coupled to the fifth memory, configured to execute the program stored in the fifth memory to:
updating routing information of first network equipment based on a second link, wherein the second link is a passage for the first network equipment to access a target network;
and determining target network equipment for information transmission with the target network from the first network equipment and the at least one second network equipment according to the updated routing information of the first network equipment and the routing information of the at least one second network equipment.
In the technical solution provided in the embodiment of the present application, when a first link corresponding to the routing information of the first network device satisfies a first preset condition, the routing information is updated based on a second link. And sending the updated routing information to the first equipment. The first device can automatically determine a target network device for assisting the first device in information interaction with the target device in the target network according to the routing information of the first network device and the routing information of the at least one second network device, so that automatic switching of the network devices is realized. Compared with the prior art that the network equipment is controlled to be switched through the control equipment, the technical scheme provided by the embodiment of the application can enable the network equipment to be switched to the decoupling control equipment for automatic switching, and can effectively avoid the problems that the interruption time length is prolonged and even the switching fails and the like caused by uncertain factors such as poor network quality, network disconnection and the like of the control equipment.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a block diagram of a disaster recovery system according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a communication method according to an embodiment of the present application;
FIG. 3 is a diagram of a multilink system architecture provided by an embodiment of the present application;
fig. 4 is a flowchart illustrating a communication method according to another embodiment of the present application;
fig. 5 is a flowchart illustrating a communication method according to another embodiment of the present application;
fig. 6 is a flowchart illustrating a communication method according to another embodiment of the present application;
fig. 7 is a block diagram of a communication device according to an embodiment of the present invention;
fig. 8 is a block diagram of a communication device according to another embodiment of the present invention;
fig. 9 is a block diagram of a communication device according to another embodiment of the present invention;
fig. 10 is a block diagram of a first network device according to an embodiment of the present invention;
fig. 11 is a block diagram of a first network device according to another embodiment of the present invention;
fig. 12 is a block diagram of a network device according to an embodiment of the present invention;
fig. 13 is a block diagram of an electronic device according to yet another embodiment of the present invention;
fig. 14 is a flowchart illustrating a communication method according to another embodiment of the present invention;
fig. 15 is a flowchart of a communication device according to another embodiment of the present invention;
fig. 16 is a block diagram of an electronic device according to yet another embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
In some of the flows described in the specification, claims, and above-described figures of the present invention, a number of operations are included that occur in a particular order, which operations may be performed out of order or in parallel as they occur herein. The sequence numbers of the operations, e.g., 101, 102, etc., are merely used to distinguish between the various operations, and the sequence numbers themselves do not represent any order of execution. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
In a conventional disaster recovery multilink, a network device reports a fault state to a management and control device, and the management and control device decides link switching or network device switching actions. Once the network quality of the management and control device is deteriorated or the management and control device is disconnected from the network, the time occupied by switching is prolonged, even the switching fails, and the like, so that the network reliability is deteriorated, and the user experience is influenced.
When a network device has redundant links and there are redundant devices, an efficient inter-link switching method is needed to effectively reduce the link switching cost (i.e., outage time). The embodiment of the present application provides a self-adaptive link priority management method to achieve the above-mentioned objectives, and can be applied to high availability scenes based on more demands in an expanded manner, for example: single machine, double machine, single link, double link and even multilink.
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It should be apparent that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Before introducing the communication method provided by the present application, a system architecture on which the method provided by the present application is based is described.
As shown in fig. 1, a schematic structural diagram of a disaster recovery system according to an embodiment of the present application is provided. As shown in fig. 1, the system provided in this embodiment includes: at least two network devices 101 and a first device 102.
Any one of the at least two network devices 101 is configured to update the routing information of any one of the network devices based on a second link when a first link corresponding to the routing information of the any one of the network devices meets a first preset condition; sending the updated routing information of any network device to the first device 102;
the first device 102 is configured to determine, according to the routing information of the at least two network devices 101, a target network device in the at least two network devices, where the target network device is used to assist the first device 102 in information transmission with a target device in the target network.
Wherein, the first link and the second link are both paths for any network device to access a target network.
In the technical solution provided in the embodiment of the present application, when a first link corresponding to the routing information of the first network device satisfies a first preset condition, the routing information is updated based on a second link. And sending the updated routing information to the first equipment. The first device can automatically determine a target network device for assisting the first device to perform information interaction with the target device in the target network according to the routing information of the first network device and the routing information of the at least one second network device, so that automatic switching of the network devices is realized. Compared with the prior art that the switching of the network equipment is controlled through the control equipment, the technical scheme provided by the embodiment of the application can enable the network equipment to switch the decoupling control equipment for automatic switching, and can effectively avoid the problems that the interruption time length is prolonged and even the switching fails and the like caused by uncertain factors such as poor network quality, network disconnection and the like of the control equipment.
In a specific application scenario, the network device 101 may be a gateway device, the target network may be a virtual private network VPC, and the first device 102 may be a switch or a user equipment. When a switch or user equipment wants to access a device in the virtual private network VPC, the switch or the user equipment needs to access the device through the gateway device.
The specific work flows of the constituent units, such as at least two network devices and the first device, and the signaling interaction between the constituent units in the disaster recovery system provided in the embodiment of the present application will be further described in the following embodiments.
Fig. 2 is a flowchart illustrating a communication method according to an embodiment of the present application. As shown in fig. 2, the method includes:
201. and when a first link corresponding to the routing information of the first network equipment meets a first preset condition, updating the routing information of the first network equipment based on a second link.
202. And sending the updated routing information of the first network equipment to the first equipment.
The first link and the second link are different paths for the first network device to access the target network. The first network device may be provided with a plurality of links in advance for the first network device to access the target network. The target network may provide at least one Access Gateway (AGW) for the first network device to access, and multiple links for the first network device to access the target network are established between the first network device and the at least one access gateway. As shown in fig. 3, the target network provides two access gateways 103 for a first network device 1011: AGW1 and AGW2, a first wired link (indicated by a solid line a in the figure) and a first wireless link (indicated by a dashed line C in the figure) are established between the first network device 1011 and the AGW 1; a second wired link (indicated by a solid line B) and a second wireless link (indicated by a dashed line D) are established between the first network device 1011 and the AGW 2; that is, there are four links for the first network device 1011 to access the target network, which are the first wired link a, the first wireless link C, the second wired link B, and the second wireless link D. In addition, as shown in fig. 3, the target network also provides two access gateways 103 for the second network device 1012: AGW1 and AGW2, a third wired link E and a third wireless link G are established between the second network device 1012 and the AGW 1; a fourth wireless link H and a fourth wired link F are established between the second network device 1012 and the AGW 2; that is, there are four links for the second network device 1012 to access the target network, which are a third wired link E, a third wireless link G, a fourth wired link F, and a fourth wireless link H. Specifically, the wireless link may be a 2G, 3G, or 4G link.
In 201, the link status of the first link may be detected; and judging whether the first link is abnormal or not according to the link state of the first link.
The routing information of the first network device may indicate link information to be traversed by its next hop. The first link corresponding to the routing information of the first network device is also a link that the first network device will pass through next hop. When the first link meets the first preset condition, the first network device may update the routing information of the first network device based on the backed-up second link, and the updated routing information of the first network device may indicate that a link through which a next hop of the first network device passes is the second link. As can be seen, the updating of the routing information of the first network device is to switch the link to be passed by the next hop of the first network device from the first link to the second link.
In specific implementation, it may be determined whether the first link meets a first preset condition, for example: whether the first link is disconnected or the network speed of the first link is lower than a preset network speed threshold value can be judged, and if the first link is disconnected or the network speed of the first link is lower than the preset network speed threshold value, the first link can be judged to meet a first preset condition.
In 202, the updated routing information of the first network device is sent to the first device, so that the first device determines, according to the updated routing information of the first network device and the routing information of the at least one second network device, a target network device for assisting the first device in information transmission with a target device in the target network from the first network device and the at least one second network device.
In practical applications, when a first device wants to perform information transmission with a device in a target network, the first device must perform information transmission with the device in the target network through the first network device or a second network device. When the first network device and the at least one second network device exist, the first device needs to determine a target network device from the first network device to assist the first network device in information transmission with the target device in the target network. Specifically, the latest routing information of the first network device and the at least one second network device is issued to the first device, and the first device determines the target network device from the first network device and the at least one second network device according to the latest routing information of the first network device and the latest routing information of the at least one second network device. The target device refers to an information transmission object of the first device, and usually, a data packet transmitted by the first device includes a destination IP address, and the target device can be determined according to the destination IP address. After the target device in the target network receives the data packet transmitted by the first device through the second link, if a response packet is to be returned to the first device, the response packet may be directly returned to the first device through the second link.
It should be added that both the first network device and the second network device are one of at least two network devices in the above system embodiment. The routing information update procedure of the second network device may be the same as the routing information update procedure of the first network device.
In the technical solution provided in the embodiment of the present application, when a first link corresponding to the routing information of the first network device satisfies a first preset condition, the routing information is updated based on a second link. And sending the updated routing information to the first equipment. The first device can automatically determine a target network device for assisting the first device in information interaction with the target device in the target network according to the routing information of the first network device and the routing information of the at least one second network device, so that automatic switching of the network devices is realized. Compared with the prior art that the network equipment is controlled to be switched through the control equipment, the technical scheme provided by the embodiment of the application can enable the network equipment to be switched to the decoupling control equipment for automatic switching, and can effectively avoid the problems that the interruption time length is prolonged and even the switching fails and the like caused by uncertain factors such as poor network quality, network disconnection and the like of the control equipment.
In practical applications, the method may be applied to the first network device. Namely, the execution subject of the method is the first network device. Therefore, when the first link meets the first preset condition, the first network device automatically updates its routing information based on the second link, and the first network device updates its routing information, that is, the first network device switches the link provided by the first network device for information transmission from the first link to the second link. And the first network equipment sends the updated routing information to the first equipment. The first device can automatically determine the target network device for assisting the first device in information interaction with the target device in the target network according to the routing information sent by the first network device and the routing information sent by the at least one second network device, so that the switching of the network devices is realized. Compared with the prior art that the link and the equipment are controlled through the control equipment, the technical scheme provided by the embodiment of the application can enable the link and the equipment to switch the decoupling control equipment for automatic switching, and can effectively avoid the problems that the interruption time is prolonged and even the switching fails and the like caused by uncertain factors such as poor network quality, network disconnection and the like of the control equipment.
In addition, in actual application, if the data transmission tunnel is established based on the second link, the data transmission tunnel does not need to be established based on the second link after switching; if the data transmission tunnel is not established based on the second link currently, the data transmission tunnel needs to be established based on the second link after switching. The data transmission tunnel may be a VPN (Virtual Private Network) tunnel, and the tunnel is an encrypted tunnel, which may ensure security of information transmission.
In order to ensure that the first device can perform information transmission with the target device in the target network through the superior link, the information transmission efficiency is improved. The first network device and the at least one second network device may be configured with a priority for each of the plurality of links for accessing the target network. The user may configure the priority of each link based on a variety of metric factors, such as: the priority of the main link is higher than that of the standby link, and the priority of the main network device is higher than that of the standby network device.
For example: as shown in fig. 3, the first network device 1011 is a master network device, the second network device 1012 is a standby network device, the wired link is a master link, and the wireless link is a standby link. In device-first mode (i.e., all links on the primary network device have priority over links on the standby network device): the priority of the first wired link A, the first wireless link C, the second wired link B, the second wireless link D, the third wired link E, the third wireless link G, the fourth wired link F and the fourth wireless link H is from high to low: a > B > C > D > E > F > G > H; in the wired mode of the links (i.e. the priority of the wired links is higher than that of the wireless links), the priorities of the first wired link a, the first wireless link C, the second wired link B, the second wireless link D, the third wired link E, the third wireless link G, the fourth wired link F and the fourth wireless link H are, in order from high to low: a > B > E > F > C > D > G > H.
In this way, in the foregoing 201, "updating the routing information of the first network device based on the second link" may specifically be implemented by adopting the following steps:
2011. determining a priority of the second link.
2012. And updating the routing information of the first network equipment according to the priority.
In an implementable approach, the priority of the link traversed by the next hop of the first network device may be included in the routing information of the first network device. The routing information of the first network device before updating includes the priority of the first link, and the routing information of the first network device after updating includes the priority of the second link. After receiving the routing information of the first network device, the first device may determine the priority of a link through which a next hop of the first network device passes. In this way, the first device may determine priorities of links through which the respective next hops of the first network device and the at least one second network device pass, so that a network device corresponding to a link with the highest priority is selected as the target network device.
In another implementation, in 2012, "updating the routing information of the first network device according to the priority" may specifically be implemented by:
s11, determining the network segment splitting level to which the priority belongs.
And S12, carrying out network segment splitting on the network segment of the target network according to the network segment splitting scheme corresponding to the network segment splitting level.
And S13, updating the first routing information of the network equipment according to the network segment splitting result.
Wherein the updated routing information of the first network device includes: and obtaining at least one subnet section information after the network section is split.
The corresponding relation between the priority of the link and the network segment splitting level and the corresponding relation between the network segment splitting level and the network segment splitting scheme can be established in advance. Specifically, the higher the priority, the higher the network segment splitting level corresponding to the priority; the higher the network segment splitting level is, the larger the splitting times in the network segment splitting scheme corresponding to the network segment splitting level is. The network segment splitting level corresponding to the priority of the second link is the network segment splitting level to which the priority of the second link belongs.
For example: multiple links as shown in fig. 3: the priority of the first wired link A, the first wireless link C, the second wired link B, the second wireless link D, the third wired link E, the third wireless link G, the fourth wired link F and the fourth wireless link H is from high to low: a > B > E > F > C > D > G > H, then: link a has a priority of 1, link B has a priority of 2, link E has a priority of 3, link F has a priority of 4, link C has a priority of 5, link D has a priority of 6, link G has a priority of 7, and link H has a priority of 8. Establishing the corresponding relation between the priority levels 1 and 2 and the network segment splitting level 1, the corresponding relation between the priority levels 3 and 4 and the network segment splitting level 2, the corresponding relation between the priority levels 5 and 6 and the network segment splitting level 3 and the corresponding relation between the priority levels 7 and 8 and the network segment splitting level 4. In addition, the network segment splitting scheme corresponding to the network segment splitting level 1 is as follows: network segment splitting is carried out for 3 times; the network segment splitting scheme corresponding to the network segment splitting level 2 is as follows: the network segment is split for 2 times; the network segment splitting scheme corresponding to the network segment splitting level 3 is as follows: network segment splitting is carried out for 1 time; the network segment splitting scheme corresponding to the network segment splitting level 4 is as follows: the network segment is not split.
In the above S12, the network segment of the target network is split, and at least one sub-network segment can be obtained. For example: the network segment splitting scheme includes splitting network segment for 3 times and splitting network segment of target network for three times to obtain 2 3 A sub-network segment; the network segment splitting scheme includes that network segment splitting is performed for 2 times, and network segment splitting is performed for two times on a target network, so that 2 can be obtained 2 A subnet section; the network segment splitting scheme includes that the network segment is split for 1 time, and the network segment of the target network is split for one time to obtain 2 1 A subnet section; the network segment splitting scheme is that the network segment is not split, the network segment of the target network is not split, and 2 can be obtained 0 And (4) a sub-network segment. It should be noted that the network segment of the target network is not split, and the obtained sub-network segment is the network segment of the target network segment.
As shown in FIG. 3, the target network is a VPC network with segments 10.10.10.0/24, where 24 of/24 is a network bit. The first network device 1011 splits the network segment of the VPC network three times, obtaining 8 sub-network segments: 10.10.10.0/27, 10.10.32/27, 10.10.10.64/27, 10.10.96/27, 10.10.128/27, 10.10.10.160/27, 10.10.192/27, 10.10.224/27, where 27 in/27 is a network bit. The second network device 1012 has split the network segment of the VPC network 2 times, resulting in 4 sub-network segments: 10.10.10.0/26, 10.10.10.64/26, 10.10.10.128/26, 10.10.10.192/26, wherein 26 of/26 is a network bit.
It needs to be added that the network segment of the target network is split n times, and the obtained network bit of the sub-network segment is equal to the sum of the network bit of the network segment of the target network and n.
Thus, the first device can determine the network position of the subnet section information according to the subnet section information in the routing information sent by the first network device and the at least one second network device; and the network equipment corresponding to the maximum network bit is taken as the target network equipment, so that the first equipment can carry out information transmission with the target equipment in the target network through a better link. For example: if the number of the second network devices is one, the network bit of the subnet section information in the routing information sent by the first network device is 27, and the network bit of the subnet section information in the routing information sent by the second network device is 26, the first network device corresponding to the maximum network bit 27 is taken as the target network device.
In another implementation, in 2012, "updating the routing information of the first network device according to the priority" may specifically be implemented by:
and S21, acquiring the preset routing cost value corresponding to the priority.
S22, replacing the current routing cost value in the first routing information with the preset routing cost value to obtain updated routing information of the first network equipment.
In the above S21, a preset routing cost value (i.e. a cost value) may be set in advance for each priority. The higher the priority, the lower its corresponding preset routing cost value.
In the above S22, the current route cost value in the first route information is the preset route cost value N corresponding to the priority of the first link; and replacing N in the first routing information by the preset routing cost value M corresponding to the priority of the second link to obtain the updated routing cost value M in the routing information of the first network equipment.
In this way, the first device determines the network device corresponding to the minimum route cost value according to the route cost values in the route information sent by the first network device and the at least one second network device; and taking the network equipment corresponding to the minimum routing cost value as the target network equipment. For example: the number of the second network devices is one, the routing cost value in the routing information of the first network device is 300, the routing cost value in the routing information of the second network device is 200, and the second network device corresponding to the minimum routing cost value of 200 is used as the target network device.
Further, the method may further include:
203. and when the first link meets a first preset condition, acquiring link states of other links except the first link.
204. And determining the second link according to the link states of the other links.
Wherein the first link and the other links are different paths for the first network device to access the target network. The other links may be one, two or more.
In 203, the link status may include two statuses: a normal state (i.e., a connected state) and an abnormal state (i.e., a disconnected state or a state in which the line speed is lower than a preset line speed threshold).
In 204, at least one available link is determined according to link states of other links; any one of the at least one available link may be taken as the second link or an available link having a highest priority among the at least one available link may be determined as the second link. And determining the available link with the highest priority in the at least one available link as the second link, so that the first device can perform information transmission with the target device in the target network through the better link, and the information transmission efficiency is improved.
In the foregoing embodiments, the timing for updating the routing information of the first network device is when the first link is abnormal. However, in practical applications, this will often occur: when the first link is normal (that is, the first link does not satisfy the first preset condition), the link state of a third link with a higher priority than that of the first link returns to normal. In this case, in order to ensure that the first device can perform information transmission with the target device in the target network through the superior link, and improve the information transmission efficiency, the first link may be switched to the third link. Specifically, the method further includes:
205. and when detecting that the link state of a third link with the priority higher than that of the first link does not meet the first preset condition, updating the routing information of the first network equipment based on the third link.
Wherein the first link and the third link are different paths for the first network device to access the target network.
In the above 205, when detecting that the link status of the third link with higher priority than the first link returns to normal, the routing information of the first network device is updated based on the third link. The specific implementation of "updating the routing information of the first network device based on the third link" may refer to the corresponding content of "updating the routing information of the first network device based on the second link" in the foregoing embodiment.
Further, the method may further include:
206. and establishing a data transmission tunnel based on the third link.
The data transmission tunnel can be a VPN tunnel so as to realize encryption transmission and improve the safety of information transmission.
Further, the method may further include:
207. and when the link state of the first link is normal, the first link and the third link are paths between the first network device and the same access point gateway of a target network, and the first link is a wireless link and the third link is a wired link, cutting off a data transmission tunnel established based on the first link.
Since the data transmission tunnel between the first network device and the access point gateway of the target network is already established based on the third link, the data transmission tunnel between the first network device and the access point gateway established based on the first link does not need to be retained.
To sum up, the technical scheme provided by the embodiment of the application can realize link switching decoupling control equipment, the links are automatically switched, and the interruption time can be greatly reduced. The high-efficiency redundant inter-link switching method can effectively reduce the link switching cost; and the switching mode of the multiple link backups provided by the application can increase the expansibility of the link.
Before introducing the communication method provided in the present application according to another embodiment, a system architecture based on the method provided in the present application will be described.
As shown in fig. 1, a schematic structural diagram of a disaster recovery system according to an embodiment of the present application is provided. As shown in fig. 1, the system provided in this embodiment includes: at least two network devices 101 and a first device 102.
Any one of the at least two network devices 101 is configured to update the routing information of any one of the network devices based on a second link when the second link with a higher priority than a first link corresponding to the routing information of the any one of the network devices does not satisfy a first preset condition; and sending the updated routing information of any network device to the first device 102.
The first device 102 is configured to determine, according to the routing information of the at least two network devices, a target network device in the at least two network devices, where the target network device is used to assist the first device 102 in information transmission with a target device in the target network.
Wherein the first link and the second link are different paths for the any network device to access a target network.
In the technical solution provided in the embodiment of the present application, when a second link having a higher priority than a first link corresponding to routing information of a certain network device does not satisfy a first preset condition, the routing information of the network device is updated based on the second link. And sending the updated routing information to the first equipment. The first device can automatically determine the target network device for assisting the first device in information transmission with the target device in the target network according to the routing information sent by the first network device and the routing information sent by the at least one second network device, so that automatic switching of the network devices is realized. Compared with the prior art that the switching of the network equipment is controlled through the control equipment, the technical scheme provided by the embodiment of the application can enable the network equipment to switch the decoupling control equipment for automatic switching, and can effectively avoid the problems that the interruption time length is prolonged and even the switching fails and the like caused by uncertain factors such as poor network quality, network disconnection and the like of the control equipment.
In a specific application scenario, the network device 101 may be a gateway device, the target network may be a virtual private network VPC, and the first device 102 may be a switch or a user equipment. When a switch or user equipment wants to access a device in the virtual private network VPC, the switch or the user equipment needs to access the device through the gateway device.
The specific work flows of the constituent units, such as at least two network devices and the first device, and the signaling interaction between the constituent units in the disaster recovery system provided in the embodiment of the present application will be further described in the following embodiments.
Fig. 4 is a flowchart illustrating a communication method according to another embodiment of the present application. As shown in fig. 4, the method includes:
301. and updating the routing information of the first network equipment based on a second link when the second link with higher priority than a first link corresponding to the routing information of the first network equipment does not meet a first preset condition.
302. And sending the updated routing information of the first network equipment to the first equipment.
The first link and the second link are different paths for the first network device to access the target network.
In 301, link statuses of a plurality of links for accessing the target network by the first network device may be detected in real time. And determining whether a second link with the priority higher than that of a first link corresponding to the routing information of the first network equipment does not meet a first preset condition according to the link states of the plurality of links.
For specific implementation of "updating the routing information of the first network device based on the second link," reference may be made to corresponding contents in the foregoing embodiments, and details are not described herein again.
302. The updated routing information of the first network device is sent to a first setting, so that the first device determines a target network device for assisting information transmission between the first device and a target device in the target network from the first network device and the at least one second network device according to the updated routing information of the first network device and the routing information of the at least one second network device.
It should be added that both the first network device and the second network device are one of at least two network devices in the above system embodiment.
In the technical solution provided in the embodiment of the present application, when a second link with a priority higher than a first link corresponding to the routing information of a certain network device does not satisfy a first preset condition, the routing information of the network device is updated based on the second link. And sending the updated routing information to the first equipment. The first device can automatically determine the target network device for assisting the first device in information transmission with the target device in the target network according to the routing information sent by the first network device and the routing information sent by the at least one second network device, so that automatic switching of the network devices is realized. Compared with the prior art that the network equipment is controlled to be switched through the control equipment, the technical scheme provided by the embodiment of the application can enable the network equipment to be switched to the decoupling control equipment for automatic switching, and can effectively avoid the problems that the interruption time length is prolonged and even the switching fails and the like caused by uncertain factors such as poor network quality, network disconnection and the like of the control equipment.
In practical applications, the method may be applied to the first network device. Namely, the execution subject of the method is the first network device. In this way, when the second link with the higher priority than the first link corresponding to the routing information of any network device does not satisfy the first preset condition, the first network device will automatically update its own routing information based on the second link, and the first network device updates its own routing information, that is, the first network device switches the link provided by the first network device for information transmission from the first link to the second link. And the first network equipment sends the updated routing information to the first equipment. The first device can automatically determine the target network device according to the routing information sent by the first network device and the routing information sent by the at least one second network device, so that the switching of the network devices is realized. Compared with the prior art that the link and the equipment are controlled through the control equipment, the technical scheme provided by the embodiment of the application can enable the link and the equipment to switch the decoupling control equipment for automatic switching, and can effectively avoid the problems that the interruption time is prolonged and even the switching fails and the like caused by uncertain factors such as poor network quality, network disconnection and the like of the control equipment.
Further, in 301, "updating the routing information of the first network device based on the second link" may specifically be implemented by the following steps:
3011. determining a priority of the second link.
3012. And updating the routing information of the first network equipment according to the priority.
The specific implementation of step 3011 and step 3012 may refer to corresponding content in the foregoing embodiments, and is not described herein again.
Further, the method may further include:
303. and establishing a data transmission tunnel based on the second link.
Since the second link is just recovered, the data transmission tunnel needs to be re-established based on the second link for information transmission. The data transmission tunnel may be a VPN (Virtual Private Network) tunnel, so as to implement encrypted transmission and improve security of information transmission.
Further, the method may further include:
304. and when the link state of the first link is normal, the first link and the second link are a path between the first network device and the same access point gateway of the target network, and the first link is a wireless link and the second link is a wired link, cutting off a data transmission tunnel established based on the first link.
Since the data transmission tunnel between the first network device and the access point gateway of the target network is already established based on the second link, the data transmission tunnel between the first network device and the access point gateway established based on the first link does not need to be reserved.
Here, it should be noted that: for specific implementation of each step in the embodiments of the present application, parts that are not elaborated in this embodiment may refer to relevant contents in the above embodiments, and details are not described here. In addition, the method provided in the embodiment of the present application may include all or part of the steps in the embodiments in addition to the steps described above, and specific reference may be made to corresponding contents in the embodiments above, which are not described herein again.
To sum up, the technical scheme provided by the embodiment of the application can realize link switching decoupling control equipment, the links are automatically switched, and the interruption time can be greatly reduced. The high-efficiency redundant inter-link switching method can effectively reduce the link switching cost; and the switching mode of the multiple link backups provided by the application can increase the expansibility of the link.
The communication method provided by the embodiments is suitable for the scenes of double-network equipment, multi-network equipment and the like. A communication method suitable for a single network device scenario will be described below. Fig. 5 is a flowchart illustrating a communication method according to another embodiment of the present application. As shown in fig. 5, the method includes:
401. link states of at least two links for a network device to access a target network are detected.
402. Determining a target link in the at least two links according to the link states of the at least two links;
403. and when receiving a data packet sent by first equipment, transmitting the data packet to target equipment in the target network through the target link.
In the above 401, at least two links are different paths for the network device to access the target network. The target network may provide at least one Access Gateway (AGW) for the network device to access, and at least two links for the network device to access the target network are established between the network device and the at least one access gateway. As shown in fig. 3, the target network provides two access gateways 104 for network device 1013: AGW3 and AGW4, a fifth wired link (indicated by a solid line J in the figure) and a fifth wireless link (indicated by a broken line K in the figure) are established between the network device 1013 and the AGW 3; a sixth wired link (indicated by a solid line L in the figure) and a sixth wireless link (indicated by a broken line Y in the figure) are established between the network device 1013 and the AGW 4; that is, there are four links for the network device 1013 to access the target network, which are the fifth wired link J and the fifth wireless link K, and the sixth wired link L and the sixth wireless link Y. Specifically, the wireless link may be a 2G, 3G, or 4G link.
In 402, at least one available link is determined in the at least two links according to the link states of the at least two links; any one of the at least one available link may be determined as the target link or an available link corresponding to a highest priority among the at least one available link may be determined as the target link.
In 403, when receiving the data packet sent by the first device, the data packet is transmitted to the target device in the target network through the target link. The first device may be a switch or a user equipment. After the target device in the target network receives the data packet, if a response packet is to be returned to the first device, the response packet can be directly returned to the first device through the target link.
In practical implementation, the method may be adapted to the network device, that is, the main execution subject of the method is the network device.
In the technical scheme provided by the embodiment of the application, the link states of a plurality of own links are detected, and the links are automatically switched according to the link states of the plurality of links. Compared with the prior art that link switching is controlled through the control device, the technical scheme provided by the embodiment of the application can enable the link to be switched and decoupled with the control device, automatic switching is carried out, and the problems that the interruption time length is prolonged and even the switching fails and the like caused by uncertain factors such as poor network quality and network disconnection of the control device can be effectively avoided.
Fig. 6 is a flowchart illustrating a communication method according to another embodiment of the present application. The method may be adapted for a first device; as shown in fig. 6, the method includes:
501. and acquiring the routing information of each network device in at least one network device.
502. And determining target network equipment for information transmission with target equipment in a target network in the at least one network equipment according to the routing information of each network equipment in the at least one network equipment.
In 501, after the routing information of each network device is updated, the updated routing information of each network device is sent to the first device, and the first device can record the updated routing information after receiving the updated routing information.
When the first device needs to transmit information (i.e., a data packet) to a target device in a target network, the first device obtains the routing information of each network device in at least one network device from the record.
In an implementation, the routing information of any one of the at least one network device includes: and any network device splits the network segment of the target network to obtain at least one piece of subnet segment information. In 502, determining, in the at least one network device, a target network device for information transmission with a target device in a target network according to the routing information of each network device in the at least one network device may specifically be implemented by adopting the following steps:
5011. and determining the network bit of at least one piece of subnet section information in the routing information of each network device.
5012. And taking the network equipment corresponding to the maximum network bit as the target network equipment.
The 5011 and 5012 can be realized by referring to the corresponding contents in the above embodiments.
In another implementation scheme, the routing information includes network segment information and routing cost value of the target network; in 502, the determining, in the at least one network device, a target network device for assisting the first device in information transmission with a target device in a target network according to the routing information of each network device in the at least one network device specifically includes: and taking the network equipment corresponding to the minimum routing cost value as the target network equipment. The specific implementation can be seen in the corresponding content in the above embodiments.
The target network device is used for assisting the first device to transmit information with the target device in the target network.
In the technical solution provided in the embodiment of the present application, the first device may automatically determine the target network device according to the routing information sent by the first network device and the routing information sent by the at least one second network device, thereby implementing the switching of the network devices. Compared with the prior art that the link and the equipment are controlled through the control equipment, the technical scheme provided by the embodiment of the application can enable the link and the equipment to switch the decoupling control equipment for automatic switching, and can effectively avoid the problems that the interruption time is prolonged and even the switching fails and the like caused by uncertain factors such as poor network quality, network disconnection and the like of the control equipment.
Fig. 14 is a flowchart illustrating a communication method according to another embodiment of the present invention. As shown in fig. 14, the method includes:
141. based on the second link, the routing information of the first network device is updated.
142. And determining target network equipment for information transmission with the target network from the first network equipment and the at least one second network equipment according to the updated routing information of the first network equipment and the updated routing information of the at least one second network equipment.
Wherein the second link is a path for the first network device to access a target network.
The specific implementation of the above 141 and 142 can refer to the corresponding content in the above embodiments, and is not described herein again.
In the technical scheme provided by the embodiment of the application, the target network device for information transmission with the target network is determined through the updated routing information interface of each network device, so that normal transmission of information is ensured, and the stability of communication is improved.
In the foregoing 141, "updating the routing information of the first network device based on the second link" may specifically be implemented by the following steps:
1411. determining a priority of the second link.
1412 updating the routing information of the first network device according to the priority.
For specific implementation of the 1411 and the 1412, reference may be made to corresponding contents in the above embodiments, and details are not described herein.
Here, it should be noted that: for specific implementation of each step in the embodiments of the present application, parts that are not elaborated in this embodiment may refer to relevant contents in the above embodiments, and details are not described here. In addition, the method provided in the embodiment of the present application may include all or part of the steps in the embodiments in addition to the steps described above, and specific reference may be made to corresponding contents in the embodiments described above, which are not described herein again.
Fig. 7 shows a block diagram of a communication device according to an embodiment of the present application. The device includes: a first updating module 601 and a first sending module 602. Wherein the content of the first and second substances,
a first updating module 601, configured to update routing information of a first network device based on a second link when a first link corresponding to routing information of the first network device meets a first preset condition, where the first link and the second link are different paths through which the first network device accesses a target network;
a first sending module 602, configured to send the updated routing information of the first network device to a first device, so that the first device determines, according to the updated routing information of the first network device and routing information of at least one second network device, a target network device for assisting information transmission between the first device and a target device in the target network from the first network device and the at least one second network device.
Further, the communication device may be provided on the first network apparatus.
Further, the first updating module 601 is specifically configured to:
determining a priority of the second link;
and updating the routing information of the first network equipment according to the priority.
Further, the first updating module 601 is specifically configured to:
determining the network segment splitting level to which the priority belongs;
according to the network segment splitting scheme corresponding to the network segment splitting level, carrying out network segment splitting on the network segment of the target network;
updating the first routing information of the network equipment according to the network segment splitting result;
the updated routing information of the first network device includes: and obtaining at least one subnet section information after the network section is split.
Further, the first updating module 601 is specifically configured to:
acquiring a preset routing cost value corresponding to the priority;
and replacing the current routing cost value in the first routing information with the preset routing cost value to obtain updated routing information of the first network equipment.
Further, the above apparatus further includes:
a first obtaining module, configured to obtain link statuses of other links except the first link when the first link meets a first preset condition, where the first link and the other links are different paths through which the network device accesses the target network;
and the first determining module is used for determining the second link according to the link states of the other links.
Further, the first determining module is specifically configured to:
determining at least one available link according to the link states of the other links;
determining an available link with a highest priority among the at least one available link as the second link.
Further, the target network is a virtual private network (VPC).
Further, the first updating module 601 is further configured to:
when detecting that the link state of a third link with the priority higher than that of the first link returns to normal, updating the routing information of the first network equipment based on the third link;
wherein the first link and the third link are different paths for the first network device to access the target network.
In the technical solution provided in the embodiment of the present application, when a first link corresponding to the routing information of the first network device satisfies a first preset condition, the routing information is updated based on a second link. And sending the updated routing information to the first equipment. The first device can automatically determine a target network device for assisting the first device in information interaction with the target device in the target network according to the routing information of the first network device and the routing information of the at least one second network device, so that automatic switching of the network devices is realized. Compared with the prior art that the switching of the network equipment is controlled through the control equipment, the technical scheme provided by the embodiment of the application can enable the network equipment to switch the decoupling control equipment for automatic switching, and can effectively avoid the problems that the interruption time length is prolonged and even the switching fails and the like caused by uncertain factors such as poor network quality, network disconnection and the like of the control equipment.
Here, it should be noted that: the communication device provided in the above embodiments may implement the technical solutions described in the above method embodiments, and the specific implementation principle of each module or unit may refer to the corresponding content in the above method embodiments, and is not described herein again.
Fig. 7 shows a schematic structural diagram of a communication device according to an embodiment of the present application. The communication device is disposed on a first network device. The device includes: a first updating module 601 and a first sending module 602. Wherein, the first and the second end of the pipe are connected with each other,
a first updating module 601, configured to update routing information of a first network device based on a second link when the second link with a higher priority than a first link corresponding to the routing information of the first network device does not satisfy a first preset condition, where the first link and the second link are different paths through which the first network device accesses a target network;
a first sending module 602, configured to send the updated routing information of the first network device to a first device, so that the first device determines, according to the updated routing information of the first network device and the routing information of at least one second network device, a target network device for assisting the first device in information transmission with a target device in the target network from the first network device and the at least one second network device.
Further, the first updating module 601 is specifically configured to:
determining a priority of the second link;
and updating the routing information of the first network equipment according to the priority.
In the technical solution provided in the embodiment of the present application, when a second link having a higher priority than a first link corresponding to routing information of a certain network device does not satisfy a first preset condition, the routing information of the network device is updated based on the second link. And sending the updated routing information to the first equipment. The first device can automatically determine the target network device for assisting the first device in information transmission with the target device in the target network according to the routing information sent by the first network device and the routing information sent by the at least one second network device, so that automatic switching of the network devices is realized. Compared with the prior art that the switching of the network equipment is controlled through the control equipment, the technical scheme provided by the embodiment of the application can enable the network equipment to switch the decoupling control equipment for automatic switching, and can effectively avoid the problems that the interruption time length is prolonged and even the switching fails and the like caused by uncertain factors such as poor network quality, network disconnection and the like of the control equipment.
Here, it should be noted that: the communication device provided in the above embodiments may implement the technical solutions described in the above method embodiments, and the specific implementation principle of each module or unit may refer to the corresponding content in the above method embodiments, and is not described herein again.
Fig. 8 is a block diagram illustrating a communication apparatus according to still another embodiment of the present application. As shown in fig. 8, the apparatus includes: a first detection module 701, a second determination module 702 and a second sending module 703. Wherein the content of the first and second substances,
a first detecting module 701, configured to detect link statuses of at least two links used for a network device to access a target network;
a second determining module 702, configured to determine a target link in the at least two links according to link statuses of the at least two links;
a second sending module 703 is configured to, when receiving a data packet sent by a first device, transmit the data packet to a target device in the target network through the target link.
Further, the communication device may be provided on the network apparatus.
Further, the second determining module 702 is specifically configured to:
determining at least one available link in the at least two links according to the link states of the at least two links;
and determining an available link corresponding to the highest priority in the at least one available link as a target link.
In the technical solution provided in the embodiment of the present application, a network device detects link states of multiple own links, and automatically switches links according to the link states of the multiple links. Compared with the prior art that link switching is controlled through the control device, the technical scheme provided by the embodiment of the application can decouple the link switching from the control device, automatic switching can be performed, and the problems that the interruption time is prolonged and even the switching fails due to uncertain factors such as poor network quality and network disconnection of the control device can be effectively avoided.
Here, it should be noted that: the communication device provided in the foregoing embodiments may implement the technical solutions described in the foregoing method embodiments, and the specific implementation principle of each module or unit may refer to the corresponding content in the foregoing method embodiments, which is not described herein again.
Fig. 9 shows a block diagram of a communication device according to another embodiment of the present application. The device includes:
a second obtaining module 801, configured to obtain routing information of each network device in at least one network device;
a third determining module 802, configured to determine, according to the routing information of each network device in the at least one network device, a target network device for performing information transmission with a target device in a target network in the at least one network device.
Further, the routing information of any network device in the at least one network device includes: any network device splits the network segment of the target network to obtain at least one subnet segment information;
the third determining module 802 is specifically configured to:
determining the network bit of at least one subnet section information in the routing information of each network device;
and taking the network equipment corresponding to the maximum network bit as the target network equipment.
Further, the routing information includes network segment information and routing cost value of the target network;
the third determining module 802 is specifically configured to:
and taking the network equipment corresponding to the minimum routing cost value as the target network equipment.
In the technical solution provided in the embodiment of the present application, the first device may automatically determine the target network device according to the routing information sent by the first network device and the routing information sent by the at least one second network device, thereby implementing the switching of the network devices. Compared with the prior art that the link and the equipment are controlled through the control equipment, the technical scheme provided by the embodiment of the application can enable the link and the equipment to switch the decoupling control equipment for automatic switching, and can effectively avoid the problems that the interruption time is prolonged and even the switching fails and the like caused by uncertain factors such as poor network quality, network disconnection and the like of the control equipment.
Here, it should be noted that: the communication device provided in the above embodiments may implement the technical solutions described in the above method embodiments, and the specific implementation principle of each module or unit may refer to the corresponding content in the above method embodiments, and is not described herein again.
Fig. 15 is a block diagram illustrating a communication apparatus according to still another embodiment of the present application. The device includes: a second update module 151 and a fourth determination module 152. The second updating module 151 is configured to update the routing information of the first network device based on a second link, where the second link is a path for the first network device to access the target network;
a fourth determining module 152, configured to determine, according to the updated routing information of the first network device and the updated routing information of the at least one second network device, a target network device for performing information transmission with the target network from the first network device and the at least one second network device.
Further, the second updating module 151 is specifically configured to:
determining a priority of the second link;
and updating the routing information of the first network equipment according to the priority.
In the technical solution provided in the embodiment of the present application, the target network device for performing information transmission with the target network is determined through the updated routing information interface of each network device, so as to ensure that information can be normally transmitted, and improve the stability of communication.
Here, it should be noted that: the communication device provided in the foregoing embodiments may implement the technical solutions described in the foregoing method embodiments, and the specific implementation principle of each module or unit may refer to the corresponding content in the foregoing method embodiments, which is not described herein again.
Fig. 10 is a schematic structural diagram of a first network device according to an embodiment of the present application. The first network device includes: a first memory 1101, a first processor 1102, and a first communication component 1103. The first memory 1101 may be configured to store other various data to support operations on the first network device. Examples of such data include instructions for any application or method operating on the first network device. The first memory 1101 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The first memory 1101 is used for storing programs;
the first processor 1102 coupled with the first communication component 1103;
the first processor 1102, coupled to the first memory 1101, is configured to execute the program stored in the first memory 1101 to:
when a first link corresponding to the routing information of the first network equipment meets a first preset condition, updating the routing information of the first network equipment based on a second link, wherein the first link and the second link are different paths for the first network equipment to access a target network;
controlling the first communication component 1103 to send the updated routing information of the first network device to a first device, so that the first device determines, according to the updated routing information of the first network device and the routing information of at least one second network device, a target network device for assisting the first device in information transmission with a target device in the target network from the first network device and the at least one second network device.
When executing the program in the first memory 1101, the first processor 1102 may also implement other functions besides the above functions, which may be specifically referred to in the description of the foregoing embodiments.
Further, as shown in fig. 10, the first network device further includes: a first display 1104, a first power component 1105, a first audio component 1106, and the like. Only some of the components are schematically shown in fig. 10, and it is not meant that the first network device comprises only the components shown in fig. 10.
Accordingly, embodiments of the present application further provide a computer-readable storage medium storing a computer program, where the computer program, when executed by a computer, can implement the steps or functions of the self-service providing method provided in each of the above embodiments.
Fig. 11 shows a schematic structural diagram of a first network device according to an embodiment of the present application. As shown, the first network device includes a second memory 1201, a second processor 1202, and a second communication component 1203. The second memory 1201 may be configured to store other various data to support operations on the first network device. Examples of such data include instructions for any application or method operating on the first network device. The second memory 1201 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The second memory 1201 is used for storing programs;
the second processor 1202, coupled with the second communication component 1203,
the second processor 1202, coupled to the second memory 1201, is configured to execute the program stored in the second memory 1201, so as to:
updating the routing information of the first network equipment based on a second link when the second link with higher priority than a first link corresponding to the routing information of the first network equipment does not meet a first preset condition, wherein the first link and the second link are different paths for the first network equipment to access a target network;
controlling the second communication component 1203 to send the updated routing information of the first network device to a first device, so that the first device determines, according to the updated routing information of the first network device and the routing information of at least one second network device, a target network device for assisting the first device in information transmission with a target device in the target network from the first network device and the at least one second network device.
When executing the program in the second memory 1201, the second processor 1202 may also implement other functions in addition to the above functions, which may be specifically referred to the description of the foregoing embodiments.
Further, as shown in fig. 11, the first network device further includes: a second display 1204, a second power component 1205, a second audio component 1206, and the like. Only some of the components are schematically shown in fig. 11, and it is not meant that the first network device comprises only the components shown in fig. 11.
Accordingly, embodiments of the present application further provide a computer-readable storage medium storing a computer program, where the computer program, when executed by a computer, can implement the steps or functions of the self-service providing method provided in the foregoing embodiments.
Fig. 12 shows a schematic structural diagram of a network device according to an embodiment of the present application. As shown, the network device includes a third memory 1301, a third communication component 1303, and a third processor 1302. The third memory 1301 may be configured to store other various data to support operations on the network device. Examples of such data include instructions for any application or method operating on a network device. The third memory 1301 may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The third memory 1301 is used for storing programs;
the third processor 1302, coupled with the third communication component 1303;
the third processor 1302, coupled to the third memory 1301, is configured to execute the program stored in the third memory 1301 to:
detecting link states of at least two links for the network device to access a target network;
determining a target link in the at least two links according to the link states of the at least two links;
and controlling the third communication component 1303 to transmit the data packet to the target device in the target network through the target link when receiving the data packet sent by the first device.
When executing the program in the third memory 1301, the third processor 1302 may also implement other functions in addition to the above functions, which may be specifically referred to in the description of the foregoing embodiments.
Further, as shown in fig. 12, the network device further includes: a third display 1304, a third power component 1305, a third audio component 1306, and other components. Only some of the components are schematically shown in fig. 12, and it is not meant that the network device includes only the components shown in fig. 12.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing a computer program, where the computer program can implement the steps or functions of the self-service providing method provided in the foregoing embodiments when executed by a computer.
Fig. 13 shows a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 13, the electronic device includes a fourth memory 1401 and a fourth processor 1402. The fourth memory 1401 may be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device. The fourth memory 1401 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The fourth memory 1401 for storing a program;
the fourth processor 1402, coupled to the fourth memory 1401, is configured to execute the programs stored in the fourth memory 1401, to:
acquiring routing information of each network device in at least one network device;
and determining target network equipment for information transmission with target equipment in a target network in the at least one network equipment according to the routing information of each network equipment in the at least one network equipment.
When the fourth processor 1402 executes the program in the fourth memory 1401, other functions may be implemented besides the above functions, which may be specifically referred to in the description of the foregoing embodiments.
Further, as shown in fig. 13, the electronic apparatus further includes: a fourth communication component 1403, a fourth display 1404, a fourth power component 1405, a fourth audio component 1406, and the like. Only some of the components are schematically shown in fig. 13, and the electronic device is not meant to include only the components shown in fig. 13.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing a computer program, where the computer program can implement the steps or functions of the self-service providing method provided in the foregoing embodiments when executed by a computer.
Fig. 16 shows a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 16, the electronic device includes a fifth memory 1501 and a fifth processor 1502. The fifth memory 1501 may be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device. The fifth memory 1501 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The fifth memory 1501 is used for storing programs;
the fifth processor 1502, coupled to the fifth memory 1501, is configured to execute the program stored in the fifth memory 1501 to:
updating routing information of first network equipment based on a second link, wherein the second link is a passage for the first network equipment to access a target network;
and determining target network equipment for information transmission with the target network from the first network equipment and the at least one second network equipment according to the updated routing information of the first network equipment and the routing information of the at least one second network equipment.
When executing the program in the fifth memory 1501, the fifth processor 1502 may also implement other functions in addition to the above functions, which may be specifically referred to the descriptions of the foregoing embodiments.
Further, as shown in fig. 16, the electronic apparatus further includes: a fifth communication component 1503, a fifth display 1504, a fifth power component 1505, a fifth audio component 1506, and the like. Only some of the components are schematically shown in fig. 16, and it is not meant that the electronic device includes only the components shown in fig. 16.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing a computer program, where the computer program can implement the steps or functions of the self-service providing method provided in the foregoing embodiments when executed by a computer.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (13)

1. A method of communication, comprising:
when the first link is judged to be abnormal according to the link state of the first link corresponding to the routing information of the first network equipment, judging that the first link meets a first preset condition;
when the first link meets the first preset condition, determining at least one available link according to link states of other links except the first link;
determining a second link from the at least one available link;
updating routing information of the first network device based on the second link, wherein the first link and the other links are different paths for the first network device to access a target network;
and sending the updated routing information of the first network device to a first device, so that the first device determines a target network device for assisting the first device in information transmission with a target device in the target network from the first network device and at least one second network device according to the updated routing information of the first network device and the routing information of at least one second network device.
2. The method of claim 1, wherein updating routing information for the first network device based on the second link comprises:
determining a priority of the second link;
and updating the routing information of the first network equipment according to the priority.
3. The method of claim 2, wherein updating routing information for the first network device based on the priority comprises:
determining the network segment splitting level to which the priority belongs;
according to the network segment splitting scheme corresponding to the network segment splitting level, carrying out network segment splitting on the network segment of the target network;
updating the first routing information of the network equipment according to the network segment splitting result;
the updated routing information of the first network device includes: and obtaining at least one subnet section information after the network section is split.
4. The method of claim 2, wherein updating routing information for the first network device based on the priority comprises:
acquiring a preset routing cost value corresponding to the priority;
and replacing the current routing cost value in the routing information of the first network equipment with the preset routing cost value to obtain the updated routing information of the first network equipment.
5. The method of claim 1, wherein determining the second link from the at least one available link comprises:
determining an available link with a highest priority among the at least one available link as the second link.
6. The method according to any of claims 1 to 4, wherein the target network is a virtual private network (VPC).
7. The method of any of claims 1 to 4, further comprising:
when detecting that the link state of a third link with the priority higher than that of the first link does not meet the first preset condition, updating the routing information of the first network equipment based on the third link;
wherein the first link and the third link are different paths for the first network device to access the target network.
8. A method of communication, comprising:
when a second link with higher priority than a first link corresponding to routing information of first network equipment does not meet a first preset condition, updating the routing information of the first network equipment based on the second link, wherein the first link and the second link are different paths for the first network equipment to access a target network;
and sending the updated routing information of the first network device to a first device, so that the first device determines a target network device for assisting the first device in information transmission with a target device in the target network from the first network device and at least one second network device according to the updated routing information of the first network device and the routing information of at least one second network device.
9. The method of claim 8, wherein updating routing information for the first network device based on the second link comprises:
determining a priority of the second link;
and updating the routing information of the first network equipment according to the priority.
10. A communication system, comprising: at least two network devices and a first device;
any one of the at least two network devices is configured to determine that a first link meets a first preset condition when the first link is determined to be abnormal according to a link state of the first link corresponding to the routing information of the any one network device; when the first link meets the first preset condition, determining at least one available link according to link states of other links except the first link; determining a second link from the at least one available link; updating routing information of any network equipment based on the second link, wherein the first link and the other links are different paths for the any network equipment to access a target network; sending the updated routing information of any network device to the first device;
the first device is configured to determine, according to the routing information of the at least two network devices, a target network device for assisting the first device in information transmission with a target device in the target network, from the at least two network devices.
11. A disaster recovery system, comprising: at least two network devices and a first device;
any one of the at least two network devices is configured to update the routing information of the any one network device based on a second link when the second link with a higher priority than a first link corresponding to the routing information of the any one network device does not satisfy a first preset condition, where the first link and the second link are different paths for the any one network device to access a target network; sending the updated routing information of any network device to the first device;
the first device is configured to determine, according to the routing information of the at least two network devices, a target network device for assisting the first device in information transmission with a target device in the target network, from the at least two network devices.
12. A first network device, comprising: a first memory, a first processor, and a first communication component, wherein,
the first memory is used for storing programs;
the first processor coupled with the first communication component;
the first processor, coupled with the first memory, to execute the program stored in the first memory to:
when the first link is judged to be abnormal according to the link state of the first link corresponding to the routing information of the first network equipment, judging that the first link meets a first preset condition; when the first link meets the first preset condition, determining at least one available link according to link states of other links except the first link; determining a second link from the at least one available link; updating routing information of the first network device based on the second link, wherein the first link and the other links are different paths for the first network device to access a target network;
and controlling the first communication component to send the updated routing information of the first network device to the first device, so that the first device determines a target network device for assisting the first device in information transmission with a target device in the target network from the first network device and the at least one second network device according to the updated routing information of the first network device and the routing information of the at least one second network device.
13. A first network device, comprising: a second memory, a second processor, and a second communication component, wherein,
the second memory is used for storing programs;
the second processor coupled with the second communication component;
the second processor, coupled to the second memory, is configured to execute the program stored in the second memory to:
when a second link with higher priority than a first link corresponding to the routing information of the first network device does not meet a first preset condition, updating the routing information of the first network device based on the second link, wherein the first link and the second link are different paths for the first network device to access a target network;
and controlling the second communication component to send the updated routing information of the first network device to the first device, so that the first device determines a target network device for assisting the first device in information transmission with a target device in the target network from the first network device and the at least one second network device according to the updated routing information of the first network device and the routing information of the at least one second network device.
CN201910153072.2A 2019-02-28 2019-02-28 Communication method, system and equipment Active CN111629386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910153072.2A CN111629386B (en) 2019-02-28 2019-02-28 Communication method, system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910153072.2A CN111629386B (en) 2019-02-28 2019-02-28 Communication method, system and equipment

Publications (2)

Publication Number Publication Date
CN111629386A CN111629386A (en) 2020-09-04
CN111629386B true CN111629386B (en) 2023-04-07

Family

ID=72272500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910153072.2A Active CN111629386B (en) 2019-02-28 2019-02-28 Communication method, system and equipment

Country Status (1)

Country Link
CN (1) CN111629386B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114726780B (en) * 2022-03-23 2024-04-02 阿里云计算有限公司 Communication method, device and storage medium from top to bottom of cloud
CN114697363A (en) * 2022-03-31 2022-07-01 广东美的厨房电器制造有限公司 Network system, control method thereof, control device thereof, and readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547391A (en) * 2017-06-08 2018-01-05 新华三技术有限公司 A kind of message transmitting method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651893B (en) * 2011-02-25 2015-08-05 华为终端有限公司 A kind of changing method of serving BS, system and equipment
CN109246003A (en) * 2017-07-11 2019-01-18 阿里巴巴集团控股有限公司 A kind of method and system carrying out network link switching
CN107819680A (en) * 2017-09-27 2018-03-20 北京华为数字技术有限公司 A kind of method of service switchover, the network equipment
CN110891021B (en) * 2018-09-11 2022-08-26 中兴通讯股份有限公司 Path calculation method and device and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547391A (en) * 2017-06-08 2018-01-05 新华三技术有限公司 A kind of message transmitting method and device

Also Published As

Publication number Publication date
CN111629386A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
US9282030B2 (en) Transport control server that calculates routing information
CN110113259B (en) Path state notification method, path switching method, forwarding equipment and system
EP1798895B1 (en) A method and network element for forwarding data
US7864666B2 (en) Communication control apparatus, method and program thereof
CN109861867B (en) MEC service processing method and device
CN111262665B (en) Data communication method, device, controller and system
CN110891018B (en) Network traffic recovery method and device, SDN controller and storage medium
CN103095571A (en) Method and system achieving network redundancy and data flow seamless switching
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
CN113328916B (en) BFD detection mode switching method, device and equipment
CN111629386B (en) Communication method, system and equipment
EP1940091B1 (en) Autonomous network, node device, network redundancy method and recording medium
CN111585797B (en) Ethernet link switching method, device, equipment and computer readable storage medium
CN101499960A (en) Method and apparatus for flow path switching
CN113615132A (en) Fast flooding topology protection
CN102916885B (en) MSTP-based (Multiple Spanning Tree Protocol) network topology convergence method, equipment and system
CN102158393B (en) Method and device for updating virtual private network (VPN) routing
US10164823B2 (en) Protection method and system for multi-domain network, and node
CN110138656B (en) Service processing method and device
CN111131035A (en) Data transmission method and device
CN113328933B (en) Data traffic forwarding method and system
CN108259289B (en) Loop network abnormity protection method and device
CN113810278A (en) Tunnel path switching method, path configuration method, device, system and medium
CN108174417A (en) A kind of main/standby switching method, device, associated electronic device and readable storage medium storing program for executing
CN115396385B (en) Method and device for quickly recovering service of stack switch and computing equipment

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
GR01 Patent grant
GR01 Patent grant