Summary of the invention
Based on this, it is necessary to which the problem of being directed to above-mentioned Conventional wide band way to manage, providing one kind can effectively mention
It the broadband management method of the high broadband efficiency of management, a kind of broadband managing device, a kind of communication equipment and a kind of computer-readable deposits
Storage media.
To achieve the goals above, the embodiment of the present invention the following technical schemes are provided:
On the one hand, the embodiment of the present invention provides a kind of broadband management method, comprising:
Obtain service traffics;
According to the default shared model between the priority of service traffics and CBS barrels and EBS barrels, to service traffics into
Row traffic monitoring and label are handled;
According to flowexit total bandwidth and label processing as a result, to traffic monitoring and label treated service traffics into
The processing of row traffic shaping, the bandwidth of limit service flow.
In one of the embodiments, according to default total between the priority of service traffics and CBS barrels and EBS barrels
The step of enjoying mode, traffic monitoring and label processing carried out to service traffics, comprising:
According to the PCP priority and loss priority of data flow each in service traffics, each data flow is sorted out respectively to each
The CBS bucket of respective priority and EBS barrels;Wherein, the data flow that loss priority is 0 is sorted out to the CBS of corresponding PCP priority
Bucket, the data flow that loss priority is 1 are sorted out to the EBS bucket of corresponding PCP priority;
When any CBS barrels of data flow piles with spilling, the data flow of spilling is included into the EBS bucket of same PCP priority;
When any EBS barrels of data flow piles with spilling, the data flow of spilling is included into the CBS bucket of lower PCP priority;
By the CBS barrels of data flow tokens with the clearance of CIR rate for the first color, and EBS barrels are let pass with EIR rate
Data flow token is the second color;
It is third face by the data flow token of spilling when the data flow of the EBS bucket of minimum PCP priority piles with spilling
Color;Direct discard processing is used for labeled as the data flow of third color.
In one of the embodiments, according to default total between the priority of service traffics and CBS barrels and EBS barrels
The step of enjoying mode, traffic monitoring and label processing carried out to service traffics, comprising:
According to the PCP priority and loss priority of data flow each in service traffics, each data flow is sorted out respectively to each
The CBS bucket of respective priority and EBS barrels;Wherein, the data flow that loss priority is 0 is sorted out to the CBS of corresponding PCP priority
Bucket, the data flow that loss priority is 1 are sorted out to the EBS bucket of corresponding PCP priority;
When any CBS barrels of data flow piles with spilling, the data flow of spilling is included into the CBS bucket of lower PCP priority,
And when the data flow of the CBS bucket of minimum PCP priority piles with spilling, the data flow of spilling is included into highest PCP priority
EBS barrels;
When any EBS barrels of data flow piles with spilling, the data flow of spilling is included into the EBS bucket of lower PCP priority;
By the CBS barrels of data flow tokens with the clearance of CIR rate for the first color, and EBS barrels are let pass with EIR rate
Data flow token is the second color;
It is third face by the data flow token of spilling when the data flow of the EBS bucket of minimum PCP priority piles with spilling
Color;Direct discard processing is used for labeled as the data flow of third color.
In one of the embodiments, according to default total between the priority of service traffics and CBS barrels and EBS barrels
The step of enjoying mode, traffic monitoring and label processing carried out to service traffics, comprising:
According to the PCP priority and loss priority of data flow each in service traffics, each data flow is sorted out respectively to each
The CBS bucket of respective priority and EBS barrels;Wherein, the data flow that loss priority is 0 is sorted out to the CBS of corresponding PCP priority
Bucket, the data flow that loss priority is 1 are sorted out to the EBS bucket of corresponding PCP priority;
When any CBS barrels of data flow piles with spilling, the data flow of spilling is included into the EBS bucket of same PCP priority;
It is third color by the data flow token of spilling when any EBS barrels of data flow piles with spilling;Labeled as third
The data flow of color is used for direct discard processing;
By the CBS barrels of data flow tokens with the clearance of CIR rate for the first color, and EBS barrels are let pass with EIR rate
Data flow token is the second color.
In one of the embodiments, according to default total between the priority of service traffics and CBS barrels and EBS barrels
The step of enjoying mode, traffic monitoring and label processing carried out to service traffics, comprising:
According to the PCP priority of data flow each in service traffics, each data flow is sorted out respectively to each respective priority
CBS barrels;
When any CBS barrels of data flow piles with spilling, the data flow of spilling is included into the EBS bucket of same PCP priority;
When any EBS barrels of data flow piles with spilling, the data flow of spilling is included into the CBS bucket of lower PCP priority;
By the CBS barrels of data flow tokens with the clearance of CIR rate for the first color, and EBS barrels are let pass with EIR rate
Data flow token is the second color;
It is third face by the data flow token of spilling when the data flow of the EBS bucket of minimum PCP priority piles with spilling
Color;Direct discard processing is used for labeled as the data flow of third color.
In one of the embodiments, according to default total between the priority of service traffics and CBS barrels and EBS barrels
The step of enjoying mode, traffic monitoring and label processing carried out to service traffics, comprising:
According to the PCP priority of data flow each in service traffics, each data flow is sorted out respectively to each respective priority
CBS barrels;
When any CBS barrels of data flow piles with spilling, the data flow of spilling is included into the CBS bucket of lower PCP priority,
And when the data flow of the CBS bucket of minimum PCP priority piles with spilling, the data flow of spilling is included into highest PCP priority
EBS barrels;
When any EBS barrels of data flow piles with spilling, the data flow of spilling is included into the EBS bucket of lower PCP priority;
By the CBS barrels of data flow tokens with the clearance of CIR rate for the first color, and EBS barrels are let pass with EIR rate
Data flow token is the second color;
It is third face by the data flow token of spilling when the data flow of the EBS bucket of minimum PCP priority piles with spilling
Color;Direct discard processing is used for labeled as the data flow of third color.
In one of the embodiments, according to default total between the priority of service traffics and CBS barrels and EBS barrels
The step of enjoying mode, traffic monitoring and label processing carried out to service traffics, comprising:
According to the PCP priority of data flow each in service traffics, each data flow is sorted out respectively to each respective priority
CBS barrels;
When any CBS barrels of data flow piles with spilling, the data flow of spilling is included into the EBS bucket of same PCP priority;
It is third color by the data flow token of spilling when any EBS barrels of data flow piles with spilling;Labeled as third
The data flow of color is used for direct discard processing;
By the CBS barrels of data flow tokens with the clearance of CIR rate for the first color, and EBS barrels are let pass with EIR rate
Data flow token is the second color.
In one of the embodiments, according to default total between the priority of service traffics and CBS barrels and EBS barrels
The step of enjoying mode, traffic monitoring and label processing carried out to service traffics, comprising:
According to the priority of service traffics, ensure that band preference is shared according to preset priority shared model and priority
The mixing shared model of mode composition carries out traffic monitoring to service traffics and label is handled;Wherein, priority shared model with
Priority ensures that the proportion between band preference shared model is adjustable.
In one of the embodiments, according to flowexit total bandwidth and label processing as a result, to traffic monitoring and mark
Note treated service traffics carry out the process of traffic shaping processing, comprising:
According to label processing as a result, being joined the team each data flow of service traffics respectively to SP queue and WRR queue;
If band needed for SP queue and WRR queue is wider than flowexit total bandwidth, the preferential number forwarded in SP queue
It is preferential to abandon the data flow that label in WRR queue is color according to stream, and according to the default discarding weight of WRR queue.
In one of the embodiments, according to label processing as a result, by each data flow of service traffics join the team respectively to
After the step of SP queue and WRR queue, further includes:
If the data flow in WRR queue accumulates the default discarding thresholding more than WRR queue, according to the default of WRR queue
Abandon weight, the data flow in random drop WRR queue;
If WRR queue takes, the subsequent data flow joined the team directly is abandoned.
On the other hand, a kind of broadband managing device is provided, comprising:
Module is obtained, for obtaining service traffics;
Monitor processing module, for according to default shared between the priority and CBS barrel of service traffics and EBS barrels
Mode carries out traffic monitoring to service traffics and label is handled;
Shape correction module, for according to flowexit total bandwidth and label processing as a result, to traffic monitoring and label
Service traffics that treated carry out traffic shaping processing, the bandwidth of limit service flow.
In another aspect, also providing a kind of communication equipment, including memory and processor, memory is stored with computer journey
The step of sequence, processor realizes above-mentioned broadband management method when executing computer program.
In another aspect, also providing a kind of computer readable storage medium, it is stored thereon with computer program, computer program
The step of above-mentioned broadband management method is realized when being executed by processor.
Above-mentioned broadband management method, device and communication equipment pass through basis for traffic classification treated service traffics
The priority of service traffics, and based on the default shared model between CBS barrels and EBS barrels, so that each data of service traffics
Stream flexibly can be shared and be split between the CBS bucket of multiple priority and EBS barrels, and the monitoring and label to service traffics are more
Finely.In this way, traffic monitoring and Shape correction can be improved based on the traffic monitoring and traffic shaping that double leaky buckets can flexibly be shared
Fining degree achievees the purpose that improve the broadband efficiency of management, and application scenarios covering is wider.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
It should be noted that unless otherwise defined, all technical and scientific terms used herein and belong to this hair
The normally understood meaning of bright those skilled in the art is identical.Term as used herein in the specification of the present invention
It is intended merely to describe the purpose of specifically embodiment, it is not intended that in the limitation present invention.Term as used herein "and/or"
Including any and all combinations of one or more related listed items.
In access net and transmission network, communication equipment such as router, interchanger or other equipment serve as business datum remittance
The Bandwidth Management of the poly- node with distribution, communication equipment is rather important for promoting service feature end to end.As shown in Figure 1
It is the logical construction block diagram of double leaky buckets in communication equipment, wherein dotted arrow line indicates one of data flow distribution path, respectively
CBS barrels PCP (Priority Code Point, priority code point) priority is different, each EBS same PCP priority
Also different.The different PCP priority of leaky bucket correspond in the service traffics formed when business data transmission, each data flow
PCP priority.After distribution of traffic flows module comes data stream distribution, data flow obtains token from corresponding leaky bucket and obtains
Normally to forward, to achieve the purpose that broadband manages.Different broadband management methods, effect achieved can then differ widely.
Inefficient problem, broadband provided by the present application are managed for the broadband in the presence of Conventional wide band way to manage
Management method can be applied in application environment as shown in Figure 1.In a communications device, the module for being responsible for traffic monitoring obtains industry
Be engaged in after flow, according to the default shared model between the priority of service traffics and CBS barrels and EBS barrels, to service traffics into
Row traffic monitoring and label are handled.Hereafter, the module for being responsible for traffic shaping can be according to flowexit total bandwidth and mark
Reason as a result, carrying out traffic shaping processing, the bandwidth of limit service flow to traffic monitoring and label treated service traffics.
In this way, improving the fining degree of traffic monitoring and Shape correction, achieve the purpose that improve the broadband efficiency of management.
Referring to Fig. 2, in one embodiment, a kind of broadband management method is provided, to be applied to application shown in FIG. 1
For environment, include the following steps S12 to S16:
S12 obtains service traffics.
It is appreciated that after service traffics enter communication equipment, it will by traffic classification handle, by service traffics not
Data flow (or Business Stream) with type of service is sorted out respectively.In other words the service traffics of above-mentioned acquisition are through inflow-rate of water turbine point
Class treated service traffics.The traffic classification of service traffics is realized by the traditional traffic classification processing in this field.
Specifically, in a communications device, the Business Stream that traffic monitoring module can be exported by receiving flow categorization module
The mode of amount directly or indirectly obtains sorted service traffics.In sorted service traffics, each data for being included
Stream is corresponding with different data priorities respectively, can there is different colors with correspondence markings, as being used to mark and preferentially forward
First color and for marking the second color preferentially abandoned.
S14, according to the default shared model between the priority of service traffics and CBS barrels and EBS barrels, to Business Stream
Amount carries out traffic monitoring and label is handled.
It is appreciated that the priority of service traffics refers in service traffics, the respectively corresponded difference of each data flow for including
Data priority.The high priority data for each stream identification in service traffics that be such as, but not limited to after traffic classification be respectively
Grade, or the pre-set priority list by inquiring each data flow (have such as pre-established different types of data flow and each number
According to the list of the corresponding relationship between priority), the corresponding data priority of each data flow determined.
Default shared model refers to that data flow shares usage mode according to predetermined double leaky buckets, in CBS barrels and EBS barrels
Current and marker color processing mode between both leaky buckets.Default shared model can be according to the net in practical application scene
Network environment is previously set, if can ensure with user it is matched it is end-to-end between service traffics message transmission rate i.e.
It can.Wherein, in label treated service traffics, each data flow can be marked as the data flow of three kinds of colors, i.e., labeled as the
The data flow of one color, the data flow labeled as the second color and the data flow labeled as third color.CBS barrels namely storage
The leaky bucket of first color token, EBS barrels namely store the second color token leaky bucket.First color, the second color and third face
Color is such as, but not limited to the green, yellow and red arranged in traditional technology respectively, as long as it is preferential to be respectively used to difference
It forwards data, preferential discarding data and abandons data immediately.
Specifically, the priority that can be carried according to data flow each in service traffics controls industry according to default shared model
Flow be engaged in by CBS barrels and EBS barrels, makes each data flow of service traffics respectively from CBS barrels or EBS barrels acquirement token passings, or
Person does not obtain token and is dropped, that is, completes to carry out traffic monitoring, and complete color mark when each data flow obtains token.When
When data flow obtains the first color token, that is, it is marked as the first color (ensureing speed data), belongs to and ensures Business Stream, is needed preferential
Forwarding.When data flow obtains the second color token, that is, it is marked as the second color (excess permission speed data), belonged to preferential
The Business Stream of discarding, for preferentially being abandoned when congestion occurs.It is when data flow fails to obtain the second color token, i.e., labeled
For red (hypervelocity rate abandons data) color, need to be abandoned immediately in traffic monitoring and label processing links, without being transferred to stream
Measure Shape correction link.
Period, CBS barrels can share use with EBS barrels, such as: do not meet the data flow labeled as the first color, it can
According to CBS barrels of Couple Flag (connection mark, for selecting the connection type of CBS barrels of overflow channels, with determination be with together
The EBS bucket connection of priority also or with the CBS of low priority bucket is connect) determine that the data flow goes to obtain low priority
The token of CBS still removes the token for obtaining the EBS bucket of same priority.The first minimum color data stream of priority (namely flow
In sorted service traffics, original carries the data flow of the first color mark), fail the order for obtaining the CBS bucket of current priority
It, can (overflow channel of the CBS bucket for defining lowest priority be to connect a certain height according to global Couple Flag when board
The EBS bucket of priority, also or connection abandons channel) determine it is the token for obtaining the EBS bucket of highest priority, it still goes to obtain
Take the token of the EBS bucket of same priority.Do not meet the data flow labeled as the second color, it can be according to EBS barrels of Couple
Flag come determine be obtain low priority EBS bucket token, be still marked as third color.
S16, according to flowexit total bandwidth and label processing as a result, to traffic monitoring and label treated Business Stream
Amount carries out traffic shaping processing, the bandwidth of limit service flow.
It is appreciated that flowexit total bandwidth refers to the limitation bandwidth of communication equipment output interface, for limiting different numbers
The triggering of the amount of bandwidth and congestion avoidance mechanism that are fitted on according to flow point.The result of label processing refers to each number in service traffics
Color on being labeled respectively according to stream.
Specifically, limited bandwidth resources in practical applications, and bandwidth needed for different Business Streams is different, ensures preferential
Grade is also different, it is therefore desirable to ensure the bandwidth allocation between the Business Stream of different priorities by traffic shaping.It completes to flow
After amount monitoring and label, it can in traffic shaping treatment process, according to the color of label, by each data flow, heap enters not respectively
It is sent in the shaping queue of same priority, the total bandwidth for limiting data flow is no more than flowexit total bandwidth, ensures Gao You
The data flow of first grade is preferentially sent simultaneously, can effectively trigger Congestion Avoidance processing.
Above-mentioned broadband management method, for traffic classification treated service traffics, by according to the preferential of service traffics
Grade, and based on the default shared model between CBS barrels and EBS barrels, allow each data flow of service traffics multiple excellent
It flexibly shares and splits between the CBS bucket of first grade and EBS barrels, it is finer to the monitoring and label of service traffics.In this way, can base
The traffic monitoring that can flexibly share in double leaky buckets and traffic shaping improve the fining degree of traffic monitoring and Shape correction, reach
To the purpose for improving the broadband efficiency of management, and application scenarios covering is wider.
Fig. 3 and Fig. 4 are please referred to, in one embodiment, about above-mentioned step S14, can specifically include following processing
Step S142 to S150:
S142 sorts out each data flow according to the PCP priority and loss priority of data flow each in service traffics respectively
To the CBS bucket of each respective priority and EBS barrels;Wherein, the data flow that loss priority is 0 is sorted out to corresponding PCP priority
CBS barrels, the data flow that loss priority is 1 is sorted out to the EBS bucket of corresponding PCP priority.
It is appreciated that loss priority refers to DEI (Drop Eligible Indicator deletes qualified index) field,
Its value is 0 or 1.DEI=1 indicates that identified corresponding message (or corresponding data stream) is preferential dropping packets.It is empty in Fig. 4
Line indicate data flow from distribution of traffic flows module come out after, sort out respectively to EBS barrels each.
Specifically, double leaky buckets during the work time can be there are two types of operating mode: colour blindness mode and Se Min mode.Wherein,
The color of the original carrying of data flow will be ignored under colour blindness mode, the face of the original carrying of data flow can be then considered under the quick mode of color
Color.Different data streams can be corresponding to sort out to the CBS bucket or EBS of identical PCP priority according to self-contained PCP priority
Bucket, therefore, under the quick mode of color, data flow is sorted out to still EBS barrels of CBS bucket of identical PCP priority, can be carried by it
Priming color namely loss priority determine.The data flow that loss priority is 0 is the first color data stream, therefore, can be with
Sort out to the CBS bucket of identical PCP priority;The data flow that loss priority is 1 is the second color data stream, therefore, Ke Yigui
Class to identical PCP priority EBS bucket.Each CBS barrels and each EBS barrels of data flow are separately flowed into, if CBS barrels and EBS barrels respective
The rate of data flow is less than the rate that data flow flows into clearance bucket, then the data flow flowed into will be gradually accumulated in bucket.
The data flow of spilling is included into the EBS of same PCP priority when any CBS barrels of data flow piles with spilling by S144
Bucket;
The data flow of spilling is included into lower PCP priority when any EBS barrels of data flow piles with spilling by S146
CBS barrels;
It is appreciated that according to preset shared model, the data flow in any one CBS barrels is piled with when overflowing,
The Data flow direction of Control strain continues to accumulate with the EBS bucket of PCP priority in EBS barrels.Correspondingly, in any one EBS
Data flow in bucket piles with when overflowing, the CBS bucket of the lower PCP priority of the Data flow direction of Control strain, in EBS barrels
Continue to accumulate, as shown in figure 4, so that data flow shares CBS barrels and EBS barrels, so that it is guaranteed that the more efficient management in broadband.
S148, by the CBS barrels of data flow tokens with the clearance of CIR rate for the first color, and by EBS barrels with EIR rate
The data flow token of clearance is the second color;
The data flow token of spilling is the when the data flow of the EBS bucket of minimum PCP priority piles with spilling by S150
Three colors;Direct discard processing is used for labeled as the data flow of third color.
It is appreciated that each CBS barrel with it is EBS barrels each in, CBS barrels with CIR rate (Committed Information
Rate, committed information rate) data flow in clearance bucket, the data flow being cleared also is the first face for smoothly obtaining CBS barrels
The data flow of color ream board, therefore being re-flagged color after outflow is the first color, i.e. DEI=0, to identify the data flow
For the data flow that need to preferentially forward.EBS barrels are then put with EIR rate (Excess Information Rate, additional information rate)
Data flow in row bucket, the data flow being cleared also are the data flow of smoothly the second color token of EBS barrels of acquirement, therefore
It is the second color that color is re-flagged after outflow, i.e. DEI=1 need to preferentially be lost when congestion occurs with identifying the data flow
The data flow of abandoning.
According to aforementioned preset shared model, when the data flow of the EBS bucket of minimum PCP priority is piled with and is overflowed,
Then needing to re-flag the data flow of the spilling color is third color, as shown in figure 4, will be subsequent to identify the data flow
It is directly abandoned by traffic monitoring module, without flowing to traffic shaping module.Wherein, X indicates the third for needing to abandon immediately
Color data stream.Since in default shared model above-mentioned, the data flow of CBS barrels of spillings is the PCP priority flow according to itself
Enter the EBS bucket of identical PCP priority;The data flow that the EBS bucket of not least PCP priority overflows is preferential according to the PCP of itself
Grade flows into the CBS bucket of lower PCP priority, namely be on the whole according to shared CBS barrels of the high to Low sequence of PCP priority with
EBS barrels, therefore, aforementioned preset shared model in the present embodiment, the priority being referred to as under the quick mode of color is shared
Mode.
S142 to S150 through the above steps may be implemented under the quick mode of color, based on the shared double leaky buckets of priority
Traffic monitoring scheme is cut from QoS (Quality of Service, service quality) power level and two dimensions of flow two-stage guarantee
Enter, realizes the traffic management of more various dimensions;By practice have shown that the service traffics under the mode after traffic monitoring subsequent
Traffic shaping processing in, higher to the management fine degree in broadband, the efficiency of management is increased dramatically.
Fig. 5 and Fig. 6 are please referred to, in one embodiment, about above-mentioned step S14, or can specifically include as follows
Processing step S141 to S149:
S141 sorts out each data flow according to the PCP priority and loss priority of data flow each in service traffics respectively
To the CBS bucket of each respective priority and EBS barrels;Wherein, the data flow that loss priority is 0 is sorted out to corresponding PCP priority
CBS barrels, the data flow that loss priority is 1 is sorted out to the EBS bucket of corresponding PCP priority.
It is appreciated that PCP priority, loss priority involved in the present embodiment and other technical terms,
To understand referring to the corresponding description of the priority shared model under the quick mode of color in previous embodiment, it is not repeated to go to live in the household of one's in-laws on getting married herein
It states.Specifically, double leaky buckets are still work under the quick mode of color in the present embodiment, the primitive color that each data flow carries is considered
Come separately flow into each respective priority CBS bucket and EBS barrels.
The data flow of spilling is included into lower PCP priority when any CBS barrels of data flow piles with spilling by S143
CBS barrels, and when the data flow of the CBS bucket of minimum PCP priority piles with spilling, it is excellent that the data flow of spilling is included into highest PCP
The EBS bucket of first grade;
The data flow of spilling is included into lower PCP priority when any EBS barrels of data flow piles with spilling by S145
EBS barrels.
It is appreciated that according to preset shared model, the data flow in any one CBS barrels is piled with when overflowing,
The CBS bucket of the lower PCP priority of the Data flow direction of Control strain.Hair is piled in the data flow of the CBS bucket of minimum PCP priority
When raw spilling, the EBS bucket of the Data flow direction highest PCP priority of Control strain, as shown in Figure 6.Correspondingly, at any one
Data flow in EBS barrels piles with when overflowing, the EBS bucket of the lower PCP priority of the Data flow direction of Control strain, so that number
Shared CBS barrels and EBS barrels according to stream, so that it is guaranteed that the more efficient management in broadband.Dotted line indicates data flow from distribution of traffic flows in Fig. 6
After module comes out, sort out respectively to EBS barrels each.
S147, by the CBS barrels of data flow tokens with the clearance of CIR rate for the first color, and by EBS barrels with EIR rate
The data flow token of clearance is the second color;
The data flow token of spilling is the when the data flow of the EBS bucket of minimum PCP priority piles with spilling by S149
Three colors;Direct discard processing is used for labeled as the data flow of third color.
It is appreciated that each CBS barrel with it is EBS barrels each in, CBS barrels, with the data flow in CIR rate clearance bucket, are cleared
Data flow is also the data flow of smoothly the first color token of CBS barrels of acquirement, therefore is re-flagged color after outflow
It is the data flow that need to preferentially forward to identify the data flow for the first color, i.e. DEI=0.EBS barrels then with EIR rate clearance bucket
Interior data flow, the data flow being cleared also are the data flow of smoothly the second color token of EBS barrels of acquirement, therefore are flowing out
Being re-flagged color afterwards is the second color, i.e. DEI=1 need to be abandoned preferentially with identifying when congestion occurs for the data flow
Data flow.
According to preset shared model aforementioned in the present embodiment, hair is piled in the data flow of the EBS bucket of minimum PCP priority
When raw spilling, then needing to re-flag the data flow of the spilling color is third color, as shown in fig. 6, to identify the data
Stream then will abandoned directly by traffic monitoring module, without flowing to traffic shaping module.Wherein, X indicates to need immediately
The third color data stream of discarding.Since in default shared model above-mentioned, the data flow of CBS barrels of spillings is according to itself
PCP priority flows into the CBS bucket of lower PCP priority, piles with and overflows in the data flow of the CBS bucket of minimum PCP priority
When, the data flow of spilling is the EBS bucket that highest PCP priority is flowed into according to the PCP priority of itself.Correspondingly, not least PCP
The data flow that the EBS bucket of priority overflows is that the EBS bucket of lower PCP priority namely whole is flowed into according to the PCP priority of itself
It is the preferential data flow for ensureing that PCP priority is high on body, CBS barrels and EBS barrels of lower PCP priority is shared, preferentially to ensure height
The bandwidth of priority traffic uses.Therefore, aforementioned preset shared model in the present embodiment, is referred to as Se Minmo
Priority under formula ensures band preference shared model.
S141 to S149 through the above steps may be implemented under the quick mode of color, based on the shared double leaky buckets of priority
Traffic monitoring scheme, divides from more QoS power levels and flow two-stage ensures two dimension incisions, realizes the flowtube of more various dimensions
Reason, can be according to actual user's demand, the preferential business transmission for ensureing higher priority user, and broadband management is more fine and poor
Alienation is more flexible.By practice have shown that the service traffics under the mode after traffic monitoring are handled in subsequent traffic shaping
In, it is higher to the management fine degree in broadband, it can adapt to more application environments, the efficiency of management obtains mentioning by a larger margin
It rises.
Please refer to Fig. 7 and Fig. 8, in one embodiment, about above-mentioned step S14, or can specifically include as
Lower processing step S14a to S14d:
S14a sorts out each data flow according to the PCP priority and loss priority of data flow each in service traffics respectively
To the CBS bucket of each respective priority and EBS barrels;Wherein, the data flow that loss priority is 0 is sorted out to corresponding PCP priority
CBS barrels, the data flow that loss priority is 1 is sorted out to the EBS bucket of corresponding PCP priority.
It is appreciated that PCP priority, loss priority involved in the present embodiment and other technical terms,
To understand referring to the corresponding description of the priority shared model under the quick mode of color in above-described embodiment, it is not repeated to go to live in the household of one's in-laws on getting married herein
It states.Specifically, double leaky buckets are still work under the quick mode of color in the present embodiment, the primitive color that each data flow carries is considered
Come separately flow into each respective priority CBS bucket and EBS barrels.
The data flow of spilling is included into the EBS of same PCP priority when any CBS barrels of data flow piles with spilling by S14b
Bucket;
The data flow token of spilling is third color when any EBS barrels of data flow piles with spilling by S14c;Label
Direct discard processing is used for for the data flow of third color;
S14d, by the CBS barrels of data flow tokens with the clearance of CIR rate for the first color, and by EBS barrels with EIR rate
The data flow token of clearance is the second color.
It is appreciated that according to preset shared model, the data flow in any one CBS barrels is piled with when overflowing,
The Data flow direction of Control strain with PCP priority EBS bucket, as shown in Figure 8.Data flow heap in any one EBS barrels
Completely when overflowing, then the data flow of the spilling is directly re-flagged into color as third color, it will be to identify the data flow
It is then directly abandoned by traffic monitoring module, without flowing to traffic shaping module.Wherein, X is to indicate to need to abandon immediately
Third color data stream.In Fig. 8 dotted line indicate data flow from distribution of traffic flows module come out after, sort out respectively to EBS barrels each.
Each CBS barrels and it is EBS barrel each in, similarly, CBS barrels with the data flow in CIR rate clearance bucket, after outflow be weighed
New marker color is the first color, i.e. DEI=0 is the data flow that need to preferentially forward to identify the data flow.EBS barrels then with EIR
Data flow in rate clearance bucket, it is the second color, i.e. DEI=1, to identify the data flow that color is re-flagged after outflow
For the data flow that need to be preferentially abandoned when congestion occurs.
Since in the present embodiment default shared model above-mentioned, the data flow of CBS barrels of spillings is preferential according to the PCP of itself
Grade flows into the EBS bucket of identical PCP priority, and when any EBS barrels of data flow is piled with and overflowed, the data flow of spilling is direct
Labeled as third color.Namely data flow does not share other each the CBS barrels and EBS barrels of lower PCP priority on the whole, with respectively
Ensure that the bandwidth of each priority traffic uses on an equal basis.Therefore, aforementioned preset shared model in the present embodiment, can also be with
Unshared mode referred to as under the quick mode of color.
By above-mentioned processing step S14a to S14d, can be pressed respectively with the Business Stream of effective guarantee different priorities
According to the priority height of itself, required broadband service is coequally obtained, the efficiency of broadband management can also be effectively promoted.
Please refer to Fig. 9 and Figure 10, in one embodiment, about above-mentioned step S14, or can specifically include as
Lower processing step S14e to S14j:
S14e sorts out each data flow respectively to each corresponding preferential according to the PCP priority of data flow each in service traffics
The CBS bucket of grade.
It is appreciated that the primitive color that data flow carries will be ignored, and each data flow is then according to each under colour blindness mode
From the PCP priority of carrying, sort out respectively to the CBS bucket of identical PCP priority.
The data flow of spilling is included into the EBS of same PCP priority when any CBS barrels of data flow piles with spilling by S14f
Bucket;
The data flow of spilling is included into lower PCP priority when any EBS barrels of data flow piles with spilling by S14g
CBS barrels.
It is appreciated that according to preset shared model, the data flow in any one CBS barrels is piled with when overflowing,
The Data flow direction of Control strain continues to accumulate with the EBS bucket of PCP priority in EBS barrels.Correspondingly, in any one EBS
Data flow in bucket piles with when overflowing, the CBS bucket of the lower PCP priority of the Data flow direction of Control strain, in EBS barrels
Continue to accumulate, as shown in Figure 10, so that shared CBS barrels and EBS barrels of data flow, so that it is guaranteed that the more efficient management in broadband.
S14i, by the CBS barrels of data flow tokens with the clearance of CIR rate for the first color, and by EBS barrels with EIR rate
The data flow token of clearance is the second color;
The data flow token of spilling is the when the data flow of the EBS bucket of minimum PCP priority piles with spilling by S14j
Three colors;Direct discard processing is used for labeled as the data flow of third color.
It is appreciated that each CBS barrel with it is EBS barrels each in, CBS barrels, with the data flow in CIR rate clearance bucket, are cleared
It is the first color that data flow, which is re-flagged color, i.e. DEI=0 is the data flow that need to preferentially forward to identify the data flow.
EBS barrels then with the data flow in EIR rate clearance bucket, the data flow being cleared re-flagged color be the second color, i.e. DEI
=1, it is the data flow that need to be preferentially abandoned when congestion occurs to identify the data flow.
According to aforementioned preset shared model, when the data flow of the EBS bucket of minimum PCP priority is piled with and is overflowed,
Then need to re-flag the data flow of the spilling color be third color, as shown in Figure 10, with identify the data flow will with
It is directly abandoned by traffic monitoring module afterwards, without flowing to traffic shaping module.Wherein, X is indicate to need to abandon immediately the
Three color data streams.Since in the present embodiment default shared model above-mentioned, the data flow of CBS barrels of spillings is according to itself
PCP priority flows into the EBS bucket of identical PCP priority;The data flow that the EBS bucket of not least PCP priority overflows is according to certainly
The PCP priority of body flows into the CBS bucket of lower PCP priority, namely is total according to the high to Low sequence of PCP priority on the whole
CBS barrels and EBS barrels are enjoyed, therefore, aforementioned preset shared model in the present embodiment is referred to as excellent under colour blindness mode
First grade shared model.
S14e to S14j through the above steps may be implemented under colour blindness mode, based on the shared double leaky buckets of priority
Traffic monitoring scheme ensures two dimension incisions from QoS power level and flow two-stage, realizes the traffic management of more various dimensions;By
It practices, the service traffics under the mode after traffic monitoring are fine to the management in broadband in the processing of subsequent traffic shaping
Degree is higher, and the efficiency of management is increased dramatically.
Figure 11 and Figure 12 are please referred to, in one embodiment, about above-mentioned step S14, or can specifically include
Following processing step S1401 to S1405:
S1401 sorts out each data flow respectively to each corresponding excellent according to the PCP priority of data flow each in service traffics
The CBS bucket of first grade.
It is appreciated that PCP priority and other technical terms involved in the present embodiment, may refer to aforementioned reality
The corresponding description of the priority shared model under the quick mode of color in example is applied to understand, it is no longer repeated herein.Specifically, this reality
It applies in example, under colour blindness mode, ignores the primitive color that each data flow carries to separately flow into the CBS of each corresponding PCP priority
Bucket.
The data flow of spilling is included into lower PCP priority when any CBS barrels of data flow piles with spilling by S1402
CBS barrels, and when the data flow of the CBS bucket of minimum PCP priority piles with spilling, it is excellent that the data flow of spilling is included into highest PCP
The EBS bucket of first grade;
The data flow of spilling is included into lower PCP priority when any EBS barrels of data flow piles with spilling by S1403
EBS barrels.
It is appreciated that according to preset shared model, the data flow in any one CBS barrels is piled with when overflowing,
The CBS bucket of the lower PCP priority of the Data flow direction of Control strain.Hair is piled in the data flow of the CBS bucket of minimum PCP priority
When raw spilling, the EBS bucket of the Data flow direction highest PCP priority of Control strain, as shown in figure 12.Correspondingly, any one
Data flow in EBS barrels a piles with when overflowing, the EBS bucket of the lower PCP priority of the Data flow direction of Control strain, so that
Shared CBS barrels and EBS barrels of data flow, so that it is guaranteed that the more efficient management in broadband.
S1404, by the CBS barrels of data flow tokens with the clearance of CIR rate for the first color, and by EBS barrels with EIR rate
The data flow token of clearance is the second color;
The data flow token of spilling is the when the data flow of the EBS bucket of minimum PCP priority piles with spilling by S1405
Three colors;Direct discard processing is used for labeled as the data flow of third color.
It is appreciated that each CBS barrel with it is EBS barrels each in, CBS barrels, with the data flow in CIR rate clearance bucket, are cleared
It is the first color that data flow, which is re-flagged color, i.e. DEI=0 is the data flow that need to preferentially forward to identify the data flow.
EBS barrels then with the data flow in EIR rate clearance bucket, the data flow being cleared re-flagged color be the second color, i.e. DEI
=1, it is the data flow that need to be preferentially abandoned when congestion occurs to identify the data flow.
According to preset shared model aforementioned in the present embodiment, hair is piled in the data flow of the EBS bucket of minimum PCP priority
When raw spilling, then needing to re-flag the data flow of the spilling color is third color, as shown in figure 12, to identify the data
Stream then will abandoned directly by traffic monitoring module, without flowing to traffic shaping module.Wherein, X indicates to need immediately
The third color data stream of discarding.Since in default shared model above-mentioned, the data flow of CBS barrels of spillings is according to itself
PCP priority flows into the CBS bucket of lower PCP priority, piles with and overflows in the data flow of the CBS bucket of minimum PCP priority
When, the data flow of spilling is the EBS bucket that highest PCP priority is flowed into according to the PCP priority of itself.Correspondingly, not least PCP
The data flow that the EBS bucket of priority overflows is that the EBS bucket of lower PCP priority namely whole is flowed into according to the PCP priority of itself
It is that the preferential data flow for ensureing that PCP priority is high shares other EBS barrels after sharing CBS barrels of lower PCP priority on body, with
The preferential bandwidth for ensureing high-priority traffic uses.Therefore, aforementioned preset shared model in the present embodiment, can also be with
Priority referred to as under colour blindness mode ensures band preference shared model.
S1401 to S1405 through the above steps may be implemented under colour blindness mode, based on the shared double leaky buckets of priority
Traffic monitoring scheme, divided from more QoS power levels and flow two-stage ensure the incision of two dimensions, realize the flow of more various dimensions
Management, can be according to actual user's demand, the preferential business transmission for ensureing higher priority user, broadband management it is more fine and
Differentiation is more flexible.By practice have shown that the service traffics under the mode after traffic monitoring at subsequent traffic shaping
It is higher to the management fine degree in broadband in reason, it can adapt to more application environments, the efficiency of management obtains mentioning by a larger margin
It rises.
Figure 13 and Figure 14 are please referred to, in one embodiment, about above-mentioned step S14, or can specifically include
Following processing step S1406 to S1409:
S1406 sorts out each data flow respectively to each corresponding excellent according to the PCP priority of data flow each in service traffics
The CBS bucket of first grade.
It is appreciated that PCP priority and other technical terms involved in the present embodiment, may refer to above-mentioned reality
The corresponding description of the priority shared model under the quick mode of color in example is applied to understand, it is no longer repeated herein.Specifically, this reality
It applies in example, double leaky bucket work ignore the primitive color of data flow carrying under colour blindness mode, only excellent according to the PCP of each data flow
First grade separately flows into the CBS bucket of each corresponding PCP priority.
The data flow of spilling is included into same PCP priority when any CBS barrels of data flow piles with spilling by S1407
EBS barrels;
The data flow token of spilling is third color when any EBS barrels of data flow piles with spilling by S1408;Label
Direct discard processing is used for for the data flow of third color;
S1409, by the CBS barrels of data flow tokens with the clearance of CIR rate for the first color, and by EBS barrels with EIR rate
The data flow token of clearance is the second color.
It is appreciated that according to preset shared model, the data flow in any one CBS barrels is piled with when overflowing,
The Data flow direction of Control strain with PCP priority EBS bucket, as shown in figure 14.Data flow heap in any one EBS barrels
Completely when overflowing, then the data flow of the spilling is directly re-flagged into color as third color, it will be to identify the data flow
It is then directly abandoned by traffic monitoring module, without flowing to traffic shaping module.Wherein, X is to indicate to need to abandon immediately
Third color data stream.
Each CBS barrels and it is EBS barrel each in, similarly, CBS barrels with the data flow in CIR rate clearance bucket, after outflow be weighed
New marker color is the first color, i.e. DEI=0 is the data flow that need to preferentially forward to identify the data flow.EBS barrels then with EIR
Data flow in rate clearance bucket, it is the second color, i.e. DEI=1, to identify the data flow that color is re-flagged after outflow
For the data flow that need to be preferentially abandoned when congestion occurs.
Since in the present embodiment default shared model above-mentioned, the data flow of CBS barrels of spillings is preferential according to the PCP of itself
Grade flows into the EBS bucket of identical PCP priority, and when any EBS barrels of data flow is piled with and overflowed, the data flow of spilling is direct
Labeled as third color.Namely data flow does not share other each the CBS barrels and EBS barrels of lower PCP priority on the whole, with respectively
Ensure that the bandwidth of each PCP priority traffic uses on an equal basis.Therefore, aforementioned preset shared model in the present embodiment,
The unshared mode being properly termed as under colour blindness mode.
It, can be with the Business Stream of effective guarantee difference PCP priority by above-mentioned processing step S1406 to S1409
Respectively according to the PCP priority height of itself, required broadband service is coequally obtained, the effect of broadband management can be effectively promoted
Rate.
Figure 15 is please referred to, in one embodiment, about above-mentioned step S14, or can specifically include following place
Manage step:
According to the priority of service traffics, ensure that band preference is shared according to preset priority shared model and priority
The mixing shared model of mode composition carries out traffic monitoring to service traffics and label is handled;Wherein, priority shared model with
Priority ensures that the proportion between band preference shared model is adjustable.
It is appreciated that priority shared model in this present embodiment and priority guarantee band preference shared model are closed, it can
Respectively referring to the corresponding realization in above-described embodiment about the priority shared model under the quick mode of color (or under colour blindness mode)
Process ensures band preference shared model similarly to understand, and about the priority under the quick mode of color (or under colour blindness mode)
Corresponding realization process similarly understands, is not repeated that expansion repeats herein.Mix shared model namely in service traffics by each
During leaky bucket carries out traffic monitoring and label processing, a part of leaky bucket work (or color under the quick mode of color in all leaky buckets
Under blind mode) priority shared model, the leaky bucket of remaining part then works under the quick mode of color the excellent of (or under colour blindness mode)
First grade ensures band preference shared model.
As shown in figure 15, priority shared model and priority ensure that the proportion between band preference shared model refers to work
The leaky bucket for making priority shared model under the quick mode of color (or under colour blindness mode), with work under the quick mode of color (or colour blindness
Under mode) priority ensure the ratio between the leaky bucket of band preference shared model, can be according to application environment middle width strip point
With option and installment is carried out with the requirement used, as long as the bandwidth allocation and requirement of application request can be ensured, it is ensured that
The transmission rate of Business Stream.Therefore, in different application environments, different proportion can be configured, to form difference
Mixing shared model, also can configure a greater variety of preset shared models according to application demand.
Specifically, when carrying out traffic monitoring, can also according to the bandwidth allocation and requirement in actual application environment,
Traffic monitoring is carried out using mixing shared model and label is handled, and is realized more flexible broadband and is shared, so as to more
Efficient management bandwidth, improves applicability.In Figure 15 dotted line indicate data flow from distribution of traffic flows module come out after, sort out respectively
To EBS barrels each.
Figure 16 and Figure 17 are please referred to, in one embodiment, about in above-mentioned step S16, according to the total band of flowexit
It is wide with label processing as a result, process to treated service traffics the carry out traffic shaping processing of traffic monitoring and label, tool
Body may include following processing step S162 and S164:
S162, according to label processing as a result, being joined the team each data flow of service traffics respectively to SP queue and WRR team
Column.
It is appreciated that SP (Strict Priority, strict priority) queue namely in queue scheduling, in strict accordance with
The order of the priority of label from high to low, the preferential data flow sent in higher priority queues, works as higher priority queues
When for sky, the data flow in lower priority queue is retransmited.
WRR (Weighted Round Robin, weighted round-robin scheduling) queue namely refer to using Weight Round Robin side
The queue of formula.Each output port can be divided into multiple output queues in scheduling by WRR queue, dispatch of taking turns between individual queue,
Guarantee that each queue obtains certain service time.WRR queue can configure weighted value for each queue and (such as be followed successively by
W3, w2, w1, w0), weighted value indicates to obtain the specific gravity of broadband resource.Such as the output port of a 100M, the output port is configured
The weighted value of WRR queue be respectively 50,30,10,10 (being corresponding in turn in w3, w2, w1, w0), so can guarantee minimum excellent
First grade queue at least obtains 10Mbit/s bandwidth.In WRR queue, the scheduling of multiple queues is that repeating query carries out, to each queue
It is not fixedly to distribute service time piece: if some queue is sky, changes to next queue scheduling, at once to make full use of band
Wide resource.
It, can be with queue type (such as SP of pre-configured shaping queue before the traffic shaping processing of the present embodiment starts
Queue and WRR queue two types), configure group weight (such as can need flexible setting SP queue in all teams according to application
Accounting in column, so as to WRR queue can press out group weight be weighted poll forwarding), and configuration WRR queue discarding door
Limit and discarding weight reach flowexit total bandwidth triggering congestion avoidance mechanism or WRR team for the total flow in data flow
Data flow accumulation is more than to abandon partial data stream according to weight is abandoned when abandoning thresholding in column.
Specifically, completing traffic monitoring and label treated to be distinguished after service traffics enter traffic shaping module
According to the label of each data flow as a result, joining the team to each SP queue of respective priority and each WRR queue, as shown in figure 17.For example,
It is joined the team by the high-priority traffic for re-flagging as the first color to SP queue, preferentially to forward, being re-flagged is first
The data flow of the lower priority data flow of color and the second color is then joined the team to WRR queue.Each WRR queue can possess
Two subqueues, in each WRR queue, data flow can join the team according to the color of label, such as the data flow of DEI=1 to it
In a WRR queue subqueue, the data flow of DEI=0 joins the team to the subqueue of another WRR queue.In this way, can be with logarithm
According to stream quickly shunted and convenient for the second color data stream preferential discarding.
S164, it is preferential to forward in SP queue if band needed for SP queue and WRR queue is wider than flowexit total bandwidth
Data flow, it is preferential to abandon the data flow that label in WRR queue is color and according to the default discarding weight of WRR queue.
It is appreciated that on a communications device, the flowexit total bandwidth of distribution is predetermined, such as different user choosing
The broadband selected is of different sizes, therefore, the flowexit total bandwidth that output port is assigned on the communication equipment that different user uses
Also just different, amount of bandwidth is limited.Specifically, on each output port, if SP queue has data flow to carry out output and institute
The bandwidth needed is less than the flowexit total bandwidth of the output port, then remaining bandwidth can be used for the scheduling of WRR queue.When SP team
Band needed for column and WRR queue is wider than flowexit total bandwidth, and no matter whether WRR queue touches itself discarding door at this time
Limit, then will start congestion avoidance mechanism, so that the data in traffic shaping module detect submodule, the number in detection queue
When according to stream, the maximum bandwidth for effectively limiting data flow is no more than flowexit total bandwidth.Still the number in SP queue is preferentially forwarded
Simultaneously according to stream, it in WRR queue, (namely needs pre-set to lose according to application according to the default discarding weight of WRR queue
Abstention weight), preferentially abandon the data flow that label in WRR queue is color, namely DEI=1 in preferential discarding subqueue
Data flow.
S162 and S164 through the above steps, can be during data flow exports, the preferential number for ensureing high priority
According to the preferential forwarding of stream, the preferential discard processing for abandoning data flow is rapidly completed, improves the efficiency of management in broadband.
It as shown in figure 16, in one embodiment, can also include following processing step after about above-mentioned step S162
Rapid S165 and S166:
S165, if the data flow in WRR queue accumulates the default discarding thresholding more than WRR queue, according to the pre- of WRR queue
If abandoning weight, the data flow in random drop WRR queue;
S166 directly abandons the subsequent data flow joined the team if WRR queue takes.
Specifically, joining the team in queuing process in data flow, when the data flow that WRR queue institute energy heap enters has in a period of time
Limit, such as in each WRR queue, when the data flow of a certain WRR queue reaches the default thresholding that abandons (namely in configuration WRR
The when discarding thresholding that sets of queue) when, start random drop data according to weight is abandoned.
When the WRR queue takes, the data flow of the subsequent WRR queue of joining the team will be simply discarded, to guarantee one
In fixed buffering section, the data flow of high-priority queue is abandoned less as far as possible.In practical applications, the length of high-priority queue
Can be longer than the length of Low Priority Queuing, and there is a buffer set, therefore, it is ensured that in scheduling, the data of high priority
Stream is more ensured.
S165 and S166 through the above steps can be flowed into team's queuing process in quantity, reach that WRR queue is default to lose
When abandoning thresholding, the partial data stream of the random drop WRR queue directly abandons the subsequent number joined the team when the WRR queue takes
According to stream, the preferential scheduling of joining the team for ensureing high-priority traffic, so as to further improve broadband management fineness with
Efficiency.
In one embodiment, about above-mentioned broadband management method, during carrying out traffic monitoring to service traffics,
It can choose and the linear speed of data flow is monitored, also can choose and the data rate of data flow is monitored.Linear speed refers to
The L1 rate (referring to 1 rate of layer namely physical layer rate, also referred to as end-to-end rate) of data, data rate refer to that the L1 of data is negative
The rate (referring to 1 speed under load of layer) of load.Monitoring link L1 rate can help operator effective monitoring VPN (Virtual Private Network) logical
The performance indicator (operator promises to undertake to the rate index of user) in road.Data rate is the practical user load speed be benefited of user
Rate is the rate index that user is more concerned about, family can be used more to intuitively understand VPN bandwidth shape by monitoring data rate
State.There are transformational relations between L1 rate and data rate, and L1 rate is higher than data rate, because data rate has deducted part
Heading length metering.In this way, being selected by above-mentioned monitored object, performance monitoring can be effectively carried out, is further increased
The broadband efficiency of management.
Although should be understood that each in the flow chart of Fig. 2, Fig. 3, Fig. 5, Fig. 7, Fig. 9, Figure 11, Figure 13 and Figure 16
A step is successively shown according to the instruction of arrow, but these steps are not that the inevitable sequence according to arrow instruction is successively held
Row.Unless expressly stating otherwise herein, there is no stringent sequences to limit for the execution of these steps, these steps can be with it
Its sequence executes.Moreover, at least part step in Fig. 2, Fig. 3, Fig. 5, Fig. 7, Fig. 9, Figure 11, Figure 13 and Figure 16 can be with
Including multiple sub-steps perhaps these sub-steps of multiple stages or stage be not necessarily execute completion in synchronization, and
It is to execute at different times, the execution sequence in these sub-steps or stage, which is also not necessarily, successively to be carried out, but can
It is executed in turn or alternately at least part of sub-step or stage with other steps or other steps.
Figure 18 is please referred to, in one embodiment, also provides a kind of broadband managing device 100, including obtain module 11, prison
Control processing module 13 and Shape correction module 15.State acquisition module 11 is for obtaining service traffics.Monitor processing module 13 is used
According to the default shared model between the priority and CBS barrel of service traffics and EBS barrels, flow is carried out to service traffics
Monitoring is handled with label.Shape correction module 15 is used for according to flowexit total bandwidth and marks handling as a result, supervising to flow
Control carries out traffic shaping processing, the bandwidth of limit service flow with label treated service traffics.
Above-mentioned broadband managing device 100 for traffic classification treated service traffics, is led to by the cooperation of each module
Cross the priority according to service traffics, and based on the default shared model between CBS barrels and EBS barrels, so that service traffics
Each data flow flexibly can be shared and be split, monitoring and mark to service traffics between the CBS bucket of multiple priority and EBS barrels
Remember finer.In this way, traffic monitoring and shaping can be improved based on the traffic monitoring and traffic shaping that double leaky buckets can flexibly be shared
The fining degree of processing achievees the purpose that improve the broadband efficiency of management.
In one embodiment, monitor processing module 13 may include sorting out submodule, overflowing monitoring submodule and label
Handle submodule.Wherein, classification submodule is used for PCP priority and loss priority according to data flow each in service traffics,
Each data flow is sorted out respectively to the CBS bucket of each respective priority and EBS barrels;Wherein, the data flow that loss priority is 0 is sorted out
To the CBS bucket of corresponding PCP priority, the data flow that loss priority is 1 is sorted out to the EBS bucket of corresponding PCP priority.Overflow prison
It controls submodule to be used for when any CBS barrels of data flow piles with spilling, the data flow of spilling is included into the EBS of same PCP priority
Bucket;And for when any EBS barrels of data flow piles with spilling, the data flow of spilling to be included into the CBS of lower PCP priority
Bucket.The data flow token that label processing submodule is used to let pass CBS barrel with CIR rate for the first color, and by EBS barrels with
The data flow token that EIR rate is let pass is the second color;It is also used to the data flow heap spill-over in the EBS bucket of minimum PCP priority
It is third color by the data flow token of spilling when out;Direct discard processing is used for labeled as the data flow of third color.
In one embodiment, above-mentioned spilling monitoring submodule or in any CBS barrels of data flow heap spill-over
When out, the data flow of spilling is included into the CBS bucket of lower PCP priority, and the data flow of the CBS bucket when minimum PCP priority
When piling with spilling, the data flow of spilling is included into the EBS bucket of highest PCP priority;And in any EBS barrels of data flow
When piling with spilling, the data flow of spilling is included into the EBS bucket of lower PCP priority.
In one embodiment, above-mentioned spilling monitoring submodule or for being piled in any CBS barrels of data flow
When spilling, the data flow of spilling is included into the EBS bucket of same PCP priority.Above-mentioned label processing submodule is used in office
It is third color by the data flow token of spilling when one EBS barrels of data flow piles with spilling;Labeled as the data flow of third color
For direct discard processing.
In one embodiment, above-mentioned to sort out submodule or PCP for according to data flow each in service traffics is excellent
First grade sorts out each data flow respectively to the CBS bucket of each respective priority.Above-mentioned spilling monitoring submodule is used in office
When one CBS barrels of data flow piles with spilling, the data flow of spilling is included into the EBS bucket of same PCP priority;And in any EBS
When the data flow of bucket piles with spilling, the data flow of spilling is included into the CBS bucket of lower PCP priority.Above-mentioned label handles son
Module or data flow token for CBS barrels to be let pass with CIR rate is the first colors, and EBS barrels are put with EIR rate
Capable data flow token is the second color, and when the data flow of the EBS bucket in minimum PCP priority piles with spilling, will be overflowed
Data flow token be third color;Direct discard processing is used for labeled as the data flow of third color.
In one embodiment, above-mentioned monitor processing module 13, specifically can be also used for according to the preferential of service traffics
Grade ensures the mixing shared model of band preference shared model composition according to preset priority shared model and priority, right
Service traffics carry out traffic monitoring and label is handled;Wherein, priority shared model and priority ensure that band preference shares mould
Proportion between formula is adjustable.
In one embodiment, above-mentioned Shape correction module 15 includes joining the team to handle submodule and data detection submodule
Block.Join the team handle submodule for according to label processing as a result, being joined the team each data flow of service traffics respectively to SP queue
With WRR queue.When data detection submodule is wider than outlet total bandwidth for the band needed for SP queue and WRR queue, preferentially
The data flow in SP queue is forwarded, and according to the default discarding weight of WRR queue, preferentially abandoning label in WRR queue is
The data flow of color.
In one embodiment, data detection submodule can be also used for the accumulation of the data flow in WRR queue more than WRR
The default discarding thresholding of queue, the data flow according to the default discarding weight of WRR queue, in random drop WRR queue;And it uses
In when WRR queue takes, the subsequent data flow joined the team directly is abandoned.
Specific about broadband managing device 100 limits the corresponding limit that may refer to above for broadband management method
Fixed, details are not described herein.Modules in above-mentioned broadband managing device 100 can fully or partially through software, hardware and its
Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with
It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding
Operation.
In one embodiment, a kind of communication equipment, such as, but not limited to router or point-to-multipoint microwave number are also provided
Word interchanger.The communication equipment includes memory and processor, and memory is stored with computer program, and processor executes computer
Acquisition service traffics are performed the steps of when program;According to pre- between the priority of service traffics and CBS barrels and EBS barrels
If shared model, traffic monitoring is carried out to service traffics and label is handled;According to the knot of flowexit total bandwidth and label processing
Fruit carries out traffic shaping processing, the bandwidth of limit service flow to traffic monitoring and label treated service traffics.
It will be understood by those skilled in the art that the communication equipment in the present embodiment is in addition to above-mentioned memory and processor,
It can also include other component parts, can specifically be determined according to the structure composition and its function of practical application communication equipment,
Explanation is no longer unfolded in this specification one by one.
In one embodiment, it can also realize that above-mentioned broadband management method is respectively implemented when processor executes computer program
Example in increase the step of or sub-step.
In one embodiment, a kind of computer readable storage medium is also provided, computer program is stored thereon with, is calculated
Machine program performs the steps of acquisition service traffics when being executed by processor;According to the priority of service traffics and CBS barrels
With the default shared model between EBS barrels, traffic monitoring is carried out to service traffics and label is handled;According to flowexit total bandwidth
With label processing as a result, carrying out traffic shaping processing, limit service stream to traffic monitoring and label treated service traffics
The bandwidth of amount.
In one embodiment, when computer program is executed by processor, it can also realize that above-mentioned broadband management method is each
The step of increase in embodiment or sub-step.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Instruct relevant hardware to complete by computer program, computer program to can be stored in a non-volatile computer readable
It takes in storage medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, this Shen
Please provided by any reference used in each embodiment to memory, storage, database or other media, may each comprise
Non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.