JP4998311B2 - Policer device and bandwidth control program - Google Patents

Policer device and bandwidth control program Download PDF

Info

Publication number
JP4998311B2
JP4998311B2 JP2008034500A JP2008034500A JP4998311B2 JP 4998311 B2 JP4998311 B2 JP 4998311B2 JP 2008034500 A JP2008034500 A JP 2008034500A JP 2008034500 A JP2008034500 A JP 2008034500A JP 4998311 B2 JP4998311 B2 JP 4998311B2
Authority
JP
Japan
Prior art keywords
policer
frame
resource
cycle
resources
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.)
Expired - Fee Related
Application number
JP2008034500A
Other languages
Japanese (ja)
Other versions
JP2009194705A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2008034500A priority Critical patent/JP4998311B2/en
Priority to US12/285,693 priority patent/US7864677B2/en
Publication of JP2009194705A publication Critical patent/JP2009194705A/en
Application granted granted Critical
Publication of JP4998311B2 publication Critical patent/JP4998311B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/31Flow control; Congestion control by tagging of packets, e.g. using discard eligibility [DE] bits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/253Routing or path finding in a switch fabric using establishment or release of connections between ports
    • H04L49/254Centralised controller, i.e. arbitration or scheduling

Description

本発明は、ポリサ装置および帯域制御プログラムに関し、特に、フレーム通過に消費されるリソースの供給タイミングがポリサごとに独立している場合でも、公平にフレームを通過させることができるポリサ装置および帯域制御プログラムに関する。   The present invention relates to a policer device and a bandwidth control program, and in particular, a policer device and a bandwidth control program capable of allowing a frame to pass evenly even when the supply timing of resources consumed for passing the frame is independent for each policer. About.

近年、例えばレイヤ2スイッチ(以下「L2スイッチ」という)などの中継装置においては、中継されるフレームに要求される品質によってフレーム中継の優先度を制御するQoS(Quality of Service)制御が行われることがある。このような中継装置には、例えば特許文献1に記載されるように、入力側でポリシングを行うポリサと出力側でシェーピングを行うシェーパとが設けられることがある。   In recent years, for example, in a relay device such as a layer 2 switch (hereinafter referred to as “L2 switch”), QoS (Quality of Service) control for controlling the priority of frame relay according to the quality required for the relayed frame is performed. There is. Such a relay apparatus may be provided with a policer that performs policing on the input side and a shaper that performs shaping on the output side, as described in Patent Document 1, for example.

図9は、ポリサおよびシェーパを備えた一般的なL2スイッチの概略構成を示すブロック図である。同図に示すL2スイッチは、n個(nは2以上の整数)のポートを備えており、それぞれのポートに対応するクラシファイ部10−1〜10−n、ポリサ20−1〜20−n、およびシェーパ40−1〜40−nを有している。   FIG. 9 is a block diagram illustrating a schematic configuration of a general L2 switch including a policer and a shaper. The L2 switch shown in the figure includes n ports (n is an integer equal to or greater than 2), classifying units 10-1 to 10-n, policers 20-1 to 20-n corresponding to the respective ports, And shapers 40-1 to 40-n.

L2スイッチの各ポートから入力される入力フレームは、クラシファイ部10−1〜10−nによって、優先度に応じたクラスに振り分けられ、ポリサ20−1〜20−nへ出力される。そして、フレームは、ポリサ20−1〜20−nによって帯域制御されてスイッチ部30へ出力される。このとき、ポリサ20−1〜20−nには、一般にトークンなどと呼ばれる帯域制御のためのリソースが所定周期で供給されており、各ポリサ20−1〜20−nは、このリソースを消費しながら蓄積されたリソースの範囲内でフレームを出力することにより、フレームのクラスに従った帯域制御を行っている。   Input frames input from each port of the L2 switch are assigned to classes according to priority by the classifying units 10-1 to 10-n and output to the policers 20-1 to 20-n. Then, the frame is band-controlled by the policers 20-1 to 20-n and output to the switch unit 30. At this time, resources for bandwidth control, generally called tokens, are supplied to the policers 20-1 to 20-n at a predetermined period, and each of the policers 20-1 to 20-n consumes this resource. However, band control according to the class of the frame is performed by outputting the frame within the range of the accumulated resources.

ポリサ20−1〜20−nから出力されたフレームは、スイッチ部30によって、フレームの宛先に応じたポートに対応するシェーパ40−1〜40−nへ出力され、シェーパ40−1〜40−nによって帯域制御された上で、各ポートから出力フレームとして出力される。   The frames output from the policers 20-1 to 20-n are output by the switch unit 30 to the shapers 40-1 to 40-n corresponding to the ports corresponding to the destinations of the frames, and the shapers 40-1 to 40-n are output. Is output as an output frame from each port.

特開2006−173726号公報JP 2006-173726 A

ところで、通常、中継装置内に設けられる複数のポリサには、それぞれ独立した周期で帯域制御のためのリソースが供給される。すなわち、例えば図9に示したL2スイッチにおいて、ポリサ20−1〜20−nには、それぞれ異なったタイミングでリソースが供給されることになる。加えて、いずれかのポリサからフレームが出力されると、他のポリサにおけるリソースも消費されるため、リソース供給タイミングの差によっては、常に一部のポリサのみがフレームを通過させることになるという問題がある。   By the way, normally, a plurality of policers provided in the relay apparatus are supplied with resources for bandwidth control at independent periods. That is, for example, in the L2 switch shown in FIG. 9, resources are supplied to the policers 20-1 to 20-n at different timings. In addition, when a frame is output from one of the policers, resources in other policers are also consumed. Therefore, depending on the difference in resource supply timing, only some policers always pass the frame. There is.

具体的には、例えば図9において、ポリサ20−1に対するリソース供給タイミングが他のポリサ20−2〜20−nに対するリソース供給タイミングより早い場合、ポリサ20−1は、他のポリサ20−2〜20−nに対するリソース供給タイミングより前にリソースを独占することになる。そして、リソースを独占する間にポリサ20−1が大量にリソースを消費すれば、ポリサ20−2〜20−nに対するリソース供給タイミング前に、ポリサ20−2〜20−nにおけるリソース量が0未満に低下し、リソース供給タイミングにおいてリソースが供給されてもポリサ20−2〜20−nにおけるリソース量が0以上まで回復しなければ、ポリサ20−2〜20−nがフレームを通過させることはできない。   Specifically, for example, in FIG. 9, when the resource supply timing for the policer 20-1 is earlier than the resource supply timing for the other policers 20-2 to 20-n, the policer 20-1 The resource is monopolized before the resource supply timing for 20-n. If the policer 20-1 consumes a large amount of resources while monopolizing resources, the resource amount in the policers 20-2 to 20-n is less than 0 before the resource supply timing to the policers 20-2 to 20-n. Even if the resource is supplied at the resource supply timing, the policer 20-2 to 20-n cannot pass the frame unless the resource amount in the policer 20-2 to 20-n is recovered to 0 or more. .

その後、ポリサ20−1に対する次のリソース供給タイミングが到来すると、再びポリサ20−1がリソースを独占してフレームを通過させ、他のポリサ20−2〜20−nが消費可能なリソースが枯渇してしまう。そして、リソースの枯渇により、ポリサ20−2〜20−nは、フレームを廃棄せざるを得ない一方で、ポリサ20−1は、リソースを独占して次々に新たなフレームを通過させることになる。   Thereafter, when the next resource supply timing for the policer 20-1 arrives, the policer 20-1 again monopolizes the resources and passes the frame, and the resources that can be consumed by the other policers 20-2 to 20-n are depleted. End up. Then, due to the resource depletion, the policers 20-2 to 20-n are forced to discard the frames, while the policers 20-1 monopolize the resources and pass new frames one after another. .

このように、各ポリサに対するリソース供給タイミングが独立しているため、フレームの通過に関して公平性が保証されておらず、たとえフレームを送信するユーザが通信サービス事業者に対して同一料金を支払っていても、中継装置において同一の帯域が確保されないことがある。   Thus, since the resource supply timing for each policer is independent, the fairness is not guaranteed for the passage of frames, and even if the user who transmits the frame pays the same fee to the communication service provider However, the same band may not be secured in the relay device.

本発明はかかる点に鑑みてなされたものであり、フレーム通過に消費されるリソースの供給タイミングがポリサごとに独立している場合でも、公平にフレームを通過させることができるポリサ装置および帯域制御プログラムを提供することを目的とする。   The present invention has been made in view of the above points, and a policer device and a bandwidth control program capable of allowing a frame to pass evenly even when the supply timing of resources consumed for passing the frame is independent for each policer. The purpose is to provide.

上記課題を解決するために、本発明に係るポリサ装置は、自装置に固有のリソース供給タイミング間の各周期において自装置および他のポリサ装置のそれぞれがフレームを通過させたか否かを示す通過情報を記憶する記憶手段と、自装置または他のポリサ装置がフレームを通過させる際に消費されるリソースの蓄積量の変化を管理する管理手段と、前記記憶手段によって記憶された通過情報および前記管理手段によって管理されたリソース蓄積量の変化の少なくともいずれか一方に基づいて、次回のリソース供給タイミング後の次周期において自ポリサのフレーム通過を許容するか否かを決定する決定手段と、前記決定手段による決定に従って、自装置に入力されたフレームをリソース供給タイミング間の各周期において出力する出力手段とを有する構成を採る。   In order to solve the above-described problem, the policer device according to the present invention includes passage information indicating whether or not each of the own device and the other policer device has passed a frame in each period between resource supply timings unique to the own device. Storage means for storing, management means for managing changes in the amount of resources consumed when the own apparatus or another policer apparatus passes frames, passage information stored by the storage means, and the management means A determination means for determining whether or not to allow the passage of a frame of the own policer in the next cycle after the next resource supply timing based on at least one of the changes in the resource accumulation amount managed by Output means for outputting a frame input to the own device in each cycle between resource supply timings according to the determination; A configuration with.

この構成によれば、リソース供給タイミング間の周期ごとに、リソース蓄積量の変化または通貨情報に基づいて、次周期において自ポリサのフレーム通過を許容するか否かを決定するため、今周期中にフレームを通過させてリソースを消費したポリサは、次周期で他のポリサにリソースを譲ることができる。結果として、フレーム通過に消費されるリソースの供給タイミングがポリサごとに独立している場合でも、公平にフレームを通過させることができる。   According to this configuration, for each period between resource supply timings, it is determined whether or not to allow the policer to pass the frame in the next period based on a change in the amount of accumulated resources or currency information. A policer that has consumed resources by passing a frame can yield resources to another policer in the next period. As a result, even when the supply timing of resources consumed for frame passing is independent for each policer, the frame can be passed through fairly.

また、本発明に係るポリサ装置は、上記構成において、前記決定手段は、現時点を含む今周期中に前記出力手段によってフレームが出力された場合、次周期において自装置のフレーム通過を許容しないと決定する構成を採る。   In the policer device according to the present invention, in the above configuration, the determination unit determines that the frame of the own device is not allowed in the next cycle when a frame is output by the output unit during the current cycle including the present time. The structure to do is taken.

この構成によれば、今周期中にフレームを通過させたポリサは、次周期において自ポリサのフレーム通過を許容しないと決定するため、次周期においては、たとえ消費可能なリソースがあっても、自ポリサは、他のポリサにリソースを譲ることができる。   According to this configuration, the policer that has passed the frame during the current cycle determines that the frame of the own policer is not allowed in the next cycle. Policers can give resources to other policers.

また、本発明に係るポリサ装置は、上記構成において、前記決定手段は、前記記憶手段によって記憶された通過情報が、今周期以前の所定数の周期中にすべてのポリサ装置がフレームを通過させたことを示す場合、今周期中に前記出力手段によってフレームが出力されても、次周期において自装置のフレーム通過を許容すると決定する構成を採る。   In the policer device according to the present invention, in the configuration described above, the determination unit causes the passage information stored in the storage unit to pass all frames during a predetermined number of cycles before the current cycle. In this case, even if a frame is output by the output means during the current period, a configuration is adopted in which it is determined that the frame passing of the own apparatus is permitted in the next period.

この構成によれば、今周期までにすべてのポリサがフレームを通過させていれば、今周期中にフレームを通過させたか否かに関わらず、次周期において自ポリサのフレーム通過が許容される。このため、すべてのポリサが既に公平にフレームを通過させていれば、自ポリサが不要にフレームの通過を停止することがない。   According to this configuration, if all policers have passed a frame by the current cycle, the frame of the own policer is permitted in the next cycle regardless of whether or not the frame has been passed during the current cycle. For this reason, if all policers have already passed the frame fairly, the own policer will not stop passing the frame unnecessarily.

また、本発明に係るポリサ装置は、上記構成において、前記決定手段は、前回のリソース供給タイミング前の前周期末において前記管理手段によって管理されるリソース蓄積量が0以上であった場合、今周期中に前記出力手段によってフレームが出力されても、次周期において自装置のフレーム通過を許容すると決定する構成を採る。   In the policer apparatus according to the present invention, in the configuration described above, the determination unit determines that the current period is less than 0 when the resource accumulation amount managed by the management unit is 0 or more at the end of the previous period before the previous resource supply timing. Even if a frame is output by the output means, a configuration is adopted in which it is determined that the frame of the own apparatus is allowed in the next period.

この構成によれば、前周期末にリソースが余っていれば、今周期中にフレームを通過させたか否かに関わらず、次周期において自ポリサのフレーム通過が許容される。このため、そもそも通過させるフレームが他のポリサに入力されていない場合には、自ポリサのフレーム通過を許容し、帯域割れを防止することができる。   According to this configuration, if resources remain at the end of the previous period, the frame of the own policer is permitted in the next period regardless of whether or not the frame is passed during the current period. For this reason, when a frame to be passed through is not input to another policer in the first place, it is possible to allow the own policer to pass through the frame and to prevent a band break.

また、本発明に係るポリサ装置は、上記構成において、前記決定手段は、前記記憶手段によって記憶された通過情報が、今周期以前の所定数の連続した周期において同一のポリサ装置のみがフレームを通過させたことを示す場合、次周期において自装置のフレーム通過を許容すると決定する構成を採る。   In the policer apparatus according to the present invention, in the configuration described above, the determining means passes only the same policer apparatus whose passage information stored in the storage means is the same in a predetermined number of consecutive periods before the current period. In the case of indicating that it has been done, a configuration is adopted in which it is determined that the frame passing of the own apparatus is permitted in the next period.

この構成によれば、所定数の連続した周期において同じポリサのみがフレームを通過させた場合には、次周期において自ポリサのフレーム通過を許容すると決定する。このため、各ポリサは、連続した周期においてフレームを通過させたポリサが実際に使用中のポリサであると判断して、それ以外の未使用のポリサに対して不要にリソースを譲ることを防止することができる。   According to this configuration, when only the same policer passes a frame in a predetermined number of consecutive cycles, it is determined that the own policer is allowed to pass the frame in the next cycle. For this reason, each policer determines that the policer that has passed the frames in successive cycles is actually a policer in use, and prevents resources from being unnecessarily yielded to other unused policers. be able to.

また、本発明に係るポリサ装置は、上記構成において、前記決定手段は、前回のリソース供給タイミング後の今周期の初めにおいて前記管理手段によって管理されるリソース蓄積量が0以下であった場合、次周期における自装置のフレーム通過の許否を今周期と同等とする構成を採る。   In the policer device according to the present invention, in the configuration described above, the determining unit may perform the following operation when the resource accumulation amount managed by the managing unit is 0 or less at the beginning of the current cycle after the previous resource supply timing. A configuration is adopted in which whether or not the device passes the frame in the cycle is equivalent to the current cycle.

この構成によれば、今周期の初めにおいてリソースが不足していれば、次周期におけるフレーム通過の許否は今周期から変更しない。このため、例えば前周期に巨大なフレームがいずれかのポリサを通過して、多くのリソースが消費された場合、リソース蓄積量が0以上に回復するまでは現状維持をすることができ、ポリサ間での公平性を確保することができる。   According to this configuration, if there is a shortage of resources at the beginning of the current cycle, whether to pass frames in the next cycle is not changed from the current cycle. For this reason, for example, if a large frame passes through any policer in the previous period and many resources are consumed, the current status can be maintained until the accumulated amount of resources recovers to 0 or more. Can ensure fairness.

また、本発明に係るポリサ装置は、上記構成において、前記管理手段は、自装置または他のポリサ装置がフレームを通過させるときに、フレーム通過により消費された消費リソース量をリソース蓄積量から減算する構成を採る。   In the policer device according to the present invention, in the above configuration, the management unit subtracts the consumed resource amount consumed by passing the frame from the resource accumulation amount when the own device or another policer device passes the frame. Take the configuration.

この構成によれば、自ポリサまたは他のポリサによるフレーム通過に応じたリソース量を自ポリサのリソース蓄積量から減算するため、自ポリサに供給されるリソースの範囲内でフレームを通過させることができ、消費するリソース量の上限を厳守することができる。   According to this configuration, since the resource amount corresponding to the frame passing by the own policer or another policer is subtracted from the resource accumulation amount of the own policer, the frame can be passed within the range of resources supplied to the own policer. The upper limit of the amount of resources to be consumed can be strictly observed.

また、本発明に係るポリサ装置は、上記構成において、前記管理手段は、現在のリソース蓄積量とリソース供給タイミングにおいて供給される一定のリソース量との和が0以下である場合、他のポリサ装置がフレームを通過させても、消費リソース量をリソース蓄積量から減算しない構成を採る。   In the policer apparatus according to the present invention, in the configuration described above, the management unit may be configured such that when the sum of the current resource accumulation amount and the constant resource amount supplied at the resource supply timing is 0 or less, Even if the frame is passed, a configuration is adopted in which the consumed resource amount is not subtracted from the resource accumulation amount.

この構成によれば、現在のリソース蓄積量と供給されるリソース量との和が0以下であれば、消費リソース量をリソース蓄積量から減算しない。このため、クロック周波数が早く、自ポリサの周期と1周期以上の同期はずれが生じている他のポリサがフレームを通過させても、自ポリサのリソース蓄積量が減少することはなく、クロック周波数が早い他のポリサがリソースを独占することを防止することができる。   According to this configuration, if the sum of the current resource accumulation amount and the supplied resource amount is 0 or less, the consumed resource amount is not subtracted from the resource accumulation amount. For this reason, even if another policer having a clock frequency that is fast and out of synchronization with the period of one or more cycles passes through the frame, the resource accumulation amount of the own policer does not decrease, and the clock frequency does not decrease. Early policers can be prevented from monopolizing resources.

また、本発明に係るポリサ装置は、上記構成において、前記決定手段は、リソース供給タイミング前にリソース蓄積量が0以上であるか否かを示すリソース余剰フラグ、リソース供給タイミング後にリソース蓄積量が0以上であるか否かを示す供給充足フラグ、および自装置のフレーム通過を許容するか否かを示すスキップフラグを記憶するフラグ記憶手段を含み、前記記憶手段によって記憶されたフラグを更新することにより、次周期において自装置のフレーム通過を許容するか否かを決定する構成を採る。   In the policer apparatus according to the present invention, in the configuration described above, the determination unit includes a resource surplus flag indicating whether or not the resource accumulation amount is 0 or more before the resource supply timing, and the resource accumulation amount is 0 after the resource supply timing. By updating a flag stored by the storage unit, including a flag storage unit that stores a supply sufficiency flag that indicates whether or not the above is satisfied and a skip flag that indicates whether or not to allow frame passage of the own device. In the next cycle, a configuration is adopted in which it is determined whether or not to allow the own device to pass through the frame.

この構成によれば、リソース余剰フラグ、供給充足フラグ、およびスキップフラグを更新することにより、自ポリサのフレーム通過の許否を決定するため、簡易な装置構成で確実にポリサ間の公平性を確保することができる。   According to this configuration, by updating the resource surplus flag, the supply sufficiency flag, and the skip flag, it is determined whether or not the own policer is allowed to pass through the frame. be able to.

また、本発明に係る帯域制御プログラムは、複数のポリサを備えるコンピュータによって実行される帯域制御プログラムであって、前記コンピュータに、第1のポリサに固有のリソース供給タイミング間の各周期において第1のポリサおよび第2のポリサのそれぞれがフレームを通過させたか否かを示す通過情報を取得する第1取得ステップと、第1のポリサまたは第2のポリサがフレームを通過させる際に消費されるリソースの蓄積量の変化を取得する第2取得ステップと、前記第1取得ステップにて取得された通過情報または前記第2取得ステップにて取得されたリソース蓄積量の変化に基づいて、次回のリソース供給タイミング後の次周期において第1のポリサのフレーム通過を許容するか否かを決定する決定ステップと、前記決定ステップにおける決定に従って、第1のポリサに入力されたフレームをリソース供給タイミング間の次周期において出力する出力ステップとを実行させるようにした。   The bandwidth control program according to the present invention is a bandwidth control program that is executed by a computer having a plurality of policers. The bandwidth control program according to the present invention includes a first control program for each period between resource supply timings unique to the first policer. A first acquisition step of acquiring passage information indicating whether or not each of the policer and the second policer has passed the frame; and resources consumed when the first policer or the second policer passes the frame. Based on the second acquisition step for acquiring the change in the storage amount, the passage information acquired in the first acquisition step, or the change in the resource storage amount acquired in the second acquisition step, the next resource supply timing A decision step for deciding whether or not to allow the first policer to pass through a frame in a subsequent next period; As determined in-up was a frame input to the first policer so as to execute an output step of outputting in the next period between resource supply timing.

また、本発明にかかる帯域制御方法は、他のポリサ装置とともに同一装置内に設けられるポリサ装置における帯域制御方法であって、自ポリサ装置に固有のリソース供給タイミング間の各周期において自ポリサ装置および他のポリサ装置のそれぞれがフレームを通過させたか否かを示す通過情報を取得する第1取得ステップと、自ポリサ装置または他のポリサ装置がフレームを通過させる際に消費されるリソースの蓄積量の変化を取得する第2取得ステップと、前記第1取得ステップにて取得された通過情報または前記第2取得ステップにて取得されたリソース蓄積量の変化に基づいて、次回のリソース供給タイミング後の次周期において自ポリサ装置のフレーム通過を許容するか否かを決定する決定ステップと、前記決定ステップにおける決定に従って、自ポリサ装置に入力されたフレームをリソース供給タイミング間の次周期において出力する出力ステップとを有するようにした。   The bandwidth control method according to the present invention is a bandwidth control method in a policer device provided in the same device together with other policer devices, and in each period between resource supply timings specific to the own policer device, A first acquisition step of acquiring passage information indicating whether or not each of the other policer devices has passed the frame; and a storage amount of resources consumed when the own policer device or another policer device passes the frame. Based on the second acquisition step of acquiring a change and the passage information acquired in the first acquisition step or the change in the resource accumulation amount acquired in the second acquisition step, the next after the next resource supply timing A determination step for determining whether or not to allow frame passage of the own policer device in a period; and According constant, and to an output step of outputting the frame input to the own policer device in the next period between resource supply timing.

これらによれば、リソース供給タイミング間の周期ごとに、リソース蓄積量の変化または通貨情報に基づいて、次周期において自ポリサのフレーム通過を許容するか否かを決定するため、今周期中に自ポリサがフレームを通過させてリソースを消費した場合には、次周期で他のポリサにリソースを譲ることができる。結果として、フレーム通過に消費されるリソースの供給タイミングがポリサごとに独立している場合でも、公平にフレームを通過させることができる。   According to these, in order to determine whether to allow the passage of the own policer frame in the next cycle based on the change in the amount of accumulated resources or the currency information for each cycle between resource supply timings, When a policer passes a frame and consumes resources, the resource can be transferred to another policer in the next period. As a result, even when the supply timing of resources consumed for frame passing is independent for each policer, the frame can be passed through fairly.

本明細書に開示されたポリサ装置および帯域制御プログラムによれば、フレーム通過に消費されるリソースの供給タイミングがポリサごとに独立している場合でも、公平にフレームを通過させることができる。   According to the policer device and the bandwidth control program disclosed in the present specification, even when the supply timing of resources consumed for frame passing is independent for each policer, it is possible to pass frames fairly.

本発明の骨子は、フレームを通過させたポリサが、次回のリソース供給タイミング後はリソースの消費を控え、他のポリサにリソースを譲ることである。以下、本発明の一実施の形態について、図面を参照しながら詳細に説明する。   The gist of the present invention is that a policer that has passed a frame refrains from consuming resources after the next resource supply timing, and yields resources to another policer. Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

図1は、本発明の一実施の形態に係るL2スイッチの概略構成を示すブロック図である。同図に示すL2スイッチは、クラシファイ部100−1〜100−n、ポリサ200−1〜200−n、スイッチ部300、およびシェーパ400−1〜400−nを有している。   FIG. 1 is a block diagram showing a schematic configuration of an L2 switch according to an embodiment of the present invention. The L2 switch shown in the figure includes classifying units 100-1 to 100-n, policers 200-1 to 200-n, a switch unit 300, and shapers 400-1 to 400-n.

クラシファイ部100−1〜100−nは、それぞれ別のポートに接続されており、ポートから入力されるフレームを受け付ける。そして、クラシファイ部100−1〜100−nは、フレームを優先度に応じたクラスに振り分け、それぞれポリサ200−1〜200−nへ出力する。   The classifying units 100-1 to 100-n are connected to different ports, respectively, and receive frames input from the ports. Then, the classification units 100-1 to 100-n allocate the frames to classes according to the priorities, and output the classes to the policers 200-1 to 200-n, respectively.

ポリサ200−1〜200−nは、それぞれ独立したリソース供給タイミングにおいて供給されるリソースを消費しながら、帯域制御してフレームを通過させる。ポリサ200−1〜200−nは、フレームを通過させるのに必要なリソースが枯渇している場合には、クラシファイ部100−1〜100−nから出力されたフレームを廃棄する。また、ポリサ200−1〜200−nは、それぞれリソース供給タイミングが到来すると、次回のリソース供給タイミングまでの間にフレームを通過させるか否かを示すスキップフラグを更新し、更新されたスキップフラグを参照してフレームを通過させるか否かを決定する。このとき、ポリサ200−1〜200−nは、自ポリサおよび他ポリサがフレームを通過させたか否かを示す通過情報をスイッチ部300から取得し、各ポリサが公平にフレームを通過させるようにスキップフラグを更新する。ポリサ200−1〜200−nの構成および動作については、後に詳述する。   The policers 200-1 to 200-n pass the frames while performing bandwidth control while consuming resources supplied at independent resource supply timings. The policers 200-1 to 200-n discard the frames output from the classifying units 100-1 to 100-n when the resources necessary to pass the frames are exhausted. In addition, when the resource supply timing arrives, the policers 200-1 to 200-n update the skip flag indicating whether or not to pass the frame until the next resource supply timing, and the updated skip flag is updated. It is determined with reference to whether or not to pass the frame. At this time, the policers 200-1 to 200-n obtain passing information indicating whether or not the own policer and other policers have passed the frame from the switch unit 300, and skip so that each policer passes the frame fairly. Update the flag. The configuration and operation of policers 200-1 to 200-n will be described in detail later.

スイッチ部300は、フレームの宛先アドレスに対応するポートに接続されたシェーパ400−1〜400−nへフレームを出力する。そして、スイッチ部300は、出力したフレームを通過させたポリサ200−1〜200−nを識別可能な通過情報を各ポリサ200−1〜200−nへ出力する。   The switch unit 300 outputs the frame to the shapers 400-1 to 400-n connected to the ports corresponding to the destination address of the frame. And the switch part 300 outputs the passage information which can identify the policers 200-1 to 200-n through which the outputted frame is passed to each of the policers 200-1 to 200-n.

シェーパ400−1〜400−nは、それぞれ別のポートに接続されており、スイッチ部300から出力されたフレームを帯域制御しながら各ポートを介して出力する。このとき、シェーパ400−1〜400−nは、所定の帯域を超過しないように、必要に応じてフレームをキューイングして遅延させながらすべてのフレームをポートから出力する。すなわち、シェーパ400−1〜400−nは、フレームを廃棄することはない。   The shapers 400-1 to 400-n are connected to different ports, respectively, and output the frames output from the switch unit 300 via the respective ports while performing band control. At this time, the shapers 400-1 to 400-n output all the frames from the ports while queuing and delaying the frames as necessary so as not to exceed a predetermined band. That is, the shapers 400-1 to 400-n do not discard the frame.

図2は、本実施の形態に係るポリサ200の要部構成を示すブロック図である。同図に示すポリサ200は、フレーム入出力部201、通過情報取得部202、リソース管理部203、管理情報記憶部204、フラグ更新部205、およびフラグ判定部206を有している。なお、図1に示したポリサ200−1〜200−nは、図2に示すポリサ200と同様の構成を有している。   FIG. 2 is a block diagram showing a main configuration of policer 200 according to the present embodiment. The policer 200 shown in the figure includes a frame input / output unit 201, a passage information acquisition unit 202, a resource management unit 203, a management information storage unit 204, a flag update unit 205, and a flag determination unit 206. Note that policers 200-1 to 200-n shown in FIG. 1 have the same configuration as policer 200 shown in FIG.

フレーム入出力部201は、リソース管理部203において管理されているリソースを消費しながら、フラグ判定部206の指示に従って、対応するクラシファイ部から出力されたフレームを通過させる。すなわち、フレーム入出力部201は、リソース管理部203において管理されているリソース蓄積量が0より大きく、かつ、フラグ判定部206によってフレームの通過が許可されればフレームを通過させる。なお、フレーム入出力部201がフレームを通過させるために消費するリソース量は、フレームのサイズによって異なり、フレームが大きければ消費するリソース量も大きく、フレームが小さければ消費するリソース量も小さい。   The frame input / output unit 201 passes the frame output from the corresponding classification unit according to the instruction of the flag determination unit 206 while consuming the resource managed by the resource management unit 203. In other words, the frame input / output unit 201 allows the frame to pass if the resource accumulation amount managed by the resource management unit 203 is greater than 0 and the flag determination unit 206 permits the passage of the frame. Note that the amount of resources consumed by the frame input / output unit 201 for passing a frame varies depending on the size of the frame. If the frame is large, the amount of resource consumed is large, and if the frame is small, the amount of resource consumed is small.

通過情報取得部202は、スイッチ部300によってフレームが出力されるたびに、このフレームのサイズおよびこのフレームを通過させたポリサを示す通過情報をスイッチ部300から取得する。そして、通過情報取得部202は、取得された通過情報を参照し、フレームのサイズをリソース管理部203へ通知し、フレームを通過させたポリサを管理情報記憶部204へ通知する。   Each time the switch unit 300 outputs a frame, the passage information acquisition unit 202 acquires passage information indicating the size of the frame and a policer that has passed the frame from the switch unit 300. Then, the passage information acquisition unit 202 refers to the acquired passage information, notifies the resource management unit 203 of the frame size, and notifies the management information storage unit 204 of the policer that has passed the frame.

リソース管理部203は、ポリサ200において供給および消費されるリソース量を管理する。すなわち、リソース管理部203は、ポリサ200に固有のリソース供給タイミングにおいてリソースが供給されると、ポリサ200におけるリソース蓄積量を供給されたリソース量だけ増加させ、ポリサ200または他のポリサがフレームを通過させると、ポリサ200におけるリソース蓄積量を消費されたリソース量だけ減少させる。   The resource management unit 203 manages the amount of resources supplied and consumed in the policer 200. That is, when a resource is supplied at a resource supply timing specific to the policer 200, the resource management unit 203 increases the resource accumulation amount in the policer 200 by the supplied resource amount, and the policer 200 or another policer passes the frame. Then, the resource accumulation amount in the policer 200 is reduced by the consumed resource amount.

具体的には、リソース管理部203は、例えば図3に示すように変動するリソース蓄積量を管理している。すなわち、ポリサ200に対するリソース供給タイミングは、所定の周期で到来するため、リソース供給タイミング間の周期を時系列に前周期、今周期、および次周期とすれば、リソース管理部203が管理するリソース蓄積量は、各周期の境目のリソース供給タイミングにおいて、一定のPIR(Peak Information Rate:ピーク情報レート)だけ増加する。また、各周期の間は、ポリサ200または他のポリサがフレームを通過させることにより、リソース管理部203が管理するリソース蓄積量は、徐々に減少する。   Specifically, the resource management unit 203 manages the resource accumulation amount that fluctuates as shown in FIG. 3, for example. That is, since the resource supply timing for the policer 200 arrives at a predetermined cycle, if the cycle between the resource supply timings is set to the previous cycle, the current cycle, and the next cycle in time series, the resource storage managed by the resource management unit 203 is stored. The amount increases by a constant PIR (Peak Information Rate) at the resource supply timing at the boundary of each cycle. Further, during each period, the policer 200 or another policer passes the frame, so that the resource accumulation amount managed by the resource management unit 203 gradually decreases.

管理情報記憶部204は、各周期の間においてフレームを通過させたポリサを示す通過情報およびスキップフラグなどのフラグ情報を含む管理情報を記憶する。具体的には、管理情報記憶部204は、例えば図4に示すように、自ポリサ200を含むすべてのポリサが今周期および前周期においてフレームを通過させたか否かの通過情報、スキップフラグ、リソース余剰フラグ、および供給充足フラグを記憶する管理情報テーブルを有している。この管理情報テーブルは、現時点での通過情報やフラグ情報のみではなく、過去の通過情報やフラグ情報も記憶している。   The management information storage unit 204 stores management information including flag information such as passage information indicating a policer that has passed a frame during each period and a skip flag. Specifically, as shown in FIG. 4, for example, the management information storage unit 204 includes passage information, skip flags, resources indicating whether all policers including the own policer 200 have passed frames in the current cycle and the previous cycle. It has a management information table for storing surplus flags and supply sufficiency flags. This management information table stores not only current passage information and flag information but also past passage information and flag information.

図4において、今周期通過情報および前周期通過情報は、今周期および前周期においてフレームを通過させたポリサを「1」で示し、フレームを通過させていないポリサを「0」で示している。これらの通過情報は、フレームを通過させたポリサが通過情報取得部202から管理情報記憶部204へ通知されることにより、登録可能となっている。また、スキップフラグは、自ポリサ200が次周期においてリソースの消費をスキップするか否かを示している。すなわち、自ポリサ200が次周期においてフレームを通過させるためのリソースの消費をスキップする場合にはスキップフラグが「1」とされ、自ポリサ200が次周期においてフレームを通過させるためのリソースの消費を許容する場合にはスキップフラグが「0」とされる。   In FIG. 4, the current cycle passage information and the previous cycle passage information indicate a policer that has passed a frame in the current cycle and the previous cycle by “1”, and a policer that has not passed the frame by “0”. These passage information can be registered when the policer that has passed the frame is notified from the passage information acquisition unit 202 to the management information storage unit 204. The skip flag indicates whether or not the own policer 200 skips resource consumption in the next period. That is, when the own policer 200 skips the consumption of resources for passing frames in the next cycle, the skip flag is set to “1”, and the own policer 200 uses less resources for passing frames in the next cycle. If it is allowed, the skip flag is set to “0”.

さらに、リソース余剰フラグは、自ポリサ200が消費可能なリソースが今周期末において余ったか否かを示している。すなわち、リソース管理部203によって管理されるリソース蓄積量が今周期末において0より大きい場合にはリソース余剰フラグが「1」とされ、リソース管理部203によって管理されるリソース蓄積量が今周期末において0以下である場合にはリソース余剰フラグが「0」とされる。また、供給充足フラグは、今周期と次周期の境目のリソース供給タイミングにおいてリソースが供給されることにより、次周期で自ポリサ200が消費可能なリソースがあるか否かを示している。すなわち、リソース管理部203によって管理されるリソース蓄積量がリソース供給後に0より大きくなった場合には供給充足フラグが「1」とされ、リソース管理部203によって管理されるリソース蓄積量がリソース供給後も0以下である場合には供給充足フラグが「0」とされる。   Furthermore, the resource surplus flag indicates whether or not the resources that can be consumed by the own policer 200 are left at the end of the current cycle. That is, when the resource accumulation amount managed by the resource management unit 203 is larger than 0 at the end of this cycle, the resource surplus flag is set to “1”, and the resource accumulation amount managed by the resource management unit 203 is at the end of this cycle. If it is 0 or less, the resource surplus flag is set to “0”. The supply sufficiency flag indicates whether or not there is a resource that can be consumed by the own policer 200 in the next cycle when the resource is supplied at the resource supply timing between the current cycle and the next cycle. That is, when the resource accumulation amount managed by the resource management unit 203 becomes greater than 0 after supplying the resource, the supply satisfaction flag is set to “1”, and the resource accumulation amount managed by the resource management unit 203 is after the resource supply. If the value is also 0 or less, the supply satisfaction flag is set to “0”.

フラグ更新部205は、リソース管理部203によって管理されるリソース蓄積量、および管理情報記憶部204によって記憶される通過情報やフラグ情報に基づいて、管理情報記憶部204に記憶されたスキップフラグ、リソース余剰フラグ、および供給充足フラグを更新する。具体的には、フラグ更新部205は、各周期末においてリソース蓄積量が0より大きいか否かを判断し、判断結果に基づいて周期末におけるリソース余剰フラグを新たに登録する。また、フラグ更新部205は、各周期末においてリソースが供給された後にリソース蓄積量が0より大きくなったか否かを判断し、判断結果に基づいて周期末における供給充足フラグを新たに登録する。   Based on the resource accumulation amount managed by the resource management unit 203 and the passing information and flag information stored by the management information storage unit 204, the flag update unit 205 stores the skip flag, the resource stored in the management information storage unit 204, The surplus flag and supply sufficiency flag are updated. Specifically, the flag update unit 205 determines whether or not the resource accumulation amount is greater than 0 at the end of each cycle, and newly registers a resource surplus flag at the end of the cycle based on the determination result. Further, the flag update unit 205 determines whether or not the resource accumulation amount has become larger than 0 after the resource is supplied at the end of each cycle, and newly registers a supply satisfaction flag at the end of the cycle based on the determination result.

さらに、フラグ更新部205は、前周期末のリソース余剰フラグおよび供給充足フラグと、前周期および今周期の通過情報とに基づいて、次周期に自ポリサ200がリソース消費をスキップするか否かを示すスキップフラグを新たに登録する。このとき、フラグ更新部205は、今周期において自ポリサ200がフレームを通過させているとともに今周期までにフレームを通過させていないポリサが存在し、かつ、前周期末においてリソースが余っていなかったことをリソース余剰フラグが示す場合にスキップフラグを「1」とする。   Furthermore, the flag update unit 205 determines whether or not the own policer 200 skips resource consumption in the next cycle based on the resource surplus flag and supply sufficiency flag at the end of the previous cycle and the passage information of the previous cycle and the current cycle. A new skip flag is registered. At this time, the flag updating unit 205 has a policer in which the own policer 200 has passed the frame in this cycle and has not passed the frame by this cycle, and there is no remaining resource at the end of the previous cycle. When the resource surplus flag indicates this, the skip flag is set to “1”.

これは、今周期において自ポリサ200がフレームを通過させている場合には、自ポリサ200によるリソース消費により、今周期において他のポリサがフレームを通過させることができなかった可能性があるため、次周期においては自ポリサ200が他のポリサにリソースを譲ることを意味している。ただし、今周期までにすべてのポリサがフレームを通過させていれば、各ポリサが公平にフレームを通過させていると考えられるため、自ポリサ200は、次周期においてリソースを譲る必要がない。また、前周期末においてリソースが余っている場合には、たとえ今周期において他のポリサがフレームを通過させていなくても、そもそも他のポリサには通過させるフレームがないものと考えられるため、自ポリサ200は、次周期においてリソースを譲る必要がない。   This is because when the own policer 200 passes a frame in this cycle, there is a possibility that another policer could not pass the frame in this cycle due to resource consumption by the own policer 200. In the next period, it means that the own policer 200 yields resources to another policer. However, if all policers have passed the frame by the current cycle, it is considered that each policer has passed the frame fairly. Therefore, the own policer 200 does not need to yield resources in the next cycle. Also, if there is a surplus of resources at the end of the previous period, it is considered that there are no frames that other policers pass in the first place, even if other policers do not pass frames in this period. Policer 200 does not need to yield resources in the next period.

このように、フラグ更新部205は、各ポリサが公平にフレームを通過させるように、自ポリサ200が次周期において他のポリサにリソースを譲るか否かを決定し、リソースを譲る場合には、今周期末にスキップフラグ「1」を新たに登録する。なお、フラグ更新部205によるフラグの更新処理については、後に詳述する。   In this way, the flag update unit 205 determines whether or not the own policer 200 gives resources to other policers in the next period so that each policer passes the frame fairly. A skip flag “1” is newly registered at the end of this cycle. The flag update processing by the flag update unit 205 will be described in detail later.

フラグ判定部206は、管理情報記憶部204に記憶された最新のスキップフラグを参照し、スキップフラグが「0」であれば、フレーム入出力部201がフレームを通過させることを許可し、スキップフラグが「1」であれば、フレーム入出力部201がフレームを通過させることを禁止する。   The flag determination unit 206 refers to the latest skip flag stored in the management information storage unit 204. If the skip flag is “0”, the frame input / output unit 201 permits the frame to pass, and the skip flag Is “1”, the frame input / output unit 201 is prohibited from passing the frame.

次いで、上記のように構成されたポリサ200のリソース供給タイミングにおける動作について、図5に示すフロー図を参照しながら説明する。なお、以下においては、今周期と次周期の境目のリソース供給タイミングにおけるフラグの更新により、次周期での帯域を制御する帯域制御方法ついて説明する。   Next, the operation at the resource supply timing of the policer 200 configured as described above will be described with reference to the flowchart shown in FIG. In the following, a bandwidth control method for controlling the bandwidth in the next cycle by updating the flag at the resource supply timing at the boundary between the current cycle and the next cycle will be described.

自ポリサ200または他のポリサがフレームを通過させている間、通過情報取得部202によって、通過情報が取得され、リソース管理部203におけるリソース蓄積量および管理情報記憶部204における今周期通過情報が登録される。そして、自ポリサ200のリソース供給タイミングが到来して今周期が完了すると(ステップS101)、フラグ更新部205によって、スキップフラグ更新処理が実行される(ステップS102)。   While the own policer 200 or another policer passes the frame, the passage information acquisition unit 202 acquires the passage information, and the resource accumulation amount in the resource management unit 203 and the current period passage information in the management information storage unit 204 are registered. Is done. When the resource supply timing of the policer 200 comes and this cycle is completed (step S101), the flag update unit 205 executes a skip flag update process (step S102).

スキップフラグ更新処理は、前周期および今周期の通過情報と、前周期末のリソース余剰フラグと、前周期末(すなわち今周期の初め)の供給充足フラグとに基づいて行われる。このスキップフラグ更新処理については、後に詳述する。   The skip flag update processing is performed based on the passage information of the previous cycle and the current cycle, the resource surplus flag at the end of the previous cycle, and the supply sufficiency flag at the end of the previous cycle (that is, the beginning of the current cycle). This skip flag update process will be described in detail later.

そして、フラグ更新部205によって、リソース管理部203におけるリソース蓄積量が今周期末において余っているか否かに応じたリソース余剰フラグ更新処理が実行される(ステップS103)。このリソース余剰フラグ更新処理についても、後に詳述する。   Then, the flag update unit 205 executes resource surplus flag update processing according to whether or not the resource accumulation amount in the resource management unit 203 remains at the end of the current cycle (step S103). This resource surplus flag update processing will also be described in detail later.

管理情報記憶部204に記憶されたスキップフラグおよびリソース余剰フラグが更新されると、自ポリサ200に一定のPIRだけリソースが供給され(ステップS104)、リソース管理部203に記憶されたリソース蓄積量がPIRだけ増加する。そして、フラグ更新部205によって、リソース供給後のリソース蓄積量が0より大きいか否かが判断され(ステップS105)、リソース蓄積量が0より大きくなっていれば(ステップS105Yes)、管理情報記憶部204に供給充足フラグ「1」が新たに登録され(ステップS106)、リソース蓄積量が0以下であれば(ステップS105No)、管理情報記憶部204に供給充足フラグ「0」が新たに登録される(ステップS107)。   When the skip flag and resource surplus flag stored in the management information storage unit 204 are updated, resources are supplied to the own policer 200 by a certain PIR (step S104), and the resource accumulation amount stored in the resource management unit 203 is Increase by PIR. Then, the flag update unit 205 determines whether or not the resource accumulation amount after the resource supply is greater than 0 (step S105). If the resource accumulation amount is greater than 0 (step S105 Yes), the management information storage unit A supply satisfaction flag “1” is newly registered in 204 (step S106), and if the resource accumulation amount is 0 or less (No in step S105), a supply satisfaction flag “0” is newly registered in the management information storage unit 204. (Step S107).

このようにして、今周期末におけるリソース供給およびフラグ更新が完了すると、次周期が開始され(ステップS108)、次周期の間は、フラグ判定部206によって最新のスキップフラグが参照され、スキップフラグが「0」であれば、リソース管理部203のリソース蓄積量を消費しながらフレーム入出力部201によってフレームが通過させられる。一方、スキップフラグが「1」であれば、リソースが他のポリサへ譲られ、自ポリサ200はフレームを通過させない。   In this way, when the resource supply and flag update at the end of the current cycle are completed, the next cycle is started (step S108). During the next cycle, the flag determination unit 206 refers to the latest skip flag, and the skip flag is set. If it is “0”, the frame input / output unit 201 passes the frame while consuming the resource accumulation amount of the resource management unit 203. On the other hand, if the skip flag is “1”, the resource is transferred to another policer, and the own policer 200 does not pass the frame.

次に、本実施の形態に係るスキップフラグ更新処理について、図6に示すフロー図を参照しながら説明する。同図に示すスキップフラグ更新処理は、リソース供給タイミングが到来するとフラグ更新部205によって実行される。   Next, skip flag update processing according to the present embodiment will be described with reference to the flowchart shown in FIG. The flag update unit 205 executes the skip flag update process shown in FIG.

まず、フラグ更新部205によって、管理情報記憶部204に記憶された最新の今周期通過情報が参照され、今周期中に自ポリサ200がフレームを通過させたか否かが判断される(ステップS201)。この結果、今周期中に自ポリサ200がフレームを通過させている場合(ステップS201Yes)、次周期においては自ポリサ200が他のポリサにリソースを譲った方が公平となる可能性がある。   First, the flag update unit 205 refers to the latest current cycle passage information stored in the management information storage unit 204, and determines whether or not the own policer 200 has passed the frame during this cycle (step S201). . As a result, when the own policer 200 passes the frame during the current cycle (Yes in step S201), it may be fair that the own policer 200 yields resources to another policer in the next cycle.

そこで、フラグ更新部205によって、今周期通過情報および前周期通過情報が参照され、すべての他のポリサが今周期までにフレームを通過させたか否かが判断される(ステップS202)。この結果、今周期までにすべての他のポリサがフレームを通過させていれば(ステップS202Yes)、すべてのポリサが公平にフレームを通過させていると考えられるため、自ポリサ200が次周期において他のポリサにリソースを譲る必要はなく、管理情報記憶部204にスキップフラグ「0」が新たに登録される(ステップS206)。また、今周期までにフレームを通過させていない他のポリサがあれば(ステップS202No)、リソースの枯渇により今周期までにフレームを通過させることができなかったポリサがある可能性がある。   Therefore, the flag update unit 205 refers to the current period passage information and the previous period passage information, and determines whether all other policers have passed the frame by the present period (step S202). As a result, if all the other policers have passed the frame by this cycle (Yes in step S202), it is considered that all the policers have passed the frame fairly. There is no need to give resources to the policer, and a skip flag “0” is newly registered in the management information storage unit 204 (step S206). If there is another policer that has not passed the frame by this cycle (No in step S202), there may be a policer that has not been able to pass the frame by this cycle due to resource depletion.

そこで、フラグ更新部205によって、前周期末の時点のリソース余剰フラグが参照され、前周期末においてリソースが余っていたか否か(すなわち、リソース余剰フラグが「1」であるか否か)が判断される(ステップS203)。この結果、前周期末においてリソースが余っていれば(ステップS203Yes)、今周期までにフレームを通過させていないポリサには、そもそもフレームが入力されていないと考えられるため、自ポリサ200が次周期において他のポリサにリソースを譲る必要はなく、管理情報記憶部204にスキップフラグ「0」が新たに登録される(ステップS206)。また、前周期末においてリソースが余っていなければ(ステップS203No)、リソースの枯渇により今周期までにフレームを通過させることができなかったポリサがあるものと考えられるため、管理情報記憶部204にスキップフラグ「1」が新たに登録される(ステップS204)。   Therefore, the flag update unit 205 refers to the resource surplus flag at the end of the previous cycle, and determines whether there is a surplus of resources at the end of the previous cycle (that is, whether the resource surplus flag is “1”). (Step S203). As a result, if there are remaining resources at the end of the previous cycle (Yes in step S203), it is considered that no frame has been input to the policer that has not passed the frame until the current cycle, so In step S206, it is not necessary to transfer resources to another policer, and a skip flag “0” is newly registered in the management information storage unit 204 (step S206). Also, if there are no remaining resources at the end of the previous cycle (No in step S203), it is considered that there is a policer that has not been able to pass the frame by the current cycle due to resource depletion, so skip to the management information storage unit 204. A flag “1” is newly registered (step S204).

一方、今周期中に自ポリサ200がフレームを通過させていない場合(ステップS201No)、フラグ更新部205によって、今周期通過情報および前周期通過情報が参照され、自ポリサ200を含むすべてのポリサが今周期までにフレームを通過させたか否かが判断される(ステップS205)。この結果、今周期までにすべてのポリサがフレームを通過させていれば(ステップS205Yes)、すべてのポリサが公平にフレームを通過させていると考えられるため、自ポリサ200が次周期において他のポリサにリソースを譲る必要はなく、管理情報記憶部204にスキップフラグ「0」が新たに登録される(ステップS206)。また、今周期までにすべてのポリサがフレームを通過させていなければ(ステップS205No)、リソースの枯渇により今周期までにフレームを通過させることができなかったポリサがある可能性がある。   On the other hand, when the own policer 200 does not pass the frame during the current cycle (No in step S201), the flag update unit 205 refers to the current cycle passage information and the previous cycle passage information, and all the policers including the own policer 200 It is determined whether or not the frame has been passed by this cycle (step S205). As a result, if all the policers have passed the frame by the current cycle (step S205 Yes), it is considered that all the policers have passed the frame fairly. There is no need to transfer resources to the management information storage unit 204, and a skip flag “0” is newly registered (step S206). Further, if all policers have not passed frames by the present cycle (No in step S205), there may be policers that have not been able to pass frames by the present cycle due to resource depletion.

ここでは、フレームを通過させることができなかったポリサが自ポリサ200である可能性もあるため、管理情報記憶部204にスキップフラグ「1」が新たに登録されることはない。ただし、フラグ更新部205によって、前周期末(すなわち、今周期の初め)における供給充足フラグが「1」であるか否かが判断され(ステップS207)、供給充足フラグが「0」である場合には(ステップS207No)、管理情報記憶部204に前回と同じスキップフラグが登録される(ステップS210)。   Here, since there is a possibility that the policer that could not pass the frame is the own policer 200, the skip flag “1” is not newly registered in the management information storage unit 204. However, the flag update unit 205 determines whether or not the supply satisfaction flag at the end of the previous cycle (that is, the beginning of the current cycle) is “1” (step S207), and the supply satisfaction flag is “0”. (No in step S207), the same skip flag as the previous time is registered in the management information storage unit 204 (step S210).

ここで、前周期末(今周期の初め)における供給充足フラグが「0」であるということは、前周期に多くのリソースを消費する巨大なフレームがいずれかのポリサを通過したことを意味しており、リソース供給タイミングでリソースが供給されても、リソース蓄積量が0より大きい値にまで回復しなかったことを示している。そこで、このような場合には、いずれのポリサもスキップフラグを変更せず、現状を維持するようにしている。そして、リソース蓄積量が0より大きい値に回復した際に、改めてスキップフラグが適正に更新される。   Here, the supply satisfaction flag at the end of the previous cycle (the beginning of the current cycle) is “0” means that a huge frame that consumes many resources in the previous cycle has passed through any policer. This indicates that even if resources are supplied at the resource supply timing, the resource accumulation amount has not recovered to a value greater than zero. Therefore, in such a case, neither policer changes the skip flag and maintains the current state. Then, when the resource accumulation amount recovers to a value larger than 0, the skip flag is properly updated again.

また、前周期末(今周期の初め)における供給充足フラグが「1」である場合には(ステップS207Yes)、フラグ更新部205によって、最新の今周期通過情報および前周期通過情報が参照され、今周期と前周期にフレームを通過させたポリサが一致しているか否かが判断される(ステップS208)。この結果、今周期と前周期でまったく同じポリサがフレームを通過させていれば(ステップS208Yes)、リソースの供給は充足していることから、今周期および前周期においてフレームを通過させたポリサのみが使用中のポリサであり、残りのポリサは使用されていないポリサであると考えられる。ここでは、今周期において自ポリサ200がフレームを通過させていないため、自ポリサ200は、今周期および前周期においてフレームを通過させておらず、使用されていないポリサである。使用されていないポリサに対しては、リソース消費の公平性を考慮する必要がないため、管理情報記憶部204にスキップフラグ「0」が新たに登録される(ステップS206)。   If the supply satisfaction flag at the end of the previous cycle (the beginning of the current cycle) is “1” (Yes in step S207), the flag update unit 205 refers to the latest current cycle passage information and the previous cycle passage information, It is determined whether or not the policer that has passed the frame in the current cycle matches the previous cycle (step S208). As a result, if the same policer passes the frame in the current cycle and the previous cycle (step S208 Yes), since the supply of resources is sufficient, only the policer that passed the frame in the current cycle and the previous cycle It is considered that policers are in use and the remaining policers are unused policers. Here, since the own policer 200 does not pass the frame in the current cycle, the own policer 200 is a policer that is not used because the frame is not passed in the current cycle and the previous cycle. Since it is not necessary to consider the fairness of resource consumption for an unused policer, a skip flag “0” is newly registered in the management information storage unit 204 (step S206).

一方、今周期と前周期でフレームを通過させるポリサが異なっていれば(ステップS208No)、フラグ更新部205によって、前周期末の時点のリソース余剰フラグが参照され、前周期末においてリソースが余っていたか否か(すなわち、リソース余剰フラグが「1」であるか否か)が判断される(ステップS209)。この結果、前周期末においてリソースが余っていれば(ステップS209Yes)、今周期までにフレームを通過させていないポリサには、そもそもフレームが入力されていないと考えられるため、自ポリサ200が次周期において他のポリサにリソースを譲る必要はなく、管理情報記憶部204にスキップフラグ「0」が新たに登録される(ステップS206)。   On the other hand, if the policer that passes the frame is different between the current cycle and the previous cycle (step S208 No), the flag update unit 205 refers to the resource surplus flag at the end of the previous cycle, and there is a surplus of resources at the end of the previous cycle. (Ie, whether the resource surplus flag is “1”) is determined (step S209). As a result, if there are surplus resources at the end of the previous cycle (Yes in step S209), it is considered that no frame has been input to the policer that has not passed the frame until the present cycle, so In step S206, it is not necessary to transfer resources to another policer, and a skip flag “0” is newly registered in the management information storage unit 204 (step S206).

また、前周期末においてリソースが余っていなければ(ステップS209No)、全体的にリソース消費量が多く、リソースの供給は充足しているもののすべてのポリサが十分にフレームを通過させていないと考えられるため、管理情報記憶部204に前回と同じスキップフラグが登録される(ステップS210)。すなわち、この場合は、過去に自ポリサ200におけるスキップフラグを変更したにも関わらず、まだフレーム通過の公平性が十分に確保されていない状態と考えられるため、自ポリサ200は現状を維持するようにしている。   Also, if there is no resource remaining at the end of the previous cycle (No in step S209), it is considered that the overall resource consumption is large and the supply of resources is sufficient, but not all policers pass the frame sufficiently. Therefore, the same skip flag as the previous time is registered in the management information storage unit 204 (step S210). That is, in this case, although the skip flag in the own policer 200 has been changed in the past, it is considered that the fairness of frame passing has not been sufficiently ensured, so that the own policer 200 maintains the current state. I have to.

このように、今周期において自ポリサ200がリソースを消費し、今周期において他のポリサがリソースを消費できなかった可能性がある場合には、スキップフラグが「1」に変更されるため、次周期においては、自ポリサ200がリソースの消費を控え、代わりに他のポリサがリソースを消費することができる。結果として、複数のポリサによるリソース消費の公平性を確保することができる。   As described above, when there is a possibility that the own policer 200 consumes resources in this cycle and another policer cannot consume resources in this cycle, the skip flag is changed to “1”. In the period, the own policer 200 refrains from consuming resources, and other policers can consume resources instead. As a result, fairness of resource consumption by a plurality of policers can be ensured.

次に、本実施の形態に係るリソース余剰フラグ更新処理について、図7に示すフロー図を参照しながら説明する。同図に示すリソース余剰フラグ更新処理は、リソース供給タイミングが到来するとフラグ更新部205によって実行される。   Next, the resource surplus flag update processing according to the present embodiment will be described with reference to the flowchart shown in FIG. The resource surplus flag update process shown in the figure is executed by the flag update unit 205 when the resource supply timing comes.

まず、フラグ更新部205によって、管理情報記憶部204に記憶された最新の今周期通過情報が参照され、今周期中に自ポリサ200がフレームを通過させたか否かが判断される(ステップS301)。この結果、今周期中に自ポリサ200がフレームを通過させていない場合(ステップS301No)、リソースの枯渇により自ポリサ200がフレームを通過させることができなかったと考えられるため、リソースは余っておらず、管理情報記憶部204にリソース余剰フラグ「0」が新たに登録される(ステップS302)。   First, the flag update unit 205 refers to the latest current cycle passage information stored in the management information storage unit 204, and determines whether or not the own policer 200 has passed the frame during this cycle (step S301). . As a result, if the own policer 200 does not pass the frame during this period (No in step S301), it is considered that the own policer 200 could not pass the frame due to the exhaustion of resources, so there are not enough resources. The resource surplus flag “0” is newly registered in the management information storage unit 204 (step S302).

一方、今周期中に自ポリサ200がフレームを通過させている場合(ステップS301Yes)、フラグ更新部205によって、最新の今周期通過情報が参照され、すべての他のポリサが今周期中にフレームを通過させたか否かが判断される(ステップS303)。この結果、今周期中にすべての他のポリサがフレームを通過させていれば(ステップS303Yes)、自ポリサ200を含むすべてのポリサが今周期中にフレームを通過させたことになり、リソース量が十分であると考えられるため、次周期においていずれかのポリサが他のポリサにリソースを譲る必要がないと考えられる。したがって、管理情報記憶部204にリソース余剰フラグ「0」が新たに登録され(ステップS302)、次周期末のスキップフラグの更新に影響が及ばないようにされる。   On the other hand, when the own policer 200 passes the frame during the current cycle (Yes in step S301), the flag update unit 205 refers to the latest current cycle passage information, and all other policers pass the frame during the current cycle. It is determined whether or not it has been passed (step S303). As a result, if all other policers have passed the frame during this cycle (step S303 Yes), all the policers including the own policer 200 have passed the frame during this cycle, and the amount of resources is reduced. Since it is considered sufficient, it is considered that it is not necessary for any policer to yield resources to another policer in the next period. Therefore, the resource surplus flag “0” is newly registered in the management information storage unit 204 (step S302), so that the update of the skip flag at the end of the next cycle is not affected.

また、今周期中にフレームを通過させていない他のポリサがあれば(ステップS303No)、リソース管理部203において管理されているリソース蓄積量が0より大きいか否かが判断される(ステップS304)。この結果、リソース蓄積量が0以下であれば(ステップS304No)、今周期末においてリソースが余っていないことになるため、管理情報記憶部204にリソース余剰フラグ「0」が新たに登録される(ステップS302)。また、リソース蓄積量が0より大きければ(ステップS304Yes)、今周期末においてリソースが余っていることになるため、管理情報記憶部204にリソース余剰フラグ「1」が新たに登録される(ステップS305)。   If there is another policer that has not passed the frame in the current cycle (No in step S303), it is determined whether or not the resource accumulation amount managed by the resource management unit 203 is greater than 0 (step S304). . As a result, if the amount of accumulated resources is 0 or less (No in step S304), there is no remaining resource at the end of the current cycle, so a resource surplus flag “0” is newly registered in the management information storage unit 204 ( Step S302). If the resource accumulation amount is greater than 0 (Yes in step S304), the resource is left at the end of the current cycle, so that the resource surplus flag “1” is newly registered in the management information storage unit 204 (step S305). ).

このように、今周期に自ポリサ200がフレームを通過させるとともに、他のポリサの一部がフレームを通過させ、かつ、今周期末においてリソース蓄積量が0より大きい場合には、リソース余剰フラグが「1」に変更されるため、自ポリサ200が次周期末においてスキップフラグを更新する際に、他のポリサにリソースを譲るべきか否かを正確に判断することができる。   In this way, when the own policer 200 passes the frame in this cycle and a part of other policers passes the frame, and the resource accumulation amount is larger than 0 at the end of this cycle, the resource surplus flag is set. Since it is changed to “1”, when the own policer 200 updates the skip flag at the end of the next cycle, it is possible to accurately determine whether or not to give resources to another policer.

以上のように、本実施の形態によれば、今周期に自ポリサがフレームを通過させた一方、他のポリサがフレームを通過させておらず、さらに、前周期末においてリソースが余っていなかった場合には、自ポリサは、今周期末のリソース供給タイミングにおいてスキップフラグを「1」に更新し、次周期では他のポリサにリソースを譲る。このため、たとえリソース供給タイミングにおいて自ポリサが次周期に消費可能なリソースが供給されても、自ポリサは、次周期においてリソースを独占することがない。そして、同様の処理を他のポリサも実行することにより、フレーム通過に消費されるリソースの供給タイミングがポリサごとに独立している場合でも、公平にフレームを通過させることができる。   As described above, according to the present embodiment, the own policer has passed the frame in this cycle, while the other policers have not passed the frame, and further, there is no remaining resource at the end of the previous cycle. In this case, the own policer updates the skip flag to “1” at the resource supply timing at the end of the current cycle, and transfers the resource to another policer in the next cycle. For this reason, even if the resource that the policer can consume in the next cycle is supplied at the resource supply timing, the policer does not monopolize the resource in the next cycle. By executing the same processing for other policers, even if the supply timing of resources consumed for frame passing is independent for each policer, it is possible to pass frames fairly.

ところで、各周期において、自ポリサまたは他のポリサがフレームを通過させると、自ポリサは、リソース管理部203において管理されるリソース蓄積量から消費された分のリソース量を減算する。このとき、各ポリサにおける周期を決定するクロック周波数がずれていると、長期的にはクロック周波数のずれが累積して1周期以上の同期はずれが生じ、クロック周波数が早いポリサが有利にフレームを通過させることになってしまう。そこで、リソース管理部203は、クロック周波数が早く、自ポリサの周期と1周期以上ずれたポリサによるフレーム通過を無視してリソース消費がなかったものとみなす必要がある。   By the way, when the own policer or another policer passes the frame in each cycle, the own policer subtracts the consumed resource amount from the resource accumulation amount managed by the resource management unit 203. At this time, if the clock frequency that determines the period in each policer is shifted, the clock frequency shift accumulates in the long term, resulting in a synchronization loss of one period or more, and a policer with a fast clock frequency advantageously passes through the frame. Will end up. Therefore, the resource management unit 203 needs to consider that there is no resource consumption by ignoring frame passing by a policer having a fast clock frequency and shifted by one or more periods from the own policer.

このためリソース管理部203は、図8に示すフロー図に従って、周期中のリソース消費を自ポリサ200のリソース蓄積量に反映させる。すなわち、リソース管理部203によって、フレームを通過させたのが自ポリサ200であるか否かが判断される(ステップS401)。この結果、自ポリサ200がフレームを通過させていれば(ステップS401Yes)、このフレーム通過に消費されたリソース量がリソース蓄積量から減算される(ステップS402)。   Therefore, the resource management unit 203 reflects the resource consumption during the period in the resource accumulation amount of the own policer 200 according to the flowchart shown in FIG. That is, the resource management unit 203 determines whether or not the own policer 200 has passed the frame (step S401). As a result, if the own policer 200 passes the frame (Yes in step S401), the resource amount consumed for passing the frame is subtracted from the resource accumulation amount (step S402).

一方、自ポリサ200以外の他のポリサがフレームを通過させていれば(ステップS401No)、現在のリソース蓄積量に次回のリソース供給タイミングにおいて供給されるPIRを加算した値が0以下であるか否かが判断される(ステップS403)。換言すれば、次回のリソース供給タイミングにおいて、自ポリサ200のリソース蓄積量が0より大きい値にまで回復する予定であるか否かが判断される。   On the other hand, if a policer other than the own policer 200 passes the frame (No in step S401), whether the value obtained by adding the PIR supplied at the next resource supply timing to the current resource accumulation amount is 0 or less. Is determined (step S403). In other words, at the next resource supply timing, it is determined whether or not the resource accumulation amount of the own policer 200 is scheduled to recover to a value larger than zero.

この結果、PIRを加算してもリソース蓄積量が0以下である場合は(ステップS403Yes)、フレームを通過させた他のポリサのクロック周波数が早く、自ポリサ200の周期と1周期以上の同期はずれが生じていると考えられるため、このフレーム通過に消費されたリソース量がリソース蓄積量から減算されることはない(ステップS404)。また、PIRを加算すればリソース蓄積量が0より大きくなる場合は(ステップS403No)、1周期以上の同期はずれは生じていないと考えられるため、このフレーム通過に消費されたリソース量がリソース蓄積量から減算される(ステップS402)。   As a result, if the amount of accumulated resources is 0 or less even after adding PIR (Yes in step S403), the clock frequency of the other policer that has passed the frame is fast, and the synchronization of the own policer 200 is out of synchronization by one period or more. Therefore, the amount of resources consumed for passing through this frame is not subtracted from the amount of accumulated resources (step S404). Further, if the resource accumulation amount becomes larger than 0 if PIR is added (No in step S403), it is considered that there is no loss of synchronization for one cycle or more. Therefore, the resource amount consumed for passing through this frame is the resource accumulation amount. Is subtracted from (step S402).

これにより、クロック周波数が早い他のポリサの周期が自ポリサ200の周期と1周期以上ずれた場合には、他のポリサによるフレーム通過が自ポリサ200のリソース蓄積量に影響を及ぼすことがない。結果として、各ポリサのクロック周波数のずれにより、ポリサ間の同期はずれが生じても、特定のポリサが有利にフレームを通過させることはなく、確実に公平性を確保することができる。   As a result, when the cycle of another policer with a fast clock frequency is shifted by one cycle or more from the cycle of the own policer 200, the frame passing by the other policer does not affect the resource accumulation amount of the own policer 200. As a result, even if the synchronization between the policers is lost due to the shift of the clock frequency of each policer, the specific policer does not advantageously pass the frame, and the fairness can be reliably ensured.

なお、上記一実施の形態においては、L2スイッチにポリサ200−1〜200−nが設けられる場合について説明したが、本発明はこれに限定されず、複数のポリサによって帯域制限を行う場合には、上記一実施の形態と同様に本発明を適用することができる。   In the above-described embodiment, the case where the policers 200-1 to 200-n are provided in the L2 switch has been described. However, the present invention is not limited to this, and the band limitation is performed by a plurality of policers. The present invention can be applied in the same manner as in the above embodiment.

また、上記一実施の形態においては、ポリサ200−1〜200−nにおける帯域制御方法について説明したが、この帯域制御方法をコンピュータが読み取り可能な帯域制御プログラムとして記述し、帯域制御プログラムをコンピュータに実行させることにより、上記一実施の形態と同様の作用効果を得ることも可能である。   In the above embodiment, the bandwidth control method in policers 200-1 to 200-n has been described. However, this bandwidth control method is described as a computer-readable bandwidth control program, and the bandwidth control program is stored in the computer. By performing this, it is possible to obtain the same operation and effect as the one embodiment.

以上の実施の形態に関して、さらに以下の付記を開示する。   Regarding the above embodiment, the following additional notes are disclosed.

(付記1)自装置に固有のリソース供給タイミング間の各周期において自装置および他のポリサ装置のそれぞれがフレームを通過させたか否かを示す通過情報を記憶する記憶手段と、
自装置または他のポリサ装置がフレームを通過させる際に消費されるリソースの蓄積量の変化を管理する管理手段と、
前記記憶手段によって記憶された通過情報および前記管理手段によって管理されたリソース蓄積量の変化の少なくともいずれか一方に基づいて、次回のリソース供給タイミング後の次周期において自ポリサのフレーム通過を許容するか否かを決定する決定手段と、
前記決定手段による決定に従って、自装置に入力されたフレームをリソース供給タイミング間の各周期において出力する出力手段と
を有することを特徴とするポリサ装置。
(Supplementary Note 1) Storage means for storing passage information indicating whether or not each of the own device and other policer devices has passed a frame in each cycle between resource supply timings specific to the own device;
A management means for managing a change in the amount of accumulated resources consumed when the own device or another policer device passes a frame;
Whether to allow the own policer to pass the frame in the next cycle after the next resource supply timing based on at least one of the passage information stored by the storage unit and the change in the resource accumulation amount managed by the management unit A determination means for determining whether or not;
A policer device comprising: an output unit that outputs a frame input to the own device in each cycle between resource supply timings according to the determination by the determination unit.

(付記2)前記決定手段は、
現時点を含む今周期中に前記出力手段によってフレームが出力された場合、次周期において自装置のフレーム通過を許容しないと決定することを特徴とする付記1記載のポリサ装置。
(Supplementary note 2)
2. The policer device according to claim 1, wherein when a frame is output by the output means during the current cycle including the present time, it is determined that the frame passing of the own device is not permitted in the next cycle.

(付記3)前記決定手段は、
前記記憶手段によって記憶された通過情報が、今周期以前の所定数の周期中にすべてのポリサ装置がフレームを通過させたことを示す場合、今周期中に前記出力手段によってフレームが出力されても、次周期において自装置のフレーム通過を許容すると決定することを特徴とする付記2記載のポリサ装置。
(Supplementary note 3)
If the passage information stored by the storage means indicates that all policer devices have passed the frame during a predetermined number of cycles before the current cycle, the frame may be output by the output means during the current cycle. The policer device according to appendix 2, wherein the policer device is determined to allow the frame passing of the device itself in the next cycle.

(付記4)前記決定手段は、
前回のリソース供給タイミング前の前周期末において前記管理手段によって管理されるリソース蓄積量が0以上であった場合、今周期中に前記出力手段によってフレームが出力されても、次周期において自装置のフレーム通過を許容すると決定することを特徴とする付記2記載のポリサ装置。
(Supplementary note 4)
If the accumulated amount of resources managed by the management means at the end of the previous period before the previous resource supply timing is 0 or more, even if a frame is output by the output means during the current period, The policer device according to attachment 2, wherein it is determined that frame passage is allowed.

(付記5)前記決定手段は、
前記記憶手段によって記憶された通過情報が、今周期以前の所定数の連続した周期において同一のポリサ装置のみがフレームを通過させたことを示す場合、次周期において自装置のフレーム通過を許容すると決定することを特徴とする付記1記載のポリサ装置。
(Supplementary note 5)
When the passage information stored by the storage means indicates that only the same policer device has passed a frame in a predetermined number of consecutive cycles before the current cycle, it is determined that the own device is allowed to pass the frame in the next cycle. The policer device according to appendix 1, wherein:

(付記6)前記決定手段は、
前回のリソース供給タイミング後の今周期の初めにおいて前記管理手段によって管理されるリソース蓄積量が0以下であった場合、次周期における自装置のフレーム通過の許否を今周期と同等とすることを特徴とする付記1記載のポリサ装置。
(Appendix 6) The determination means includes:
When the accumulated amount of resources managed by the management means at the beginning of the current cycle after the previous resource supply timing is less than or equal to 0, whether or not the device passes the frame in the next cycle is equal to the current cycle The policer apparatus according to appendix 1.

(付記7)前記管理手段は、
自装置または他のポリサ装置がフレームを通過させるときに、フレーム通過により消費された消費リソース量をリソース蓄積量から減算することを特徴とする付記1記載のポリサ装置。
(Appendix 7) The management means includes
2. The policer device according to appendix 1, wherein when the own device or another policer device passes a frame, the consumed resource amount consumed by passing the frame is subtracted from the resource accumulation amount.

(付記8)前記管理手段は、
現在のリソース蓄積量とリソース供給タイミングにおいて供給される一定のリソース量との和が0以下である場合、他のポリサ装置がフレームを通過させても、消費リソース量をリソース蓄積量から減算しないことを特徴とする付記7記載のポリサ装置。
(Appendix 8) The management means
When the sum of the current resource accumulation amount and the constant resource amount supplied at the resource supply timing is 0 or less, the consumed resource amount is not subtracted from the resource accumulation amount even if another policer device passes the frame. The policer device according to appendix 7, characterized by:

(付記9)前記決定手段は、
リソース供給タイミング前にリソース蓄積量が0以上であるか否かを示すリソース余剰フラグ、リソース供給タイミング後にリソース蓄積量が0以上であるか否かを示す供給充足フラグ、および自装置のフレーム通過を許容するか否かを示すスキップフラグを記憶するフラグ記憶手段を含み、
前記記憶手段によって記憶されたフラグを更新することにより、次周期において自装置のフレーム通過を許容するか否かを決定することを特徴とする付記1記載のポリサ装置。
(Supplementary note 9)
A resource surplus flag indicating whether or not the resource accumulation amount is 0 or more before the resource supply timing, a supply sufficiency flag indicating whether or not the resource accumulation amount is 0 or more after the resource supply timing, and the own device frame passing Flag storage means for storing a skip flag indicating whether or not to allow,
2. The policer device according to appendix 1, wherein the policer device determines whether or not to allow frame passage of the device itself in the next cycle by updating the flag stored by the storage means.

(付記10)複数のポリサを備えるコンピュータによって実行される帯域制御プログラムであって、前記コンピュータに、
第1のポリサに固有のリソース供給タイミング間の各周期において第1のポリサおよび第2のポリサのそれぞれがフレームを通過させたか否かを示す通過情報を取得する第1取得ステップと、
第1のポリサまたは第2のポリサがフレームを通過させる際に消費されるリソースの蓄積量の変化を取得する第2取得ステップと、
前記第1取得ステップにて取得された通過情報または前記第2取得ステップにて取得されたリソース蓄積量の変化に基づいて、次回のリソース供給タイミング後の次周期において第1のポリサのフレーム通過を許容するか否かを決定する決定ステップと、
前記決定ステップにおける決定に従って、第1のポリサに入力されたフレームをリソース供給タイミング間の次周期において出力する出力ステップと
を実行させることを特徴とする帯域制御プログラム。
(Supplementary Note 10) A bandwidth control program executed by a computer including a plurality of policers, the computer including:
A first acquisition step of acquiring passage information indicating whether or not each of the first policer and the second policer has passed a frame in each period between resource supply timings specific to the first policer;
A second acquisition step of acquiring a change in an accumulation amount of resources consumed when the first policer or the second policer passes the frame;
Based on the passage information acquired in the first acquisition step or the change in the amount of accumulated resources acquired in the second acquisition step, the first policer passes through the frame in the next cycle after the next resource supply timing. A decision step for deciding whether to allow,
According to the determination in the determination step, a bandwidth control program that executes an output step of outputting a frame input to the first policer in a next period between resource supply timings.

(付記11)他のポリサ装置とともに同一装置内に設けられるポリサ装置における帯域制御方法であって、
自ポリサ装置に固有のリソース供給タイミング間の各周期において自ポリサ装置および他のポリサ装置のそれぞれがフレームを通過させたか否かを示す通過情報を取得する第1取得ステップと、
自ポリサ装置または他のポリサ装置がフレームを通過させる際に消費されるリソースの蓄積量の変化を取得する第2取得ステップと、
前記第1取得ステップにて取得された通過情報または前記第2取得ステップにて取得されたリソース蓄積量の変化に基づいて、次回のリソース供給タイミング後の次周期において自ポリサ装置のフレーム通過を許容するか否かを決定する決定ステップと、
前記決定ステップにおける決定に従って、自ポリサ装置に入力されたフレームをリソース供給タイミング間の次周期において出力する出力ステップと
を有することを特徴とする帯域制御方法。
(Supplementary Note 11) A bandwidth control method in a policer device provided in the same device together with other policer devices,
A first acquisition step of acquiring passage information indicating whether or not each of the own policer device and another policer device has passed a frame in each period between resource supply timings specific to the own policer device;
A second acquisition step of acquiring a change in an accumulation amount of resources consumed when the own policer device or another policer device passes a frame;
Based on the passage information acquired in the first acquisition step or the change in the resource accumulation amount acquired in the second acquisition step, the own policer device is allowed to pass the frame in the next cycle after the next resource supply timing. A decision step to decide whether or not to do;
A bandwidth control method comprising: an output step of outputting a frame input to the policer device in a next cycle between resource supply timings according to the determination in the determination step.

本発明は、フレーム通過に消費されるリソースの供給タイミングがポリサごとに独立している場合でも、公平にフレームを通過させる場合に適用することができる。   The present invention can be applied to a case where a frame is allowed to pass evenly even when the supply timing of resources consumed for passing the frame is independent for each policer.

一実施の形態に係るL2スイッチの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the L2 switch which concerns on one embodiment. 一実施の形態に係るポリサの要部構成を示すブロック図である。It is a block diagram which shows the principal part structure of the policer which concerns on one Embodiment. 一実施の形態に係るリソース蓄積量の変動の一例を示す図である。It is a figure which shows an example of the fluctuation | variation of the resource accumulation amount which concerns on one Embodiment. 一実施の形態に係る管理情報テーブルの一例を示す図である。It is a figure which shows an example of the management information table which concerns on one Embodiment. 一実施の形態に係るポリサのリソース供給タイミングにおける動作を示すフロー図である。It is a flowchart which shows the operation | movement in the resource supply timing of the policer which concerns on one Embodiment. 一実施の形態に係るスキップフラグ更新処理を示すフロー図である。It is a flowchart which shows the skip flag update process which concerns on one Embodiment. 一実施の形態に係るリソース余剰フラグ更新処理を示すフロー図である。It is a flowchart which shows the resource surplus flag update process which concerns on one embodiment. 一実施の形態に係るポリサのリソース減算タイミングにおける動作を示すフロー図である。It is a flowchart which shows the operation | movement in the resource subtraction timing of the policer which concerns on one embodiment. L2スイッチの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of a L2 switch.

符号の説明Explanation of symbols

200−1〜200−n、200 ポリサ
201 フレーム入出力部
202 通過情報取得部
203 リソース管理部
204 管理情報記憶部
205 フラグ更新部
206 フラグ判定部
200-1 to 200 -n, 200 Policer 201 Frame input / output unit 202 Passage information acquisition unit 203 Resource management unit 204 Management information storage unit 205 Flag update unit 206 Flag determination unit

Claims (7)

自装置に固有のリソース供給タイミング間の各周期において自装置および他のポリサ装置のそれぞれがフレームを通過させたか否かを示す通過情報を記憶する記憶手段と、
自装置または他のポリサ装置がフレームを通過させる際に消費されるリソースの蓄積量の変化を管理する管理手段と、
前記記憶手段によって記憶された通過情報および前記管理手段によって管理されたリソース蓄積量の変化の少なくともいずれか一方に基づいて、次回のリソース供給タイミング後の次周期において自ポリサのフレーム通過を許容するか否かを決定する決定手段と、
前記決定手段による決定に従って、自装置に入力されたフレームをリソース供給タイミング間の次周期において出力する出力手段と
を有することを特徴とするポリサ装置。
Storage means for storing passage information indicating whether each of the own device and another policer device has passed a frame in each cycle between resource supply timings unique to the own device;
A management means for managing a change in the amount of accumulated resources consumed when the own device or another policer device passes a frame;
Whether to allow the own policer to pass the frame in the next cycle after the next resource supply timing based on at least one of the passage information stored by the storage unit and the change in the resource accumulation amount managed by the management unit A determination means for determining whether or not;
A policer device comprising: an output unit that outputs a frame input to the own device in a next period between resource supply timings according to the determination by the determination unit.
前記決定手段は、
現時点を含む今周期中に前記出力手段によってフレームが出力された場合、次周期において自装置のフレーム通過を許容しないと決定することを特徴とする請求項1記載のポリサ装置。
The determining means includes
2. The policer device according to claim 1, wherein when a frame is output by the output means during the current cycle including the present time, the policer device determines that it does not allow the frame to pass through in the next cycle.
前記決定手段は、
前記記憶手段によって記憶された通過情報が、今周期以前の所定数の周期中にすべてのポリサ装置がフレームを通過させたことを示す場合、今周期中に前記出力手段によってフレームが出力されても、次周期において自装置のフレーム通過を許容すると決定することを特徴とする請求項2記載のポリサ装置。
The determining means includes
If the passage information stored by the storage means indicates that all policer devices have passed a frame during a predetermined number of cycles before the current cycle, even if a frame is output by the output means during the current cycle. 3. The policer apparatus according to claim 2, wherein the policer apparatus determines that the frame of the own apparatus is allowed to pass in the next period.
前記決定手段は、
前回のリソース供給タイミング前の前周期末において前記管理手段によって管理されるリソース蓄積量が0以上であった場合、今周期中に前記出力手段によってフレームが出力されても、次周期において自装置のフレーム通過を許容すると決定することを特徴とする請求項2記載のポリサ装置。
The determining means includes
If the accumulated amount of resources managed by the management means at the end of the previous period before the previous resource supply timing is 0 or more, even if a frame is output by the output means during the current period, 3. The policer device according to claim 2, wherein it is determined that frame passage is allowed.
前記決定手段は、
前記記憶手段によって記憶された通過情報が、今周期以前の所定数の連続した周期において同一のポリサ装置のみがフレームを通過させたことを示す場合、次周期において自装置のフレーム通過を許容すると決定することを特徴とする請求項1記載のポリサ装置。
The determining means includes
When the passage information stored by the storage means indicates that only the same policer device has passed a frame in a predetermined number of consecutive cycles before the current cycle, it is determined that the own device is allowed to pass the frame in the next cycle. The policer apparatus according to claim 1, wherein:
複数のポリサを備えるコンピュータによって実行される帯域制御プログラムであって、前記コンピュータに、
第1のポリサに固有のリソース供給タイミング間の各周期において第1のポリサおよび第2のポリサのそれぞれがフレームを通過させたか否かを示す通過情報を取得する第1取得ステップと、
第1のポリサまたは第2のポリサがフレームを通過させる際に消費されるリソースの蓄積量の変化を取得する第2取得ステップと、
前記第1取得ステップにて取得された通過情報または前記第2取得ステップにて取得されたリソース蓄積量の変化に基づいて、次回のリソース供給タイミング後の次周期において第1のポリサのフレーム通過を許容するか否かを決定する決定ステップと、
前記決定ステップにおける決定に従って、第1のポリサに入力されたフレームをリソース供給タイミング間の次周期において出力する出力ステップと
を実行させることを特徴とする帯域制御プログラム。
A bandwidth control program executed by a computer having a plurality of policers, the computer having:
A first acquisition step of acquiring passage information indicating whether or not each of the first policer and the second policer has passed a frame in each period between resource supply timings specific to the first policer;
A second acquisition step of acquiring a change in an accumulation amount of resources consumed when the first policer or the second policer passes the frame;
Based on the passage information acquired in the first acquisition step or the change in the amount of accumulated resources acquired in the second acquisition step, the first policer passes through the frame in the next cycle after the next resource supply timing. A decision step for deciding whether to allow,
According to the determination in the determination step, a bandwidth control program that executes an output step of outputting a frame input to the first policer in a next period between resource supply timings.
他のポリサ装置とともに同一装置内に設けられるポリサ装置における帯域制御方法であって、
自ポリサ装置に固有のリソース供給タイミング間の各周期において自ポリサ装置および他のポリサ装置のそれぞれがフレームを通過させたか否かを示す通過情報を取得する第1取得ステップと、
自ポリサ装置または他のポリサ装置がフレームを通過させる際に消費されるリソースの蓄積量の変化を取得する第2取得ステップと、
前記第1取得ステップにて取得された通過情報または前記第2取得ステップにて取得されたリソース蓄積量の変化に基づいて、次回のリソース供給タイミング後の次周期において自ポリサ装置のフレーム通過を許容するか否かを決定する決定ステップと、
前記決定ステップにおける決定に従って、自ポリサ装置に入力されたフレームをリソース供給タイミング間の次周期において出力する出力ステップと
を有することを特徴とする帯域制御方法。
A bandwidth control method in a policer device provided in the same device together with other policer devices,
A first acquisition step of acquiring passage information indicating whether or not each of the own policer device and another policer device has passed a frame in each period between resource supply timings specific to the own policer device;
A second acquisition step of acquiring a change in an accumulation amount of resources consumed when the own policer device or another policer device passes a frame;
Based on the passage information acquired in the first acquisition step or the change in the resource accumulation amount acquired in the second acquisition step, the own policer device is allowed to pass the frame in the next cycle after the next resource supply timing. A decision step for deciding whether or not to do;
A bandwidth control method comprising: an output step of outputting a frame input to the policer device in a next cycle between resource supply timings according to the determination in the determination step.
JP2008034500A 2008-02-15 2008-02-15 Policer device and bandwidth control program Expired - Fee Related JP4998311B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2008034500A JP4998311B2 (en) 2008-02-15 2008-02-15 Policer device and bandwidth control program
US12/285,693 US7864677B2 (en) 2008-02-15 2008-10-10 Policer device and bandwidth control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008034500A JP4998311B2 (en) 2008-02-15 2008-02-15 Policer device and bandwidth control program

Publications (2)

Publication Number Publication Date
JP2009194705A JP2009194705A (en) 2009-08-27
JP4998311B2 true JP4998311B2 (en) 2012-08-15

Family

ID=40955005

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008034500A Expired - Fee Related JP4998311B2 (en) 2008-02-15 2008-02-15 Policer device and bandwidth control program

Country Status (2)

Country Link
US (1) US7864677B2 (en)
JP (1) JP4998311B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015216618A (en) 2014-04-25 2015-12-03 富士通株式会社 Band control device and band control method

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1155292A (en) 1997-06-03 1999-02-26 Nippon Telegr & Teleph Corp <Ntt> Group communication rate control method network resource sharing method, rate control scheduling method and communication system
US7058063B1 (en) 1999-06-18 2006-06-06 Nec Corporation Pipelined packet scheduler for high speed optical switches
EP1154663B1 (en) * 2000-05-09 2008-09-24 Lucent Technologies Inc. Improved quality of service control in a mobile telecommunications network
JP3755420B2 (en) * 2001-05-16 2006-03-15 日本電気株式会社 Node equipment
US7382793B1 (en) * 2002-01-17 2008-06-03 Juniper Networks, Inc. Systems and methods for determining the bandwidth used by a queue
JP4163044B2 (en) * 2003-05-09 2008-10-08 古河電気工業株式会社 BAND CONTROL METHOD AND BAND CONTROL DEVICE THEREOF
WO2005066829A1 (en) * 2004-01-12 2005-07-21 Alcatel Optical Networks Israel Ltd. A method and systems for resource bunlding in a communications network
JP2005204002A (en) * 2004-01-15 2005-07-28 Fujitsu Ltd Packet relaying device
JP4550567B2 (en) 2004-12-13 2010-09-22 富士通株式会社 Policer burst size automatic setting method
ATE398878T1 (en) * 2006-04-20 2008-07-15 Alcatel Lucent METHOD AND APPARATUS FOR EFFICIENT WEIGHTED AND FAIR DATA MONITORING
US20080033908A1 (en) * 2006-08-04 2008-02-07 Nortel Networks Limited Method and system for data processing in a shared database environment

Also Published As

Publication number Publication date
US20090207729A1 (en) 2009-08-20
JP2009194705A (en) 2009-08-27
US7864677B2 (en) 2011-01-04

Similar Documents

Publication Publication Date Title
US8000247B2 (en) Bandwidth management apparatus
JP5088145B2 (en) Packet relay apparatus, control method, and packet relay program
US9722942B2 (en) Communication device and packet scheduling method
US8385354B2 (en) Scalable hardware mechanism to implement time outs for pending POP requests to blocking work queues
CN110545241B (en) Message processing method and device
US8457142B1 (en) Applying backpressure to a subset of nodes in a deficit weighted round robin scheduler
ATE466434T1 (en) METHOD AND SYSTEM FOR A TIME-INDEPENDENT DEFICIT-ROUND-ROBIN SCHEDULING
CN107615709A (en) SDN retransmission unit and controller unit
US8369219B2 (en) System and method for managing bandwidth
CN111512602A (en) Method, equipment and system for sending message
US8024445B2 (en) Socket management device and socket management method
US20170093739A1 (en) Apparatus to reduce a load for bandwidth control of packet flows
WO2011029358A1 (en) Method and apparatus for scheduling messages
CN106453127A (en) Token processing method and device
JP6275572B2 (en) Network system, management server
JP4998311B2 (en) Policer device and bandwidth control program
KR20120055946A (en) Method and apparatus for packet scheduling based on allocating fair bandwidth
JP5428203B2 (en) Data output device, communication device, and switch device
CN104461471A (en) Unified instruction scheduling and register allocating method on clustering VLIW processor
JP7127743B2 (en) Communication device, communication method and program
WO2014103014A1 (en) Relay device and relay method
Jiang et al. Adia: Achieving high link utilization with coflow-aware scheduling in data center networks
US20070086470A1 (en) Queue selection method and scheduling device
US20120057605A1 (en) Bandwidth Control Method and Bandwidth Control Device
JP2023531436A (en) Method and apparatus for queue scheduling

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100917

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120131

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120402

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120417

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120430

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150525

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees