CN110661654A - Network bandwidth resource allocation method, device, equipment and readable storage medium - Google Patents

Network bandwidth resource allocation method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN110661654A
CN110661654A CN201910887116.4A CN201910887116A CN110661654A CN 110661654 A CN110661654 A CN 110661654A CN 201910887116 A CN201910887116 A CN 201910887116A CN 110661654 A CN110661654 A CN 110661654A
Authority
CN
China
Prior art keywords
service
virtual machine
adjusted
target virtual
channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910887116.4A
Other languages
Chinese (zh)
Other versions
CN110661654B (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.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data Technology 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 Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN201910887116.4A priority Critical patent/CN110661654B/en
Publication of CN110661654A publication Critical patent/CN110661654A/en
Application granted granted Critical
Publication of CN110661654B publication Critical patent/CN110661654B/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/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

The invention discloses a network bandwidth resource allocation method, which comprises the following steps: receiving a network bandwidth resource request sent by a target virtual machine; analyzing the network bandwidth resource request to obtain the service attribute information of the current operation service of the target virtual machine; the service attribute information comprises important services and common services; when the current operation service is determined to be an important service, allocating the pre-divided reserved channels to the target virtual machine; and when the current operation service is determined to be the common service, distributing the public channel obtained by pre-division to the target virtual machine. By applying the technical scheme provided by the embodiment of the invention, the network bandwidth resource of the virtual machine running important services is ensured, and the stability of processing the important services is improved. The invention also discloses a device, equipment and a storage medium for allocating the network bandwidth resources, and has corresponding technical effects.

Description

Network bandwidth resource allocation method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of cloud computing technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for allocating network bandwidth resources.
Background
With the increasing popularization of cloud computing technology, higher and higher requirements are put forward on virtualization technologies for providing resources such as networks, computing and storage for cloud computing. The virtual machines in these virtualization environments provide different services for different services, and each virtual machine performs free competition for network bandwidth resources. However, the importance degrees of these services are generally different, and some virtual machines have no important service, and may occupy most of the network bandwidth resources, while some virtual machines run the important service, and occupy less bandwidth resources, so that the processing efficiency of the important service is low.
In summary, how to effectively solve the problem of low processing efficiency of important services due to free competition of network bandwidth resources between virtual machines is a problem that needs to be solved urgently by those skilled in the art at present.
Disclosure of Invention
The invention aims to provide a network bandwidth resource allocation method, which ensures the network bandwidth resource of a virtual machine running important services and improves the stability of important service processing; another object of the present invention is to provide a network bandwidth resource allocation apparatus, device and computer readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
a network bandwidth resource allocation method comprises the following steps:
receiving a network bandwidth resource request sent by a target virtual machine;
analyzing the network bandwidth resource request to obtain the service attribute information of the current operation service of the target virtual machine; the service attribute information comprises important services and common services;
when the current operation service is determined to be an important service, allocating a pre-divided reserved channel to the target virtual machine;
and when the current operation service is determined to be the common service, distributing the public channel obtained by pre-division to the target virtual machine.
In a specific embodiment of the present invention, after obtaining the service attribute information of the currently running service of the target virtual machine, when determining that the currently running service is an important service, before allocating a pre-divided reserved channel to the target virtual machine, the method further includes:
acquiring the negotiation rate of the current physical network card;
adjusting the network bandwidth resources of the pre-divided reserved channel and the public channel by combining the negotiation rate and a preset network bandwidth resource division ratio to obtain an adjusted reserved channel and an adjusted public channel;
allocating the pre-divided reserved channels to the target virtual machine, including:
allocating the adjusted reserved channel to the target virtual machine;
distributing the public channel obtained by pre-division to the target virtual machine, including:
and distributing the adjusted public channel to the target virtual machine.
In an embodiment of the present invention, after obtaining the adjusted reserved channel and the adjusted common channel, the method further includes:
acquiring an adjusted reserved bandwidth value of the adjusted reserved channel and an adjusted public bandwidth value of the adjusted public channel;
and storing the adjusted reserved bandwidth value and the adjusted public bandwidth value in a preset database.
In a specific embodiment of the present invention, when it is determined that the currently running service is an important service, allocating the adjusted reserved channel to the target virtual machine includes:
when the current operation service is determined to be an important service, determining the target service priority of the current operation service;
allocating the processing thread corresponding to the target service priority in the adjusted reserved channel to the target virtual machine; and the adjusted reserved channel comprises processing threads corresponding to the service priorities respectively.
In a specific embodiment of the present invention, analyzing the network bandwidth resource request to obtain service attribute information of a current operation service of the target virtual machine includes:
analyzing the network bandwidth resource request to obtain MAC address information carried in a data packet message corresponding to the current operation service of the target virtual machine;
and determining the service attribute information of the current operation service according to the MAC address information.
A network bandwidth resource allocation apparatus, comprising:
the request receiving module is used for receiving a network bandwidth resource request sent by a target virtual machine;
the attribute information acquisition module is used for analyzing the network bandwidth resource request to obtain the service attribute information of the current operation service of the target virtual machine; the service attribute information comprises important services and common services;
a reserved channel allocation module, configured to allocate a reserved channel obtained by pre-partitioning to the target virtual machine when it is determined that the current operation service is an important service;
and the public channel distribution module is used for distributing the public channels obtained by pre-division to the target virtual machine when the current operation service is determined to be the common service.
In one embodiment of the present invention, the method further comprises:
a negotiation rate obtaining module, configured to obtain a negotiation rate of a current physical network card after obtaining service attribute information of a current operation service of the target virtual machine and when determining that the current operation service is an important service, before allocating a pre-divided reserved channel to the target virtual machine;
a bandwidth resource adjusting module, configured to adjust, in combination with the negotiation rate and a preset network bandwidth resource division ratio, the network bandwidth resources of the pre-divided reserved channel and the public channel to obtain an adjusted reserved channel and an adjusted public channel;
the reserved channel allocation module is specifically a module for allocating the adjusted reserved channel to the target virtual machine;
the public channel allocation module is specifically a module for allocating the adjusted public channel to the target virtual machine.
In one embodiment of the present invention, the method further comprises:
the bandwidth value obtaining module is used for obtaining the adjusted reserved bandwidth value of the adjusted reserved channel and the adjusted public bandwidth value of the adjusted public channel after obtaining the adjusted reserved channel and the adjusted public channel;
and the bandwidth value storage module is used for storing the adjusted reserved bandwidth value and the adjusted public bandwidth value in a preset database.
A network bandwidth resource allocation apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the network bandwidth resource allocation method as described above when executing the computer program.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the network bandwidth resource allocation method as set out above.
By applying the method provided by the embodiment of the invention, the network bandwidth resource request sent by the target virtual machine is received; analyzing the network bandwidth resource request to obtain the service attribute information of the current operation service of the target virtual machine; the service attribute information comprises important services and common services; when the current operation service is determined to be an important service, allocating the pre-divided reserved channels to the target virtual machine; and when the current operation service is determined to be the common service, distributing the public channel obtained by pre-division to the target virtual machine. The reserved channel required for the service processing of the virtual machine for running the important service is divided in advance, and the public channel required for the service processing of the virtual machine for running the common service is divided, so that the corresponding channel can be allocated to the target virtual machine according to the service attribute information of the current running service of the target virtual machine for carrying out the network bandwidth resource request, the competition of the network bandwidth resources between the virtual machine for running the common service and the virtual machine for running the important service is avoided by singly and preliminarily dividing the corresponding channel for the important service, the network bandwidth resources of the virtual machine for running the important service are ensured, and the stability of the important service processing is improved.
Accordingly, embodiments of the present invention further provide a network bandwidth resource allocation apparatus, a device and a computer readable storage medium corresponding to the network bandwidth resource allocation method, which have the above technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an implementation of a network bandwidth resource allocation method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another implementation of a network bandwidth resource allocation method according to an embodiment of the present invention;
fig. 3 is a block diagram of a network bandwidth resource allocation apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of a network bandwidth resource allocation apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart of an implementation of a network bandwidth resource allocation method in an embodiment of the present invention, where the method may include the following steps:
s101: and receiving a network bandwidth resource request sent by the target virtual machine.
When a target virtual machine in a physical host needs to process a current operation service, a network bandwidth resource request can be sent to a network resource allocation center, and the network resource allocation center receives the network bandwidth resource request sent by the target virtual machine.
The target virtual machine may be any virtual machine in the physical host that needs to perform business processing.
S102: and analyzing the network bandwidth resource request to obtain the service attribute information of the current operation service of the target virtual machine.
The service attribute information includes important services and common services.
The network bandwidth resource request may carry service attribute information of a currently running service of the target virtual machine, and the service attribute information may include an important service and a common service. After receiving the network bandwidth resource request, the network resource allocation center may analyze the network bandwidth resource request to obtain the service attribute information of the current operation service of the target virtual machine, that is, may analyze whether the current operation service of the target virtual machine is an important service or a common service.
The important business can be that the public security bureau needs to send the identity information of the criminal suspect to a pre-stored criminal database for information comparison, and can also be that a virtual machine storing user information responds to user login according to the user login information.
S103: and when the current operation service is determined to be an important service, allocating the pre-divided reserved channels to the target virtual machine.
The virtual machine in the physical host communicates with the outside through a physical network card (uplink) of the physical host, and can perform channel division on the total bandwidth of the physical network card of the physical machine in advance to obtain a reserved channel for providing network bandwidth resources for important services and a common channel for providing network bandwidth resources for common services. When determining that the attribute information of the currently running service of the target virtual machine is an important service, allocating the pre-divided reserved channels to the target virtual machine.
It should be noted that, the dividing ratio for dividing the reserved channel and the public channel may be set and adjusted according to actual situations, which is not limited in the embodiment of the present invention, for example, the ratio of the network bandwidth resource of the reserved channel to the total bandwidth may be set to 20%, and the ratio of the network bandwidth resource of the public channel to the total bandwidth may be set to 80%.
S104: and when the current operation service is determined to be the common service, distributing the public channel obtained by pre-division to the target virtual machine.
And when determining that the attribute information of the current operation service of the target virtual machine is a common service, allocating the pre-divided public channel to the target virtual machine.
A part of the bandwidth of the physical host is reserved for the virtual machine with special service (namely important service), so that the virtual machine in the cloud platform can provide higher-quality and stable service processing service.
By applying the method provided by the embodiment of the invention, the network bandwidth resource request sent by the target virtual machine is received; analyzing the network bandwidth resource request to obtain the service attribute information of the current operation service of the target virtual machine; the service attribute information comprises important services and common services; when the current operation service is determined to be an important service, allocating the pre-divided reserved channels to the target virtual machine; and when the current operation service is determined to be the common service, distributing the public channel obtained by pre-division to the target virtual machine. The reserved channel required for the service processing of the virtual machine for running the important service is divided in advance, and the public channel required for the service processing of the virtual machine for running the common service is divided, so that the corresponding channel can be allocated to the target virtual machine according to the service attribute information of the current running service of the target virtual machine for carrying out the network bandwidth resource request, the competition of the network bandwidth resources between the virtual machine for running the common service and the virtual machine for running the important service is avoided by singly and preliminarily dividing the corresponding channel for the important service, the network bandwidth resources of the virtual machine for running the important service are ensured, and the stability of the important service processing is improved.
It should be noted that, based on the first embodiment, the embodiment of the present invention further provides a corresponding improvement scheme. In the following embodiments, steps that are the same as or correspond to those in the first embodiment may be referred to each other, and corresponding advantageous effects may also be referred to each other, which are not described in detail in the following modified embodiments.
Example two:
referring to fig. 2, fig. 2 is a flowchart of another implementation of a network bandwidth resource allocation method in an embodiment of the present invention, where the method may include the following steps:
s201: and receiving a network bandwidth resource request sent by the target virtual machine.
S202: and analyzing the network bandwidth resource request to obtain MAC address information carried in a data packet message corresponding to the current operation service of the target virtual machine.
The network bandwidth resource request may carry MAC address information carried in a data packet message corresponding to a currently running service of the target virtual machine. After receiving the network bandwidth resource request, the network bandwidth resource request can be analyzed to obtain the MAC address information carried in the data packet message corresponding to the currently running service of the target virtual machine.
S203: and determining the service attribute information of the current operation service according to the MAC address information.
The MAC address information and the service attribute information may be associated in advance, and after the MAC address information carried in the packet message corresponding to the currently running service of the target virtual machine is obtained through analysis, the service attribute information of the currently running service may be determined according to the MAC address information.
S204: and acquiring the negotiation rate of the current physical network card.
Network fluctuations, user other program settings, physical host external physical switch configuration, etc. may cause the negotiated rate of the physical network card to change. After the service attribute information of the current operation service of the target virtual machine is obtained, the negotiation rate of the current physical network card can be obtained.
S205: and adjusting the network bandwidth resources of the pre-divided reserved channel and public channel by combining the negotiation rate and the preset network bandwidth resource division ratio to obtain an adjusted reserved channel and an adjusted public channel.
The preset network bandwidth resource division ratio of the reserved channel and the public channel can be obtained. After the negotiation rate of the current physical network card is obtained, the network bandwidth resources of the pre-divided reserved channel and public channel can be adjusted by combining the negotiation rate and the preset network bandwidth resource division ratio, and the adjusted reserved channel and the adjusted public channel are obtained. Therefore, the self-adaptive adjustment of the bandwidth of the reserved channel is realized to adapt to the network environment of the physical host, so that the differentiated virtualization service is more accurate.
S206: and acquiring the adjusted reserved bandwidth value of the adjusted reserved channel and the adjusted public bandwidth value of the adjusted public channel.
After the network bandwidth resources of the pre-divided reserved channel and public channel are adjusted by combining the negotiation rate and the preset network bandwidth resource division ratio to obtain the adjusted reserved channel and the adjusted public channel, the adjusted reserved bandwidth value of the adjusted reserved channel and the adjusted public bandwidth value of the adjusted public channel can be obtained.
S207: and storing the adjusted reserved bandwidth value and the adjusted public bandwidth value in a preset database.
The method includes the steps that a database for storing reserved bandwidth values and public bandwidth values can be preset, after adjusted reserved bandwidth values of adjusted reserved channels and adjusted public bandwidth values of adjusted public channels are obtained, the adjusted reserved bandwidth values and the adjusted public bandwidth values can be stored in the preset database, updating of the reserved bandwidth values and the public bandwidth values in the preset database is achieved, and therefore when an uplink changes (for example, a user changes a physical network card for a virtual switch), configuration can be restored according to information stored in the preset database.
S208: and when the current operation service is determined to be the important service, determining the target service priority of the current operation service.
The priority of the important service can be preset, and when the currently running service is determined to be the important service, the target service priority of the currently running service is determined.
S209: and allocating the processing thread corresponding to the target service priority in the adjusted reserved channel to the target virtual machine.
And the adjusted reserved channel comprises processing threads corresponding to the service priorities respectively.
The processing threads corresponding to the service priorities can be preset, and after the target service priority of the current operation service is determined, the processing threads corresponding to the target service priority in the adjusted reserved channel can be allocated to the target virtual machine. If the network bandwidth resources of the processing threads corresponding to the service priorities are different, a high service priority corresponds to a larger network bandwidth resource, and a low service priority corresponds to a smaller network bandwidth resource, the processing efficiency of the important service with the high priority is further improved.
S210: and when the current operation service is determined to be the common service, allocating the adjusted public channel to the target virtual machine.
And when the current operation service is determined to be the common service, allocating the adjusted public channel to the target virtual machine. By adjusting the network bandwidth resources of the pre-divided reserved channel and public channel according to the negotiation rate, the utilization rate of the network bandwidth resources can be improved as much as possible under the condition of ensuring that stable business service is provided.
Corresponding to the above method embodiments, embodiments of the present invention further provide a network bandwidth resource allocation apparatus, and the network bandwidth resource allocation apparatus described below and the network bandwidth resource allocation method described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a block diagram of a network bandwidth resource allocation apparatus according to an embodiment of the present invention, where the apparatus may include:
a request receiving module 31, configured to receive a network bandwidth resource request sent by a target virtual machine;
the attribute information obtaining module 32 is configured to analyze the network bandwidth resource request to obtain service attribute information of a current operation service of the target virtual machine; the service attribute information comprises important services and common services;
a reserved channel allocation module 33, configured to allocate a reserved channel obtained by pre-partitioning to a target virtual machine when it is determined that a current operation service is an important service;
and the common channel allocation module 34 is configured to, when it is determined that the current running service is a common service, allocate the pre-divided common channel to the target virtual machine.
The device provided by the embodiment of the invention is applied to receive the network bandwidth resource request sent by the target virtual machine; analyzing the network bandwidth resource request to obtain the service attribute information of the current operation service of the target virtual machine; the service attribute information comprises important services and common services; when the current operation service is determined to be an important service, allocating the pre-divided reserved channels to the target virtual machine; and when the current operation service is determined to be the common service, distributing the public channel obtained by pre-division to the target virtual machine. The reserved channel required for the service processing of the virtual machine for running the important service is divided in advance, and the public channel required for the service processing of the virtual machine for running the common service is divided, so that the corresponding channel can be allocated to the target virtual machine according to the service attribute information of the current running service of the target virtual machine for carrying out the network bandwidth resource request, the competition of the network bandwidth resources between the virtual machine for running the common service and the virtual machine for running the important service is avoided by singly and preliminarily dividing the corresponding channel for the important service, the network bandwidth resources of the virtual machine for running the important service are ensured, and the stability of the important service processing is improved.
In one embodiment of the present invention, the apparatus may further include:
a negotiation rate obtaining module, configured to obtain a negotiation rate of a current physical network card after obtaining service attribute information of a current operation service of a target virtual machine and when determining that the current operation service is an important service, before allocating a pre-divided reserved channel to the target virtual machine;
the bandwidth resource adjusting module is used for adjusting the network bandwidth resources of the pre-divided reserved channel and public channel by combining the negotiation rate and the preset network bandwidth resource dividing proportion to obtain an adjusted reserved channel and an adjusted public channel;
the reserved channel allocation module 33 is specifically a module that allocates the adjusted reserved channel to the target virtual machine;
the common channel allocation module 34 is specifically a module that allocates the adjusted common channel to the target virtual machine.
In one embodiment of the present invention, the apparatus may further include:
the bandwidth value obtaining module is used for obtaining the adjusted reserved bandwidth value of the adjusted reserved channel and the adjusted public bandwidth value of the adjusted public channel after obtaining the adjusted reserved channel and the adjusted public channel;
and the bandwidth value storage module is used for storing the adjusted reserved bandwidth value and the adjusted public bandwidth value in a preset database.
In an embodiment of the present invention, the reservation channel allocating module 33 includes:
the priority determining submodule is used for determining the target service priority of the current operation service when the current operation service is determined to be the important service;
the thread allocation submodule is used for allocating the processing thread corresponding to the target service priority in the adjusted reserved channel to the target virtual machine; and the adjusted reserved channel comprises processing threads corresponding to the service priorities respectively.
In one embodiment of the present invention, the attribute information obtaining module 32 includes:
the address information obtaining submodule is used for analyzing the network bandwidth resource request to obtain MAC address information carried in a data packet message corresponding to the current operation service of the target virtual machine;
and the attribute information determining submodule is used for determining the service attribute information of the current operation service according to the MAC address information.
Corresponding to the above method embodiment, referring to fig. 4, fig. 4 is a schematic diagram of a network bandwidth resource allocation device provided in the present invention, where the device may include:
a memory 41 for storing a computer program;
the processor 42, when executing the computer program stored in the memory 41, may implement the following steps:
receiving a network bandwidth resource request sent by a target virtual machine; analyzing the network bandwidth resource request to obtain the service attribute information of the current operation service of the target virtual machine; the service attribute information comprises important services and common services; when the current operation service is determined to be an important service, allocating the pre-divided reserved channels to the target virtual machine; and when the current operation service is determined to be the common service, distributing the public channel obtained by pre-division to the target virtual machine.
For the introduction of the device provided by the present invention, please refer to the above method embodiment, which is not described herein again.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
receiving a network bandwidth resource request sent by a target virtual machine; analyzing the network bandwidth resource request to obtain the service attribute information of the current operation service of the target virtual machine; the service attribute information comprises important services and common services; when the current operation service is determined to be an important service, allocating the pre-divided reserved channels to the target virtual machine; and when the current operation service is determined to be the common service, distributing the public channel obtained by pre-division to the target virtual machine.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A method for allocating network bandwidth resources, comprising:
receiving a network bandwidth resource request sent by a target virtual machine;
analyzing the network bandwidth resource request to obtain the service attribute information of the current operation service of the target virtual machine; the service attribute information comprises important services and common services;
when the current operation service is determined to be an important service, allocating a pre-divided reserved channel to the target virtual machine;
and when the current operation service is determined to be the common service, distributing the public channel obtained by pre-division to the target virtual machine.
2. The method according to claim 1, wherein after obtaining the service attribute information of the currently running service of the target virtual machine, when it is determined that the currently running service is an important service, before allocating the pre-divided reserved channels to the target virtual machine, the method further comprises:
acquiring the negotiation rate of the current physical network card;
adjusting the network bandwidth resources of the pre-divided reserved channel and the public channel by combining the negotiation rate and a preset network bandwidth resource division ratio to obtain an adjusted reserved channel and an adjusted public channel;
allocating the pre-divided reserved channels to the target virtual machine, including:
allocating the adjusted reserved channel to the target virtual machine;
distributing the public channel obtained by pre-division to the target virtual machine, including:
and distributing the adjusted public channel to the target virtual machine.
3. The method of claim 2, wherein after obtaining the adjusted reserved channel and the adjusted common channel, further comprising:
acquiring an adjusted reserved bandwidth value of the adjusted reserved channel and an adjusted public bandwidth value of the adjusted public channel;
and storing the adjusted reserved bandwidth value and the adjusted public bandwidth value in a preset database.
4. The method according to claim 2 or 3, wherein when it is determined that the currently running service is an important service, allocating the adjusted reserved channel to the target virtual machine includes:
when the current operation service is determined to be an important service, determining the target service priority of the current operation service;
allocating the processing thread corresponding to the target service priority in the adjusted reserved channel to the target virtual machine; and the adjusted reserved channel comprises processing threads corresponding to the service priorities respectively.
5. The method according to claim 4, wherein analyzing the network bandwidth resource request to obtain the service attribute information of the current service of the target virtual machine includes:
analyzing the network bandwidth resource request to obtain MAC address information carried in a data packet message corresponding to the current operation service of the target virtual machine;
and determining the service attribute information of the current operation service according to the MAC address information.
6. A network bandwidth resource allocation apparatus, comprising:
the request receiving module is used for receiving a network bandwidth resource request sent by a target virtual machine;
the attribute information acquisition module is used for analyzing the network bandwidth resource request to obtain the service attribute information of the current operation service of the target virtual machine; the service attribute information comprises important services and common services;
a reserved channel allocation module, configured to allocate a reserved channel obtained by pre-partitioning to the target virtual machine when it is determined that the current operation service is an important service;
and the public channel distribution module is used for distributing the public channels obtained by pre-division to the target virtual machine when the current operation service is determined to be the common service.
7. The apparatus of claim 6, further comprising:
a negotiation rate obtaining module, configured to obtain a negotiation rate of a current physical network card after obtaining service attribute information of a current operation service of the target virtual machine and when determining that the current operation service is an important service, before allocating a pre-divided reserved channel to the target virtual machine;
a bandwidth resource adjusting module, configured to adjust, in combination with the negotiation rate and a preset network bandwidth resource division ratio, the network bandwidth resources of the pre-divided reserved channel and the public channel to obtain an adjusted reserved channel and an adjusted public channel;
the reserved channel allocation module is specifically a module for allocating the adjusted reserved channel to the target virtual machine;
the public channel allocation module is specifically a module for allocating the adjusted public channel to the target virtual machine.
8. The apparatus of claim 7, further comprising:
the bandwidth value obtaining module is used for obtaining the adjusted reserved bandwidth value of the adjusted reserved channel and the adjusted public bandwidth value of the adjusted public channel after obtaining the adjusted reserved channel and the adjusted public channel;
and the bandwidth value storage module is used for storing the adjusted reserved bandwidth value and the adjusted public bandwidth value in a preset database.
9. A network bandwidth resource allocation apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the network bandwidth resource allocation method according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of the network bandwidth resource allocation method according to any one of claims 1 to 5.
CN201910887116.4A 2019-09-19 2019-09-19 Network bandwidth resource allocation method, device, equipment and readable storage medium Active CN110661654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910887116.4A CN110661654B (en) 2019-09-19 2019-09-19 Network bandwidth resource allocation method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910887116.4A CN110661654B (en) 2019-09-19 2019-09-19 Network bandwidth resource allocation method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110661654A true CN110661654A (en) 2020-01-07
CN110661654B CN110661654B (en) 2023-02-28

Family

ID=69037284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910887116.4A Active CN110661654B (en) 2019-09-19 2019-09-19 Network bandwidth resource allocation method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110661654B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111711582A (en) * 2020-06-16 2020-09-25 北京百度网讯科技有限公司 Transmission machine processing method and system based on machine room system and storage medium
CN112148426A (en) * 2020-08-25 2020-12-29 新华三大数据技术有限公司 Bandwidth allocation method and device
CN114363185A (en) * 2022-03-17 2022-04-15 阿里云计算有限公司 Virtual resource processing method and device
WO2023207521A1 (en) * 2022-04-29 2023-11-02 北京有竹居网络技术有限公司 Traffic congestion control method and apparatus, computer readable medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101091360A (en) * 2004-11-22 2007-12-19 诺基亚西门子网络有限责任两合公司 Adaptive bandwidth managing system for capacitor tunnels of a time-variable communication matrix
CN102567072A (en) * 2010-12-20 2012-07-11 中国移动通信集团公司 Resource allocation method, resource allocation device and resource allocation system
CN104348887A (en) * 2013-08-09 2015-02-11 中国电信股份有限公司 Method and device for resource distributing in cloud management platform
CN105099778A (en) * 2015-07-27 2015-11-25 中国联合网络通信集团有限公司 Bandwidth allocation method and device
CN108989238A (en) * 2018-07-20 2018-12-11 浪潮电子信息产业股份有限公司 A kind of method and relevant device for distributing service bandwidth

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101091360A (en) * 2004-11-22 2007-12-19 诺基亚西门子网络有限责任两合公司 Adaptive bandwidth managing system for capacitor tunnels of a time-variable communication matrix
CN102567072A (en) * 2010-12-20 2012-07-11 中国移动通信集团公司 Resource allocation method, resource allocation device and resource allocation system
CN104348887A (en) * 2013-08-09 2015-02-11 中国电信股份有限公司 Method and device for resource distributing in cloud management platform
CN105099778A (en) * 2015-07-27 2015-11-25 中国联合网络通信集团有限公司 Bandwidth allocation method and device
CN108989238A (en) * 2018-07-20 2018-12-11 浪潮电子信息产业股份有限公司 A kind of method and relevant device for distributing service bandwidth

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111711582A (en) * 2020-06-16 2020-09-25 北京百度网讯科技有限公司 Transmission machine processing method and system based on machine room system and storage medium
CN111711582B (en) * 2020-06-16 2023-09-26 北京百度网讯科技有限公司 Transmission machine processing method, system and storage medium based on machine room system
CN112148426A (en) * 2020-08-25 2020-12-29 新华三大数据技术有限公司 Bandwidth allocation method and device
CN114363185A (en) * 2022-03-17 2022-04-15 阿里云计算有限公司 Virtual resource processing method and device
WO2023207521A1 (en) * 2022-04-29 2023-11-02 北京有竹居网络技术有限公司 Traffic congestion control method and apparatus, computer readable medium and electronic device

Also Published As

Publication number Publication date
CN110661654B (en) 2023-02-28

Similar Documents

Publication Publication Date Title
CN110661654B (en) Network bandwidth resource allocation method, device, equipment and readable storage medium
US10652360B2 (en) Access scheduling method and apparatus for terminal, and computer storage medium
US20210218842A1 (en) Method, device, server and storage medium of agent allocation
EP2822236A1 (en) Network bandwidth distribution method and terminal
CN105791254B (en) Network request processing method and device and terminal
CN110248417B (en) Resource allocation method and system for communication service in power Internet of things
US20230176929A1 (en) Resource allocation method and apparatus based on edge computing
EP3110191A1 (en) Network sharing method and network element
CN114155026A (en) Resource allocation method, device, server and storage medium
US10028285B2 (en) Method, device and terminal for allocating network services to data channels
CN110868323A (en) Bandwidth control method, device, equipment and medium
CN109429347B (en) Time slot allocation method and device
EP3627930A1 (en) Resource indication method, user equipment, network device and computer storage medium
CN113453285B (en) Resource adjusting method, device and storage medium
CN111315023B (en) Uplink wireless resource allocation method and device
CN112996112B (en) Frequency domain resource allocation method, device, electronic equipment and storage medium
CN110636624B (en) Resource allocation method, device, equipment and storage medium
CN107124768B (en) Power distribution method and device
CN114024855A (en) Method and device for fusing network slice and edge cloud
CN111984406A (en) Method, device and equipment for distributing CPU (Central processing Unit) resources in management process of virtualization platform
CN109429335B (en) Method and equipment for seizing cluster voice users across operators
CN112131267A (en) Counting processing method, device, server and counting processing system
CN111754332B (en) Service request processing method and device, storage medium and electronic equipment
CN112491631B (en) Method, device, equipment and storage medium for guaranteeing service QOS
CN111314923B (en) Method and device for realizing dynamic bandwidth

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