CN118264549A - Method, device, equipment and storage medium for configuring network element - Google Patents
Method, device, equipment and storage medium for configuring network element Download PDFInfo
- Publication number
- CN118264549A CN118264549A CN202211631029.0A CN202211631029A CN118264549A CN 118264549 A CN118264549 A CN 118264549A CN 202211631029 A CN202211631029 A CN 202211631029A CN 118264549 A CN118264549 A CN 118264549A
- Authority
- CN
- China
- Prior art keywords
- network element
- priority
- network
- configuration instruction
- reachable
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 94
- 238000012545 processing Methods 0.000 claims abstract description 98
- 230000008569 process Effects 0.000 claims abstract description 30
- 238000001514 detection method Methods 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 8
- 238000004891 communication Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 10
- 230000005540 biological transmission Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0886—Fully automatic configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a method, a device, equipment and a storage medium for configuring a network element, which can be applied to the field of cloud data centers and the like and are used for solving the problem of low configuration flexibility of the network element. The method at least comprises the following steps: acquiring pre-stored equipment information of each network element; in the process of data processing of the first network element, based on the obtained equipment information, if the reachable state of the first network element is determined to be unreachable, acquiring a second network element associated with the first network element from the network elements; the first network element and the second network element are respectively configured into a first priority and a second priority, and the first priority is higher than the second priority; transmitting a first priority configuration instruction to the second network element, so that the second network element adjusts the configured second priority to a third priority based on the received first priority configuration instruction to replace the first network element for data processing; wherein the third priority is higher than the first priority.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for configuring a network element.
Background
With the continuous development of technology, network elements can be deployed on more and more devices for establishing a session with a client so as to realize data processing with the client.
In the related art, in order to avoid the problem that a single point failure occurs in a network element, a primary-backup redundancy strategy is generally adopted, a plurality of network elements with association relationship are deployed, one network element is preconfigured as a primary network element with highest priority, and the other network elements are preconfigured as backup network elements with lower priority, so when the primary network element fails, the backup network elements are timely called to process data, and the situation that the data cannot be processed is avoided.
However, in some scenarios, for example, after the session is established between the main network element and the client, if the main network element fails, and the session is rebuilt between the standby network element and the client, when the main network element resumes normal in the session process, the main network element will preempt the current session to interrupt the session between the standby network element and the client, and rebuild the session between the main network element and the client, which may cause session interruption or failure. Therefore, the network element has the problem of unstable data processing due to lower configuration flexibility of the network element.
As can be seen, in the related art, the configuration flexibility of the network element is low.
Disclosure of Invention
The embodiment of the application provides a method, a device, computer equipment and a storage medium for configuring a network element, which are used for solving the problem of lower configuration flexibility of the network element.
In a first aspect, a method for configuring a network element is provided, including:
Acquiring pre-stored equipment information of each network element; the device information comprises information representing the reachable state of the corresponding network element, information representing the association relation between the corresponding network element and other network elements and information representing the priority of the selected data processing of the corresponding network element;
In the process of data processing of a first network element, based on the obtained equipment information, if the reachable state of the first network element is determined to be unreachable, acquiring a second network element associated with the first network element from the network elements; wherein, the first network element and the second network element are respectively configured as a first priority and a second priority, and the first priority is higher than the second priority;
Sending a first priority configuration instruction to the second network element, so that the second network element adjusts the configured second priority to a third priority based on the received first priority configuration instruction to replace the first network element for data processing; wherein the third priority is higher than the first priority.
Optionally, the acquiring pre-stored device information of each network element includes:
for each network element, the following operations are respectively executed:
receiving a connection establishment request sent by a network element; the connection establishment request is used for requesting to establish network connection of a specified network protocol;
establishing a network connection with the network element based on the specified network protocol indicated by the connection establishment request;
And acquiring the equipment information of the network element through the established network connection.
Optionally, the device information further includes information characterizing a network address of a corresponding network element; and if the reachable state of the first network element is determined to be unreachable based on the obtained device information, acquiring a second network element associated with the first network element from the network elements, including:
Based on the information representing the network address in the equipment information, respectively sending an reachable detection instruction to each network element with a preset time period as a period, so that each network element returns corresponding reachable reply information based on the received reachable detection instruction; the reachability reply information is used for representing the reachability of the corresponding network element;
if the returned reachable reply information is received, updating the information representing the reachable state in the corresponding equipment information based on the received reachable reply information;
And based on the updated equipment information, if the reachable state of the first network element is determined to be unreachable, acquiring a second network element associated with the first network element.
Optionally, if the reachable state of the first network element is determined to be unreachable based on the obtained device information, the obtaining, from the network elements, the second network element associated with the first network element includes:
based on the obtained equipment information, if the reachable state of the first network element is determined to be unreachable, determining a plurality of alternative network elements with association relation with the first network element;
And selecting the alternative network element with the highest priority as the second network element based on the equipment information of the plurality of alternative network elements.
Optionally, the first priority configuration instruction is configured to configure a priority attribute in a border gateway protocol of the second network element, where the priority attribute is used to indicate a priority selected by the second network element for data processing.
Optionally, after sending the first priority configuration instruction to the second network element, the method further includes:
And if the reachable state of the first network element is determined to be reachable, respectively sending a second priority configuration instruction and a third priority configuration instruction to the first network element and the second network element, so that the first network element adjusts the priority of the first network element to be the second priority based on the received second priority configuration instruction, and the second network element adjusts the priority of the second network element to be the first priority based on the received third priority configuration instruction.
In a second aspect, a method for configuring a network element is provided, including:
After the SDN controller is in an on state, sending the equipment information of the second network element to the SDN controller, so that the SDN controller obtains the equipment information of each network element, and then obtains the second network element associated with the first network element from each network element and sends a first priority configuration instruction to the second network element if the reachable state of the first network element is determined to be unreachable in the process of carrying out data processing on the first network element; the device information comprises information representing the reachable state of the corresponding network element, information representing the association relation between the corresponding network element and other network elements and information representing the priority of the selected data processing of the corresponding network element; the first network element and the second network element are respectively configured to be a first priority and a second priority, and the first priority is higher than the second priority;
receiving the first priority configuration instruction;
And adjusting the configured second priority to a third priority based on the first priority configuration instruction, wherein the third priority is higher than the first priority.
Optionally, the adjusting the priority to the third priority based on the first priority configuration instruction includes:
configuring a priority attribute in a border gateway protocol of the second network element to be a third priority based on the first priority configuration instruction; the priority attribute is used for indicating the priority of the second network element during data processing.
Optionally, after the configuring the priority attribute in the border gateway protocol of the second network element to be the third priority based on the first priority configuration instruction, the method further includes:
Receiving a third priority configuration instruction from the SDN controller, the third priority configuration instruction being sent by the SDN controller to the second network element when determining that the reachable state of the first network element is reachable;
and configuring the priority attribute in the border gateway protocol of the second network element as a first priority based on the third priority configuration instruction.
In a third aspect, an apparatus for configuring a network element is provided, including:
The acquisition module is used for: the method comprises the steps of acquiring pre-stored equipment information of each network element; the device information comprises information representing the reachable state of the corresponding network element, information representing the association relation between the corresponding network element and other network elements and information representing the priority of the selected data processing of the corresponding network element;
The processing module is used for: the method comprises the steps of acquiring a second network element associated with a first network element from each network element if the reachable state of the first network element is determined to be unreachable based on the acquired equipment information in the process of data processing of the first network element; wherein, the first network element and the second network element are respectively configured as a first priority and a second priority, and the first priority is higher than the second priority;
The processing module is further configured to: sending a first priority configuration instruction to the second network element, so that the second network element adjusts the configured second priority to a third priority based on the received first priority configuration instruction to replace the first network element for data processing; wherein the third priority is higher than the first priority.
Optionally, the acquiring module is specifically configured to:
for each network element, the following operations are respectively executed:
receiving a connection establishment request sent by a network element; the connection establishment request is used for requesting to establish network connection of a specified network protocol;
establishing a network connection with the network element based on the specified network protocol indicated by the connection establishment request;
And acquiring the equipment information of the network element through the established network connection.
Optionally, the device information further includes information characterizing a network address of a corresponding network element; the processing module is specifically configured to:
Based on the information representing the network address in the equipment information, respectively sending an reachable detection instruction to each network element with a preset time period as a period, so that each network element returns corresponding reachable reply information based on the received reachable detection instruction; the reachability reply information is used for representing the reachability of the corresponding network element;
if the returned reachable reply information is received, updating the information representing the reachable state in the corresponding equipment information based on the received reachable reply information;
And based on the updated equipment information, if the reachable state of the first network element is determined to be unreachable, acquiring a second network element associated with the first network element.
Optionally, the processing module is specifically configured to:
based on the obtained equipment information, if the reachable state of the first network element is determined to be unreachable, determining a plurality of alternative network elements with association relation with the first network element;
And selecting the alternative network element with the highest priority as the second network element based on the equipment information of the plurality of alternative network elements.
Optionally, the first priority configuration instruction is configured to configure a priority attribute in a border gateway protocol of the second network element, where the priority attribute is used to indicate a priority selected by the second network element for data processing.
Optionally, the processing module is further configured to:
After sending a first priority configuration instruction to the second network element, if it is determined that the reachable state of the first network element is reachable, sending a second priority configuration instruction and a third priority configuration instruction to the first network element and the second network element respectively, so that the first network element adjusts the priority of the first network element to be the second priority based on the received second priority configuration instruction, and the second network element adjusts the priority of the second network element to be the first priority based on the received third priority configuration instruction.
In a fourth aspect, an apparatus for configuring a network element is provided, including:
And a transceiver module: the method comprises the steps that after the SDN controller is in an on state, the equipment information of the second network element is sent to the SDN controller, so that the SDN controller obtains the equipment information of each network element, and then obtains the second network element associated with the first network element from each network element and sends a first priority configuration instruction to the second network element when the reachable state of the first network element is determined to be unreachable in the process of data processing of the first network element; the device information comprises information representing the reachable state of the corresponding network element, information representing the association relation between the corresponding network element and other network elements and information representing the priority of the selected data processing of the corresponding network element; the first network element and the second network element are respectively configured to be a first priority and a second priority, and the first priority is higher than the second priority;
the transceiver module is further configured to: receiving the first priority configuration instruction;
The processing module is used for: for adjusting the second priority configured to a third priority based on the first priority configuration instruction, wherein the third priority is higher than the first priority.
Optionally, the processing module is specifically configured to:
configuring a priority attribute in a border gateway protocol of the second network element to be a third priority based on the first priority configuration instruction; the priority attribute is used for indicating the priority of the second network element during data processing.
Optionally, the transceiver module is further configured to: after the configuring of the priority attribute in the border gateway protocol of the second network element to a third priority based on the first priority configuration instruction, receiving a third priority configuration instruction from the SDN controller, wherein the third priority configuration instruction is sent to the second network element by the SDN controller when determining that the reachable state of the first network element is reachable;
The processing module is further configured to: and configuring the priority attribute in the border gateway protocol of the second network element as a first priority based on the third priority configuration instruction.
In a fifth aspect, a system for configuring a network element is provided, at least including an SDN controller, a first network element and a second network element, where:
the first network element is configured to: after being in an on state, the SDN controller is sent with the equipment information of the first network element;
The second network element is configured to: after being in an on state, sending the equipment information of the second network element to the SDN controller;
The SDN controller is configured to: acquiring a second network element associated with a first network element from each network element if the reachable state of the first network element is determined to be unreachable based on the acquired equipment information of each network element in the process of data processing of the first network element; the device information comprises information representing the reachable state of the corresponding network element, information representing the association relation between the corresponding network element and other network elements and information representing the priority of the selected data processing of the corresponding network element; the first network element and the second network element are respectively configured to be a first priority and a second priority, and the first priority is higher than the second priority;
The SDN controller is further configured to: sending a first priority configuration instruction to the second network element;
the second network element is further configured to: and based on the received first priority configuration instruction, adjusting the configured second priority to a third priority, wherein the third priority is higher than the first priority.
Optionally, the first network element and the second network element are specifically configured to: after being in an open state, sending a connection establishment request to the SDN controller; the connection establishment request is used for requesting to establish network connection of a specified network protocol;
The SDN controller is specifically configured to: based on the received appointed network protocol of the connection establishment request instruction, establishing network connection with the corresponding network element;
the first network element is specifically configured to: transmitting the equipment information of the first network element to the SDN controller through the established network connection;
The second network element is specifically configured to: and sending the equipment information of the second network element to the SDN controller through the established network connection.
Optionally, the device information further includes information characterizing a network address of a corresponding network element; the SDN controller is specifically configured to: based on the information representing the network address in the information of each device, respectively sending an reachable detection instruction to each network element by taking a preset duration as a period;
The second network element is specifically configured to: based on the received reachable detection instruction, corresponding reachable reply information is returned; the reachability reply information is used for representing the reachability of the corresponding network element;
The SDN controller is specifically configured to: updating the information representing the reachable state in the equipment information of the first network element and the equipment information of the second network element based on the received reachable reply information;
The SDN controller is specifically configured to: and based on the updated equipment information, if the reachable state of the first network element is determined to be unreachable, acquiring a second network element associated with the first network element.
Optionally, the first priority configuration instruction is configured to configure a priority attribute in a border gateway protocol of the second network element, where the priority attribute is used to indicate a priority selected by the second network element for data processing.
Optionally, the SDN controller is further configured to: after sending a first priority configuration instruction to the second network element, if the reachable state of the first network element is determined to be reachable, sending a second priority configuration instruction and a third priority configuration instruction to the first network element and the second network element respectively;
The first network element is further configured to: based on the received second priority configuration instruction, adjusting the priority of the first network element to be a second priority;
the second network element is further configured to: and adjusting the priority of the second network element to be the first priority based on the received third priority configuration instruction.
In a sixth aspect, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a method as in the first aspect or as in the second aspect.
In a seventh aspect, there is provided a computer device comprising:
A memory for storing program instructions;
And a processor for invoking program instructions stored in said memory, performing the method according to the first aspect or according to the second aspect in accordance with the obtained program instructions.
In an eighth aspect, there is provided a computer readable storage medium storing computer executable instructions for causing a computer to perform the method of the first aspect or the second aspect.
In the embodiment of the application, the priority of the network element is configured through the SDN controller, so that the priority of the network element is flexible and adjustable, the situations of session preemption and the like when the priority of the network element is only adjustable in a preset mode or a manual setting mode are avoided, the configuration flexibility of the network element is improved, and the stability of network element data processing is higher.
Further, the SDN controller pre-stores the device information of each network element, so that if it is determined that the first network element with the higher priority is not reachable through the device information in the process of performing data processing on the first network element, a second network element with the lower priority associated with the first network element is selected from the pre-stored network elements. And sending a first priority configuration instruction to the second network element so that the second network element can adjust the configured priority to the highest priority, thereby the second network element can replace the first network element to process data.
In the process of carrying out data processing by replacing the first network element by the second network element, because the priority of the current second network element is highest, even if the first network element is recovered to be reachable at the moment, the second network element cannot be preempted due to the higher priority of the first network element, and the stability of network element data processing is ensured by improving the configuration flexibility of the network element.
Drawings
Fig. 1A is a schematic diagram of an application field of a method for configuring a network element according to an embodiment of the present application;
fig. 1B is a schematic view of an application scenario of a method for configuring a network element according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a method for configuring a network element according to an embodiment of the present application;
Fig. 3 is a schematic diagram of a method for configuring a network element according to an embodiment of the present application;
fig. 4 is a schematic diagram two of a method for configuring a network element according to an embodiment of the present application;
fig. 5A is a schematic diagram III of a method for configuring a network element according to an embodiment of the present application;
fig. 5B is a schematic diagram of a method for configuring a network element according to an embodiment of the present application;
Fig. 6 is a schematic diagram five of a method for configuring a network element according to an embodiment of the present application;
fig. 7 is a schematic diagram sixth of a method for configuring a network element according to an embodiment of the present application;
Fig. 8 is a schematic structural diagram of an apparatus for configuring a network element according to an embodiment of the present application;
fig. 9 is a schematic diagram two of a device for configuring a network element according to an embodiment of the present application;
fig. 10 is a schematic diagram III of a device for configuring a network element according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
Some terms in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
(1) Software defined networking (english: software Defined Network, abbreviation: SDN):
SDN is an independent network architecture established by an open network foundation (English: open Networking Foundation, abbreviated: ONF) organization. SDN can be used for solving the problems of slow (protocol) development, lack of 'consistent' policy control, poor expansibility, strong manufacturer dependence and the like caused by the fact that the existing network is too complex. The SDN system mainly comprises two components: SDN controller and network device.
(2) Network function virtualization (english: network Functions Virtualization, abbreviation: NFV):
NFV builds many types of Network devices (e.g., servers, switches, storage, etc.) as a data center Network (english: DATA CENTER Network), virtualizes by a virtualization technique that borrows information technology (english: information Technology, abbreviation: IT) to form Virtual Machines (VM), and then deploys conventional CT services onto the VM.
(3) Border gateway protocol (english: border Gateway Protocol, abbreviation: BGP):
BGP is a distance vector routing protocol that implements reachable routes between autonomous systems (english: autonomous System, abbreviated: AS) and selects the best route.
(4) Open source virtual switch (english: open vSwitch):
Open vSwitch is an Open-source virtual switch software that specifically manages a multi-tenancy public cloud computing environment, providing network administrators with traffic visibility and control between and within virtual VMs.
(5) Stateful network elements:
The equipment for providing data processing for users by the stateful network element is characterized in that different processing schemes can be executed according to the request reply state of the data.
(6) Kernel-based virtual machine (english: kernel-based Virtual Machine, abbreviation: KVM):
the KVM is an open-source system virtualization module, is managed by using a Linux self scheduler, and has few core source codes. Virtualization of KVM requires hardware support, which is a hardware-based complete virtualization.
It should be noted that, in the embodiments of the present application, related data such as device information is related, when the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required to be obtained, and the collection, use and processing of related data is required to comply with related laws and regulations and standards of related countries and regions.
The application field of the method for configuring a network element provided by the embodiment of the present application is briefly described below.
With the continuous development of technology, network elements can be deployed on more and more devices for establishing a session with a client so as to realize data processing with the client.
Referring to fig. 1A, the system includes a first access switch and a second access switch, a first physical server and a second physical server; the first physical server comprises a first switch, a first network element NFV-1Active and a third network element NFV-2Standby; the second physical server comprises a second switch, a second network element NFV-1Standby and a fourth network element NFV-2Active.
In the public cloud data center which is common at present, a stateful network element for providing network application services for tenants is generally deployed on a physical server of a computing resource pool in the form of a KVM virtual machine, and one stateful network element is denoted by one NFV in fig. 1A.
The client may perform data transmission with a different physical server through the access switch, please continue to refer to fig. 1A, for example, perform data transmission with the first physical server or the second physical server through the first access switch; for another example, data transfer is performed with the first physical server or the second physical server through the second access switch.
The KVM virtual machine on a single physical server can deploy a plurality of KVM virtual machines according to the hardware configuration condition of the server. Open vSwitch is deployed simultaneously on each physical server as an access switch for each stateful network element device running on that server. With continued reference to fig. 1A, for example, data transmission with the first network element or the third network element may be performed through the first switch; for another example, the data transmission may be performed with the second network element or the fourth network element through the second switch.
In the related art, in order to avoid the problem that a single point failure occurs in a network element, a primary-backup redundancy strategy is generally adopted, a plurality of network elements with association relationship are deployed, one network element is configured as a primary network element with the highest priority in advance, and the other network elements are configured as backup network elements with lower priority in advance, so when the primary network element fails, the backup network elements are timely called to process data, and the situation that the data cannot be processed is avoided.
With continued reference to fig. 1A, in a cloud scenario of a client, in order to avoid a single point of failure problem of a stateful network element, stateful network elements that provide network services for the same tenant, such as a first network element NFV-1Active and a second network element NFV-1Standby, are typically deployed on a plurality of physical servers in a primary-Standby redundancy manner. The network element confirms the own main and standby deployment relationship in the creation stage, and when initializing the BGP protocol, corresponding BGP metric information is configured on corresponding network elements in advance through automatic deployment, so that the configuration of main and standby routes is realized.
However, since the metric parameters of BGP protocol are fixed, in some scenarios, for example, after a session is established between a primary network element and a client, if the primary network element fails and a standby network element is adopted to reestablish the session with the client, when the primary network element resumes normal during the session, the primary network element preemptively interrupts the current session to interrupt the session between the standby network element and the client and reestablish the session between the primary network element and the client, which may result in session interruption or failure. Therefore, the network element has the problem of unstable data processing due to lower configuration flexibility of the network element.
As can be seen, in the related art, the configuration flexibility of the network element is low.
In order to solve the problem of lower configuration flexibility of network elements, the application provides a method for configuring network elements. The method is applied to an SDN controller, and pre-stored equipment information of each network element is acquired first; the device information comprises information representing the reachable state of the corresponding network element, information representing the association relation between the corresponding network element and other network elements and information representing the priority of the corresponding network element selected for data processing.
In the process of data processing of the first network element, based on the obtained equipment information, if the reachable state of the first network element is determined to be unreachable, acquiring a second network element associated with the first network element from the network elements; the first network element and the second network element are respectively configured into a first priority and a second priority, and the first priority is higher than the second priority.
Transmitting a first priority configuration instruction to the second network element, so that the second network element adjusts the configured second priority to a third priority based on the received first priority configuration instruction to replace the first network element for data processing; wherein the third priority is higher than the first priority.
In the embodiment of the application, the priority of the network element is configured through the SDN controller, so that the priority of the network element is flexible and adjustable, the situations of session preemption and the like when the priority of the network element is only adjustable in a preset mode or a manual setting mode are avoided, the configuration flexibility of the network element is improved, and the stability of network element data processing is higher.
Further, the SDN controller pre-stores the device information of each network element, so that if it is determined that the first network element with the higher priority is not reachable through the device information in the process of performing data processing on the first network element, a second network element with the lower priority associated with the first network element is selected from the pre-stored network elements. And sending a first priority configuration instruction to the second network element so that the second network element can adjust the configured priority to the highest priority, thereby the second network element can replace the first network element to process data.
In the process of carrying out data processing by replacing the first network element by the second network element, because the priority of the current second network element is highest, even if the first network element is recovered to be reachable at the moment, the second network element cannot be preempted due to the higher priority of the first network element, and the stability of network element data processing is ensured by improving the configuration flexibility of the network element.
The application scenario of the method for configuring a network element provided by the present application is described below.
Fig. 1B is a schematic view of an application scenario of a method for configuring a network element according to the present application. The application scene comprises a client 101 and a server 102. Communication may be between client 101 and server 102. The communication mode can be communication by adopting a wired communication technology, for example, communication is carried out through a connecting network wire or a serial port wire; the communication may also be performed by using a wireless communication technology, for example, a bluetooth or wireless fidelity (english: WIRELESS FIDELITY, abbreviated: WIFI) technology, which is not particularly limited.
The client 101 generally refers to a device that may interact with a network element, for example, a terminal device, a third party application that the terminal device may access, or a web page that the terminal device may access, etc. Terminal devices include, but are not limited to, cell phones, computers, smart medical devices, smart home appliances, vehicle terminals or aircraft, etc. The server 102 generally refers to a device, such as a terminal device or a server, that may configure a network element. Servers include, but are not limited to, cloud servers, local servers, or associated third party servers, and the like. Both the client 101 and the server 102 can adopt cloud computing to reduce occupation of local computing resources; cloud storage may also be employed to reduce the occupation of local storage resources.
As an embodiment, the client 101 and the server 102 may be the same device, which is not limited in particular. In the embodiment of the present application, the description will be given by taking the case that the client 101 and the server 102 are different devices respectively.
The method for configuring network elements provided by the embodiment of the present application is specifically described below based on fig. 1B at the perspective of an SDN controller. Fig. 2 is a schematic flow chart of a method for configuring a network element according to an embodiment of the present application.
S201, obtaining pre-stored equipment information of each network element.
The device information of each network element can be pre-stored in the SDN controller, and the device information of each network element can be added into the SDN controller after the network element is created; or after the network element is in an on state, establishing communication connection with the SDN controller, and sending the communication connection to the SDN controller by the network element; or the SDN controller may acquire the set-up network elements with a period of a certain duration, which is not particularly limited.
The device information may include information characterizing the reachable state of the corresponding network element, which may include reachable or unreachable, which may be used to indicate whether the network element may interact with other devices, etc.
The device information may further include information characterizing an association relationship between the corresponding network element and other network elements, where the association relationship may be a primary-backup relationship, for example, for the network element a and the network element B, where the network element a is a primary network element of the network element B, the network element B is a backup network element of the network element a, and a primary-backup relationship exists between the network element a and the network element B. The association relationship may be preset when the network element is created, or may be automatically paired according to a physical server where the network element is located, etc., which is not specifically limited. For example, the network element C and the network element D are located in the first physical server, and the network element E is located in the second physical server, so if there is an association relationship between the network element C and the network element D, both the network element C and the network element D cannot be used when the first physical server fails, so that the network element C and the network element E can be automatically paired, and an association relationship between the network element C and the network element E is established.
The device information may further include information characterizing the priority of the corresponding network element selected for data processing, where the higher the priority, the more preferentially the network element is selected for data processing, e.g. the higher the priority of the main network element than the standby network element, and when processing data, the main network element is preferentially selected for data processing.
Please refer to table 1, which is one possible form of pre-stored device information.
TABLE 1
Apparatus and method for controlling the operation of a device | Reachable state | Association relation | Priority level |
Network element A | Reachable (can reach) | Network element B | a |
Network element B | Reachable (can reach) | Network element A | b |
Network element C | Reachable (can reach) | Network element E | a |
Network element E | Reachable (can reach) | Network element C | b |
The reachable states of the network element A and the network element B are reachable, an association relation exists between the network element A and the network element B, the configured priority of the network element A is a, the configured priority of the network element B is B, and the priority a is higher than B. The reachable states of the network element C and the network element E are reachable, an association relation exists between the network element C and the network element E, the configured priority of the network element C is a, the configured priority of the network element E is b, and the priority a is higher than b.
As an embodiment, each device information pre-stored by the SDN controller may be obtained through a network connection established by a specified network protocol. Taking a network element as an example, a connection establishment request sent by the network element is received, where the connection establishment request is used to request to establish a network connection of a specified network protocol, and the specified network protocol may be a Netconf network protocol, etc., and is not limited in particular. After receiving the connection establishment request, the SDN controller may establish a network connection with the network element based on a specified network protocol indicated by the connection establishment request, and obtain device information of the network element through the established network connection.
Based on fig. 1A, please refer to fig. 3, the sdn controller establishes a network connection with the first network element, the second network element, the third network element and the fourth network element through a specified network protocol. After establishing the network connection, the SDN controller may manage each network element through the network connection, etc. For example, taking a first network element and a second network element as an example, please refer to fig. 4, the sdn controller may obtain device information a of the first network element and device information B of the second network element through the network connection, and store the obtained device information.
As an embodiment, if the priority of the network element needs to be configured to the priority attribute in the border gateway protocol BGP to be effective, after obtaining the device information of each network element, the SDN controller may send, to each network element, a BGP configuration instruction based on each device information, where the BGP configuration instruction is used to indicate to configure the priority attribute in the BGP protocol of the corresponding network element. Thus, the network element assigns priority attributes to BGP protocols based on the received BGP configuration instructions.
Referring to fig. 5a, the priority of the first network element stored in the sdn controller is a, and the priority of the second network element is B. Then the SDN controller may send BGP configuration instruction a to the first network element, for instructing the first network element to configure the priority attribute in BGP to a; and sending a BGP configuration instruction B to the second network element, wherein the BGP configuration instruction B is used for instructing the second network element to configure the priority attribute in the BGP as B.
S202, in the process of data processing of the first network element, based on the obtained equipment information, if the reachable state of the first network element is determined to be unreachable, acquiring a second network element associated with the first network element from the network elements.
The SDN controller may periodically determine whether each network element is reachable, or may determine whether a corresponding network element is reachable in a process of determining that the network element performs data processing, and the disclosure is not specifically limited. In the process of carrying out data processing on the first network element, if the reachable state of the first network element is determined to be unreachable, acquiring a second network element associated with the first network element from each network element, so as to adopt the second network element to replace the first network element for carrying out data processing and the like.
The first network element and the second network element are respectively configured to be a first priority and a second priority, and the first priority is higher than the second priority. That is, among the two network elements having the association relationship, the network element with the higher priority is defaulted to perform the data processing, and when the network element with the higher priority is not reachable, the network element with the lower priority is selected to perform the data processing, and the like.
As an example, the device information may also comprise information characterizing the network address of the respective network element, e.g. an internet protocol (english: internet Protocol, abbreviation: IP) address, etc. Thus, it may be determined whether each network element is reachable by the network address of each network element.
Please refer to table 2, which is one possible form of pre-stored device information.
TABLE 2
Apparatus and method for controlling the operation of a device | Network address | Reachable state | Association relation | Priority level |
Network element A | 1.1.1.1 | Reachable (can reach) | Network element B | a |
Network element B | 1.1.1.2 | Reachable (can reach) | Network element A | b |
Network element C | 1.1.1.3 | Reachable (can reach) | Network element E | a |
Network element E | 1.1.1.4 | Reachable (can reach) | Network element C | b |
Wherein, the network address of the network element A is 1.1.1.1, the network address of the network element B is 1.1.1.2, the network address of the network element C is 1.1.1.3, and the network address of the network element E is 1.1.1.4.
Based on the information representing the network address in the information of each device, sending the reachable detection instruction to each network element respectively with the preset time period, so that each network element returns corresponding reachable reply information based on the received reachable detection instruction respectively, wherein the reachable reply information is used for representing that the corresponding network element is reachable, namely if the network element can receive the reachable detection instruction sent by the SDN controller and can return the reachable reply information to the SDN controller, the network element can interact with other devices, and the network element is reachable.
If the returned reachable reply information is received, updating the information representing the reachable state in the corresponding equipment information based on the received reachable reply information. For example, the SDN controller sends an reachability detection instruction to the first network element, and receives reachability reply information returned by the first network element within a certain period of time, so that information representing the reachability state of the first network element is updated to represent that the first network element is reachable in the stored device information of the first network element.
For the network element which does not receive the returned reachable reply information in a certain time period, updating the information representing the reachable state in the corresponding equipment information to represent that the network element is unreachable. Or when the number of the reachable detection instructions is not less than the preset number threshold continuously sent to a certain network element, updating the information representing the reachable state in the corresponding equipment information to represent that the network element is unreachable, and the like, and the method is not particularly limited.
For example, the SDN controller sends an reachability detection instruction to the first network element, and in a certain period of time, the SDN controller does not receive the reachability reply information returned by the first network element, and updates the information representing the reachability state of the first network element to represent that the first network element is unreachable in the stored device information of the first network element.
For another example, the SDN controller continuously sends the reachability detection instruction to the first network element 3 times, when the reachability detection instruction is sent to the first network element 4 times, reachability reply information returned by the first network element for any one or more times of the 3 reachability detection instructions is not received, and then, in the stored device information of the first network element, information representing the reachability state of the first network element is updated to represent that the first network element is unreachable.
Because the device information stored in the SDN controller is updated in real-time, the SDN controller may determine, based on each updated device information, whether the reachable state of the first network element is reachable. If the reachable state of the first network element is determined to be reachable, not processing; and if the reachable state of the first network element is determined to be unreachable, acquiring a second network element associated with the first network element.
As an embodiment, the network element having the association relationship may include more than two network elements, and then, based on the obtained device information, if it is determined that the reachable state of the first network element is unreachable, a plurality of candidate network elements having the association relationship with the first network element are determined. And selecting the alternative network element with the highest priority as a second network element based on the equipment information of the plurality of alternative network elements.
S203, a first priority configuration instruction is sent to the second network element.
After obtaining the second network element, the SDN controller may send a first priority configuration instruction to the second network element, so that the second network element adjusts the configured second priority to a third priority based on the received first priority configuration instruction, so as to replace the first network element to perform data processing, where the third priority is higher than the first priority.
By setting the third priority higher than the first priority, when the first network element loses network connection, the priority of the first network element cannot be configured, but the second network element can be configured by the third priority, so that the priority of the second network element is higher than that of the first network element. Even if the first network element resumes the network connection in the process of processing the data by the second network element, the first network element does not preempt the second network element because the priority of the first network element is lower than that of the second network element, thereby avoiding frequent data processing interruption and the like.
For example, after the second network element has established a session with the client, the first network element resumes the network connection, so that the first network element is lower than the second network element in priority, and therefore the second network element cannot leave the current session due to the fact that the first network element resumes the network connection, and session stability is guaranteed.
As an embodiment, the first priority configuration instruction is configured to configure a priority attribute in a border gateway protocol BGP of the second network element, where the priority attribute is used to indicate a priority of the second network element selected for data processing, and the priority attribute is, for example, a meta attribute in the BGP protocol, and so on.
Referring to fig. 5B, after the first network element loses network connection, the SDN controller may update the stored device information of the second network element to indicate the priority, and update the priority from the second priority to the third priority, that is, from B to C, and meanwhile, the SDN controller may send a first priority configuration instruction to the second network element through a southbound channel, and after receiving the first priority configuration instruction, the second network element updates a meta attribute in the BGP protocol to C.
As an embodiment, after sending the first priority configuration instruction to the second network element, if it is determined that the reachable state of the first network element is reachable, sending the second priority configuration instruction and the third priority configuration instruction to the first network element and the second network element, respectively, so that the first network element adjusts the priority of the first network element to the second priority based on the received second priority configuration instruction, and the second network element adjusts the priority of the second network element to the first priority based on the received third priority configuration instruction.
Because the reachable state of the first network element is reachable, which means that the first network element resumes network connection, the second priority configuration instruction can be sent to the first network element through the southbound channel, the priority of the first network element is adjusted to the second priority, and meanwhile, the third priority configuration instruction is sent to the second network element through the southbound channel, and the priority of the second network element is adjusted to the first priority, thereby avoiding the situation that the second network element is always in the third priority, and other priorities higher than the third priority need to be set when the second network element is unreachable, and reducing the complexity of the configuration network element.
Referring to fig. 6, after the first network element resumes the network connection, the SDN controller may update the stored device information of the first network element to indicate the priority, and update the priority from the first priority to the second priority, that is, from a to B; simultaneously updating the stored equipment information of the second network element to represent the priority, and updating the priority from the third priority to the first priority, namely updating from C to A; meanwhile, the SDN controller can send a second priority configuration instruction to the first network element through the southbound channel, and the first network element updates the meta attribute in the BGP protocol to B after receiving the second priority configuration instruction; meanwhile, the SDN controller may send a third priority configuration instruction to the second network element through the southbound channel, where after receiving the third priority configuration instruction, the second network element updates the meta attribute in the BGP protocol to a.
By the method for configuring the network element, provided by the embodiment of the application, the forwarding surface of the equipment is configured by the SDN controller, so that the non-preemptive master/slave of the stateful network element is realized, and the problem of session reconstruction when the preemptive master/slave is recovered by the fault master equipment is solved. And the forwarding plane of the state network element service can be further configured and state supervised according to the need, for example: configuring advertisement delay and additional route advertisement according to need; and after the abnormal jitter of the business master is identified, notifying operation and maintenance personnel.
The method for configuring the network element provided by the embodiment of the application can solve the problem of fault recovery of the stateful network element equipment on the basis of storing VXLAN node equipment (English: VXLAN Tunnel EndPoint, abbreviated: VTEP) including functions of a physical switch, a virtual switch and the like under the condition of not changing the VXLAN of the network virtualization technology.
The method for configuring a network element provided by the embodiment of the present application is specifically described below based on fig. 1B at the angle of the second network element.
After the second network element is in the on state, the device information of the second network element is sent to the SDN controller, which may be specifically described with reference to the foregoing description and will not be repeated herein. After obtaining the device information of each network element, the SDN controller obtains a second network element associated with the first network element from each network element and sends a first priority configuration instruction to the second network element if the reachable state of the first network element is determined to be unreachable in the process of carrying out data processing on the first network element; the device information comprises information representing the reachable state of the corresponding network element, information representing the association relation between the corresponding network element and other network elements and information representing the priority of the selected data processing of the corresponding network element; the first network element and the second network element are respectively configured to be a first priority and a second priority, and the first priority is higher than the second priority.
The second network element receives the first priority configuration instruction and adjusts the configured second priority to a third priority based on the first priority configuration instruction, wherein the third priority is higher than the first priority. Reference may be made to the foregoing, and details are not repeated here.
As an embodiment, when the priority is adjusted to the third priority based on the first priority configuration instruction, the priority attribute in the border gateway protocol of the second network element may be configured to the third priority based on the first priority configuration instruction, where the priority attribute is used to indicate the priority when the second network element processes the data. Reference may be made to the foregoing, and details are not repeated here.
As an embodiment, after configuring the priority attribute in the border gateway protocol of the second network element to the third priority based on the first priority configuration instruction, if the third priority configuration instruction is received from the SDN controller, the third priority configuration instruction is sent to the second network element by the SDN controller when the reachable state of the first network element is determined to be reachable, the priority attribute in the border gateway protocol of the second network element is configured to the first priority based on the third priority configuration instruction. Reference may be made to the foregoing, and details are not repeated here.
Based on the same inventive concept, an embodiment of the present application provides a system for configuring a network element, please refer to fig. 7, including an SDN controller, a first network element and a second network element. The system for configuring the network element may further include other network elements, and the configuration process is similar to the first network element and the second network element, which are not described herein. The following description of the system for configuring network elements according to the embodiment of the present application may refer to the foregoing description, and will not be repeated herein.
S701, after a first network element is in an open state, sending a connection establishment request to an SDN controller; and after the second network element is in the open state, sending a connection establishment request to the SDN controller. Wherein, the meta attribute in the BGP protocol in the first network element is configured as a, and the meta attribute in the BGP protocol in the second network element is configured as B. A has a higher priority than B.
S702, the SDN controller establishes network connection with a first network element based on a received designated network protocol indicated by a connection establishment request from the first network element; the SDN controller establishes a network connection with the second network element based on a specified network protocol indicated by the received connection establishment request from the second network element.
S703, the first network element sends the equipment information of the first network element to the SDN controller through the established network connection; and the second network element sends the equipment information of the second network element to the SDN controller through the established network connection. Thus, the SDN controller obtains device information of the first network element and device information of the second network element.
S704, the SDN controller respectively sends the reachable detection instructions to the first network element and the second network element in the process of data processing of the first network element.
S705, the second network element returns corresponding reachable reply information based on the received reachable detection instruction.
S706, updating information representing the reachable state in the equipment information of the first network element into unreachable representation by the SDN controller based on the received reachable reply information; and updating the information representing the reachable state in the equipment information of the second network element to represent reachable.
S707, the SDN controller obtains a second network element associated with the first network element from each network element.
S708, the SDN controller sends a first priority configuration instruction to the second network element.
S709, the second network element adjusts the configured second priority to the third priority based on the received first priority configuration instruction, so as to replace the first network element to perform data processing. For example, the second network element adjusts the meta attribute in the BGP protocol from B to C based on the first priority configuration instruction. C has a higher priority than a.
S710, if the SDN controller determines that the reachable state of the first network element is reachable, the SDN controller respectively sends a second priority configuration instruction and a third priority configuration instruction to the first network element and the second network element.
S711, the first network element adjusts the first priority configured by the first network element to the second priority based on the received second priority configuration instruction, for example, the first network element adjusts the meta attribute in the BGP protocol from a to B based on the second priority configuration instruction; the second network element adjusts the third priority configured by the second network element to the first priority based on the received third priority configuration instruction, e.g., the second network element adjusts the meta attribute in the BGP protocol from C to a based on the third priority configuration instruction.
Based on the same inventive concept, the embodiment of the application provides a device for configuring a network element, which can realize functions corresponding to the method for configuring the network element. Referring to fig. 8, the apparatus includes an acquisition module 801 and a processing module 802, where:
Acquisition module 801: the method comprises the steps of acquiring pre-stored equipment information of each network element; the device information comprises information representing the reachable state of the corresponding network element, information representing the association relation between the corresponding network element and other network elements and information representing the priority of the selected data processing of the corresponding network element;
Processing module 802: the method comprises the steps of acquiring a second network element associated with a first network element from each network element if the reachable state of the first network element is determined to be unreachable based on the acquired equipment information in the data processing process of the first network element; the first network element and the second network element are respectively configured into a first priority and a second priority, and the first priority is higher than the second priority;
The processing module 802 is further configured to: transmitting a first priority configuration instruction to the second network element, so that the second network element adjusts the configured second priority to a third priority based on the received first priority configuration instruction to replace the first network element for data processing; wherein the third priority is higher than the first priority.
In one possible embodiment, the obtaining module 801 is specifically configured to:
for each network element, the following operations are respectively executed:
Receiving a connection establishment request sent by a network element; the connection establishment request is used for requesting to establish network connection of a specified network protocol;
Establishing network connection with the network element based on a specified network protocol indicated by the connection establishment request;
And acquiring the equipment information of the network element through the established network connection.
In a possible embodiment, the device information further comprises information characterizing the network address of the corresponding network element; the processing module 802 is specifically configured to:
Based on the information representing the network address in the equipment information, respectively sending the reachable detection instructions to the network elements by taking the preset time length as a period, so that the network elements respectively return corresponding reachable reply information based on the received reachable detection instructions; the reachability reply information is used for representing the reachability of the corresponding network element;
if the returned reachable reply information is received, updating the information representing the reachable state in the corresponding equipment information based on the received reachable reply information;
And based on the updated equipment information, if the reachable state of the first network element is determined to be unreachable, acquiring a second network element associated with the first network element.
In one possible embodiment, the processing module 802 is specifically configured to:
Based on the obtained equipment information, if the reachable state of the first network element is determined to be unreachable, determining a plurality of alternative network elements with association relation with the first network element;
and selecting the alternative network element with the highest priority as a second network element based on the equipment information of the plurality of alternative network elements.
In a possible embodiment, the first priority configuration instruction is configured to configure a priority attribute in a border gateway protocol of the second network element, the priority attribute being used to indicate a priority with which the second network element is selected for data processing.
In one possible embodiment, the processing module 802 is further configured to:
After sending the first priority configuration instruction to the second network element, if the reachable state of the first network element is determined to be reachable, sending the second priority configuration instruction and the third priority configuration instruction to the first network element and the second network element respectively, so that the first network element adjusts the priority of the first network element to be the second priority based on the received second priority configuration instruction, and the second network element adjusts the priority of the second network element to be the first priority based on the received third priority configuration instruction.
Based on the same inventive concept, the embodiment of the application provides a device for configuring a network element, which can realize functions corresponding to the method for configuring the network element. Referring to fig. 9, the apparatus includes a transceiver module 901 and a processing module 902, where:
Transceiver module 901: the method comprises the steps that after the SDN controller is in an on state, equipment information of a second network element is sent to the SDN controller, so that the SDN controller obtains the equipment information of each network element, and then obtains the second network element associated with the first network element from each network element and sends a first priority configuration instruction to the second network element when the reachable state of the first network element is determined to be unreachable in the process of data processing of the first network element; the device information comprises information representing the reachable state of the corresponding network element, information representing the association relation between the corresponding network element and other network elements and information representing the priority of the selected data processing of the corresponding network element; the first network element and the second network element are respectively configured into a first priority and a second priority, and the first priority is higher than the second priority;
the transceiver module 901 is further configured to: receiving a first priority configuration instruction;
Processing module 902: for adjusting the configured second priority to a third priority based on the first priority configuration instruction, wherein the third priority is higher than the first priority.
In one possible embodiment, the processing module 902 is specifically configured to:
Based on the first priority configuration instruction, configuring a priority attribute in a border gateway protocol of the second network element to be a third priority; the priority attribute is used for indicating the priority of the second network element during data processing.
In one possible embodiment, the transceiver module 901 is further configured to: after configuring the priority attribute in the border gateway protocol of the second network element to be a third priority based on the first priority configuration instruction, receiving a third priority configuration instruction from the SDN controller, wherein the third priority configuration instruction is sent to the second network element when the SDN controller determines that the reachable state of the first network element is reachable;
the processing module 902 is further configured to: and based on the third priority configuration instruction, configuring the priority attribute in the border gateway protocol of the second network element as the first priority.
Referring to fig. 10, the apparatus for configuring a network element may be run on a computer device 1000, and a current version and a historical version of a data storage program and application software corresponding to the data storage program may be installed on the computer device 1000, where the computer device 1000 includes a processor 1080 and a memory 1020. In some embodiments, the computer device 1000 may include a display unit 1040, the display unit 1040 including a display panel 1041 for displaying an interface or the like for interactive operation by a user.
In one possible embodiment, the display panel 1041 may be configured in the form of a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD) or an Organic Light-Emitting Diode (OLED) or the like.
The processor 1080 is configured to read the computer program and then execute a method defined by the computer program, for example, the processor 1080 reads a data storage program or a file, etc., thereby running the data storage program on the computer device 1000 and displaying a corresponding interface on the display unit 1040. Processor 1080 may include one or more general purpose processors and may also include one or more DSPs (DIGITAL SIGNAL processors ) for performing related operations to implement the technical solutions provided by the embodiments of the present application.
Memory 1020 typically includes memory and external storage, which may be Random Access Memory (RAM), read Only Memory (ROM), and CACHE memory (CACHE). The external memory can be a hard disk, an optical disk, a USB disk, a floppy disk, a tape drive, etc. The memory 1020 is used to store computer programs including applications corresponding to the respective clients, etc., and other data, which may include data generated after the operating system or the applications are run, including system data (e.g., configuration parameters of the operating system) and user data. In an embodiment of the application, program instructions are stored in memory 1020 and processor 1080 executes the program instructions in memory 1020 to implement any of the methods discussed in the previous figures.
The above-described display unit 1040 is used for receiving input digital information, character information, or touch operation/noncontact gestures, and generating signal inputs and the like related to user settings and function controls of the computer apparatus 1000. Specifically, in an embodiment of the present application, the display unit 1040 may include a display panel 1041. The display panel 1041, such as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the display panel 1041 or on the display panel 1041 using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program.
In one possible embodiment, the display panel 1041 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a player, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 1080 and can receive commands from the processor 1080 and execute them.
The display panel 1041 may be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the display unit 1040, in some embodiments, the computer device 1000 may also include an input unit 1030, and the input unit 1030 may include an image input device 1031 and other input devices 1032, wherein the other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, etc.
In addition to the above, the computer device 1000 may also include a power supply 1090 for powering other modules, audio circuitry 1060, a near field communication module 1070, and RF circuitry 1010. The computer device 1000 may also include one or more sensors 1050, such as acceleration sensors, light sensors, pressure sensors, and the like. Audio circuitry 1060 includes, inter alia, a speaker 1061 and a microphone 1062, e.g., computer device 1000 can pick up a user's voice via microphone 1062, perform a corresponding operation, etc.
The number of processors 1080 may be one or more, and the processors 1080 and memory 1020 may be coupled or may be relatively independent.
As an example, the processor 1080 in fig. 10 may be used to implement the functions of the acquisition module 801 and the processing module 802 in fig. 8, or the functions of the transceiver module 901 and the processing module 902 in fig. 9.
As an example, processor 1080 in fig. 10 may be used to implement the functions corresponding to the servers or terminal devices discussed above.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or optical disk, or the like, which can store program codes.
Or the above-described integrated units of the invention may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in essence or in a part contributing to the prior art in the form of a software product, for example, by a computer program product stored in a storage medium, comprising several instructions for causing a computer device to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
Claims (14)
1. A method of configuring a network element, applied to a software defined network, SDN, controller, comprising:
Acquiring pre-stored equipment information of each network element; the device information comprises information representing the reachable state of the corresponding network element, information representing the association relation between the corresponding network element and other network elements and information representing the priority of the selected data processing of the corresponding network element;
In the process of data processing of a first network element, based on the obtained equipment information, if the reachable state of the first network element is determined to be unreachable, acquiring a second network element associated with the first network element from the network elements; wherein, the first network element and the second network element are respectively configured as a first priority and a second priority, and the first priority is higher than the second priority;
Sending a first priority configuration instruction to the second network element, so that the second network element adjusts the configured second priority to a third priority based on the received first priority configuration instruction to replace the first network element for data processing; wherein the third priority is higher than the first priority.
2. The method of claim 1, wherein the obtaining pre-stored device information for each network element comprises:
for each network element, the following operations are respectively executed:
receiving a connection establishment request sent by a network element; the connection establishment request is used for requesting to establish network connection of a specified network protocol;
establishing a network connection with the network element based on the specified network protocol indicated by the connection establishment request;
And acquiring the equipment information of the network element through the established network connection.
3. The method according to claim 1, wherein the device information further comprises information characterizing a network address of the respective network element; and if the reachable state of the first network element is determined to be unreachable based on the obtained device information, acquiring a second network element associated with the first network element from the network elements, including:
Based on the information representing the network address in the equipment information, respectively sending an reachable detection instruction to each network element with a preset time period as a period, so that each network element returns corresponding reachable reply information based on the received reachable detection instruction; the reachability reply information is used for representing the reachability of the corresponding network element;
if the returned reachable reply information is received, updating the information representing the reachable state in the corresponding equipment information based on the received reachable reply information;
And based on the updated equipment information, if the reachable state of the first network element is determined to be unreachable, acquiring a second network element associated with the first network element.
4. The method according to claim 1, wherein the obtaining, based on the obtained device information, the second network element associated with the first network element from the network elements if it is determined that the reachable state of the first network element is not reachable, includes:
based on the obtained equipment information, if the reachable state of the first network element is determined to be unreachable, determining a plurality of alternative network elements with association relation with the first network element;
And selecting the alternative network element with the highest priority as the second network element based on the equipment information of the plurality of alternative network elements.
5. The method according to any of claims 1-4, wherein the first priority configuration instruction is configured to configure a priority attribute in a border gateway protocol of the second network element, the priority attribute being used to indicate a priority with which the second network element is selected for data processing.
6. The method according to any one of claims 1-4, further comprising, after sending a first priority configuration instruction to the second network element:
And if the reachable state of the first network element is determined to be reachable, respectively sending a second priority configuration instruction and a third priority configuration instruction to the first network element and the second network element, so that the first network element adjusts the priority of the first network element to be the second priority based on the received second priority configuration instruction, and the second network element adjusts the priority of the second network element to be the first priority based on the received third priority configuration instruction.
7. A method of configuring a network element, characterized by being applied to a second network element, comprising:
After the SDN controller is in an on state, sending the equipment information of the second network element to the SDN controller, so that the SDN controller obtains the equipment information of each network element, and then obtains the second network element associated with the first network element from each network element and sends a first priority configuration instruction to the second network element if the reachable state of the first network element is determined to be unreachable in the process of carrying out data processing on the first network element; the device information comprises information representing the reachable state of the corresponding network element, information representing the association relation between the corresponding network element and other network elements and information representing the priority of the selected data processing of the corresponding network element; the first network element and the second network element are respectively configured to be a first priority and a second priority, and the first priority is higher than the second priority;
receiving the first priority configuration instruction;
And adjusting the configured second priority to a third priority based on the first priority configuration instruction, wherein the third priority is higher than the first priority.
8. The method of claim 7, wherein the adjusting the priority to a third priority based on the first priority configuration instruction comprises:
configuring a priority attribute in a border gateway protocol of the second network element to be a third priority based on the first priority configuration instruction; the priority attribute is used for indicating the priority of the second network element during data processing.
9. The method of claim 7, further comprising, after said configuring a priority attribute in a border gateway protocol of said second network element to a third priority based on said first priority configuration instruction:
Receiving a third priority configuration instruction from the SDN controller, the third priority configuration instruction being sent by the SDN controller to the second network element when determining that the reachable state of the first network element is reachable;
and configuring the priority attribute in the border gateway protocol of the second network element as a first priority based on the third priority configuration instruction.
10. An apparatus for configuring a network element, comprising:
The acquisition module is used for: the method comprises the steps of acquiring pre-stored equipment information of each network element; the device information comprises information representing the reachable state of the corresponding network element, information representing the association relation between the corresponding network element and other network elements and information representing the priority of the selected data processing of the corresponding network element;
The processing module is used for: the method comprises the steps of acquiring a second network element associated with a first network element from each network element if the reachable state of the first network element is determined to be unreachable based on the acquired equipment information in the process of data processing of the first network element; wherein, the first network element and the second network element are respectively configured as a first priority and a second priority, and the first priority is higher than the second priority;
The processing module is further configured to: sending a first priority configuration instruction to the second network element, so that the second network element adjusts the configured second priority to a third priority based on the received first priority configuration instruction to replace the first network element for data processing; wherein the third priority is higher than the first priority.
11. An apparatus for configuring a network element, comprising:
And a transceiver module: the method comprises the steps that after the SDN controller is in an on state, the equipment information of the second network element is sent to the SDN controller, so that the SDN controller obtains the equipment information of each network element, and then obtains the second network element associated with the first network element from each network element and sends a first priority configuration instruction to the second network element when the reachable state of the first network element is determined to be unreachable in the process of data processing of the first network element; the device information comprises information representing the reachable state of the corresponding network element, information representing the association relation between the corresponding network element and other network elements and information representing the priority of the selected data processing of the corresponding network element; the first network element and the second network element are respectively configured to be a first priority and a second priority, and the first priority is higher than the second priority;
the transceiver module is further configured to: receiving the first priority configuration instruction;
The processing module is used for: for adjusting the second priority configured to a third priority based on the first priority configuration instruction, wherein the third priority is higher than the first priority.
12. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 9.
13. A computer device, comprising:
A memory for storing program instructions;
a processor for invoking program instructions stored in the memory and for performing the method according to any of claims 1-9 in accordance with the obtained program instructions.
14.A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211631029.0A CN118264549A (en) | 2022-12-19 | 2022-12-19 | Method, device, equipment and storage medium for configuring network element |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211631029.0A CN118264549A (en) | 2022-12-19 | 2022-12-19 | Method, device, equipment and storage medium for configuring network element |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118264549A true CN118264549A (en) | 2024-06-28 |
Family
ID=91611615
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211631029.0A Pending CN118264549A (en) | 2022-12-19 | 2022-12-19 | Method, device, equipment and storage medium for configuring network element |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118264549A (en) |
-
2022
- 2022-12-19 CN CN202211631029.0A patent/CN118264549A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220377045A1 (en) | Network virtualization of containers in computing systems | |
US10644952B2 (en) | VNF failover method and apparatus | |
US20190028538A1 (en) | Method, apparatus, and system for controlling service traffic between data centers | |
US11422843B2 (en) | Virtual machine migration method and apparatus having automatic user registration at a destination virtual machine | |
CN113196237A (en) | Container migration in a computing system | |
US20150326451A1 (en) | Network-as-a-service architecture | |
US20220100550A1 (en) | Accelerator Loading Method, System, and Apparatus | |
US10884880B2 (en) | Method for transmitting request message and apparatus | |
US10223219B2 (en) | Managing network failure using back-up networks | |
CN111345008A (en) | Mobile edge host service notification method and device | |
US20150277958A1 (en) | Management device, information processing system, and management program | |
US11416267B2 (en) | Dynamic hardware accelerator selection and loading based on acceleration requirements | |
US11095532B2 (en) | Configuration and/or deployment of a service based on location information and network performance indicators of network devices that are to be used to support the service | |
CN114124697A (en) | Network switching method, network switching device and storage medium | |
CN111090783B (en) | Recommendation method, device and system, graph embedded wandering method and electronic equipment | |
CN118264549A (en) | Method, device, equipment and storage medium for configuring network element | |
CN108234215B (en) | Gateway creating method and device, computer equipment and storage medium | |
CN106803804B (en) | Method and device for transmitting message | |
CN110874256B (en) | Computing cluster updating system, method and device | |
US20230195700A1 (en) | Autonomous database management system | |
CN114422360A (en) | Switch data updating method and device, electronic equipment and medium | |
CN118844084A (en) | System and method for O-CLOUD node reconfiguration in a telecommunications system | |
CN118175192A (en) | Control method, device, equipment and storage medium for virtual machine thermal migration | |
CN118476274A (en) | System and method for turning off O-CLOUD nodes during idle time to save power | |
CN115756861A (en) | Distributed service processing method, device, electronic equipment and storage medium |
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 |