CN103746876B - A kind of bandwidth traffic detection method and system based on business - Google Patents
A kind of bandwidth traffic detection method and system based on business Download PDFInfo
- Publication number
- CN103746876B CN103746876B CN201310750018.9A CN201310750018A CN103746876B CN 103746876 B CN103746876 B CN 103746876B CN 201310750018 A CN201310750018 A CN 201310750018A CN 103746876 B CN103746876 B CN 103746876B
- Authority
- CN
- China
- Prior art keywords
- bandwidth
- value
- packet
- flow
- setting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention discloses a kind of bandwidth traffic detection method and system based on business, this method mainly includes:Different access control list (ACL) regulations are set;The access control list (ACL) regulations of setting are applied on switch ports themselves;Count the quantity of yellow packet and red packet;According to the quantity of the yellow packet of statistics and red packet, the bandwidth stream value of setting is adjusted, current bandwidth flow value is obtained.The present invention controls list (ACL) regulations to detect bandwidth traffic by formulating different access for different business and different user, it is possible thereby to flexibly detect the service bandwidth flow for any level for being operated in non-physical layer by customized mode, the bandwidth traffic of the bandwidth traffic or the multiple business of batch detection of single business self-defined can also be detected simultaneously, and during specific implementation, operate flexible and convenient, the limitation of existing detection method is overcome, more and more various Network detection demand is disclosure satisfy that.
Description
Technical field
The invention belongs to data communication technology field, and in particular to a kind of bandwidth traffic detection method based on business and be
The design of system.
Background technology
With the variation of present Network and becoming more meticulous for management, comprehensively monitored it is desirable to more careful
Bandwidth traffic.For example in enterprise network, it is desirable to be able to monitor the bandwidth traffic of different business, the flow thus more optimized
Analysis so that the network bandwidth is more rationally utilized;In operator, it is desirable to be able to monitor the bandwidth of the different business of different user
Flow, for example:Game service, downloading service etc., thus carry out the macro adjustments and controls of occupied bandwidth flow between user.
In the technology that presently, there are, the detection of network bandwidth flow is usually following two:The first, is carried out based on link
The detection of network bandwidth flow, such a mode can only meet the traffic monitoring of access layer equipment, in the equipment of convergence-level, nothing
Method realizes the different user in careful differentiation same link or the different business of same user;Second, the inspection of bandwidth traffic
Survey dependent on the parsing to message IP heads, can only be detected to being operated in the business on Internet, thus define business
Flow is dumb, the user of different VLANs or two-layer VPN for being operated in(VPN, Virtual
Private Network)Etc. business, it is impossible to carry out bandwidth traffic detection, detection mode is limited to very much.
The content of the invention
The technical problems to be solved by the invention are to overcome the limitation of bandwidth traffic detection mode in the prior art
And a kind of bandwidth traffic detection method and system based on business are provided.
The present invention solve its technical problem use technical scheme be:A kind of bandwidth traffic detection method based on business,
Comprise the following steps:
The different access control list (ACL) regulations of S1, setting;
S2, the access control list (ACL) regulations of setting are applied on switch ports themselves;
S3, statistics yellow packet and red packet quantity;
S4, the quantity according to the step S3 yellow packets counted and red packet, adjust the bandwidth stream value of setting, obtain
Current bandwidth flow value.
Further, before the step S1, in addition to initial bandwidth flow value, flow steps and detection week are set
Phase, the bandwidth stream value represents the initial value of the detection bandwidth flow of setting;Flow steps are represented in detection bandwidth flow
During be gradually incremented by or the bandwidth traffic size gradually successively decreased;Detection cycle represents how long perform a current task
Bandwidth traffic detection, the initial bandwidth flow value of the setting is denoted as A, flow steps and is denoted as B, detection cycle being denoted as C.
Further, the execution action of the access control list (ACL) regulations is configured to allow to pass through, every access control
List (ACL) regulations are associated with stream control action, packet accouter respectively, and the bandwidth stream value in the stream control action is initial bandwidth
Flow value, the stream control action performs forwarding behavior to yellow packet and red packet, and the packet accouter is to yellow packet
Counted with red packet.
Further, the access control list (ACL) regulations are according to terminal device MAC(Media Access Control)
Source address and destination address, 802.1P priority, virtual local area network No. VLAN(Virtual Local Area Network)
ID, link channel type, IP(Internet Protocol)Source address and destination address, source and destination port, application layer protocol
Formulated.
Further, the step S4 is specially:If the yellow packet of statistics or the quantitative value of red packet are not
0, represent that bandwidth traffic now exceedes the A values currently set, then increase bandwidth traffic according to flow steps B values, be i.e. setting is worked as
Preceding bandwidth stream value is A+B, and packet accouter is again read off after then resetting packet accouter, and so circulation carries out bandwidth traffic
It is worth size adjustment and packet accouter is read, when the statistical value for detecting yellow packet and red packet is 0, is worked as
Preceding bandwidth stream value X;Finally continue executing with the adjustment of bandwidth stream value size and packet accouter is read, at interval [X-B, X]
Middle use dichotomy is approached, and draws current bandwidth flow value;
If the yellow packet of statistics and the quantitative value of red packet are 0, represent that bandwidth traffic now is less than currently
The A values of setting, then reduce bandwidth traffic according to flow steps B values, be denoted as A-B, is again read off after then resetting packet accouter
Packet accouter, so circulation carry out the adjustment of bandwidth stream value size and packet accouter is read, until detecting yellow packet
Or the statistical value of red packet not be 0 when, draw bandwidth stream value now, be denoted as Y;Finally continue executing with bandwidth stream value
Size is adjusted and packet accouter is read, and is approached in interval [Y, Y+B] using dichotomy, draws current bandwidth flow
Value.
Further, it is described to be approached specially using dichotomy in interval [X-B, X]:Take interval for the first time
The median of [X-B, X], that is, set current bandwidth flow value to be X-B/2, then performs and once resets after packet accouter again
Read the statistical value of yellow packet and red packet;If statistical value is 0, the bandwidth stream value for representing current setting is more than reality
Bandwidth traffic, it is necessary to approach downwards, then take the median of [X-B, X-B/2] to carry out the setting of bandwidth stream value again;If
Statistical value is not 0, and the bandwidth stream value for representing current setting is less than actual bandwidth traffic, it is necessary to approach upwards, then takes [X-B/
2, X] median carries out the setting of bandwidth stream value again;Above-mentioned bandwidth stream value is repeated to set and packet accouter reading,
Untill to the last the precision of value reaches setting accuracy;
It is described to be approached specially using dichotomy in interval [Y, Y+B]:The centre of interval [Y, Y+B] is taken for the first time
Value, that is, set current bandwidth flow value to be Y+B/2, then perform once reset again read off after packet accouter yellow packet and
The statistical value of red packet;If statistical value is 0, the bandwidth stream value for representing current setting is more than actual bandwidth traffic, needs
To approach downwards, then take the median of [Y, Y+B/2] to carry out the setting of bandwidth stream value again;If statistical value is not 0, represent
The bandwidth stream value of current setting is less than actual bandwidth traffic, it is necessary to approach upwards, then takes the median of [Y+B/2, Y+B] again
The secondary setting for carrying out bandwidth stream value;Repeat that above-mentioned bandwidth stream value is set and packet accouter is read, to the last value
Untill precision reaches setting accuracy.
The present invention additionally provides a kind of bandwidth traffic detecting system based on business to solve technical problem, specifically includes:
Access control list (ACL) regulations setup module, message amount statistical module, bandwidth traffic adjusting module and bandwidth traffic obtain mould
Block, the access control list (ACL) regulations setup module is used for the access control list (ACL) regulations for setting different user different business, institute
The quantity that message amount statistical module is used to count yellow packet and red packet is stated, the bandwidth traffic adjusting module is used for root
The yellow packet and the quantity adjustment current bandwidth flow value of red packet obtained according to message amount statistical module, the bandwidth stream
Amount acquisition module is used to obtain current bandwidth flow value.
Further, the system also includes parameter presetting module, and the parameter presetting module is used to set initial bandwidth
Flow value, flow steps and detection cycle, the bandwidth stream value are used for the initial value for representing the detection bandwidth flow of setting;Stream
Amount step-length is used for the bandwidth traffic size for representing gradually to be incremented by or gradually successively decrease during detection bandwidth flow;Detection week
Phase is used for the bandwidth traffic detection for representing how long to perform current task, the initial bandwidth flow value of setting be denoted as A,
Flow steps are denoted as B, detection cycle and are denoted as C.
Further, the execution action of the access control list (ACL) regulations is configured to allow to pass through, every access control row
Table rule is associated with stream control action, packet accouter respectively, and the bandwidth stream value in the stream control action is initial bandwidth stream
Value A, the stream control is acted for performing forwarding behavior to yellow packet and red packet, and the packet accouter is used for Huang
Color message and red packet are counted.
Further, the access control list (ACL) regulations are according to terminal device MAC(Media Access Control)
Source address and destination address, 802.1P priority, virtual local area network No. VLAN(Virtual Local Area Network)
ID, link channel type, IP(Internet Protocol)Source address and destination address, source and destination port, application layer protocol
Formulated.
Beneficial effects of the present invention:The present invention a kind of bandwidth traffic detection method and system based on business, by for
Different business and different user formulate different access control list (ACL) regulations and bandwidth traffic are detected, it is possible thereby to by making by oneself
The mode of justice flexibly detects the service bandwidth flow for any level for being operated in non-physical layer, while can also self-defined detection list
The bandwidth traffic of the multiple business of bandwidth traffic or batch detection of individual business, and can be by setting detection cycle, can be with
Obtain periodic testing result;The precision of the testing result finally obtained is high, and during specific implementation, operation spirit
It is living easy, the limitation of existing detection method is overcome, more and more various Network detection demand is disclosure satisfy that.
Brief description of the drawings
Fig. 1 show a kind of FB(flow block) of bandwidth traffic detection method based on business of the embodiment of the present invention;
Fig. 2 show a kind of structured flowchart of bandwidth traffic detecting system based on business of the embodiment of the present invention;
Fig. 3 show a kind of concrete application flow chart element of bandwidth traffic detection method based on business of the embodiment of the present invention
Figure.
Embodiment
The invention will be further elaborated with specific embodiment below in conjunction with the accompanying drawings.
It is a kind of FB(flow block) of bandwidth traffic detection method based on business of the embodiment of the present invention as shown in Figure 1, its
Specifically include following steps:
The different access control list (ACL) regulations of S1, setting;
S2, the access control list (ACL) regulations of setting are applied on switch ports themselves;
S3, statistics yellow packet and red packet quantity;
S4, the quantity according to the step S3 yellow packets counted and red packet, adjust the bandwidth stream value of setting, obtain
Current bandwidth flow value Z.
Wherein, the yellow packet and red packet refer to two kinds of token bucket algorithms defined in RFC(The color of single-rate three
Labeling algorithm and a two rate three color marker algorithm)In be marked as yellow and red message, be the public affairs of those skilled in the art
Know general knowledge, do not describe in detail herein.
Initially set before being detected, in addition to three values, three setting values are respectively:Bandwidth stream value
A, flow steps B and detection cycle C, three setting values have corresponding default value, can be according to difference when being detected
Demand carry out sets itself, default value can also be used to be detected.The bandwidth stream value A represents the detection bandwidth of setting
The initial value of flow;Flow steps B represents the bandwidth stream for being gradually incremented by or gradually successively decreasing during detection bandwidth flow
Measure size;Detection cycle C represents how long perform the bandwidth traffic detection of a current task, can be according to detection cycle C
Periodically to export the bandwidth traffic detected, certain cycle C represents that only carrying out an one-time detection has been it can also be provided that 0
Into current Detection task.
The access control list (ACL) regulations can be formulated according to different user or different business, including:Terminal is set
Standby MAC(Media Access Control)Source address and destination address, 802.1P priority, virtual local area network No. VLAN
(Virtual Local Area Network)ID, link channel type, IP(Internet Protocol)Source address and purpose
Address, source and destination port, application layer protocol, its execution action are configured to allow to pass through, every access control list (ACL) regulations point
Not associated with stream control action, packet accouter, the bandwidth stream value in the stream control action is initial bandwidth flow value A, institute
State stream control action and forwarding behavior is performed to yellow packet and red packet, the packet accouter is to yellow packet and red packet
Counted.
After access control list (ACL) regulations are provided with, applied on switch ports themselves, now background task starts
The statistical value of yellow packet and red packet in packet accouter is read, if the yellow packet or the number of red packet of statistics
Value is not 0, represents that bandwidth traffic now exceedes the A values currently set, then increases bandwidth traffic according to flow steps B values,
Current bandwidth flow value is set as A+B, packet accouter is again read off after then resetting packet accouter, so circulation is carried out
Bandwidth stream value size is adjusted and packet accouter is read, until the statistical value for detecting yellow packet and red packet is 0
When, obtain current bandwidth stream value X;Finally continue executing with the adjustment of bandwidth stream value size and packet accouter is read, in area
Between approached using dichotomy in [X-B, X], draw current bandwidth flow value Z;The detailed process approached using dichotomy is:
The median of interval [X-B, X] is taken for the first time, that is, is set current bandwidth flow value to be X-B/2, then performed and once reset message
The statistical value of yellow packet and red packet is again read off after counter;If statistical value is 0, the bandwidth stream of current setting is represented
Value is more than actual bandwidth traffic, it is necessary to approach downwards, then takes the median of [X-B, X-B/2] to carry out bandwidth stream value again
Setting;If statistical value is not 0, the bandwidth stream value for representing current setting is less than actual bandwidth traffic, it is necessary to force upwards
Closely, then the median of [X-B/2, X] is taken to carry out the setting of bandwidth stream value again;Above-mentioned bandwidth stream value is repeated to set and message
Counter is read, untill to the last the precision of value reaches setting accuracy;
If the yellow packet of statistics and the quantitative value of red packet are 0, represent that bandwidth traffic now is less than currently
The A values of setting, then reduce bandwidth traffic according to flow steps B values, that is, set current bandwidth flow value as A-B, then resets report
Packet accouter is again read off after literary counter, so circulation carries out the adjustment of bandwidth stream value size and packet accouter is read,
When the statistical value for detecting yellow packet or red packet is not 0, bandwidth stream value Y now is drawn;Finally continue
Perform the adjustment of bandwidth stream value size and packet accouter is read, approached, drawn using dichotomy in interval [Y, Y+B]
Current bandwidth flow value Z;The detailed process approached using dichotomy is:The median of interval [Y, Y+B] is taken for the first time, that is, is set
Current bandwidth flow value is Y+B/2, then performs and again reads off yellow packet and red packet after once resetting packet accouter
Statistical value;If statistical value is 0, the bandwidth stream value for representing current setting is more than actual bandwidth traffic, it is necessary to force downwards
Closely, then the median of [Y, Y+B/2] is taken to carry out the setting of bandwidth stream value again;If statistical value is not 0, current setting is represented
Bandwidth stream value be less than actual bandwidth traffic, it is necessary to approach upwards, then take the median of [Y+B/2, Y+B] to carry out band again
The setting of wide flow value;Repeat above-mentioned bandwidth stream value to set and packet accouter reading, to the last the precision of value reaches
Untill setting accuracy;
Meanwhile, the present invention additionally provides a kind of bandwidth traffic detecting system based on business for the above method, such as Fig. 2 institutes
The structured flowchart of the system is shown as, is specifically included:Access control list (ACL) regulations setup module, message amount statistical module, bandwidth
Flow adjustment module and bandwidth traffic acquisition module, the access control list (ACL) regulations setup module are used to set different user
The access control list (ACL) regulations of different business, the message amount statistical module is used for the number for counting yellow packet and red packet
Amount, the bandwidth traffic adjusting module is used for the quantity of the yellow packet and red packet obtained according to message amount statistical module
Current bandwidth flow is adjusted, the bandwidth traffic acquisition module is used to obtain current bandwidth flow value Z.
Wherein, the system also includes parameter presetting module, and the parameter presetting module is used to set initial bandwidth traffic
Value A, flow steps B and detection cycle C, the bandwidth stream value A represent the initial value of the detection bandwidth flow of setting;Flow is walked
Long B represents the bandwidth traffic size for being gradually incremented by or gradually successively decreasing during detection bandwidth flow;Detection cycle C is represented
How long the bandwidth traffic detection of a current task is performed.The execution action of the access control list (ACL) regulations is configured to permit
Permitted to pass through, every access control list (ACL) regulations are associated with stream control action, packet accouter respectively, the band in the stream control action
Wide flow value is initial bandwidth flow value A, and the stream control is acted for performing forwarding behavior, institute to yellow packet and red packet
Stating packet accouter is used to count yellow packet and red packet.The access control list (ACL) regulations are according to terminal device
MAC(Media Access Control)Source address and destination address, 802.1P priority, VLAN(Virtual Local
Area Network)ID, link channel type, IP(Internet Protocol)Source address and destination address, source and destination end
Mouth, application layer protocol are formulated.
In order to skilled artisans appreciate that and implement technical solution of the present invention, below in conjunction with as described in Figure 3
Idiographic flow block diagram a kind of bandwidth traffic detection method based on business and system are described in detail:
Step 1:Firstly the need of the initial bandwidth flow value A of setting, flow steps B and detection cycle C;Bandwidth stream value A is
The initial value of the detection bandwidth flow of user's setting;Flow steps B is gradually incremented by or successively decreased during detection bandwidth
Bandwidth traffic size;Detection cycle C is used to specify the bandwidth traffic detection for how long performing current task, can be by
Carry out periodically to export the bandwidth traffic final result detected according to detection cycle C;Above three value belongs to free setting, also may be used
Directly to use default value without setting, if detection cycle C default value is 0, represent without cycle detection, only carry out one
Secondary detection;
Step 2:Access control list (ACL) regulations, the execution of access control list (ACL) regulations are set according to service feature to be detected
Action is configured to allow to pass through;
Step 3:Access control list (ACL) regulations are associated with stream control action and packet accouter, the bandwidth stream in stream control action
Amount initial set value is the bandwidth stream value A set in step 1, moves the processing of yellow packet and red packet in stream control action
Forwarding behavior is set to, packet accouter is set to count the pattern of yellow packet and red packet;
Step 4:By the access control list application set on switch ports themselves, now current stream control action can start
Come into force, packet accouter can start to count resulting yellow packet and red packet number;
Step 5:Background task starts to read the statistical value of yellow packet and red packet in packet accouter, if read
The yellow packet or the statistical value of red packet gone out is not 0, then continues executing with step 6;If the yellow packet that reads out and red
The statistical value of color message is 0, then jumps to step 10.
Step 6:When the yellow packet or the statistical value of red packet read out is not 0, represent in current stream control action
The bandwidth stream value of setting is less than actual bandwidth stream value, and background task is automatically according in flow steps B increase stream control actions
Bandwidth stream value, that is, set current bandwidth flow value as A+B;
Step 7:A packet accouter is first reset, then yellow packet and red packet again in accounting message counter
Whether it is 0, if being not 0, jumps to step 5;If 0, then step 8 is continued executing with;
Step 8:When yellow packet and red packet are 0, represent that the bandwidth stream value set is more than reality
Bandwidth traffic, now takes out the bandwidth stream value X of setting;
Step 9:Due to setting bandwidth stream value(X-B)Less than currently practical bandwidth traffic, and bandwidth stream value X is set
More than currently practical bandwidth traffic, so being approached in interval [X-B, X] using dichotomy, it is specially:Take for the first time
The interval median, that is, set current bandwidth flow value to be X-B/2, then performs and is read again after once resetting packet accouter
The statistical value of extracting yellow message and red packet;If statistical value is 0, the bandwidth stream value for representing current setting is more than reality
Bandwidth traffic then takes the median of [X-B, X-B/2] to carry out the setting of bandwidth stream value again, it is necessary to approach downwards;If system
Evaluation is not 0, and the bandwidth stream value for representing current setting is less than actual bandwidth traffic, it is necessary to approach upwards, then take [X-B/2,
X] median carry out the setting of bandwidth stream value again;Bandwidth stream value so is repeated to set and packet accouter reading,
Untill to the last the precision of value reaches setting accuracy, the setting accuracy can be kbps;
Step 10:When the yellow packet and the statistical value of red packet that read out are 0, represent in current stream control action
The bandwidth stream value of setting is more than actual bandwidth stream value, so background task is automatic to reduce stream control action according to flow steps
In bandwidth stream value, i.e., currently set bandwidth stream value as A-B;
Step 11:A packet accouter is first reset, then yellow packet again in accounting message counter and red report
Whether text is 0, if 0, then jumps to step 10;If being not 0, step 12 is continued executing with;
Step 12:When yellow packet or red packet are not 0, represent that the bandwidth stream value set is less than reality
Bandwidth traffic, now takes out the bandwidth stream value Y of setting;
Step 13:Due to setting bandwidth stream value Y to be less than currently practical bandwidth traffic, and bandwidth stream value Y+B is set
More than currently practical bandwidth traffic, so being approached in interval [Y, Y+B] using dichotomy, it is specially:Take for the first time
The interval median, that is, set current bandwidth flow value to be Y+B/2, then performs and is read again after once resetting packet accouter
The statistical value of extracting yellow message and red packet;If statistical value is 0, the bandwidth stream value for representing current setting is more than reality
Bandwidth traffic then takes the median of [Y, Y+B/2] to carry out the setting of bandwidth stream value again, it is necessary to approach downwards;If statistics
Value is not 0, and the bandwidth stream value for representing current setting is less than actual bandwidth traffic, it is necessary to approach upwards, then takes [Y+B/2, Y+
B] median carry out the setting of bandwidth stream value again;Bandwidth stream value so is repeated to set and packet accouter reading,
Untill to the last the precision of value reaches setting accuracy, the setting accuracy can be kbps;
Step 14:After the dichotomy that step 9 and step 13 complete interval is approached, actual bandwidth stream value Z is drawn, its
Precision can reach kbps;
Step 15:Background task judges whether to be provided with whether detection cycle C, i.e. detection cycle C are 0, if 0, generation
Table can only carry out one-time detection, then detection terminates;If non-zero, representative needs to be periodically detected, then continues executing with step
16;
Step 16:After the time for waiting a detection cycle C, step 1 can be jumped to again, proceeds bandwidth traffic
Detection.
A, B, C, X, Y, the Z for the reference parameters value that the above present invention and embodiment are previously mentioned manage just for the sake of convenient
In the generation of solution, claims, and is not construed as limiting the present invention.One of ordinary skill in the art will be appreciated that, reality described here
Apply example and be to aid in the principle that reader understands the present invention, it should be understood that protection scope of the present invention is not limited to such
Especially state and embodiment.One of ordinary skill in the art can make various according to these technical inspirations disclosed by the invention
The other various specific deformations and combination of essence of the invention are not departed from, these deformations and combination are still in protection scope of the present invention
It is interior.
Claims (8)
1. a kind of bandwidth traffic detection method based on business, it is characterised in that comprise the following steps:
The different access control list (ACL) regulations of S1, setting;
S2, the access control list (ACL) regulations of setting are applied on switch ports themselves;
S3, statistics yellow packet and red packet quantity;
S4, the quantity according to the step S3 yellow packets counted and red packet, adjust the bandwidth stream value of setting, obtain current
Bandwidth stream value;
Before the step S1, in addition to set initial bandwidth flow value, flow steps and detection cycle, the initial bandwidth
Flow value represents the initial value of the detection bandwidth flow of setting;Flow steps represent gradually to pass during detection bandwidth flow
The bandwidth traffic size for increasing or gradually successively decreasing;Detection cycle represents how long perform the bandwidth traffic inspection of a current task
Survey, the initial bandwidth flow value of the setting is denoted as A, flow steps and is denoted as B, detection cycle being denoted as C;
The step S4 is specially:If the yellow packet of statistics or the quantitative value of red packet are not 0, band now is represented
Wide flow exceedes the initial bandwidth flow value currently set, then increases bandwidth traffic according to flow steps value, be denoted as A+B;Then
Packet accouter is again read off after resetting packet accouter, so circulation carries out the adjustment of bandwidth stream value size and packet accouter
Read, when the statistical value for detecting yellow packet and red packet is 0, obtains current bandwidth stream value, be denoted as X;
Finally continue executing with the adjustment of bandwidth stream value size and packet accouter is read, carried out in interval [X-B, X] using dichotomy
Approach, draw current bandwidth flow value;If the yellow packet of statistics and the quantitative value of red packet are 0, represent now
Bandwidth traffic is less than the A values currently set, then reduces bandwidth traffic according to flow steps B values, be denoted as A-B, then reset message
Packet accouter is again read off after counter, so circulation carries out the adjustment of bandwidth stream value size and packet accouter is read, directly
When being not 0 to the statistical value for detecting yellow packet or red packet, bandwidth stream value now is drawn, Y is denoted as;It is most follow-up
It is continuous to perform the adjustment of bandwidth stream value size and packet accouter reading, approached, obtained using dichotomy in interval [Y, Y+B]
Go out current bandwidth flow value.
2. the method as described in claim 1, it is characterised in that the execution action of the access control list (ACL) regulations is configured to permit
Permitted to pass through, every access control list (ACL) regulations are associated with stream control action, packet accouter respectively, the band in the stream control action
Wide flow value is initial bandwidth flow value, and the stream control action performs forwarding behavior, the report to yellow packet and red packet
Literary counter is counted to yellow packet and red packet.
3. method as claimed in claim 2, it is characterised in that the access control list (ACL) regulations are according to terminal device MAC's
Source address and destination address, 802.1P priority, virtual local area network No. VLAN ID, link channel type, IP source address and purpose
Address, source and destination port, application layer protocol are formulated.
4. the method as described in claim 1, it is characterised in that described to be approached in interval [X-B, X] using dichotomy
Specially:The median of interval [X-B, X] is taken for the first time, that is, is set current bandwidth flow value to be X-B/2, then performed once clear
The statistical value of yellow packet and red packet is again read off after zero packet accouter;If statistical value is 0, current setting is represented
Bandwidth stream value is more than actual bandwidth traffic, it is necessary to approach downwards, then takes the median of [X-B, X-B/2] to carry out bandwidth again
The setting of flow value;If statistical value is not 0, the bandwidth stream value for representing current setting be less than actual bandwidth traffic, it is necessary to
Approach upwards, then take the median of [X-B/2, X] to carry out the setting of bandwidth stream value again;Above-mentioned bandwidth stream value is repeated to set
Read with packet accouter, untill to the last the precision of value reaches setting accuracy;
It is described to be approached specially using dichotomy in interval [Y, Y+B]:The median of interval [Y, Y+B] is taken for the first time,
Set current bandwidth flow value to be Y+B/2, then perform and again read off yellow packet and red after once resetting packet accouter
The statistical value of color message;If statistical value is 0, the bandwidth stream value for representing current setting be more than actual bandwidth traffic, it is necessary to
Approach downwards, then take the median of [Y, Y+B/2] to carry out the setting of bandwidth stream value again;If statistical value is not 0, represents and work as
The bandwidth stream value of preceding setting is less than actual bandwidth traffic, it is necessary to approach upwards, then takes the median of [Y+B/2, Y+B] again
Carry out the setting of bandwidth stream value;Repeat above-mentioned bandwidth stream value to set and packet accouter reading, to the last the essence of value
Untill degree reaches setting accuracy.
5. a kind of bandwidth traffic detecting system based on claim 1 methods described, it is characterised in that specifically include:Access control
List (ACL) regulations setup module processed, message amount statistical module, bandwidth traffic adjusting module and bandwidth traffic acquisition module, it is described
Access control list (ACL) regulations setup module is used for the access control list (ACL) regulations for setting different user different business, the message number
Amount statistical module is used for the quantity for counting yellow packet and red packet, and the bandwidth traffic adjusting module is used for according to message number
Yellow packet and the quantity adjustment current bandwidth flow value of red packet that amount statistical module is obtained, the bandwidth traffic obtain mould
Block is used to obtain current bandwidth flow value.
6. system as claimed in claim 5, it is characterised in that the system also includes parameter presetting module, the parameter is pre-
If module is used to set initial bandwidth flow value, flow steps and detection cycle, the bandwidth stream value is used to represent setting
The initial value of detection bandwidth flow;Flow steps are used to represent gradually to be incremented by or gradually pass during detection bandwidth flow
The bandwidth traffic size subtracted;Detection cycle is used for the bandwidth traffic detection for representing how long to perform a current task, described
Initial bandwidth flow value is set to be denoted as A, flow steps and be denoted as B, detection cycle being denoted as C.
7. system as claimed in claim 5, it is characterised in that the execution action of the access control list (ACL) regulations is configured to permit
Permitted to pass through, every access control list (ACL) regulations are associated with stream control action, packet accouter respectively, the band in the stream control action
Wide flow value is initial bandwidth flow value, and the stream control is acted for performing forwarding behavior, institute to yellow packet and red packet
Stating packet accouter is used to count yellow packet and red packet.
8. system as claimed in claim 7, it is characterised in that the access control list (ACL) regulations are according to terminal device MAC's
Source address and destination address, 802.1P priority, virtual local area network No. VLAN ID, link channel type, IP source address and destination
Location, source and destination port, application layer protocol are formulated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310750018.9A CN103746876B (en) | 2013-12-31 | 2013-12-31 | A kind of bandwidth traffic detection method and system based on business |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310750018.9A CN103746876B (en) | 2013-12-31 | 2013-12-31 | A kind of bandwidth traffic detection method and system based on business |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103746876A CN103746876A (en) | 2014-04-23 |
CN103746876B true CN103746876B (en) | 2017-08-01 |
Family
ID=50503867
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310750018.9A Active CN103746876B (en) | 2013-12-31 | 2013-12-31 | A kind of bandwidth traffic detection method and system based on business |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103746876B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107634867A (en) * | 2017-10-25 | 2018-01-26 | 广东欧珀移动通信有限公司 | Network management and Related product |
CN108768738B (en) * | 2018-06-07 | 2021-02-09 | 四川福泰美科技有限公司 | Rapid self-adaptive network bandwidth detection method based on CDN network technology |
CN115242855A (en) * | 2021-04-02 | 2022-10-25 | 深圳市锐速云计算有限公司 | Long connection bandwidth calculation method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222380A (en) * | 2007-12-27 | 2008-07-16 | 腾讯科技(深圳)有限公司 | Available bandwidth detecting method, system and device |
CN101505244A (en) * | 2009-03-27 | 2009-08-12 | 北京星网锐捷网络技术有限公司 | Bandwidth measurement method and apparatus |
CN101741603A (en) * | 2008-11-11 | 2010-06-16 | 中兴通讯股份有限公司 | Method and device for supervising traffic based on token bucket |
CN101741739A (en) * | 2009-12-01 | 2010-06-16 | 中兴通讯股份有限公司 | Method and device for counting messages of output/input port of exchange equipment |
CN101783747A (en) * | 2009-12-30 | 2010-07-21 | 福建星网锐捷网络有限公司 | Method and network for measuring length of buffer queue |
WO2011006372A1 (en) * | 2009-07-14 | 2011-01-20 | 中兴通讯股份有限公司 | Method and system for end to end available bandwidth measurement |
-
2013
- 2013-12-31 CN CN201310750018.9A patent/CN103746876B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222380A (en) * | 2007-12-27 | 2008-07-16 | 腾讯科技(深圳)有限公司 | Available bandwidth detecting method, system and device |
CN101741603A (en) * | 2008-11-11 | 2010-06-16 | 中兴通讯股份有限公司 | Method and device for supervising traffic based on token bucket |
CN101505244A (en) * | 2009-03-27 | 2009-08-12 | 北京星网锐捷网络技术有限公司 | Bandwidth measurement method and apparatus |
WO2011006372A1 (en) * | 2009-07-14 | 2011-01-20 | 中兴通讯股份有限公司 | Method and system for end to end available bandwidth measurement |
CN101741739A (en) * | 2009-12-01 | 2010-06-16 | 中兴通讯股份有限公司 | Method and device for counting messages of output/input port of exchange equipment |
CN101783747A (en) * | 2009-12-30 | 2010-07-21 | 福建星网锐捷网络有限公司 | Method and network for measuring length of buffer queue |
Non-Patent Citations (1)
Title |
---|
QoS技术中令牌桶算法实现方式比较;李晓利等;《中兴通讯技术》;20071231(第03期);正文第56-60页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103746876A (en) | 2014-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104796348B (en) | IDC network egress flow equalizations method of adjustment, equipment and system based on SDN | |
Sekar et al. | cSamp: A system for network-wide flow monitoring | |
US8339951B2 (en) | Method for configuration of a load balancing algorithm in a network device | |
CN106130796B (en) | SDN network topology traffic visualization monitoring method and control terminal | |
CN104221418B (en) | The method and apparatus of charging | |
CN105100142B (en) | The transfer control method and device of software defined network protocol massages | |
CN104980317A (en) | Automatic test system and test method for dispatching data network equipment | |
Bhamare et al. | Intopt: In-band network telemetry optimization for nfv service chain monitoring | |
CN110401624A (en) | The detection method and system of source net G system mutual message exception | |
CN105530138B (en) | Data monitoring method and device | |
CN103746876B (en) | A kind of bandwidth traffic detection method and system based on business | |
CN106487605B (en) | Packet loss rate detection method and device | |
CN103069754A (en) | Communication device, communication system, communication method, and recording medium | |
CN108370333A (en) | System, method and the node that can be measured for Segment routing net neutral | |
CN105099721B (en) | Safeguard the method and apparatus of multicast member | |
CN103414594A (en) | IP stream information statistical method for charging and monitoring | |
CN104038382B (en) | Network monitoring system | |
CN105119911A (en) | Safety authentication method and system based on SDN flow | |
CN107196816A (en) | Anomalous traffic detection method, system and Network analyzing equipment | |
CN108512727A (en) | A kind of determination method and device of central processing unit utilization rate | |
CN103716211A (en) | Data traffic measuring method and system of network terminal | |
EP1704491A1 (en) | A method and systems for resource bunlding in a communications network | |
CN106921534A (en) | Data traffic monitoring and managing method and device | |
CN108667804A (en) | A kind of ddos attack detection and means of defence and system based on SDN frameworks | |
CN107547444B (en) | Traffic statistical method and switching equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |