CN103026671A - Traffic shaping method and device - Google Patents
Traffic shaping method and device Download PDFInfo
- Publication number
- CN103026671A CN103026671A CN2011800014901A CN201180001490A CN103026671A CN 103026671 A CN103026671 A CN 103026671A CN 2011800014901 A CN2011800014901 A CN 2011800014901A CN 201180001490 A CN201180001490 A CN 201180001490A CN 103026671 A CN103026671 A CN 103026671A
- Authority
- CN
- China
- Prior art keywords
- transmit queue
- time
- token
- bucket
- flow
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/22—Traffic shaping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/21—Flow control; Congestion control using leaky-bucket
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
Claims (1)
- Claims1st, a kind of method of traffic shaping, it is characterised in that methods described includes:First packet goes out team from transmit queue;According to the very first time, the second time and the bandwidth set in advance for the transmit queue, refresh the corresponding token bucket of the transmit queue or leaky bucket, wherein, the very first time is the time that first packet goes out team from the transmit queue, second time is the time that the second packet goes out team from the transmit queue, second packet is that first packet goes out before team from the transmit queue, and the last time goes out the packet of team.2nd, the method as described in claim 1, it is characterised in that refresh the corresponding token bucket of the transmit queue according to the very first time, the second time and in advance for the bandwidth that the transmit queue is set, including:Calculate the time difference of the very first time and the second time;The bandwidth set according to the time difference and in advance for the transmit queue, calculating needs the token amount to the corresponding token bucket addition of the transmit queue;According to the token amount added to the corresponding token bucket of the transmit queue the need for described calculate, token is added to the corresponding token bucket of the transmit queue, to refresh the corresponding token bucket of the transmit queue.3rd, method as claimed in claim 2, it is characterised in that refresh according to the very first time, the second time and in advance for the bandwidth that the transmit queue is set after the corresponding token bucket of the transmit queue, in addition to:According to the first token amount, the second token amount and the 3rd token amount calculate the token amount after the corresponding token bucket of the transmit queue is refreshed;Wherein, the first token amount is that the first packet goes out before team from the transmit queue, the token amount in the corresponding token bucket of the transmit queue;The second token amount be the first packet from the transmit queue go out group when, the token amount subtracted from the corresponding token bucket of the transmit queue;The 3rd token amount is the token amount for needing to add to the corresponding token bucket of the transmit queue.4th, method as claimed in claim 3, it is characterised in that it is described calculate the token amount after the corresponding token bucket of the transmit queue is refreshed after, in addition to:If the token amount after the corresponding token bucket of the transmit queue is refreshed is less than default first threshold, the dispatch state of the transmit queue is set to the state of non-scheduling, and the dispatch state of the transmit queue is set after a preset amount of time For the state of schedulable.5th, the method as described in claim 3 or 4, it is characterised in that it is described calculate the token amount stored after the corresponding token bucket of the transmit queue is refreshed after, in addition to:The numerical value of token amount after being refreshed using the corresponding token bucket of the transmit queue calculated, updates first token6th, the method as described in claim 1, it is characterised in that refresh the corresponding leaky bucket of the transmit queue according to the very first time, the second time and in advance for the bandwidth that the transmit queue is set, including:Calculate the time difference of the very first time and the second time;The bandwidth set according to the time difference and in advance for the transmit queue, calculates the flow for needing to be subtracted from the corresponding leaky bucket of the transmit queue;The flow calculated is subtracted from the corresponding leaky bucket of the transmit queue, to refresh the corresponding leaky bucket of the transmit queue.7th, method as claimed in claim 6, it is characterised in that refresh according to the very first time, the second time and in advance for the bandwidth that the transmit queue is set after the corresponding leaky bucket of the transmit queue, in addition to:According to first flow, second flow and the 3rd flow, calculate the stream after the corresponding leaky bucket of the transmit queue is refreshed wherein, the first flow is that the first packet goes out before team from the transmit queue, the flow in the corresponding leaky bucket of the transmit queue;The second flow be the first packet from the transmit queue go out group when, the flow added into the corresponding leaky bucket of the transmit queue;3rd flow is the flow for needing to subtract from the corresponding leaky bucket of the transmit queue.8th, method as claimed in claim 7, it is characterised in that it is described calculate the flow after the corresponding leaky bucket of the transmit queue is refreshed after, in addition to:If the flow after the corresponding leaky bucket of the transmit queue is refreshed is more than default Second Threshold, the dispatch state of the transmit queue is then set to the state of non-scheduling, and the dispatch state of the transmit queue is set to the state of schedulable after a preset amount of time.9th, method as claimed in claim 7 or 8, it is characterised in that it is described calculate the flow stored after the corresponding leaky bucket of the transmit queue is refreshed after, in addition to: The numerical value of flow after being refreshed using the corresponding leaky bucket of the transmit queue calculated, updates the first flow.10th, the method as described in claim 1, it is characterised in that refresh according to the very first time, the second time and in advance for the bandwidth that the transmit queue is set after the corresponding token bucket of the transmit queue or leaky bucket, in addition to:Using the numerical value of the very first time, second time is updated.11st, a kind of equipment of traffic shaping, it is characterised in that the equipment include-goes out group module, for the first packet to be gone out into team from transmit queue;Refresh module, for refreshing the corresponding token bucket of the transmit queue or leaky bucket according to the very first time, the second time and in advance for the bandwidth that the transmit queue is set, wherein, the very first time is the time that first packet goes out team from the transmit queue, second time is the time that the second packet goes out team from the transmit queue, second packet is that first packet goes out before team from the transmit queue, and the last time goes out the packet of team.12nd, equipment as claimed in claim 11, it is characterised in that the refresh module includes:First computing unit, the time difference for calculating the very first time and the second time;Second computing unit, for calculating the token amount for needing to add to the corresponding token bucket of the transmit queue according to the time difference and in advance for the bandwidth meter of transmit queue setting;First refresh unit, for according to the token amount calculated to the corresponding token bucket addition token of the transmit queue, to refresh the corresponding token bucket of the transmit queue.13rd, equipment as claimed in claim 12, it is characterised in that the equipment also includes:First computing module, for according to the first token amount, the second token amount and the 3rd token amount, calculating the token amount after the corresponding token bucket of the transmit queue is refreshed;Wherein, the first token amount is that the first packet goes out before team from the transmit queue, the token amount in the corresponding token bucket of the transmit queue;The second token amount be the first packet from the transmit queue go out group when, the token amount subtracted from the corresponding token bucket of the transmit queue;The 3rd token amount is the token amount for needing to add to the corresponding token bucket of the transmit queue.14th, equipment as claimed in claim 13, it is characterised in that the equipment also includes:First setup module, if the token amount after being refreshed for the corresponding token bucket of the transmit queue is less than default first threshold, the dispatch state of the transmit queue is set to the state of non-scheduling, and sent after a preset amount of time by described The dispatch state of queue is set to the state of schedulable;And/orFirst update module, for being refreshed using the corresponding token bucket of the transmit queue that calculates after token amount numerical value, update the first token amount.15th, equipment as claimed in claim 11, it is characterised in that the refresh module includes:3rd computing unit, the time difference for calculating the very first time and the second time;4th computing unit, for the bandwidth set according to the time difference and in advance for the transmit queue, calculates the flow for needing to be subtracted from the corresponding leaky bucket of the transmit queue;Second refresh unit, for subtracting the flow calculated from the corresponding leaky bucket of the transmit queue, to refresh the corresponding leaky bucket of the transmit queue.16th, equipment as claimed in claim 15, it is characterised in that the equipment also includes:Second computing module, for according to first flow, second flow and the 3rd flow, calculating the flow after the corresponding leaky bucket of the transmit queue is refreshed;Wherein, the first flow is that the first packet goes out before team from the transmit queue, the flow in the corresponding leaky bucket of the transmit queue;The second flow be the first packet from the transmit queue go out group when, the flow added into the corresponding leaky bucket of the transmit queue;3rd flow is the flow for needing to subtract from the corresponding leaky bucket of the transmit queue.17th, equipment as claimed in claim 16, it is characterised in that the equipment also includes:Second setup module, if the flow after being refreshed for the corresponding leaky bucket of the transmit queue is more than default Second Threshold, the dispatch state of the transmit queue is then set to the state of non-scheduling, and the dispatch state of the transmit queue is set to the state of schedulable after a preset amount of time;And/orSecond update module, for being refreshed using the corresponding leaky bucket of the transmit queue that calculates after flow numerical value, update the first flow.18th, equipment as claimed in claim 11, it is characterised in that the equipment also includes:3rd update module, for the numerical value using the very first time, updates second time.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/077884 WO2012159362A1 (en) | 2011-08-01 | 2011-08-01 | Traffic shaping method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103026671A true CN103026671A (en) | 2013-04-03 |
CN103026671B CN103026671B (en) | 2016-01-20 |
Family
ID=47216586
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201180001490.1A Active CN103026671B (en) | 2011-08-01 | 2011-08-01 | A kind of method and apparatus of traffic shaping |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103026671B (en) |
WO (1) | WO2012159362A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110086728A (en) * | 2018-01-26 | 2019-08-02 | 华为技术有限公司 | Send method, first network equipment and the computer readable storage medium of message |
CN113067778A (en) * | 2021-06-04 | 2021-07-02 | 新华三半导体技术有限公司 | Flow management method and flow management chip |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104753809B (en) * | 2013-12-25 | 2019-04-02 | 深圳市中兴微电子技术有限公司 | The method and device of token is added in a kind of traffic shaping |
CN111045810B (en) * | 2019-12-17 | 2023-08-29 | 浙江大华技术股份有限公司 | Task scheduling processing method and device |
CN113645147B (en) * | 2021-07-01 | 2024-08-23 | 裕太微电子股份有限公司 | Token updating system and method of traffic shaper |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1525717A (en) * | 2003-02-25 | 2004-09-01 | ������������ʽ���� | Flow quantity truing method and apparatus |
CN1751481A (en) * | 2003-02-14 | 2006-03-22 | 西门子公司 | Method for allocating transmission bandwidth in a packet-oriented communications facility |
CN101005453A (en) * | 2006-12-26 | 2007-07-25 | 华为技术有限公司 | Method and device for refreshing token bucket in flow limiting technology |
US20090086634A1 (en) * | 2007-10-02 | 2009-04-02 | Bruce Kwan | Method and system for packet rate shaping |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217495A (en) * | 2008-01-11 | 2008-07-09 | 北京邮电大学 | Traffic monitoring method and device applied under T-MPLS network environment |
CN101841461B (en) * | 2010-02-11 | 2012-05-30 | 北京星网锐捷网络技术有限公司 | Method and device for controlling updating of token bucket |
-
2011
- 2011-08-01 CN CN201180001490.1A patent/CN103026671B/en active Active
- 2011-08-01 WO PCT/CN2011/077884 patent/WO2012159362A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1751481A (en) * | 2003-02-14 | 2006-03-22 | 西门子公司 | Method for allocating transmission bandwidth in a packet-oriented communications facility |
CN1525717A (en) * | 2003-02-25 | 2004-09-01 | ������������ʽ���� | Flow quantity truing method and apparatus |
CN101005453A (en) * | 2006-12-26 | 2007-07-25 | 华为技术有限公司 | Method and device for refreshing token bucket in flow limiting technology |
US20090086634A1 (en) * | 2007-10-02 | 2009-04-02 | Bruce Kwan | Method and system for packet rate shaping |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110086728A (en) * | 2018-01-26 | 2019-08-02 | 华为技术有限公司 | Send method, first network equipment and the computer readable storage medium of message |
CN110086728B (en) * | 2018-01-26 | 2021-01-29 | 华为技术有限公司 | Method for sending message, first network equipment and computer readable storage medium |
CN113067778A (en) * | 2021-06-04 | 2021-07-02 | 新华三半导体技术有限公司 | Flow management method and flow management chip |
Also Published As
Publication number | Publication date |
---|---|
CN103026671B (en) | 2016-01-20 |
WO2012159362A1 (en) | 2012-11-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103026671A (en) | Traffic shaping method and device | |
US8225026B2 (en) | Data packet access control apparatus and method thereof | |
EP2913963B1 (en) | Data caching system and method for an ethernet device | |
JP6077125B2 (en) | Data processing method and apparatus | |
CN107360591A (en) | A kind of method and apparatus of reporting buffer status report | |
CN103581055B (en) | The order-preserving method of message, flow scheduling chip and distributed memory system | |
WO2016086406A1 (en) | Network resource deployment method and device | |
CN105573711A (en) | Data caching methods and apparatuses | |
WO2011015055A1 (en) | Method and system for storage management | |
CN104268113B (en) | The lcd controller of DPI interfaces and the method for its adaptive bandwidth | |
CN107783727A (en) | A kind of access method of memory device, device and system | |
CN102571561B (en) | PWE3 device and method for reading and writing data in jitter buffer of device | |
CN102377678B (en) | Data transmission and processing method and device | |
CN102882809B (en) | Network speed-limiting method and device based on message buffering | |
WO2011014998A1 (en) | Method and apparatus for calculating the message arrival time interval | |
CN110058816A (en) | DDR-based high-speed multi-user queue manager and method | |
WO2012079423A1 (en) | Method and apparatus for data packet buffer management | |
CN102857333A (en) | Device and method for synchronizing data packet from sensor network | |
CN106060583B (en) | Cloud game delay process method and device | |
WO2013091368A1 (en) | Method and apparatus for allocating sounding reference signal resource | |
CN102932265B (en) | Data caching management device and method | |
CN109274697A (en) | Data frame escape method, data frame solution escape method, system and relevant apparatus | |
JP7506038B2 (en) | Method for data collection in a wireless mesh network and device for its implementation - Patents.com | |
CN108933768A (en) | The acquisition methods and device of the transmission frame per second of video frame | |
CN101883046A (en) | Data cache architecture applied to EPON terminal system |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201119 Address after: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. Effective date of registration: 20201119 Address after: 215500 No.13, Caotang Road, Changshu, Suzhou, Jiangsu Province Patentee after: Changshu intellectual property operation center Co.,Ltd. Address before: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd. |
|
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: 215500 5th floor, building 4, 68 Lianfeng Road, Changfu street, Changshu City, Suzhou City, Jiangsu Province Patentee after: Changshu intellectual property operation center Co.,Ltd. Address before: No.13 caodang Road, Changshu City, Suzhou City, Jiangsu Province Patentee before: Changshu intellectual property operation center Co.,Ltd. |