Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2580014B2 - Traffic detection circuit in packet communication - Google Patents
[go: Go Back, main page]

JP2580014B2 - Traffic detection circuit in packet communication - Google Patents

Traffic detection circuit in packet communication

Info

Publication number
JP2580014B2
JP2580014B2 JP63218970A JP21897088A JP2580014B2 JP 2580014 B2 JP2580014 B2 JP 2580014B2 JP 63218970 A JP63218970 A JP 63218970A JP 21897088 A JP21897088 A JP 21897088A JP 2580014 B2 JP2580014 B2 JP 2580014B2
Authority
JP
Japan
Prior art keywords
memory
packet
logical channel
channel number
packets
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
JP63218970A
Other languages
Japanese (ja)
Other versions
JPH0267044A (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 JP63218970A priority Critical patent/JP2580014B2/en
Publication of JPH0267044A publication Critical patent/JPH0267044A/en
Application granted granted Critical
Publication of JP2580014B2 publication Critical patent/JP2580014B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

【発明の詳細な説明】 [概要] 伝送されるパケット伝送量を検出してトラフィック規
制および課金処理を行うパケット通信におけるトラフィ
ック検出回路に関し、 各論理チャネル番号のパケットのデータ量を高速に検
出すると共にトラフィック規制信号を発生することが可
能なパケット通信におけるトラフィック検出回路を提供
することを目的とし、 伝送路を通過する論理チャネル番号を含む可変長のパケ
ットを保持する一時記憶手段と,一時記憶手段からパケ
ットの論理チャネル番号を選択して保持する論理チャネ
ル番号保持手段と,一時記憶手段を通過する各パケット
のバイト数を計数するバイト計数手段と,論理チャネル
番号保持手段の出力をアドレスとして,各論理チャネル
番号毎のパケット数を格納する第1メモリと,各論理チ
ャネル番号毎のパケットのバイト数を格納する第2メモ
リと,各論理チャネル番号毎の予め規制値として設定さ
れたバイト数及びパケット数を格納する第3のメモリ
と,比較手段とを備え,第1メモリ,第2メモリ及び第
3メモリはパケットの通過毎に論理チャネル番号により
アクセスされ,第1メモリから読み出した内容は演算手
段により1だけ加算され,第2メモリから読み出した内
容は前記バイト計数手段の出力と加算手段により加算さ
れ,各計算結果がそれぞれ元のメモリに書き込まれると
共に,比較手段は,パケット数の加算結果及びバイト数
の加算結果をそれぞれ前記第3メモリから読み出したパ
ケット数の規制値及びバイト数の規制値と順次比較し,
各加算結果の一方が対応する規制値を越えたことを検出
すると当該論理チャネル番号に対応する規制信号を発生
するよう構成する。
DETAILED DESCRIPTION OF THE INVENTION [Summary] The present invention relates to a traffic detection circuit in packet communication for detecting traffic of a packet to be transmitted and performing traffic regulation and charging processing, and detects a data amount of a packet of each logical channel number at high speed. A temporary storage means for holding a variable length packet including a logical channel number passing through a transmission path, and a temporary storage means for providing a traffic detection circuit in packet communication capable of generating a traffic regulation signal. A logical channel number holding means for selecting and holding a logical channel number of a packet; a byte counting means for counting the number of bytes of each packet passing through the temporary storage means; A first memory for storing the number of packets for each channel number, A second memory for storing the number of bytes of the packet for each channel number, a third memory for storing the number of bytes and the number of packets preset as a regulation value for each logical channel number, and a comparing means; The first memory, the second memory, and the third memory are accessed by the logical channel number every time a packet passes, the content read from the first memory is added by 1 by the arithmetic means, and the content read from the second memory is the byte count. The output of the means and the addition means are added to each other, and each calculation result is written to the original memory. The limit value and the byte count limit value are sequentially compared,
When it is detected that one of the addition results exceeds a corresponding regulation value, a regulation signal corresponding to the logical channel number is generated.

[産業上の利用分野] 本発明はパケット通信によって伝送されるパケット伝
送量を検出してトラフィック規制および課金処理を行う
パケット通信におけるトラフィック検出回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a traffic detection circuit in packet communication that performs traffic regulation and charging processing by detecting the amount of packet transmission transmitted by packet communication.

近年、データをパケットという可変のデータ量により
ひとまとめの単位でネットワークを伝送し、各パケット
がそれぞれ任意のルートを介して所望の行き先に届ける
パケット通信が普及してきた。その場合、複数の呼を識
別するため各パケットヘッダ中に論理チャネル番号領域
が設けられており、その論理チャネル番号によりトラフ
ィックの規制の制御を行っている。すなわち、同じ論理
チャネル番号のパケットがあるノードにおいて輻輳した
場合、その論理チャネル番号のデータを発生する端末や
送信側伝送路に対して送信規制を行うなどのトラフィッ
ク制御が行われる。
2. Description of the Related Art In recent years, packet communication in which data is transmitted over a network in a unit of a variable amount of data called a packet and each packet reaches a desired destination via an arbitrary route has become widespread. In this case, a logical channel number area is provided in each packet header to identify a plurality of calls, and traffic regulation is controlled by the logical channel number. That is, when a packet with the same logical channel number is congested at a certain node, traffic control such as restricting transmission to a terminal or a transmission line on the side generating data of the logical channel number is performed.

そのようなトラフィック制御を行うための従来の技術
は、プロセッサを用いたソフトウェア処理により行われ
ていた。ところが、ソフトウェア処理によるとパケット
の伝送速度が遅い場合は対応することができるが、最近
のパケットの伝送速度の高速化に追従することが困難に
なり、その解決が望まれている。
Conventional techniques for performing such traffic control have been performed by software processing using a processor. However, software processing can cope with a case where the packet transmission speed is low, but it is difficult to keep up with the recent increase in packet transmission speed, and a solution is desired.

[従来の技術] 第4図は従来例の説明図であり、A.はパケットフレー
ムフォーマット、B.はパケット通信のネットワーク構成
例、C.はパケット通信装置の構成例を示す。
[Prior Art] FIG. 4 is an explanatory diagram of a conventional example, in which A. shows a packet frame format, B. shows an example of a network configuration of packet communication, and C. shows an example of the configuration of a packet communication device.

パケットのフレームフォーマットはA.に示すように、
フラグ部(Fで示す),アドレス・コントロール部(A/
Cで表示),パケットデータ部,フレームチェックシー
ケンス部(FCSで表示),フラグ部(F)とで構成さ
れ、パケットデータ部の先頭のパケットヘッダの中に論
理チャネル番号(Logic Channel Number:LCNと略称され
る)という呼を識別するための番号情報が含まれてい
る。このLCNは一つの呼によって伝送される複数のパケ
ットに対し同じ番号が付与され、異なる呼の間では異な
るLCNが使用される。
The frame format of the packet is as shown in A.
Flag section (indicated by F), address control section (A /
C), a packet data part, a frame check sequence part (displayed as FCS), and a flag part (F). A logical channel number (Logic Channel Number: LCN) is included in the first packet header of the packet data part. (Abbreviated) is included. In this LCN, the same number is assigned to a plurality of packets transmitted by one call, and different LCNs are used between different calls.

パケット通信のネットワークは、B.に示すように各ノ
ードA〜C等の通信装置に端末と伝送路が接続され、ノ
ード間の伝送路の接続構成としては網型、星型、リング
型等種々のものがある。パケット通信では、一本の伝送
路において同時に複数の端末間での通信が可能であり、
その複数の呼を識別するために上記したLCN(論理チャ
ネル番号)が利用される。
In the packet communication network, terminals and transmission lines are connected to communication devices such as nodes A to C as shown in B. There are various connection configurations of transmission lines between nodes such as a network type, a star type, and a ring type. There are things. In packet communication, communication between a plurality of terminals can be simultaneously performed on one transmission path,
The above-described LCN (logical channel number) is used to identify the plurality of calls.

ノードに設けられるパケット通信装置の構成をC.によ
り説明すると、端末インタフェース41または伝送路イン
タフェース42,43を介して受信されるパケットはメモリ4
4に格納され、通信制御装置(ノード制御プロセッサ(N
CP)と称される場合もある)45による処理を経てメモリ
から読み出されて伝送路インタフェースまたは端末イン
タフェースへ送出され、蓄積交換が行われる。
The configuration of the packet communication device provided in the node will be described with reference to C. Packets received via the terminal interface 41 or the transmission line interfaces 42 and 43 are stored in the memory 4
4, stored in the communication control device (node control processor (N
The data is read out from the memory through the process of (CP) 45 and transmitted to the transmission line interface or the terminal interface to perform storage and exchange.

パケット通信の網内のトラフィック制御を行う場合、
各LCNは独立しているので、LCN対応のトラフィック制御
が行われる。その制御はパケットの輻輳により受信でき
なくなる前に、パケット発生元に対し送信停止のパケッ
トを送出する方法等が用いられる。
When performing traffic control within a packet communication network,
Since each LCN is independent, traffic control corresponding to the LCN is performed. For the control, a method of transmitting a transmission stop packet to a packet generation source before the reception becomes impossible due to packet congestion or the like is used.

ところで、トラフィック制御を行う上で目安となるの
は、伝送路上を同一のLCNのパケットが幾つ流れている
かを検出し、検出値によって流量が多い場合には、出力
規制をかけるという方法が採られている。パケット数の
検出には、LCN毎にカウンタを設ける方法が考えられる
が、パケットのネットワークの規模が大きくなり、LCN
(論理チャネル番号)の個数が増大(数千個のLCNを使
用する例もある)すると、それに伴って実現するカウン
タを含むハードウェア規模が大きくなってしまう。その
ため、通常、第4図のC.の通信制御装置45のソフトウェ
アによりパケットのLCNの検出から、規制制御までを行
っている。即ち、通信制御装置45によりパケットのLCN
を検出すると、ソフトウェア処理により補助記憶装置46
内に格納してある各LCNに対応するパケット量の更新が
行われる。なお、このパケット量の検出はトラフィック
制御(流量制御)に利用されるだけでなく、パケット通
信の課金を行うために必要なデータでもある。
By the way, a guideline for traffic control is to detect how many packets of the same LCN are flowing on the transmission path, and if the flow rate is high according to the detected value, restrict the output. ing. In order to detect the number of packets, it is conceivable to provide a counter for each LCN.
When the number of (logical channel numbers) increases (in some cases, thousands of LCNs are used), the scale of hardware including counters to be realized increases accordingly. Therefore, normally, from the detection of the LCN of the packet to the regulation control is performed by the software of the communication control device 45 of C in FIG. That is, the LCN of the packet is
Is detected, the auxiliary storage device 46 is executed by software processing.
The amount of packets corresponding to each LCN stored in is updated. Note that the detection of the packet amount is not only used for traffic control (flow rate control), but is also data necessary for charging for packet communication.

[発明が解決しようとする課題] 上記の従来例の方法では、ソフトウェア処理によりト
ラフィックの検出制御を行うため、処理速度が遅いとい
う問題があった。また、今後はパケットの高速化が進め
られることが予想され、高速パケットのトラフィック規
制や課金のために伝送中のパケットの量をリアルタイム
で常時把握することは、従来技術によって実現すること
が困難である。
[Problem to be Solved by the Invention] In the above-mentioned conventional method, there is a problem that the processing speed is slow because traffic detection control is performed by software processing. It is also expected that the speed of packets will be increased in the future, and it is difficult to realize the real-time constantly the amount of packets being transmitted in real time for traffic regulation and charging of high-speed packets. is there.

本発明は、各論理チャネル番号のパケットのデータ量
を高速に検出すると共にトラフィック規制信号を発生す
ることが可能なパケット通信におけるトラフィック検出
回路を提供することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a traffic detection circuit in packet communication capable of detecting a data amount of a packet of each logical channel number at a high speed and generating a traffic regulation signal.

[課題を解決するための手段] 第1図は本発明の基本構成図を示す。[Means for Solving the Problems] FIG. 1 shows a basic configuration diagram of the present invention.

10は一時記憶手段、11はバイト計数手段、12は論理チ
ャネル番号(LCN)保持手段、13は各LCN毎のパケット数
を記憶する第1メモリ、14は入力した数値に+1の演算
を行う演算手段、15は規制値と演算手段14の出力を比較
する比較手段、16は各LCN毎のバイト数を記憶する第2
メモリ、17は第2メモリの出力とバイト数計数手段11の
出力を加算する加算手段を表す。
10 is a temporary storage unit, 11 is a byte counting unit, 12 is a logical channel number (LCN) holding unit, 13 is a first memory for storing the number of packets for each LCN, and 14 is an operation for performing +1 operation on the input numerical value. Means, 15 a comparing means for comparing the regulation value with the output of the calculating means 14, and 16 a second means for storing the number of bytes for each LCN.
The memory 17 represents an adding means for adding the output of the second memory and the output of the byte number counting means 11.

なお、パケットは可変長のデータを使用する(固定長
のものもあるが)場合、パケット数を検出するだけで
は、正確なデータ量が把握できないので、バイト数を別
に検出することによりデータ量に応じたトラフィック規
制またはデータ量に応じて決まる課金処理の基礎データ
として利用される。
When packets use variable-length data (though some are fixed-length), it is not possible to determine the exact amount of data simply by detecting the number of packets. It is used as basic data for billing processing determined according to the traffic regulation or data amount.

本発明は、パケット通信装置内の一時記憶手段をパケ
ットが通過する際に、各パケットヘッダの論理チャネル
番号を検出してその論理チャネル番号をアドレスとして
パケット数とバイト数をそれぞれ記憶する第1メモリと
第2メモリの内容を読み出して更新し、トラフィック規
制を越えることも同時に検出して、ハードウェアにより
処理を実現するものである。
The present invention is directed to a first memory for detecting a logical channel number of each packet header when a packet passes through temporary storage means in a packet communication device, and storing the number of packets and the number of bytes using the logical channel number as an address. And the contents of the second memory are read out and updated, and it is simultaneously detected that the traffic regulation is exceeded, and the processing is realized by hardware.

[作用] 第1図の一時記憶手段10はパケット通信装置内の交換
の入力側(記憶される前)または出力側(伝送路へ出力
する前)の位置に設けられ、入力された内容はそのまま
出力される。パケットのヘッダが一時記憶手段10に入力
された時その中の論理チャネル番号LCNが検出されるとL
CN保持手段12に格納される。これにより第1メモリ13と
第2メモリ16からLCN保持手段12の出力をアドレスとし
て読み出しが行われる。
[Operation] The temporary storage means 10 shown in FIG. 1 is provided at a position on the input side (before being stored) or the output side (before outputting to the transmission path) of the exchange in the packet communication apparatus, and the input contents are kept as they are. Is output. When the logical channel number LCN is detected when the packet header is input to the temporary storage means 10,
It is stored in the CN holding means 12. Thereby, reading is performed from the first memory 13 and the second memory 16 using the output of the LCN holding means 12 as an address.

第1メモリ13からは、そのLCNに対応する前回までの
パケット数Pnが出力されて演算手段14に供給され、演算
手段14においてプラス1の演算が行われると、その出力
は第1メモリ13のデータ入力として供給され、第1メモ
リ13ではLCN保持手段12の出力をアドレスとして元の位
置に書き込みが行われる。
From the first memory 13, the number of packets Pn up to the previous time corresponding to the LCN is output and supplied to the arithmetic means 14. When the arithmetic means 14 performs a plus one operation, the output is stored in the first memory 13. The data is supplied as a data input. In the first memory 13, writing is performed at the original position using the output of the LCN holding means 12 as an address.

一方、一時記憶手段10を一つのパケットが通過する
と、そのパケットに含まれるバイト(1バイト=8ビッ
ト)数がバイト計数手段11により計数され、一つのパケ
ットが終了すると、計数されたバイト数が加算手段17に
出力され、加算手段17において第2メモリ16から出力さ
れ加算手段内部か、別の図示されないバッファかに保持
されたバイト数(前回までのバイト数の積算値)と加算
され、その結果は第2メモリ16の入力データとして供給
され、LCN保持手段12の出力をアドレスとして該入力デ
ータの書き込みが行われる。
On the other hand, when one packet passes through the temporary storage means 10, the number of bytes (1 byte = 8 bits) included in the packet is counted by the byte counting means 11, and when one packet ends, the counted number of bytes is counted. The number of bytes output from the second memory 16 to the addition means 17 and held in the addition means or in another buffer (not shown) is added to the addition means 17 (integrated value of the number of bytes up to the previous time). The result is supplied as input data of the second memory 16, and the input data is written using the output of the LCN holding means 12 as an address.

上記のパケット数の+1の演算手段14の出力が発生す
ると、その出力は比較手段15に供給され、比較手段15は
この時他方の入力側に予め設定されたパケット数のトラ
フィック規制値が供給され、演算手段14から入力された
パケット数がトラフィック規制値に達した時に、規制信
号を出力する。また、上記のバイト数の加算手段17の加
算結果も演算手段14と異なるタイミングで比較手段15に
供給され、その時バイト数によるトラフィック規制値が
他方の入力側に供給されるので、比較が行われ、前記と
同様にトラフィック規制値に達すると、規制信号を出力
する。
When the output of the arithmetic unit 14 of +1 of the above-mentioned number of packets is generated, the output is supplied to the comparing unit 15, and at this time, the traffic regulation value of the preset number of packets is supplied to the other input side. When the number of packets input from the calculating means 14 reaches the traffic regulation value, the traffic control unit 14 outputs a regulation signal. Also, the addition result of the above-mentioned byte number adding means 17 is supplied to the comparing means 15 at a timing different from that of the arithmetic means 14, and at that time, the traffic regulation value based on the byte number is supplied to the other input side, so that the comparison is performed. When the traffic regulation value is reached as described above, a regulation signal is output.

また、上記の第1メモリ13に格納された各LCNのパケ
ットの計数値と第2メモリ16に格納された各LCNのバイ
トの計数値は各利用者(LCNに対応する)に対する課金
情報として使用する。
The count value of each LCN packet stored in the first memory 13 and the count value of each LCN byte stored in the second memory 16 are used as billing information for each user (corresponding to the LCN). I do.

[実施例] 第2図は本発明の実施例構成図、第3図(a)は本発
明が適用されるパケット通信装置の構成図、第3図
(b)はパケット通信装置中の一部の構成図である。
Embodiment FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3 (a) is a block diagram of a packet communication device to which the present invention is applied, and FIG. 3 (b) is a part of the packet communication device. FIG.

第2図において、20はシフトレジスタ、21はLCNラッ
チ回路、22は各LCN対応のパケット数を記憶する第1メ
モリ、23は各LCN対応のバイト数を記憶する第2メモ
リ、24はバイト数カウンタ、25−1は加算を行う演算回
路、25−2は入力値に+1の演算を行う演算回路、26は
コンパレータ、27は各LCN対応のトラフィック規制値を
記憶する第3メモリ、28はレジスタ、29はデコーダを表
す。
In FIG. 2, reference numeral 20 denotes a shift register, 21 denotes an LCN latch circuit, 22 denotes a first memory that stores the number of packets corresponding to each LCN, 23 denotes a second memory that stores the number of bytes corresponding to each LCN, and 24 denotes the number of bytes. A counter, 25-1 is an arithmetic circuit for performing addition, 25-2 is an arithmetic circuit for performing +1 operation on an input value, 26 is a comparator, 27 is a third memory for storing a traffic regulation value corresponding to each LCN, and 28 is a register , 29 represent a decoder.

第2図に示すトラフィック検出回路の実施例の動作を
説明すると、線路上を流れてきたパケットはシフトレジ
スタ20に通される。ここでタイミングを計り、パケット
ヘッダのLCN部をLCNラッチ回路21に保持する。このLCN
を第1メモリ22と第2メモリ23のアドレスとして、両メ
モリの読み出しを行ない,LCNに対応するパケット数とバ
イト数が読みだされる。第1メモリ22からのパケット数
は出力データバス221から演算回路25−2に入力し、+
1の演算が行われ、その結果の出力は第1メモリ22の入
力データバス220に供給され、同じLCNラッチ回路2の出
力をアドレスとして第1メモリ22に書込まれる。
The operation of the embodiment of the traffic detection circuit shown in FIG. 2 will be described. Packets flowing on the line are passed to the shift register 20. Here, the timing is measured, and the LCN portion of the packet header is held in the LCN latch circuit 21. This LCN
Are read from the first memory 22 and the second memory 23, and the number of packets and the number of bytes corresponding to the LCN are read. The number of packets from the first memory 22 is input from the output data bus 221 to the arithmetic circuit 25-2.
1 is performed, and the resulting output is supplied to the input data bus 220 of the first memory 22, and is written to the first memory 22 using the output of the same LCN latch circuit 2 as an address.

バイト数(パケットサイズ値)は,シフトレジスタ20
の位置においてバイト数カウンタ24によりカウントさ
れ、その数値は演算回路25−1に供給され、第2メモリ
23の読み出し出力であるそれまでのバイト数の積算値と
加算され、加算結果は第2メモリ23の入力データバス23
0に与えられ、同じLCNをアドレスとして再度格納され
る。
The number of bytes (packet size value) is
Is counted by the byte number counter 24 at the position of, and the numerical value is supplied to the arithmetic circuit 25-1 and the second memory
23 is added to the integrated value of the number of bytes so far, which is the read output of 23, and the addition result is input data bus 23 of the second memory 23.
It is given to 0 and stored again with the same LCN as the address.

第3メモリ27には予め各LCN毎のトラフィック量のし
きい値(パケット数とバイト数のしきい値)が格納され
ており、演算回路25−1による演算または演算回路25−
2による演算が行われた時に、各演算結果の値と第3メ
モリ27の各値との比較をコンパレータ26において実行す
る。その場合、最初にパケット数の演算が行われるの
で、演算回路25−2の出力と第3メモリ27のパケット数
のしきい値の比較を行い、パケットが通過した時に演算
回路25−1から得られるバイト数の加算結果と第3メモ
リ27のバイト数のしきい値との比較が行われる。この
時、各演算回路25−1,2における演算結果が、対応して
入力したしきい値を越える場合は、その旨を通知する規
制信号が出力され、伝送路上に許容以上のパケットが流
れたことを通知する。これにより、パケット規制のタイ
ミングが検出できる。
The third memory 27 stores in advance the threshold value of the traffic amount (threshold value of the number of packets and the number of bytes) for each LCN, and performs the calculation by the arithmetic circuit 25-1 or the arithmetic circuit 25-.
2, the comparator 26 compares the value of each operation result with each value of the third memory 27. In this case, since the calculation of the number of packets is performed first, the output of the arithmetic circuit 25-2 is compared with the threshold value of the number of packets in the third memory 27, and when the packet passes, the output is obtained from the arithmetic circuit 25-1. The result of addition of the number of bytes to be obtained is compared with a threshold value of the number of bytes in the third memory 27. At this time, if the calculation result in each of the calculation circuits 25-1 and 2 exceeds the threshold value correspondingly input, a regulation signal notifying the fact is output, and a packet exceeding the allowable value flows on the transmission path. Notify that. Thereby, the timing of packet regulation can be detected.

また、データバス280とアドレスバス290は図示しない
通信制御装置に接続されて、制御及び監視動作が行われ
る。すなわち、アドレスバス290上にアドレスが入力さ
れてデコーダ29に供給されると、その一部がレジスタ28
に供給されて、第1メモリ22か第2メモリ23の何れかを
選択する出力を発生する。選択出力は各アドレスとデー
タバス中に設けられたスリーステートのゲート回路(22
a,22b・・等)に供給されオン,オフ制御され、選択し
たメモリの任意のアドレス(LCNに対応)に記憶された
数値を読み出してデータバス280に出力することができ
る。
The data bus 280 and the address bus 290 are connected to a communication control device (not shown) to perform control and monitoring operations. That is, when an address is input to the address bus 290 and supplied to the decoder 29, part of the address is transferred to the register 28.
To generate an output for selecting either the first memory 22 or the second memory 23. The selection output is provided by a three-state gate circuit (22) provided in each address and data bus.
a, 22b,...), is controlled to be on and off, and can read a numerical value stored at an arbitrary address (corresponding to LCN) of the selected memory and output it to the data bus 280.

これにより、通信制御装置側から2つのメモリ22,23
の初期化設定を行ったり、パケット数やバイト数のカウ
ント動作中に必要とするLCNの数値を通信制御装置から
読み出して監視することができる。また、第3メモリ27
に対しては通信制御装置からアドレスを指定して、デー
タバス280に規制しきい値を入力して書込むことにより
各LCN毎のトラフィック規制を行うことができる。
Thereby, the two memories 22 and 23 are received from the communication control device side.
It is possible to perform initialization setting and read the value of the LCN required during the count operation of the number of packets and bytes from the communication control device and monitor it. The third memory 27
By specifying an address from the communication control device and inputting and writing a regulation threshold value to the data bus 280, traffic regulation for each LCN can be performed.

本発明の実施例が適用されるパケット通信装置の構成
について第3図(a),第3図(b)により概説する。
The configuration of the packet communication device to which the embodiment of the present invention is applied will be outlined with reference to FIGS. 3 (a) and 3 (b).

第3図(a)に示すパケット通信装置は高速パケット
の交換を行うもので、30は伝送路/端末収容部であり、
そこには他ノードからの複数の伝送路や端末との接続線
が収容され、そこから入力側の伝送路インタフェース3
1,・・・端末インタフェース32に入力し、それぞれパケ
ットスイッチ交換部33の各入力端子に接続されている。
The packet communication device shown in FIG. 3 (a) exchanges high-speed packets, and 30 is a transmission line / terminal accommodating unit.
It contains a plurality of transmission lines from other nodes and connection lines to terminals, from which the input-side transmission line interface 3
1,... Are input to the terminal interface 32 and connected to the respective input terminals of the packet switch switching unit 33.

パケットスイッチ交換部33において蓄積交換されたパ
ケットは他ノードに接続された伝送路または端末への線
路に対して設けられた伝送路インタフェース35,・・・
端末インタフェース36を通って出力される。このパケッ
トスイッチ交換部33の制御は、通信制御装置(NCP)34
により行われ、各入力側のパケットの制御情報と出力側
の状態を監視することにより最適な伝送路を選択して切
換え制御される。
The packets stored and switched in the packet switch switching unit 33 are transmitted through a transmission line interface 35 provided for a transmission line connected to another node or a line to a terminal.
Output through the terminal interface 36. The control of the packet switch exchange unit 33 is performed by a communication control unit (NCP) 34.
By monitoring the control information of each input side packet and the state of the output side, an optimum transmission path is selected and switching control is performed.

第2図の実施例に示す本発明のトラフィック検出回路
は、第3図(a)のパケットスイッチ交換部33へ入力す
る前の各伝送路インターフェース31,・・・端末インタ
フェース32内か、パケットスイッチ交換部33から出力さ
れた各伝送路インタフェース35,・・・端末インタフェ
ース36内に設けることができる。
The traffic detection circuit of the present invention shown in the embodiment of FIG. 2 is used in the transmission line interface 31,..., The terminal interface 32 before input to the packet switch switching unit 33 of FIG. Each of the transmission line interfaces 35 output from the switching unit 33,...

第3図(b)には、第3図(a)の伝送路インタフェ
ース35に本発明のトラフィック検出回路を設けた場合の
構成例が示されており、パケットスイッチ交換部33(第
3図(a))から出力されたパケットは第3図(b)の
伝送路インタフェース35に入力し、インタフェース回路
351を通って伝送路処理回路352において伝送路へ送信す
るための信号処理が行われ、インタフェース回路354か
ら伝送路へ送出される。インターフェース回路351から
の出力は分岐してトラフィック検出回路353に入力し
て、上記第2図に示す構成によりパケット数、バイト数
の計数が行われる。トラフィック検出回路は第2図に関
して説明したように通信制御装置34により制御され、ま
た、トラフィック規制装置37はトラフィック規制値を与
えるとともに、規制値を越えた時にパケットの発生元に
対して規制パケットを発生する等のトラフィック制御を
行う。また、パケットのバイト数は課金処理装置38によ
り収集されて課金計算が行われる。
FIG. 3 (b) shows a configuration example in which the traffic detection circuit of the present invention is provided in the transmission line interface 35 of FIG. 3 (a), and the packet switch switching unit 33 (FIG. 3 ( The packet output from a)) is input to the transmission line interface 35 shown in FIG.
Signal processing for transmission to the transmission path is performed in the transmission path processing circuit 352 through 351, and the signal is transmitted from the interface circuit 354 to the transmission path. The output from the interface circuit 351 is branched and input to the traffic detection circuit 353, where the number of packets and the number of bytes are counted by the configuration shown in FIG. The traffic detection circuit is controlled by the communication control device 34 as described with reference to FIG. 2, and the traffic control device 37 gives a traffic control value and, when the control value is exceeded, sends a control packet to the packet source. It performs traffic control such as occurrence. Further, the number of bytes of the packet is collected by the accounting processing device 38 and accounting is performed.

[発明の効果] 本発明によれば、パケットのトラフィック検出をハー
ドウェアで処理することにより高速化することができ、
高速パケット通信にも適用することができる。また、論
理チャネル番号(LCN)の増加に対してもメモリの容量
の拡張により対処することができる。さらに、任意の時
間間隔でのトラフィック容量の検出ができるため、幅広
いトラフィック規制が可能になる。
[Effects of the Invention] According to the present invention, it is possible to speed up packet detection by processing the traffic by hardware,
It can also be applied to high-speed packet communication. In addition, an increase in the logical channel number (LCN) can be dealt with by expanding the memory capacity. Further, since the traffic capacity can be detected at arbitrary time intervals, a wide range of traffic regulation can be achieved.

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

第1図は本発明の基本構成図、第2図は本発明の実施例
構成図、第3図(a)は本発明が適用されるパケット通
信装置の構成図、第3図(b)はパケット通信装置中の
一部の構成図、第4図は従来例の説明図である。 第1図中、 10:一時記憶手段 11:バイト計数手段 12:論理チャネル番号(LCN)保持手段 13:第1メモリ 14:演算手段 15:比較手段 16:第2メモリ 17:加算手段
FIG. 1 is a basic block diagram of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3 (a) is a block diagram of a packet communication apparatus to which the present invention is applied, and FIG. FIG. 4 is a diagram showing a configuration of a part of a packet communication device, and FIG. 4 is an explanatory diagram of a conventional example. In FIG. 1, 10: temporary storage means 11: byte counting means 12: logical channel number (LCN) holding means 13: first memory 14: arithmetic means 15: comparing means 16: second memory 17: adding means

フロントページの続き (56)参考文献 特開 昭61−252731(JP,A) 特開 昭63−107249(JP,A) 特開 平1−183939(JP,A) 特開 昭63−280542(JP,A)Continuation of the front page (56) References JP-A-61-252731 (JP, A) JP-A-63-107249 (JP, A) JP-A-1-183939 (JP, A) JP-A-63-280542 (JP) , A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】パケット通信におけるトラフィック検出回
路において, 伝送路を通過する論理チャネル番号を含む可変長のパケ
ットを保持する一時記憶手段と, 前記一時記憶手段からパケットの論理チャネル番号を選
択して保持する論理チャネル番号保持手段と, 前記一時記憶手段を通過する各パケットのバイト数を計
数するバイト計数手段と, 前記論理チャネル番号保持手段の出力をアドレスとし
て,各論理チャネル番号毎のパケット数を格納する第1
メモリと,各論理チャネル番号毎のパケットのバイト数
を格納する第2メモリと,各論理チャネル番号毎の予め
規制値として設定されたバイト数及びパケット数を格納
する第3のメモリと,比較手段とを備え, 前記第1メモリ,第2メモリ及び第3メモリはパケット
の通過毎に前記論理チャネル番号によりアクセスされ,
前記第1メモリから読み出した内容は演算手段により1
だけ加算され,前記第2メモリから読み出した内容な前
記バイト計数手段の出力と加算手段により加算され,各
加算結果がそれぞれ元のメモリに書き込まれると共に, 前記比較手段は,前記パケット数の加算結果及びバイト
数の加算結果をそれぞれ前記第3メモリから読み出した
パケット数の規制値及びバイト数の規制値と順次比較さ
れ,前記各加算結果の一方が対応する規制値を越えたこ
とを検出すると当該論理チャネル番号に対応する規制信
号を発生することを特徴とするパケット通信におけるト
ラフィック検出回路。
In a traffic detection circuit for packet communication, a temporary storage means for holding a variable-length packet including a logical channel number passing through a transmission path, and a logical channel number of a packet selected and held from the temporary storage means. A logical channel number holding unit that performs counting, a byte counting unit that counts the number of bytes of each packet passing through the temporary storage unit, and stores the number of packets for each logical channel number using an output of the logical channel number holding unit as an address. First
A memory, a second memory for storing the number of bytes of a packet for each logical channel number, a third memory for storing a predetermined number of bytes and a number of packets for each logical channel number as a regulation value, The first memory, the second memory, and the third memory are accessed by the logical channel number every time a packet passes,
The content read from the first memory is 1
Is added to the output of the byte counting means, which is the content read from the second memory, and is added by the adding means. Each addition result is written to the original memory, and the comparison means calculates the addition result of the number of packets. And the result of addition of the number of bytes is sequentially compared with the regulation value of the number of packets and the regulation value of the number of bytes read from the third memory, and when it is detected that one of the addition results exceeds the corresponding regulation value, A traffic detection circuit in packet communication, which generates a regulation signal corresponding to a logical channel number.
JP63218970A 1988-09-01 1988-09-01 Traffic detection circuit in packet communication Expired - Fee Related JP2580014B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63218970A JP2580014B2 (en) 1988-09-01 1988-09-01 Traffic detection circuit in packet communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63218970A JP2580014B2 (en) 1988-09-01 1988-09-01 Traffic detection circuit in packet communication

Publications (2)

Publication Number Publication Date
JPH0267044A JPH0267044A (en) 1990-03-07
JP2580014B2 true JP2580014B2 (en) 1997-02-12

Family

ID=16728214

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63218970A Expired - Fee Related JP2580014B2 (en) 1988-09-01 1988-09-01 Traffic detection circuit in packet communication

Country Status (1)

Country Link
JP (1) JP2580014B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011155442A (en) * 2010-01-27 2011-08-11 Nippon Telegr & Teleph Corp <Ntt> Traffic measurement circuit of pon system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61252731A (en) * 1985-05-01 1986-11-10 Canon Inc Transmitter
US4775973A (en) * 1986-10-22 1988-10-04 Hewlett-Packard Company Method and apparatus for a packet-switched network communications measurement matrix display
JPS63280542A (en) * 1987-05-12 1988-11-17 Fujitsu Ltd Flow control system in communication network
JP2624495B2 (en) * 1988-01-18 1997-06-25 日本電信電話株式会社 Traffic observation method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011155442A (en) * 2010-01-27 2011-08-11 Nippon Telegr & Teleph Corp <Ntt> Traffic measurement circuit of pon system

Also Published As

Publication number Publication date
JPH0267044A (en) 1990-03-07

Similar Documents

Publication Publication Date Title
JP2753294B2 (en) Packet congestion control method and packet switching device
US5477536A (en) Method and system for routing information between nodes in a communication network
CA2326124A1 (en) Apparatus and method for monitoring data flow at a node on a network
EP1493091A1 (en) System for monitoring and facilitating data transfer traffic on at least one link node
JPH04257145A (en) Method and device for packet flow rate control
CN1050963A (en) Fault detection and bandwidth monitoring device for packet switching equipment
US6415363B1 (en) Memory statistics counter and method for counting the number of accesses to a portion of memory
JP2580014B2 (en) Traffic detection circuit in packet communication
US6496478B1 (en) Method and apparatus for controlling traffic queues in network switches
AU711570B2 (en) Addressable, high speed counter array
US6813734B1 (en) Method and apparatus for data alignment
US5835711A (en) Method and system for implementing multiple leaky bucket checkers using a hybrid synchronous/asynchronous update mechanism
US5493562A (en) Apparatus and method for selectively storing error statistics
US6747978B1 (en) Direct memory access packet router method and apparatus
US6965606B2 (en) Method and apparatus for byte rotation
JP2725475B2 (en) Buffer circuit for cell switching equipment
JP3278831B2 (en) Packet processing device
JPH0494237A (en) Priority control system in atm exchange channel
JPH04369139A (en) Atm traffic control system
JPH05110585A (en) Policing function monitor method
JP2683283B2 (en) Buffer memory load management method in ATM switching communication path
JPH088576B2 (en) Channel characteristics monitoring method
JP2899609B2 (en) Cell sending device
KR20000075309A (en) Monitor Apparatus and method for a traffic of Packet router
JP3106276B2 (en) Information flow restriction device

Legal Events

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