CN109039791A - A kind of bandwidth management method, device and computer equipment - Google Patents

A kind of bandwidth management method, device and computer equipment Download PDF

Info

Publication number
CN109039791A
CN109039791A CN201811276107.3A CN201811276107A CN109039791A CN 109039791 A CN109039791 A CN 109039791A CN 201811276107 A CN201811276107 A CN 201811276107A CN 109039791 A CN109039791 A CN 109039791A
Authority
CN
China
Prior art keywords
message
bandwidth
band
channel
heading information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811276107.3A
Other languages
Chinese (zh)
Other versions
CN109039791B (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201811276107.3A priority Critical patent/CN109039791B/en
Publication of CN109039791A publication Critical patent/CN109039791A/en
Application granted granted Critical
Publication of CN109039791B publication Critical patent/CN109039791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions

Abstract

This specification provides a kind of bandwidth management method, device and computer equipment, which comprises receives message;Heading information is read in the message;The message is distributed to the bandwidth channel being adapted to the heading information;To the packet labeling type of message for being located at the bandwidth channel;Transmission control is carried out to the message according to the type of message.Various configurations scheme, more reasonably bandwidth allocation can be achieved, avoid bandwidth exhaustion, simplify configuration flow, network administrator's reasonable distribution bandwidth resources are effectively helped, to promote network operation quality.

Description

A kind of bandwidth management method, device and computer equipment
Technical field
This specification is related to the technical field more particularly to a kind of bandwidth management method, device and computer equipment of communication.
Background technique
With the fast development of network technology, using becoming, increasingly multiplicity is complicated, and the quantity of message is increased sharply, and may cause Network congestion even packet loss, leads to the of poor quality or even unusable of network application, therefore, it is necessary to the demands for services according to user Distribution and schedule network resources, provide different services.
Currently, common Managed Solution is QoS (Quality of Service, service quality), the common model of QoS is DiffServ model, DiffServ model are that the flow in network is divided into multiple classes, and each class enjoys different processing, especially It is that class different when congestion occurs in network can enjoy different priority processings.
In DiffServ model, before application program issues message, by the way that the qos parameter information of message is arranged, to net Network node informs QoS demand.
After flow enters network, network node provides service according to the qos parameter information of formulation, divides message Class, network node give differentiated services to different classes of flow according to classification, differentially carry out flow control and forwarding, mention For QoS guarantee end to end.
QoS is the requirement in order to meet user to different application different service quality, according to the demand of user, to resource into Row distribution and scheduling, provide different flows different service quality, and to strong real-time and important message prior is handled, right The not strong message of real-time, provides lower processing priority, only to application program provide quality of service guarantee, control it is accurate It is poor to spend poor and bandwidth allocation reasonability.
Summary of the invention
To overcome the problems in correlation technique, present description provides a kind of bandwidth management method, device and calculating Machine equipment.
According to this specification embodiment in a first aspect, providing a kind of bandwidth management method, which comprises
Receive message;
Heading information is read in the message;
The message is distributed to the bandwidth channel being adapted to the heading information;
To the packet labeling type of message for being located at the bandwidth channel;
Transmission control is carried out to the message according to the type of message.
According to the second aspect of this specification embodiment, a kind of Bandwidth Management device is provided, comprising:
Message receiving module, for receiving message;
Heading information reading module, for reading heading information in the message;
Bandwidth channel distribution module, for distributing the message to the bandwidth channel being adapted to the heading information;
Type of message mark module, for the packet labeling type of message for being located at the bandwidth channel;
Transmission control module, for carrying out transmission control to the message according to the type of message.
According to the third aspect of this specification embodiment, a kind of computer equipment is provided, including memory, processor and deposit Store up the computer program that can be run on a memory and on a processor, wherein the processor is realized when executing described program Following method:
Receive message;
Heading information is read in the message;
The message is distributed to the bandwidth channel being adapted to the heading information;
To the packet labeling type of message for being located at the bandwidth channel;
Transmission control is carried out to the message according to the type of message.
The technical solution that the embodiment of this specification provides can include the following benefits:
In this specification embodiment, receive message, in messages read heading information, by message distribute to heading The bandwidth channel of information adaptation passes the packet labeling type of message for being located at bandwidth channel according to type of message to message Defeated control carries out corresponding Bandwidth Management, it can be achieved that various configurations scheme, more reasonably divides based on bandwidth channel, type of message With bandwidth, bandwidth exhaustion is avoided, simplifies configuration flow, network administrator's reasonable distribution bandwidth resources is effectively helped, to be promoted Network operation quality.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not This specification can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the reality for meeting this specification Example is applied, and is used to explain the principle of this specification together with specification.
Fig. 1 is a kind of this specification flow chart of bandwidth management method shown according to an exemplary embodiment.
Fig. 2 is a kind of this specification flow chart of bandwidth channel distribution method shown according to an exemplary embodiment.
Fig. 3 is a kind of this specification flow chart of band-width tactics matching process shown according to an exemplary embodiment.
Fig. 4 is a kind of this specification flow chart of type of message labeling method shown according to an exemplary embodiment.
Fig. 5 is a kind of hardware structure diagram of computer equipment where this specification embodiment Bandwidth Management device.
Fig. 6 is a kind of this specification block diagram of Bandwidth Management device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute The example of the consistent device and method of some aspects be described in detail in attached claims, this specification.
It is only to be not intended to be limiting this explanation merely for for the purpose of describing particular embodiments in the term that this specification uses Book.The "an" of used singular, " described " and "the" are also intended to packet in this specification and in the appended claims Most forms are included, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein is Refer to and includes that one or more associated any or all of project listed may combine.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but These information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not taking off In the case where this specification range, the first information can also be referred to as the second information, and similarly, the second information can also be claimed For the first information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... " or " in response to determination ".
Next this specification embodiment is described in detail.
As shown in Figure 1, Fig. 1 is a kind of this specification process of bandwidth management method shown according to an exemplary embodiment Figure, comprising the following steps:
Step 101, message is received.
In the present embodiment, it is possible to support the network element of Bandwidth Management, including host, router, interchanger etc., these The effect of network element includes:
To message bandwidth allocation channel and type, and different processing is provided different types of message;
Flow supervision and traffic shaping, the speed of limitation and input, the output of adjustment message are provided;
Admissions control is provided to determine whether that message uses Internet resources.
Step 102, heading information is read in the message.
Message (message) is the unit exchanged in network with the data cell of transmission and network transmission.Message includes Complete data information to be sent, length are not required to unanimously.
Message can constantly be packaged into transmission process grouping, packet, frame transmit, and the mode of encapsulation is some controls of addition The stem of information composition processed, those are exactly heading.
In the present embodiment, if receiving the message of forwarding, bandwidth allocation channel can be read from head (Header) Required heading information.
Step 103, the message is distributed to the bandwidth channel being adapted to the heading information.
In the present embodiment, bandwidth channel can refer to the virtual channel that message passes through.
A plurality of bandwidth channel is configured in a network, and each bandwidth channel can be used for transmitting different types of flow, by message Heading information and the setting of bandwidth channel compare, suitable virtual channel is selected, to distributing the message to conjunction Suitable bandwidth channel.
In one embodiment of the invention, as shown in Fig. 2, step 103 may include steps of:
Step S11 inquires current system time.
Step S12, if the system time was located in the preset entry-into-force time, lookup comes into force within the entry-into-force time Band-width tactics.
In the present embodiment, multiple band-width tactics can be set previously according to business demand, it can be right by reference bandwidth channel Message carries out guarantee or speed limit.
The time that the settable entry-into-force time in each band-width tactics, the i.e. band-width tactics come into force.
For example, some band-width tactics is to forbid accessing shopping website, the entry-into-force time of the band-width tactics is workaday 8: 00-18:00, i.e., 8:00-18:00 on weekdays, the band-width tactics come into force, and forbid accessing shopping website.
At this point, current system time can be read, and traverse the entry-into-force time of each band-width tactics, by the system time with Each entry-into-force time is compared.
If current system time was located in the entry-into-force time, i.e., the band-width tactics come into force, and can be used for and heading information It is matched.
If current system time was located at outside the entry-into-force time, i.e. the band-width tactics Pending The Entry Into Force is not used to and heading Information is matched.
Step S13 matches the heading information with band-width tactics.
Step S14, if the heading information and the band-width tactics successful match, the message is distributed to described The corresponding bandwidth channel of band-width tactics.
In the present embodiment, heading information can be matched with band-width tactics, judges whether the heading information accords with Close the setting of band-width tactics.
If met, message is distributed to the bandwidth channel indicated to the band-width tactics, flow is limited.
If do not met, message is distributed to the bandwidth channel of not speed limit, is directly sent from network interface.
In one embodiment, two or more band-width tactics are preset, also, each band-width tactics can Corresponding priority is configured according to business demand.
In this embodiment, the sequence according to priority successively can be carried out heading information and band-width tactics Matching, until successful match, the high band-width tactics of preferential use priority.
Furthermore, for matching each time, it can be selected from currently not matched band-width tactics and determine highest priority Band-width tactics.
Judge whether the heading information matches with the band-width tactics of highest priority.
If so, determining the band-width tactics successful match of heading information and highest priority.
If it is not, then return to the band-width tactics that highest priority is selected from currently not matched band-width tactics, i.e., current With failure, matched next time.
In one example, heading information includes following at least one:
Source domain, purpose domain, source IP address, purpose IP address, source service, source user, source application.
Correspondingly, band-width tactics include following at least one policing parameter:
Reference field, reference address, Reference Services, with reference to user, with reference to application.
Wherein, reference field belongs to security domain, is the set of the networked network of several interfaces, and the user in these networks has phase Same security attribute.
In band-width tactics, configuration reference field can limit flow, for example, limitation is from Trust (accredited area) to DMZ (non-army The area Shi Hua) flow.
Reference address belongs to individual address, group of addresses or domain name, and by taking IP address as an example, IP address is one that IP agreement provides The same address format of kind is a logical address of each network on internet and each host assignment;Domain name is For identifying the title of a certain computer or calculating unit on network, domain name can be mapped with IP.
In band-width tactics, configuration reference address can limit flow, for example, limitation from 192.168.0.0/24 to 10.10.0.0/24 flow.
Reference Services belong to single service or service group, and so-called service, each level is provided to its upper layer exactly in network One group of service agreement.Common service type has FTP (File Transfer Protocol, File Transfer Protocol), HTTP (HyperText Transfer Protocol, hypertext transfer protocol) and DNS (Domain Name System, domain name system System) etc..
In band-width tactics, configuration Reference Services can limit flow, for example, it is assumed that the service of configuration is HTTP, then it can be with Limit the flow of HTTP.
It is single user or user group with reference to user, that is, needs to authenticate the user of online.
In band-width tactics, configuration can distribute the size of available bandwidth with reference to user for user, for example, it is assumed that user group, The available bandwidth of all users in this user group can then be limited.
It is network application with reference to application, that is, needs to carry out the application of network communication.
In band-width tactics, configuration can be to the application limitation speed, for example, it is assumed that configuration mailbox client with reference to application And download tool, it can be mostly mailbox client distribution necessary bandwidth, reduce bandwidth workable for download tool.
In oneainstance, source domain, purpose domain are compared with reference field, if source domain and purpose domain belong to reference field, Then determine heading information and band-width tactics successful match.
At this point, message can be distributed to the corresponding bandwidth channel of band-width tactics (reference field), to limit flow.
In another scenario, source address, destination address are compared with reference address, if source address and destination address Belong to reference address, it is determined that heading information and band-width tactics successful match.
At this point, message can be distributed to the corresponding bandwidth channel of band-width tactics (reference address), to limit flow System.
In another scenario, source is serviced and is compared with Reference Services, if source service belongs to Reference Services, it is determined that Heading information and band-width tactics successful match.
At this point, message can be distributed to the corresponding bandwidth channel of band-width tactics (Reference Services), to limit flow System.
In another scenario, source user is compared with reference to user, if source user belongs to reference to user, it is determined that Heading information and band-width tactics successful match.
At this point, message can be distributed to bandwidth channel corresponding to the band-width tactics (with reference to user), to limit flow System.
In another scenario, source is applied and is compared with reference application, if whether source application belongs to reference to application, Determine heading information and band-width tactics successful match.
At this point, message can be distributed to bandwidth channel corresponding to the band-width tactics (with reference to application), to limit flow System.
For some business demand, the priority of band-width tactics can be configured that
The priority of band-width tactics belonging to reference field is higher than band-width tactics belonging to reference address;
The priority of band-width tactics belonging to reference address is higher than the band-width tactics with reference to belonging to agreement;
The priority of the band-width tactics with reference to belonging to agreement is higher than the band-width tactics with reference to belonging to user;
The priority of the band-width tactics with reference to belonging to user is higher than with reference to using affiliated band-width tactics.
In the case, as shown in figure 3, heading information and the matched process of band-width tactics are as follows:
In the step s 21, judge whether source domain and purpose domain belong to reference field;If so, S26 is thened follow the steps, if it is not, then Execute step S22.
In step S22, judge source address and destination address belong to whether reference address;If so, S26 is thened follow the steps, If it is not, thening follow the steps S23.
In step S23, judge whether source service belongs to Reference Services;If so, S26 is thened follow the steps, if it is not, then executing Step S24.
Step S24, judges whether source user belongs to reference to user;If so, S26 is thened follow the steps, if it is not, thening follow the steps S25。
Step S25, judges whether source application belongs to reference to application;If so, S26 is thened follow the steps, if it is not, thening follow the steps S27。
Step S26 determines heading information and band-width tactics successful match.
Step S27, determining heading information, it fails to match with band-width tactics.
Certainly, above-mentioned band-width tactics and its matching way are intended only as example, in implementing the embodiments of the present invention, Ke Yigen Other band-width tactics and its matching way are set according to actual conditions, the embodiments of the present invention are not limited thereto.In addition, in addition to upper State outside band-width tactics and its matching way, those skilled in the art can also according to actual needs using other band-width tactics and its Matching way, the embodiment of the present invention are also without restriction to this.
Step 104, to the packet labeling type of message for being located at the bandwidth channel.
Message is distributed to the bandwidth channel of adaptation, according to the traffic conditions in bandwidth channel, to the packet labeling Type of message, thus it is subsequent guaranteed according to the type of message in network interface, the control such as current limliting.
In the concrete realization, on the one hand, the configuration information that bandwidth channel is arranged is read, what bandwidth channel was arranged in acquisition Independent maximum bandwidth, channel guarantee bandwidth, channel maximum bandwidth.
Wherein, independent maximum bandwidth can refer to maximum bandwidth workable for each source IP address or user.
For example, the independent maximum bandwidth for configuring each source IP address is 1Mbps, all equipment for being matched to the strategy are maximum Use the bandwidth of 1Mbps.
Channel guarantees that bandwidth can refer to available, minimum upstream and downstream bandwidth in the bandwidth channel, can be used to ensure that key Business pass through.
For example, configuration Mail guarantee bandwidth is 5Mbps if it is 5Mbps that Intranet mailing system normal use, which needs flow, The strategy of configuration mailbox client quotes the configuration, in this way, the message of mail can at least use the guarantee flow of 5Mbps, guarantees postal Part business will not be blocked because of other business bandwidth-hoggings.
Channel maximum bandwidth can refer to workable maximum upstream and downstream bandwidth in bandwidth channel, can be used for limiting certain flows The bandwidth upper limit used.
For example, configuration maximum bandwidth is 5Mbps, the strategy for configuring download tool quotes the configuration, in this way using downloading work The maximum speed of tool downloading is 5Mbps.
On the other hand, current message can be calculated to distribute to bandwidth channel, the stream that all messages occupy in bandwidth channel Total bandwidth is measured, and calculates message and distributes to bandwidth channel, the independent average bandwidth which occupies.
Specifically, the configuration information that bandwidth channel is arranged is read, the channel maximum bandwidth that bandwidth channel is arranged is obtained, And the quantity of source IP address or user in the bandwidth channel are inquired, by the channel maximum bandwidth divided by the quantity, can be obtained every The independent average bandwidth that message corresponding to source IP address or user occupies.
At this point, three conditions of setting:
First condition is that independent average bandwidth is more than average bandwidth;
Second condition is that flow total bandwidth is more than to guarantee bandwidth;
Third condition is that flow total bandwidth is more than maximum bandwidth.
By standard (the independent maximum belt of current traffic conditions (flow total bandwidth, independent average bandwidth) and bandwidth channel Wide, channel guarantees bandwidth, channel maximum bandwidth) it is compared, judge whether to meet above three condition:
In oneainstance, if message does not meet first condition and second condition, the type of message of message is labeled as Guarantee message.
In another scenario, if message does not meet first condition and third condition and meets second condition, by message Type of message be labeled as current limliting message.
In addition, if message meets first condition, dropping packets.
Alternatively, if message does not meet first condition and meets second condition and third condition, dropping packets.
In one embodiment, as shown in figure 4, the process compared is as follows:
In step S31, judge whether independent average bandwidth is more than independent maximum bandwidth;If so, thening follow the steps S34; If it is not, thening follow the steps S32.
In step s 32, judge whether flow total bandwidth is more than that channel guarantees bandwidth;If so, thening follow the steps S33;If It is no, then follow the steps S35.
In step S33, whether flow total bandwidth is more than channel maximum bandwidth;If so, thening follow the steps S34;If it is not, then Execute step S36.
Step S34, dropping packets.
Step S35, by the type of message of message labeled as guarantee message.
The type of message of message is labeled as speed limit message by step S36.
Certainly, above-mentioned type of message and its set-up mode are intended only as example, in implementing the embodiments of the present invention, Ke Yigen Other type of messages and its set-up mode are set according to actual conditions, the embodiments of the present invention are not limited thereto.In addition, in addition to upper State outside type of message and its set-up mode, those skilled in the art can also according to actual needs using other type of messages and its Set-up mode, the embodiment of the present invention are also without restriction to this.
Step 105, transmission control is carried out to the message according to the type of message.
In the present embodiment, guaranteed at the speed limit of network interface with markd message, the processing such as current limliting.
In the concrete realization, the configuration file that network interface is arranged is read, the maximum belt that network interface is arranged is obtained Wide and reserved bandwidth.
Wherein, maximum bandwidth, refers to the bandwidth upper limit in network interface in/out direction, and configurable bandwidth range is 8Kbps-10Gbp, all flows of maximum bandwidth all can be used, can be used for limiting network interface allow by maximum bandwidth.
Reserved bandwidth, refers to the reserved bandwidth in network interface in/out direction, and reserved bandwidth only allows certain form of stream Amount (as guaranteed message) passes through, and guarantees that the message of key business will not be dropped.
At this point, the standard (maximum bandwidth and reserved bandwidth) of current traffic conditions and network interface can be compared:
In oneainstance, if message is empty with first in addition to reserved bandwidth in speed limit message and maximum bandwidth Not busy bandwidth then occupies the first idle bandwidth, sends message.
In another scenario, if message is the not had in addition to reserved bandwidth in speed limit message and maximum bandwidth One idle bandwidth, then dropping packets.
In another scenario, if message is to guarantee there is the second idle bandwidth in message and reserved bandwidth, the is occupied Two idle bandwidths send message.
In another scenario, if message is to guarantee do not have the second idle bandwidth, maximum belt in message and reserved bandwidth There is the first idle bandwidth in addition to reserved bandwidth in wide, then occupy the first idle bandwidth, send message.
In another scenario, if message is to guarantee do not have the second idle bandwidth, maximum belt in message and reserved bandwidth Do not have the first idle bandwidth in addition to reserved bandwidth in wide, then dropping packets.
Wherein, the first idle bandwidth and the second idle bandwidth belong to idle bandwidth, i.e., unappropriated bandwidth.
For reserved bandwidth, if the message abandoned at network interface includes to guarantee message, can dynamically raise reserved Bandwidth makes it preferentially pass through guarantee message, will not seize excessive bandwidth by the speed limit message of a large amount of nonessential business.
In one embodiment, configuration file is read, is obtained in advance to the maximum bandwidth of bandwidth channel setting.
The ratio fixed to maximum bandwidth fetching, tone pitch in acquisition carry out on the basis of reserved bandwidth according to upper tone pitch It adjusts, until raising to upper limit value.
For example, upper tone pitch can be calculated by following formula:
32Kbps* interface configures (Kbps)/(10*1024Kbps)
If configuring 10Mbps, the reserved bandwidth of network interface can be increased into 32Kbps, herein, highest up-regulation is online For 256Kbps.
Hereafter, if the message abandoned, which does not include, guarantees message, reserved bandwidth can be dynamically adjusted back, until falling after rise to first The value of beginning.
In one embodiment, record bandwidth channel in a upper period (one second as above), guarantee message first Quantity.
Using the first quantity as reference, estimate in subsequent time period (such as next second), the second quantity of guarantee message.
For example, it is assumed that the quantity of message keeps balance in the short time, it may be considered that in a upper period, guaranteeing message First quantity is equal in subsequent time period, guarantee the second quantity of message.
Lower tone pitch is calculated according to the second quantity, and on the basis of reserved bandwidth, is lowered according to lower tone pitch, until returning Drop down onto original value.
In this specification embodiment, receive message, in messages read heading information, by message distribute to heading The bandwidth channel of information adaptation passes the packet labeling type of message for being located at bandwidth channel according to type of message to message Defeated control carries out corresponding Bandwidth Management, it can be achieved that various configurations scheme, more reasonably divides based on bandwidth channel, type of message With bandwidth, bandwidth exhaustion is avoided, simplifies configuration flow, network administrator's reasonable distribution bandwidth resources is effectively helped, to be promoted Network operation quality.
Corresponding with the embodiment of preceding method, this specification additionally provides the implementation of device and its applied terminal Example.
The embodiment of this specification document handling apparatus can be applied on a computing device, such as server or terminal are set Standby (such as router, interchanger).Installation practice can also pass through hardware or software and hardware combining by software realization Mode realize.It taking software implementation as an example, is the processing by file process where it as the device on a logical meaning Computer program instructions corresponding in nonvolatile memory are read into memory what operation was formed by device.From hardware view Speech, as shown in figure 5, for a kind of hardware structure diagram of this specification embodiment document handling apparatus place computer equipment, in addition to Except processor 510 shown in fig. 5, memory 530, network interface 520 and nonvolatile memory 540, device in embodiment Server or electronic equipment where 531 can also include other hardware generally according to the actual functional capability of the computer equipment, This is repeated no more.
As shown in fig. 6, Fig. 6 is a kind of this specification frame of Bandwidth Management device shown according to an exemplary embodiment Figure, described device include:
Message receiving module 610, for receiving message;
Heading information reading module 620, for reading heading information in the message;
Bandwidth channel distribution module 630 is led to for distributing the message to the bandwidth being adapted to the heading information Road;
Type of message mark module 640, for the packet labeling type of message for being located at the bandwidth channel;
Transmission control module 650, for carrying out transmission control to the message according to the type of message.
In one embodiment of the invention, the bandwidth channel distribution module 630 includes:
Band-width tactics matched sub-block, for matching the heading information with band-width tactics;
Message distribution sub module, if for the heading information and the band-width tactics successful match, by the report Text is distributed to the corresponding bandwidth channel of the band-width tactics.
In one embodiment of the invention, the band-width tactics matched sub-block includes:
Band-width tactics determination unit, for selecting the bandwidth plan for determining highest priority from currently not matched band-width tactics Slightly;
Matching judgment unit, for judge the heading information and the highest priority band-width tactics whether Match;If so, successfully determination unit is called, if it is not, then calling the band-width tactics determination unit;
Success determination unit, for determining that the heading information is matched into the band-width tactics of the highest priority Function.
In one example of an embodiment of the present invention, the heading information includes following at least one:
Source domain, purpose domain, source IP address, purpose IP address, source service, source user, source application;
The band-width tactics include following at least one policing parameter:
Reference field, reference address, Reference Services, with reference to user, with reference to application, the entry-into-force time;
The bandwidth channel distribution module 630 further include:
System time inquires submodule, for inquiring current system time;
Band-width tactics search submodule, if being located in the preset entry-into-force time for the system time, search in institute State the band-width tactics to come into force in the entry-into-force time;
The band-width tactics determination unit includes:
First coupling subelement, if belonging to the reference field for the source domain and the purpose domain, it is determined that the report Literary head information and the band-width tactics successful match;
And/or
Second coupling subelement, if belonging to the reference address for the source address and the destination address, it is determined that The heading information and the band-width tactics successful match;
And/or
Third coupling subelement, if belonging to the Reference Services for the source service, it is determined that the heading information With the band-width tactics successful match;
And/or
4th coupling subelement, if belonging to for the source user described with reference to user, it is determined that the heading information With the band-width tactics successful match;
And/or
5th coupling subelement, if belonging to for source application described with reference to application, it is determined that the heading information With the band-width tactics successful match.
In one embodiment of the invention, the type of message mark module 640 includes:
Channel parameters acquisition submodule, for obtaining the independent maximum bandwidth to bandwidth channel setting, channel guarantees Bandwidth, channel maximum bandwidth;
Total bandwidth computational submodule is distributed to the bandwidth channel for calculating the message, in the bandwidth channel The flow total bandwidth that all messages occupy;
Average bandwidth computational submodule is distributed for calculating the message to the bandwidth channel, to the message point The independent average bandwidth matched;
First label submodule, if not meeting first condition and second condition for the message, by the message Type of message is labeled as guarantee message;
Second label submodule, if not meeting first condition and third condition for the message and meeting second condition, The type of message of the message is then labeled as current limliting message;
First packet loss submodule abandons the message if meeting first condition for the message;
Second packet loss submodule, if not meeting first condition for the message and meeting second condition and third condition, Then abandon the message;
Wherein, it is more than the independent maximum bandwidth that the first condition, which is the independent average bandwidth,;
The second condition is that the flow total bandwidth is more than that the channel guarantees bandwidth;
The third condition is that the flow total bandwidth is more than the channel maximum bandwidth.
In one embodiment of the invention, the transmission control module 650 includes:
Interface parameters acquisition submodule, for obtaining maximum bandwidth and reserved bandwidth to network interface setting;
First gives out a contract for a project submodule, if being to have in speed limit message and the maximum bandwidth except described pre- for the message The first idle bandwidth except bandwidth is stayed, then occupies first idle bandwidth, send the message;
Third packet loss submodule, if being not have in speed limit message and the maximum bandwidth except described for the message The first idle bandwidth except reserved bandwidth, then abandon the message;
Second gives out a contract for a project submodule, if for the message be guarantee to have in message and the reserved bandwidth it is second idle Bandwidth then occupies second idle bandwidth, sends the message;
Third is given out a contract for a project submodule, if for the message be guarantee not have second in message and the reserved bandwidth it is empty There is the first idle bandwidth in addition to the reserved bandwidth in not busy bandwidth, the maximum bandwidth, then it is idle to occupy described first Bandwidth sends the message;
4th packet loss submodule, if being to guarantee do not have the second sky in message and the reserved bandwidth for the message Do not have the first idle bandwidth in addition to the reserved bandwidth in not busy bandwidth, the maximum bandwidth, then abandons the message.
In one embodiment of the invention, the transmission control module 650 further include:
Reserved bandwidth raises submodule, if the message for discarding includes to guarantee message, raises the reserved band It is wide;
Reserved bandwidth lowers submodule, if the message for discarding, which does not include, guarantees message, adjusts back described reserved Bandwidth.
In one embodiment of the invention, the reserved bandwidth up-regulation submodule includes:
Maximum bandwidth acquiring unit, for obtaining in advance to the maximum bandwidth of bandwidth channel setting;
Upper tone pitch computing unit, for the ratio fixed to the maximum bandwidth fetching, tone pitch in acquisition;
Upper tone pitch raises unit, for being raised on the basis of the reserved bandwidth according to the upper tone pitch;
The reserved bandwidth lowers submodule
First quantity recording unit, for recording the bandwidth channel in a upper period, the first number of guarantee message Amount;
Second quantity estimates unit, for using first quantity as reference, estimating in subsequent time period, guaranteeing report Second quantity of text;
Lower tone pitch computing unit, for calculating lower tone pitch according to second quantity;
Lower tone pitch lowers unit, for being lowered on the basis of the reserved bandwidth according to the lower tone pitch.
In this specification embodiment, receive message, in messages read heading information, by message distribute to heading The bandwidth channel of information adaptation passes the packet labeling type of message for being located at bandwidth channel according to type of message to message Defeated control carries out corresponding Bandwidth Management, it can be achieved that various configurations scheme, more reasonably divides based on bandwidth channel, type of message With bandwidth, bandwidth exhaustion is avoided, simplifies configuration flow, network administrator's reasonable distribution bandwidth resources is effectively helped, to be promoted Network operation quality.
Correspondingly, this specification also provides a kind of computer equipment, the computer equipment include memory, processor and Store the computer program that can be run on a memory and on a processor, wherein the processor executes real when described program Existing following method:
Receive message;
Heading information is read in the message;
The message is distributed to the bandwidth channel being adapted to the heading information;
To the packet labeling type of message for being located at the bandwidth channel;
Transmission control is carried out to the message according to the type of message.
The function of modules and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The module of explanation may or may not be physically separated, and the component shown as module can be or can also be with It is not physical module, it can it is in one place, or may be distributed on multiple network modules.It can be according to actual The purpose for needing to select some or all of the modules therein to realize this specification scheme.Those of ordinary skill in the art are not In the case where making the creative labor, it can understand and implement.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
Those skilled in the art will readily occur to this specification after considering specification and practicing the invention applied here Other embodiments.This specification is intended to cover any variations, uses, or adaptations of this specification, these modifications, Purposes or adaptive change follow the general principle of this specification and do not apply in the art including this specification Common knowledge or conventional techniques.The description and examples are only to be considered as illustrative, the true scope of this specification and Spirit is indicated by the following claims.
It should be understood that this specification is not limited to the precise structure that has been described above and shown in the drawings, And various modifications and changes may be made without departing from the scope thereof.The range of this specification is only limited by the attached claims System.
The foregoing is merely the preferred embodiments of this specification, all in this explanation not to limit this specification Within the spirit and principle of book, any modification, equivalent substitution, improvement and etc. done should be included in the model of this specification protection Within enclosing.

Claims (10)

1. a kind of bandwidth management method, which is characterized in that the described method includes:
Receive message;
Heading information is read in the message;
The message is distributed to the bandwidth channel being adapted to the heading information;
To the packet labeling type of message for being located at the bandwidth channel;
Transmission control is carried out to the message according to the type of message.
2. the method according to claim 1, wherein it is described by the message distribute to the heading information The bandwidth channel of adaptation, comprising:
The heading information is matched with band-width tactics;
If the heading information and the band-width tactics successful match, the message is distributed corresponding to the band-width tactics Bandwidth channel.
3. according to the method described in claim 2, it is characterized in that, described by the heading information and band-width tactics progress Match, comprising:
The band-width tactics for determining highest priority are selected from currently not matched band-width tactics;
Judge whether the heading information matches with the band-width tactics of the highest priority;
If so, determining the band-width tactics successful match of the heading information and the highest priority;
If it is not, then returning to the band-width tactics for selecting highest priority from currently not matched band-width tactics.
4. according to the method described in claim 3, it is characterized in that,
The heading information includes following at least one:
Source domain, purpose domain, source IP address, purpose IP address, source service, source user, source application;
The band-width tactics include following at least one policing parameter:
Reference field, reference address, Reference Services, with reference to user, with reference to application, the entry-into-force time;
It is described to distribute the message to the bandwidth channel being adapted to the heading information, further includes:
Inquire current system time;
If the system time was located in the preset entry-into-force time, the band-width tactics to come into force within the entry-into-force time are searched;
It is described to judge whether the heading information matches with the band-width tactics of the highest priority, comprising:
If the source domain and the purpose domain belong to the reference field, it is determined that the heading information and the band-width tactics With success;
And/or
If the source address and the destination address belong to the reference address, it is determined that the heading information and the bandwidth Strategy matching success;
And/or
If the source service belongs to the Reference Services, it is determined that the heading information and the band-width tactics successful match;
And/or
If the source user belongs to described with reference to user, it is determined that the heading information and the band-width tactics successful match;
And/or
If the source application belongs to described with reference to application, it is determined that the heading information and the band-width tactics successful match.
5. method according to claim 1-4, which is characterized in that described pair is located at the described of the bandwidth channel Packet labeling type of message, comprising:
Obtain independent maximum bandwidth, channel the guarantee bandwidth, channel maximum bandwidth that the bandwidth channel is arranged;
It calculates the message to distribute to the bandwidth channel, the flow total bandwidth that all messages occupy in the bandwidth channel;
It calculates the message to distribute to the bandwidth channel, to the independent average bandwidth of message distribution;
If the message does not meet first condition and second condition, by the type of message of the message labeled as guarantee message;
If the message does not meet first condition and third condition and meets second condition, by the type of message of the message Labeled as current limliting message;
If the message meets first condition, the message is abandoned;
If the message does not meet first condition and meets second condition and third condition, the message is abandoned;
Wherein, it is more than the independent maximum bandwidth that the first condition, which is the independent average bandwidth,;
The second condition is that the flow total bandwidth is more than that the channel guarantees bandwidth;
The third condition is that the flow total bandwidth is more than the channel maximum bandwidth.
6. method according to claim 1-4, which is characterized in that it is described according to the type of message to the report Text carries out transmission control, comprising:
Obtain the maximum bandwidth and reserved bandwidth that network interface is arranged;
If the message is to have the in addition to the reserved bandwidth first idle band in speed limit message and the maximum bandwidth Width then occupies first idle bandwidth, sends the message;
If the message is the first idle band not having in addition to the reserved bandwidth in speed limit message and the maximum bandwidth Width then abandons the message;
If the message is to guarantee there is the second idle bandwidth in message and the reserved bandwidth, it is idle to occupy described second Bandwidth sends the message;
If the message is to guarantee not have in message and the reserved bandwidth the second idle bandwidth, have in the maximum bandwidth There is the first idle bandwidth in addition to the reserved bandwidth, then occupies first idle bandwidth, sends the message;
If the message be guarantee not have in message and the reserved bandwidth the second idle bandwidth, in the maximum bandwidth not With the first idle bandwidth in addition to the reserved bandwidth, then the message is abandoned.
7. according to the method described in claim 6, it is characterized in that, described pass the message according to the type of message Defeated control, further includes:
If the message abandoned includes to guarantee message, the reserved bandwidth is raised;
If the message abandoned, which does not include, guarantees message, the reserved bandwidth is adjusted back.
8. the method according to the description of claim 7 is characterized in that
The value of the up-regulation reserved bandwidth, comprising:
It obtains in advance to the maximum bandwidth of bandwidth channel setting;
The ratio fixed to the maximum bandwidth fetching, tone pitch in acquisition;
On the basis of the reserved bandwidth, raised according to the upper tone pitch;
The readjustment reserved bandwidth, comprising:
The bandwidth channel was recorded in a upper period, the first quantity of guarantee message;
Using first quantity as reference, estimate in subsequent time period, the second quantity of guarantee message;
Lower tone pitch is calculated according to second quantity;
On the basis of the reserved bandwidth, lowered according to the lower tone pitch.
9. a kind of Bandwidth Management device, which is characterized in that described device includes:
Message receiving module, for receiving message;
Heading information reading module, for reading heading information in the message;
Bandwidth channel distribution module, for distributing the message to the bandwidth channel being adapted to the heading information;
Type of message mark module, for the packet labeling type of message for being located at the bandwidth channel;
Transmission control module, for carrying out transmission control to the message according to the type of message.
10. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, wherein the processor realizes following method when executing described program:
Receive message;
Heading information is read in the message;
The message is distributed to the bandwidth channel being adapted to the heading information;
To the packet labeling type of message for being located at the bandwidth channel;
Transmission control is carried out to the message according to the type of message.
CN201811276107.3A 2018-10-30 2018-10-30 Bandwidth management method and device and computer equipment Active CN109039791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811276107.3A CN109039791B (en) 2018-10-30 2018-10-30 Bandwidth management method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811276107.3A CN109039791B (en) 2018-10-30 2018-10-30 Bandwidth management method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN109039791A true CN109039791A (en) 2018-12-18
CN109039791B CN109039791B (en) 2021-04-27

Family

ID=64614482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811276107.3A Active CN109039791B (en) 2018-10-30 2018-10-30 Bandwidth management method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN109039791B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111277456A (en) * 2020-01-15 2020-06-12 福建奇点时空数字科技有限公司 Network congestion monitoring method based on bandwidth channel multi-dimensional correlation analysis
CN115348490A (en) * 2022-10-18 2022-11-15 武汉长光科技有限公司 Method for dynamically scheduling service wavelength channel and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567828A (en) * 2003-06-18 2005-01-19 中兴通讯股份有限公司 A method for performing speed limiting on data traffic by network processor
CN1909508A (en) * 2006-08-23 2007-02-07 华为技术有限公司 Port flow control method
US20120170625A1 (en) * 2009-08-21 2012-07-05 Aware, Inc. Header repetition in packet-based ofdm systems
CN103618681A (en) * 2013-11-15 2014-03-05 深圳市磊科实业有限公司 Elastic network bandwidth control method and system thereof
CN105306380A (en) * 2014-07-17 2016-02-03 炬力集成电路设计有限公司 Data transmission method, data transmission device and application thereof
CN106603147A (en) * 2017-01-18 2017-04-26 中国人民解放军国防科学技术大学 Software defined networking-based air and space information network business forwarding method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567828A (en) * 2003-06-18 2005-01-19 中兴通讯股份有限公司 A method for performing speed limiting on data traffic by network processor
CN1909508A (en) * 2006-08-23 2007-02-07 华为技术有限公司 Port flow control method
US20120170625A1 (en) * 2009-08-21 2012-07-05 Aware, Inc. Header repetition in packet-based ofdm systems
CN103618681A (en) * 2013-11-15 2014-03-05 深圳市磊科实业有限公司 Elastic network bandwidth control method and system thereof
CN105306380A (en) * 2014-07-17 2016-02-03 炬力集成电路设计有限公司 Data transmission method, data transmission device and application thereof
CN106603147A (en) * 2017-01-18 2017-04-26 中国人民解放军国防科学技术大学 Software defined networking-based air and space information network business forwarding method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111277456A (en) * 2020-01-15 2020-06-12 福建奇点时空数字科技有限公司 Network congestion monitoring method based on bandwidth channel multi-dimensional correlation analysis
CN111277456B (en) * 2020-01-15 2021-10-15 福建奇点时空数字科技有限公司 Network congestion monitoring method based on bandwidth channel multi-dimensional correlation analysis
CN115348490A (en) * 2022-10-18 2022-11-15 武汉长光科技有限公司 Method for dynamically scheduling service wavelength channel and related device

Also Published As

Publication number Publication date
CN109039791B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN100521624C (en) Adaptive classification of network traffic
US6295294B1 (en) Technique for limiting network congestion
US20030031178A1 (en) Method for ascertaining network bandwidth allocation policy associated with network address
US20030033421A1 (en) Method for ascertaining network bandwidth allocation policy associated with application port numbers
CN102239668A (en) Method to assign traffic priority or bandwidth for application at the end users-device
US7092359B2 (en) Method for distributing the data-traffic load on a communication network and a communication network for implementing this method
KR20000076719A (en) An rsvp-based tunnel protocol providing integrated services
CN100454887C (en) A method, device and system of realizing QoS guarantee in MPLS network
CN112600684B (en) Bandwidth management and configuration method of cloud service and related device
US10581942B2 (en) Allocating capacity of a network connection to data streams based on type
CN101127711B (en) System and process for QoS-based packet scheduling
JP2004336549A (en) Method and device for band control
Bhatti et al. QoS-sensitive flows: Issues in IP packet handling
CN101924781A (en) Terminal equipment and QoS implementation method and flow classifier
CN109039791A (en) A kind of bandwidth management method, device and computer equipment
CN102413051A (en) Method and device for scheduling quality of service (QOS)
SE519475C2 (en) Filtering of IP packets
CA2439805C (en) Method of providing service classes in a packet network
US20030099199A1 (en) Bandwidth allocation credit updating on a variable time basis
JP2006520574A (en) System and method for providing differentiated services
Cisco Cisco IOS Quality of Service Solutions Configuration Guide Release 12.1
KR100585229B1 (en) Method for providing quality of service guarantee, and home network system using the same
KR100415583B1 (en) Service Management System and Method for supporting Differentiated Service on the Internet
JP2002305538A (en) Communication quality control method, server and network system
Bragg Quality of service: old idea, new options

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