CN103227739A - Ethernet service-unaware companion test method and device - Google Patents

Ethernet service-unaware companion test method and device Download PDF

Info

Publication number
CN103227739A
CN103227739A CN2013101981768A CN201310198176A CN103227739A CN 103227739 A CN103227739 A CN 103227739A CN 2013101981768 A CN2013101981768 A CN 2013101981768A CN 201310198176 A CN201310198176 A CN 201310198176A CN 103227739 A CN103227739 A CN 103227739A
Authority
CN
China
Prior art keywords
token
token bucket
bucket
current
threshold value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013101981768A
Other languages
Chinese (zh)
Other versions
CN103227739B (en
Inventor
徐宁
朱胜琼
熊炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Wuhan FiberHome Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan FiberHome Networks Co Ltd filed Critical Wuhan FiberHome Networks Co Ltd
Priority to CN201310198176.8A priority Critical patent/CN103227739B/en
Publication of CN103227739A publication Critical patent/CN103227739A/en
Application granted granted Critical
Publication of CN103227739B publication Critical patent/CN103227739B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an Ethernet service-unaware companion test method and device. The method comprises the following steps of: calculating by a first group of token buckets to obtain idle bandwidth of a link; and applying the idle bandwidth to the transmission of test flow by controlling the sending rate of the test flow through a second group of token buckets. Inspired by a traditional method that token buckets are used for shaping the bandwidth profile of service, the Ethernet service-unaware companion test method performs real-time monitoring on the rate of normal service by a new token bucket algorithm, a service test does not occupy normal service bandwidth, the real-time monitoring on network flow can be achieved, and a bandwidth utilization rate is improved while service running costs are reduced.

Description

The Ethernet service unaware follow method of testing and device
Technical field
The present invention relates to the technical field of ethernet link layer test, what be specifically related to the Ethernet service unaware follows method of testing and device.
Background technology
Nowadays, Ethernet service increases fast, and along with the rise of novel business such as voice and video, cloud application, class of business is tending towards variation, and network quality and performance face a severe test, and therefore, need effectively monitor and manage Ethernet.
The quality of network and performance parameter comprise throughput, LOF and frame time-delay etc., and the implementation method that the mensuration of these parameters is comparatively general has following two kinds:
(1) the outer test of band is promptly interrupted regular traffic and is sent test frame.Be with outer test can not realize real-time monitoring to regular traffic.
(2) take certain service bandwidth in the band and send test frame.The method of testing of occupied bandwidth will cause the partial loss of regular traffic frame in the band.
Therefore, all there is certain defective in above-mentioned two kinds of existing mode.How to realize to network quality and performance effectively the test traffic of supervision do not take the regular traffic bandwidth, particularly for bearer network, be implemented under the state of professional unaware and supervise, seem particularly important.
Summary of the invention
Technical problem to be solved by this invention be how base to network quality and performance effectively the test traffic of supervision do not take the problem of regular traffic bandwidth.
In order to solve the problems of the technologies described above, the technical solution adopted in the present invention provides a kind of method of testing of following of Ethernet service unaware, may further comprise the steps:
Calculate the idle bandwidth of link by first group of token bucket;
Transmission rate by second group of token bucket control test traffic is used for idle bandwidth the transmission of test traffic.
In said method, described first group of token bucket comprises first token bucket, and described second group of token bucket comprises second token bucket, when traffic frame arrives, carries out mark according to following condition:
If the current token quantity of first token bucket is more than or equal to its threshold value, then the described traffic frame of mark is green bag, is labeled as the token that the traffic frame consumption of green bag equates with its frame length;
If the current token quantity of first token bucket is less than its threshold value, then the described traffic frame of mark is a red packet, and the traffic frame that is labeled as red packet does not consume token;
When first token bucket was filled token, unnecessary token was sent to second token bucket, when the current token quantity of second token bucket begins to send test frame during greater than its threshold value, when the current token quantity of second token bucket stops to send test frame during smaller or equal to its threshold value.
In said method, when committed information rate CIR refreshes when constantly arriving, the current token quantity of first token bucket and second token bucket is upgraded in the following manner:
If the current token quantity of first token bucket is greater than committed burst size CBS1, the current token quantity=CBS1 of first token bucket then, unnecessary token is sent to second token bucket, token number+the CIR of current token quantity=its previous moment of second token bucket refreshes the token number, and CIR refreshes the token number and draws according to the concrete numerical value that CIR is provided with;
If the current token quantity of first token bucket is smaller or equal to CBS1, the token number of current token quantity=its previous moment of first token bucket+refresh token number, the token number of current token quantity=its previous moment of second token bucket then.
In said method, described first group of token bucket comprises first token bucket and the 3rd token bucket, and described second group of token bucket comprises second token bucket, when traffic frame arrives, according to the described traffic frame of following condition flag:
If the current token quantity of first token bucket is more than or equal to its threshold value, then the described traffic frame of mark is green bag, and the traffic frame that is labeled as green bag consumes the token that equates with its frame length in first token bucket;
If the current token quantity of first token bucket is less than its threshold value, and the current token quantity of the 3rd token bucket is more than or equal to its threshold value, and then the described traffic frame of mark is yellow bag, and the traffic frame that is labeled as yellow bag consumes the token that equates with its frame length in the 3rd token bucket;
If the current token quantity of first token bucket is less than its threshold value, and the current token quantity of the 3rd token bucket is less than its threshold value, and then the described traffic frame of mark is a red packet, and the traffic frame that is labeled as red packet does not consume token;
When first token bucket was filled token, if the coupling of first token bucket and the 3rd token bucket is labeled as 1, then unnecessary token was sent to the 3rd token bucket; If described coupling is labeled as 0, then unnecessary token is sent to second token bucket; When the 3rd token bucket was filled token, unnecessary token was sent to second token bucket.
In said method, when refreshing of CIR arrived constantly, the token number+CIR of current token quantity=its previous moment of first token bucket refreshed the token number, and CIR refreshes the token number and calculated by CIR;
When peak information rate EIR refreshes when constantly arriving, the token number+EIR of current token quantity=its previous moment of the 3rd token bucket refreshes the token number, and EIR refreshes the token number and calculated by EIR.
The present invention also provides a kind of testing apparatus of following of Ethernet service unaware, it is characterized in that, comprising:
First group of token bucket calculates the idle bandwidth of link;
Second group of token bucket, the transmission rate of control test traffic is used for idle bandwidth the transmission of test traffic.
In said apparatus, described first group of token bucket comprises first token bucket, and described second group of token bucket comprises second token bucket, when traffic frame arrives, carries out mark according to following condition:
If the current token quantity of first token bucket is more than or equal to its threshold value, then the described traffic frame of mark is green bag, is labeled as the token that the traffic frame consumption of green bag equates with its frame length;
If the current token quantity of first token bucket is less than its threshold value, then the described traffic frame of mark is a red packet, and the traffic frame that is labeled as red packet does not consume token;
When first token bucket was filled token, unnecessary token was sent to second token bucket, when the current token quantity of second token bucket begins to send test frame during greater than its threshold value, when the current token quantity of second token bucket stops to send test frame during smaller or equal to its threshold value.
In said apparatus, described first group of token bucket comprises first token bucket and the 3rd token bucket, and described second group of token bucket comprises second token bucket, when traffic frame arrives, according to the described traffic frame of following condition flag:
If the current token quantity of first token bucket is more than or equal to its threshold value, then the described traffic frame of mark is green bag, and the traffic frame that is labeled as green bag consumes the token that equates with its frame length in first token bucket;
If the current token quantity of first token bucket is less than its threshold value, and the current token quantity of the 3rd token bucket is more than or equal to its threshold value, and then the described traffic frame of mark is yellow bag, and the traffic frame that is labeled as yellow bag consumes the token that equates with its frame length in the 3rd token bucket;
If the current token quantity of first token bucket is less than its threshold value, and the current token quantity of the 3rd token bucket is less than its threshold value, and then the described traffic frame of mark is a red packet, and the traffic frame that is labeled as red packet does not consume token;
When first token bucket was filled token, if the coupling of first token bucket and the 3rd token bucket is labeled as 1, then unnecessary token was sent to the 3rd token bucket; If described coupling is labeled as 0, then unnecessary token is sent to second token bucket; When the 3rd token bucket was filled token, unnecessary token was sent to second token bucket.
The present invention, be subjected to tradition to adopt the token bucket mode business to be carried out the inspiration of bandwidth profile shaping, utilize the real-time monitoring of new token bucket algorithm realization to regular traffic speed, operational trials does not take the regular traffic bandwidth, can realize simultaneously real-time monitoring again, promote bandwidth availability ratio and reduce the service operation cost simultaneously network traffics.
Description of drawings
Fig. 1 be in the specific embodiment of the invention 1 when beginning first, second token bucket view;
Fig. 2 be in the specific embodiment of the invention 1 first token bucket less than but the ever-increasing view of token;
The schematic diagram of state when Fig. 3 overflows for first token bucket in the specific embodiment of the invention 1;
Fig. 4 be in the specific embodiment of the invention 2 the first, the 3rd token bucket less than but the ever-increasing view of token;
Fig. 5 overflows for the first, the 3rd token bucket in the specific embodiment of the invention 2, and unnecessary token is delivered to second token bucket, but the view during the second token bucket no show threshold value;
Fig. 6 is the view when second token bucket is greater than threshold value in the specific embodiment of the invention 2;
Fig. 7 is based on the unaware test result schematic diagram of single-rate bandwidth shaping in the specific embodiment of the invention 1;
Fig. 8 is based on the unaware test result schematic diagram of dual rate bandwidth shaping in the specific embodiment of the invention 2.
Embodiment
What the invention provides a kind of Ethernet service unaware follows method of testing and device, use this method and apparatus to carry out operational trials and do not take the regular traffic bandwidth, can realize simultaneously real-time monitoring again, promote bandwidth availability ratio, reduce the service operation cost simultaneously network traffics.
The present invention, be subjected to tradition to adopt the token bucket mode business to be carried out the inspiration of bandwidth profile shaping (bandwidth profile), calculate the idle bandwidth of link by first group of token bucket, transmission rate by second group of token bucket control test traffic, idle bandwidth is used for the transmission of test traffic, utilizes new token bucket algorithm to realize real-time monitoring regular traffic speed.Below described in detail by two embodiments respectively.
Execution mode 1.
This execution mode is used for the unaware test of single-rate bandwidth profile shaping (bandwidth profile), realize by two token buckets, promptly first group of token bucket is made up of first token bucket 11, second group of token bucket is made up of second token bucket 12, first token bucket 11 calculates the idle bandwidth of link, the transmission rate of second token bucket, 12 control test traffics is used for idle bandwidth the transmission of test traffic.
Concrete token bucket algorithm such as Fig. 1, Fig. 2 and shown in Figure 3.
At first, first token bucket 11 is full, and promptly the token number in first token bucket 11 equals committed burst size CBS1, and second token bucket 12 is empty.
When traffic frame arrives, this traffic frame is carried out mark according to following condition:
If the current token quantity current token bucket of the first token bucket 11() is more than or equal to the threshold value of first token bucket 11, think that then this business does not surpass committed information rate (CIR), this traffic frame of mark is green bag, be labeled as the token that the traffic frame consumption of green bag equates with this traffic frame frame length, that is, this moment first token bucket 11 the frame length of token number-this traffic frame of current token quantity=its previous moment.
If the current token quantity of first token bucket 11 less than threshold value, thinks that then this business has surpassed CIR, be labeled as red packet, the traffic frame that is labeled as red packet does not consume token, that is, this moment first token bucket 11 the token number of current token quantity=its previous moment.
When refreshing of CIR arrived constantly, the current token quantity of first token bucket 11 and second token bucket 12 was upgraded in the following manner:
If the current token quantity of first token bucket 11 is greater than the committed burst size CBS1 of first token bucket 11, the current token quantity=CBS1 of first token bucket 11 then, unnecessary token is sent to second token bucket, token number+the CIR of current token quantity=its previous moment of second token bucket 12 refreshes the token number, wherein, CIR refreshes the token number and is calculated by CIR;
If the current token quantity of first token bucket 11 is smaller or equal to CBS1, then token number+the CIR of current token quantity=its previous moment of first token bucket 11 refreshes the token number, the token number of current token quantity=its previous moment of second token bucket.
As depicted in figs. 1 and 2, if the Mean Speed<CIR of traffic frame, then the token in first token bucket 11 accumulates, but if the token number≤CBS1 in first token bucket 11, second token bucket 12 just is empty; Because the Mean Speed<CIR of traffic frame, the phenomenon that the token of first token bucket 11 finally will occur overflowing, the token that overflows is just being represented idle bandwidth, and idle bandwidth can be distributed to test service and use, and this token that just means that first token bucket 11 overflows will be delivered in second token bucket 12.
As shown in Figure 3, when first token bucket 11 is filled token, unnecessary token is sent to second token bucket 12, when the current token quantity of second token bucket 12 begins to send test frame during greater than its threshold value, so, the token number of the current token quantity=previous moment of second token bucket 12-test frame frame length; When the current token quantity of second token bucket 12 stops to send test frame during smaller or equal to its threshold value.
Execution mode 2.
This execution mode is used for the unaware test of dual rate bandwidth profile shaping (bandwidth profile), the difference of this execution mode and execution mode 1 is to be realized by three token buckets, promptly first group of token bucket is made up of first token bucket 11 and the 3rd token bucket 13, second group of token bucket is made up of second token bucket 12, first token bucket 11 and the 3rd token bucket 13 be associated the idle bandwidth of outgoing link, the transmission rate of second token bucket, 12 control test traffics is used for idle bandwidth the transmission of test traffic.
Specific algorithm is as follows:
At first, first token bucket 11 is full, and promptly token number equals CBS1, and the 3rd token bucket 13 also is full, and promptly token number equals extreme burst amount EBS1, and second token bucket 12 is empty.
When traffic frame arrives, according to the described traffic frame of following condition flag:
If the current token quantity of first token bucket 11 is more than or equal to the threshold value of first token bucket 11, think that then this business does not have CIR, this traffic frame of mark is green bag, the traffic frame that is labeled as green bag consumes the token that equates with its frame length in first token bucket 11, promptly, token number-the frame length of current token quantity=its previous moment of first token bucket 11, the token number of current token quantity=its previous moment of the 3rd token bucket 13;
If the current token quantity of first token bucket 11 is less than the threshold value of first token bucket 11, and the current token quantity of the 3rd token bucket 13 is more than or equal to the threshold value of the 3rd token bucket 13, think that then this business is not surpass peak information rate (EIR), this bag can be served as much as possible, this traffic frame of mark is yellow bag, and the traffic frame that is labeled as yellow bag consumes the token that equates with its frame length in the 3rd token bucket 13;
If the current token quantity of first token bucket 11 is less than the threshold value of first token bucket 11, and the current token quantity of the 3rd token bucket 13 is less than the threshold value of the 3rd token bucket 13, think that then this business has surpassed EIR, generally abandon, there is the network of bearing capacity also can be served as much as possible, this traffic frame of mark is a red packet, the traffic frame that is labeled as red packet does not consume token, that is the token number of current token quantity=its previous moment of first token bucket 11, second token bucket 12 and the 3rd token bucket 13.
When refreshing of CIR arrives constantly:
Token number+the CIR of current token quantity=its previous moment of first token bucket 11 refreshes the token number, and CIR refreshes the token number and calculated by CIR;
When peak information rate EIR refreshes when constantly arriving, the token number+EIR of current token quantity=its previous moment of the 3rd token bucket 13 refreshes the token number, and EIR refreshes the token number and calculated by EIR.
As shown in Figure 4, when the Mean Speed of traffic frame<CIR, the token in first token bucket 11 accumulates, but if the token number≤CBS1 in first token bucket 11, second token bucket 12 just be a sky;
When first token bucket 11 is filled token, if the coupling mark CF (coupling flag) of first token bucket 11 and the 3rd token bucket 13 mainly is a token in related first token bucket 11 and the 3rd token bucket 13 for the value of 1(CF, be used to control the quantity of yellow bag, decision when the first token bucket l1 is full unnecessary token whether be sent to the 3rd token bucket l3), so unnecessary token is sent to the 3rd token bucket 13, when the 3rd token bucket 13 was expired, unnecessary token was sent to second token bucket 12; If CF=0, the unnecessary token of the first token bucket l1 will directly be sent to second token bucket 12 so, and when token bucket l3 was full, unnecessary token also was sent to second token bucket; Like this, if the Mean Speed≤CIR of traffic frame, the phenomenon that the token of first token bucket 11 finally will occur overflowing, the token that overflows is just being represented idle bandwidth, idle bandwidth can be distributed to test service and use, and this just means that the token that overflows delivers in second token bucket 12 the most at last.
If the Mean Speed>CIR of EIR 〉=traffic frame, the then token of the 3rd token bucket 13 phenomenon that the most can not occur overflowing.
When CIR refreshes when constantly arriving:
If the token number>CBS1 of first token bucket 11 then makes the token number=CBS1 in first token bucket 11;
If CF=1,
Then, the token number of current token number=its previous moment of the 3rd token bucket 13+first token bucket 11 refreshes the token number;
The token number of current token number=its previous moment of second token bucket 12.
If CF=0,
Then, the token number of current token number=its previous moment of the 3rd token bucket 13;
The CIR of the token number of current token number=its previous moment of second token bucket 12+first token bucket 11 refreshes the token number.
If the token number≤CBS1 of first token bucket 11,
The CIR of token number+first token bucket 11 of current token quantity=its previous moment in first token bucket 11 refreshes the token number;
The token number of the token number of the 3rd token bucket 13=its previous moment;
The token number of the token number of second token bucket 12=its previous moment;
When refreshing of EIR arrives constantly:
If the token number>EBS1 of the 3rd token bucket 13, then,
Token number=EBS1 in the 3rd token bucket 13;
The EIR of the token number of current token number=its previous moment of second token bucket 12+the 3rd token bucket 13 refreshes the token number;
If the token number≤EBS1 of the 3rd token bucket 13, then,
The EIR of token number+the 3rd token bucket 13 of the token number in current the 3rd token bucket 13=first token bucket, 11 previous moment refreshes the token number
The token number of the token number of second token bucket 12=its previous moment.
As shown in Figure 5, when the token in first token bucket 11 overflows, if CF=1 just is sent to unnecessary token the 3rd token bucket 13, if CF=0 then is sent to second token bucket 12; When first token bucket 11 and the 3rd token bucket 13 all overflow, unnecessary token all will be sent to second token bucket 12.
As shown in Figure 6:
When the token number of second token bucket 12>second token bucket, 12 threshold values, begin to send test frame, this moment second token bucket 12 the token number-test frame frame length of token number=its previous moment;
When the threshold value of token number≤second token bucket 12 of second token bucket 12, stop to send test frame.
The present invention, dynamically adjust the bandwidth profile of general traffics according to the real-time bandwidth of regular traffic, for example, to the UNI inlet of certain metropolitan area network, certain EVC passage carries out the speed that professional unaware is followed test service, rationally use idle bandwidth, improve the utilance of line bandwidth, also can realize the bandwidth profile to general traffics simultaneously, UNI can see a pipeline, EVC is exactly small tubes in the pipeline, and CIR/EIR can regard the diameter of EVC pipe as.
Concrete application 1: based on the unaware test of single-rate bandwidth profile.
Setting CIR is 400Mbps.
This EVC channel rate diameter has only 400Mbps, but the arrival burst rate maximum of traffic frame can reach 1000Mbps, as shown in Figure 7, belong to this EVC traffic frame<400Mbps green bag (can provide performance guarantee traffic frame) will be provided, the traffic frame of 〉=400Mbps will be labeled as red packet (not having the traffic frame that any performance guarantees), and red packet often is defined as and abandons.
When the traffic frame speed that belongs to this EVC<400Mbps, the token of first token bucket 11 adds the fast of specific consumption, continue to be added to overflow and deliver to second token bucket 12, the token number that second token bucket 12 obtains will send the test frame that belongs to this EVC during greater than its threshold value accordingly, test frame with the speed polishing of EVC passage to 400Mbps; When traffic frame 〉=400Mbps, it is fast that the token consumption rate of first token bucket 11 adds, and token will reduce to below the threshold value, second token bucket 12 can not get any token, do not have test frame to send, the EVC channel rate remains 400Mbps, and final test effect as shown in Figure 7.
Concrete application 2: based on the unaware test of dual rate bandwidth profile.
Setting EIR is 500Mbps, and CIR is 400Mbps.
This EVC channel rate diameter is 500Mbps to the maximum, but the arrival burst rate maximum of traffic frame can reach 1000Mbps, as shown in Figure 8, belongs to traffic frame<400Mbps of this EVC, will be marked as green bag, and these business must provide performance to guarantee; 〉=400Mbps but<traffic frame of 500Mbps will be labeled as yellow bag, this part business is that the performance that provides of doing one's best guarantees; The traffic frame of 〉=500Mbps will be labeled as red packet, and this part business is that no any performance guarantees.
When the traffic frame speed that belongs to this EVC<400Mbps, the token of first token bucket 11 adds the fast of specific consumption, continues to be added to and overflows, if CF=1, unnecessary token is given the 3rd token bucket 13, the three token buckets 13 and finally also will be overflowed, and unnecessary token is given second token bucket 12; When CF=0, unnecessary token directly give second token bucket token number that 12, the second token buckets 12 obtain greater than threshold value, will send the test frame that belongs to this EVC accordingly, test frame with the speed polishing of EVC passage to 500Mbps; As traffic frame 〉=400Mbps but<500Mbps, it is fast that the token consumption rate of first token bucket 11 adds, token will reduce to below the threshold value, at this moment will consume the token of the 3rd token bucket 13, but the 3rd token bucket 13 adds the fast of specific consumption, continues to be added to and overflows when giving second token bucket token number that 12, the second token buckets 12 obtain greater than threshold value, can corresponding send the test frame that belongs to this EVC, test frame with the speed polishing of EVC passage to 500Mbps; When traffic frame 〉=500Mbps, it is fast that the token consumption rate of first token bucket 11, the 3rd token bucket 13 adds, and token will reduce to below the threshold value, second token bucket 12 can not get any token, do not have test frame to send, the EVC channel rate remains 500Mbp, and final test effect as shown in Figure 8.
In such scheme, EVC passage bandwidth availability ratio at any time all can reach 100%, the test traffic bandwidth is dynamically adjusted according to service bandwidth: whole transport services when service bandwidth takes, and test transmission business when business has the space is all distributed to test service and is used when not having business; Whole network architecture does not increase any new hardware, interface or equipment for monitor network performance and quality.
Edge access network network with Metro Ethernet is an example below, introduces an application scenarios of the present invention.
The main network equipment of edge access network is switch (S) and router (R), every switch and router can have follows professional test module to realize the real-time monitoring to network quality, this module and packet filtering module (FFP) function merge the transmission that realizes test frame, the most of switching equipment of industry all has the FFP function, the FFP function realizes professional bandwidth profile with the conventional token bucket algorithm, the TEST module realizes on this basis, the change that the equipment scheme structure is not done substantially, realize simple, it is few to take logical resource, realize better function with minimum cost, make equipment more competitive, can better adapt to the network operation pattern of continual renovation.
The purpose of following professional test module (TEST) design is exactly to send test pack to obtain performance parameters such as network frame time-delay, LOF, throughput in real time under the state of professional unaware, assist to find fast and accurately the congestion point of flow, also can assist the fault point of fixer network simultaneously.
The professional test module of following in the case study on implementation is finished two big functions, and the one, accurately measure the real time rate of regular traffic; The 2nd, dynamically adjust the test traffic transmission rate according to the general traffics real time rate, regular traffic is had no effect.Use the effective supervisory network quality of switching equipment of the present invention, strengthen analysis ability, promoted the utilance of link bandwidth simultaneously network traffics.
The present invention is not limited to above-mentioned preferred forms, and anyone should learn the structural change of making under enlightenment of the present invention, and every have identical or close technical scheme with the present invention, all falls within protection scope of the present invention.

Claims (8)

  1. The Ethernet service unaware follow method of testing, it is characterized in that, may further comprise the steps:
    Calculate the idle bandwidth of link by first group of token bucket;
    Transmission rate by second group of token bucket control test traffic is used for idle bandwidth the transmission of test traffic.
  2. 2. the method for claim 1 is characterized in that,
    Described first group of token bucket comprises first token bucket, and described second group of token bucket comprises second token bucket, when traffic frame arrives, carries out mark according to following condition:
    If the current token quantity of first token bucket is more than or equal to its threshold value, then the described traffic frame of mark is green bag, is labeled as the token that the traffic frame consumption of green bag equates with its frame length;
    If the current token quantity of first token bucket is less than its threshold value, then the described traffic frame of mark is a red packet, and the traffic frame that is labeled as red packet does not consume token;
    When first token bucket was filled token, unnecessary token was sent to second token bucket, when the current token quantity of second token bucket begins to send test frame during greater than its threshold value, when the current token quantity of second token bucket stops to send test frame during smaller or equal to its threshold value.
  3. 3. method as claimed in claim 2 is characterized in that, when committed information rate CIR refreshes when constantly arriving, the current token quantity of first token bucket and second token bucket is upgraded in the following manner:
    If the current token quantity of first token bucket is greater than committed burst size CBS1, the current token quantity=CBS1 of first token bucket then, unnecessary token is sent to second token bucket, token number+the CIR of current token quantity=its previous moment of second token bucket refreshes the token number, and CIR refreshes the token number and draws according to the concrete numerical computations that CIR is provided with;
    If the current token quantity of first token bucket is smaller or equal to CBS1, then token number+the CIR of current token quantity=its previous moment of first token bucket refreshes the token number, the token number of current token quantity=its previous moment of second token bucket.
  4. 4. the method for claim 1 is characterized in that, described first group of token bucket comprises first token bucket and the 3rd token bucket, and described second group of token bucket comprises second token bucket, when traffic frame arrives, according to the described traffic frame of following condition flag:
    If the current token quantity of first token bucket is more than or equal to its threshold value, then the described traffic frame of mark is green bag, and the traffic frame that is labeled as green bag consumes the token that equates with its frame length in first token bucket;
    If the current token quantity of first token bucket is less than its threshold value, and the current token quantity of the 3rd token bucket is more than or equal to its threshold value, and then the described traffic frame of mark is yellow bag, and the traffic frame that is labeled as yellow bag consumes the token that equates with its frame length in the 3rd token bucket;
    If the current token quantity of first token bucket is less than its threshold value, and the current token quantity of the 3rd token bucket is less than its threshold value, and then the described traffic frame of mark is a red packet, and the traffic frame that is labeled as red packet does not consume token;
    When first token bucket is filled token, if the coupling of first token bucket and the 3rd token bucket is labeled as 1 then unnecessary token is sent to the 3rd token bucket; If described coupling is labeled as 0 then unnecessary token is sent to second token bucket; When the 3rd token bucket was filled token, unnecessary token was sent to second token bucket.
  5. 5. method as claimed in claim 4 is characterized in that,
    When refreshing of CIR arrived constantly, the token number+CIR of current token quantity=its previous moment of first token bucket refreshed the token number, and CIR refreshes the token number and calculated by CIR;
    When peak information rate EIR refreshes when constantly arriving, the token number+EIR of current token quantity=its previous moment of the 3rd token bucket refreshes the token number, and EIR refreshes the token number and calculated by EIR.
  6. The Ethernet service unaware follow testing apparatus, it is characterized in that, comprising:
    First group of token bucket calculates the idle bandwidth of link;
    Second group of token bucket, the transmission rate of control test traffic is used for idle bandwidth the transmission of test traffic.
  7. 7. device as claimed in claim 6 is characterized in that, described first group of token bucket comprises first token bucket, and described second group of token bucket comprises second token bucket, when traffic frame arrives, carries out mark according to following condition:
    If the current token quantity of first token bucket is more than or equal to its threshold value, then the described traffic frame of mark is green bag, is labeled as the token that the traffic frame consumption of green bag equates with its frame length;
    If the current token quantity of first token bucket is less than its threshold value, then the described traffic frame of mark is a red packet, and the traffic frame that is labeled as red packet does not consume token;
    When first token bucket was filled token, unnecessary token was sent to second token bucket, when the current token quantity of second token bucket begins to send test frame during greater than its threshold value, when the current token quantity of second token bucket stops to send test frame during smaller or equal to its threshold value.
  8. 8. device as claimed in claim 6 is characterized in that, described first group of token bucket comprises first token bucket and the 3rd token bucket, and described second group of token bucket comprises second token bucket, when traffic frame arrives, according to the described traffic frame of following condition flag:
    If the current token quantity of first token bucket is more than or equal to its threshold value, then the described traffic frame of mark is green bag, and the traffic frame that is labeled as green bag consumes the token that equates with its frame length in first token bucket;
    If the current token quantity of first token bucket is less than its threshold value, and the current token quantity of the 3rd token bucket is more than or equal to its threshold value, and then the described traffic frame of mark is yellow bag, and the traffic frame that is labeled as yellow bag consumes the token that equates with its frame length in the 3rd token bucket;
    If the current token quantity of first token bucket is less than its threshold value, and the current token quantity of the 3rd token bucket is less than its threshold value, and then the described traffic frame of mark is a red packet, and the traffic frame that is labeled as red packet does not consume token;
    When first token bucket was filled token, if the coupling of first token bucket and the 3rd token bucket is labeled as 1, then unnecessary token was sent to the 3rd token bucket; If described coupling is labeled as 0, then unnecessary token is sent to second token bucket; When the 3rd token bucket was filled token, unnecessary token was sent to second token bucket.
CN201310198176.8A 2013-05-24 2013-05-24 Ethernet service unaware follow method of testing and device Active CN103227739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310198176.8A CN103227739B (en) 2013-05-24 2013-05-24 Ethernet service unaware follow method of testing and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310198176.8A CN103227739B (en) 2013-05-24 2013-05-24 Ethernet service unaware follow method of testing and device

Publications (2)

Publication Number Publication Date
CN103227739A true CN103227739A (en) 2013-07-31
CN103227739B CN103227739B (en) 2016-05-04

Family

ID=48838008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310198176.8A Active CN103227739B (en) 2013-05-24 2013-05-24 Ethernet service unaware follow method of testing and device

Country Status (1)

Country Link
CN (1) CN103227739B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618184A (en) * 2015-01-22 2015-05-13 北京奥普维尔科技有限公司 Ethernet type private wire network side parameter analysis system and method
CN113411269A (en) * 2021-07-07 2021-09-17 杭州网易云音乐科技有限公司 Current limiting control method, current limiting control device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227410A (en) * 2008-02-03 2008-07-23 杭州华三通信技术有限公司 Flow monitoring method and flow monitoring equipment
CN101478494A (en) * 2009-02-16 2009-07-08 中兴通讯股份有限公司 Data packet processing method and apparatus based on token barrel algorithm
US20100260044A1 (en) * 2009-04-08 2010-10-14 Eden Rock Communications, Llc Systems and methods for hybrid rate limiting based on data bit count and data packet count
CN102014075A (en) * 2010-12-21 2011-04-13 杭州华三通信技术有限公司 Traffic policing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227410A (en) * 2008-02-03 2008-07-23 杭州华三通信技术有限公司 Flow monitoring method and flow monitoring equipment
CN101478494A (en) * 2009-02-16 2009-07-08 中兴通讯股份有限公司 Data packet processing method and apparatus based on token barrel algorithm
US20100260044A1 (en) * 2009-04-08 2010-10-14 Eden Rock Communications, Llc Systems and methods for hybrid rate limiting based on data bit count and data packet count
CN102014075A (en) * 2010-12-21 2011-04-13 杭州华三通信技术有限公司 Traffic policing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618184A (en) * 2015-01-22 2015-05-13 北京奥普维尔科技有限公司 Ethernet type private wire network side parameter analysis system and method
CN104618184B (en) * 2015-01-22 2017-12-12 北京奥普维尔科技有限公司 Ether class private line network side parametric analysis system and method
CN113411269A (en) * 2021-07-07 2021-09-17 杭州网易云音乐科技有限公司 Current limiting control method, current limiting control device, storage medium and electronic equipment
CN113411269B (en) * 2021-07-07 2022-05-17 杭州网易云音乐科技有限公司 Current limiting control method, current limiting control device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN103227739B (en) 2016-05-04

Similar Documents

Publication Publication Date Title
CN102014075B (en) Traffic policing method and device
EP2575329B1 (en) Proportional bandwidth sharing of the excess part in a MEF Traffic Profile
EP3029896B1 (en) Qos implementation method, apparatus and system in openflow network
CN103294521B (en) A kind of method reducing data center's traffic load and energy consumption
WO2014173367A2 (en) Qos implementation method, system, device and computer storage medium
CN104836750B (en) A kind of data center network stream scheduling method based on round-robin
CN101478491A (en) Method and apparatus for implementing packet differential service
CN101692648B (en) Method and system for queue scheduling
CN107094122A (en) A kind of method and system of the adjust automatically network bandwidth
RU2012155863A (en) METHOD AND MANAGEMENT SYSTEM OF THE BANDBAND
CN102469019B (en) Device and method for allocating aggregated link bandwidth in packet-switched network
US20120224480A1 (en) Technique for throughput control for packet switches
CN105071992A (en) Method for predicting power distribution/utilization service communication bandwidth of transformer substation
EP2797270A2 (en) A method and system of transmission management in a network
KR20130093702A (en) Packet transport system and traffic management method thereof
CN103227739A (en) Ethernet service-unaware companion test method and device
US8923330B2 (en) Using dynamic burst size metric to mark data
US20120327768A1 (en) System and Method for Dynamic Rate Limiting and Shaping of Traffic Based on Available Bandwidth
CN114363739A (en) Service application method and device based on optical service unit
CN106411772B (en) Network traffic load equalization methods based on SDN
US7535843B2 (en) Method, apparatus and system for granular policing based on multiple arrival curves
CN105337873B (en) MSTP networking method for distributing business and device
WO2004062195A1 (en) A method for distributing dynamic liink bandwith for resilient packet ring
CN102638401B (en) Bandwidth allocation method of differentiated service system structure network
CN106961397B (en) The optical path method for building up and system of power distribution communication net

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20170331

Address after: 430000 East Lake high tech Development Zone, Hubei Province, No. 6, No., high and new technology development zone, No. four

Patentee after: Fenghuo Communication Science &. Technology Co., Ltd.

Address before: East Lake high tech city of Wuhan province Hubei Dongxin road 430074 No. 5 on the third floor of the Kanto optical communication industry building in Wuhan Fenghuo Network Co Ltd

Patentee before: Wuhan Fenghuo Network Co., Ltd.

TR01 Transfer of patent right