JP2737735B2 - Polishing control device - Google Patents

Polishing control device

Info

Publication number
JP2737735B2
JP2737735B2 JP35443795A JP35443795A JP2737735B2 JP 2737735 B2 JP2737735 B2 JP 2737735B2 JP 35443795 A JP35443795 A JP 35443795A JP 35443795 A JP35443795 A JP 35443795A JP 2737735 B2 JP2737735 B2 JP 2737735B2
Authority
JP
Japan
Prior art keywords
cell
arrival time
policing
value
time
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
JP35443795A
Other languages
Japanese (ja)
Other versions
JPH09186699A (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.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP35443795A priority Critical patent/JP2737735B2/en
Publication of JPH09186699A publication Critical patent/JPH09186699A/en
Application granted granted Critical
Publication of JP2737735B2 publication Critical patent/JP2737735B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はATM(Async
hronous Transfer Mode)網のポ
リシング制御装置に関し、より詳しくはセルのトラフィ
ックに関する情報に基づいてセルの流量を制御するポリ
シング制御装置に関するものである。
[0001] The present invention relates to an ATM (Async).
More particularly, the present invention relates to a policing controller for controlling a flow rate of a cell based on information on traffic of the cell.

【0002】[0002]

【従来の技術】ATM網においては、ユーザが約束した
品質トラフィックを超えるセル(固定長パケット)を送
信する可能性があるため、ATM交換機におけるUPC
(Usage Parameter Control)
装置において各コネクション毎のセルの流量を監視し、
約束に適合する場合にはセルを通過させ、違反する場合
にはセルの廃棄やタギングを行うようにして、網を防衛
している。ここで、タギングとはセルの優先度を下げて
通過させる処理を言う。
2. Description of the Related Art In an ATM network, there is a possibility that cells (fixed-length packets) exceeding quality traffic promised by a user may be transmitted.
(Usage Parameter Control)
In the device, monitor the cell flow rate for each connection,
The network is defended by passing the cell if it meets the promise and discarding or tagging the cell if it violates. Here, tagging refers to a process of lowering the priority of a cell and passing the cell.

【0003】このようなポリシング制御を実現する装置
として、例えば図7に示すように、アドレス検出部1,
パラメータメモリ部3,演算用メモリ部4,セル制御部
6,基準時刻カウンタ20およびポリシング判定部50
から構成されるポリシング制御装置が考えられている。
ここで、パラメータメモリ部3は、ユーザが指定したセ
ル間隔(最小セル間隔)TおよびCDV(Cell D
eley Variance)許容値τをコネクション
毎に保持するメモリ、演算用メモリ部4は、ポリシング
判定に用いる変数値である予想到着時刻TATを次のセ
ル到着までコネクション毎に保持するメモリである。ま
た、図8は図7の動作フローチャートである。図7のポ
リシング制御装置は以下のように動作する。
As an apparatus for realizing such policing control, for example, as shown in FIG.
Parameter memory unit 3, arithmetic memory unit 4, cell control unit 6, reference time counter 20, and policing determination unit 50
Has been considered.
Here, the parameter memory unit 3 stores a cell interval (minimum cell interval) T and a CDV (Cell D) designated by the user.
The memory 4 for storing the permissible value τ for each connection, and the memory for operation 4 is a memory for storing the expected arrival time TAT, which is a variable value used for policing determination, for each connection until the next cell arrives. FIG. 8 is an operation flowchart of FIG. The policing control device of FIG. 7 operates as follows.

【0004】新たなセルが到着すると(S21)、アド
レス検出部1はそのセルのコネクションアドレスを検出
して、パラメータメモリ部3および演算用メモリ部4か
らそのコネクションに対応するセル間隔T(Ti とす
る),CDV許容値τ(τi とする)および予想到着時刻
TAT(TATi とする)を読み出し、他方ポリシング
判定部50はその時点の基準時刻カウンタ20の出力、
つまりセル到着時刻taを読み出す(S22)。次に、
ポリシング判定部50は、パラメータメモリ部3から読
み出されたセル間隔Ti,CDV許容値τi と、演算用メ
モリ部4から読み出された予想到着時刻TATi と、基
準時刻カウンタ20から読み出したセル到着時刻taと
に基づき、以下のようなポリシング判定を行う。
When a new cell arrives (S21), the address detector 1 detects the connection address of the cell, and sends a cell interval T (T i) corresponding to the connection from the parameter memory unit 3 and the operation memory unit 4. to), and CDV tolerance tau (tau i) and expected arrival time and TAT (TAT i) reads out, while policing determination unit 50 outputs the reference time counter 20 at that time,
That is, the cell arrival time ta is read (S22). next,
The policing determination unit 50 reads the cell interval T i read from the parameter memory unit 3 , the CDV allowable value τ i , the expected arrival time TAT i read from the operation memory unit 4, and the reference time counter 20. The following policing determination is performed based on the cell arrival time ta.

【0005】セル到着時刻taが予想到着時刻TATi
より遅いか否かを調べ(S23)、遅ければ適合すると
判定し(S23でYES)、演算用メモリ部4の予想到
着時刻TATi を、セル到着時刻taとセル間隔Ti
の加算値で更新する(S25)。
When the cell arrival time ta is equal to the expected arrival time TAT i
It is checked whether or not it is later (S23). If it is later, it is determined that it is suitable (YES in S23), and the expected arrival time TAT i of the arithmetic memory unit 4 is calculated by adding the cell arrival time ta and the cell interval T i. Update (S25).

【0006】セル到着時刻taが予想到着時刻TATi
より遅くない場合(S23でNO)、セル到着時刻ta
にCDV許容値τi を加算した値に相当する時刻が予想
到着時刻TATi より遅ければ(S24でYES)、適
合すると判定し、演算用メモリ部4の予想到着時刻TA
i にセル間隔Ti を加算する(S26)。それ以外の
場合は、違反すると判定し(S24でNO)、演算用メ
モリ部4の予想到着時刻TATi は元の値のままとする
(S27)。
When the cell arrival time ta is equal to the expected arrival time TAT i
If it is not later (NO in S23), the cell arrival time ta
If the time corresponding to the value obtained by adding the CDV allowable value τ i to the expected arrival time TAT i is later than the expected arrival time TAT i (YES in S24), it is determined that the time is suitable, and the expected arrival time TA
Adding the cell interval T i to T i (S26). Otherwise, it is determined that violate (NO in S24), the expected arrival time TAT i of the arithmetic memory unit 4 has been left original value (S27).

【0007】セル制御部6は、ポリシング判定部50の
判定結果に基づき、適合と判定されたセルは通過させ、
違反と判定されたセルは廃棄またはタギングを行う。
The cell control unit 6 allows cells determined to be conforming to pass based on the determination result of the policing determination unit 50,
The cell determined to be in violation is discarded or tagged.

【0008】以上のポリシング制御は、GCRA(Ge
neric Cell RateAlgorithm)
の一つであるVSA(Virtual Schedul
ing Algorithm)に沿った例を示してお
り、LBA(Leaky Bucket Algori
thm)による場合、演算用メモリ部4には、前セルの
到着時刻とバケツカウンタ値とが保持され、またポリシ
ング判定部50の判定処理もそれに応じて異なるものと
なる。
The above policing control is performed by GCRA (Ge
(neric Cell RateAlgorithm)
VSA (Virtual Schedul)
An example is shown along an LBA (Leaky Bucket Algorithm).
thm), the operation memory unit 4 holds the arrival time of the previous cell and the bucket counter value, and the judgment processing of the policing judgment unit 50 differs accordingly.

【0009】[0009]

【発明が解決しようとする課題】ところで、基準時刻カ
ウンタ20は有限なビット数のカウンタであるから、カ
ウント値が最大値に達して再び0に戻ると、疑似的に時
刻の逆転が起きる。時刻の逆転が生じない場合には図8
のステップS23の算術演算は常に正しく実行できる
が、若し時刻の逆転が生じているとステップS23の算
術演算の結果が正しいとは保証されない。即ち、ポリシ
ング判定を誤る可能性がある。
Since the reference time counter 20 is a counter having a finite number of bits, when the count value reaches the maximum value and returns to 0 again, the time reversely occurs. FIG. 8 shows the case where the time is not reversed.
The arithmetic operation in step S23 can always be executed correctly, but if the time is reversed, the result of the arithmetic operation in step S23 cannot be guaranteed to be correct. That is, there is a possibility that the policing determination is incorrect.

【0010】そこで、このような問題点を解決するため
に基準時刻カウンタ20は運用時間中には0に戻らない
ような、非常に大きなビット数のカウンタが使用され
る。従って、基準時刻カウンタ20のハードウェア量が
多くなるばかりか、基準時刻を用いて行うポリシング判
定も大きなビット幅の演算回路が必要となり、また、ポ
リシング判定で用いる予想到着時刻といった変数値を次
のセル到着時まで保存するための演算用メモリ部4も大
きな容量のものが必要になるという問題点があった。
Therefore, in order to solve such a problem, a counter having a very large number of bits is used so that the reference time counter 20 does not return to 0 during the operation time. Therefore, not only does the amount of hardware of the reference time counter 20 increase, but also a policing determination using the reference time requires an arithmetic circuit having a large bit width. There is a problem that a large-capacity arithmetic memory unit 4 for storing until the cell arrives is required.

【0011】そこで本発明の目的は、基準時刻カウンタ
のカウント値が最大値から0の境界を超えて疑似的に時
刻の逆転が起きた場合であってもポリシング判定を正確
に行えるポリシング制御装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a policing control device which can accurately perform policing determination even when the count value of the reference time counter exceeds the boundary of 0 from the maximum value and the time reverses in a pseudo manner. To provide.

【0012】なお、本発明と類似する技術として、特開
平5−183570号公報に記載されたポリシング制御
方式がある。しかし、この従来技術は、基準時刻カウン
タがオーバーフローしたか否かを監視してその監視結果
を判定材料に加えるものであり、オーバーフロー検出機
能が必要となる。また、オーバーフロー検出無しにポリ
シング判定する構成も開示されているが、その場合には
基準時刻カウンタを各コネクション毎に独立に持たせる
必要があり、ハードウェア量が嵩む。本発明では、オー
バーフロー検出機能を必要とせず、また、基準時刻カウ
ンタを複数のコネクションで共用できる点で上記従来方
式のものと相違している。
Incidentally, as a technique similar to the present invention, there is a polishing control method described in Japanese Patent Application Laid-Open No. 5-183570. However, this conventional technique monitors whether or not the reference time counter overflows, and adds the monitoring result to the judgment material, and requires an overflow detection function. Further, a configuration in which policing is determined without overflow detection is also disclosed. In that case, however, it is necessary to provide a reference time counter independently for each connection, which increases the amount of hardware. The present invention differs from the above-described conventional system in that the overflow detection function is not required and the reference time counter can be shared by a plurality of connections.

【0013】[0013]

【課題を解決するための手段】本発明は、ATM網にお
いてコネクション上のセルをポリシング制御する装置に
おいて、ユーザが指定したセル間隔およびCDV許容値
を保持するパラメータメモリ部と、前記セル間隔および
前記CDV許容値の和の最大値に相当する時間の少なく
とも4倍以上の時間を1周期とする基準時刻カウンタ
と、ポリシング判定に用いる変数値を次のセル到着まで
保持する演算用メモリ部と、少なくとも前記最大値に相
当する時間以上の一定時間毎に交互にセットされ、且
つ、ポリシング判定で参照されて適合と判定された時点
でリセットされる第1および第2のフラグを保持するフ
ラグメモリ部と、新たなセルの到着毎に、前記基準時刻
カウンタの現在時刻,前記パラメータメモリ部のセル間
隔およびCDV許容値,前記演算用メモリ部の変数値な
らびに前記フラグメモリ部の第1および第2のフラグを
参照して、当該到着したセルのポリシング判定を行うポ
リシング判定部と、該ポリシング判定部で適合と判定さ
れたセルは通過させ、違反と判定されたセルは廃棄また
はタギングを行うセル制御部とを備え、且つ、前記ポリ
シング判定部は、詳細なポリシング判定に先立って前記
第1および第2のフラグが共にセットされているか否か
を調べ、共にセットされているときは適合と判定する構
成を有している。
According to the present invention, there is provided an apparatus for policing a cell on a connection in an ATM network, comprising: a parameter memory unit for holding a cell interval and a CDV allowable value designated by a user; A reference time counter whose one cycle is at least four times or more the time corresponding to the maximum value of the sum of CDV allowable values, an operation memory unit that holds a variable value used for policing determination until the next cell arrives, A flag memory unit that holds first and second flags that are set alternately at regular intervals equal to or longer than the time corresponding to the maximum value, and that are reset when they are determined to be appropriate by reference to policing determination; Every time a new cell arrives, the current time of the reference time counter, the cell interval of the parameter memory unit, and the CDV allowable value A policing determination unit that performs policing determination of the arriving cell with reference to the variable value of the arithmetic memory unit and the first and second flags of the flag memory unit, and the policing determination unit determines that the cell is compatible. A cell controller for passing cells and discarding or tagging cells determined to be in violation; and the policing determination unit sets both the first and second flags prior to detailed policing determination. It is configured to check whether or not they are set, and to judge that they are compatible when both are set.

【0014】このように、セル間隔およびCDV許容値
の和の最大値に相当する時間の少なくとも4倍以上の時
間を1周期とする基準時刻カウンタを使用し、また、少
なくとも前記最大値に相当する時間以上の一定時間毎に
交互にセットされ、且つ、適合とのポリシング判定時点
でリセットされる第1および第2のフラグを用いると、
ポリシング判定時に第1および第2のフラグが共にセッ
トされていれば、セル間隔およびCDV許容値の和の最
大値に相当する時間が、前セル到着から経過しているこ
とが判明する為に、速やかに通過と判定し得る。また、
第1および第2のフラグの少なくとも一方がセットされ
ていない場合であっても、ポリシング判定部の判定の演
算範囲が基準時刻カウンタの周期の1/2未満に収まる
ので、基準時刻カウンタが最大値から0の境界を超える
時刻の逆転が生じていても、正常に判定できる。これ
は、或る時刻Aとその後の或る時刻Bとの差が基準時刻
カウンタの周期の1/2未満であることが保証されてい
る場合、例えばA,Bの大小判定は、2進数で表現され
たA,Bの差分値の最上位ビットの符号で判定できるか
らである。
As described above, the reference time counter having one cycle of at least four times the time corresponding to the maximum value of the sum of the cell interval and the allowable value of the CDV is used, and at least corresponds to the maximum value. Using the first and second flags that are set alternately at regular intervals of time or longer and that are reset at the time of policing determination of conformity,
If both the first and second flags are set at the time of policing determination, it becomes clear that the time corresponding to the maximum value of the sum of the cell interval and the CDV allowable value has elapsed since the arrival of the previous cell. It can be determined that the vehicle has passed immediately. Also,
Even if at least one of the first and second flags is not set, the operation range of the judgment by the policing judgment unit is less than 1/2 of the period of the reference time counter. Even if the time that exceeds the boundary between 0 and 0 is reversed, it can be determined normally. This is because when it is guaranteed that the difference between a certain time A and a certain time B thereafter is less than の of the period of the reference time counter, for example, the magnitude determination of A and B is performed in binary numbers. This is because it can be determined by the sign of the most significant bit of the expressed difference value between A and B.

【0015】ここで、本発明のポリシング制御装置は、
GCRAのVSAにもLBAにも適用可能である。演算
用メモリ部に保持する変数値は、VSAに適用する場合
は予想到着時刻が使用され、LBAに適用する場合はバ
ケツカウンタ値および前セルの到着時刻が使用される。
Here, the polishing control device of the present invention
It is applicable to both GCRA VSA and LBA. As the variable value held in the operation memory unit, the expected arrival time is used when applied to VSA, and the bucket counter value and the arrival time of the previous cell are used when applied to LBA.

【0016】そして、前記変数値として予想到着時刻を
使用する構成にあっては、前記ポリシング判定部は、前
記第1および第2のフラグが共にセットされている場
合、セルの到着時刻と前記セル間隔との和を新たな予想
到着時刻として前記演算用メモリ部に格納し、前記第1
および第2のフラグの少なくとも一方がセットされてい
ない場合、セルの到着時刻が前記予想到着時刻より遅い
ときは適合と判定すると共にセルの到着時刻と前記セル
間隔との和を新たな予想到着時刻として前記演算用メモ
リ部に格納し、セルの到着時刻が前記予想到着時刻より
遅くないときは、セルの到着時刻と前記CDV許容値と
の和に相当する時刻が前記予想到着時刻より遅ければ適
合と判定すると共に前記予想到着時刻に前記セル間隔を
加えた値を新たな予想到着時刻として前記演算用メモリ
部に格納し、セルの到着時刻と前記CDV許容値との和
に相当する時刻が前記予想到着時刻より遅くなければ違
反と判定する構成とされる。
In the configuration in which the expected arrival time is used as the variable value, when the first and second flags are set together, the policing determination unit determines whether the cell arrival time and the cell arrival time are equal to each other. The sum with the interval is stored in the arithmetic memory unit as a new estimated arrival time, and the first
If at least one of the flag and the second flag is not set, when the arrival time of the cell is later than the expected arrival time, it is determined that the cell is compatible, and the sum of the arrival time of the cell and the cell interval is calculated as the new expected arrival time. When the arrival time of the cell is not later than the expected arrival time, it is suitable if the time corresponding to the sum of the arrival time of the cell and the CDV allowable value is later than the expected arrival time. And a value obtained by adding the cell interval to the expected arrival time is stored in the calculation memory unit as a new expected arrival time, and the time corresponding to the sum of the cell arrival time and the CDV allowable value is the If it is not later than the expected arrival time, it is determined to be a violation.

【0017】また、前記変数値としてバケツカウンタ値
および前セルの到着時刻を使用する構成にあっては、前
記ポリシング判定部は、前記第1および第2のフラグが
共にセットされている場合、今回のセル到着時刻および
前記セル間隔を新たな前セルの到着時刻およびバケツカ
ウンタ値として前記演算用メモリ部に格納し、前記第1
および第2のフラグの少なくとも一方がセットされてい
ない場合、前記前セルの到着時刻と今回のセルの到着時
刻との時間差を前記バケツカウンタ値から引いた値X’
が0より小さいときは適合と判定すると共に今回のセル
到着時刻および前記セル間隔を新たな前セルの到着時刻
およびバケツカウンタ値として前記演算用メモリ部に格
納し、前記X’が0より小さくないときは、前記X’が
前記CDV許容値より大きくなければ適合と判定すると
共に今回のセル到着時刻および前記X’に前記セル間隔
を加算した値を新たな前セルの到着時刻およびバケツカ
ウンタ値として前記演算用メモリ部に格納し、前記X’
が前記CDV許容値より大きければ違反と判定する構成
とされる。
Further, in the configuration using the bucket counter value and the arrival time of the previous cell as the variable values, the policing determination unit determines whether or not the first and second flags are set at the present time. The cell arrival time and the cell interval are stored in the calculation memory unit as the arrival time and bucket counter value of a new previous cell, and the first
And when at least one of the second flag and the second flag is not set, a value X 'obtained by subtracting the time difference between the arrival time of the previous cell and the arrival time of the current cell from the bucket counter value.
Is smaller than 0, the cell is determined to be compatible, and the current cell arrival time and the cell interval are stored in the arithmetic memory unit as the new previous cell arrival time and bucket counter value, and the X 'is not smaller than 0. If X 'is not larger than the CDV allowable value, it is determined that the cell is compatible with the current cell arrival time and the value obtained by adding the cell interval to X' as the new previous cell arrival time and bucket counter value. Stored in the operation memory unit, and the X ′
Is larger than the CDV allowable value, it is determined to be a violation.

【0018】また、本発明においては、ATM網におい
て多重化された1種以上のコネクション上のセルのトラ
フィックを制御するポリシング制御装置において、ユー
ザが指定したセル間隔およびCDV許容値をコネクショ
ン毎に保持するパラメータメモリ部と、前記セル間隔お
よび前記CDV許容値の和の最大値に相当する時間の少
なくとも4倍以上の時間を1周期とする基準時刻カウン
タと、ポリシング判定に用いる変数値を次のセル到着ま
でコネクション毎に保持する演算用メモリ部と、少なく
とも前記最大値に相当する時間以上の一定時間毎に交互
にセットされ、且つ、ポリシング判定で参照されて適合
と判定された時点でリセットされる第1および第2のフ
ラグをコネクション毎に保持するフラグメモリ部と、新
たなセルの到着毎に、コネクションアドレスを検出して
前記パラメータメモリ部,前記演算用メモリ部および前
記フラグメモリ部から該当するセル間隔,CDV許容
値,変数値,第1および第2のフラグを読み出すアドレ
ス検出部と、該アドレス検出部で読み出されたセル間
隔,CDV許容値,変数値,第1および第2のフラグ
と、前記基準時刻カウンタから取得したセル到着時刻と
を参照して、到着したセルのポリシング判定を行うポリ
シング判定部と、該ポリシング判定部で適合と判定され
たセルは通過させ、違反と判定されたセルは廃棄または
タギングを行うセル制御部とを備え、且つ、前記ポリシ
ング判定部は、詳細なポリシング判定に先立って前記第
1および第2のフラグが共にセットされているか否かを
調べ、共にセットされているときは適合と判定する構成
を有している。
Further, according to the present invention, in a policing control device for controlling traffic of cells on one or more types of connections multiplexed in an ATM network, a cell interval and a CDV tolerance specified by a user are held for each connection. A parameter memory unit, a reference time counter having one cycle at least four times as long as the time corresponding to the maximum value of the sum of the cell interval and the CDV allowable value, and a variable value used for policing determination in the next cell. An operation memory unit that is held for each connection until arrival, and set alternately at regular intervals at least equal to or longer than the time corresponding to the maximum value, and are reset at the time when it is determined by the policing determination that a match is found. A flag memory unit for holding the first and second flags for each connection, and for each new cell arrival An address detection unit for detecting a connection address and reading out a corresponding cell interval, a CDV allowable value, a variable value, and first and second flags from the parameter memory unit, the operation memory unit and the flag memory unit; With reference to the cell interval, CDV allowable value, variable value, first and second flags read by the address detection unit, and the cell arrival time obtained from the reference time counter, policing judgment of the arriving cell is performed. A policing determination unit to perform, and a cell control unit that discards or tags a cell determined as conforming by the policing determination unit, and discards or determines a cell determined to be in violation. Prior to the policing determination, it is checked whether the first and second flags are set together. It has a configuration in which a constant.

【0019】そして、好ましい実施例においては、各コ
ネクション毎に、前記第1および第2のフラグをセット
する時刻をずらすように構成されている。
In a preferred embodiment, the time at which the first and second flags are set is shifted for each connection.

【0020】[0020]

【発明の実施の形態】次に本発明の実施の形態の例につ
いて図面を参照して詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0021】図1は本発明の一実施例のポリシング制御
装置のブロック図であり、GCRAのVSAに沿うアル
ゴリズムによってポリシング制御する例を示す。同図に
示すように、本実施例のポリシング制御装置は、アドレ
ス検出部1と、基準時刻カウンタ2と、パラメータメモ
リ部3と、演算用メモリ部4と、ポリシング判定部5
と、セル制御部6と、フラグメモリ部7と、フラグセッ
ト部8とで構成されている。
FIG. 1 is a block diagram of a policing control apparatus according to an embodiment of the present invention, and shows an example in which policing control is performed by an algorithm according to the VSA of GCRA. As shown in FIG. 1, the policing control device according to the present embodiment includes an address detection unit 1, a reference time counter 2, a parameter memory unit 3, an operation memory unit 4, a policing determination unit 5,
, A cell control unit 6, a flag memory unit 7, and a flag setting unit 8.

【0022】パラメータメモリ部3は、ポリシング判定
のためのユーザが指定したセル間隔(最小セル間隔)T
およびCDV許容値τをコネクションアドレス毎に保持
する部分である。コネクションを1からnとすると、パ
ラメータメモリ部3には、コネクションi(i=1〜
n)に対応するセル間隔Ti,CDV許容値τi が保持さ
れている。
The parameter memory unit 3 stores a cell interval (minimum cell interval) T specified by a user for policing determination.
And a CDV allowable value τ for each connection address. Assuming that the connections are 1 to n, the parameter memory unit 3 stores the connection i (i = 1 to 1).
The cell interval T i and the CDV allowable value τ i corresponding to n) are held.

【0023】演算用メモリ部4は、ポリシング判定に用
いるために次のセル到着まで変数値をコネクションアド
レス毎に保持する部分である。本実施例ではVSAを対
象としているため、変数値としては予想到着時刻TAT
が用いられる。即ち、各コネクションに1対1に対応す
る予想到着時刻TATi (i=1〜n)が保持されてい
る。
The operation memory section 4 is a section for holding a variable value for each connection address until the next cell arrives for use in policing determination. In the present embodiment, the target arrival time TAT is used as the variable value because VSA is targeted.
Is used. That is, each connection holds an expected arrival time TAT i (i = 1 to n) corresponding to one to one.

【0024】基準時刻カウンタ2は、1セル単位でカウ
ントアップする所定周期(TT)の基準時刻発生回路を
構成する。ここで、基準時刻カウンタ2は最大値に達す
ると、0に戻って再びカウントアップを繰り返すカウン
タである。また、基準時刻カウンタ2の1周期TTは、
(セル間隔Ti の最大値+CDV許容値τi の最大値)
の4倍以上となるように、基準時刻カウンタ2のビット
数が定められている。なお、以下では基準時刻カウンタ
2で発生される現在時刻をtaと表記する。
The reference time counter 2 forms a reference time generation circuit of a predetermined cycle (TT) that counts up in units of one cell. Here, when the reference time counter 2 reaches the maximum value, it returns to 0 and repeats counting up again. One cycle TT of the reference time counter 2 is
(Maximum value of cell interval T i + maximum value of CDV allowable value τ i )
The number of bits of the reference time counter 2 is determined so as to be four times or more. Hereinafter, the current time generated by the reference time counter 2 is described as ta.

【0025】フラグメモリ部7は、第1のフラグf0と
第2のフラグf1とをコネクションアドレス毎に保持す
る部分である。以下、コネクション毎の第1のフラグを
f0i ,第2のフラグをf1i と表記する。1つのコネ
クションに対応する第1及び第2のフラグf0i,f1i
は、(セル間隔Ti の最大値+CDV許容値τi の最大
値)以上の一定時間毎に交互にセットされる。本実施例
では、基準時刻カウンタ2の周期TTの1/4周期毎に
交互にセットするようにしている。このフラグセット処
理はフラグセット部8が行う。また、1つのコネクショ
ンに対応する第1及び第2のフラグf0i,f1i は、そ
のコネクションを通じてセルが到着してポリシング判定
のためにポリシング判定部でその第1及び第2のフラグ
f0i,f1i が参照され、適合と判定された時点で共に
リセットされる。このフラグリセット処理はポリシング
判定部5が行う。
The flag memory section 7 is a section for holding a first flag f0 and a second flag f1 for each connection address. Hereinafter, the first flag for each connection is referred to as f0 i , and the second flag is referred to as f1 i . First and second flags f0 i, f1 i corresponding to one connection
Are set alternately at regular intervals equal to or more than (the maximum value of the cell interval T i + the maximum value of the CDV allowable value τ i ). In the present embodiment, the setting is made alternately every 4 cycle of the cycle TT of the reference time counter 2. This flag setting process is performed by the flag setting unit 8. Also, the first and second flags f0 i, f1 i corresponding to one connection are determined by the policing determination unit for the policing determination when the cell arrives through the connection and the first and second flags f0 i, f1 i, f1 i. f1 i is referred to, and both are reset when it is determined to be compatible. This flag reset processing is performed by the policing determination unit 5.

【0026】フラグセット部8は、前述したようにフラ
グメモリ部7のコネクション毎の第1および第2のフラ
グf0i,f1i のセット処理を行う部分である。本実施
例では、フラグセット処理の集中を避けるために、各コ
ネクション毎にセットする時刻をずらしている。この方
法には各種の方法が考えられるが、本実施例では、第1
のフラグf0i は、(TT*0/4)+xi,(TT*2
/4)+xi でセットし、第2のフラグf1i は、(T
T*1/4)+xi,(TT*3/4)+xi でセットし
ている。ここで、xi は、コネクション毎で異なる値と
なるように割り振った値で、0,1,2,…,の値をと
る。例えば、コネクションアドレス5番のコネクション
にx5 =5を割り振った場合、その第1のフラグf05
は基準時刻カウンタ2の現在時刻taが(TT*0/
4)+5,(TT*2/4)+5になったタイミングで
セットされ、その第2のフラグf15 は基準時刻カウン
タ2の現在時刻taが(TT*1/4)+5,(TT*
3/4)+5になったタイミングでセットされる。ま
た、コネクションアドレス6番のコネクションにx6
6を割り振った場合、その第1のフラグf06 は基準時
刻カウンタ2の現在時刻taが(TT*0/4)+6,
(TT*2/4)+6になったタイミングでセットさ
れ、その第2のフラグf16 は基準時刻カウンタ2の現
在時刻taが(TT*1/4)+6,(TT*3/4)
+6になったタイミングでセットされる。
The flag setting section 8 is a section for performing the setting processing of the first and second flags f0 i and f1 i for each connection of the flag memory section 7 as described above. In the present embodiment, in order to avoid concentration of the flag setting process, the set time is shifted for each connection. Various methods are conceivable for this method.
The flag f0 i of (TT * 0/4) + xi , (TT * 2
/ 4) + set by x i, a second flag f1 i is, (T
T * 1/4) + x i, has been set at (TT * 3/4) + x i. Here, x i is a value allocated to a different value at each connection, 0, 1, 2, ..., take the value. For example, when x 5 = 5 is assigned to the connection with the connection address No. 5, the first flag f0 5
Indicates that the current time ta of the reference time counter 2 is (TT * 0 /
4) +5, (TT * 2 /4) is set at the timing becomes +5, the second flag f1 5 is the current time ta of the reference time counter 2 (TT * 1/4) +5 , (TT *
3/4) +5 is set at the timing. Further, x 6 =
If you allocated a 6, the first flag f0 6 is the current time ta of the reference time counter 2 (TT * 0/4) +6 ,
(TT * 2/4) is set at the timing becomes +6, the second flag f1 6 is the current time ta of the reference time counter 2 (TT * 1/4) +6 , (TT * 3/4)
It is set at the timing of +6.

【0027】アドレス検出部1は、セルの到着毎に、コ
ネクションアドレスを検出してパラメータメモリ部3,
演算用メモリ部4およびフラグメモリ部7から、そのコ
ネクションアドレスに対応するセル間隔Ti,CDV許容
値τi,予想到着時刻TATi,第1および第2のフラグf
i,f1i を読み出す手段である。また、新たなセルが
到着した旨をポリシング判定部5に通知する。
The address detecting section 1 detects a connection address every time a cell arrives, and detects a connection address.
From the arithmetic memory unit 4 and the flag memory unit 7, the cell interval T i corresponding to the connection address , the CDV allowable value τ i, the expected arrival time TAT i, the first and second flags f
0 i, f1 i is a means for reading out. Further, it notifies the policing determination unit 5 that a new cell has arrived.

【0028】ポリシング判定部5は、セルの到着毎に、
その時点の現在時刻taを基準時刻カウンタ2から取得
し、このセル到着時刻taと、パラメータメモリ部3,
演算用メモリ部4およびフラグメモリ部7から読み出さ
れたセル間隔Ti,CDV許容値τi,予想到着時刻TAT
i,第1および第2のフラグf0i,f1i とに基づいてポ
リシング判定を行う手段である。判定結果は、適合と違
反の2通りがあり、セル制御部6に通知される。
The policing determination unit 5 sets the following every time a cell arrives.
The current time ta at that time is obtained from the reference time counter 2, and the cell arrival time ta and the parameter memory unit 3,
Cell interval T i read from operation memory unit 4 and flag memory unit 7 , CDV allowable value τ i, expected arrival time TAT
i, a means for making a policing determination based on the first and second flags f0 i and f1 i . There are two kinds of judgment results, conformity and violation, and the cell control unit 6 is notified.

【0029】セル制御部6は、適合とは判定されたセル
は通過させ、違反と判定されたセルは廃棄またはタギン
グを行う部分である。
The cell control section 6 is a section for passing a cell determined to be conforming, and for discarding or tagging a cell determined to be in violation.

【0030】図2は図1の実施例の動作フローチャート
である。以下、図1および図2を参照して本実施例の動
作を説明する。
FIG. 2 is an operation flowchart of the embodiment of FIG. Hereinafter, the operation of this embodiment will be described with reference to FIGS.

【0031】新たなセルが到着すると(S1)、アドレ
ス検出部1はそのセルのコネクションアドレスを検出し
て、パラメータメモリ部3,演算用メモリ部4,フラグ
メモリ部7からそのコネクションアドレスに対応するセ
ル間隔Ti,CDV許容値τi,予想到着時刻TATi,第1
及び第2のフラグf0i,f1i を読み出し、他方ポリシ
ング判定部5はセル到着時刻taを基準時刻カウンタ2
から読み出す(S2)。
When a new cell arrives (S1), the address detection unit 1 detects the connection address of the cell and responds to the connection address from the parameter memory unit 3, the operation memory unit 4, and the flag memory unit 7. Cell interval T i, CDV tolerance τ i, expected arrival time TAT i, first
And the second flags f0 i and f1 i are read, and the policing determination unit 5 compares the cell arrival time ta with the reference time counter 2
(S2).

【0032】次に、ポリシング判定部5は、セル到着時
刻ta,セル間隔Ti,CDV許容値τi,予想到着時刻T
ATi,第1および第2のフラグf0i,f1i に基づいて
ポリシング判定を行う。この判定では、先ず、第1およ
び第2のフラグf0i,f1iをチェックする(S3)。
そして、どちらのフラグも共にセットされていれば(S
3でYES)、充分なセル間隔が空いているため、適合
(通過)と判定する(S6)。これは、第1および第2
のフラグf0i,f1i が共にセットされているというこ
とは、基準時刻カウンタ2の周期TTの1/4周期の時
間が前セル到着から経過していることが明らかであり、
そして、周期TTの1/4周期は(セル間隔の最大値+
CDV許容値の最大値)以上に設定されているからであ
る。
Next, the policing determination unit 5 determines the cell arrival time ta, cell interval T i, CDV allowable value τ i, expected arrival time T
A policing decision is made based on AT i and the first and second flags f0 i, f1 i . In this determination, first, the first and second flags f0 i and f1 i are checked (S3).
If both flags are set (S
3 (YES at 3), since there is a sufficient cell interval, it is determined to be compatible (passed) (S6). This is the first and second
That the flags f0 i and f1 i are set together, it is clear that the period of 1 / cycle of the cycle TT of the reference time counter 2 has elapsed since the arrival of the previous cell.
Then, 1 / of the period TT is (the maximum value of the cell interval +
This is because it is set to be equal to or more than the maximum allowable value of the CDV.

【0033】他方、フラグチェックの結果、第1および
第2のフラグf0i,f1i の少なくとも一方がセットさ
れていなかった場合(S3でNO)、図8のステップS
23,S24と同様のチェックを行って判定を下す(S
4,S5)。ここで、第1および第2のフラグf0i,
i が両方セットされていない最悪のケースは、周期T
Tの1/2−1のセル間隔であるが、この場合であって
もポリシング判定部5の判定の演算範囲が周期TTの1
/2未満に収まる。そして、2つの時刻の差が周期TT
の1/2未満であれば、その大小判定は、2つの時刻を
2進数で表現した場合の減算結果の最上位ビットの符号
で判定できるので、ステップS4の判定を正しく行うこ
とが可能である。従って、ステップS4では、例えば、
2進数で表現されたtaから2進数で表現されたTAT
i を減算し、その最上位ビットの値が0のときはtaの
方が大きいと判定する。
On the other hand, as a result of the flag check, if at least one of the first and second flags f0 i and f1 i has not been set (NO in S3), step S in FIG.
23 and S24 are checked to make a determination (S
4, S5). Here, the first and second flags f0 i, f
The worst case where 1 i is not both set is the period T
Although the cell interval is 1 / 2-1 of T, even in this case, the operation range of the judgment by the policing judgment unit 5 is 1 in the period TT.
/ 2 or less. The difference between the two times is the period TT
Is smaller than の, the magnitude can be determined by the sign of the most significant bit of the subtraction result when the two times are represented by a binary number, so that the determination in step S4 can be performed correctly. . Therefore, in step S4, for example,
TAT expressed in binary from ta expressed in binary
i is subtracted, and when the value of the most significant bit is 0, it is determined that ta is larger.

【0034】なお、ステップS3,S4のチェックで適
合と判定した場合、ポリシング判定部5は、演算用メモ
リ部4の予想到着時刻TATi を、ta+Ti の値に書
き換えると共に、第1および第2のフラグf0i,f1i
を共にリセットする(S6)。また、ステップS5のチ
ェックで適合と判定した場合、ポリシング判定部5は、
演算用メモリ部4の予想到着時刻TATi を、TATi
+Ti の値に書き換えると共に、第1および第2のフラ
グf0i,f1i を共にリセットする(S7)。更に、ス
テップS5のチェックで違反と判定した場合、ポリシン
グ判定部5は、演算用メモリ部4の予想到着時刻TAT
i をそのままにし、かつ第1および第2のフラグf0i,
f1i はリセットしない(S8)。そして、セル制御部
6は、適合とは判定されたセルは通過させ、違反と判定
されたセルは廃棄またはタギングを行う。
If the checks at steps S3 and S4 show a match, the policing determination unit 5 rewrites the expected arrival time TAT i in the operation memory unit 4 to the value of ta + T i , and simultaneously sets the first and second values. Flags f0 i, f1 i
Are reset together (S6). In addition, when the policing determination unit 5 determines that there is a match in the check in step S5,
The expected arrival time TAT i of the operation memory unit 4 is calculated as TAT i
+ T i rewrites the value of both resets the first and second flags f0 i, f1 i (S7) . Further, when the policing determination unit 5 determines that there is a violation in the check in step S5, the policing determination unit 5 calculates the expected arrival time TAT of the arithmetic memory unit 4.
i and the first and second flags f0 i,
f1 i is not reset (S8). Then, the cell control unit 6 passes the cell determined to be compatible, and discards or tags the cell determined to be in violation.

【0035】図3は図1の実施例のタイムチャートの一
例である。ここでは、セル間隔Tの最大値を2の21
乗、CDV許容値τの最大値を2の26乗として、これ
から、 Tmax +τmax <TT*1/4 となるよう、基準時刻カウンタ2の周期TTを2の29
乗に設定している。また、図示の例では、×の印を付し
てあるように、或るコネクションに対応する第1のフラ
グf0i はTTの0/4,2/4でセットされ、第2の
フラグf1i はTTの1/4,3/4でセットされる。
即ち、前述したxi の値が0の場合を示す。因みに、コ
ネクション数が例えば4096個の場合、図4に示すよ
うにxi としては0から4095の値をとる。
FIG. 3 is an example of a time chart of the embodiment of FIG. Here, the maximum value of the cell interval T is set to 2
The maximum value of the CDV allowable value τ is set to 2 to the 26th power. From this, the period TT of the reference time counter 2 is set to 2 to 29 so that T max + τ max <TT * 1 /.
It is set to the power. In the illustrated example, as indicated by the mark x, the first flag f0 i corresponding to a certain connection is set at 0/4, 2/4 of the TT, and the second flag f1 i Is set at 1/4, 3/4 of TT.
That is, the case where the value of x i as described above is zero. Incidentally, when the number of connections is, for example, 4096, as shown in FIG. 4, x i takes a value from 0 to 4095.

【0036】図3において、セル到着例41では、f0
i =f1i =“1”なので、前セル到着から現セル到着
までは、TTの1/4周期以上の時間間隔が空いている
ことになり、図2のステップS3で直ちに適合と判定さ
れる。セル到着例42では、f0i =“1”,f1i
“0”なので、前セル到着から現セル到着までは、1/
4周期以上セル間隔が空いているという保証がないの
で、ステップS4,S5の詳細な判定を行う。但し、こ
の場合、基準時刻カウンタ2の周期TTの1/2未満の
演算範囲に収まるので、基準時刻カウンタ2が最大値か
ら0の境界を超えていても、正常に判定できる。
In FIG. 3, in cell arrival example 41, f0
Since i = f1 i = “1”, a time interval equal to or longer than 1 / cycle of TT is left between the arrival of the previous cell and the arrival of the current cell, and it is immediately determined to be appropriate in step S3 of FIG. . In the cell arrival example 42, f0 i = “1”, f1 i =
Since it is “0”, the time from the arrival of the previous cell to the arrival of the current cell is 1 /
Since there is no guarantee that the cell interval is longer than four cycles, detailed determinations in steps S4 and S5 are performed. However, in this case, since it falls within the calculation range of less than 1 / of the period TT of the reference time counter 2, it is possible to determine normally even if the reference time counter 2 is beyond the boundary of 0 from the maximum value.

【0037】以上のようなポリシング判定部5の判定結
果はセル制御部6に通知され、セル制御部6は、適合と
判定されたセルは通過させ、違反と判定されたセルは廃
棄またはタギングを行う。
The result of the decision made by the policing decision unit 5 is notified to the cell control unit 6, and the cell control unit 6 allows cells determined as conforming to pass therethrough, and discards or tags the cells determined as violating. Do.

【0038】図5は本発明の別の実施例のポリシング制
御装置のブロック図であり、GCRAのLBAに沿うア
ルゴリズムによってポリシング制御する例を示す。同図
に示すように、本発明のポリシング制御装置は、アドレ
ス検出部1と、基準時刻カウンタ2と、パラメータメモ
リ部3と、演算用メモリ部4’と、ポリシング判定部
5’と、セル制御部6と、フラグメモリ部7と、フラグ
セット部8とで構成されている。このうち、アドレス検
出部1,基準時刻カウンタ2,パラメータメモリ部3,
セル制御部6,フラグメモリ部7,フラグセット部8は
図1のものと同じである。
FIG. 5 is a block diagram of a policing control device according to another embodiment of the present invention, showing an example in which policing control is performed by an algorithm according to the LBA of GCRA. As shown in the figure, the policing control device of the present invention comprises an address detection unit 1, a reference time counter 2, a parameter memory unit 3, an operation memory unit 4 ', a policing determination unit 5', a cell control unit It comprises a unit 6, a flag memory unit 7, and a flag setting unit 8. Among them, the address detection unit 1, the reference time counter 2, the parameter memory unit 3,
The cell control unit 6, flag memory unit 7, and flag setting unit 8 are the same as those in FIG.

【0039】演算用メモリ部4’は、ポリシング判定に
用いるために次のセル到着までコネクション毎にバケツ
カウンタ値Xi と前セルの到着時刻LCTi とを保持す
る。ここで、バケツカウンタ値の最大値は、(セル間隔
の最大値+CDV許容値の最大値)で与えられる。
The operation memory unit 4 'holds the arrival time LCT i bucket counter value X i and the previous cell for each connection to the next cell arrival for use in policing decision. Here, the maximum value of the bucket counter value is given by (maximum value of cell interval + maximum value of CDV allowable value).

【0040】ポリシング判定部5’は、セルの到着毎
に、その時点の現在時刻taを基準時刻カウンタ2から
取得し、このセル到着時刻taと、パラメータメモリ部
3,演算用メモリ部4’およびフラグメモリ部7から読
み出されたセル間隔Ti,CDV許容値τi,バケツカウン
タ値Xi,前セルの到着時刻LCTi,第1および第2のフ
ラグf0i,f1i とに基づいてポリシング判定を行う。
The policing determination section 5 'obtains the current time ta at that time from the reference time counter 2 every time a cell arrives, and stores this cell arrival time ta, the parameter memory section 3, the operation memory section 4' and Based on the cell interval T i read from the flag memory unit 7 , the CDV allowable value τ i, the bucket counter value X i, the arrival time LCT i of the previous cell , and the first and second flags f0 i and f1 i. Perform policing determination.

【0041】図6は図5の実施例の動作フローチャート
である。以下、図5および図6を参照して本実施例の動
作を説明する。
FIG. 6 is an operation flowchart of the embodiment of FIG. Hereinafter, the operation of this embodiment will be described with reference to FIGS.

【0042】新たなセルが到着すると(S11)、アド
レス検出部1はそのセルのコネクションアドレスを検出
して、パラメータメモリ部3,演算用メモリ部4’,フ
ラグメモリ部7からそのコネクションアドレスに対応す
るセル間隔Ti,CDV許容値τi,バケツカウンタ値Xi,
前セルの到着時刻LCTi,第1及び第2のフラグf0i,
f1i を読み出し、他方ポリシング判定部5’はセル到
着時刻taを基準時刻カウンタ2から読み出す(S1
2)。
When a new cell arrives (S11), the address detection unit 1 detects the connection address of the cell and responds to the connection address from the parameter memory unit 3, the operation memory unit 4 ', and the flag memory unit 7. Cell interval T i, CDV allowable value τ i, bucket counter value X i,
Arrival time LCT i of the previous cell , first and second flags f0 i,
f1 i , while the policing determination unit 5 ′ reads the cell arrival time ta from the reference time counter 2 (S1).
2).

【0043】次に、ポリシング判定部5’は、セル到着
時刻ta,セル間隔Ti,CDV許容値τi,バケツカウン
タ値Xi,前セルの到着時刻LCTi,第1および第2のフ
ラグf0i,f1i に基づいてポリシング判定を行う。こ
の判定では、先ず、第1および第2のフラグf0i,f1
i をチェックする(S13)。そして、どちらのフラグ
も共にセットされていれば(S13でYES)、充分な
セル間隔が空いているため、ステップS14を経由して
ステップS18で適合(通過)と判定する。これは、第
1および第2のフラグf0i,f1i が共にセットされて
いるということは、基準時刻カウンタ2の周期TTの1
/4周期の時間が前セル到着から経過していることが明
らかであり、そして、周期TTの1/4周期は(セル間
隔の最大値+CDV許容値の最大値)以上に設定されて
いるからである。
Next, the policing determination unit 5 'includes a cell arrival time ta, a cell interval T i, an allowable CDV value τ i, a bucket counter value X i, a previous cell arrival time LCTi , first and second flags. Policing determination is performed based on f0 i and f1 i . In this determination, first, the first and second flags f0 i, f1
Check i (S13). If both flags are set (YES in S13), since there is a sufficient cell interval, it is determined that there is a match (pass) in step S18 via step S14. This means that both the first and second flags f0 i and f1 i are set, which means that the period TT of the reference time counter 2 is one.
It is clear that the period of 周期 period has elapsed from the arrival of the previous cell, and the 4 period of the period TT is set to (the maximum value of the cell interval + the maximum value of the CDV allowable value) or more. It is.

【0044】他方、フラグチェックの結果、第1および
第2のフラグf0i,f1i の少なくとも一方がセットさ
れていなかった場合(S13でNO)、詳細な判定を以
下のようにして行う。
On the other hand, as a result of the flag check, if at least one of the first and second flags f0 i and f1 i is not set (NO in S13), a detailed judgment is made as follows.

【0045】先ず、内部変数X’の値を以下のようにし
て求める(S15)。 X’=Xi −(ta−LCTi ) 即ち、バケツカウンタ値Xi から、前セルと現セルの時
間間隔(ta−LCTi)を引いた値を求める。ここ
で、(ta−LCTi )の算術演算は、基準時刻カウン
タ2が最大値から0の境界を超えて時刻の逆転が生じて
いる場合、従来は常に正しく計算できるとは限られなか
ったが、本実施例では、基準時刻カウンタ2の周期TT
の1/2未満の演算範囲に収まるので、正しく計算でき
る。
First, the value of the internal variable X 'is obtained as follows (S15). X '= X i - (ta -LCT i) That is, the bucket counter value X i, determining the value obtained by subtracting the time interval before the cell and the current cell (ta-LCT i). Here, arithmetic operations of (ta-LCT i), if the reference time counter 2 has occurred reversal of time beyond the boundaries from 0 to the maximum value, conventionally, always not always possible to correctly calculated In this embodiment, the period TT of the reference time counter 2 is
Can be calculated correctly because it falls within the calculation range of less than 1/2.

【0046】次に、内部変数X’が0より小さいか否か
を調べ(S16)、小さければステップS14を経由し
て、ステップS18で適合と判定する。
Next, it is checked whether or not the internal variable X 'is smaller than 0 (S16). If it is smaller, the process goes to step S14 via step S14, and it is determined to be appropriate in step S18.

【0047】内部変数X’が0より小さくない場合(S
16でNO)、内部変数X’がCDV許容値τi より大
きいか否かを調べる(S17)。そして、内部変数X’
がCDV許容値τi より大きければ(S17でYE
S)、ステップS19に進んで違反と判定し、そうでな
ければ(S17でNO)、ステップS18に進んで適合
と判定する。
When the internal variable X 'is not smaller than 0 (S
16 NO), the internal variable X 'checks whether larger CDV tolerance τ i (S17). And the internal variable X '
Is larger than the CDV allowable value τ i (YE in S17).
S), the process proceeds to step S19 to determine a violation, otherwise (NO in S17), the process proceeds to step S18 to determine conformity.

【0048】ステップS14においては、内部変数X’
を0とし、適合と判定したステップS18においては、
演算用メモリ部4’のバケツカウンタ値Xi を(X’+
i)の値に、前セル到着時刻LCTi をtaに、それ
ぞれ更新すると共に、第1および第2のフラグf0i,
i をリセットする。なお、違反と判定したステップS
19においては、演算用メモリ部4’のバケツカウンタ
値Xi,前セル到着時刻LCTi はそのままにし、第1お
よび第2のフラグf0i,f1i もリセットしない。
In step S14, the internal variable X '
Is set to 0, and in step S18 determined to be appropriate,
Operation memory portion 4 'of the bucket counter value X i of the (X' +
T i ), the previous cell arrival time LCT i is updated to ta, and the first and second flags f0 i, f
1 Reset i . Note that the step S determined to be in violation
In 19, the bucket counter value X i of the arithmetic memory unit 4 ', the previous cell arrival time LCT i Leave the first and second flags f0 i, f1 i also not reset.

【0049】ポリシング判定部5’の判定結果はセル制
御部6に通知され、セル制御部6は、適合と判定された
セルは通過させ、違反と判定されたセルは廃棄またはタ
ギングを行う。
The result of the judgment by the policing judgment unit 5 'is sent to the cell control unit 6, and the cell control unit 6 passes the cells judged as conforming, and discards or tags the cells judged as violating.

【0050】[0050]

【発明の効果】以上説明したように本発明によれば、基
準時刻カウンタが最大値から0の境界を超えて擬似的に
時刻の逆転が起きた場合でも、ポリシング判定を正常に
実行できる。これにより、基準時刻カウンタのビット数
を必要最小限まで削減することができ、基準時刻を用い
て行うポリシング判定も小さいビット幅で構成すること
ができる。また、ポリシング判定で用いる変数値を次の
セル到着まで保存するためのメモリ容量も削減できる。
As described above, according to the present invention, the policing determination can be performed normally even when the time is reversed in a pseudo manner beyond the boundary of the reference time counter from the maximum value to 0. As a result, the number of bits of the reference time counter can be reduced to a necessary minimum, and policing determination using the reference time can be configured with a small bit width. Further, the memory capacity for storing the variable values used in the policing determination until the next cell arrives can be reduced.

【0051】また、ATM網において多重化された1種
以上のコネクション上のセルのトラフィックを制御する
ポリシング制御装置を、1つの基準時刻カウンタを用い
て実現することができ、更に各コネクション毎に、前記
第1および第2のフラグをセットする時刻をずらすよう
にしたことにより、フラグセットの処理が分散され、コ
ネクションの多重数が大きい場合であっても円滑な処理
が実現できる。
Further, a policing control device for controlling traffic of cells on one or more types of connections multiplexed in the ATM network can be realized by using one reference time counter. By shifting the time at which the first and second flags are set, the processing of flag setting is dispersed, and smooth processing can be realized even when the number of multiplexed connections is large.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】図1の実施例の動作フローチャートである。FIG. 2 is an operation flowchart of the embodiment of FIG. 1;

【図3】図1の実施例の動作タイミングチャートであ
る。
FIG. 3 is an operation timing chart of the embodiment of FIG. 1;

【図4】図1の実施例のフラグセットのタイミングチャ
ートである。
FIG. 4 is a timing chart of flag setting in the embodiment of FIG. 1;

【図5】本発明の別の実施例のブロック図である。FIG. 5 is a block diagram of another embodiment of the present invention.

【図6】図5の実施例の動作フローチャートである。FIG. 6 is an operation flowchart of the embodiment in FIG. 5;

【図7】従来のポリシング制御装置のブロック図であ
る。
FIG. 7 is a block diagram of a conventional polishing control device.

【図8】従来のポリシング制御装置の動作フローチャー
トである。
FIG. 8 is an operation flowchart of a conventional polishing control device.

【符号の説明】[Explanation of symbols]

1…アドレス検出部 2…基準時刻カウンタ 3…パラメータメモリ部 4,4’…演算用メモリ部 5,5’…ポリシング判定部 6…セル制御部 7…フラグメモリ部 8…フラグセット部 DESCRIPTION OF SYMBOLS 1 ... Address detection part 2 ... Reference time counter 3 ... Parameter memory part 4,4 '... Operation memory part 5,5' ... Policing judgment part 6 ... Cell control part 7 ... Flag memory part 8 ... Flag setting part

Claims (11)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ATM網においてコネクション上のセル
をポリシング制御する装置において、 ユーザが指定したセル間隔およびCDV許容値を保持す
るパラメータメモリ部と、 前記セル間隔および前記CDV許容値の和の最大値に相
当する時間の少なくとも4倍以上の時間を1周期とする
基準時刻カウンタと、 ポリシング判定に用いる変数値を次のセル到着まで保持
する演算用メモリ部と、 少なくとも前記最大値に相当する時間以上の一定時間毎
に交互にセットされ、且つ、ポリシング判定で参照され
て適合と判定された時点でリセットされる第1および第
2のフラグを保持するフラグメモリ部と、 新たなセルの到着毎に、前記基準時刻カウンタの現在時
刻,前記パラメータメモリ部のセル間隔およびCDV許
容値,前記演算用メモリ部の変数値ならびに前記フラグ
メモリ部の第1および第2のフラグを参照して、当該到
着したセルのポリシング判定を行うポリシング判定部
と、 該ポリシング判定部で適合と判定されたセルは通過さ
せ、違反と判定されたセルは廃棄またはタギングを行う
セル制御部とを備え、且つ、 前記ポリシング判定部は、詳細なポリシング判定に先立
って前記第1および第2のフラグが共にセットされてい
るか否かを調べ、共にセットされているときは適合と判
定する構成を有することを特徴とするポリシング制御装
置。
1. An apparatus for controlling policing of cells on a connection in an ATM network, comprising: a parameter memory unit for holding a cell interval and a CDV allowable value designated by a user; and a maximum value of the sum of the cell interval and the CDV allowable value. A reference time counter whose period is at least four times as long as the time corresponding to the above, a memory unit for holding variable values used for policing determination until the next cell arrives, and at least a time corresponding to the maximum value A flag memory unit that holds first and second flags that are alternately set at regular intervals of time, and that are reset when they are referred to in the policing determination and are determined to be suitable, and each time a new cell arrives Current time of the reference time counter, cell interval and CDV allowable value of the parameter memory section, A policing decision unit for making a policing decision on the arriving cell by referring to the numerical value and the first and second flags of the flag memory unit; a cell determined to be suitable by the policing decision unit is passed; The determined cell includes a cell control unit that performs discarding or tagging, and the policing determination unit checks whether the first and second flags are set together prior to detailed policing determination. , A polishing control device having a configuration in which when both are set, it is determined to be suitable.
【請求項2】 前記変数値として予想到着時刻を使用す
ることを特徴とする請求項1記載のポリシング制御装
置。
2. The policing control device according to claim 1, wherein an expected arrival time is used as the variable value.
【請求項3】 前記ポリシング判定部は、前記第1およ
び第2のフラグが共にセットされている場合、セルの到
着時刻と前記セル間隔との和を新たな予想到着時刻とし
て前記演算用メモリ部に格納し、前記第1および第2の
フラグの少なくとも一方がセットされていない場合、セ
ルの到着時刻が前記予想到着時刻より遅いときは適合と
判定すると共にセルの到着時刻と前記セル間隔との和を
新たな予想到着時刻として前記演算用メモリ部に格納
し、セルの到着時刻が前記予想到着時刻より遅くないと
きは、セルの到着時刻と前記CDV許容値との和に相当
する時刻が前記予想到着時刻より遅ければ適合と判定す
ると共に前記予想到着時刻に前記セル間隔を加えた値を
新たな予想到着時刻として前記演算用メモリ部に格納
し、セルの到着時刻と前記CDV許容値との和に相当す
る時刻が前記予想到着時刻より遅くなければ違反と判定
する構成を有することを特徴とする請求項2記載のポリ
シング制御装置。
3. The arithmetic memory unit according to claim 1, wherein the policing determination unit sets a sum of a cell arrival time and the cell interval as a new estimated arrival time when the first and second flags are both set. When at least one of the first and second flags is not set, when the arrival time of the cell is later than the expected arrival time, it is determined that the cell is compatible, and the difference between the arrival time of the cell and the cell interval is determined. The sum is stored in the calculation memory unit as a new estimated arrival time, and when the cell arrival time is not later than the expected arrival time, the time corresponding to the sum of the cell arrival time and the CDV allowable value is set to the aforementioned value. If it is later than the expected arrival time, it is determined to be suitable, and a value obtained by adding the cell interval to the expected arrival time is stored in the calculation memory unit as a new expected arrival time. 3. The policing control device according to claim 2, wherein a violation is determined unless a time corresponding to the sum of the CDV allowable value and the expected arrival time is later than the expected arrival time.
【請求項4】 前記変数値としてバケツカウンタ値およ
び前セルの到着時刻を使用することを特徴とする請求項
1記載のポリシング制御装置。
4. The policing control device according to claim 1, wherein a bucket counter value and an arrival time of a previous cell are used as the variable values.
【請求項5】 前記ポリシング判定部は、前記第1およ
び第2のフラグが共にセットされている場合、今回のセ
ル到着時刻および前記セル間隔を新たな前セルの到着時
刻およびバケツカウンタ値として前記演算用メモリ部に
格納し、前記第1および第2のフラグの少なくとも一方
がセットされていない場合、前記前セルの到着時刻と今
回のセルの到着時刻との時間差を前記バケツカウンタ値
から引いた値X’が0より小さいときは適合と判定する
と共に今回のセル到着時刻および前記セル間隔を新たな
前セルの到着時刻およびバケツカウンタ値として前記演
算用メモリ部に格納し、前記X’が0より小さくないと
きは、前記X’が前記CDV許容値より大きくなければ
適合と判定すると共に今回のセル到着時刻および前記
X’に前記セル間隔を加算した値を新たな前セルの到着
時刻およびバケツカウンタ値として前記演算用メモリ部
に格納し、前記X’が前記CDV許容値より大きければ
違反と判定する構成を有することを特徴とする請求項4
記載のポリシング制御装置。
5. When the first and second flags are both set, the policing determination unit sets the current cell arrival time and the cell interval as a new previous cell arrival time and a bucket counter value. When stored in an operation memory unit and at least one of the first and second flags is not set, the time difference between the arrival time of the previous cell and the arrival time of the current cell is subtracted from the bucket counter value. If the value X 'is smaller than 0, it is determined that the cell is compatible, and the current cell arrival time and the cell interval are stored in the arithmetic memory unit as the arrival time of the new previous cell and the bucket counter value. If it is not smaller than X ', the cell is determined to be compatible unless X' is larger than the CDV allowable value, and the cell interval is added to the current cell arrival time and X '. The value stored in the arithmetic memory unit as the arrival time and the bucket counter value of a new pre-cell, according to claim 4, wherein X 'is characterized by having a violation determining configuration larger than said CDV tolerance
The polishing control device according to claim 1.
【請求項6】 ATM網において多重化された1種以上
のコネクション上のセルのトラフィックを制御するポリ
シング制御装置において、 ユーザが指定したセル間隔およびCDV許容値をコネク
ション毎に保持するパラメータメモリ部と、 前記セル間隔および前記CDV許容値の和の最大値に相
当する時間の少なくとも4倍以上の時間を1周期とする
基準時刻カウンタと、 ポリシング判定に用いる変数値を次のセル到着までコネ
クション毎に保持する演算用メモリ部と、 少なくとも前記最大値に相当する時間以上の一定時間毎
に交互にセットされ、且つ、ポリシング判定で参照され
て適合と判定された時点でリセットされる第1および第
2のフラグをコネクション毎に保持するフラグメモリ部
と、 新たなセルの到着毎に、コネクションアドレスを検出し
て前記パラメータメモリ部,前記演算用メモリ部および
前記フラグメモリ部から該当するセル間隔,CDV許容
値,変数値,第1および第2のフラグを読み出すアドレ
ス検出部と、 該アドレス検出部で読み出されたセル間隔,CDV許容
値,変数値,第1および第2のフラグと、前記基準時刻
カウンタから取得したセル到着時刻とを参照して、到着
したセルのポリシング判定を行うポリシング判定部と、 該ポリシング判定部で適合と判定されたセルは通過さ
せ、違反と判定されたセルは廃棄またはタギングを行う
セル制御部とを備え、且つ、 前記ポリシング判定部は、前記参照した第1および第2
のフラグが共にセットされているときは適合と判定する
構成を有することを特徴とするポリシング制御装置。
6. A policing control device for controlling traffic of cells on one or more types of connections multiplexed in an ATM network, comprising: a parameter memory unit for holding a cell interval and a CDV allowable value specified by a user for each connection. A reference time counter whose period is at least four times as long as the time corresponding to the maximum value of the sum of the cell interval and the CDV allowable value, and a variable value used for policing determination for each connection until the next cell arrives. A first and a second memory which are alternately set at regular intervals equal to or longer than at least the time corresponding to the maximum value, and which are reset when they are referred to in the policing determination and determined to be suitable; A flag memory unit that holds a flag for each connection, and a connection address each time a new cell arrives. An address detection unit for detecting a cell interval, a CDV allowable value, a variable value, and first and second flags from the parameter memory unit, the operation memory unit, and the flag memory unit, and detecting the address; Policing for determining the policing of an arriving cell by referring to the cell interval, CDV allowable value, variable value, first and second flags read by the unit, and the cell arrival time obtained from the reference time counter. A determination unit, a cell control unit that passes cells determined to be conforming by the policing determination unit, and discards or tags the cells determined to be in violation, and the policing determination unit is configured to perform the 1st and 2nd
A policing control device having a configuration in which when both of the flags are set, it is determined to be compatible.
【請求項7】 各コネクション毎に、前記第1および第
2のフラグをセットする時刻をずらすように構成された
ことを特徴とする請求項6記載のポリシング制御装置。
7. The policing control device according to claim 6, wherein a time at which the first and second flags are set is shifted for each connection.
【請求項8】 前記変数値として予想到着時刻を使用す
ることを特徴とする請求項7記載のポリシング制御装
置。
8. The policing control device according to claim 7, wherein an expected arrival time is used as the variable value.
【請求項9】 前記ポリシング判定部は、前記第1およ
び第2のフラグが共にセットされている場合、セルの到
着時刻と前記セル間隔との和を新たな予想到着時刻とし
て前記演算用メモリ部に格納し、前記第1および第2の
フラグの少なくとも一方がセットされていない場合、セ
ルの到着時刻が前記予想到着時刻より遅いときは適合と
判定すると共にセルの到着時刻と前記セル間隔との和を
新たな予想到着時刻として前記演算用メモリ部に格納
し、セルの到着時刻が前記予想到着時刻より遅くないと
きは、セルの到着時刻と前記CDV許容値との和に相当
する時刻が前記予想到着時刻より遅ければ適合と判定す
ると共に前記予想到着時刻に前記セル間隔を加えた値を
新たな予想到着時刻として前記演算用メモリ部に格納
し、セルの到着時刻と前記CDV許容値との和に相当す
る時刻が前記予想到着時刻より遅くなければ違反と判定
する構成を有することを特徴とする請求項8記載のポリ
シング制御装置。
9. The arithmetic memory unit according to claim 1, wherein when the first and second flags are both set, the policing determination unit sets a sum of a cell arrival time and the cell interval as a new estimated arrival time. When at least one of the first and second flags is not set, when the arrival time of the cell is later than the expected arrival time, it is determined that the cell is compatible, and the difference between the arrival time of the cell and the cell interval is determined. The sum is stored in the calculation memory unit as a new estimated arrival time, and when the cell arrival time is not later than the expected arrival time, the time corresponding to the sum of the cell arrival time and the CDV allowable value is set to the aforementioned value. If it is later than the expected arrival time, it is determined to be suitable, and a value obtained by adding the cell interval to the expected arrival time is stored in the calculation memory unit as a new expected arrival time. 9. The policing control device according to claim 8, wherein a violation is determined unless a time corresponding to the sum with the CDV tolerance is later than the expected arrival time.
【請求項10】 前記変数値としてバケツカウンタ値お
よび前セルの到着時刻を使用することを特徴とする請求
項7記載のポリシング制御装置。
10. The policing control device according to claim 7, wherein a bucket counter value and an arrival time of a previous cell are used as said variable values.
【請求項11】 前記ポリシング判定部は、前記第1お
よび第2のフラグが共にセットされている場合、今回の
セル到着時刻および前記セル間隔を新たな前セルの到着
時刻およびバケツカウンタ値として前記演算用メモリ部
に格納し、前記第1および第2のフラグの少なくとも一
方がセットされていない場合、前記前セルの到着時刻と
今回のセルの到着時刻との時間差を前記バケツカウンタ
値から引いた値X’が0より大きいときは適合と判定す
ると共に今回のセル到着時刻および前記セル間隔を新た
な前セルの到着時刻およびバケツカウンタ値として前記
演算用メモリ部に格納し、前記X’が0より大きくない
ときは、前記X’が前記CDV許容値より大きくなけれ
ば適合と判定すると共に今回のセル到着時刻および前記
X’に前記セル間隔を加算した値を新たな前セルの到着
時刻およびバケツカウンタ値として前記演算用メモリ部
に格納し、前記X’が前記CDV許容値より大きければ
違反と判定する構成を有することを特徴とする請求項1
0記載のポリシング制御装置。
11. When the first and second flags are both set, the policing determination unit sets the current cell arrival time and the cell interval as a new previous cell arrival time and a bucket counter value. When stored in an operation memory unit and at least one of the first and second flags is not set, the time difference between the arrival time of the previous cell and the arrival time of the current cell is subtracted from the bucket counter value. When the value X 'is larger than 0, it is determined that the cell is compatible, and the current cell arrival time and the cell interval are stored in the arithmetic memory unit as the arrival time and bucket counter value of a new previous cell. If it is not larger than X ', the cell is determined to be compatible unless X' is larger than the CDV allowable value, and the cell interval is added to the current cell arrival time and X '. Claim 1 was the value stored in the arithmetic memory unit as the arrival time and the bucket counter value of a new pre-cell, wherein X 'is characterized by having a violation determining configuration larger than said CDV tolerance
0, the polishing control apparatus.
JP35443795A 1995-12-28 1995-12-28 Polishing control device Expired - Fee Related JP2737735B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35443795A JP2737735B2 (en) 1995-12-28 1995-12-28 Polishing control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35443795A JP2737735B2 (en) 1995-12-28 1995-12-28 Polishing control device

Publications (2)

Publication Number Publication Date
JPH09186699A JPH09186699A (en) 1997-07-15
JP2737735B2 true JP2737735B2 (en) 1998-04-08

Family

ID=18437568

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35443795A Expired - Fee Related JP2737735B2 (en) 1995-12-28 1995-12-28 Polishing control device

Country Status (1)

Country Link
JP (1) JP2737735B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6570873B1 (en) 1998-11-13 2003-05-27 Nec Corporation System and method for scheduling reservation of traffic with priority

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2985859B2 (en) 1997-12-25 1999-12-06 日本電気株式会社 Polishing equipment
KR100317122B1 (en) * 1999-12-27 2001-12-24 오길록 Cdv calculate method of cell spacer for vbr service
JPWO2003053012A1 (en) * 2001-12-14 2005-04-28 古河電気工業株式会社 Policing control method, control device thereof, and network system using the control device
EP3076616B1 (en) * 2015-03-31 2017-04-12 Mitsubishi Electric R&D Centre Europe B.V. Method for data traffic management and network node for implementing the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6570873B1 (en) 1998-11-13 2003-05-27 Nec Corporation System and method for scheduling reservation of traffic with priority

Also Published As

Publication number Publication date
JPH09186699A (en) 1997-07-15

Similar Documents

Publication Publication Date Title
US5726977A (en) Apparatus and method for determining a network node congestion state in order to control the congestion in an ATM network
EP0548995A2 (en) Usage parameter control circuit
US20100110889A1 (en) Policing device
JPH04311126A (en) Method and system for monitoring flow rate in packet network
US6108303A (en) Method and apparatus for traffic control in a cell-based network
JPH09116540A (en) Atm exchange applying disuse priority control management system
JP2737735B2 (en) Polishing control device
JPH09224034A (en) Overflow processing system for counter value and cell flow-in control system
JP2000332793A (en) Atm cell buffer system and congestion control method therefor
JP3075267B2 (en) ATM cell buffer read control device and control method
EP0684717B1 (en) Communication control system based on the asynchronous transfer mode
JP2855485B2 (en) Traffic observation circuit
JP2851743B2 (en) Policing circuit
JPH10117195A (en) Shaping controller
JP3140604B2 (en) Policing circuit
JP3487688B2 (en) GCRA calculation self-monitoring method for cell rate monitoring device
JPH1065689A (en) Time management method for atm transmission network
US6674723B1 (en) Apparatus and method of monitoring a queue state in an asynchronous transfer mode switch
JP3072175B2 (en) UPC circuit
JP3356633B2 (en) ATM cell rate monitoring device and ATM cell rate monitoring method
JP3024849B2 (en) Policing control method
JP3051101B2 (en) Cell buffer device and selective ATM cell discarding method
JP3501603B2 (en) Arithmetic circuit failure monitoring method
JPH07107092A (en) Policing circuit
JPH04329733A (en) Monitor system for transmission network

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees