Method and apparatus for adding token in traffic shaping

US2016380903A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2016380903-A1
Application numberUS-201415107771-A
CountryUS
Kind codeA1
Filing dateMay 20, 2014
Priority dateDec 25, 2013
Publication dateDec 29, 2016
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method and an apparatus for adding tokens in traffic shaping are provided. According to the method, a weight of each data stream is configured, and each data stream is added to corresponding token schedulers based on the weight of the each data stream. Based on a weight of each token scheduler, each token scheduler is sequentially added to corresponding token scheduler groups, and all the token scheduler groups are aggregated into a token scheduler of a total data stream. The token scheduler of the total data stream is added to a top token scheduler. Based on a preset cycle, a token is assigned to the token scheduler of the total data stream in the top token scheduler, and the assigned token is delivered to each token scheduler group or to a respective data stream.

First claim

Opening claim text (preview).

1 . A method for adding a token in traffic shaping, comprising: configuring a weight of each data stream, and adding respective data stream into a corresponding token scheduler according to the weight of each data stream; adding respective token scheduler into a corresponding token scheduler group sequentially according to a weight of each token scheduler, and aggregating all the token scheduler groups into a total data stream token scheduler; adding the total data stream token scheduler into a top token scheduler; and assigning tokens to the total data stream token scheduler in the top token scheduler according to a preset period, and issuing the assigned tokens by the top token scheduler to respective token scheduler groups, or to respective data streams. 2 . The method of claim 1 , wherein the configuring the weight of each data stream comprises: configuring a shaping rate of each data stream, and converting the shaping rate into the weight corresponding to respective data stream. 3 . The method of claim 1 , wherein before the configuring the weight of each data stream, the method comprises: configuring the shaping rate of a current idle stream to be a maximum rate, and converting the shaping rate of the idle stream into the weight. 4 . The method of claim 1 , wherein before the assigning the tokens to the total data stream token scheduler in the top token scheduler according to the preset period, and issuing the assigned tokens by the top token scheduler to respective token scheduler groups, or to respective data stream, the method further comprise: determining whether the weight of the total data stream is greater than or equal to a preset system maximum weight; when the result of the determination is yes, increasing a number of the tokens issued within each period by a designated value to obtain an adjusted number of tokens issued within each period, calculating a weight adjusting coefficient of the total data stream according to the number of the tokens issued within each period, and multiplying the weight adjusting coefficient by an original weight of the total data stream so as to obtain an adjusted weight of the total data stream. 5 . The method of claim 4 , wherein the increasing the number of the tokens issued within each period by the designated value to obtain the adjusted number of tokens issued within each period comprises: adding the number of the tokens issued within each period by 1, so as to obtain the adjusted number of the tokens within each period; and wherein the calculating the weight adjusting coefficient of the total data stream according to the number of the tokens issued within each period comprises: using a ratio between the number of the tokens issued within each period and the adjusted number of the tokens issued within each period as the weight adjusting coefficient. 6 . The method of claim 4 , wherein the assigning the tokens to the total data stream token scheduler in the top token scheduler according to the preset period, and issuing the assigned tokens by the top token scheduler to respective token scheduler groups, or to respective data stream comprises: determining whether the tokens are issued to the idle stream or to the total data stream in a current period according to a service period pointer of the top token scheduler; when it is determined that the tokens are issued to the idle stream, calculating a next service period pointer of the idle stream according to the weight of the idle stream; when it is determined that the tokens are issued to the total data stream, calculating a next service period pointer corresponding to the total data stream according to the weight of the total data stream, sending the tokens to a lower scheduler of the total data stream, using the lower scheduler as the current layer scheduler, and determining whether the current layer scheduler is hooked to the data stream; when the result of the determination is yes, adding a corresponding number of tokens into a token bucket of the data stream, and calculating a next service period pointer of the data stream according to the weight of the data stream, and terminating the present distribution of the tokens; when the result of the determination is no, calculating the next service period pointer of the current layer token scheduler according to the current layer token scheduler. 7 . The method of claim 1 , wherein before the assigning the tokens to the total data stream token scheduler in the top token scheduler according to the preset period, the method further comprises: generating a plurality of tokens. 8 . An apparatus for adding a token in traffic shaping, comprising: a configuration module, a bandwidth allocation module, a distribution module, and an information storage module, wherein the configuration module is configured to: configure a weight of each data stream, and add respective data stream into a corresponding token scheduler according to the weight of each data stream; add respective token scheduler into a corresponding token scheduler group sequentially according to a weight of each token scheduler, and aggregate all the token scheduler groups into a total data stream token scheduler; add the total data stream token scheduler into a top token scheduler; and save the weights of respective data streams into the information storage module; the bandwidth allocation module is configured to: assign tokens to the total data stream token scheduler in the top token scheduler according to a preset period, and send the assigned tokens to the distribution module; the distribution module is configured to issue the tokens to respective token scheduler groups or to respective data streams; and the information storage module is configured to save the weights of respective data stream. 9 . The apparatus of claim 8 , wherein the configuration module is further configured to configure a shaping rate of each data stream, and convert the shaping rate into the weight corresponding to respective data stream. 10 . The apparatus of claim 8 , further comprising: an idle stream module configured to configure a shaping rate of a current idle stream to be a maximum rate, and convert the shaping rate of the idle stream into the weight. 11 . The apparatus of claim 8 , wherein the configuration module is further configured to: determine whether the weight of the total data stream is greater than or equal to a preset system maximum weight; and when the result of the determination is yes, increase the number of the tokens issued within each period by a designated value to obtain the adjusted number of tokens issued within each period, calculate a weight adjusting coefficient of the total data stream according to the number of the tokens issued within each period, and multiply the weight adjusting coefficient by the weight of the original total data stream so as to obtain the adjusted weight of the total data stream. 12 . The apparatus of claim 11 , wherein the configuration module is further configured to: add the number of the tokens issued in each period by 1, so as to obtain the adjusted number of the tokens within each period; and use a ratio between the number of the tokens issued within each period and the adjusted number of the tokens issued within each period as the weight adjusting coefficient. 13 . The apparatus of claim 11 , wherein the bandwidth allocation module is further configured to: determine whether the token is issued to the idle stream or to the total data stream in the current period according to a service period pointer of the top token scheduler; when it is determined that the toke

Assignees

Inventors

Classifications

  • H04L47/527Primary

    Quantum based scheduling, e.g. credit or deficit based scheduling or token bank · CPC title

  • Traffic shaping · CPC title

  • Traffic characterised by specific attributes, e.g. priority or QoS · CPC title

  • Hybrid transport · CPC title

  • Ensuring fair share of resources, e.g. weighted fair queuing [WFQ] · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2016380903A1 cover?
A method and an apparatus for adding tokens in traffic shaping are provided. According to the method, a weight of each data stream is configured, and each data stream is added to corresponding token schedulers based on the weight of the each data stream. Based on a weight of each token scheduler, each token scheduler is sequentially added to corresponding token scheduler groups, and all the tok…
Who is the assignee on this patent?
Zte Corp
What technology area does this patent fall under?
Primary CPC classification H04L47/527. Mapped technology areas include Electricity.
When was this patent published?
Publication date Thu Dec 29 2016 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).