CN113824595B - Link switching control method and device and gateway equipment - Google Patents

Link switching control method and device and gateway equipment Download PDF

Info

Publication number
CN113824595B
CN113824595B CN202111150396.4A CN202111150396A CN113824595B CN 113824595 B CN113824595 B CN 113824595B CN 202111150396 A CN202111150396 A CN 202111150396A CN 113824595 B CN113824595 B CN 113824595B
Authority
CN
China
Prior art keywords
link
physical interface
interface
member link
connected state
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
CN202111150396.4A
Other languages
Chinese (zh)
Other versions
CN113824595A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202111150396.4A priority Critical patent/CN113824595B/en
Publication of CN113824595A publication Critical patent/CN113824595A/en
Application granted granted Critical
Publication of CN113824595B publication Critical patent/CN113824595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection

Abstract

The application provides a link switching control method, a device and a gateway device, wherein the method is applied to the gateway device, the gateway device comprises at least two physical interfaces, a plurality of member links are configured on a first physical interface, and the method comprises the following steps: acquiring a link state of a member link configured on a first physical interface through an interface management program associated with the first physical interface, wherein the link state of the member link is used for representing whether the member link is in a connected state or not; if the member link bearing the service in the first physical interface is in a non-connected state, configuring the member link bearing the service in the first physical interface based on other member links in a connected state in the first physical interface; and the member links configured on the first physical interface are links for realizing the same service. The scheme of the application can reduce the situation that the same physical interface simultaneously bears a large number of services.

Description

Link switching control method and device and gateway equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a link switching control method, an apparatus, and a gateway device.
Background
In a Software Defined Wide Area Network (SD-WAN), if the gateway device has multiple uplinks, the user may specify that different services go through different links.
In the SD-WAN network, the gateway device may start the intelligent routing function, and on this basis, if an uplink on a certain physical interface in the gateway device fails, the gateway device may switch the service on the uplink to an uplink on another physical interface in the gateway device. However, switching a large number of services to the same physical interface of the gateway interface inevitably results in excessive traffic on the physical interface, which may affect the communication of some important services.
Disclosure of Invention
The application provides a link switching control method, a link switching control device and gateway equipment.
The link switching control method is applied to gateway equipment, the gateway equipment comprises at least two physical interfaces, a first physical interface is configured with a plurality of member links, and the method comprises the following steps:
acquiring a link state of a member link configured on the first physical interface through an interface management program associated with the first physical interface, wherein the link state of the member link is used for representing whether the member link is in a connected state or not;
if the member link bearing the service in the first physical interface is in a non-connected state, configuring the member link bearing the service in the first physical interface based on other member links in a connected state in the first physical interface;
wherein, each member link configured on the first physical interface is a link for realizing the same service.
In a possible implementation manner, the obtaining, by an interface manager associated with the first physical interface, a link status of a member link configured on the first physical interface includes:
obtaining a link detection message received on a member link of the first physical interface through an interface management program associated with the first physical interface;
if the link detection message on the member link represents that the member link is in a connected state, recording that the link state of the member link in the first physical interface is in the connected state;
and if the link detection message on the member link indicates that the member link is in the unconnected state, recording that the link state of the member link in the first physical interface is in the unconnected state.
In another possible implementation manner, if a member link in the first physical interface that carries a service is in a non-connected state, configuring, based on other member links in the connected state in the first physical interface, the member link in the first physical interface that carries the service includes:
if the member link bearing the service in the first physical interface is in a non-connected state, determining a target member link in a connected state through the interface management program, and reporting the information of the target member link to the gateway equipment;
and configuring the member link bearing the service in the first physical interface as the target member link based on the information of the target member link reported by the interface management program.
In another possible implementation manner, the method further includes:
acquiring the priority of the member link in the first physical interface through the interface management program, and recording the priority of the member link;
the determining, by the interface manager, the target member link in a connected state includes:
determining, by the interface manager, a target member link in a connected state and having a highest priority.
In another possible implementation manner, the method further includes:
the method comprises the steps of obtaining a session creation event received on a member link of a first physical interface through an interface management program, determining the member link receiving the session creation event as a member link needing to be managed by the interface management program, and generating a state record of the member link, wherein the state record is used for recording the link state of the member link, and the session creation event indicates that a session for a transmission link detection message is established on the member link.
In another possible implementation manner, the method further includes:
and if the member link bearing the service in the first physical interface is in a non-connected state and other member links in a connected state do not exist in the first physical interface, determining a second physical interface capable of bearing the service, and switching the service to the second physical interface.
In another possible implementation manner, before determining the second physical interface capable of carrying the service, the method further includes:
if the interface management program determines that the member link in the connected state does not exist on the first physical interface, reporting a notification message that the first physical interface is unavailable to the gateway equipment;
and confirming that other member links in a connected state do not exist in the first physical interface based on the notification message reported by the interface management program.
The link switching control device is applied to gateway equipment, the gateway equipment comprises at least two physical interfaces, a first physical interface is configured with a plurality of member links, and the device comprises:
a state obtaining unit, configured to obtain, through an interface management program associated with the first physical interface, a link state of a member link configured on the first physical interface, where the link state of the member link is used to characterize whether the member link is in a connected state;
an exception configuration unit, configured to configure, if a member link that carries a service in the first physical interface is in a non-connected state, the member link that carries the service in the first physical interface based on other member links that are in a connected state in the first physical interface, where each member link configured on the first physical interface is a link for implementing the same service.
In one possible implementation manner, the state obtaining unit includes:
a message obtaining unit, configured to obtain, through an interface management program associated with the first physical interface, a link detection message received on a member link of the first physical interface;
a first state recording unit, configured to record, if the link detection message on the member link indicates that the member link is in a connected state, that the link state of the member link in the first physical interface is in a connected state;
a second state recording unit, configured to record, if the link detection message on the member link indicates that the member link is in a non-connected state, that the link state of the member link in the first physical interface is in the non-connected state.
Wherein, a gateway device includes:
the system comprises a processor, a memory and a plurality of physical interfaces, wherein a plurality of member links are configured on a first physical interface;
the processor is configured to perform the link switching control method as described in any of the above;
the memory is used for storing programs needed by the processor to execute the above operations.
As can be seen from the above, in the embodiment of the present application, a plurality of member links are configured on a first physical interface in a gateway device, and an interface management program associated with the first physical interface can obtain information about whether the member links configured on the first physical interface are in a connected state. On this basis, if the member link bearing the service on the first physical interface is in a non-connected state, the gateway device may configure other member links in a connected state in the first physical interface to bear the service, so that when the member link bearing the service in the physical interface fails, the gateway device may still be responsible for the service through other available member links in the physical interface, thereby the service does not need to be switched to other physical interfaces, thereby reducing the situation that the same physical interface simultaneously bears a large number of services, and reducing the situation that the communication of important services is affected due to too many services borne by the physical interface.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
Fig. 1 illustrates a flowchart of a link switching control method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a link switching control method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an application scenario to which embodiments of the present application are applicable;
FIG. 4 is a diagram illustrating link state information of a physical interface maintained by an interface manager in a gateway device in an embodiment of the application;
fig. 5 shows a schematic flowchart of a link switching control method provided in an embodiment of the present application in an application scenario;
fig. 6 is a schematic diagram illustrating a component structure of a link switching control apparatus according to an embodiment of the present application;
fig. 7 shows a schematic diagram of a component architecture of a gateway device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present disclosure.
The scheme of the application is suitable for gateway equipment in various networks. For example, the solution of the present application may be applied to a gateway device in a Software Defined Wide Area Network (SD-WAN).
The gateway device comprises at least two physical interfaces, and a plurality of member links are configured on at least one physical interface in the gateway device. The member link may be a link configured on the physical interface, used for implementing service data transmission and conforming to a communication protocol. Each member link configured on the same physical interface is a link for realizing the same service.
For example, taking the gateway device as a gateway device in an SD-WAN network as an example, the member link configured on the physical interface may be an Internet Protocol Security (IPSec) link. IPSec is understood to be a family of network-layer-based, cryptographically-applied secure communication protocols.
The links for implementing the same service refer to links for implementing the same service or function, that is, the links for implementing the same service are only different in link path, but the links need to carry or implement the same service. For example, the same service may be used for accessing the same cloud, and the like, which is not limited in this regard.
The link switching control method of the present application is described below with reference to a flowchart.
Fig. 1 is a schematic flow chart illustrating a link switching control method provided in the present application, where the present application is applied to the above-mentioned gateway device, and a plurality of member links are configured on a first physical interface in the gateway device. Wherein, each member link configured on the first physical interface is a link for realizing the same service.
It is understood that the first physical interface belongs to a plurality of physical interfaces in the gateway device, and any one of a plurality of member links in the gateway device may be configured.
The method of the embodiment may include:
s101, obtaining the link state of the member link configured on the first physical interface through an interface management program associated with the first physical interface.
The interface management program is associated with the first physical interface and is used for managing and maintaining the link state of the member link configured on the first physical interface.
The link status of the member link is used to characterize whether the member link is in a connected state. It can be understood that, when a member link is in a connected state, the member link can only implement communication of services, and therefore, whether the member link in a physical interface is in a connected state or not can characterize whether the member link is available or not.
If the session connection on the member link is established or maintained, it indicates that the member link is in a connected state; if the session on the member link is disconnected, the member link is in a disconnected state.
S102, if the member link bearing the service in the first physical interface is in the non-connected state, configuring the member link bearing the service in the first physical interface based on other member links in the connected state in the first physical interface.
The member link bearing the service in the first physical interface is a member link configured for the first physical interface by the gateway device and used for implementing service processing.
It can be understood that if the member link carrying the service in the first physical interface is in the unconnected state, it means that the member link cannot take charge of the service-related communication. In order to enable the first physical interface to still be responsible for the service, the gateway device configures other available member links in the first physical interface to carry the service, so that the service can still be processed on the first physical interface.
The gateway device may determine the member interfaces in the connected state in the first physical interface based on the link states of the member links in the first physical interface, which are maintained by the interface management program of the first physical interface. For example, an intelligent routing module (or referred to as an intelligent routing program) may be run in the gateway device, and the intelligent routing module may configure, according to a member interface in a connected state in the first physical interface reported by the interface management program, other member links for the first physical interface to carry a corresponding service.
As can be seen from the above, in the embodiment of the present application, a plurality of member links are configured on a first physical interface in a gateway device, and an interface management program associated with the first physical interface can obtain information about whether the member links configured on the first physical interface are in a connected state. On this basis, if the member link bearing the service on the first physical interface is in the unconnected state, the gateway device may configure other member links in the connected state in the first physical interface to bear the service, so that when the member link bearing the service in the physical interface fails, the gateway device may still be responsible for the service through other available member links in the physical interface, thereby the service does not need to be switched to other physical interfaces, thereby reducing the situation that the same physical interface bears a large number of services at the same time, and reducing the situation that the communication of important services is affected due to too many services borne by the physical interface.
It is understood that there are many possible specific ways to obtain the link status of the member links configured in the first physical interface in the present application.
For example, in one possible scenario, the interface manager may obtain a link check message received on a member link of the first physical interface, which may indicate whether the member link is in a connected state. For example, the link detection message may carry status identification information that characterizes whether the member links are connected.
Correspondingly, if the link detection message on the member link represents that the member link is in the connected state, the interface management program records the link state of the member link in the first physical interface as the connected state. Otherwise, if the link detection message on the member link indicates that the member link is in the unconnected state, the interface manager records that the link state of the member link in the first physical interface is in the unconnected state.
In this case, in order to enable the gateway device to know the state of the available member link in the first physical interface in time, when the member link carrying the service has a fault, the interface manager of the first physical interface may also report the member link in the connected state to the gateway device (for example, to an intelligent routing module in the gateway device), or the information of the member link in the connected state and suitable for carrying the service.
In the following, the scheme of the present application is described by taking the above case as an example of a possible implementation manner.
As shown in fig. 2, which shows a flowchart of an embodiment of the method for controlling link switching according to the present application, the method of the present application may be applied to the aforementioned gateway device, and for the introduction of the gateway device, reference may be made to the description of the foregoing embodiment. The method of the embodiment may include:
s201, obtaining a link detection message received on a member link of a first physical interface through an interface management program associated with the first physical interface.
The link detection message is a detection message for detecting whether the member link is in a connected state, and therefore, whether the member link is in a connected state can be confirmed according to the link detection message.
For example, the link Detection message may be a session message based on Bidirectional Forwarding Detection (BFD), where the BFD is a unified Detection mechanism in the whole network and is used to quickly detect and monitor a forwarding connection status of a link or an IP route in the network. BFD establishes sessions on two network devices to detect bidirectional forwarding paths between the network devices.
Of course, the link detection message may also be a session message in other protocol forms, which is not limited to this.
S202, if the link detection information on the member link represents that the member link is in a connected state, the interface management program records that the link state of the member link in the first physical interface is in the connected state.
S203, if the link detection information on the member link indicates that the member link is in the non-connected state, the interface management program records that the link state of the member link in the first physical interface is in the non-connected state.
For example, the interface manager may manage link maintenance information for the first physical interface, where the link maintenance information may include an interface name for the first physical interface and a status record for each member link on the first physical interface. The status record of the member link may include: the link name of the member link, and the link status.
It will be appreciated that receipt of a session creation event on a member link of the first physical interface indicates that a session connection has been established on that member link. Based on this, in this embodiment, the session creation event received on the member link of the first physical interface may also be obtained through the interface manager. Wherein the session creation event indicates that a session for transmitting the link detection message is established on the member link.
Accordingly, the interface management program can determine the member link which receives the session creation event as the member link which needs to be managed by the interface management program, and generate a state record of the member link. As described above, the status record is used to record the link status of the member link
In an alternative, if the interface manager determines that a session deletion event was received on a member link of the first physical interface, the interface manager may also confirm that the member link no longer belongs to the member link that needs to be managed, thereby removing the member link from the maintained link maintenance information.
In practical applications, in order to reasonably select an available member link as a member link for carrying a service, the present application may further configure different priorities for the member links on the first physical interface. Accordingly, the priority of the member link in the first physical interface can be obtained by the interface management program. If so, configuring the priority of each member link in the first physical interface by a user so that the interface management program obtains the priority of each member link; as another example, the interface manager determines the priority of each member link in the first physical interface randomly or according to a set rule.
Accordingly, the interface manager may record the priority of each member link in the first physical interface. For example, the respective corresponding priorities of the member links of the first physical interface may be recorded in the status records of the member links.
S204, if the member link bearing the service in the first physical interface is in a non-connected state, determining a target member link in a connected state through the interface management program, and reporting the information of the target member link to the gateway equipment.
In a possible implementation manner, that the member link bearing the service in the first physical interface is in the unconnected state may be that the interface management program determines that the member link bearing the service is in the unconnected state according to the link state of the member link. On this basis, the interface management program may report the information that the member link carrying the service is in the unconnected state to the gateway device, for example, to an intelligent routing module in the gateway device.
In yet another possible implementation manner, the gateway device may also obtain whether a member link carrying the service in the first physical interface has a communication abnormality or the like, and confirm that the member link is in a non-connected state when the member link has the communication abnormality.
Of course, the above two implementation manners for determining that the member link carrying the service is in the unconnected state may also be executed simultaneously, which is not limited to this.
It should be noted that, in practical applications, after the interface management program determines that the member link carrying the service in the first physical interface is in the unconnected state, the interface management program may not report information that the member link carrying the service is in the unconnected state, but may only report information of an available member link to the gateway device, so that the gateway device determines to switch the member link carrying the service in the first physical interface to be the latest member link reported by the interface management program.
In this application, after a failure occurs in a member link that carries a service in a first physical interface, an interface management program may report the member link in a connected state in the first physical interface to a gateway device, so that the gateway device may obtain information of a currently available member link in the first physical interface.
In order to distinguish the member link bearing the service from the previous member link bearing the service in the first physical interface, the member link which is determined by the interface management program to be in a connected state and provided for the gateway device to select is called a target member link.
It can be understood that if there are many configured member links in the first physical interface, there may be multiple member links in a connected state in the first physical interface after the member link carrying the service fails. In this case, the interface manager may report information of all the plurality of member links in the connected state to the gateway device.
In an optional manner, in order to enable the gateway device to directly configure other member links for carrying services instead of the previous member link, the interface management program may also determine one member link from the member links in the connected state as a target member link, and report information of the target member link only to the gateway device.
Further, under the condition that the interface management program maintains the priority of each member link, the interface management program may determine a target member link in a connected state and having the highest priority, and report information of the target member link to the gateway device.
No matter which way is adopted to determine and report the information of the target member link, the information of the target member link reported by the interface management program at least may include an interface identifier of the target member link, for example, an interface name. Of course, the information of the target member link may also include information such as priority of the target member link, which is not limited herein.
And S205, configuring the member link bearing the service in the first physical interface as the target member link based on the information of the target member link reported by the interface management program.
For example, when the interface manager only reports information of one target member link, the gateway device may directly configure the target member link as a member link carrying traffic in the first physical interface.
For another example, when the interface management program reports information of multiple target member links, the gateway device may configure a member link carrying a service in the first physical interface as a certain target member link, for example, configure the target member link with the highest priority or configure the member link carrying the service randomly as a certain target member link.
It should be noted that, in this embodiment of the present application, when a member link that carries a service in a first physical interface fails, a gateway device configures implementation of other member links that are used for carrying a service in the first physical interface for description. However, it can be understood that, in the present application, for a gateway device, when it is determined that a service that needs to be carried by a first physical interface, a member link that carries the service is configured for the first physical interface, and a specific implementation of the process may not be limited.
In an optional manner, in the application, when there is a need for configuring a service for the first physical interface in the gateway device, information of the candidate member link reported by the interface management program of the first physical interface may also be obtained. For example, the candidate member link is any one member link in a connected state in the first physical interface, and of course, there may be a plurality of candidate member links, which is not limited to this. As another example, the candidate member link is a member link in a connected state and with the highest priority in the first physical interface.
Correspondingly, the gateway device configures the member link for carrying the service in the first physical interface based on the information of the candidate member link.
In the embodiment of the application, the interface management program continuously updates the link states of the member links according to the link detection messages of the member links in the first physical interface, so that the interface management program can timely and accurately obtain the link states of the member links of the first physical interface.
Moreover, after the member link bearing the service in the first physical interface fails, the method and the device can report the information of the available member link in the first physical interface to the gateway device through the interface management program, so that the gateway device can determine the available member link in the first physical interface more quickly and accurately, and the service is still configured to the available member link in the first physical interface.
It can be understood that, in the above embodiments of the present application, if a member link in a first physical interface carrying a service is in a non-connected state, and there is no other member link in the connected state in the first physical interface, the gateway device may further determine a second physical interface capable of carrying the service, and switch the service carried on the first physical interface to the second physical interface.
Switching a service carried on a first physical interface to a second physical interface is also essentially switching the service to a member link of the second physical interface, and there may be various specific implementation manners, which is not limited in the present application.
For example, if only one member link is configured on the second physical interface, the service can be directly switched to the member link of the second physical interface.
For another example, if a plurality of member links are also configured on the second physical interface at the same time, the gateway device may also obtain information of the member link in the connected state on the second physical interface through the interface management program configured on the second physical interface, and switch the service to the member link corresponding to the second physical interface.
The method for determining that the member link in the connected state does not exist in the first physical interface by the gateway device may be: the information of the available member link in the first physical interface reported by the interface management program is null; or, the interface manager of the first physical interface reports that each member link in the first physical interface is in an unavailable state.
For example, in an alternative implementation, if the interface manager associated with the first physical interface determines that there is no member link in the connected state on the first physical interface, a notification message that the first physical interface is unavailable may be reported to the gateway device. Correspondingly, the gateway device may confirm that no other member link in the connected state exists in the first physical interface based on the notification message reported by the interface manager.
The following describes the scheme of the present application with reference to an application scenario to which the scheme of the present application is applied.
The application of the scheme of the application to an SD-WAN network is taken as an example for illustration. In the SD-WAN network, the gateway device can access the SD-WAN network through a point of presence (POP) in the SD-WAN network, to access the cloud through the SD-WAN network or to communicate with other user devices, and so on.
Fig. 3 is a schematic diagram of a network architecture of an application scenario to which the present application is applicable.
As shown in fig. 3, a plurality of physical interfaces 302 may be included in a gateway device 301, and in fig. 3, at least a physical interface 1 and a physical interface 2 are included in the gateway device as an example.
In fig. 3, the member links configured on the physical interface 1 are described as IPsec links by way of example. As shown in fig. 3, at least IPSec link 1 and IPSec link 2 are arranged on physical interface 1.
It can be understood that IPSec link 1 and IPSec link 2 on the physical interface can support the same service, and based on this, IPSec link 1 and IPSec link 2 can be connected to two different access points corresponding to the same service in the SD-WAN network. As shown in fig. 3, access point 1 may be considered a primary access point supporting a certain service, while access point 2 may be considered a backup access point supporting the service.
Each member link configured on the physical interface 1 is a public network link.
An interface management program is configured for the physical interface 1 in the gateway device, and the interface management program on the physical interface 1 communicates with an intelligent management module in the gateway device, so that the interface management program is configured similar to a virtual interface configured on the physical interface 1 from the perspective of the gateway device.
Wherein, the interface management program can manage the link status of each IPSec link in the physical interface.
For example, the interface manager may determine and record the link status of the IPSec link by monitoring the BDF session status detected on the IPSec link.
Specifically, if the interface manager detects that a BDF session creation event is received on IPSec link 1, a status record for that IPSec link 1 is generated in the link status information for physical interface 1. In this case, the interface management program may record that IPSec link 1 is in a non-connected state in the state record of IPSec link 1, and subsequently update the link state of IPSec link 1 according to the received session message.
It will be appreciated that if the interface manager detects a BDF session creation event on a particular IPSec link on physical interface 1, this indicates that a session connection has been established on that IPSec link. On the basis, the interface management program determines the IPSec link as a member link which needs to be maintained by the interface management program, and generates a state record for the IPSec link.
On this basis, if the interface manager detects a BDF session update event on IPSec link 1, IPSec link 1 is maintained in a connected state in the state record for IPSec link 1.
If the interface management program does not detect a BDF session update event on the IPSec link 1 or detects a session message indicating that the IPSec link 1 is disconnected for a set duration, the interface management program may record that the IPSec link 1 is in a disconnected state in a state record of the IPSec link 1.
Further, if the interface manager detects a BDF session deletion event (e.g., delete event of session) on the IPSec link 1, the interface manager may delete the status record of the IPSec link 1 from the link status information of the physical interface 1, i.e., the status record of the IPSec link 1 is not maintained.
Similarly, if the interface manager detects that a BDF session creation event is received on IPSec link 2, a status record for IPSec link 2 is generated in the link status information for physical interface 1, and at this time, it records that IPSec link 2 is in a non-connected state in the status record for IPSec link 2.
If the interface manager detects a BDF session update event on IPSec link 2, the state record of IPSec link 2 is updated to the state record that IPSec link 2 is in a connected state. Correspondingly, if the IPSec link 2 is determined to be in the non-connected state according to the BDF session, the state record of the IPSec link 1 is updated to be in the non-connected state.
If the interface manager detects a BDF session delete event on IPSec link 2, the state record for IPSec link 2 is deleted from the link state information for physical interface 1.
As shown in fig. 4, a schematic diagram of the status records of the IPSec links in physical interface 1 maintained by the interface manager is shown.
As can be seen from fig. 4, in the link state information of the physical interface 1 maintained by the interface manager, the name of the physical interface 1 is recorded: interface 1, and the link name and link status of the member link currently needing maintenance on that physical interface. In fig. 4, an example in which IPSec link 1 and IPSec link 2 in a physical interface both belong to an IPSec link that requires link state maintenance is described.
As shown in fig. 4, the link status information records that the link name corresponding to the member 1 is IPSec link 1, the link status is UP, and UP indicates that the link is in a connected state. If the link state is down, it indicates that the link is in the unconnected state. Correspondingly, the link status information also records the link name of the member 2, which is IPSec link 2, and related information.
In this application scenario, the interface manager may also configure and record the priorities of the different IPSec links. In this embodiment, taking the higher priority of IPSec link 1 as an example, as shown in fig. 4, the priority of IPSec link 1 is 100, and the priority of IPSec link 2 is 50, so that the priority of IPSec link 1 is higher.
For the physical interface 2, only one link may be configured on the physical interface 2, and the link may be an IPSec link or a communication link of a dedicated network, as in fig. 3, for example, a communication link of a dedicated network configured on the physical interface 2 is taken as an example.
Of course, physical interface 2 may be configured with a plurality of IPSec links as in physical interface 1.
For convenience of understanding, in this embodiment, the physical interface 2 is taken as an example of a physical interface capable of bearing the service carried on the physical interface 1 in the gateway device. On the premise that no member link is available in physical interface 1 in fig. 3, the traffic in physical interface 1 will be switched to physical interface 2, as shown by the dashed arrow in fig. 3.
For example, the member link configured in the physical interface 2 is the same as the service that can be carried by each member link in the physical interface 1. For another example, the member link configured on the physical interface 2 is a dedicated network link, that is, in the case shown in fig. 3, on this basis, the dedicated network of the member link in the physical interface 2 is not a public network, and the physical interface 2 may carry, in addition to the service on the physical interface 1, other services, for example, an important service that needs to be carried by the dedicated network.
For specific trigger conditions and specific implementation of switching the service on the physical interface 1 to the physical interface 2, reference may be made to the following description of the embodiment in fig. 5, which is not described herein again.
In addition, the POP of the access point connected to the physical interface 2 may be a POP of a certain member link of the physical interface 1, as shown in fig. 3, the POP of the access of the physical interface 2 may also be a POP different from the access of the physical interface 1, and may be configured specifically as needed as long as the physical interface 2 has a capability of bearing a corresponding service on the physical interface.
The following describes the scheme of the present application by taking the application scenario shown in fig. 3 as an example. In this embodiment, an intelligent routing module is operated in the gateway device, and physical interfaces and links required by each service in the gateway device are managed by the intelligent routing module.
As shown in fig. 5, which shows a schematic flow chart of a link switching control method in an application scenario according to the present application, this embodiment is described by taking an application of the method to an SD-WAN network as an example.
The method of this embodiment may be applied to a gateway device, and takes link switching control on a physical interface 1 in the gateway device as an example for explanation, where the physical interface 1 is equivalent to the aforementioned first physical interface, and the method of this embodiment includes:
s501, the interface manager on physical interface 1 saves and maintains the link status of IPSec link 1 and IPSec link 1 in physical interface 1.
This step can be referred to the above description of the status information generated and recorded by the interface management program for IPSec link 1 and IPSec link 2, and will not be described herein again.
S502, the interface management program reports the information of the IPSec link 1 which is in a connected state and has higher priority to the intelligent routing module of the gateway equipment.
S503, the intelligent routing module determines a service that needs to be configured to the physical interface 1, and configures the IPSec link 1 in the physical interface 1 for carrying the service.
S504, if the interface management program detects that the link state of the IPSec link 1 is in a non-connected state, the interface management program informs the intelligent routing module of the information that the link state of the IPSec link 1 is in the non-connected state.
It should be noted that step S504 is only one implementation manner, and in practical application, if the interface management program detects that the link status of the IPSec link 1 is the non-connected status, the interface management program may not report information that the link status of the IPSec link 1 is the non-connected status, but select and execute step S505 or S507 according to whether there are other available IPSec links in the physical interface 1.
And S505, if the interface management program determines that the IPSec link 2 in the physical interface 1 is in a connected state, reporting the information of the IPSec link 2 to the intelligent routing module.
S506, the intelligent routing module configures the IPSec link 2 in the physical interface 1 to carry the service.
S507, if the interface management program determines that no other IPSec link in the connected state exists in the physical interface 1, a notification message that no available link exists is sent to the intelligent routing module.
S508, the intelligent routing module switches the service carried in the physical interface 1 to the physical interface 2.
For example, if multiple IPSec links are configured in physical interface 2, the intelligent routing module may configure the IPSec link for carrying the service in physical interface 2 according to the IPSec link available in physical interface 2 reported by the interface management program associated with physical interface 2.
For another example, if only one IPSec link or link of a private network protocol is configured in the physical interface 2, the intelligent routing module may directly configure the link as a link in the physical interface 2 that carries the service. For example, the link configured in the physical interface 2 is a private network link, and in general, the link is only used for taking charge of one important service so as to ensure reliable operation of the important service. And only under the condition that the physical interface 1 does not have an available link, the service in the physical interface 1 is switched to the physical interface 2, so as to ensure the operation of the corresponding service.
It is to be understood that step S505 or step S507 may be performed according to whether there is an IPSec link in a connected state in the physical interface 1.
It should be understood that, in any of the above embodiments of the present application, after switching the service on the first physical interface to the second physical interface, if the interface manager on the first physical interface detects that the candidate member link in the connected state exists on the first physical interface, the interface manager still needs to continue to report the information of the candidate member link to the gateway device. Accordingly, the gateway device may still switch the service to the first physical interface, and configure the candidate member link on the first physical interface to carry the service.
The application also provides a link switching control device corresponding to the link switching control method.
As shown in fig. 6, which shows a schematic structural diagram of a link switching control apparatus according to the present application, the apparatus of this embodiment may be applied to a gateway device, where the gateway device includes at least two physical interfaces, and a plurality of member links are configured on a first physical interface. The apparatus may include:
a state obtaining unit 601, configured to obtain, through an interface management program associated with the first physical interface, a link state of a member link configured on the first physical interface, where the link state of the member link is used to characterize whether the member link is in a connected state;
an exception configuration unit 602, configured to, if a member link in the first physical interface that carries a service is in a non-connected state, configure, based on other member links in the first physical interface that are in a connected state, the member link in the first physical interface that carries the service, where each member link configured on the first physical interface is a link for implementing the same service.
In a possible implementation manner, the state obtaining unit includes:
a message obtaining unit, configured to obtain, through an interface management program associated with the first physical interface, a link detection message received on a member link of the first physical interface;
a first state recording unit, configured to record, if the link detection message on the member link indicates that the member link is in a connected state, that the link state of the member link in the first physical interface is in a connected state;
a second state recording unit, configured to record, if the link detection message on the member link indicates that the member link is in a non-connected state, that the link state of the member link in the first physical interface is in the non-connected state.
In an optional manner, the exception configuration unit includes:
a status reporting unit, configured to determine, by the interface management program, a target member link in a connected state if a member link carrying a service in the first physical interface is in a non-connected state, and report information of the target member link to the gateway device;
a link configuration unit, configured to configure, based on the information of the target member link reported by the interface management program, the member link in the first physical interface, which carries the service, as the target member link.
In yet another alternative, the apparatus further comprises:
a priority maintenance unit, configured to obtain, through the interface management program, a priority of the member link in the first physical interface, and record the priority of the member link;
when determining the target member link in the connected state through the interface management program, the state reporting unit is specifically configured to determine the target member link in the connected state and with the highest priority through the interface management program.
In another possible implementation manner, the apparatus further includes, in addition to the message obtaining unit:
a creating event obtaining unit, configured to obtain, by the interface manager, a session creating event received on a member link of the first physical interface, determine the member link that receives the session creating event as a member link that needs to be managed by the interface manager, and generate a state record of the member link, where the state record is used to record a link state of the member link, and the session creating event indicates that a session for transmitting a link detection message is established on the member link.
In another possible implementation manner, the apparatus further includes:
and the service switching unit is used for determining a second physical interface capable of bearing the service and switching the service to the second physical interface if the member link bearing the service in the first physical interface is in a non-connected state and other member links in a connected state do not exist in the first physical interface.
In an alternative, the apparatus further comprises:
a notification sending unit, configured to, before the service switching unit determines the second physical interface capable of carrying the service, report, to the gateway device, a notification message that the first physical interface is unavailable if the interface management program determines that the member link in the connected state does not exist on the first physical interface;
and an unavailable confirmation unit, configured to confirm that no other member link in a connected state exists in the first physical interface based on the notification message reported by the interface management program.
In yet another aspect, the present application further provides a gateway device, as shown in fig. 7, which shows a schematic structural diagram of a component of the gateway device, where the gateway device includes at least a memory 701, a processor 702, and a plurality of physical interfaces 703. Wherein, a plurality of member links are configured on the first physical interface
Wherein, the processor 701 is configured to execute the link switching control method in any of the above embodiments.
The memory 702 is used to store programs needed for the processor to perform operations.
Of course, the gateway device may also have more or fewer components than fig. 7, which is not limiting.
In another aspect, the present application further provides a computer-readable storage medium, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by a processor to implement the link switching control method according to any one of the above embodiments.
The present application further proposes a computer program comprising computer instructions stored in a computer readable storage medium. A computer program for performing a link switching control method as in any one of the above embodiments, when running on an electronic device.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. Also, the features described in the embodiments of the present specification may be replaced or combined with each other to enable one skilled in the art to make or use the present application. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A link switching control method is applied to gateway equipment, the gateway equipment comprises at least two physical interfaces, wherein a first physical interface is configured with a plurality of member links, and the method comprises the following steps:
obtaining a link state of a member link configured on the first physical interface through an interface management program associated with the first physical interface, wherein the link state of the member link is used for representing whether the member link is in a connected state; the interface management program is a program for managing and maintaining the link state of the member link configured on the first physical interface;
if the member link bearing the service in the first physical interface is in a non-connected state, configuring the member link bearing the service in the first physical interface based on other member links in a connected state in the first physical interface;
wherein, each member link configured on the first physical interface is a link for realizing the same service.
2. The method of claim 1, the obtaining, by an interface manager associated with the first physical interface, the link status of the member link configured on the first physical interface, comprising:
obtaining a link detection message received on a member link of the first physical interface through an interface management program associated with the first physical interface;
if the link detection message on the member link represents that the member link is in a connected state, recording that the link state of the member link in the first physical interface is in the connected state;
if the link detection message on the member link indicates that the member link is in a non-connected state, recording that the link state of the member link in the first physical interface is in the non-connected state.
3. The method of claim 2, wherein if the member link in the first physical interface carrying the service is in a non-connected state, configuring the member link in the first physical interface carrying the service based on the other member links in the connected state in the first physical interface, comprises:
if the member link bearing the service in the first physical interface is in a non-connected state, determining a target member link in a connected state through the interface management program, and reporting the information of the target member link to the gateway equipment;
and configuring the member link bearing the service in the first physical interface as the target member link based on the information of the target member link reported by the interface management program.
4. The method of claim 3, further comprising:
acquiring the priority of the member link in the first physical interface through the interface management program, and recording the priority of the member link;
the determining, by the interface manager, the target member link in a connected state includes:
determining, by the interface manager, a target member link in a connected state and having a highest priority.
5. The method of claim 2, further comprising:
the method comprises the steps of obtaining a session creation event received on a member link of a first physical interface through an interface management program, determining the member link receiving the session creation event as a member link needing to be managed by the interface management program, and generating a state record of the member link, wherein the state record is used for recording the link state of the member link, and the session creation event indicates that a session for a transmission link detection message is established on the member link.
6. The method of claim 1 or 3, further comprising:
and if the member link bearing the service in the first physical interface is in a non-connected state and other member links in a connected state do not exist in the first physical interface, determining a second physical interface capable of bearing the service, and switching the service to the second physical interface.
7. The method of claim 6, prior to determining a second physical interface capable of carrying the traffic, further comprising:
if the interface management program determines that the member link in the connected state does not exist on the first physical interface, reporting a notification message that the first physical interface is unavailable to the gateway equipment;
and confirming that other member links in a connected state do not exist in the first physical interface based on the notification message reported by the interface management program.
8. A link switching control device is applied to gateway equipment, wherein the gateway equipment comprises at least two physical interfaces, a first physical interface is configured with a plurality of member links, and the device comprises:
a state obtaining unit, configured to obtain, through an interface management program associated with the first physical interface, a link state of a member link configured on the first physical interface, where the link state of the member link is used to characterize whether the member link is in a connected state; the interface management program is a program for managing and maintaining the link state of the member link configured on the first physical interface;
an exception configuration unit, configured to configure, if a member link that carries a service in the first physical interface is in a non-connected state, the member link that carries the service in the first physical interface based on other member links that are in a connected state in the first physical interface, where each member link configured on the first physical interface is a link for implementing the same service.
9. The apparatus of claim 8, the state obtaining unit, comprising:
a message obtaining unit, configured to obtain, through an interface management program associated with the first physical interface, a link detection message received on a member link of the first physical interface;
a first state recording unit, configured to record, if the link detection message on the member link indicates that the member link is in a connected state, that the link state of the member link in the first physical interface is in a connected state;
a second state recording unit, configured to record, if the link detection message on the member link indicates that the member link is in a non-connected state, that the link state of the member link in the first physical interface is in the non-connected state.
10. A gateway device, comprising:
the system comprises a processor, a memory and a plurality of physical interfaces, wherein a plurality of member links are configured on a first physical interface;
the processor is configured to perform the link switching control method according to any one of claims 1 to 7;
the memory is used for storing programs needed by the processor to execute the above operations.
CN202111150396.4A 2021-09-29 2021-09-29 Link switching control method and device and gateway equipment Active CN113824595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111150396.4A CN113824595B (en) 2021-09-29 2021-09-29 Link switching control method and device and gateway equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111150396.4A CN113824595B (en) 2021-09-29 2021-09-29 Link switching control method and device and gateway equipment

Publications (2)

Publication Number Publication Date
CN113824595A CN113824595A (en) 2021-12-21
CN113824595B true CN113824595B (en) 2022-11-22

Family

ID=78921722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111150396.4A Active CN113824595B (en) 2021-09-29 2021-09-29 Link switching control method and device and gateway equipment

Country Status (1)

Country Link
CN (1) CN113824595B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116628770B (en) * 2023-07-19 2023-11-28 北京芯驰半导体科技有限公司 Chip data protection method and device, chip, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101138197A (en) * 2005-04-30 2008-03-05 中兴通讯股份有限公司 Fast recovery method of automatic exchange optical network
CN108600100A (en) * 2018-07-13 2018-09-28 新华三技术有限公司合肥分公司 Member port choosing method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100440746C (en) * 2003-12-01 2008-12-03 中兴通讯股份有限公司 A method for multi-port multi-link communication network backup control and apparatus therefor
CN101132320B (en) * 2007-09-18 2010-06-16 华为技术有限公司 Method for detecting interface trouble and network node equipment
US8462636B2 (en) * 2010-02-10 2013-06-11 Fujitsu Limited Systems and methods for communication of management traffic over link aggregation group interface for a network element with distributed architecture
CN102685007B (en) * 2012-05-04 2016-11-23 华为技术有限公司 The processing method and processing device of Member Link in a kind of multilink bundle link group
CN102739540B (en) * 2012-06-29 2015-05-06 华为技术有限公司 Method and system of access of branch to headquarters, and branch equipment
CN107547249A (en) * 2017-06-15 2018-01-05 新华三技术有限公司 Link switch-over method, device, SDN switch, controller and storage medium
CN109889350A (en) * 2017-12-06 2019-06-14 杭州达乎科技有限公司 A kind of method and device for toggle path in SDN network failure
CN111541609A (en) * 2020-03-31 2020-08-14 新华三信息安全技术有限公司 Method and device for detecting state of link aggregation group
CN112104478B (en) * 2020-07-30 2022-04-01 新华三信息安全技术有限公司 Link switching method, device, equipment and machine readable storage medium
CN112822102B (en) * 2020-12-30 2023-01-24 瑞斯康达科技发展股份有限公司 Link switching method, device, equipment, system and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101138197A (en) * 2005-04-30 2008-03-05 中兴通讯股份有限公司 Fast recovery method of automatic exchange optical network
CN108600100A (en) * 2018-07-13 2018-09-28 新华三技术有限公司合肥分公司 Member port choosing method and device

Also Published As

Publication number Publication date
CN113824595A (en) 2021-12-21

Similar Documents

Publication Publication Date Title
CN112868206B (en) Method, system and computer readable medium for providing service broker functionality
CN108965123B (en) Link switching method and network communication system
JP2022502926A (en) UE migration method, equipment, system, and storage medium
US8976681B2 (en) Network system, network management server, and OAM test method
CN110445697B (en) Video big data cloud platform equipment access service method
CN104144124B (en) Data forwarding method, Apparatus and system
JP2006501717A (en) Telecom network element monitoring
CN112039710B (en) Service fault processing method, terminal equipment and readable storage medium
WO2013185842A1 (en) Self-configuring transport network
CN113824595B (en) Link switching control method and device and gateway equipment
EP2774323B1 (en) Method, communication system and non-transitory computer readable medium for optimizing network performance after a temporary loss of connection
EP2883414B1 (en) Self organizing network event reporting
CN106534758B (en) Conference backup method and device
JP4673532B2 (en) Comprehensive alignment process in a multi-manager environment
JP7064132B2 (en) Fault monitoring system and fault monitoring method
CN113038394B (en) Session binding relationship processing method and device, electronic equipment and readable medium
CN101958925A (en) Method and device for controlling remote equipment
JP5518771B2 (en) Redundant network system, termination device and relay point adjacent device
CN112583932B (en) Service processing method, device and network architecture
US7958386B2 (en) Method and apparatus for providing a reliable fault management for a network
CN104426699A (en) Communication method, server and communication system
WO2022044546A1 (en) Communication system and method for recovering faults therein
CN113805788B (en) Distributed storage system and exception handling method and related device thereof
KR101146836B1 (en) Method and devices for operating a management network in the event a manager fails
JP2006115260A (en) Communication control method, communication repeater, and communication control program

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