A kind of intelligent load strategy of many WAN mouthfuls of network equipments
Technical field
It is to be related to a kind of intelligence of many WAN mouthfuls of network equipments to bear specifically the present invention relates to network communication technology field
Carry strategy.
Background technology
Under the overall background that broadband speed-raising drop is taken, by the effort construction of operator, 100,000,000 network insertions have begun to come into
In the routine use of ordinary user, or even gigabit access also begins to gradually prevalence.And developing rapidly with network technology, people
To the demand of bandwidth also more and more higher, access also turns into a kind of inexpensive increased solution of bandwidth while a plurality of broadband.
When being accessed in a plurality of broadband simultaneously, how to be fully superimposed bandwidth, make circuit utilization rate more abundant, be many WAN mouthfuls of network equipments
One of necessary functions.
The broadband access that current main-stream operator provides, is generally all that upstream and downstream bandwidth is not reciprocity.This is also complied with commonly
Most of usage scenarios of wide band access user.Such as web page browsing, download etc. are applied, and are all mainly to use downlink bandwidth.Fortune
So-called 100,000,000/gigabit access that business provides is sought, is all the nominal index of downlink bandwidth, upstream bandwidth is but without hardness guarantee, example
Such as 100,000,000 accesses of common line, its downlink bandwidth is 100M, but upstream bandwidth only has 4M, and the 100000000 of special line circuit access,
Equally it is downlink bandwidth 100M, but its upstream bandwidth may be up to tens.So easily ignored is upstream bandwidth
Reasonable employment situation.It is all descending 100M bandwidth, between different operators or circuit, upstream bandwidth also has larger difference.
Now at present in many medium-sized and small enterprises, the consideration in cost, the feelings that special line circuit and common line superposition are used
Condition is very universal, and bandwidth descending same 100M, upstream bandwidth can then differ greatly.Because upstream and downstream bandwidth ratio and reality are poor
It is different larger, if many WAN jaws equipments simply using descending bandwidth usage as WAN mouthful between load according to if, compared with
Small upstream bandwidth necessarily takes the lead in being restricted.When upstream bandwidth is occupied full, up request message will be unable to send,
There is packet loss, so that the utilization rate of downlink bandwidth similarly receives limitation.On the other hand in some circumstances, it is up using less
And it is descending very high using meeting.One of the utilization rate of downlink bandwidth, important judgment criteria of the typically current network equipment.And close
The distribution of the improvement upstream bandwidth of reason, is exactly the utilization rate for improving downlink bandwidth in fact.
Based on current this Web vector graphic environment and applied analysis, it is proposed that a kind of intelligence based on upstream and downstream bandwidth is negative
Carry strategy.
The content of the invention
For above-mentioned the deficiencies in the prior art, the present invention provides a kind of intelligent load strategy of many WAN mouthfuls of network equipments.
To achieve these goals, the technical solution adopted by the present invention is as follows:
A kind of intelligent load strategy of many WAN mouthfuls of network equipments, comprises the following steps:
(S1)Timing detects all WAN mouthfuls of flow service condition of many WAN mouthfuls of network equipments, and is calculated with this and configure every
Individual WAN mouthfuls load-related parameter, the load-related parameter comprising it is up take ratio, it is descending take ratio, residue upstream bandwidth
Average value, remaining downlink bandwidth average value;
(S2)Receive other module transfers from many WAN mouthful network equipments packet to be sent and specify it is many
Individual optional WAN mouthfuls;
(S3)The up occupancy ratio of these WAN mouths specified is contrasted, if the up occupancy of WAN mouthfuls of existence anduniquess compares less than setting threshold
Value, then select the WAN mouthfuls of transmission as the packet to be sent to export;If up take than the WAN less than given threshold
Mouth is two or more, then selects wherein a WAN mouthfuls as described to be sent according to up remaining bandwidth ratio dynamically distributes principle
The transmission outlet of packet;If these WAN mouthfuls of up occupancy ratio is not less than given threshold, next step is carried out;
(S4)These WAN mouthfuls of descending occupancy ratio is contrasted, if the descending occupancy of WAN mouthfuls of existence anduniquess compares less than given threshold,
Select the WAN mouthfuls of transmission as the packet to be sent to export, otherwise carry out next step;
(S5)These WAN mouthfuls of remaining upstream bandwidth average value is contrasted, if the remaining upstream bandwidth average value of WAN mouthfuls of existence anduniquess
Not less than given threshold, then the WAN mouthfuls of transmission as the packet to be sent is selected to export, if remaining upstream bandwidth is averaged
Value is two or more not less than the WAN mouths of given threshold, then the WAN mouth conducts for selecting wherein remaining upstream bandwidth average value maximum
The transmission outlet of the packet to be sent, if these WAN mouthfuls of remaining upstream bandwidth average value is respectively less than given threshold, enters
Row next step;
(S6)These WAN mouthfuls of remaining downlink bandwidth average value is contrasted, if the remaining downlink bandwidth average value of WAN mouthfuls of existence anduniquess
Not less than given threshold, then select the WAN mouthfuls of transmission as the packet to be sent to export, otherwise select under wherein residue
The maximum WAN mouths of row bandwidth average value are exported as the transmission of the packet to be sent;
Corresponding data bag is sent by selected WAN mouths.
Specifically, the up ratio that takes is that the WAN mouthfuls of shared upstream bandwidth within the unit interval is configured with it
The ratio of maximum bandwidth,
The descending ratio for taking the maximum bandwidth than being configured for the WAN mouthfuls of shared downlink bandwidth within the unit interval with it
Value,
The remaining upstream bandwidth average value is the average value of the WAN mouthfuls of remaining upstream bandwidth within the unit interval,
The remaining downlink bandwidth average value is the average value of the WAN mouthfuls of remaining downlink bandwidth within the unit interval;
The uplink/downlink bandwidth of remaining uplink/downlink bandwidth=uplink/downlink maximum bandwidth-shared.
Further, the uplink/downlink maximum bandwidth is manually set configuration by user or set by many WAN mouthfuls of networks
It is standby to be automatically configured for each WAN mouthfuls according to the maximum load detected in a period of time.
Preferably, up take is not less than 60% than the given threshold with descending occupancy ratio.
Also, the given threshold of the remaining upstream bandwidth average value is not less than all WAN mouthfuls and set except up occupancy ratio
Determine the value corresponding to 80% of the average value of remaining upstream bandwidth after threshold value correspondence bandwidth value,
The given threshold of the remaining downlink bandwidth average value is not less than all WAN mouthfuls and taken except descending than given threshold correspondence
Value after bandwidth value corresponding to the 80% of the average value of remaining downlink bandwidth.
Further, in order to better adapt to some actual conditions, the step(S1)In, in WAN mouthfuls of stream of detection
Measure after service condition always according to each WAN mouthfuls present load amount configuration suppression rule list, make the packet to be sent excellent
First suppress to select one during rule list is unwritten WAN mouthfuls as transmission outlet from described.
Specifically, the collocation method for suppressing rule list is as follows:
One piece of region is opened up in memory sets up table body,
When regularly detecting all WAN mouthfuls flow service conditions every time, the WAN mouth information records of adding conditional will be met in the table
In vivo, and by the WAN messages that the adding conditional is unsatisfactory for when secondary detection and is present in table body breath out of this table body
Delete;
The adding conditional for current WAN mouthful of flow service condition reach it is up take than or descending occupancy ratio setting threshold
Value.
Wherein, the WAN messages breath for suppressing record in rule list includes WAN mouthfuls of titles or numbering, when secondary flow is used
Situation and when time load-related parameter.
Further, the step(S2)In, if it is described specify it is multiple it is optional WAN mouthfuls in existence anduniquess do not remember currently
The WAN mouths in the suppression rule list are recorded, then select the WAN mouthfuls of transmission as the packet to be sent to export, otherwise
Perform step(S3).
More specifically, the step(S3)In, up remaining bandwidth ratio dynamically distributes principle is
Prioritizing selection is up to be taken than minimum WAN mouths,
Or, the maximum WAN mouths of the remaining upstream bandwidth average value of prioritizing selection,
Or, when these WAN mouthfuls of remaining upstream bandwidth average value is mutually no more than 5%, the wherein remaining downlink bandwidth of prioritizing selection
The maximum WAN mouths of average value.
Compared with prior art, the invention has the advantages that:
(1)Compared to traditional many WAN mouthfuls of network equipments load strategy in the way of downlink bandwidth proportional load, intelligence of the invention
Can load strategy more flexible intelligence, take into account downlink bandwidth while, it is also contemplated that upstream bandwidth;If conventional load plan
Slightly it is that many WAN mouthfuls static balancings are reached according to bandwidth, then of the invention then be according to comprehensive uplink/downlink bandwidth flexible allocation
Dynamic equilibrium is reached, application of the present invention is good, Web vector graphic flexibly, loads more hommization, is with a wide range of applications, and fits
Close popularization and application.
(2)The load strategy of many WAN mouthfuls of network equipments of tradition only considers downlink bandwidth, may in current network bad border
Cause the situation of a large amount of packet losses.Even if the circuit of same 100,000,000 bandwidth, also difference is huge for upstream bandwidth.If merely under
Row proportional load, the up a large amount of vacant situations of circuit for causing upstream and downstream bandwidth to differ greatly.The intelligent load plan of the present invention
Slightly each circuit can be more fully used compared to conventional measures, it is to avoid the waste of idle bandwidth.
(3)The present invention is based on applicant's experience and understanding for many years in the field of business.Current medium-sized and small enterprises special line and common line
Situation about being used in mixed way is very universal, and part company specialized service needs one or more up-downgoing to equiband, but in order to full
Sufficient company's commodity network demand, a common line can be added toward contact.Common line is compared with special line, and downlink bandwidth is much high
In up.For example, the common bandwidth mixing that one up-downgoing of certain company is 20M special line and a up descending 100M of 4M makes
With.If loaded according to conventional measures downlink percent.The largely situation of packet losses will be taken afterwards according into common line is up.This hair
Bright intelligent load strategy exactly take into account this usage scenario, and perfection solves this situation about being used in mixed way.
(4)The present invention even more innovatively proposes the mechanism that WAN mouthfuls of flow feedbacks reversely suppress strategy path selecting, is comprehensive
Consider the supplementary functions of up-downgoing flow service condition load, make whole strategy more perfect.
Brief description of the drawings
Fig. 1 is schematic flow sheet of the invention.
Embodiment
The invention will be further described with reference to the accompanying drawings and examples, and embodiments of the present invention include but is not limited to
The following example.
Embodiment
As shown in figure 1, the intelligent load strategy of many WAN mouthfuls of network equipments, comprises the following steps:
(S1)Timing detects all WAN mouthfuls of flow service condition of many WAN mouthfuls of network equipments, and is calculated with this and configure every
Individual WAN mouthfuls load-related parameter, the load-related parameter comprising it is up take ratio, it is descending take ratio, residue upstream bandwidth
Average value, remaining downlink bandwidth average value.Wherein, work as after WAN mouthfuls of flow service condition is detected always according to each WAN mouthfuls
Preceding load capacity configuration suppresses rule list, in order to better adapt to some special actual conditions.
Specifically, the collocation method for suppressing rule list is as follows:
One piece of region is opened up in memory sets up table body,
When regularly detecting all WAN mouthfuls flow service conditions every time, the WAN mouth information records of adding conditional will be met in the table
In vivo, and by the WAN messages that the adding conditional is unsatisfactory for when secondary detection and is present in table body breath out of this table body
Delete;
The adding conditional for current WAN mouthful of flow service condition reach it is up take than or descending occupancy ratio setting threshold
Value.
Wherein, the WAN messages breath for suppressing record in rule list includes WAN mouthfuls of titles or numbering, when secondary flow is used
Situation and when time load-related parameter.
Specifically, the up ratio that takes is that the WAN mouthfuls of shared upstream bandwidth within the unit interval is configured with it
The ratio of maximum bandwidth, is the index of certain the circuit upstream bandwidth service condition unit of measurement time Nei;
The descending ratio for taking the maximum bandwidth than being configured for the WAN mouthfuls of shared downlink bandwidth within the unit interval with it
Value, is the index of certain the line downstream bandwidth usage unit of measurement time Nei;
The remaining upstream bandwidth average value is the average value of the WAN mouthfuls of remaining upstream bandwidth within the unit interval, is to weigh single
Certain circuit can use the index of upstream bandwidth in the time of position;
The remaining downlink bandwidth average value is the average value of the WAN mouthfuls of remaining downlink bandwidth within the unit interval, is to weigh single
The index of certain circuit available downstream bandwidth in the time of position;
The remaining uplink/downlink bandwidth of certain circuit refer to the circuit uplink/downlink maximum bandwidth except it is occupied it is up/
Remaining bandwidth after downlink bandwidth, can be expressed as the up band of remaining upstream bandwidth=up maximum bandwidth-shared
Width, the downlink bandwidth of remaining downlink bandwidth=descending maximum bandwidth-shared.
For the uplink/downlink maximum bandwidth, configuration can be manually set by user, can also be by described many WAN mouthfuls
The network equipment is automatically configured for each WAN mouthfuls according to the maximum load detected in a period of time, maximum on this detection
Repeated no more in the technical process of the specific method of load, in the prior art existing more maturation, the present invention.
(S2)Receive the next packet to be sent of other module transfers from many WAN mouthfuls of network equipments and specify
It is multiple optional WAN mouthfuls;
If when it is described specify it is multiple it is optional WAN mouthfuls in existence anduniquess be currently not recorded in it is described suppression rule list in WAN mouths,
Then select the WAN mouthfuls of transmission as the packet to be sent to export, otherwise perform step(S3);In this process, if
It is described specify it is multiple it is optional WAN mouthfuls in exist it is multiple be currently not recorded in it is described suppression rule list in WAN mouths, can also base
One of them is selected to be exported as the transmission of the packet to be sent in up remaining bandwidth ratio dynamically distributes principle.
Wherein, the up remaining bandwidth ratio dynamically distributes principle is
Prioritizing selection is up to be taken than smaller WAN mouths,
Or, the bigger WAN mouths of the remaining upstream bandwidth average value of prioritizing selection,
Or, when these WAN mouthfuls of remaining upstream bandwidth average value is mutually no more than 5%, the wherein remaining downlink bandwidth of prioritizing selection
The bigger WAN mouths of average value;
These conditions in actual applications can according to circumstances flexible configuration.
(S3)The up occupancy ratio of these WAN mouths specified is contrasted, is set if the up occupancy of WAN mouthfuls of existence anduniquess compares to be less than
Determine threshold value, then select the WAN mouthfuls of transmission as the packet to be sent to export;If up take than less than given threshold
WAN mouthfuls are two or more, then select wherein a WAN mouthfuls as described pending according to up remaining bandwidth ratio dynamically distributes principle
The transmission of packet is sent to export;If these WAN mouthfuls of up occupancy ratio is not less than given threshold, next step is carried out;
Specifically, the up given threshold for taking ratio is not less than 60%, it is preferable that can select the setting based on sixteen principles
Threshold value is 80%.
(S4)These WAN mouthfuls of descending occupancy ratio is contrasted, if the descending occupancy of WAN mouthfuls of existence anduniquess compares less than setting threshold
Value, then select the WAN mouthfuls of transmission as the packet to be sent to export, otherwise carry out next step;
Specifically, the descending given threshold for taking ratio is not less than 60%, it is preferable that can select the setting based on sixteen principles
Threshold value is 80%.
(S5)These WAN mouthfuls of remaining upstream bandwidth average value is contrasted, if the remaining upstream bandwidth of WAN mouthfuls of existence anduniquess is put down
Average is not less than given threshold, then selects the WAN mouthfuls of transmission as the packet to be sent to export, if remaining upstream bandwidth
Average value is two or more not less than the WAN mouths of given threshold, then the WAN mouths for selecting wherein remaining upstream bandwidth average value maximum
Exported as the transmission of the packet to be sent, if these WAN mouthfuls of remaining upstream bandwidth average value is respectively less than given threshold,
Then carry out next step;
The given threshold of the remaining upstream bandwidth average value is not less than all WAN mouthfuls and taken except up than given threshold correspondence
Value after bandwidth value corresponding to the 80% of the average value of remaining upstream bandwidth, can be expressed as remaining upstream bandwidth average value
The * of given threshold >=80% [(1-up take compares given threshold)* the first WAN mouthfuls of up maximum bandwidth+(1-on
Row occupancy compares given threshold)* the second WAN mouthfuls of up maximum bandwidth+...+(1-up take compares given threshold)*
The up maximum bandwidth of WAN mouthfuls of n-th]/N }, wherein N is the number of the WAN mouths of line attachment on the network equipment.
(S6)These WAN mouthfuls of remaining downlink bandwidth average value is contrasted, if the remaining downlink bandwidth of WAN mouthfuls of existence anduniquess is put down
Average is not less than given threshold, then selects the WAN mouthfuls of transmission as the packet to be sent to export, otherwise select wherein to remain
The maximum WAN mouths of remaining downlink bandwidth average value are exported as the transmission of the packet to be sent;
The given threshold of the remaining downlink bandwidth average value is not less than all WAN mouthfuls and taken except descending than given threshold correspondence
Value after bandwidth value corresponding to the 80% of the average value of remaining downlink bandwidth, can be expressed as remaining downlink bandwidth average value
The * of given threshold >=80% [(1-descending take compares given threshold)* the first WAN mouthfuls of descending maximum bandwidth+(1-under
Row occupancy compares given threshold)* the second WAN mouthfuls of descending maximum bandwidth+...+(1-descending take compares given threshold)*
The descending maximum bandwidth of WAN mouthfuls of n-th]/N }, wherein N is the number of the WAN mouths of line attachment on the network equipment.
Finally, corresponding data bag is sent by selected WAN mouths.
It is achieved in the intelligent load control to many WAN mouthfuls of network equipments.
Above-described embodiment is only the preferred embodiments of the present invention, not limiting the scope of the invention, as long as using
The design principle of the present invention, and the change for carrying out non-creativeness work on this basis and making, all should belong to the present invention's
Within protection domain.