CN113660131B - Virtual network function unit switching method, device, controller and storage medium - Google Patents

Virtual network function unit switching method, device, controller and storage medium Download PDF

Info

Publication number
CN113660131B
CN113660131B CN202111207237.3A CN202111207237A CN113660131B CN 113660131 B CN113660131 B CN 113660131B CN 202111207237 A CN202111207237 A CN 202111207237A CN 113660131 B CN113660131 B CN 113660131B
Authority
CN
China
Prior art keywords
network function
virtual network
target
unit
function unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111207237.3A
Other languages
Chinese (zh)
Other versions
CN113660131A (en
Inventor
汪昭银
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Greenet Information Service Co Ltd
Original Assignee
Wuhan Greenet Information Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Greenet Information Service Co Ltd filed Critical Wuhan Greenet Information Service Co Ltd
Priority to CN202111207237.3A priority Critical patent/CN113660131B/en
Publication of CN113660131A publication Critical patent/CN113660131A/en
Application granted granted Critical
Publication of CN113660131B publication Critical patent/CN113660131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method, a device, a controller and a storage medium for switching virtual network functional units, wherein the method comprises the following steps: acquiring network function switching information, and determining a plurality of target backup units for receiving configuration information of at least one virtual network function unit according to the network function switching information; acquiring fault information of a plurality of virtual network functional units, and judging whether the virtual network functional units have faults or not according to the fault information; if a first target virtual network function unit with a fault exists in the plurality of virtual network function units, acquiring configuration information of the first target virtual network function unit; and sending the configuration information of the first target virtual network function unit to at least one target backup unit. According to the method and the device, the target backup unit is determined according to the network function switching information, and the configuration information in the virtual network function unit with the fault is sent to the target backup unit, so that the situation that the corresponding user cannot obtain corresponding feedback due to the fault is avoided, and the smoothness of the user in connection with the internet is improved.

Description

Virtual network function unit switching method, device, controller and storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a method and a server for switching virtual network functional units.
Background
The cloud gateway system is edge cloud equipment for accessing a family or enterprise user to the Internet, has the flexibility exceeding a physical gateway through intelligent flow identification, scheduling and management, and provides an entry point for a novel gateway service and a government-enterprise cloud network fusion service of a future dynamic upgrading function combination.
When the VNF fails, the VNF cannot perform corresponding operation on user traffic managed by the VNF, so that the user cannot obtain corresponding feedback, and cannot ensure that the user is continuously and smoothly connected to the internet.
Therefore, the existing cloud gateway system has the problem that the smoothness of user connection to the internet is low, and improvement is urgently needed.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a controller, and a storage medium for switching a virtual network function unit, so as to solve the technical problem that the smoothness of a user connection internet is low because a VNF cannot perform corresponding operations on user traffic managed by the VNF when the VNF fails.
The embodiment of the invention provides a method for switching virtual network functional units, which is applied to a cloud gateway system, wherein the cloud gateway system comprises management resources and a cloud gateway, the cloud gateway comprises a plurality of servers, at least one server comprises a plurality of virtual network functional units, and the method comprises the following steps:
acquiring network function switching information, and determining a plurality of target backup units for receiving configuration information of at least one virtual network function unit according to the network function switching information;
acquiring fault information of a plurality of virtual network function units, and judging whether the plurality of virtual network function units have faults or not according to the fault information of the plurality of virtual network function units;
if a first target virtual network function unit with a fault exists in the plurality of virtual network function units, acquiring configuration information of the first target virtual network function unit;
and sending the configuration information of the first target virtual network function unit to at least one target backup unit.
In an embodiment, the step of determining a plurality of target backup units for receiving configuration information of at least one virtual network function unit according to the network function switching information includes:
judging whether the network function switching information is first network function switching information or not;
if the network function switching information is the first network function switching information, setting a plurality of first backup units in at least one server;
and selecting a plurality of first backup units from the plurality of first backup units as a plurality of target backup units.
In an embodiment, after the step of sending the configuration information of the first target virtual network function unit to at least one target backup unit, the method includes:
repairing the first target virtual network function unit and judging whether the first target virtual network function unit is successfully repaired;
and if the first target virtual network function unit is successfully repaired, sending the configuration information sent to the target backup unit to a second target virtual network function unit which is successfully repaired, and deleting the configuration information in the target backup unit.
In an embodiment, the step of determining a plurality of target backup units for receiving configuration information of at least one virtual network function unit according to the network function switching information includes:
judging whether the network function switching information is second network function switching information or not;
if the network function switching information is the second network function switching information, acquiring state information, and determining a plurality of idle third target virtual network function units in the plurality of virtual network function units as a plurality of second backup units according to the state information;
and selecting a plurality of second backup units from the plurality of second backup units as a plurality of target backup units.
In an embodiment, after the step of sending the configuration information of the first target virtual network function unit to at least one target backup unit, the method includes:
repairing the first target virtual network function unit and judging whether the first target virtual network function unit is successfully repaired;
and if the first target virtual network function unit is successfully repaired, setting a fourth virtual network function unit which is successfully repaired as a third virtual network function unit.
In an embodiment, the target backup unit and the first target virtual network function unit are located in the same or different server.
In an embodiment, the plurality of virtual network function units include at least one first type virtual network function unit and at least one second type virtual network function unit, each first type virtual network function unit is associated with at least one second type virtual network function unit, the plurality of target backup units include at least one first type target backup unit and at least one second type target backup unit, each first type target backup unit is associated with at least one second type target backup unit, and at least one second type target backup unit is associated with one first type target backup unit or one first type virtual network function unit;
wherein the step of sending the configuration information of the first target virtual network function unit to at least one target backup unit includes:
judging whether the first target virtual network function unit is a first type of virtual network function unit;
if the first target virtual network function unit is the first type of virtual network function unit, sending first configuration information of the first target virtual network function unit to the first type of target backup unit, and sending second configuration information of at least one second type of virtual network function unit associated with the first target virtual network function unit to at least one second type of target backup unit associated with the first type of target backup unit;
and if the first target virtual network function unit is the second type of virtual network function unit, sending second configuration information of the first target virtual network function unit to at least one second type of target backup unit associated to the first type of virtual network function unit.
The embodiment of the invention provides a virtual network function unit switching device, which is applied to a cloud gateway system, wherein the cloud gateway system comprises a management resource and a cloud gateway, the cloud gateway comprises a plurality of servers, at least one server comprises a plurality of virtual network function units, and the virtual network function unit switching device comprises:
the first acquisition module is used for acquiring network function switching information and determining a plurality of target backup units for receiving configuration information of at least one virtual network function unit according to the network function switching information;
the second acquisition module is used for acquiring the fault information of the virtual network function units and judging whether the virtual network function units have faults or not according to the fault information of the virtual network function units;
a third obtaining module, configured to obtain configuration information of a first target virtual network function unit that has a fault, when the first target virtual network function unit exists among the plurality of virtual network function units;
and the sending module is used for sending the configuration information of the first target virtual network function unit to at least one target backup unit.
Embodiments of the invention provide a controller for executing a number of instructions stored in a memory to implement a method as described in any one of the above.
Embodiments of the present invention provide a storage medium having stored therein a number of instructions for execution by a controller to implement a method as described in any one of the above.
The invention provides a method, a device, a controller and a storage medium for switching virtual network functional units, which are applied to a cloud gateway system, wherein the cloud gateway system comprises management resources and a cloud gateway, the cloud gateway comprises a plurality of servers, at least one server comprises a plurality of virtual network functional units, and the method comprises the following steps: acquiring network function switching information, and determining a plurality of target backup units for receiving configuration information of at least one virtual network function unit according to the network function switching information; acquiring fault information of a plurality of virtual network function units, and judging whether the plurality of virtual network function units have faults or not according to the fault information of the plurality of virtual network function units; if a first target virtual network function unit with a fault exists in the plurality of virtual network function units, acquiring configuration information of the first target virtual network function unit; and sending the configuration information of the first target virtual network function unit to at least one target backup unit. The target backup unit is determined by the network function switching information and can receive the configuration information of the virtual network function unit with the fault to take over the work of the virtual network function unit with the fault, so that the problem that the corresponding user cannot obtain corresponding feedback due to the fact that the virtual network function unit cannot perform corresponding operation on the user traffic managed by the virtual network function unit when the virtual network function unit is in fault is avoided, and the smoothness of the user in connection with the internet is improved.
Drawings
The invention is further illustrated by the following figures. It should be noted that the drawings in the following description are only for illustrating some embodiments of the invention, and that other drawings may be derived from those drawings by a person skilled in the art without inventive effort.
Fig. 1 is a schematic view of an application scenario of a cloud gateway system according to an embodiment of the present invention;
fig. 2 is a schematic view of a first scenario in which the method for switching a virtual network function unit according to the embodiment of the present invention is applied to a cloud gateway system;
fig. 3 is a schematic view of a second scenario in which the method for switching a virtual network function unit according to the embodiment of the present invention is applied to a cloud gateway system;
fig. 4 is a schematic diagram of a third scenario in which the method for switching a virtual network function unit according to the embodiment of the present invention is applied to a cloud gateway system;
fig. 5 is a schematic diagram of a fourth scenario in which the method for switching a virtual network function unit according to the embodiment of the present invention is applied to a cloud gateway system;
fig. 6 is a schematic view of a fifth scenario in which the method for switching a virtual network function unit according to the embodiment of the present invention is applied to a cloud gateway system;
fig. 7 is a schematic diagram of a sixth scenario in which the method for switching a virtual network function unit according to the embodiment of the present invention is applied to a cloud gateway system;
fig. 8 is a flowchart illustrating a first method for switching a virtual network function unit according to an embodiment of the present invention;
fig. 9 is a flowchart illustrating a second method for switching a virtual network function unit according to an embodiment of the present invention;
fig. 10 is a flowchart illustrating a third method for virtual network function unit switching according to an embodiment of the present invention;
fig. 11 is a flowchart illustrating a fourth method for switching a virtual network function unit according to an embodiment of the present invention;
fig. 12 is a flowchart illustrating a fifth method for virtual network function unit switching according to an embodiment of the present invention;
fig. 13 is a flowchart illustrating a sixth method for switching a virtual network function unit according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of a virtual network function unit switching apparatus according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of a controller and a memory according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first", "second", and the like in the present invention are used for distinguishing different objects, not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the listed steps or modules but may alternatively include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The execution main body of the method for switching the virtual network function unit provided by the embodiment of the present invention may be the controller provided by the embodiment of the present invention, or an electronic device integrated with the controller, and the controller may be implemented in a hardware or software manner.
The following first presents some basic and proprietary concepts involved in embodiments of the present invention.
Cloud gateway system: as shown in fig. 1, the Data Center located in an area DC (Data Center) is composed of management resources (EMS/service orchestrator/controller) and a cloud gateway (vswitch/vcpe), where the EMS is a Network element management system, the vswitch is a virtual switch, the vcpe is a virtual client, the vswitch and the vcpe may be collectively referred to as VNF, and the VNF is a virtual Network Function unit in an NFV (Network Function Virtualization) architecture, and may be understood as a process of virtualizing functions of an existing physical Network element in a telecommunication service Network, that is, the process is deployed on virtual resources provided by the NFV in a form of software modules, so that a virtualized EMS of a Network Function configures and manages functions of the VNF. Specifically, the service orchestrator and the controller realize flow scheduling, alarm management and fault switching, the EMS realizes configuration management, and the cloud gateway realizes flow identification, flow forwarding and intelligent management and control. The cloud gateway system is deployed in an edge cloud, and combines with an edge SDN (Software Defined Network) capability to improve the intelligent connection capability of an operator and provide a foundation for reaching an endpoint, a computing cloud Software architecture is used based on a general X86 server, flexibility exceeding a physical gateway is achieved through intelligent flow identification, scheduling and management, and an access point is provided for a novel gateway service and a government-enterprise cloud Network fusion service of a future dynamic upgrading function combination.
A docker container: an open source application container engine, which enables developers to pack their applications and dependencies in a uniform manner into a portable container and then distribute the container to any server (including popular Linux machines and windows machines) installed with a docker engine, and also enables virtualization. The containers are fully sandboxed without any interface between each other (like apps of iphones). With little performance overhead, they can easily run in machines and data centers, they are not dependent on any language, framework, including systems.
Flow rate: the network refers to the popularity access amount of opening a website address within a certain time or the popular meaning of mobile data of the mobile phone.
Message: the data units exchanged and transmitted in the network, i.e. the data blocks that the station has to send at once. The message contains complete data information to be sent, and the message is very inconsistent in length, unlimited in length and variable. When a station wants to send a message, it attaches a destination address to the message, and the network node sends the message to the next node according to the destination address information on the message, and forwards the message to the destination node one by one. After each node receives the whole message and checks it, it temporarily stores the message, then uses the route information to find out the address of the next node, and then transmits the whole message to the next node.
Tunneling: an encapsulation technique uses a network transmission protocol to encapsulate data packets generated by other protocols in its own data packet, which is then transmitted in the network. In practice a tunnel can be seen as a virtual point-to-point connection. In short, the original data is encapsulated at the site A, and after the original data arrives at the site B, the encapsulation is removed, and the original data is restored, so that a communication tunnel from the site A to the site B is formed. Tunneling refers to the overall process including encapsulation, transport, and decapsulation. Tunneling is achieved through a tunneling protocol that specifies the establishment, maintenance, and deletion rules of a tunnel, as well as how to encapsulate raw data in a tunnel for transmission.
The embodiment of the invention provides a method, a device, a controller and a storage medium for switching virtual network function units. The details will be described below separately.
Referring to fig. 2 to 7, fig. 2 to 7 are schematic views of a scenario in which the method for switching virtual network functional units according to the embodiment of the present invention is applied to a cloud gateway system, and in combination with the above descriptions, as shown in fig. 1, the cloud gateway system includes a management resource and a cloud gateway, the cloud gateway includes a plurality of servers, and as shown in fig. 2, at least one of the servers 100 includes a plurality of virtual network functional units 10.
In the embodiment of the present invention, as shown in fig. 2 to fig. 4, the virtual network function unit 10 may be a virtual switch 101 or a virtual client 102, each virtual switch 101 may be associated with at least one virtual client 102, and the association relationship between the two is specified by a deployment configuration file, that is, the server 100 includes at least one virtual switch 101 and a virtual client 102 associated with the virtual switch 101. Further, the server 100 may further include a network driver component 20 and a port 30, where the network driver component 20 may provide a simple, convenient, complete, and fast packet processing solution for a data plane application to process data packets efficiently, the port 30 may be, but is not limited to, a Trunk type port, as shown in fig. 2 to 4, and when the port 30 is a Trunk type port, each port 30 may include a plurality of sub-ports 301 to allow a plurality of packets to pass through, and also to receive and send a plurality of packets. Specifically, as shown in fig. 2 to fig. 4, a plurality of the virtual network functional units 10 and the network driver components 20 may exist in a docker container in the form of a program and operate in the docker container to implement corresponding functions, and the server 100 may employ a centos8.1 system and a NUMA architecture to create the docker container, and deploy the plurality of the virtual network functional units 10 and the network driver components 20 therein to perform corresponding processing on a packet flowing through the port 30.
As shown in fig. 1, the aggregation switch is connected to a user terminal, a broadband access server, and a cloud Point Of Presence (POP) network, the broadband access server is further connected to a website, and the regional DC and the POP network are connected through a management network. Specifically, as shown in fig. 1 to fig. 7, in the process of establishing communication, the following basic configuration needs to be performed: (1) a VXLAN tunnel is established between the aggregation switch and the virtual switch 101; (2) a VNI label is packaged on a message sent by a user terminal; (3) the virtual switch 101 is configured with VNI scheduling rules. The establishment of the VXLAN tunnel requires that VTEP addresses on two devices can be regarded as a tunnel, the establishment of the static VXLAN tunnel is completely completed by manually configuring VNI, VTEP IP addresses and a head end copy list of a local end and a remote end, the VXLAN tunnel can be successfully established as long as the VTEP IP at the two ends of the VXLAN tunnel is reachable by three layers of routes, and VXLAN messages formed by original Ethernet messages encapsulated by VXLAN can be transmitted and forwarded in the VXLAN tunnel after the tunnel is successfully established; the VTEP is equipment directly connected with a terminal and is responsible for the encapsulation and the decapsulation of VXLAN of an original Ethernet message, a source IP address in the VXLAN message is a VTEP address of the node, a destination IP address in the VXLAN message is a VTEP address of an opposite node, and a pair of VTEP addresses corresponds to a VXLAN tunnel; the VNI is a VXLAN network identifier and is used for distinguishing VXLAN segments, virtual machines of different VXLAN segments cannot directly communicate with each other in two layers, one VNI represents one tenant, even if a plurality of user terminals belong to the same VNI, the VNI also represents one tenant, the VNI is divided into two-layer VNI and three-layer VNI, the two-layer VNI is a common VNI and is mapped to a broadcast domain BD, the VXLAN messages are forwarded from the same subnet, and the three-layer VNI is associated with VPN instances and is used for forwarding the VXLAN messages across subnets.
Specifically, as shown in fig. 1 to 4, a communication process between the user terminal and the website may include an uplink traffic forwarding process and a downlink traffic forwarding process, where the VNI scheduling rule includes a LAN VNI scheduling rule and a WAN VNI scheduling rule. The uplink flow forwarding process comprises the following steps: (1) the aggregation switch receives a first flow sent by a user terminal, and encapsulates information such as a LAN VNI label and the like on the first flow to form a first VXLAN message; (2) the aggregation switch sends the first VXLAN message to the virtual switch 101 through the VXLAN tunnel; (3) the virtual switch 101 decapsulates the LAN VNI label and the first traffic from the first VXLAN packet, and sends the traffic to the corresponding virtual client 102 according to the LAN VNI scheduling rule; (4) after the virtual client 102 executes the traffic identification, the traffic intelligent management and the traffic control, the generated second traffic and the WAN VNI tag obtained according to the LAN VNI tag and the WAN VNI scheduling rule are returned to the virtual switch 101; (5) the virtual switch 101 packages the second traffic into a second VXLAN message according to the information such as the WAN VNI tag, and sends the second VXLAN message to the aggregation switch through the VXLAN tunnel according to the WAN VNI tag and the WAN VNI scheduling rule; (6) the aggregation switch decapsulates the second traffic from the second VXLAN message and then sends the second traffic to the broadband access server; (7) and the website receives the second flow sent by the broadband access server and generates a third flow. Similarly, the downlink traffic forwarding process includes the following steps: (1) the broadband access server receives third flow sent by the website; (2) the aggregation switch receives a third flow sent by the broadband access server, and encapsulates information such as LAN VNI labels and the like on the third flow to form a third VXLAN message; (3) the convergence switch sends the third VXLAN message to the virtual switch 101 through the VXLAN tunnel; (4) the virtual switch 101 decapsulates the LAN VNI label and the third flow from the third VXLAN packet, and sends the third flow to the corresponding virtual client 102 according to the LAN VNI scheduling rule; (5) after the virtual client 102 performs traffic identification, traffic intelligent management, and traffic control, the fourth traffic and the WAN VNI tag obtained according to the LAN VNI tag and the WAN VNI scheduling rule are returned to the virtual switch 101; (6) packaging the fourth flow into a fourth VXLAN message according to information such as the WAN VNI label and the like, and sending the fourth VXLAN message to the aggregation switch through the VXLAN tunnel according to the WAN VNI label and the WAN VNI scheduling rule; (6) and after the aggregation switch decapsulates the fourth traffic from the fourth VXLAN message, the aggregation switch sends the fourth traffic to the user terminal. The virtual client 102 may have a VNI conversion table pre-stored therein, and each LAN VNI in the VNI conversion table may correspond to one WAN VNI.
Further, as shown in fig. 1, the aggregation switch and the plurality of servers may be connected to the plurality of servers through at least one first switch and a plurality of second switches connected to at least one first switch, specifically, at least one first switch, a plurality of second switches and a plurality of servers may be formed as a cloud POP in a leaf-and-spine network architecture, that is, a full-mesh connection is formed between the first switch and the second switch, that is, each first switch may be connected to all the second switches, and each second switch may be connected to all the servers, it can be understood that the cloud POP in this embodiment has advantages of high bandwidth utilization rate, low requirement for a single switch, and the like, and the number of the first switch, the second switch and the servers is not limited herein, according to the analysis, the three components can be in a trend of increasing in sequence; of course, the cloud network POP may also appear as other architectures. Further, as shown in fig. 1, in conjunction with the above discussion, the regional DC may pass through a management network connected to the cloud POP to implement operations such as traffic scheduling, alarm management, failover, and configuration management for the server. Further, as shown in fig. 2 to 4, when the port 30 is a Trunk type port, the port 30 in the server 100 may connect the virtual switch 101 in the server 100 and the corresponding second switch in the cloud network POP. It can be understood that, in the cloud gateway system, the cloud gateway can perform operations such as traffic identification, traffic forwarding, intelligent traffic management and control on traffic sent by the user terminal under the control of management resources, so that the load of a website on traffic processing can be reduced, and the overall efficiency of traffic processing is improved.
In the embodiment of the present invention, the user terminal may be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the terminal may be a desktop, a laptop, a network server, a Personal Digital Assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, an embedded device, and the like, and the embodiment does not limit the type of the terminal. Those skilled in the art can understand that the application environment shown in fig. 1 is only one application scenario related to the present invention, and does not constitute a limitation on the application scenario of the present invention, and other application environments may further include more cloud networks POP, area DCs, user terminals, and the like than those shown in fig. 1, and are not limited herein. It should be noted that the scenario diagram of applying the method for switching a virtual network function unit shown in fig. 1 to a cloud gateway system is merely an example, and the scenario diagram of applying the method for switching a virtual network function unit described in the embodiment of the present invention to a cloud gateway system is to illustrate the technical solution of the embodiment of the present invention more clearly, and does not form a limitation on the technical solution provided by the embodiment of the present invention.
An embodiment of the present invention provides a method for switching virtual network function units, which is applied to a cloud gateway system, as shown in fig. 1, where the cloud gateway system includes a management resource and a cloud gateway, the cloud gateway includes a plurality of servers, as shown in fig. 2 to 4, at least one server 100 includes a plurality of virtual network function units 10, and the method includes: acquiring network function switching information, and determining a target backup unit 40 for receiving configuration information of at least one virtual network function unit 10 according to the network function switching information; acquiring fault information of a plurality of virtual network function units 10, and judging whether the plurality of virtual network function units 10 have faults or not according to the fault information of the plurality of virtual network function units 10; if a first target virtual network functional unit with a fault exists in the plurality of virtual network functional units 10, acquiring configuration information of the first target virtual network functional unit; and sending the configuration information of the first target virtual network function unit to the target backup unit 40.
Fig. 8 is a flowchart illustrating an embodiment of a method for switching a virtual network function unit according to an embodiment of the present invention, where the method for switching a virtual network function unit includes, but is not limited to, the following steps.
S1, obtaining the network function switching information, and determining a plurality of target backup units for receiving the configuration information of at least one virtual network function unit according to the network function switching information.
Specifically, as shown in fig. 2 to fig. 4, the virtual network function unit 10 may be a virtual switch 101 or a virtual client 102, each virtual switch 101 may be associated with at least one virtual client 102, for example, each virtual client 102 has a respective client ID, each virtual switch 101 has a respective switch ID, a deployment configuration file defines the associated at least one client ID and at least one switch ID, and after the virtual switch 101 and the virtual client 102 are started, the association relationship between the virtual switch 101 and the virtual client 102 is established according to the definition of the deployment configuration file.
The target backup unit 40 may be an unconfigured virtual device or a physical device in nature. It should be noted that, the target backup unit 40 in this embodiment needs to be determined according to the network function switching information, and is not necessarily a predetermined device, and it can be understood that one of the target backup units 40 in this embodiment may be configured to receive configuration information of at least one of the virtual network function units 10, that is, a software structure of the target backup unit 40 may be a software structure of the virtual network function unit 10.
S2, acquiring failure information of a plurality of virtual network functional units, and determining whether the plurality of virtual network functional units have a failure according to the failure information of the plurality of virtual network functional units.
Wherein, the failure information of each virtual network function unit 10 can characterize whether the virtual network function unit 10 fails. For example, the failure information of each of the virtual network functional units 10 may be represented by 0 and 1, a failure information of 1 may represent that the corresponding virtual network functional unit 10 fails, and a failure information of 0 may represent that the corresponding virtual network functional unit 10 does not fail. Specifically, the failure of the virtual network function unit 10 may include a problem occurring in the virtual network function unit 10, or a problem occurring in software, hardware, a network, or a switch related to the virtual network function unit 10.
S3, if there is a first target virtual network function unit with a failure in the plurality of virtual network function units, acquiring configuration information of the first target virtual network function unit.
Specifically, each virtual network function unit 10 is preset with corresponding configuration information to execute a corresponding function, and as can be seen from the above discussion, the virtual switch 101 as the virtual network function unit 10 may be configured with information such as VNI scheduling rules and IP addresses, and the virtual client 102 as the virtual network function unit 10 may be configured with information such as IP addresses. It can be understood that, since the first target virtual network function unit fails, the configuration information of the first target virtual network function unit needs to be acquired for standby, so as to avoid that the corresponding user terminal cannot acquire the required traffic.
S4, sending the configuration information of the first target virtual network function unit to at least one of the target backup units.
It should be noted that, since the target backup unit 40 receives the configuration information of the first target virtual network function unit here, that is, the target backup unit 40 may be understood as a device that can implement the function of the first target virtual network function unit and can interface to a corresponding user terminal. It can be understood that, in this embodiment, due to the existence of the target backup unit 40, when any one of the virtual network function units 10 fails, the configuration information of the first target virtual network function unit can be received immediately to be docked to the corresponding user terminal, so as to avoid that the corresponding user terminal cannot obtain the required traffic.
In an embodiment, as shown in fig. 9, the step S1 of determining the target backup unit for receiving the configuration information of the at least one virtual network function unit according to the network function switching information may include, but is not limited to, the following steps.
S101, judging whether the network function switching information is first network function switching information.
Specifically, according to the above discussion, the target backup unit 40 needs to be determined according to the network function switching information, and further, the network function switching information in this embodiment may be at least the first network function switching information, that is, the specific content of the network function switching information is determined here, so as to perform corresponding operations to determine the target backup unit 40.
And S102, if the network function switching information is the first network function switching information, setting a plurality of first backup units in at least one server.
The phrase "a plurality of first backup units are provided in at least one of the servers" is to be understood that the plurality of first backup units are preset and fixed in at least one of the servers 100, and are not changed by external factors. The first backup unit may be an unconfigured virtual device or an entity device, and in combination with the above discussion, the software structure of the first backup unit may be the same as that of the virtual network function unit 10, for example, the software structure of the first backup unit may be the same as that of the virtual switch 101 or that of the virtual client 102.
S103, selecting a plurality of first backup units from the plurality of first backup units as the target backup units.
Specifically, as shown in fig. 2 to fig. 7, the plurality of virtual network function units 10 may include at least one first type of virtual network function unit (i.e., virtual switch 101) and at least one second type of virtual network function unit (i.e., virtual client 102), each first type of virtual network function unit (i.e., virtual switch 101) is associated with at least one second type of virtual network function unit (i.e., virtual client 102), the plurality of first backup units 50 includes at least one first sub-backup unit 501 and at least one second sub-backup unit 502, a software structure of the first sub-backup unit 501 and a software structure of the virtual switch 101 may be the same, a software structure of the second sub-backup unit 502 and a software structure of the virtual client 102 may be the same, each first sub-backup unit 501 is associated with at least one second sub-backup unit 502, at least one of the second sub-backup units 502 is associated with one of the first type of virtual network function units (i.e. virtual switch 101) or one of the first sub-backup units 501.
For example, as shown in fig. 2, two virtual switches 101 may be disposed in the server 100, each virtual switch 101 may be associated with three virtual clients 102 and one first backup unit, and the first backup unit may be a second sub-backup unit 502 having the same software structure as that of the virtual client 102; as shown in fig. 3, three virtual switches 101 and one first sub-backup unit 501 having the same software structure as that of the virtual switch 101 may be provided in the server 100, two virtual clients 102 may be associated with each virtual switch 101, and two second sub-backup units 502 having the same software structure as that of the virtual clients 102 may be associated with the first sub-backup unit 501; as shown in fig. 4, six virtual switches 101, two first sub-backup units 501 having the same software structure as that of the virtual switch 101 may be provided in the server 100, and one second sub-backup unit 502 having the same software structure as that of the virtual client 102 may be associated with each first sub-backup unit 501; as shown in fig. 5, two first sub-backup units 501 having the same software structure as that of the virtual switch 101 may be provided in the server 100, and four second sub-backup units 502 having the same software structure as that of the virtual client 102 may be associated with each of the first sub-backup units 501; as shown in fig. 6, four first sub-backup units 501 having the same software structure as that of the virtual switch 101 may be provided in the server 100, and two second sub-backup units 502 having the same software structure as that of the virtual client 102 may be associated with each first sub-backup unit 501; as shown in fig. 7, eight first sub-backup units 501 having the same software structure as that of the virtual switch 101 may be provided in the server 100, and one second sub-backup unit 502 having the same software structure as that of the virtual client 102 may be associated with each first sub-backup unit 501.
In conjunction with the above discussion, since the target backup unit 40 is selected from a plurality of the first backup units 50, that is, the software structure of the target backup unit 40 may also be the same as the software structure of the virtual switch 101 or the software structure of the virtual client 102, that is, the target backup unit 40 may be better configured by the configuration information of the first target virtual network function unit. It should be noted that the backup unit 40 may not have any configuration and carry any user before being configured by the configuration information of the first target virtual network function unit. Further, as can be seen from the above discussion, according to the specific situation of the first target virtual network function unit, the first sub-backup unit 501, the second sub-backup unit 502, or other backup units in the first backup unit 50 may be reasonably selected as the target backup unit 40 to be better configured by the configuration information of the first target virtual network function unit.
In an embodiment, as shown in fig. 2 to fig. 7, the first backup unit 50 and the virtual network function unit 10 are located in the same or different server 100, that is, the server 100 provided with the virtual network function unit 10 in this embodiment may or may not be provided with the first backup unit 50. Specifically, as shown in fig. 2 to 4, when two or more first backup units 50 are provided in the server 100 provided with the virtual network function unit 10, a plurality of first backup units 50 may be selected from the server 100 as a selection range of target backup units corresponding to the failed virtual network function unit 10 in the same server 100; of course, on this basis, when a plurality of first backup units 50 are also provided in the server 100 not provided with the virtual network function unit 10, at least one first backup unit 50 may be selected from the plurality of first backup units 50 as a selection range of target backup units corresponding to the failed virtual network function unit 10 located in a different server 100.
In an embodiment, as shown in fig. 5 to fig. 7, the first backup unit 50 is located in a backup class server 1001, and the virtual network function unit 10 is not included in the backup class server 1001. The number of other servers 100 than the backup class server 1001 may be greater than the number of the backup class servers 1001, for example, the ratio of the two may be 5: 1. specifically, in combination with the above discussion, the backup class server 1001 may include at least one first sub-backup unit 501 and at least one second sub-backup unit 502 associated with the first sub-backup unit 501, and at least one first backup unit 50 may be selected from the backup class server 1001 as a selection range of a target backup unit 40 corresponding to a failed virtual network function unit 10 located in another server 100 that is not the backup class server 1001.
In an embodiment, as shown in fig. 10, after the step S4, the following steps may be included, but are not limited to.
S501, repairing the first target virtual network function unit and judging whether the first target virtual network function unit is successfully repaired.
Wherein the first target virtual network function unit can be repaired according to the failure information of the first target virtual network function unit. Specifically, as can be known from the above discussion, on the basis that "a failure information of 1 may indicate that the corresponding virtual network functional unit 10 fails, and a failure information of 0 may indicate that the corresponding virtual network functional unit 10 does not fail", the failure information may indicate that the failure of the virtual network functional unit 10 may include that the virtual network functional unit 10 has a problem, or that software, hardware, a network, or a switch related to the virtual network functional unit has a problem, and the first target virtual network functional unit may be repaired based on the problem. Further, the fault information of the repaired first target virtual network function unit may be obtained to further determine whether the first target virtual network function unit is successfully repaired, and similarly, the fault information of the repaired first target virtual network function unit may be defined in the manner described above.
S502, if the first target virtual network function unit is successfully repaired, the configuration information sent to the target backup unit is sent to a second target virtual network function unit which is successfully repaired, and the configuration information in the target backup unit is deleted.
In combination with the above discussion, for example, that the repaired first target virtual network functional unit has a fault information of 0 may indicate that the first target virtual network functional unit is successfully repaired, otherwise, it may indicate that the first target virtual network functional unit is not successfully repaired. It should be noted that in this embodiment, the configuration information sent to the target backup unit is sent to the second target virtual network function unit that is successfully repaired, and the configuration information in the target backup unit is deleted, that is, the target backup unit can be restored to a state without any configuration and carrying any user at this time, and meanwhile, since the second target virtual network function unit is successfully repaired by the first target virtual network function unit that has failed, the servers where the second target virtual network function unit and the target virtual network function unit are located are identical, and the information such as the addresses of the second target virtual network function unit and the target virtual network function unit is also identical. It can be understood that, in this embodiment, after the first target virtual network function unit is successfully repaired, it may be ensured that information such as a server address docked to the user terminal and information such as an address of a corresponding virtual network function unit are consistent, and it may be ensured that addresses of devices set as a plurality of backup units are consistent, which is convenient for tracking traffic sent by the user terminal and for accessing the backup unit quickly through the address of the backup unit.
In an embodiment, as shown in fig. 11, after the step of determining the target backup unit for receiving the configuration information of the at least one virtual network function unit according to the network function switching information in the step S1, the following steps may be included, but are not limited to.
And S104, judging whether the network function switching information is second network function switching information.
Similarly, according to the above discussion, the target backup unit needs to be determined according to the network function switching information, and further, the network function switching information in this embodiment may be at least the second network function switching information, that is, the specific content of the network function switching information is determined here, so as to perform corresponding operation to determine the target backup unit.
And S105, if the network function switching information is the second network function switching information, acquiring state information of the plurality of virtual network function units, and determining a plurality of idle third target virtual network function units in the plurality of virtual network function units as a plurality of second backup units according to the state information.
The state information of each virtual network function unit may characterize whether the virtual network function unit is in an idle state, that is, whether there is any configuration and any user is carried. For example, the state information of each of the virtual network function units may be represented by 0 and 1, where a state information of 1 may represent that the corresponding virtual network function unit is in an idle state, and a fault information of 0 may represent that the corresponding virtual network function unit is in a non-idle state, that is, there are configuration and bearer users. It can be understood that, in this embodiment, the plurality of second backup units are changed in real time according to the state information of the plurality of virtual network functional units, that is, the plurality of second backup units are virtual network functional units in an idle state.
S106, selecting a plurality of second backup units from the plurality of second backup units as a plurality of target backup units.
Specifically, in combination with the above discussion, the essence of the target backup unit in this embodiment is a virtual network function unit in an idle state, that is, the target backup unit may be better configured by the configuration information of the first target virtual network function unit, and it should be noted that the target backup unit is in an idle state before being configured by the configuration information of the first target virtual network function unit, that is, there is no configuration and carries any user. It can be understood that, in this embodiment, the virtual switch or the virtual client in the idle state is selected as a selection range of the plurality of target backup units according to the specific situation of the first target virtual network function unit, so as to be better configured by the configuration information of the first target virtual network function unit.
In an embodiment, as shown in fig. 12, after the step S4, the following steps may be included, but are not limited to.
S601, repairing the first target virtual network function unit, and judging whether the first target virtual network function unit is successfully repaired.
Specifically, reference may be made to the above description related to step S501.
S602, if the first target virtual network function unit is successfully repaired, setting a fourth virtual network function unit that is successfully repaired as a third virtual network function unit.
Specifically, similarly, a failure information of the repaired first target virtual network function unit of 0 may indicate that the first target virtual network function unit is successfully repaired, or else may indicate that the first target virtual network function unit is not successfully repaired. It should be noted that, the fourth virtual network functional unit that is successfully repaired has no configuration and carries any user, that is, is in an idle state, and is satisfied as a "virtual network functional unit in an idle state", that is, may be set as the third virtual network functional unit. It can be understood that, in this embodiment, a fourth virtual network function unit that is successfully repaired is set as a third virtual network function unit, that is, the fourth virtual network function unit may be selected as the target backup unit to receive the configuration information of the failed virtual network function unit, and meanwhile, the configuration information in the first target virtual network function unit may be retained in the corresponding target backup unit for subsequent operations; compared with the step S502, in this embodiment, the configuration information in the first target virtual network function unit is prevented from being transferred to the fourth target virtual network function unit that is successfully repaired, that is, the fourth virtual network function unit that is successfully repaired can be immediately selected as the target backup unit to assist the virtual network function unit that subsequently fails, and the target backup unit that retains the configuration information can continue to process the traffic, thereby avoiding interruption, and increasing the speed of processing the traffic of the user terminal.
In an embodiment, the target backup unit 40 and the first target virtual network function unit are located in the same or different servers. Specifically, for step S101 to step S103 or for step S104 to step S105, that is, for whether the target backup unit 40 is selected from a plurality of preset first backup units 50 or from a plurality of real-time idle second backup units, when finally determining the target backup unit 40, only the failure condition of the first target virtual network function unit needs to be considered, and it is not necessary to consider whether the target backup unit 40 and the first target virtual network function unit are located in the same server.
In an embodiment, as shown in fig. 13, the step S4 may include, but is not limited to, the following steps.
S401, judging whether the first target virtual network function unit is a first type virtual network function unit.
Specifically, referring to fig. 2 to 7, the example that a plurality of target backup units are selected from the plurality of first backup units 50 is described herein. In conjunction with the above discussion, the plurality of virtual network function units 10 may include at least one first type virtual network function unit (i.e. virtual switch 101) and at least one second type virtual network function unit (i.e. virtual client 102), each of the first type virtual network function units (i.e. virtual switch 101) is associated with at least one second type virtual network function unit (i.e. virtual client 102), the plurality of target backup units 40 includes at least one first type target backup unit 401 (selected from first sub-backup units 501) and at least one second type target backup unit 402 (selected from second sub-backup units 502), each of the first type target backup units 401 is associated with at least one second type target backup unit 402, and at least one second type target backup unit 402 is associated with one first type target backup unit 401 or one first type virtual network function unit 101.
It can be understood that, in this embodiment, by determining whether the first target virtual network function unit is a first type of virtual network function unit (i.e. the virtual switch 101), a selection range of the target backup unit 40 (i.e. a plurality of the first backup units 50) may be further defined, so that the target backup unit 40 is better configured by the configuration information of the first target virtual network function unit.
S402, if the first target virtual network function unit is the first type of virtual network function unit, sending first configuration information of the first target virtual network function unit to the first type of target backup unit, and sending second configuration information of at least one second type of virtual network function unit associated with the first target virtual network function unit to at least one second type of target backup unit associated with the first type of target backup unit.
In conjunction with the above discussion, if the first target virtual network function unit is the first type of virtual network function unit (i.e., the virtual switch 101), as shown in fig. 2 to fig. 7, one of the first sub-backup units 501 may be selected as the first type of target backup unit 401 from a plurality of first sub-backup units 501 having the same software structure as that of the virtual switch 101 to receive the first configuration information of the first target virtual network function unit. It should be noted that, since each of the first-type target backup units 401 is associated with at least one second-type target backup unit 402, and as can be seen from the above discussion, the traffic sent by the user terminal needs to be decapsulated by the virtual switch 101 and needs to be sent to the corresponding virtual client 102 by contrasting the "VNI scheduling rule" pre-stored in the virtual switch 101.
It is to be understood that, if the failed virtual network function unit is the first type of virtual network function unit, that is, any one of the second type virtual network function units associated with the first target virtual network function unit cannot receive the traffic sent by the user terminal, which is equivalent to "invalidation" of the function, therefore, referring to fig. 2 to fig. 7, in this embodiment, by sending the configuration information of at least one second type virtual network function unit with the function "invalid" to at least one second type target backup unit 402 associated with the first type target backup unit 401, in this way, traffic sent by the user terminal may be sent to a corresponding second-type target backup unit 402 to be processed only through decapsulation of the first-type target backup unit 401 and a "VNI scheduling rule" configured in the first-type target backup unit 401.
Specifically, as shown in fig. 3 to fig. 7, when the first type of virtual network function unit fails, the first sub-backup unit 501 including the second sub-backup unit 502 associated with an equal number may be selected as the target backup unit 40 according to the number of the second type of virtual network function units (i.e., virtual clients 102) associated with the first type of virtual network function unit (i.e., virtual switch 101).
S403, if the first target virtual network function unit is the second type virtual network function unit, sending the second configuration information of the first target virtual network function unit to at least one second type target backup unit associated with the first type virtual network function unit.
Specifically, in combination with the above discussion, if the first target virtual network function unit is the second type of virtual network function unit (i.e. the virtual client 102), as shown in fig. 2 to fig. 7, one of the second sub-backup units 502 may be selected from a plurality of second sub-backup units 502 having the same software structure as that of the virtual client 102 as the second type of target backup unit 402 that receives the second configuration information of the first target virtual network function unit. It should be noted that the essence of the first configuration information and the second configuration information is the configuration information of the corresponding first target virtual network function unit, and here, to distinguish the first target virtual network function unit as the first type of virtual network function unit (i.e. the virtual switch 101) or the second type of virtual network function unit (i.e. the virtual client 102), the configuration information of the first target virtual network function unit is divided into the first configuration information and the second configuration information according to the type of the first target virtual network function unit.
It can be understood that, if the virtual network function unit with the fault is the second type of virtual network function unit, it indicates that the corresponding virtual switch 101 can work normally, and further, the virtual client 102 with the fault can forward and encapsulate the traffic continuously, and the function is not "invalidated", so that, in combination with fig. 2 to 7, it is not necessary to forward the configuration information of at least one first type of virtual network function unit whose function is not "invalidated".
Specifically, as shown in fig. 2, when the second type of virtual network function unit fails, one of the second sub-backup units 502 may be arbitrarily selected from the plurality of second sub-backup units 502 associated with the first type of virtual network function unit (i.e., the virtual switch 101) instead of the first sub-backup unit 501 to serve as the target backup unit.
Referring to fig. 14, fig. 14 is a schematic structural diagram of a virtual network function unit switching device according to an embodiment of the present invention. The apparatus for switching virtual network function units according to this embodiment is applied to a cloud gateway system, where the cloud gateway system includes a management resource and a cloud gateway, the cloud gateway includes a plurality of servers, at least one of the servers includes a plurality of virtual network function units, and the apparatus 60 for switching virtual network function units according to this embodiment includes a first obtaining module 601, a second obtaining module 601, a third obtaining module 603, and a sending module 604, and specifically, reference may be made to the following description.
The first obtaining module 601 is configured to obtain network function switching information, and determine, according to the network function switching information, a target backup unit for receiving configuration information of at least one virtual network function unit. Specifically, as shown in fig. 2 to fig. 4, the virtual network function unit 10 may be a virtual switch 101 or a virtual client 102, each virtual switch 101 may be associated with at least one virtual client 102, for example, each virtual client 102 has a respective client ID, each virtual switch 101 has a respective switch ID, a deployment configuration file defines the associated at least one client ID and at least one switch ID, and after the virtual switch 101 and the virtual client 102 are started, the association relationship between the virtual switch 101 and the virtual client 102 is established according to the definition of the deployment configuration file.
The target backup unit 40 may be an unconfigured virtual device or a physical device in nature. It should be noted that, in this embodiment, the target backup unit 40 needs to be determined according to the network function switching information acquired by the first acquiring module 601, and is not necessarily a predetermined device, and it can be understood that one of the target backup units 40 in this embodiment may be configured to receive configuration information of at least one virtual network function unit 10, that is, a software structure of the target backup unit 40 may be a software structure of the virtual network function unit 10.
A second obtaining module 602, configured to obtain fault information of a plurality of virtual network functional units, and determine whether the plurality of virtual network functional units have faults according to the fault information of the plurality of virtual network functional units. Wherein, the failure information of each virtual network function unit 10 can characterize whether the virtual network function unit 10 fails. For example, the failure information of each virtual network functional unit 10 may be represented by 0 and 1, when the failure information is 1, the second obtaining module 602 may determine that the corresponding virtual network functional unit 10 fails, and when the failure information is 0, the second obtaining module 602 may determine that the corresponding virtual network functional unit 10 does not fail. Specifically, the failure of the virtual network function unit 10 may include a problem occurring in the virtual network function unit 10, or a problem occurring in software, hardware, a network, or a switch related to the virtual network function unit 10.
A third obtaining module 603, configured to obtain configuration information of a first target virtual network function unit when a first target virtual network function unit that fails exists among the plurality of virtual network function units. Specifically, each virtual network function unit 10 is preset with corresponding configuration information to execute a corresponding function, and as can be seen from the above discussion, the virtual switch 101 as the virtual network function unit 10 may be configured with information such as VNI scheduling rules and IP addresses, and the virtual client 102 as the virtual network function unit 10 may be configured with information such as IP addresses. It can be understood that, since the first target virtual network function unit fails, the third obtaining module 603 needs to obtain the configuration information of the first target virtual network function unit for standby, so as to avoid that the corresponding ue cannot obtain the required traffic.
A sending module 604, configured to send the configuration information of the first target virtual network function unit to the target backup unit.
It should be noted that, since the target backup unit 40 receives the configuration information of the first target virtual network function unit here, that is, the target backup unit 40 may be understood as a device that can implement the function of the first target virtual network function unit and can interface to a corresponding user terminal. It can be understood that, in this embodiment, due to the existence of the target backup unit 40, when any one of the virtual network function units 10 fails, the sending module 604 sends the configuration information of the first target virtual network function unit to the target backup unit, so that the target backup unit can immediately receive the configuration information of the first target virtual network function unit to be docked to a corresponding user terminal, thereby avoiding that the corresponding user terminal cannot obtain a required flow.
There is also provided in an embodiment a controller for executing a number of instructions stored in memory to implement a method as described in any of the above.
Referring to fig. 15, fig. 15 is a schematic structural diagram of a controller and a memory according to an embodiment of the invention. The memory 701 may be used to store software programs and modules, and mainly includes a program storage area and a data storage area. The controller 702 executes various functional applications and data processing by executing software programs and modules stored in the memory 701; the controller 702 performs various functions and processes data by running or executing software programs and/or modules stored in the memory 701 and calling data stored in the memory 701, thereby performing overall monitoring.
In some embodiments, the controller 702 obtains the network function switching information and determines a plurality of target backup units for receiving configuration information of at least one virtual network function unit according to the network function switching information.
In some embodiments, the controller 702 obtains failure information of a plurality of the virtual network function units, and determines whether the plurality of the virtual network function units fail according to the failure information of the plurality of the virtual network function units.
In some embodiments, the controller 702 obtains the configuration information of a first target virtual network function unit that has failed when the first target virtual network function unit exists in a plurality of the virtual network function units.
In some embodiments, the controller 702 sends the configuration information of the first target virtual network function unit to at least one of the target backup units.
In some embodiments, the controller 702 determines whether the network function switching information is first network function switching information; if the network function switching information is the first network function switching information, the controller 702 sets a plurality of first backup units in at least one of the servers; the controller 702 selects a plurality of the first backup units from the plurality of the first backup units as a plurality of the target backup units.
In some embodiments, the controller 702 repairs the first target virtual network function unit and determines whether the first target virtual network function unit is successfully repaired; if the first target virtual network function unit is successfully repaired, the controller 702 sends the configuration information sent to the target backup unit to a second target virtual network function unit which is successfully repaired, and deletes the configuration information in the target backup unit.
In some embodiments, the controller 702 determines whether the network function switching information is second network function switching information; if the network function switching information is the second network function switching information, the controller 702 obtains status information, and determines a plurality of idle third target virtual network function units in the plurality of virtual network function units as a plurality of second backup units according to the status information; the controller 702 selects a plurality of the second backup units from the plurality of second backup units as the plurality of target backup units.
In some embodiments, the controller 702 repairs the first target virtual network function unit and determines whether the first target virtual network function unit is successfully repaired; if the first target virtual network function unit is successfully repaired, the controller 702 sets the fourth virtual network function unit successfully repaired as a third virtual network function unit.
In some embodiments, the controller 702 determines whether the first target virtual network function unit is a first type of virtual network function unit; if the first target virtual network function unit is the first type of virtual network function unit, the controller 702 sends first configuration information of the first target virtual network function unit to the first type of target backup unit, and sends second configuration information of at least one second type of virtual network function unit associated with the first target virtual network function unit to at least one second type of target backup unit associated with the first type of target backup unit; if the first target virtual network function unit is the second type of virtual network function unit, the controller 702 sends the second configuration information of the first target virtual network function unit to at least one second type of target backup unit associated with the first type of virtual network function unit.
It should be noted that, those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program to instruct related hardware, where the program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the flow of the embodiments, such as the charge reminder method, can be included. Among others, the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The invention provides a method, a device, a controller and a storage medium for switching virtual network functional units, which are applied to a cloud gateway system, wherein the cloud gateway system comprises management resources and a cloud gateway, the cloud gateway comprises a plurality of servers, at least one server comprises a plurality of virtual network functional units, and the method comprises the following steps: acquiring network function switching information, and determining a plurality of target backup units for receiving configuration information of at least one virtual network function unit according to the network function switching information; acquiring fault information of a plurality of virtual network function units, and judging whether the plurality of virtual network function units have faults or not according to the fault information of the plurality of virtual network function units; if a first target virtual network function unit with a fault exists in the plurality of virtual network function units, acquiring configuration information of the first target virtual network function unit; and sending the configuration information of the first target virtual network function unit to at least one target backup unit. The target backup unit is determined by the network function switching information and can receive the configuration information of the virtual network function unit with the fault to take over the work of the virtual network function unit with the fault, so that the problem that the corresponding user cannot obtain corresponding feedback due to the fact that the virtual network function unit cannot perform corresponding operation on the user traffic managed by the virtual network function unit when the virtual network function unit is in fault is avoided, and the smoothness of the user in connection with the internet is improved.
The method, apparatus, controller and storage medium for switching virtual network function units provided in the embodiments of the present invention are described in detail above, and a specific example is applied in this document to explain the principle and implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and core ideas of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (9)

1. A method for switching virtual network function units is applied to a cloud gateway system, the cloud gateway system comprises a management resource and a cloud gateway, the cloud gateway comprises a plurality of servers, at least one server comprises a plurality of virtual network function units, and the method comprises the following steps:
acquiring network function switching information, and determining a plurality of target backup units for receiving configuration information of at least one virtual network function unit according to the network function switching information;
acquiring fault information of a plurality of virtual network function units, and judging whether the plurality of virtual network function units have faults or not according to the fault information of the plurality of virtual network function units;
if a first target virtual network function unit with a fault exists in the plurality of virtual network function units, acquiring configuration information of the first target virtual network function unit;
sending the configuration information of the first target virtual network function unit to at least one target backup unit;
the plurality of virtual network function units comprise at least one first-class virtual network function unit and at least one second-class virtual network function unit, each first-class virtual network function unit is associated with at least one second-class virtual network function unit, the plurality of target backup units comprise at least one first-class target backup unit and at least one second-class target backup unit, each first-class target backup unit is associated with at least one second-class target backup unit, and at least one second-class target backup unit is associated with one first-class target backup unit or one first-class virtual network function unit;
wherein the step of sending the configuration information of the first target virtual network function unit to at least one target backup unit includes:
judging whether the first target virtual network function unit is a first type of virtual network function unit;
if the first target virtual network function unit is the first type of virtual network function unit, sending first configuration information of the first target virtual network function unit to the first type of target backup unit, and sending second configuration information of at least one second type of virtual network function unit associated with the first target virtual network function unit to at least one second type of target backup unit associated with the first type of target backup unit;
and if the first target virtual network function unit is the second type of virtual network function unit, sending second configuration information of the first target virtual network function unit to at least one second type of target backup unit associated to the first type of virtual network function unit.
2. The method of claim 1, wherein the step of determining a plurality of target backup units for receiving configuration information of at least one virtual network function unit according to the network function switching information comprises:
judging whether the network function switching information is first network function switching information or not;
if the network function switching information is the first network function switching information, setting a plurality of first backup units in at least one server;
and selecting a plurality of first backup units from the plurality of first backup units as a plurality of target backup units.
3. The method of claim 2, wherein the step of sending the configuration information of the first target virtual network function unit to at least one of the target backup units is followed by the step of:
repairing the first target virtual network function unit and judging whether the first target virtual network function unit is successfully repaired;
and if the first target virtual network function unit is successfully repaired, sending the configuration information sent to the target backup unit to a second target virtual network function unit which is successfully repaired, and deleting the configuration information in the target backup unit.
4. The method of claim 1, wherein the step of determining a plurality of target backup units for receiving configuration information of at least one virtual network function unit according to the network function switching information comprises:
judging whether the network function switching information is second network function switching information or not;
if the network function switching information is the second network function switching information, acquiring state information, and determining a plurality of idle third target virtual network function units in the plurality of virtual network function units as a plurality of second backup units according to the state information;
and selecting a plurality of second backup units from the plurality of second backup units as a plurality of target backup units.
5. The method of claim 4, wherein the step of sending the configuration information of the first target virtual network function unit to at least one of the target backup units is followed by the step of:
repairing the first target virtual network function unit and judging whether the first target virtual network function unit is successfully repaired;
and if the first target virtual network function unit is successfully repaired, setting a fourth virtual network function unit which is successfully repaired as a third virtual network function unit.
6. The method of claim 1, wherein the target backup unit and the first target virtual network function unit are located on the same or different servers.
7. The device for switching the virtual network function units is applied to a cloud gateway system, the cloud gateway system comprises a management resource and a cloud gateway, the cloud gateway comprises a plurality of servers, at least one server comprises a plurality of virtual network function units, and the device for switching the virtual network function units comprises:
the first acquisition module is used for acquiring network function switching information and determining a plurality of target backup units for receiving configuration information of at least one virtual network function unit according to the network function switching information;
the second acquisition module is used for acquiring the fault information of the virtual network function units and judging whether the virtual network function units have faults or not according to the fault information of the virtual network function units;
a third obtaining module, configured to obtain configuration information of a first target virtual network function unit that has a fault, when the first target virtual network function unit exists among the plurality of virtual network function units;
a sending module, configured to send configuration information of the first target virtual network function unit to at least one target backup unit;
the plurality of virtual network function units comprise at least one first-class virtual network function unit and at least one second-class virtual network function unit, each first-class virtual network function unit is associated with at least one second-class virtual network function unit, the plurality of target backup units comprise at least one first-class target backup unit and at least one second-class target backup unit, each first-class target backup unit is associated with at least one second-class target backup unit, and at least one second-class target backup unit is associated with one first-class target backup unit or one first-class virtual network function unit;
the sending module is specifically configured to determine whether the first target virtual network function unit is a first type of virtual network function unit; and the second configuration information processing unit is used for sending the first configuration information of the first target virtual network function unit to the first class target backup unit and sending the second configuration information of at least one second class virtual network function unit associated with the first target virtual network function unit to at least one second class target backup unit associated with the first class target backup unit when the first target virtual network function unit is the first class virtual network function unit; and the second configuration information of the first target virtual network function unit is sent to at least one second type target backup unit associated to the first type virtual network function unit when the first target virtual network function unit is the second type virtual network function unit.
8. A controller for executing instructions stored in a memory for implementing the method of any one of claims 1 to 6.
9. A storage medium having stored therein instructions for execution by a controller to implement the method of any one of claims 1 to 6.
CN202111207237.3A 2021-10-18 2021-10-18 Virtual network function unit switching method, device, controller and storage medium Active CN113660131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111207237.3A CN113660131B (en) 2021-10-18 2021-10-18 Virtual network function unit switching method, device, controller and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111207237.3A CN113660131B (en) 2021-10-18 2021-10-18 Virtual network function unit switching method, device, controller and storage medium

Publications (2)

Publication Number Publication Date
CN113660131A CN113660131A (en) 2021-11-16
CN113660131B true CN113660131B (en) 2022-01-07

Family

ID=78494551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111207237.3A Active CN113660131B (en) 2021-10-18 2021-10-18 Virtual network function unit switching method, device, controller and storage medium

Country Status (1)

Country Link
CN (1) CN113660131B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108206860A (en) * 2016-12-20 2018-06-26 汤姆逊许可公司 For managing the method for the service chaining on network equipment, corresponding network equipment
CN108370368A (en) * 2016-09-20 2018-08-03 华为技术有限公司 Security strategy dispositions method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015168834A1 (en) * 2014-05-04 2015-11-12 华为技术有限公司 Method for allocating network resources in virtual network function, composer and manager
US10091070B2 (en) * 2016-06-01 2018-10-02 Cisco Technology, Inc. System and method of using a machine learning algorithm to meet SLA requirements
US10819573B2 (en) * 2018-03-20 2020-10-27 Ciena Corporation Hierarchical coherency for network function virtualization
CN109842526B (en) * 2019-03-12 2021-12-07 中国联合网络通信集团有限公司 Disaster recovery method and device
CN110190987B (en) * 2019-05-08 2022-02-01 南京邮电大学 Virtual network function reliability deployment method based on backup income and remapping

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108370368A (en) * 2016-09-20 2018-08-03 华为技术有限公司 Security strategy dispositions method and device
CN108206860A (en) * 2016-12-20 2018-06-26 汤姆逊许可公司 For managing the method for the service chaining on network equipment, corresponding network equipment

Also Published As

Publication number Publication date
CN113660131A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
US10547463B2 (en) Multicast helper to link virtual extensible LANs
US11941423B2 (en) Data processing method and related device
KR101900536B1 (en) Implementing a 3g packet core in a cloud computer with openflow data and control planes
CN109362085B (en) Implementing EPC in cloud computer through OPENFLOW data plane
CN105610632B (en) Virtual network equipment and related method
US10164866B2 (en) Virtual extensible LAN intercommunication mechanism for multicast in networking
US20140068045A1 (en) Network system and virtual node migration method
US11483379B2 (en) Enhancing network services based on edge clouds
KR20240024114A (en) Distributed user plane functions for wireless-based networks
US20230093915A1 (en) Cloud router platform for sdn networks
KR20230162083A (en) Extend cloud-based virtual private networks to wireless-based networks
CN113225252B (en) Establishment method, processing method and related equipment for Bidirectional Forwarding Detection (BFD) session
Shanmugalingam et al. Programmable mobile core network
US11888701B1 (en) Self-healing and resiliency in radio-based networks using a community model
CN113660131B (en) Virtual network function unit switching method, device, controller and storage medium
CN113938405A (en) Data processing method and device
CN112671811B (en) Network access method and equipment
CN114553707B (en) Method and device for generating topology information of network and delimiting network faults
KR102608675B1 (en) Highly available data processing network capabilities for wireless-based networks
CN111355602A (en) Resource object management method and device
CN115002029A (en) Traffic forwarding method, device, equipment and storage medium
EP4280557A1 (en) Apparatus, methods, and computer programs
CN117478446A (en) Cloud network access method, cloud network access equipment and storage medium
CN116981103A (en) Communication processing method, device, equipment and computer storage medium
Maia An SDN-based Overlay Networking Solution for Transparent Multi-homed Vehicular Communications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Virtual network functional unit switching method, device, controller and storage medium

Effective date of registration: 20220608

Granted publication date: 20220107

Pledgee: Hengfeng Bank Co.,Ltd. Wuhan Branch

Pledgor: WUHAN GREENET INFORMATION SERVICE Co.,Ltd.

Registration number: Y2022420000150

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20221121

Granted publication date: 20220107

Pledgee: Hengfeng Bank Co.,Ltd. Wuhan Branch

Pledgor: WUHAN GREENET INFORMATION SERVICE Co.,Ltd.

Registration number: Y2022420000150