CN111478850A - Gateway adjusting method and device - Google Patents

Gateway adjusting method and device Download PDF

Info

Publication number
CN111478850A
CN111478850A CN202010132704.XA CN202010132704A CN111478850A CN 111478850 A CN111478850 A CN 111478850A CN 202010132704 A CN202010132704 A CN 202010132704A CN 111478850 A CN111478850 A CN 111478850A
Authority
CN
China
Prior art keywords
nfv
gateway
traffic
gateways
flow
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.)
Granted
Application number
CN202010132704.XA
Other languages
Chinese (zh)
Other versions
CN111478850B (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.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies 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 New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN202010132704.XA priority Critical patent/CN111478850B/en
Publication of CN111478850A publication Critical patent/CN111478850A/en
Application granted granted Critical
Publication of CN111478850B publication Critical patent/CN111478850B/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
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Abstract

The application provides a gateway adjusting method and device, which are applied to a server, wherein the server comprises a plurality of Network Function Virtualization (NFV) gateways; when the flow of the current NFV gateway is determined to exceed the flow migration threshold, adding an NFV gateway in the server; and migrating the flow of the current NFV gateway to the newly added NFV gateway. The dynamic adjustment of the number of the NFV gateways in the server is realized, and the smooth migration of the flow is realized; in addition, through the traffic migration, the situation that the message is lost due to too much traffic on the NFV gateway and cannot be processed in time when the traffic is on the previous NFV gateway does not occur.

Description

Gateway adjusting method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for adjusting a gateway.
Background
At present, the capability of cloud computing is getting stronger, and a router which is used as a gateway before can be completely replaced by a gateway in a Network Function Virtualization (NFV) form, which is referred to as an NFV gateway for short. However, since the NFV gateway also exists in the server in a virtual machine state, the NFV gateway and the user virtual machine need to share hardware resources of the server. If the number of the NFV gateways is too large, the hardware resources which can be used by the user virtual machine are too small; if the number of the NFV gateways is too small, the network resources of the user virtual machine may be insufficient, and the user virtual machine may surf the internet and be stuck. Therefore, how to dynamically adjust the number of NFV gateways in the server is a considerable problem.
When a certain service normally running by a user faces burst traffic access, a virtualization management platform can actively detect the user traffic load condition, when the performance of a virtual machine where the service is located is found to be insufficient, the virtual machine is quickly copied, the virtual machine is matched with load balancing (L ad Balance, L B) equipment to provide services to the outside, and after an access peak is over, the virtual machine can be dynamically contracted and the surplus virtual machine is deleted, so that the situation that computing resources move as needed is realized.
Therefore, how to dynamically adjust the number of NFV gateways in the server and smoothly migrate the network traffic of the tenant is one of the considerable problems.
Disclosure of Invention
In view of this, the present application provides a gateway adjusting method and apparatus, so as to dynamically adjust the number of NFV gateways in a server and smoothly migrate network traffic of tenants.
Specifically, the method is realized through the following technical scheme:
according to a first aspect of the present application, a gateway adjusting method is provided, which is applied in a server, where the server includes a plurality of Network Function Virtualization (NFV) gateways; and, the method comprises:
when the flow of the current NFV gateway is determined to exceed the flow migration threshold, adding an NFV gateway in the server;
and migrating the flow of the current NFV gateway to the newly added NFV gateway.
According to a second aspect of the present application, there is provided a gateway adjusting apparatus, which is applied in a server, where the server includes a plurality of Network Function Virtualization (NFV) gateways; and, the apparatus comprises:
the gateway adjusting module is used for adding an NFV gateway in the server when the flow of the current NFV gateway is determined to exceed the flow migration threshold;
and the traffic migration module is used for migrating the traffic of the current NFV gateway to the newly added NFV gateway.
According to a third aspect of the present application, there is provided a server comprising a processor and a machine-readable storage medium storing machine-executable instructions capable of being executed by the processor, the processor being caused by the machine-executable instructions to perform the method provided by the first aspect of the embodiments of the present application.
According to a fourth aspect of the present application, there is provided a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to perform the method as provided by the first aspect of the embodiments of the present application.
The beneficial effects of the embodiment of the application are as follows:
according to the gateway adjusting method and device provided by the embodiment of the application, when the fact that the flow of the current NFV gateway exceeds the flow migration threshold is determined, the NFV gateway is newly added to the server; and migrating the flow of the current NFV gateway to the newly added NFV gateway. The dynamic adjustment of the number of the NFV gateways in the server is realized, and the smooth migration of the flow is realized; in addition, through the traffic migration, the situation that the message is lost due to too much traffic on the NFV gateway and cannot be processed in time when the traffic is on the previous NFV gateway does not occur.
Drawings
FIG. 1 is a schematic diagram of a server according to an exemplary embodiment of the present application;
fig. 2a is a flowchart illustrating a gateway adjustment method according to an exemplary embodiment of the present application;
fig. 2b is a schematic diagram illustrating a new gateway and traffic migration according to an exemplary embodiment of the present application;
fig. 3 is a flowchart illustrating a method for migrating traffic of a current NFV gateway to a newly added NFV gateway according to an exemplary embodiment of the present application;
fig. 4 is a flowchart illustrating another method for migrating traffic of a current NFV gateway to a newly added NFV gateway according to an exemplary embodiment of the present application;
fig. 5a is a flowchart illustrating another gateway adjustment method according to an exemplary embodiment of the present application;
FIG. 5b is a flow migration diagram based on the flow shown in FIG. 5a according to an exemplary embodiment of the present application;
fig. 6a is a flowchart illustrating another gateway adjustment method according to an exemplary embodiment of the present application;
FIG. 6b is a schematic flow migration diagram based on the flow chart shown in FIG. 6a according to an exemplary embodiment of the present application;
fig. 7 is a block diagram of a gateway adjustment apparatus according to an exemplary embodiment of the present application;
fig. 8 is a schematic diagram illustrating a hardware structure of a server according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the corresponding listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The gateway adjusting method provided in the embodiment of the present application may be applied to an electronic device, for example, a server, as shown in fig. 1, which is a schematic structural diagram of the server, and includes a plurality of virtual machines, a part of the virtual machines belongs to a user network 1, a part of the virtual machines belongs to a user network 2, and the like, the server further includes a plurality of NFV gateways (NFV gateways 1 to NFV gateway n shown in fig. 1), a data analyzer, and a virtual switch, where the plurality of user networks, the plurality of NFV gateways, and the data analyzer are connected to the virtual switch through a virtual network card tap port. The NFV gateway is also a virtual machine, and only has different functions from those of the virtual machine belonging to the user network; the virtual machine in the user network is used for forwarding the traffic of the user to the device corresponding to the destination IP through the NFV gateway, and forwarding the traffic of the user to the data analyzer; the data analyzer is installed on the virtual machine and used for analyzing the received flow of the user; for the NFV gateway, when the data analyzer determines that the traffic of the NFV gateway exceeds the traffic migration threshold, the data analyzer notifies the Hypervisor in the server, the Hypervisor adds an NFV gateway in the server, and then migrates the traffic of the NFV gateway to the added NFV gateway. Therefore, the flexible adjustment of the number of the NFV gateways is realized, the flow on the NFV gateway is successfully migrated to the newly added NFV gateway, the pressure of the NFV gateway with heavier burden is effectively relieved, and in addition, the NFV gateway is newly added, so that more available network resources can be provided for the service of the user.
In addition, when the data analyzer determines that the sum of the traffic of the NFV gateways does not exceed the traffic migration threshold, the data analyzer notifies the Hypervisor to select one NFV gateway from the NFV gateways, then migrates the traffic of the remaining NFV gateways from the NFV gateways to the selected NFV gateway, and deletes the remaining NFV gateways. Thus, when the traffic on a plurality of NFV gateways is small and the sum of the traffic of the NFV gateways is small, it indicates that such many NFV gateways are not needed currently, and at this time, by implementing the above-mentioned process, the number of NFV gateways is dynamically adjusted, and the traffic of other NFV gateways is smoothly migrated to the selected NFV gateway, and because the redundant NFV gateways are deleted, the virtual machine of the user network can share more hardware resources on the server.
The gateway adjusting method provided in the present application is explained in detail below.
Referring to fig. 2a, fig. 2a is a flowchart of a gateway adjusting method shown in the present application. The gateway adjusting method is applied to a server, the server comprises a plurality of NFV gateways, and the server can implement the method and comprises the following steps:
s201, when the fact that the flow of the current NFV gateway exceeds the flow migration threshold is determined, the NFV gateway is newly added to the server.
Specifically, probe software is installed on the NFV gateway in the server, and the probe software can send traffic flowing through the NFV gateway to the data analyzer through a netflow or sflow protocol. The data analyzer judges whether the traffic of the NFV gateway exceeds a traffic migration threshold, and when the traffic exceeds the traffic migration threshold, it indicates that the user traffic currently carried by the NFV gateway is too much, and there may be a situation that the NFV gateway crashes due to overload work.
It should be noted that the traffic migration thresholds corresponding to different NFV gateways may be the same or different, and may be specifically set according to actual situations.
Optionally, when an NFV gateway is newly added, the number of the newly added NFV gateways may be configured according to actual conditions, but it is to be ensured that hardware resources of a server shared by a user network are not particularly greatly affected. In general, when an NFV gateway is newly added, it can be added one by one.
S202, migrating the flow of the current NFV gateway to the newly added NFV gateway.
In a specific implementation, after an NFV gateway is newly added, a traffic that does not exceed a traffic migration threshold of the newly added NFV gateway in the NFV gateway may be migrated to the newly added NFV gateway, which is shown in fig. 2b, and the current NFV gateway is taken as the NFV gateway 1 for an example, so that the traffic on the NFV gateway 1 is migrated to the newly added NFV gateway. Therefore, the dynamic adjustment of the number of the NFV gateways in the server is realized, and the smooth migration of the flow is realized; in addition, through the traffic migration, the situation that the message is lost due to too much traffic on the NFV gateway and cannot be processed in time when the traffic is on the previous NFV gateway does not occur.
Alternatively, before implementing step S202, the method may be implemented according to the flow shown in fig. 3, including the following steps:
s301, obtaining the traffic information of the current NFV gateway traffic, where the traffic information includes the network identifiers of different user networks.
S302, the flow of the current NFV gateway is sequenced according to the network identification, and the flow meeting the flow migration condition in the sequencing result is migrated to the newly added NFV gateway.
In specific implementation, the NFV gateway in the server is configured to forward traffic of a packet sent by a user in a user network, so that the traffic information may include network identifiers of different user networks, and when analyzing the traffic, the traffic under the network identifier may be obtained by summing the traffic of the same network identifier and recorded as the network traffic, so as to obtain network traffic corresponding to each network identifier, and then the network traffic corresponding to each network identifier is sorted, so that the maximum network traffic is determined, and then the traffic of the user network corresponding to the network identifier corresponding to the maximum network traffic is migrated to the newly added NFV gateway.
It should be noted that different user networks have different Network identities, and if all the user networks are Virtual local Area networks (Virtual L environmental Area networks, V L AN), the V L AN IDs of the different user networks are different, and if all the user networks are Virtual Extensible L environmental Area networks (VX L AN), the VX L AN IDs of the different user networks are different.
For example, the current NFV gateway serves 3 user networks, and the network identifiers of the 3 user networks are respectively V L ANID1, V L AN ID2, and V L AN ID3, then the current NFV gateway traffic information is summarized to include traffic of V L AN ID1, so as to obtain network traffic flow1, according to this method, network traffic flow2 corresponding to V L AN ID2 and network traffic flow3 corresponding to V L AN ID3 can be obtained, then the 3 network traffic is subjected to ranking processing, and if flow1< flow2< flow3, the traffic of the user network corresponding to V L AN ID3 in the current NFV gateway is migrated to the newly added NFV gateway.
Optionally, in a ranking result obtained after ranking based on the network identifiers, if the sum of the traffic of the user networks corresponding to TOP m network identifiers does not exceed the traffic migration threshold of the newly added NFV gateway, the traffic of the user networks corresponding to the previous m network identifiers may be migrated to the newly added NFV gateway, where the value of m is determined according to the result of the actual sum of the traffic.
Optionally, if there may be a case that the granularity of traffic migration based on the V L AN ID or the VX L AN ID is too coarse, and there may be a case that the traffic of a single user network is still higher than the traffic migration threshold, it indicates that the traffic of the user network cannot be migrated to the newly added NFV gateway, and to avoid this, the traffic information provided in this application further includes a source IP address and a destination IP address, and when step S302 is executed, the following process may be further performed:
and if the traffic meeting the traffic migration condition exceeds the traffic migration threshold of the newly added NFV gateway, sequencing the current traffic of the NFV gateway according to the source IP address and the destination IP address, and migrating the traffic meeting the traffic migration condition in the sequencing result to the newly added NFV gateway.
In specific implementation, analyzing traffic may be understood as analyzing a packet, where the packet generally carries a source IP address and a destination IP address, and correspondingly, the analyzed traffic information may also include the source IP address and the destination IP address. Then, after screening out the user network corresponding to the network identifier with the largest traffic based on the flow of fig. 3, if it is determined that the traffic of the user network flowing on the current NFV gateway still exceeds the traffic migration threshold, the flow of migrating the traffic of the user network to the newly added NFV gateway is not executed, but the following process is executed: and based on the source IP address and the destination IP address, reordering the traffic on the current NFV gateway, and then migrating the maximum traffic in the ordering result to the newly added NFV gateway.
For better understanding of the embodiment, if it is determined that traffic of a user network corresponding to V L AN ID1 served on a current NFV gateway exceeds a traffic migration threshold of a newly added NFV gateway, indicating that the traffic of the user network corresponding to V L AN ID1 cannot migrate to the newly added NFV gateway, then sorting the traffic on the current NFV gateway according to IP addresses, for example, traffic information of the traffic on the current NFV gateway includes IP addresses of 5 combinations, such as { source IP1, destination IP1}, { source IP2, destination IP2}, { source IP3, destination IP3}, { source IP3, destination IP3}, traffic under each combination is counted respectively, if it is determined that the source IP address is source IP3, the destination IP address is destination IP3, if it is determined that the source IP address is source IP3, the traffic of the destination IP address is destination IP3, the traffic of the source IP address is 3, the destination IP flow is sorted, and the destination IP flow is 3, if the source IP flow is determined that the source IP address is 3, the flow is 3, the destination flow is sorted, the flow is 3, the flow is sorted by 3, and the flow of the destination flow3, the flow is migrated as three new NFV gateway 3, the flow is obtained by sorting, and 3, the flow is 3.
Optionally, after the traffic on the current NFV gateway is sorted based on the source IP address and the destination IP address to obtain a sorting result, if the sum of the traffic corresponding to TOP N IP address combinations in the sorting result does not exceed the traffic migration threshold of the newly added NFV gateway, the traffic corresponding to the TOP N IP address combinations in the sorting result may be migrated to the newly added NFV gateway at this time, where the value of N needs to be determined according to the sum of the traffic corresponding to the IP address combinations. Assuming that the total flow sum of flow11+ flow22 in the IP combination is still smaller than the flow migration threshold, the flows corresponding to the source IP1 and the destination IP1, and the flows corresponding to the source IP2 and the destination IP2 may be migrated to the newly added NFV gateway.
Optionally, in this embodiment, a process of migrating the traffic of the current NFV gateway to the newly added NFV gateway may also be implemented according to the process shown in fig. 4, where the process includes the following steps:
s401, obtaining the traffic information of the current NFV gateway traffic, wherein the traffic information comprises a source IP address and a destination IP address.
S402, sequencing the flow of the current NFV gateway according to the source IP address and the destination IP address, and migrating the flow meeting the flow migration condition in the sequencing result to the newly added NFV gateway.
In specific implementation, the IP addresses may also be directly sequenced, the source IP address and the destination IP address are directly obtained from the traffic information of the traffic carried by the current NFV gateway, and then sequencing is performed according to a combination of the source IP address and the destination IP address, which may specifically refer to the IP address-based sequencing and migration process referred in fig. 3, and details are not described here.
Optionally, after determining that the traffic of the current NFV gateway exceeds the traffic migration threshold in step S201, before performing adding an NFV gateway in the server, the process shown in fig. 5a may also be performed, which includes the following steps:
s501, determining the flow of other NFV gateways in the server.
S502, if the traffic of any NFV gateway is lower than the traffic migration threshold, migrating a part of the traffic of the current NFV gateway to the NFV gateway, where a sum of the part of the traffic and the traffic of the NFV gateway is smaller than the traffic migration threshold.
In specific implementation, there may be a case where the traffic of the current NFV gateway is more, but the traffic of other NFV gateways is less, in this scenario, the flow of the newly added NFV gateway may not be executed, the traffic of other NFV gateways except the current NFV gateway in the current server may be determined, and if the traffic of any NFV gateway in the other NFV gateways is lower than the traffic migration threshold, the traffic of the current NFV gateway may be migrated to the NFV gateway, where, during traffic migration, the sum of the migration traffic migrated to the NFV gateway and the traffic of the NFV gateway is to be ensured to be smaller than the traffic migration threshold, and then the NFV gateway from which the traffic is migrated is deleted. For example, the current server has 5 NFV gateways, namely, NFV gateway 1, NFV gateway 2, NFV gateway 3, NFV gateway 4, and NFV gateway 5, where it is determined that the traffic of NFV gateway 1 exceeds the traffic migration threshold, and then it is determined that the traffic of NFV gateway 3 in the remaining 4 NFV gateways is smaller than the traffic migration threshold, the traffic on NFV gateway 1 may be migrated to NFV gateway 3, but it is to be ensured that the sum of the traffic migrated from NFV gateway 1 and the current traffic of NFV gateway 3 is smaller than the traffic migration threshold, please refer to fig. 5 b. In a specific implementation, when performing traffic migration, the traffic migration may be performed according to the traffic provided in the embodiments related to fig. 3 to 4, but after the migration to the NFV gateway 3 is ensured, the traffic of the NFV gateway 3 cannot exceed the traffic migration threshold.
If it is determined that the traffic on the other NFV gateways is closer to the traffic migration threshold, i.e., there is no way to receive the traffic of the current NFV gateway, the traffic migration procedure shown in fig. 2 is performed. Therefore, traffic processing resources are reserved for other NFV gateways, and message loss caused by overload work due to the fact that the traffic of the current NFV gateway is received is avoided.
By implementing the flow shown in fig. 5a, smooth migration of traffic is realized without adding an NFV gateway, and the processing load of the current NFV gateway is reduced.
Optionally, based on any of the above embodiments, the gateway adjusting method provided by the present application may further include a process shown in fig. 6a, including the following steps:
s601, if it is determined that the total traffic of the NFV gateways does not exceed the traffic migration threshold, selecting an NFV gateway from the NFV gateways.
And S602, migrating the residual NFV gateway traffic to the selected NFV gateway, and deleting the residual NFV gateway.
In order to avoid this situation, in this embodiment, after receiving traffic of NFV gateways on a server, if it is determined that the traffic of a current NFV gateway is relatively small and smaller than a traffic migration threshold, a data analyzer may wait to receive traffic of a next NFV gateway, if the traffic of consecutive L NFV gateways is still smaller than the traffic migration threshold, notify a virtual machine monitor Hypervisor to select one NFV gateway from among L NFV gateways, then migrate traffic of other NFV gateways to the selected NFV gateway, and then delete the NFV gateway, which is indicated by a virtual machine monitor that the traffic of other NFV gateways among L NFV gateways is less than a traffic migration threshold, and then delete the NFV gateway, which is indicated by a virtual machine monitor that the virtual machine monitor occupies a virtual network gateway 2 and a virtual network gateway 2, and a virtual network gateway, and the virtual machine monitor delete the virtual network gateway, which is indicated by a virtual machine monitor that the virtual machine monitor deletes NFV gateway and NFV gateway 2, and a virtual machine gateway, thus, the virtual machine monitor deletes the virtual machine gateway and NFV gateway, and the NFV gateway, which are not only the virtual machine gateway deletion of the NFV network gateway is considered by a virtual machine is considered as a virtual machine, the virtual machine monitor, the NFV network, the virtual machine is deleted virtual machine, the NFV.
It should be noted that, in any embodiment of the present application, when determining the traffic of the NFV gateway, the traffic flowing through the NFV gateway within a set time period is detected.
Based on the same inventive concept, the application also provides a gateway adjusting device corresponding to the gateway adjusting method. The gateway adjusting apparatus may be implemented by referring to the above description of the gateway adjusting method, which is not discussed herein.
Referring to fig. 7, fig. 7 is a gateway adjusting apparatus according to an exemplary embodiment of the present application, which is applied to a server that includes a plurality of network function virtualization NFV gateways; and, the gateway adjusting apparatus includes:
a gateway adjusting module 701, configured to add an NFV gateway to the server when it is determined that the traffic of the current NFV gateway exceeds a traffic migration threshold;
a traffic migration module 702, configured to migrate the traffic of the current NFV gateway to a newly added NFV gateway.
Optionally, the gateway adjusting module 701 is further configured to select one NFV gateway from the NFV gateways if it is determined that the sum of the traffics of the NFV gateways does not exceed the traffic migration threshold;
the traffic migration module 702 is further configured to migrate the traffic of the remaining NFV gateways to the selected NFV gateway;
the gateway adjusting module 701 is further configured to delete the remaining NFV gateways.
Optionally, the gateway adjusting apparatus in this embodiment of the present application further includes: the determining module 703 is also shown in fig. 7, where:
a determining module 703, configured to determine traffic of other NFV gateways in the server before the gateway adjusting module adds an NFV gateway to the server;
the traffic migration module 702 is further configured to migrate, if the traffic of any NFV gateway is lower than a traffic migration threshold, a part of the traffic of the current NFV gateway to the NFV gateway, where a sum of the part of the traffic and the traffic of the NFV gateway is smaller than the traffic migration threshold.
In a possible implementation manner, the traffic migration module 702 is specifically configured to obtain traffic information of the traffic of the current NFV gateway, where the traffic information includes network identifiers of different user networks that are carried; and sequencing the flow of the current NFV gateway according to the network identification, and migrating the flow meeting the flow migration condition in the sequencing result to the newly added NFV gateway.
In a possible implementation manner, in this embodiment, the traffic information further includes a source IP address and a destination IP address; then
The traffic migration module 702 is specifically configured to, if it is determined that the traffic meeting the traffic migration condition exceeds the traffic migration threshold of the newly added NFV gateway, sort the traffic of the current NFV gateway according to the source IP address and the destination IP address, and migrate the traffic meeting the traffic migration condition in the sorting result to the newly added NFV gateway.
In a possible implementation manner, the traffic migration module 702 is specifically configured to obtain traffic information of the traffic of the current NFV gateway, where the traffic information includes a source IP address and a destination IP address; and sequencing the flow of the current NFV gateway according to the source IP address and the destination IP address, and migrating the flow meeting the flow migration condition in the sequencing result to the newly added NFV gateway.
Based on the same inventive concept, the present application further provides a server, as shown in fig. 8, which includes a processor 801 and a machine-readable storage medium 802, where the machine-readable storage medium 802 stores machine-executable instructions capable of being executed by the processor 801, and the processor 801 is caused by the machine-executable instructions to perform the gateway adjusting method provided in the present application.
The machine-readable storage medium may include a RAM (Random Access Memory) and a NVM (Non-volatile Memory), such as at least one disk Memory. Alternatively, the machine-readable storage medium may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In addition, a machine-readable storage medium is provided, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the processor is caused to execute the gateway adjusting method provided in the embodiments of the present application.
For the embodiments of the server and the machine-readable storage medium, the contents of the related methods are substantially similar to those of the foregoing embodiments of the methods, so that the description is relatively simple, and for the relevant points, reference may be made to the partial description of the embodiments of the methods.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. The gateway adjusting method is applied to a server, wherein the server comprises a plurality of Network Function Virtualization (NFV) gateways; and, the method comprises:
when the flow of the current NFV gateway is determined to exceed the flow migration threshold, adding an NFV gateway in the server;
and migrating the flow of the current NFV gateway to the newly added NFV gateway.
2. The method of claim 1, further comprising:
if the sum of the traffic of the NFV gateways is determined not to exceed the traffic migration threshold, selecting one NFV gateway from the NFV gateways;
and migrating the traffic of the rest NFV gateways to the selected NFV gateways, and deleting the rest NFV gateways.
3. The method of claim 1, wherein migrating the traffic of the current NFV gateway to the newly added NFV gateway comprises:
acquiring traffic information of the traffic of the current NFV gateway, wherein the traffic information comprises network identifiers of different user networks which are borne;
and sequencing the flow of the current NFV gateway according to the network identification, and migrating the flow meeting the flow migration condition in the sequencing result to the newly added NFV gateway.
4. The method of claim 3, wherein the traffic information further comprises a source IP address and a destination IP address; migrating the traffic meeting the traffic migration condition in the sequencing result to the newly added NFV gateway, including:
and if the traffic meeting the traffic migration condition exceeds the traffic migration threshold of the newly added NFV gateway, sequencing the current traffic of the NFV gateway according to the source IP address and the destination IP address, and migrating the traffic meeting the traffic migration condition in the sequencing result to the newly added NFV gateway.
5. The method of claim 1, wherein migrating the traffic of the current NFV gateway to the newly added NFV gateway comprises:
acquiring the traffic information of the traffic of the current NFV gateway, wherein the traffic information comprises a source IP address and a destination IP address;
and sequencing the flow of the current NFV gateway according to the source IP address and the destination IP address, and migrating the flow meeting the flow migration condition in the sequencing result to the newly added NFV gateway.
6. The method according to claim 1, before adding an NFV gateway in the server, further comprising:
determining the flow of other NFV gateways in the server;
and if the traffic of any NFV gateway is lower than a traffic migration threshold, migrating the partial traffic of the current NFV gateway to the NFV gateway, wherein the sum of the partial traffic and the traffic of the NFV gateway is smaller than the traffic migration threshold.
7. The gateway adjusting device is applied to a server, and the server comprises a plurality of Network Function Virtualization (NFV) gateways; and, the apparatus comprises:
the gateway adjusting module is used for adding an NFV gateway in the server when the flow of the current NFV gateway is determined to exceed the flow migration threshold;
and the traffic migration module is used for migrating the traffic of the current NFV gateway to the newly added NFV gateway.
8. The apparatus of claim 7,
the gateway adjusting module is further configured to select one NFV gateway from the NFV gateways if it is determined that the traffic sum of the NFV gateways does not exceed the traffic migration threshold;
the traffic migration module is further configured to migrate the traffic of the remaining NFV gateways to the selected NFV gateway;
the gateway adjusting module is further configured to delete the remaining NFV gateways.
9. The apparatus of claim 7, further comprising:
a determining module, configured to determine traffic of other NFV gateways in the server before the gateway adjusting module adds an NFV gateway to the server;
the traffic migration module is further configured to migrate, if a traffic of any NFV gateway is lower than a traffic migration threshold, a partial traffic of the current NFV gateway to the NFV gateway, where a sum of the partial traffic and the traffic of the NFV gateway is smaller than the traffic migration threshold.
10. A server comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to perform the method of any one of claims 1 to 6.
CN202010132704.XA 2020-02-29 2020-02-29 Gateway adjusting method and device Active CN111478850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010132704.XA CN111478850B (en) 2020-02-29 2020-02-29 Gateway adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010132704.XA CN111478850B (en) 2020-02-29 2020-02-29 Gateway adjusting method and device

Publications (2)

Publication Number Publication Date
CN111478850A true CN111478850A (en) 2020-07-31
CN111478850B CN111478850B (en) 2022-07-12

Family

ID=71748025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010132704.XA Active CN111478850B (en) 2020-02-29 2020-02-29 Gateway adjusting method and device

Country Status (1)

Country Link
CN (1) CN111478850B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039794A (en) * 2020-11-03 2020-12-04 武汉绿色网络信息服务有限责任公司 Method and device for setting virtual network element, computer equipment and storage medium
CN114466016A (en) * 2022-03-04 2022-05-10 烽火通信科技股份有限公司 Method and system for realizing dynamic load balance of data center gateway
WO2022250735A1 (en) * 2021-05-24 2022-12-01 Vmware, Inc. Allocating additional bandwidth to resources in a datacenter through deployment of dedicated gateways
US11582147B2 (en) 2021-05-24 2023-02-14 Vmware, Inc. Allocating additional bandwidth to resources in a datacenter through deployment of dedicated gateways
US11606290B2 (en) 2021-03-25 2023-03-14 Vmware, Inc. Connectivity between virtual datacenters
US11729094B2 (en) 2021-07-02 2023-08-15 Vmware, Inc. Source-based routing for virtual datacenters
US11843547B2 (en) 2020-09-21 2023-12-12 Vmware, Inc. Allocating additional bandwidth to resources in a datacenter through deployment of dedicated gateways
US11962493B2 (en) 2022-06-21 2024-04-16 VMware LLC Network address translation in active-active edge cluster

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101415248A (en) * 2008-11-21 2009-04-22 中山大学 Method for establishing layer-striding dynamic source route protocol based on load balance
CN102984080A (en) * 2012-12-31 2013-03-20 无锡城市云计算中心有限公司 Load balance method used for cloud computation system
WO2016082546A1 (en) * 2014-11-24 2016-06-02 中兴通讯股份有限公司 Decision-making method and apparatus for virtual machine migration
US20160328252A1 (en) * 2015-05-04 2016-11-10 Cisco Technology, Inc. Virtual modem termination system migration in a cable modem network environment
CN106559451A (en) * 2015-09-29 2017-04-05 杭州华三通信技术有限公司 Customer shift method and device
CN108664116A (en) * 2018-04-27 2018-10-16 北京邮电大学 Adaptive electricity saving method, device and the cpu controller of network function virtualization
CN110753002A (en) * 2019-09-29 2020-02-04 北京浪潮数据技术有限公司 Traffic scheduling method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101415248A (en) * 2008-11-21 2009-04-22 中山大学 Method for establishing layer-striding dynamic source route protocol based on load balance
CN102984080A (en) * 2012-12-31 2013-03-20 无锡城市云计算中心有限公司 Load balance method used for cloud computation system
WO2016082546A1 (en) * 2014-11-24 2016-06-02 中兴通讯股份有限公司 Decision-making method and apparatus for virtual machine migration
US20160328252A1 (en) * 2015-05-04 2016-11-10 Cisco Technology, Inc. Virtual modem termination system migration in a cable modem network environment
CN106559451A (en) * 2015-09-29 2017-04-05 杭州华三通信技术有限公司 Customer shift method and device
CN108664116A (en) * 2018-04-27 2018-10-16 北京邮电大学 Adaptive electricity saving method, device and the cpu controller of network function virtualization
CN110753002A (en) * 2019-09-29 2020-02-04 北京浪潮数据技术有限公司 Traffic scheduling method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11843547B2 (en) 2020-09-21 2023-12-12 Vmware, Inc. Allocating additional bandwidth to resources in a datacenter through deployment of dedicated gateways
CN112039794A (en) * 2020-11-03 2020-12-04 武汉绿色网络信息服务有限责任公司 Method and device for setting virtual network element, computer equipment and storage medium
US11606290B2 (en) 2021-03-25 2023-03-14 Vmware, Inc. Connectivity between virtual datacenters
WO2022250735A1 (en) * 2021-05-24 2022-12-01 Vmware, Inc. Allocating additional bandwidth to resources in a datacenter through deployment of dedicated gateways
US11582147B2 (en) 2021-05-24 2023-02-14 Vmware, Inc. Allocating additional bandwidth to resources in a datacenter through deployment of dedicated gateways
US11729095B2 (en) 2021-05-24 2023-08-15 Vmware, Inc. Allocating additional bandwidth to resources in a datacenter through deployment of dedicated gateways
US11729094B2 (en) 2021-07-02 2023-08-15 Vmware, Inc. Source-based routing for virtual datacenters
CN114466016A (en) * 2022-03-04 2022-05-10 烽火通信科技股份有限公司 Method and system for realizing dynamic load balance of data center gateway
CN114466016B (en) * 2022-03-04 2023-06-09 烽火通信科技股份有限公司 Method and system for realizing dynamic load balancing of data center gateway
US11962493B2 (en) 2022-06-21 2024-04-16 VMware LLC Network address translation in active-active edge cluster

Also Published As

Publication number Publication date
CN111478850B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
CN111478850B (en) Gateway adjusting method and device
CN108886496B (en) Multi-path virtual switching
US11042639B2 (en) Excluding stressed machines from load balancing of distributed applications
US10594580B2 (en) Network function virtualization management system
US20230185630A1 (en) Monitoring and optimizing interhost network traffic
US10044581B1 (en) Network traffic tracking using encapsulation protocol
CN114342330A (en) Collecting and analyzing data about flows associated with DPI parameters
US11861453B2 (en) Network anomaly detection
US10033602B1 (en) Network health management using metrics from encapsulation protocol endpoints
CN111698158B (en) Method and device for electing master equipment and machine-readable storage medium
CN110557342B (en) Apparatus for analyzing and mitigating dropped packets
US11102065B2 (en) Detecting and resolving multicast traffic performance issues
JP2022532731A (en) Avoiding congestion in slice-based networks
US11321004B2 (en) Hierarchical data bus architecture in a network functions virtualization system
WO2017032223A1 (en) Virtual machine deployment method and apparatus
US20200287842A1 (en) Providing and Using a Distributed Forwarding Service
US9288141B2 (en) Highly scalable modular system with high reliability and low latency
CN111404839A (en) Message processing method and device
US10764722B2 (en) Subscriber sampling for network packet forwarding based upon unique subscriber identifiers
US10568112B1 (en) Packet processing in a software defined datacenter based on priorities of virtual end points
US20240031273A1 (en) Method for modifying an sd-wan using metric-based heat maps
WO2024019853A1 (en) Method for modifying an sd-wan using metric-based heat maps
WO2024078696A1 (en) User plane entity enhancement for supporting in-network computing in a mobile network
CN115396373A (en) Information processing method and system based on cloud server and electronic equipment
CN110875908A (en) Method and equipment for defending distributed denial of service attack

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