CN106453118B - Flow control method and flow control system - Google Patents

Flow control method and flow control system Download PDF

Info

Publication number
CN106453118B
CN106453118B CN201610998107.9A CN201610998107A CN106453118B CN 106453118 B CN106453118 B CN 106453118B CN 201610998107 A CN201610998107 A CN 201610998107A CN 106453118 B CN106453118 B CN 106453118B
Authority
CN
China
Prior art keywords
local
virtual server
flow controller
virtual
information
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
CN201610998107.9A
Other languages
Chinese (zh)
Other versions
CN106453118A (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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201610998107.9A priority Critical patent/CN106453118B/en
Publication of CN106453118A publication Critical patent/CN106453118A/en
Application granted granted Critical
Publication of CN106453118B publication Critical patent/CN106453118B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a flow control method and a flow control system, which are used for monitoring position information of a virtual server, changing a local flow control strategy of a local flow controller according to the position information if the position of the virtual server changes, and enabling a global flow controller to change the global flow control strategy according to the information of the local virtual server, thereby improving the flow control effect of a double-active virtual data center. The method provided by the embodiment of the invention comprises the following steps: monitoring position information of the virtual server; judging whether the position of the virtual server relative to the local flow controller changes or not according to the position information; if so, changing a local flow control strategy of the local flow controller according to the position information, and obtaining local virtual server information of the local flow controller; and sending the local virtual server information to the global flow controller, so that the global flow controller changes the global flow control strategy according to the local virtual server information.

Description

Flow control method and flow control system
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a flow control method and a flow control system.
Background
The virtualized data center is characterized in that the data center realizes virtualization of servers, storage and networks by using virtualization technology, such as VMware, forms an IT elastic resource pool, shields the requirements of services on bottom hardware, and realizes automatic scheduling and management of resources. Virtualization technology vendors are continually releasing virtualized data center solutions. The most important technology is a virtual machine migration technology, which is called live migration or real-time migration, that is, the storage/recovery of a virtual machine usually completely stores the running state of the whole virtual machine, and can be quickly recovered to the original hardware platform or even different hardware platforms, after the recovery, the virtual machine still runs smoothly, and a user cannot perceive any difference. The virtual machine migration technology can flexibly allocate the computing resources of the data center, and further improve the utilization rate of the virtual machine resources. The network architecture of traditional data centers has also been changed by the live migration. After the virtual machine is migrated, an Internet Protocol (IP) address and a Media Access Control (MAC) address which are interconnected between networks of the server are not changed, and a user needs to build a large two-layer network environment between the dual-active data centers in order to enable the migrated server to be directly used, so that the servers of the two data centers are in the same local area network, and service interruption caused by migration is avoided, and network configuration is manually changed. The double-active data center is two data centers which are mutually active and standby and are in operation. A large two-tier network refers to a logical lan formed by several independent lans through some technique (e.g., tunneling).
However, such network architecture changes in the data center also place new demands on the flow control equipment. The traditional local flow control equipment cannot position a virtual machine, so that the local flow control equipment cannot change a local flow control strategy, and request data are sent to a virtual server of a local data center and a virtual server of a remote data center, so that a part of the request data is transmitted to an opposite terminal by building a two-layer tunnel, and the time consumption of the part of the request data is large; since the local flow control device cannot locate the position of the virtual machine, and the local flow control device cannot feed back changes of the virtual server (including migration, addition, removal, failure, and the like between data centers) to the global flow control device, the policy distributed by the global flow control device to each local flow control device is always unchanged, and thus, after the position of the virtual server changes, the flow control effect of the data center will be poor.
Disclosure of Invention
The invention provides a flow control method and a flow control system, which are used for monitoring position information of a virtual server, changing a local flow control strategy of a local flow controller according to the position information if the position of the virtual server changes, and enabling a global flow controller to change the global flow control strategy according to the information of the local virtual server, thereby improving the flow control effect of a double-active virtual data center.
The first aspect of the present invention provides a flow control method, which is applied to a flow control system of a dual-active virtualized data center, where the flow control system includes a virtual server, a local flow controller, and a global flow controller, and the flow control method includes:
monitoring the position information of the virtual servers, wherein the position information comprises the current position of the virtual servers relative to the local flow controller, and the number of the virtual servers is at least one;
judging whether the position of the virtual server relative to the local flow controller changes or not according to the position information;
if yes, changing a local flow control strategy of the local flow controller according to the position information, and obtaining local virtual server information of the local flow controller;
and sending the local virtual server information to the global flow controller, so that the global flow controller changes a global flow control strategy according to the local virtual server information.
With reference to the first aspect of the present invention, in a first implementation manner of the first aspect of the present invention, the monitoring location information of the virtual server includes:
sending detection data to the virtual server, so that the virtual server feeds back response data according to the detection data;
receiving response data fed back by the virtual server;
and obtaining the position information of the virtual server according to the response data, wherein the position information comprises the current position of the virtual server relative to the local flow controller.
With reference to the first aspect of the present invention, in a second aspect of the present invention, the determining, according to the location information, whether the location of the virtual server with respect to the local traffic controller changes includes:
analyzing the position information to obtain the current position of the virtual server relative to the local flow controller;
extracting a preset position of the virtual server relative to the local flow controller from a database;
judging whether the current position is consistent with the preset position or not;
if the current position is consistent with the preset position, the position of the virtual server relative to the local flow controller is unchanged;
and if the current position is inconsistent with the preset position, the position of the virtual server relative to the local flow controller is changed.
With reference to the second implementation manner of the first aspect of the present invention, in a third implementation manner of the first aspect of the present invention, the changing the local flow control policy of the local flow controller according to the location information and obtaining the local virtual server information of the local flow controller includes:
performing server classification on the virtual servers according to the position information, wherein the server classification comprises a local virtual server and a remote virtual server;
changing a local flow control strategy of the local flow controller according to the virtual device classification, wherein the local flow control strategy is used for the local flow controller to preferentially distribute flow to the local virtual server;
and counting to obtain the local virtual server information corresponding to the local flow controller, wherein the local virtual server information comprises the number of the local virtual servers.
With reference to the first aspect, the first embodiment of the first aspect, the second embodiment of the first aspect, or the third embodiment of the first aspect, in a fourth embodiment of the first aspect of the present invention, the flow rate control method further includes:
and if the position of the virtual server relative to the local flow controller is not changed, monitoring the position information of the virtual server.
The second aspect of the present invention provides a flow control system applied to a dual-active virtualized data center, including:
the system comprises a virtual server, a local flow controller and a global flow controller, wherein the local flow controller comprises a position monitor, a judging module, a processing module and a sending module;
the position monitor is used for monitoring the position information of the virtual servers, and the number of the virtual servers is at least one;
the judging module is used for judging whether the position of the virtual server relative to the local flow controller changes or not according to the position information;
the processing module is configured to, when the position of the virtual server relative to the local flow controller changes, change the local flow control policy of the local flow controller according to the position information, and obtain local virtual server information of the local flow controller;
the sending module is configured to send the local virtual server information to the global flow controller, so that the global flow controller changes a global flow control policy according to the local virtual server information.
In combination with the second aspect of the present invention, in the first embodiment of the second aspect of the present invention,
the position monitor is specifically configured to send probe data to the virtual server, so that the virtual server feeds back response data according to the probe data;
the position monitor is further used for receiving response data fed back by the virtual server;
the position monitor is further configured to obtain position information of the virtual server according to the response data, where the position information includes a current position of the virtual server relative to the local flow controller.
In combination with the first embodiment of the second aspect of the present invention, in the second embodiment of the second aspect of the present invention,
the judging module is specifically configured to analyze the location information to obtain a current location of the virtual server relative to the local flow controller;
the judging module is further used for extracting the preset position of the virtual server relative to the local flow controller from a database;
the judging module is further configured to judge whether the current position is consistent with the preset position, and if the current position is consistent with the preset position, the position of the virtual server relative to the local flow controller is unchanged; and if the current position is inconsistent with the preset position, the position of the virtual server relative to the local flow controller is changed.
In combination with the second embodiment of the second aspect of the present invention, in the third embodiment of the second aspect of the present invention,
the processing unit is specifically configured to perform server classification on the virtual servers according to the location information, where the server classification includes a local virtual server and a remote virtual server;
the processing unit is further configured to change a local flow control policy of the local flow controller according to the virtual device classification, where the local flow control policy is that the local flow controller preferentially allocates flow to the local virtual server;
the processing unit is further configured to obtain, through statistics, local virtual server information corresponding to the local flow controller, where the local virtual server information includes the number of the local virtual servers.
With reference to the second aspect of the present invention, the first embodiment of the second aspect, the second embodiment of the second aspect, or the third embodiment of the second aspect, in the fourth embodiment of the second aspect of the present invention,
the position monitor is further configured to monitor position information of the virtual server when the position of the virtual server relative to the local flow controller is unchanged.
In summary, the embodiments of the present invention have the following advantages:
the flow control system of the double-active virtual data center monitors the position information of the virtual servers, wherein the position information comprises the current position of the virtual servers relative to a local flow controller, and at least one virtual server is provided; judging whether the position of the virtual server relative to the local flow controller changes or not according to the position information; if so, changing a local flow control strategy of the local flow controller according to the position information, and obtaining local virtual server information of the local flow controller; and sending the local virtual server information to the global flow controller, so that the global flow controller changes the global flow control strategy according to the local virtual server information. Compared with the prior art, the position information of the virtual server can be monitored, and if the position changes, the local flow controller can change the local flow control strategy according to the position information of the virtual server; and the information of the local virtual server is fed back to the global flow controller, so that the global flow controller changes the global flow control strategy according to the information of the local virtual server, and the flow control effect of the double-active virtual data center is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the embodiments and the drawings used in the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a dual-activity virtualized data center according to the present invention;
FIG. 2 is a schematic diagram of a flow control method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another embodiment of the flow control method of the present invention;
fig. 4 is a schematic structural diagram of the flow control system of the present invention.
Detailed Description
The invention provides a flow control method and a flow control system, which are used for monitoring position information of a virtual server, changing a local flow control strategy of a local flow controller according to the position information if the position of the virtual server changes, and enabling a global flow controller to change the global flow control strategy according to the information of the local virtual server, thereby improving the flow control effect of a double-active virtual data center.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Fig. 1 is a schematic structural diagram of a dual-active virtualized data center of the present invention, wherein a data center 1 and a data center 2, which are active and standby each other, are both in operation, and a tunnel 1 built by using tunnel equipment between the two data centers constitutes a large two-layer network environment. Tunneling is a way of communicating data between networks by using the infrastructure of the internetwork. A tunnel 2 is established between the local flow controller 1 in the data center 1 and the local flow controller 2 in the data center 2. The local flow controller 1 and the domain controller 1 are connected through a LAN (local area network) line (including VLAN and other types), the local flow controller 2 and the domain controller 2 are connected through the LAN line, the domain controller 1 is accessed into the virtual server 1 and the virtual server 2, the domain controller 2 is accessed into the virtual server 3, and the domain controller is a plurality of devices connected with the domain controller, which can access shared resources, such as shared internet access and the like, as long as the devices are accessed into a network.
It should be noted that fig. 1 provides only 3 virtual servers in the dual-active virtualized data center, and in practical cases, a larger number of virtual servers may be included.
And bridging the tunnel and the network port of the LAN on the local traffic controller to generate a switching port. An IP address is configured on the switching port to access the virtual server service. The location information of the virtual server can be monitored by a location monitor connected to the switch port of the local traffic controller.
The flow control method applied to the above-mentioned dual-active virtualized data center is described in detail by the following embodiments.
Referring to fig. 2, an embodiment of a flow control method according to an embodiment of the present invention includes:
201. monitoring position information of the virtual server;
in this embodiment, the location information of the virtual server is monitored in real time, specifically, the location information of the virtual server is obtained by accessing the location of the virtual server through the switch port of the local traffic controller, where the location information is the current location of the virtual server relative to the local traffic controller, for example, in fig. 1, the current location of the virtual server 1 relative to the local traffic controller 1 is local, and the current location of the virtual server 1 relative to the local traffic controller 2 is remote.
202. Judging whether the position of the virtual server relative to the local flow controller changes or not according to the position information, if so, executing a step 203;
in this embodiment, since the current location of the virtual server relative to the local traffic controller can be known according to the location information, if the virtual server is migrated or deleted, the location of the virtual server relative to the local traffic controller can be known to have changed according to the location information, for example, the virtual server 1 in fig. 1 is migrated from the data center 1 to the data center 2, and then step 203 is executed.
203. Changing a local flow control strategy of the local flow controller according to the position information, and obtaining local virtual server information of the local flow controller;
in this embodiment, after the position of the virtual server is changed, the change of the virtual server in the data center where the local flow controller is located can be known according to the position information, so as to change the local flow control policy of the local flow controller, for example, the local flow controller 1 is originally connected to the virtual server 1 and the virtual server 2, and the local flow controller 2 is originally connected to the virtual server 3; after migration of the virtual server 1, the local traffic controller 1 connects to the virtual server 2, and the local traffic controller 2 connects the virtual server 3 and the virtual server 1. The original local flow control strategy of the local flow controller 1 is to schedule data to the virtual server 1 and the virtual server 2 as much as possible, and only when the virtual server 1 and the virtual server 2 are busy, the flow is allowed to be scheduled to the virtual server 3, the changed local flow control strategy is to schedule data to the virtual server 2 as much as possible, and when the virtual server 2 is busy, the flow is allowed to be scheduled to the virtual server 1 and the virtual server 3. Similarly, the local flow control policy of the local flow controller 2 is changed, and after the local flow control policy is changed, the local virtual server information of the local flow controller is collected and obtained, for example, the local virtual server information of the local flow controller 1 is a virtual server, and the number of the virtual server is 2; the local virtual server information of the local traffic controller 2 is two virtual servers, which are numbered 1 and 3.
It should be noted here that if the virtual server 1 migrates during the request phase of the user, the request data needs to be sent from the local traffic controller 1 to the virtual server 1 in the data center 2 by tunneling.
204. And sending the local virtual server information to the global flow controller.
In this embodiment, the local virtual server information is sent to the global flow controller, and the global flow controller can change the global flow control policy according to the local virtual server information, for example, the global flow controller determines that the data center 1 where the local flow controller 1 is located has one virtual server 2 according to the local virtual server information, the data center 2 where the local flow controller 2 is located has two virtual servers 1 and 3, and change the flow scheduling according to the ratio of the number of the virtual servers of the two data centers. It should be noted that, the global flow control policy modification according to the ratio of the number of the virtual servers is only one way, and is not limited specifically.
In the embodiment of the invention, a flow control system of a double-active virtual data center monitors the position information of the virtual servers, wherein the position information comprises the current position of the virtual servers relative to a local flow controller, and at least one virtual server is provided; judging whether the position of the virtual server relative to the local flow controller changes or not according to the position information; if so, changing a local flow control strategy of the local flow controller according to the position information, and obtaining local virtual server information of the local flow controller; and sending the local virtual server information to the global flow controller, so that the global flow controller changes the global flow control strategy according to the local virtual server information. Compared with the prior art, the position information of the virtual server can be monitored, and if the position changes, the local flow controller can change the local flow control strategy according to the position information of the virtual server; and the information of the local virtual server is fed back to the global flow controller, so that the global flow controller changes the global flow control strategy according to the information of the local virtual server, and the flow control effect of the double-active virtual data center is improved.
Optionally, in some embodiments of the present invention, monitoring location information of the virtual server includes:
sending detection data to the virtual server, so that the virtual server feeds back response data according to the detection data;
receiving response data fed back by the virtual server;
and obtaining the position information of the virtual server according to the response data, wherein the position information comprises the current position of the virtual server relative to the local flow controller.
In the embodiment of the present invention, the position information of the monitoring virtual server 1 is taken as an example for description, and the position information of the monitoring virtual server 1 specifically includes: sending detection data to a virtual server 1 with a known IP address through switching ports of a local flow controller 1 and a local flow controller 2, feeding back response data after the virtual server 1 receives the detection data, respectively receiving the response data by the local flow controller 1 and the local flow controller 2, and if the virtual server 1 is in a data center 1, sending the response data received by the local flow controller 1 from a domain controller 1 to obtain that the current position of the virtual server 1 relative to the local flow controller 1 is in the same data center; the response data received by the local traffic controller 2 is sent from the tunnel 2, and it is obtained that the current location of the virtual server 1 relative to the local traffic controller 2 is in a different data center, which illustrates that location monitoring for the virtual server is possible.
Optionally, in some embodiments of the present invention, determining whether the position of the virtual server relative to the local traffic controller changes according to the position information includes:
analyzing the position information to obtain the current position of the virtual server relative to the local flow controller;
extracting a preset position of the virtual server relative to the local flow controller from the database;
judging whether the current position is consistent with a preset position or not;
if the current position is consistent with the preset position, the position of the virtual server relative to the local flow controller is unchanged;
and if the current position is inconsistent with the preset position, the position of the virtual server relative to the local flow controller is changed.
In the embodiment of the present invention, a virtual server 1 is taken as an example for explanation, in fig. 1, a preset position of the virtual server 1 is in a data center 1, and through monitoring in the previous embodiment, position information of the virtual server 1 is obtained, and current positions of the virtual server 1 relative to a local flow controller 1 and a local flow controller 2 can be obtained through analysis, and if the current positions of the virtual server 1 relative to the local flow controller 1 are in the same data center, it indicates that the positions of the virtual server 1 relative to the local flow controller 1 and the local flow controller 2 are not changed; if the current position of the virtual server 1 relative to the local flow controller 2 is in the same data center, it indicates that the position of the virtual server 1 relative to the local flow controller 1 and the local flow controller 2 has changed, and explains whether the position of the virtual server has changed, so as to provide guarantee for implementing automatic flow control policy change.
Optionally, in some embodiments of the present invention, changing a local flow control policy of the local flow controller according to the location information, and obtaining local virtual server information of the local flow controller includes:
performing server classification on the virtual servers according to the position information, wherein the server classification comprises a local virtual server and a remote virtual server;
changing a local flow control strategy of the local flow controller according to the virtual device classification, wherein the local flow control strategy is used for the local flow controller to preferentially distribute flow for the local virtual server;
and counting to obtain the local virtual server information corresponding to the local flow controller, wherein the local virtual server information comprises the number of the local virtual servers.
In the embodiment of the present invention, the position of the virtual server relative to the local flow controller may be obtained according to the position information, so as to classify the virtual servers into server classes, for example, in fig. 1, the local flow controller 1 classifies the virtual server 1 and the virtual server 2 into a local virtual server, and classifies the virtual server 3 into a remote virtual server; the local traffic controller 2 classifies the virtual server 1 and the virtual server 2 as remote virtual servers and the virtual server 3 as local virtual servers. And changing a local flow control strategy of the local flow controller according to the virtual device classification, wherein the local flow control strategy is that the local flow controller preferentially distributes flow to the local virtual servers, and counting to obtain local virtual server information corresponding to the local flow controller, wherein the local virtual server information comprises the number of the local virtual servers, and how to change the local flow control strategy is explained, so that the scheme has actual operability.
Optionally, as shown in fig. 3, in some embodiments of the present invention, the flow control method further includes:
and if the position of the virtual server relative to the local flow controller is not changed, monitoring the position information of the virtual server.
In the embodiment of the present invention, in the embodiment shown in fig. 2, when it is determined in step 202 that the position of the virtual server relative to the local flow controller does not change, step 201 is continuously performed to monitor the position information of the virtual server, so as to automatically monitor the position change of the virtual server, and dynamically adjust the local flow control policy and the global flow control policy.
The flow control method of the present invention is described in the above embodiments, and the flow control system is described in detail by the embodiments below.
Referring to fig. 4, an embodiment of the present invention provides a flow control system, including:
the virtual server 40, the local traffic controller 41 and the global traffic controller 42, wherein the local traffic controller 41 includes a location monitor 411, a determination module 412, a processing module 413 and a sending module 414;
a location monitor 411 for monitoring location information of the virtual servers 40, wherein at least one virtual server 40 is provided;
a judging module 412, configured to judge whether the position of the virtual server 40 relative to the local flow controller 41 changes according to the position information;
a processing module 413, configured to, when the position of the virtual server 40 relative to the local traffic controller 41 changes, change the local traffic control policy of the local traffic controller 41 according to the position information, and obtain local virtual server information of the local traffic controller;
a sending module 414, configured to send the local virtual server information to the global flow controller 42, so that the global flow controller 42 changes the global flow control policy according to the local virtual server information.
Alternatively, in some embodiments of the present invention,
the location monitor 411 is specifically configured to send probe data to the virtual server 40, so that the virtual server 40 feeds back response data according to the probe data;
the location monitor 411 is further configured to receive response data fed back by the virtual server 40;
the location monitor 411 is further configured to obtain location information of the virtual server 40 according to the response data, where the location information includes a current location of the virtual server 40 relative to the local flow controller 41.
Alternatively, in some embodiments of the present invention,
a determining module 412, specifically configured to analyze the position information to obtain a current position of the virtual server 40 relative to the local flow controller 41;
the judging module 412 is further configured to extract a preset position of the virtual server 40 relative to the local flow controller 41 from the database;
the determining module 412 is further configured to determine whether the current position is consistent with the preset position, and if the current position is consistent with the preset position, the position of the virtual server 40 relative to the local flow controller 41 is unchanged; if the current position does not coincide with the preset position, the position of the virtual server 40 with respect to the local flow controller 41 changes.
Alternatively, in some embodiments of the present invention,
the processing unit 413 is specifically configured to perform server classification on the virtual server 40 according to the location information, where the server classification includes a local virtual server and a remote virtual server;
the processing unit 413 is further configured to change a local flow control policy of the local flow controller 41 according to the virtual device classification, where the local flow control policy is that the local flow controller 41 preferentially allocates flow to the local virtual server;
the processing unit 413 is further configured to obtain, through statistics, local virtual server information corresponding to the local traffic controller 41, where the local virtual server information includes the number of local virtual servers.
Alternatively, in some embodiments of the present invention,
the location monitor 411 is further configured to monitor location information of the virtual server 40 when the location of the virtual server 40 relative to the local traffic controller 41 is unchanged.
In summary, the location monitor 411 in the local flow controller 41 may monitor the location information of the virtual server 40, and if the location changes, the processing module 413 may change the local flow control policy according to the location information of the virtual server 40; and the sending module 414 feeds back the local virtual server information to the global flow controller 42, so that the global flow controller 42 changes the global flow control strategy according to the local virtual server information, thereby improving the flow control effect of the dual-active virtual data center.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A flow control method is applied to a flow control system of a double-active virtual data center, wherein the flow control system comprises a virtual server, a local flow controller and a global flow controller, and the flow control method comprises the following steps:
monitoring the position information of the virtual servers, wherein the position information comprises the current position of the virtual servers relative to the local flow controller, and the number of the virtual servers is at least one;
judging whether the position of the virtual server relative to the local flow controller changes or not according to the position information;
if yes, changing a local flow control strategy of the local flow controller according to the position information, and obtaining local virtual server information of the local flow controller;
sending the local virtual server information to the global flow controller, so that the global flow controller changes a global flow control strategy according to the local virtual server information;
the determining whether the position of the virtual server relative to the local traffic controller changes according to the position information includes:
extracting a preset position of the virtual server relative to the local flow controller from a database;
judging whether the current position contained in the position information is consistent with the preset position or not;
if the current position is consistent with the preset position, the position of the virtual server relative to the local flow controller is unchanged;
and if the current position is inconsistent with the preset position, the position of the virtual server relative to the local flow controller is changed.
2. The traffic control method according to claim 1, wherein the monitoring the location information of the virtual server includes:
sending detection data to the virtual server, so that the virtual server feeds back response data according to the detection data;
receiving response data fed back by the virtual server;
and obtaining the position information of the virtual server according to the response data, wherein the position information comprises the current position of the virtual server relative to the local flow controller.
3. The method of claim 2, wherein the modifying the local flow control policy of the local flow controller according to the location information and obtaining the local virtual server information of the local flow controller comprises:
performing server classification on the virtual servers according to the position information, wherein the server classification comprises a local virtual server and a remote virtual server;
changing a local flow control strategy of the local flow controller according to the virtual device classification, wherein the local flow control strategy is used for the local flow controller to preferentially distribute flow to the local virtual server;
and counting to obtain the local virtual server information corresponding to the local flow controller, wherein the local virtual server information comprises the number of the local virtual servers.
4. The flow control method according to any one of claims 1 to 3, characterized by further comprising:
and if the position of the virtual server relative to the local flow controller is not changed, monitoring the position information of the virtual server.
5. A flow control system applied to a double-activity virtual data center is characterized by comprising:
the system comprises a virtual server, a local flow controller and a global flow controller, wherein the local flow controller comprises a position monitor, a judging module, a processing module and a sending module;
the position monitor is used for monitoring the position information of the virtual servers, the position information comprises the current position of the virtual servers relative to the local flow controller, and at least one virtual server is provided;
the judging module is used for judging whether the position of the virtual server relative to the local flow controller changes or not according to the position information;
the processing module is configured to, when the position of the virtual server relative to the local flow controller changes, change the local flow control policy of the local flow controller according to the position information, and obtain local virtual server information of the local flow controller;
the sending module is configured to send the local virtual server information to the global flow controller, so that the global flow controller changes a global flow control policy according to the local virtual server information;
the judging module is specifically configured to extract a preset position of the virtual server relative to the local flow controller from a database;
the determining module is further configured to determine whether the current position included in the position information is consistent with the preset position, and if the current position is consistent with the preset position, the position of the virtual server relative to the local flow controller is unchanged; and if the current position is inconsistent with the preset position, the position of the virtual server relative to the local flow controller is changed.
6. The flow control system of claim 5,
the position monitor is specifically configured to send probe data to the virtual server, so that the virtual server feeds back response data according to the probe data;
the position monitor is further used for receiving response data fed back by the virtual server;
the position monitor is further configured to obtain position information of the virtual server according to the response data, where the position information includes a current position of the virtual server relative to the local flow controller.
7. The flow control system of claim 6,
the processing module is specifically configured to perform server classification on the virtual servers according to the location information, where the server classification includes a local virtual server and a remote virtual server;
the processing module is further configured to change a local flow control policy of the local flow controller according to the virtual device classification, where the local flow control policy is that the local flow controller preferentially allocates flow to the local virtual server;
the processing module is further configured to obtain, through statistics, local virtual server information corresponding to the local flow controller, where the local virtual server information includes the number of the local virtual servers.
8. The flow control system according to any one of claims 5 to 7,
the position monitor is further configured to monitor position information of the virtual server when the position of the virtual server relative to the local flow controller is unchanged.
CN201610998107.9A 2016-11-11 2016-11-11 Flow control method and flow control system Active CN106453118B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610998107.9A CN106453118B (en) 2016-11-11 2016-11-11 Flow control method and flow control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610998107.9A CN106453118B (en) 2016-11-11 2016-11-11 Flow control method and flow control system

Publications (2)

Publication Number Publication Date
CN106453118A CN106453118A (en) 2017-02-22
CN106453118B true CN106453118B (en) 2020-01-07

Family

ID=58208534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610998107.9A Active CN106453118B (en) 2016-11-11 2016-11-11 Flow control method and flow control system

Country Status (1)

Country Link
CN (1) CN106453118B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115220417B (en) * 2021-12-08 2024-01-30 广州汽车集团股份有限公司 Vehicle-mounted flow acquisition method and device and vehicle-mounted flow acquisition terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316043B (en) * 2011-09-29 2014-01-01 中国联合网络通信集团有限公司 Port virtualization method, switch and communication system
CN103207801B (en) * 2012-01-11 2016-09-14 华为技术有限公司 The methods, devices and systems of virtual machine (vm) migration and fibre channel media
CN103139039B (en) * 2013-02-25 2016-07-13 汉柏科技有限公司 A kind of virtual network realizing flow isolation control and construction method
CN103152200B (en) * 2013-03-07 2016-08-03 华为技术有限公司 Virtual machine migration method, switch, network management device and network system
CN105099939A (en) * 2014-04-23 2015-11-25 株式会社日立制作所 Method and device for implementing flow control among different data centers

Also Published As

Publication number Publication date
CN106453118A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
US20210152443A1 (en) Technologies for annotating process and user information for network flows
US11115466B2 (en) Distributed network services
CN110865867B (en) Method, device and system for discovering application topological relation
US8863138B2 (en) Application service performance in cloud computing
CN103368768B (en) The method of the auto zoom network coverage, device and equipment in mixed cloud environment
US8826274B2 (en) Virtual machine system, networking device and monitoring method of virtual machine system
US10644952B2 (en) VNF failover method and apparatus
US8589919B2 (en) Traffic forwarding for virtual machines
US11095534B1 (en) API-based endpoint discovery of resources in cloud edge locations embedded in telecommunications networks
EP3934206B1 (en) Scalable control plane for telemetry data collection within a distributed computing system
US7778275B2 (en) Method for dynamically allocating network adapters to communication channels for a multi-partition computer system
US11055159B2 (en) System and method for self-healing of application centric infrastructure fabric memory
CN111880902A (en) Pod creation method, device, equipment and readable storage medium
KR20110083084A (en) Apparatus and method for operating server by using virtualization technology
DE102018202432A1 (en) Structure support for the quality of service
CN115328618A (en) Method and system for computer network and storage medium
US11743325B1 (en) Centralized load balancing of resources in cloud edge locations embedded in telecommunications networks
US10110462B1 (en) False positive protection for Network Function Virtualization (NFV) virtual probe deployment
CN106453118B (en) Flow control method and flow control system
CN102868594B (en) Method and device for message processing
US11848833B1 (en) System and method for operational intelligence based on network traffic
CN113067771B (en) Managing virtual link aggregation channels
KR20210016910A (en) Method for managing card payment terminal and system therefor
KR20140059700A (en) Flow switch and the operating method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Nanshan District Xueyuan Road in Shenzhen city of Guangdong province 518000 No. 1001 Nanshan Chi Park building A1 layer

Applicant after: SINFOR Polytron Technologies Inc

Address before: Nanshan District Xueyuan Road in Shenzhen city of Guangdong province 518055 No. 1001 Nanshan Chi Park building A1 layer

Applicant before: Shenxinfu Electronics Science and Technology Co., Ltd., Shenzhen

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant