CN109428743B - Method, server, switch and system for migrating QoS configuration along with virtual machine - Google Patents

Method, server, switch and system for migrating QoS configuration along with virtual machine Download PDF

Info

Publication number
CN109428743B
CN109428743B CN201710727976.2A CN201710727976A CN109428743B CN 109428743 B CN109428743 B CN 109428743B CN 201710727976 A CN201710727976 A CN 201710727976A CN 109428743 B CN109428743 B CN 109428743B
Authority
CN
China
Prior art keywords
virtual machine
switch
qos
request message
vdp
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
CN201710727976.2A
Other languages
Chinese (zh)
Other versions
CN109428743A (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.)
China Mobile Communications Group Co Ltd
China Mobile Internet Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Internet 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 China Mobile Communications Group Co Ltd, China Mobile Internet Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710727976.2A priority Critical patent/CN109428743B/en
Publication of CN109428743A publication Critical patent/CN109428743A/en
Application granted granted Critical
Publication of CN109428743B publication Critical patent/CN109428743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • 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/0889Techniques to speed-up the configuration process
    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches

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 method for migrating QoS configuration along with a virtual machine, which comprises the following steps: setting QoS service grade information of the virtual machine; writing the QoS service level information of the virtual machine into a VDP association request message to obtain a modified VDP association request message; sending a modified VDP association request message to the switch; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch; the modified QoS service level information of the virtual machine in the VDP association request message is used for indicating the switch to select QoS configuration information corresponding to the QoS service level information of the virtual machine in a preset QoS configuration information template, and also used for indicating the switch to issue the QoS configuration information to the virtual machine. The invention also discloses a server, a switch and a system.

Description

Method, server, switch and system for migrating QoS configuration along with virtual machine
Technical Field
The invention relates to the technical field of virtual machines in cloud computing, in particular to a method, a server, a switch and a system for migration of Quality of Service (QoS) configuration along with a virtual machine.
Background
Cloud computing has become one of the key points of current technological development, and the importance of a virtualized data center as an important component of cloud computing is self-evident; from the perspective of computing resources such as a host, data center virtualization provides a means for allocating the computing resources as needed, that is, the virtual machine migration is used to improve the resource utilization efficiency.
Because the virtualized data center is formed by deeply fusing three resources, namely calculation, storage and network, the migration of the virtual machine can be successfully realized and must be matched with the appropriate QoS configuration.
The existing Virtual Station Interface Discovery Protocol (Virtual Station Interface, VSI), Discovery and Configuration Protocol, VDP) technology can effectively solve the problem of positioning in new network equipment after Virtual machine migration, but for issuing new QoS Configuration after Virtual machine migration, a switch needs to obtain specific network Configuration from a VSI management server according to VSI information, and then can issue new QoS Configuration.
Disclosure of Invention
In view of this, embodiments of the present invention desirably provide a method, a server, a switch, and a system for QoS configuration to migrate with a virtual machine, so as to implement that new QoS configuration information can be determined by the switch in time with the virtual machine migration, the switch can issue the new QoS configuration information to the virtual machine in real time, and the switch does not need to request new QoS configuration information from a network management device, thereby reducing an interaction flow of a protocol packet, and improving work efficiency.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a method for migrating QoS (quality of service) configuration along with a virtual machine, which comprises the following steps:
setting QoS service grade information of the virtual machine;
writing the QoS service level information of the virtual machine into a VDP association request message of a virtual station interface discovery protocol to obtain a modified VDP association request message;
sending the modified VDP association request message to a switch; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch; the modified QoS service level information of the virtual machine in the VDP association request message is used to instruct the switch to select QoS configuration information corresponding to the QoS service level information of the virtual machine in a preset QoS configuration information template, and is also used to instruct the switch to issue the QoS configuration information to the virtual machine.
In the foregoing solution, after the sending the modified VDP association request packet to the switch, the method further includes:
and receiving a VDP association success message sent by the switch.
In the foregoing solution, before the setting the QoS service class information of the virtual machine, the method further includes:
and creating the virtual machine.
In the foregoing solution, before the setting the QoS service class information of the virtual machine, the method further includes:
sending a VDP disassociation request message to the switch; the VDP disassociation request message is used to instruct the switch to migrate the virtual machine out of the switch and delete the QoS configuration information corresponding to the virtual machine;
and receiving a VDP disassociation response message sent by the switch.
In the foregoing solution, the writing the QoS service class information of the virtual machine into the VDP association request message includes:
adding a virtual station interface Priority (VSI) Priority field in the VDP association request message, wherein the VSI Priority field is positioned between a virtual station interface identity (VSI ID) field and a Filter information format (Filter Info format) field, and the length of the VSI Priority field is one byte;
and writing the QoS service class information of the virtual machine into the VSI Priority field.
The invention also provides a method for migrating the QoS configuration along with the virtual machine, which comprises the following steps:
receiving a modified VDP association request message sent by a server, wherein the modified VDP association request message is obtained by writing QoS service level information of a virtual machine into the VDP association request message by the server; the modified VDP association request message is used for indicating a switch to transfer the virtual machine to the switch;
acquiring QoS service level information of the virtual machine in the modified VDP association request message;
selecting QoS configuration information corresponding to the QoS service level information of the virtual machine from a preset QoS configuration information template;
and issuing the QoS configuration information to the virtual machine.
In the foregoing solution, after the sending the QoS configuration information to the virtual machine, the method further includes:
and sending a VDP association success message to the server.
In the above solution, before receiving the modified VDP association request packet sent by the server, the method further includes:
receiving a VDP disassociation request message sent by the server;
migrating the virtual machine out of the switch according to the VDP disassociation request message, and deleting the QoS configuration information corresponding to the virtual machine;
and sending a VDP disassociation response message to the server.
In the above solution, the preset QoS configuration information template includes different QoS configuration information of the virtual machine, and the different QoS configuration information of the virtual machine corresponds to different QoS service class information of the virtual machine;
the QoS configuration information includes any one of bandwidth information, traffic cache information, scheduling policy information, or any combination thereof.
The present invention also provides a server, comprising: the interface, the memory and the processor are connected through the bus, the memory is used for storing computer programs, and the processor reads the computer programs and is used for:
setting QoS service grade information of the virtual machine;
writing the QoS service level information of the virtual machine into a VDP association request message of a virtual station interface discovery protocol to obtain a modified VDP association request message;
sending the modified VDP association request message to a switch; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch; the modified QoS service level information of the virtual machine in the VDP association request message is used to instruct the switch to select QoS configuration information corresponding to the QoS service level information of the virtual machine in a preset QoS configuration information template, and is also used to instruct the switch to issue the QoS configuration information to the virtual machine.
In the above solution, the processor reads the computer program and is further configured to:
and receiving a VDP association success message sent by the switch.
In the above solution, the processor reads the computer program and is further configured to:
and creating the virtual machine.
In the above solution, the processor reads the computer program and is further configured to:
sending a VDP disassociation request message to the switch; the VDP disassociation request message is used to instruct the switch to migrate the virtual machine out of the switch and delete the QoS configuration information corresponding to the virtual machine;
and receiving a VDP disassociation response message sent by the switch.
In the foregoing solution, the processor reads the computer program to specifically:
adding a virtual station interface Priority (VSI) Priority field in the VDP association request message, wherein the VSI Priority field is positioned between a virtual station interface identity (VSI ID) field and a Filter information format (Filter Info format) field, and the length of the VSI Priority field is one byte;
and writing the QoS service class information of the virtual machine into the VSI Priority field.
The present invention also provides a switch, comprising: the interface, the memory and the processor are connected through the bus, the memory is used for storing computer programs, and the processor reads the computer programs and is used for:
receiving a modified VDP association request message sent by a server, wherein the modified VDP association request message is obtained by writing QoS service level information of a virtual machine into the VDP association request message by the server; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch;
acquiring QoS service level information of the virtual machine in the modified VDP association request message;
selecting QoS configuration information corresponding to the QoS service level information of the virtual machine from a preset QoS configuration information template;
and issuing the QoS configuration information to the virtual machine.
In the above solution, the processor reads the computer program and is further configured to:
and sending a VDP association success message to the server.
In the above solution, the processor reads the computer program and is further configured to:
receiving a VDP disassociation request message sent by the server;
migrating the virtual machine out of the switch according to the VDP disassociation request message, and deleting the QoS configuration information corresponding to the virtual machine;
and sending a VDP disassociation response message to the server.
In the above solution, the preset QoS configuration information template includes different QoS configuration information of the virtual machine, and the different QoS configuration information of the virtual machine corresponds to different QoS service class information of the virtual machine;
the QoS configuration information includes any one of bandwidth information, traffic cache information, scheduling policy information, or any combination thereof.
The invention also provides a system for migration of quality of service, QoS, configurations with virtual machines, the system comprising a server according to any of claims 10 to 14 and a switch according to any of claims 15 to 18.
The present invention also provides a computer readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of QoS configuration migration with a virtual machine according to any of claims 1 to 5.
The present invention also provides a computer readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for QoS configuration migration with a virtual machine according to any of claims 6 to 9.
The present invention also provides a first apparatus, comprising:
the setting module is used for setting QoS service level information of the virtual machine;
a writing module, configured to write the QoS service level information of the virtual machine into a VDP association request message of a virtual station interface discovery protocol, so as to obtain a modified VDP association request message;
a sending module, configured to send the modified VDP association request packet to a switch; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch; the modified QoS service level information of the virtual machine in the VDP association request message is used to instruct the switch to select QoS configuration information corresponding to the QoS service level information of the virtual machine in a preset QoS configuration information template, and is also used to instruct the switch to issue the QoS configuration information to the virtual machine.
The present invention also provides a second apparatus comprising:
a receiving module, configured to receive a modified VDP association request packet sent by a server, where the modified VDP association request packet is obtained by writing, by the server, QoS service level information of a virtual machine into the VDP association request packet; the modified VDP association request packet is used to instruct the second device to migrate the virtual machine to the second device;
an obtaining module, configured to obtain QoS service level information of the virtual machine in the modified VDP association request message;
the selection module is used for selecting QoS configuration information corresponding to the QoS service level information of the virtual machine from a preset QoS configuration information template;
and the issuing module is used for issuing the QoS configuration information to the virtual machine.
According to the method, the server, the switch and the system for migrating the QoS configuration along with the virtual machine, the server sets the QoS service level information of the virtual machine; writing the QoS service level information of the virtual machine into a VDP association request message to obtain a modified VDP association request message; sending a modified VDP association request message to the switch; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch; the modified QoS service level information of the virtual machine in the VDP association request message is used for indicating the switch to select QoS configuration information corresponding to the QoS service level information of the virtual machine in a preset QoS configuration information template and also used for indicating the switch to issue the QoS configuration information to the virtual machine; the QoS configuration information corresponding to the QoS service level information of the virtual machine is transmitted between the server and the switch, the switch selects the QoS configuration information corresponding to the QoS service level information of the virtual machine in the preset QoS configuration information template and issues the QoS configuration information to the virtual machine, new QoS configuration information can be determined by the switch in time along with migration of the virtual machine, the switch can issue the new QoS configuration information to the virtual machine in real time, the switch does not need to request the new QoS configuration information from network management equipment, the interaction flow of protocol messages is reduced, and the working efficiency can be improved.
Drawings
FIG. 1 is a flowchart of a first embodiment of a method for migrating a QoS configuration with a virtual machine according to the present invention;
FIG. 2 is a flowchart of a second embodiment of a method for migrating a QoS configuration with a virtual machine according to the present invention;
FIG. 3 is a flowchart of a third embodiment of a method for migrating a QoS configuration with a virtual machine according to the present invention;
fig. 4 is a schematic structural diagram of a VDP association request packet according to a third embodiment of the method for QoS configuration migration along with a virtual machine according to the present invention;
fig. 5 is a schematic structural diagram of a modified VDP association request packet according to a third embodiment of the method for QoS configuration migration along with a virtual machine in the present invention;
FIG. 6 is a flowchart of a fourth embodiment of a method for migrating a QoS configuration with a virtual machine according to the present invention;
FIG. 7 is a schematic structural diagram of a first apparatus according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a second embodiment of the apparatus of the present invention;
FIG. 9 is a schematic structural diagram of a server according to an embodiment of the present invention;
FIG. 10 is a schematic block diagram of an embodiment of a switch of the present invention;
fig. 11 is a schematic structural diagram of a system embodiment of QoS configuration migration with a virtual machine according to the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Fig. 1 is a flowchart of a first embodiment of a QoS configuration migration method with a virtual machine according to the present invention, and as shown in fig. 1, the QoS configuration migration method with a virtual machine according to the embodiment of the present invention is applied to a server, and the method may include the following steps:
step 101, setting QoS service level information of the virtual machine.
The server sets current QoS service level information for the currently used virtual machine; for example, a virtual machine service provider provides virtual machine rental service to the public, and sets corresponding QoS service level information of a virtual machine according to the rental service level selected by a user; for example, the QoS service levels of the virtual machines are classified into 4 classes, where the QoS service quality of each service level is different, and the QoS service quality is from high to low: the service level of the platinum user, the service level of the gold user, the service level of the silver user and the service level of the copper user; the QoS service grade corresponding to the user A is a platinum user service grade, and the grade corresponding to the user B is a copper plate user service grade; and if the current virtual machine is used by the user A, the server sets the QoS service level information of the virtual machine as the QoS service level information corresponding to the platinum user service level.
And 102, writing the QoS service level information of the virtual machine into a VDP association request message of a virtual station interface discovery protocol to obtain a modified VDP association request message.
The server writes the QoS service level information of the virtual machine determined in the step 101 into a VDP association request message to obtain a modified VDP association request message; the VDP association request message is sent by the server to the switch, and is used to instruct the virtual machine to migrate to the switch, that is, the virtual machine is connected to the switch, so that the traffic of the virtual machine can be forwarded through the switch.
The step 102 is to transmit the QoS service level information of the current virtual machine to the switch for subsequent processing by the switch while transmitting the VDP association request message to the switch by the server.
And 103, sending the modified VDP association request message to a switch.
The server sends a modified VDP association request message to the switch; the modified VDP association request message has the functions of the conventional VDP association request message, namely, the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch; the modified VDP association request message further has a further function, that is, the QoS service level information of the virtual machine in the modified VDP association request message is used to instruct the switch to select QoS configuration information corresponding to the QoS service level information of the virtual machine in a preset QoS configuration information template, and is also used to instruct the switch to issue the QoS configuration information to the virtual machine.
The preset QoS configuration information template is created in advance by an exchanger through an instruction and is stored at one side of the exchanger, the preset QoS configuration information template comprises different QoS configuration information of a virtual machine, and the different QoS configuration information of the virtual machine corresponds to different QoS service level information of the virtual machine; the QoS configuration information includes any one of bandwidth information, traffic buffer information, scheduling policy information, or any combination thereof.
In the method for migrating the QoS configuration along with the virtual machine, the server sets the QoS service level information of the virtual machine; writing the QoS service level information of the virtual machine into a VDP association request message to obtain a modified VDP association request message; sending a modified VDP association request message to the switch; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch; the modified QoS service level information of the virtual machine in the VDP association request message is used for indicating the switch to select QoS configuration information corresponding to the QoS service level information of the virtual machine in a preset QoS configuration information template and also used for indicating the switch to issue the QoS configuration information to the virtual machine; the QoS configuration information corresponding to the QoS service level information of the virtual machine is transmitted between the server and the switch, the switch selects the QoS configuration information corresponding to the QoS service level information of the virtual machine in the preset QoS configuration information template and issues the QoS configuration information to the virtual machine, new QoS configuration information can be determined by the switch in time along with migration of the virtual machine, the switch can issue the new QoS configuration information to the virtual machine in real time, the switch does not need to request the new QoS configuration information from network management equipment, the interaction flow of protocol messages is reduced, and the working efficiency can be improved.
Fig. 2 is a flowchart of a second embodiment of the QoS configuration migration method with a virtual machine according to the present invention, and as shown in fig. 2, the QoS configuration migration method with a virtual machine according to the embodiment of the present invention is applied to a switch, and the method may include the following steps:
step 201, receiving a modified VDP association request message sent by a server, where the modified VDP association request message is obtained by writing QoS service level information of a virtual machine into a VDP association request message by the server.
The method comprises the steps that a switch receives a modified VDP association request message sent by a server, wherein the modified VDP association request message is obtained by writing QoS service level information of a virtual machine into the VDP association request message by the server; the modified VDP association request message is further configured to instruct the switch to migrate the virtual machine to the switch, that is, the switch is connected to the virtual machine, so that the traffic of the virtual machine can be forwarded through the switch.
The server sets current QoS service level information aiming at a currently used virtual machine; for example, a virtual machine service provider provides virtual machine rental service to the public, and sets corresponding QoS service level information of a virtual machine according to the rental service level selected by a user; for example, the QoS service levels of the virtual machines are classified into 4 classes, where the QoS service quality of each service level is different, and the QoS service quality is from high to low: the service level of the platinum user, the service level of the gold user, the service level of the silver user and the service level of the copper user; the QoS service grade corresponding to the user A is a platinum user service grade, and the grade corresponding to the user B is a copper plate user service grade; and if the current virtual machine is used by the user A, the server sets the QoS service level information of the virtual machine as the QoS service level information corresponding to the platinum user service level.
Step 202, obtaining the QoS service level information of the virtual machine in the modified VDP association request message.
The exchanger acquires the QoS service level information of the virtual machine in the modified VDP association request message; for example, referring to the example in step 201, the switch acquires the QoS service level information of the virtual machine in the modified VDP association request message as platinum user service level information.
Step 203, selecting the QoS configuration information corresponding to the QoS service level information of the virtual machine from a preset QoS configuration information template.
The method comprises the steps that a switch selects QoS configuration information corresponding to QoS service level information of a virtual machine in a preset QoS configuration information template; the preset QoS configuration information template is created in advance by an exchanger through an instruction and is stored at one side of the exchanger, the preset QoS configuration information template comprises different QoS configuration information of a virtual machine, and the different QoS configuration information of the virtual machine corresponds to different QoS service level information of the virtual machine; the QoS configuration information includes any one of bandwidth information, traffic buffer information, scheduling policy information, or any combination thereof.
For example, referring to the illustration in step 202, the switch selects QoS configuration information corresponding to the platinum user service class of the virtual machine in the preset QoS configuration information template.
And step 204, sending the QoS configuration information to the virtual machine.
The switch issues the QoS configuration information determined in step 203 to the virtual machine, and the virtual machine performs subsequent task processing according to the QoS configuration information.
In the method for migrating the QoS configuration along with the virtual machine provided by the embodiment of the present invention, the switch receives a modified VDP association request message sent by the server, where the modified VDP association request message is obtained by writing the QoS service level information of the virtual machine into the VDP association request message by the server, and the modified VDP association request message is used to instruct the switch to migrate the virtual machine into the switch; acquiring QoS service level information of the virtual machine in the modified VDP association request message; selecting QoS configuration information corresponding to QoS service level information of the virtual machine from a preset QoS configuration information template; issuing the QoS configuration information to a virtual machine; the QoS configuration information corresponding to the QoS service level information of the virtual machine is transmitted between the server and the switch, the switch selects the QoS configuration information corresponding to the QoS service level information of the virtual machine in the preset QoS configuration information template and issues the QoS configuration information to the virtual machine, new QoS configuration information can be determined by the switch in time along with migration of the virtual machine, the switch can issue the new QoS configuration information to the virtual machine in real time, the switch does not need to request the new QoS configuration information from network management equipment, the interaction flow of protocol messages is reduced, and the working efficiency can be improved.
To further illustrate the object of the present invention, the above embodiments are further illustrated.
Fig. 3 is a flowchart of a third embodiment of a method for QoS configuration migration along with a Virtual machine according to the present invention, and as shown in fig. 3, the method for QoS configuration migration along with a Virtual machine according to the present invention is performed in an environment where a Virtual machine is newly created, and is applied between a server and a switch, and is a process of interaction with each other, in the embodiment of the present invention, the server is an Edge Virtual Bridging (EVB) server, and the switch is an EVB switch, and the method includes the following steps:
step 301, the EVB server creates a virtual machine.
The EVB server creates the virtual machine according to the instruction for creating the virtual machine, which is input by the administrator.
Step 302, the EVB server sets QoS service level information of the virtual machine.
And the EVB server sets the QoS service level information for the currently created virtual machine according to the QoS service level information of the virtual machine set by the administrator.
For example, a virtual machine service provider provides virtual machine rental service to the public, and sets corresponding QoS service level information of a virtual machine according to the rental service level selected by a user; for example, the QoS service levels of the virtual machines are classified into 4 classes, where the QoS service quality of each service level is different, and the QoS service quality is from high to low: the service level of the platinum user, the service level of the gold user, the service level of the silver user and the service level of the copper user; and if the level of the user using the virtual machine is the platinum user service level, the EVB server sets the QoS service level information of the virtual machine to be the QoS service level information corresponding to the platinum user service level.
Step 303, the EVB server writes the QoS service level information of the virtual machine into the VDP association request message to obtain the modified VDP association request message.
Specifically, the EVB server adds a virtual station interface Priority (VSI Priority) field in the VDP association request message, where the VSI Priority field is located between a virtual station interface identity (VSI ID) field and a Filter information format (Filter Info format) field, and the length of the VSI Priority field is one byte; and then, writing the QoS service level information of the virtual machine into the VSI Priority field by the EVB server so as to achieve the purpose of carrying the QoS service level information of the virtual machine.
Fig. 4 is a schematic structural diagram of a VDP association request packet according to a third embodiment of the method for QoS configuration migration along with a virtual machine in the present invention, as shown in fig. 4, the diagram is a schematic format diagram of a Type Length Value (TLV) of the VDP association request packet; based on fig. 4, fig. 5 is a schematic structural diagram of a modified VDP association request message according to a third embodiment of the QoS configuration migration method according to the present invention, and as shown in fig. 5, a VSI Priority field may be added to the VDP association request message, where the VSI Priority field is located between a VSI ID field and a Filter Info format field, and the length of the VSI Priority field is one byte.
And the EVB server writes the QoS service level information of the virtual machine into the VSI Priority field so as to achieve the purpose of carrying the QoS service level information of the virtual machine.
For example, table 1 is a reference definition table of QoS service class information of a virtual machine, as shown in table 1.
TABLE 1
Figure BDA0001386432430000121
Figure BDA0001386432430000131
In combination with the QoS service class scores of the virtual machines described in the example in step 302, the platinum user service class, the gold user service class, the silver user service class, the bronze user service class, and some undefined service classes are represented by different values (Value), and these values (Value) are written into the VSI Priority field to achieve the purpose of carrying the QoS service class information of the virtual machines.
Step 304, the EVB server sends the modified VDP association request message to the EVB switch.
And the EVB server sends the modified VDP association request message to the EVB switch, and the EVB switch receives the modified VDP association request message sent by the EVB server.
And 305, the EVB switch migrates the virtual machine to the EVB switch according to the modified VDP association request message.
And the EVB switch migrates the virtual machine into the EVB switch according to the modified VDP association request message, namely the EVB switch is connected with the virtual machine, so that the flow of the virtual machine can be forwarded through the EVB switch.
Step 306, the EVB switch obtains the QoS service level information of the virtual machine in the modified VDP association request message.
The EVB switch acquires the QoS service level information of the virtual machine in the modified VDP association request message; for example, with reference to the example in step 302, the EVB switch acquires the QoS service level information of the virtual machine in the modified VDP association request message as platinum user service level information.
Step 307, the EVB switch selects QoS configuration information corresponding to the QoS service class information of the virtual machine from a preset QoS configuration information template.
The EVB selects QoS configuration information corresponding to QoS service level information of the virtual machine in a preset QoS configuration information template; specifically, the preset QoS configuration information template is created in advance by the EVB switch through an instruction and stored at one side of the EVB switch, the preset QoS configuration information template includes different QoS configuration information of the virtual machine, and the different QoS configuration information of the virtual machine and the different QoS service level information of the virtual machine correspond to each other; the QoS configuration information includes any one of bandwidth information, traffic buffer information, scheduling policy information, or any combination thereof.
The preset QoS configuration information template may be in a list form, a table form, a database form, or the like.
For example, the preset QoS configuration information template is specifically described as a table format in conjunction with the contents of table 1 in step 303.
Table 2 is a table of the preset QoS configuration information, as shown in table 2.
TABLE 2
Figure BDA0001386432430000141
As can be seen, if the EVB switch determines that the QoS service class information of the virtual machine is platinum user service class information, the bandwidth information, the traffic cache information, and the scheduling policy information corresponding to the corresponding platinum user service class information are selected as currently issued QoS configuration information of the virtual machine according to the preset QoS configuration information table.
And 308, the EVB switch issues the QoS configuration information to the virtual machine.
The EVB switch issues the QoS configuration information determined in step 307 to the virtual machine, and at the same time, issues the network configuration information.
Step 309, the EVB switch sends a VDP association success message to the EVB server.
The EVB sends a VDP association success message to the EVB server, and the EVB server receives the VDP association success message sent by the EVB.
In the method for migrating QoS configuration along with a virtual machine provided by the embodiment of the invention, an EVB server creates the virtual machine; the EVB server sets QoS service level information of the virtual machine; the EVB server writes the QoS service level information of the virtual machine into the VDP association request message to obtain a modified VDP association request message; the EVB server sends a modified VDP association request message to the EVB switch; the EVB switch migrates the virtual machine into the EVB switch according to the modified VDP association request message; the EVB switch acquires the QoS service level information of the virtual machine in the modified VDP association request message; the EVB selects QoS configuration information corresponding to QoS service level information of the virtual machine in a preset QoS configuration information template; the EVB switch issues QoS configuration information to the virtual machine; the EVB sends a VDP association success message to the EVB server; the method comprises the steps that QoS service level information of a virtual machine is transmitted between an EVB server and an EVB switch, the EVB switch selects QoS configuration information corresponding to the QoS service level information of the virtual machine in a preset QoS configuration information template and issues the QoS configuration information to the virtual machine, the EVB server newly establishes the virtual machine, new QoS configuration information can be determined by the EVB switch in time, the EVB switch can issue the new QoS configuration information to the virtual machine in real time, the EVB switch does not need to request the new QoS configuration information from network management equipment, the interaction flow of protocol messages is reduced, and the working efficiency can be improved.
Fig. 6 is a flowchart of a fourth embodiment of the method for QoS configuration migration along with a virtual machine according to the present invention, and as shown in fig. 6, the method for QoS configuration migration along with a virtual machine according to the present invention is performed in a virtual machine migration environment, and is applied between a server and a switch, and mutual interaction processes occur, where the server and the switch may be in a one-to-one, one-to-two, or one-to-many mode, or may be in a many-to-one, two-to-one, or many-to-one mode, and a specific mode may be set according to actual needs, which is not limited herein; in addition, regardless of the mode of the server and the switch, the processing principle of each server and each switch is the same, so in the embodiment of the present invention, the explanation is only given by taking the server and the switch as a one-to-one mode, in the embodiment of the present invention, the server is an EVB server, and the switch is an EVB switch, and the method includes the following steps:
step 601, the EVB server sends a VDP disassociation request message to the EVB switch.
When the EVB server performs a virtual machine migration task, the EVB server sends a VDP disassociation request message to the EVB switch, and the EVB switch receives the VDP disassociation request message sent by the EVB server; the VDP disassociation request message is used to instruct the EVB switch to migrate the virtual machine out of the EVB switch, and delete the QoS configuration information corresponding to the virtual machine.
Step 602, the EVB switch migrates the virtual machine out of the EVB switch according to the VDP disassociation request message, and deletes the QoS configuration information corresponding to the virtual machine.
After receiving the VDP disassociation request message sent by the EVB server, the EVB switch migrates the virtual machine out of the EVB switch according to the VDP disassociation request message, and deletes the QoS configuration information corresponding to the virtual machine.
Step 603, the EVB switch sends a VDP disassociation response message to the EVB server.
The EVB sends a VDP disassociation response message to the EVB server, and the EVB server receives the VDP disassociation response message sent by the EVB; the VDP disassociation response message is used to notify the EVB server that the current virtual machine has migrated out of the EVB switch.
Step 604, the EVB server sets QoS service level information of the virtual machine.
The detailed description of step 604 may refer to that described in step 302, and will not be described herein.
Step 605, the EVB server writes the QoS service level information of the virtual machine into the VDP association request message to obtain the modified VDP association request message.
The specific description of step 605 may refer to that described in step 303, and will not be described herein.
Step 606, the EVB server sends the modified VDP association request message to the EVB switch.
The detailed description of step 606 can refer to that described in step 304, and will not be described herein.
And step 607, the EVB switch migrates the virtual machine to the EVB switch according to the modified VDP association request message.
The specific description of step 607 can refer to that described in step 305, and will not be described herein.
Step 608, the EVB switch obtains the QoS service level information of the virtual machine in the modified VDP association request message.
The detailed description of step 608 may refer to that described in step 306, and will not be described herein.
Step 609, the EVB switch selects QoS configuration information corresponding to the QoS service class information of the virtual machine in the preset QoS configuration information template.
The specific description of step 609 may refer to that described in step 307, which is not described herein.
And step 610, the EVB switch issues QoS configuration information to the virtual machine.
The detailed description of step 610 may refer to that described in step 308, and will not be described herein.
Step 611, the EVB switch sends a VDP association success message to the EVB server.
The detailed description of step 611 can refer to that described in step 309, and will not be described herein.
In the method for migrating QoS configuration along with a virtual machine provided by the embodiment of the invention, an EVB server sends a VDP disassociation request message to an EVB switch; the EVB switch migrates the virtual machine out of the EVB switch according to the VDP disassociation request message and deletes the QoS configuration information corresponding to the virtual machine; the EVB sends a VDP disassociation response message to the EVB server; the EVB server sets QoS service level information of the virtual machine; the EVB server writes the QoS service level information of the virtual machine into the VDP association request message to obtain a modified VDP association request message; the EVB server sends a modified VDP association request message to the EVB switch; the EVB switch migrates the virtual machine into the EVB switch according to the modified VDP association request message; the EVB switch acquires the QoS service level information of the virtual machine in the modified VDP association request message; the EVB selects QoS configuration information corresponding to QoS service level information of the virtual machine in a preset QoS configuration information template; the EVB switch issues QoS configuration information to the virtual machine; the EVB sends a VDP association success message to the EVB server; the QoS configuration information corresponding to the QoS service level information of the virtual machine is transmitted between the EVB server and the EVB switch, the EVB switch selects the QoS configuration information corresponding to the QoS service level information of the virtual machine in the preset QoS configuration information template and sends the QoS configuration information to the virtual machine, the new QoS configuration information can be determined by the EVB switch in time along with migration of the virtual machine, the EVB switch can send the new QoS configuration information to the virtual machine in real time, the EVB switch does not need to request the new QoS configuration information from the network management equipment, the interaction flow of protocol messages is reduced, and the working efficiency can be improved.
Fig. 7 is a schematic structural diagram of a first apparatus according to an embodiment of the present invention, and as shown in fig. 7, a first apparatus 07 according to an embodiment of the present invention includes:
a setting module 71, configured to set QoS service class information of the virtual machine;
a writing module 72, configured to write the QoS service level information of the virtual machine into a VDP association request message of a virtual station interface discovery protocol, so as to obtain a modified VDP association request message;
a sending module 73, configured to send the modified VDP association request packet to a switch; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch; the modified QoS service level information of the virtual machine in the VDP association request message is used to instruct the switch to select QoS configuration information corresponding to the QoS service level information of the virtual machine in a preset QoS configuration information template, and is also used to instruct the switch to issue the QoS configuration information to the virtual machine.
Further, the first device 07 further includes:
a receiving module 74, configured to receive the VDP association success packet sent by the switch.
Further, the first device 07 further includes:
a creating module 75 for creating the virtual machine.
Further, the sending module 73 is further configured to send a VDP disassociation request message to the switch; the VDP disassociation request message is used to instruct the switch to migrate the virtual machine out of the switch and delete the QoS configuration information corresponding to the virtual machine;
the receiving module 74 is further configured to receive a VDP disassociation response message sent by the switch.
Further, the write module 72 is specifically configured to add a virtual station interface Priority VSI Priority field in the VDP association request message, where the VSI Priority field is located between a virtual station interface identity VSI ID field and a Filter information format Filter Info format field, and the length of the VSI Priority field is one byte;
the writing module 72 is further specifically configured to write the QoS service class information of the virtual machine into the VSI Priority field.
It should be noted that: in the method for implementing QoS configuration migration with virtual machine by the first device 07 according to the above embodiment, the above-mentioned division of each program module is merely used as an example, and in practical applications, the above-mentioned processing allocation may be completed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the above-mentioned processing.
The first apparatus of this embodiment may be configured to execute the technical solution of the above-described method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a schematic structural diagram of a second apparatus according to an embodiment of the present invention, and as shown in fig. 8, a second apparatus 08 according to an embodiment of the present invention includes:
a receiving module 81, configured to receive a modified VDP association request packet sent by a server, where the modified VDP association request packet is obtained by writing, by the server, QoS service level information of a virtual machine into the VDP association request packet; the modified VDP association request packet is used to instruct the second device to migrate the virtual machine to the second device;
an obtaining module 82, configured to obtain QoS service level information of the virtual machine in the modified VDP association request message;
a selecting module 83, configured to select QoS configuration information corresponding to QoS service class information of the virtual machine from a preset QoS configuration information template;
and an issuing module 84, configured to issue the QoS configuration information to the virtual machine.
Further, the second device 08 further includes:
a sending module 85, configured to send a VDP association success message to the server.
Further, the receiving module 81 is further configured to receive a VDP disassociation request message sent by the server;
the second device 08 further includes:
an migration module 86, configured to migrate the virtual machine out of the switch according to the VDP disassociation request packet, and delete the QoS configuration information corresponding to the virtual machine;
the sending module 85 is further configured to send a VDP disassociation response message to the server.
Further, the preset QoS configuration information template includes different QoS configuration information of the virtual machine, and the different QoS configuration information of the virtual machine and the different QoS service level information of the virtual machine correspond to each other;
the QoS configuration information includes any one of bandwidth information, traffic cache information, scheduling policy information, or any combination thereof.
It should be noted that: in the second device 08 according to the above embodiment, when executing the method for migrating QoS configuration along with virtual machine, only the above-mentioned division of each program module is taken as an example, and in practical applications, the above-mentioned processing allocation may be completed by different program modules according to needs, that is, the internal structure of the device may be divided into different program modules to complete all or part of the above-mentioned processing.
The second apparatus of this embodiment may be configured to execute the technical solution of the above-described method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 9 is a schematic structural diagram of an embodiment of a server according to the present invention, and as shown in fig. 9, a server 09 provided in the embodiment of the present invention includes: an interface 91, a bus 92, a memory 93, and a processor 94, wherein the interface 91, the memory 93, and the processor 94 are connected via the bus 92, the memory 93 is used for storing a computer program, and the processor 94 reads the computer program to:
setting QoS service grade information of the virtual machine;
writing the QoS service level information of the virtual machine into a VDP association request message of a virtual station interface discovery protocol to obtain a modified VDP association request message;
sending the modified VDP association request message to a switch; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch; the modified QoS service level information of the virtual machine in the VDP association request message is used to instruct the switch to select QoS configuration information corresponding to the QoS service level information of the virtual machine in a preset QoS configuration information template, and is also used to instruct the switch to issue the QoS configuration information to the virtual machine.
Further, the processor 94 reads the computer program to further:
and receiving a VDP association success message sent by the switch.
Further, the processor 94 reads the computer program to further:
and creating the virtual machine.
Further, the processor 94 reads the computer program to further:
sending a VDP disassociation request message to the switch; the VDP disassociation request message is used to instruct the switch to migrate the virtual machine out of the switch and delete the QoS configuration information corresponding to the virtual machine;
and receiving a VDP disassociation response message sent by the switch.
Further, the processor 94 reads the computer program specifically for:
adding a virtual station interface Priority VSI Priority field in the VDP association request message, wherein the VSI Priority field is positioned between a virtual station interface identity VSI ID field and a Filter information format Filter Info format field, and the length of the VSI Priority field is one byte;
and writing the QoS service class information of the virtual machine into the VSI Priority field.
As shown in FIG. 9, the various components in the server 09 are coupled together by a bus 92; it will be appreciated that the bus 92 is used to enable connective communication between these components, and that the bus 92 includes a power bus, a control bus, and a status signal bus in addition to a data bus, although the various buses are labeled as bus 92 in FIG. 9 for clarity of illustration.
The interface 91 may receive and transmit various signals that can be supported, such as control signals, data signals, status signals, and the like.
It will be appreciated that the memory 93 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory; among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Synchronous Random Access Memory), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous link Dynamic Random Access Memory (DRAM, Synchronous Dynamic Random Access Memory), Direct Memory (DRmb Random Access Memory); the memory 93 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 93 in the embodiment of the present invention is used to store various types of data to support the operation of the server 09; examples of such data include: any computer program for operating on the server 09, such as an operating system and application programs; the operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks; the application programs may include various application programs such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services; the program for implementing the method of the embodiment of the present invention may be included in the application program.
The method disclosed in the above embodiments of the present invention may be implemented in the processor 94, or implemented by the processor 94, and the processor 94 may be an integrated circuit chip having signal processing capability. In implementation, the steps of the above method may be performed by instructions in the form of hardware integrated logic circuits or software in the processor 94; the Processor 94 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.; processor 94 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention; a general purpose processor may be a microprocessor or any conventional processor or the like; the steps of the method disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor, where the software modules may be located in a storage medium located in the memory 93, and the processor 94 reads information in the memory 93 and implements the steps of the method in combination with the hardware.
In an exemplary embodiment, the server 09 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field-Programmable Gate arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
The present invention also provides a computer readable storage medium, such as a memory 93, comprising a computer program executable by a processor 94 in the server 09 to perform the steps of the method described above; the computer readable storage medium can be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
Fig. 10 is a schematic structural diagram of an embodiment of a switch according to the present invention, and as shown in fig. 10, a switch 010 provided in the embodiment of the present invention includes: an interface 0101, a bus 0102, a memory 0103, and a processor 0104, wherein the interface 0101, the memory 0103, and the processor 0104 are connected via the bus 0102, the memory 0103 is used for storing a computer program, and the processor 0104 reads the computer program to:
receiving a modified VDP association request message sent by a server, wherein the modified VDP association request message is obtained by writing QoS service level information of a virtual machine into the VDP association request message by the server; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch;
acquiring QoS service level information of the virtual machine in the modified VDP association request message;
selecting QoS configuration information corresponding to the QoS service level information of the virtual machine from a preset QoS configuration information template;
and issuing the QoS configuration information to the virtual machine.
Further, the processor 0104 reads the computer program and is further configured to:
and sending a VDP association success message to the server.
Further, the processor 0104 reads the computer program and is further configured to:
receiving a VDP disassociation request message sent by the server;
migrating the virtual machine out of the switch according to the VDP disassociation request message, and deleting the QoS configuration information corresponding to the virtual machine;
and sending a VDP disassociation response message to the server.
Further, the preset QoS configuration information template includes different QoS configuration information of the virtual machine, and the different QoS configuration information of the virtual machine and the different QoS service level information of the virtual machine correspond to each other;
the QoS configuration information includes any one of bandwidth information, traffic cache information, scheduling policy information, or any combination thereof.
As shown in fig. 10, the various components in switch 010 are coupled together by bus 0102; it will be appreciated that bus 0102 is used to enable connectivity communication between these components, bus 0102 including a power bus, a control bus and a status signal bus in addition to a data bus, but for clarity of illustration the various buses are labeled bus 0102 in fig. 5.
The interface 0101 can receive and transmit various signals capable of being supported, such as control signals, data signals, status signals, and the like.
It is to be appreciated that the memory 0103 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory; among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Synchronous Random Access Memory), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous link Dynamic Random Access Memory (DRAM, Synchronous Dynamic Random Access Memory), Direct Memory (DRmb Random Access Memory); the memory 0103 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
Memory 0103 in an embodiment of the present invention is used to store various types of data to support the operation of switch 010; examples of such data include: any computer program for operating on the switch 010, such as an operating system and application programs; the operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks; the application programs may include various application programs such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services; the program for implementing the method of the embodiment of the present invention may be included in the application program.
The method disclosed in the above embodiments of the present invention may be applied to the processor 0104, or implemented by the processor 0104, where the processor 0104 may be an integrated circuit chip with signal processing capability. In the implementation process, the steps of the above method can be implemented by hardware integrated logic circuits in the processor 0104 or by instructions in the form of software; the Processor 0104 may be a general-purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, or the like; processor 0104 can implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present invention; a general purpose processor may be a microprocessor or any conventional processor or the like; the steps of the method disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor, where the software module may be located in a storage medium, and the storage medium is located in the memory 0103, and the processor 0104 reads information in the memory 0103, and implements the steps of the method in combination with the hardware.
In an exemplary embodiment, the switch 010 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field-Programmable Gate arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
Fig. 11 is a schematic structural diagram of a system for QoS configuration migration along with a virtual machine according to an embodiment of the present invention, and as shown in fig. 11, the system for QoS configuration migration along with a virtual machine 011 according to an embodiment of the present invention includes: a server 0111 and a switch 0112; wherein the content of the first and second substances,
the server 0111 is any server in the above embodiments;
the switch 0112 is any switch in the above embodiments.
The system for QoS configuration migration along with a virtual machine in this embodiment may be configured to execute the technical solution of the above-described method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
The present invention also provides a computer readable storage medium, such as a memory including a computer program, executable by a processor in a switch to perform the steps of the aforementioned method; the computer readable storage medium can be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
A computer-readable storage medium having a computer program stored thereon, the computer program being executable by a processor to perform the steps of:
setting QoS service grade information of the virtual machine;
writing the QoS service level information of the virtual machine into a VDP association request message of a virtual station interface discovery protocol to obtain a modified VDP association request message;
sending the modified VDP association request message to a switch; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch; the modified QoS service level information of the virtual machine in the VDP association request message is used to instruct the switch to select QoS configuration information corresponding to the QoS service level information of the virtual machine in a preset QoS configuration information template, and is also used to instruct the switch to issue the QoS configuration information to the virtual machine.
Further, the computer program is also executable by the processor to implement the steps of:
and receiving a VDP association success message sent by the switch.
Further, the computer program is also executable by the processor to implement the steps of:
and creating the virtual machine.
Further, the computer program is also executable by the processor to implement the steps of:
sending a VDP disassociation request message to the switch; the VDP disassociation request message is used to instruct the switch to migrate the virtual machine out of the switch and delete the QoS configuration information corresponding to the virtual machine;
and receiving a VDP disassociation response message sent by the switch.
Further, the computer program is executable by the processor to implement the steps of:
adding a virtual station interface Priority VSI Priority field in the VDP association request message, wherein the VSI Priority field is positioned between a virtual station interface identity VSI ID field and a Filter information format Filter Info format field, and the length of the VSI Priority field is one byte;
and writing the QoS service class information of the virtual machine into the VSI Priority field.
The computer-readable storage medium provided by the present invention may be used to implement the technical solutions of the above-mentioned method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
The present invention also provides a computer readable storage medium, such as a memory including a computer program, executable by a processor in a switch to perform the steps of the aforementioned method; the computer readable storage medium can be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
A computer-readable storage medium having a computer program stored thereon, the computer program being executable by a processor to perform the steps of:
receiving a modified VDP association request message sent by a server, wherein the modified VDP association request message is obtained by writing QoS service level information of a virtual machine into the VDP association request message by the server; the modified VDP association request message is used for indicating a switch to transfer the virtual machine to the switch;
acquiring QoS service level information of the virtual machine in the modified VDP association request message;
selecting QoS configuration information corresponding to the QoS service level information of the virtual machine from a preset QoS configuration information template;
and issuing the QoS configuration information to the virtual machine.
Further, the computer program is also executable by the processor to implement the steps of:
and sending a VDP association success message to the server.
Further, the computer program is also executable by the processor to implement the steps of:
receiving a VDP disassociation request message sent by the server;
migrating the virtual machine out of the switch according to the VDP disassociation request message, and deleting the QoS configuration information corresponding to the virtual machine;
and sending a VDP disassociation response message to the server.
Further, the preset QoS configuration information template includes different QoS configuration information of the virtual machine, and the different QoS configuration information of the virtual machine and the different QoS service level information of the virtual machine correspond to each other;
the QoS configuration information includes any one of bandwidth information, traffic cache information, scheduling policy information, or any combination thereof.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (21)

1. A method for migrating quality of service (QoS) configuration with a virtual machine, the method comprising:
setting QoS service grade information of the virtual machine;
writing the QoS service level information of the virtual machine into a VDP association request message of a virtual station interface discovery protocol to obtain a modified VDP association request message;
sending the modified VDP association request message to a switch; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch; the modified QoS service level information of the virtual machine in the VDP association request message is used for indicating the switch to select QoS configuration information corresponding to the QoS service level information of the virtual machine in a preset QoS configuration information template, and also used for indicating the switch to issue the QoS configuration information to the virtual machine;
the writing of the QoS service class information of the virtual machine into the VDP association request message includes: adding a virtual station interface Priority (VSI) Priority field in the VDP association request message, wherein the VSI Priority field is positioned between a virtual station interface identity (VSI ID) field and a Filter information format (Filter Info format) field, and the length of the VSI Priority field is one byte; and writing the QoS service class information of the virtual machine into the VSI Priority field.
2. The method according to claim 1, wherein after said sending said modified VDP association request message to a switch, said method further comprises:
and receiving a VDP association success message sent by the switch.
3. The method of claim 1, wherein prior to the setting the QoS service class information of the virtual machine, the method further comprises:
and creating the virtual machine.
4. The method of claim 1, wherein prior to the setting the QoS service class information of the virtual machine, the method further comprises:
sending a VDP disassociation request message to the switch; the VDP disassociation request message is used to instruct the switch to migrate the virtual machine out of the switch and delete the QoS configuration information corresponding to the virtual machine;
and receiving a VDP disassociation response message sent by the switch.
5. A method for migrating quality of service (QoS) configuration with a virtual machine, the method comprising:
receiving a modified VDP association request message sent by a server, wherein the modified VDP association request message is obtained by writing QoS service level information of a virtual machine into the VDP association request message by the server; the modified VDP association request message is used for indicating a switch to transfer the virtual machine to the switch;
acquiring QoS service level information of the virtual machine in the modified VDP association request message;
selecting QoS configuration information corresponding to the QoS service level information of the virtual machine from a preset QoS configuration information template;
and issuing the QoS configuration information to the virtual machine.
6. The method of claim 5, wherein after the sending the QoS configuration information to the virtual machine, the method further comprises:
and sending a VDP association success message to the server.
7. The method according to claim 5, wherein before receiving the modified VDP association request message sent by the server, the method further comprises:
receiving a VDP disassociation request message sent by the server;
migrating the virtual machine out of the switch according to the VDP disassociation request message, and deleting the QoS configuration information corresponding to the virtual machine;
and sending a VDP disassociation response message to the server.
8. The method according to claim 5, wherein the preset QoS configuration information template comprises different QoS configuration information of the virtual machine, and the different QoS configuration information of the virtual machine and the different QoS service level information of the virtual machine correspond to each other;
the QoS configuration information includes any one of bandwidth information, traffic cache information, scheduling policy information, or any combination thereof.
9. A server, characterized in that the server comprises: the interface, the memory and the processor are connected through the bus, the memory is used for storing computer programs, and the processor reads the computer programs and is used for:
setting QoS service grade information of the virtual machine;
writing the QoS service level information of the virtual machine into a VDP association request message of a virtual station interface discovery protocol to obtain a modified VDP association request message;
sending the modified VDP association request message to a switch; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch; the modified QoS service level information of the virtual machine in the VDP association request message is used for indicating the switch to select QoS configuration information corresponding to the QoS service level information of the virtual machine in a preset QoS configuration information template, and also used for indicating the switch to issue the QoS configuration information to the virtual machine;
the processor reads the computer program to: adding a virtual station interface Priority (VSI) Priority field in the VDP association request message, wherein the VSI Priority field is positioned between a virtual station interface identity (VSI ID) field and a Filter information format (Filter Info format) field, and the length of the VSI Priority field is one byte; and writing the QoS service class information of the virtual machine into the VSI Priority field.
10. The server according to claim 9, wherein the processor reads the computer program to further:
and receiving a VDP association success message sent by the switch.
11. The server according to claim 9, wherein the processor reads the computer program to further:
and creating the virtual machine.
12. The server according to claim 9, wherein the processor reads the computer program to further:
sending a VDP disassociation request message to the switch; the VDP disassociation request message is used to instruct the switch to migrate the virtual machine out of the switch and delete the QoS configuration information corresponding to the virtual machine;
and receiving a VDP disassociation response message sent by the switch.
13. A switch, characterized in that the switch comprises: the interface, the memory and the processor are connected through the bus, the memory is used for storing computer programs, and the processor reads the computer programs and is used for:
receiving a modified VDP association request message sent by a server, wherein the modified VDP association request message is obtained by writing QoS service level information of a virtual machine into the VDP association request message by the server; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch;
acquiring QoS service level information of the virtual machine in the modified VDP association request message;
selecting QoS configuration information corresponding to the QoS service level information of the virtual machine from a preset QoS configuration information template;
and issuing the QoS configuration information to the virtual machine.
14. The switch of claim 13, wherein the processor reads the computer program to further:
and sending a VDP association success message to the server.
15. The switch of claim 13, wherein the processor reads the computer program to further:
receiving a VDP disassociation request message sent by the server;
migrating the virtual machine out of the switch according to the VDP disassociation request message, and deleting the QoS configuration information corresponding to the virtual machine;
and sending a VDP disassociation response message to the server.
16. The switch according to claim 13, wherein the preset QoS configuration information template includes different QoS configuration information of the virtual machine, and the different QoS configuration information of the virtual machine and the different QoS service level information of the virtual machine correspond to each other;
the QoS configuration information includes any one of bandwidth information, traffic cache information, scheduling policy information, or any combination thereof.
17. A system for migration of quality of service QoS configurations with virtual machines, characterized in that the system comprises a server according to any of claims 9 to 12 and a switch according to any of claims 13 to 16.
18. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for QoS configuration migration with a virtual machine according to any one of claims 1 to 4.
19. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for QoS profile migration with a virtual machine according to any one of claims 5 to 8.
20. An apparatus for quality of service (QoS) configuration migration with a virtual machine, the apparatus comprising:
the setting module is used for setting QoS service level information of the virtual machine;
a writing module, configured to write the QoS service level information of the virtual machine into a VDP association request message of a virtual station interface discovery protocol, so as to obtain a modified VDP association request message;
a sending module, configured to send the modified VDP association request packet to a switch; the modified VDP association request message is used for indicating the switch to transfer the virtual machine to the switch; the modified QoS service level information of the virtual machine in the VDP association request message is used for indicating the switch to select QoS configuration information corresponding to the QoS service level information of the virtual machine in a preset QoS configuration information template, and also used for indicating the switch to issue the QoS configuration information to the virtual machine;
the write module is specifically configured to: adding a virtual station interface Priority (VSI) Priority field in the VDP association request message, wherein the VSI Priority field is positioned between a virtual station interface identity (VSI ID) field and a Filter information format (Filter Info format) field, and the length of the VSI Priority field is one byte; and writing the QoS service class information of the virtual machine into the VSI Priority field.
21. An apparatus for quality of service (QoS) configuration migration with a virtual machine, the apparatus comprising:
a receiving module, configured to receive a modified VDP association request packet sent by a server, where the modified VDP association request packet is obtained by writing, by the server, QoS service level information of a virtual machine into the VDP association request packet; the modified VDP association request packet is used to instruct the device to migrate the virtual machine to the device;
an obtaining module, configured to obtain QoS service level information of the virtual machine in the modified VDP association request message;
the selection module is used for selecting QoS configuration information corresponding to the QoS service level information of the virtual machine from a preset QoS configuration information template;
and the issuing module is used for issuing the QoS configuration information to the virtual machine.
CN201710727976.2A 2017-08-23 2017-08-23 Method, server, switch and system for migrating QoS configuration along with virtual machine Active CN109428743B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710727976.2A CN109428743B (en) 2017-08-23 2017-08-23 Method, server, switch and system for migrating QoS configuration along with virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710727976.2A CN109428743B (en) 2017-08-23 2017-08-23 Method, server, switch and system for migrating QoS configuration along with virtual machine

Publications (2)

Publication Number Publication Date
CN109428743A CN109428743A (en) 2019-03-05
CN109428743B true CN109428743B (en) 2021-03-16

Family

ID=65498254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710727976.2A Active CN109428743B (en) 2017-08-23 2017-08-23 Method, server, switch and system for migrating QoS configuration along with virtual machine

Country Status (1)

Country Link
CN (1) CN109428743B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988154B (en) * 2019-05-21 2022-06-28 中移(苏州)软件技术有限公司 Method and device for accelerating network transmission and computer readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383736A (en) * 2016-09-21 2017-02-08 杭州华三通信技术有限公司 Port extension method and apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594652B (en) * 2011-01-13 2015-04-08 华为技术有限公司 Migration method of virtual machine, switch and virtual machine system
CN103684838B (en) * 2012-09-25 2017-02-08 华为技术有限公司 A method, an apparatus, a system for configuring a network strategy of a virtual machine
US9203781B2 (en) * 2013-08-07 2015-12-01 Cisco Technology, Inc. Extending virtual station interface discovery protocol (VDP) and VDP-like protocols for dual-homed deployments in data center environments

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383736A (en) * 2016-09-21 2017-02-08 杭州华三通信技术有限公司 Port extension method and apparatus

Also Published As

Publication number Publication date
CN109428743A (en) 2019-03-05

Similar Documents

Publication Publication Date Title
US20210224101A1 (en) Method, System and Apparatus for Creating Virtual Machine
CN109845303B (en) Management method and management unit for network slices
US9244817B2 (en) Remote debugging in a cloud computing environment
WO2015196931A1 (en) Disk io-based virtual resource allocation method and device
WO2017114361A1 (en) Method and apparatus for configuring accelerator
US20180210752A1 (en) Accelerator virtualization method and apparatus, and centralized resource manager
EP3716577A1 (en) Cloud service migration method and apparatus, and electronic device
WO2017054197A1 (en) Scaling out method, device and system
US20190281503A1 (en) Management Method, Management Unit, and System
US11036535B2 (en) Data storage method and apparatus
WO2018161881A1 (en) Structuralized data processing method, data storage medium, and computer apparatus
CN102316043B (en) Port virtualization method, switch and communication system
WO2020259289A1 (en) Resource allocation method and apparatus, electronic device and storage medium
WO2021109750A1 (en) Node management method, device and apparatus, storage medium, and system
CN105704188A (en) Deployment method and apparatus of applications and services
CN111913782A (en) Method and equipment for realizing virtual machine flow mirror image based on tunnel technology
CN103118073A (en) Virtual machine data persistence storage system and method in cloud environment
CN111698675A (en) Data processing method, device and computer readable storage medium
CN102752215B (en) Processing method for VDP (vertical data processing) request messages and edge switch
CN113268308B (en) Information processing method, device and storage medium
CN108234551B (en) Data processing method and device
CN115639954A (en) Data transmission method, device, equipment and medium
CN109428743B (en) Method, server, switch and system for migrating QoS configuration along with virtual machine
WO2021254214A1 (en) Migration method and apparatus for android application program
CN106933646B (en) Method and device for creating virtual machine

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