JPH0851426A - Pulse generation rate monitoring circuit - Google Patents

Pulse generation rate monitoring circuit

Info

Publication number
JPH0851426A
JPH0851426A JP18319094A JP18319094A JPH0851426A JP H0851426 A JPH0851426 A JP H0851426A JP 18319094 A JP18319094 A JP 18319094A JP 18319094 A JP18319094 A JP 18319094A JP H0851426 A JPH0851426 A JP H0851426A
Authority
JP
Japan
Prior art keywords
time
timer
pulse
pulse generation
flag
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.)
Pending
Application number
JP18319094A
Other languages
Japanese (ja)
Inventor
Kozo Odaka
浩三 小高
Kenji Kudo
健司 工藤
Yasuharu Kotoi
康晴 小樋
Shinichi Ezaka
慎一 江坂
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.)
Hitachi Ltd
Nippon Telegraph and Telephone Corp
Original Assignee
Hitachi Ltd
Nippon Telegraph and Telephone Corp
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 Hitachi Ltd, Nippon Telegraph and Telephone Corp filed Critical Hitachi Ltd
Priority to JP18319094A priority Critical patent/JPH0851426A/en
Publication of JPH0851426A publication Critical patent/JPH0851426A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To always calculate a pulse generation rate and to execute monitoring without a detection error in a counter circuit for monitoring whether pulses are generated more than within the time (t) or not. CONSTITUTION:In a pulse generation rate monitoring circuit consisting of a cell receiving circuit 1 for generating a pulse at the time of receiving a valid cell, a memory 2 for storing a timer value at the time of generating a pulse, flags 31, 32 for managing the number of overflows in a timer 5, a control circuit 4 for calculating a pulse generation ratio, the timer 5, and an N-notation counter 6 for counting the number of generated pulses, the timer 5 manages the number of overflows by alternately turning respective flags 31, 32 to '1' at the time of generating a timer overflow and the control circuit 4 calculates and monitors a pulse generation rate by a timer value at the time of generating a pulse, a timer value at the time of generating pulses n times ago which has been stored in the memory 2 and the values of the flags 31, 32.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ATM網からセルを受
信し、時間t当たりn個以上の有効セルを受信するか否
かでスループットを監視するなどのパルス発生率を監視
するシステムに係り、パルス発生率の監視を常時行える
計数回路に関する。例えば、通信網内のトラヒック制限
の正常性監視及びエラー監視回路に用い得るパルス発生
率監視回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system for monitoring a pulse generation rate such as receiving a cell from an ATM network and monitoring throughput depending on whether or not n or more valid cells are received per time t. The present invention relates to a counting circuit capable of constantly monitoring the pulse generation rate. For example, the present invention relates to a pulse generation rate monitoring circuit that can be used as a traffic limit normality monitoring and error monitoring circuit in a communication network.

【0002】[0002]

【従来の技術】例えば、ATM網では、受信側の処理能
力を超える入力があったときには対応しえない。したが
って、受信側の処理能力を超えた入力があったことを監
視する必要がある。従来の回路は、特開昭56−116
331号公報に記載のように、設定された時間tの間に
n回以上のパルスがあるか否かを監視する場合、設定さ
れた時間t毎のサンプリングを行いその間のパルス発生
回数を監視する構成になっていた。
2. Description of the Related Art For example, an ATM network cannot handle an input exceeding the processing capacity of the receiving side. Therefore, it is necessary to monitor that there is an input that exceeds the processing capability of the receiving side. The conventional circuit is disclosed in JP-A-56-116.
As described in Japanese Patent No. 331,331, when monitoring whether or not there are n or more pulses within a set time t, sampling is performed every set time t and the number of pulse generations during that time is monitored. It was structured.

【0003】[0003]

【発明が解決しようとする課題】上記従来技術は、パル
ス発生率の監視を設定された一定時間毎のサンプリング
で行っていた。このためサンプリングとサンプリングと
の間にまたがる時間t内に規定値を越える数のパルスが
発生した場合は、これを検出できないという問題があ
る。
In the above-mentioned prior art, the pulse generation rate is monitored by sampling at set fixed time intervals. For this reason, there is a problem in that if a number of pulses exceeding the specified value occurs within the time t that extends between samplings, this cannot be detected.

【0004】本発明は、パルス発生率を監視する回路に
おいて、一定時間毎のサンプリングするときに設定され
た一定の時間t内に規定値を越える数のパルスが発生し
たときにこれを検出できるとともに、サンプリングとサ
ンプリングとの間にまたがる時間t内に規定値を越える
数のパルスが発生してもこれを検出できる監視能力の高
い監視回路を提供することを目的とする。
According to the present invention, a circuit for monitoring a pulse generation rate can detect when a number of pulses exceeding a specified value occur within a constant time t set when sampling is performed at regular time intervals. An object of the present invention is to provide a monitoring circuit having a high monitoring capability that can detect even if a number of pulses exceeding a specified value occurs within a time t extending between samplings.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、パルスを観測した時刻のタイマ値と、メ
モリに格納済みであるn回前のパルスが発生した時刻で
のタイマ値によって時間経過を算出し、これを基にパル
ス発生率を算出するようにした。すなわち、パルス発生
率が一定値を越えた事を検出するパルス発生率監視回路
において、パルス発生時刻を計時するタイマと、パルス
が発生した時刻での前記タイマ値を格納するメモリと、
パルス発生毎に前記タイマ値と前記メモリに格納済であ
るタイマ値によりパルス発生率を算出する制御回路を備
えた。
In order to achieve the above object, the present invention provides a timer value at the time of observing a pulse and a timer value at the time of occurrence of the nth previous pulse stored in the memory. The lapse of time was calculated in accordance with, and the pulse generation rate was calculated based on this. That is, in the pulse generation rate monitoring circuit that detects that the pulse generation rate exceeds a certain value, a timer that counts the pulse generation time, a memory that stores the timer value at the time when the pulse occurs,
A control circuit for calculating the pulse generation rate based on the timer value and the timer value already stored in the memory is provided for each pulse generation.

【0006】しかし、この場合タイマ値がオーバフロー
するとパルス発生率を正確に算出できなくなる。このた
め、本発明は、タイマオーバフロー回数を管理する管理
情報を用いてタイマ値がメモリに格納された後発生した
タイマ値のオーバフロー回数を管理することによって、
観測中にタイマ値がオーバフローした場合でも発生率を
正確に監視する。すなわち、前記パルス発生率監視回路
において、タイマ値のオーバフロー回数を管理する管理
情報を前記タイマ値を格納するメモリに対応させて具備
することによって、タイマ値がオーバフローした場合に
おいても、前記管理情報にてパルス発生率を算出可能と
した。
However, in this case, if the timer value overflows, the pulse generation rate cannot be calculated accurately. Therefore, the present invention manages the number of overflows of the timer value that occurs after the timer value is stored in the memory by using the management information for managing the number of timer overflows.
Accurately monitor the occurrence rate even if the timer value overflows during observation. That is, in the pulse rate monitoring circuit, by providing management information for managing the number of times of overflow of the timer value in association with the memory for storing the timer value, even if the timer value overflows, the management information is stored in the management information. The pulse generation rate can be calculated.

【0007】[0007]

【作用】本発明は、パルスが入力する毎に、パルスが発
生した時刻のタイマ値とメモリに格納済みであるn回前
のパルスが発生した時刻でのタイマ値を比較して時間を
算出し、パルス発生率の算出を常時行うので、従来例で
発生したサンプリング間の検出もれがなくなる。また、
タイマ値格納用メモリの各アドレスに対応させて2種類
のタイマオーバフロー管理用フラグを設け、タイマオー
バフロー時タイマは2種類の前記フラグを交互に“1”
とし、制御回路はパルス発生時タイマ値をメモリに格納
するのと同時に2種類のフラグを“0”とすることによ
りタイマ値がメモリに格納された後発生したタイマオー
バフロー回数(0,1,2回以上)の管理が可能とな
る。例えばタイマ値が格納されているメモリに対応する
フラグが“0”,“0”の場合は、タイマ値がメモリに
格納されてからタイマがオーバフローしていないことを
示す。フラグが“0”,“1”または“1”,“0”の
場合は、タイマが1回オーバフローしていることを示
す。フラグが“1”,“1”の場合は、タイマが2回以
上オーバフローしていることを示す。これによってタイ
マ値がメモリに格納されてからタイマがオーバフローし
た場合にもパルス発生率算出時に管理情報を参照するこ
とによりパルス発生率の監視を正確に行える。
According to the present invention, each time a pulse is input, the timer value at the time when the pulse is generated is compared with the timer value at the time when the pulse n times before stored in the memory is generated to calculate the time. Since the pulse generation rate is constantly calculated, the missed detection during sampling that occurs in the conventional example is eliminated. Also,
Two types of timer overflow management flags are provided corresponding to each address of the timer value storage memory, and the timer overflow timer alternately sets the above two types of flags to "1".
The control circuit stores the timer value at the time of pulse generation in the memory and at the same time sets the two types of flags to "0", so that the number of timer overflows (0, 1, 2, More than once) can be managed. For example, if the flag corresponding to the memory storing the timer value is "0" or "0", it indicates that the timer has not overflowed since the timer value was stored in the memory. If the flag is "0", "1" or "1", "0", it indicates that the timer has overflowed once. When the flags are "1" and "1", it indicates that the timer has overflowed twice or more. Thus, even if the timer overflows after the timer value is stored in the memory, the pulse generation rate can be accurately monitored by referring to the management information when calculating the pulse generation rate.

【0008】[0008]

【実施例】以下、本発明の1実施例を図1〜図3により
説明する。図1は、本発明のパルス発生率監視回路の1
実施例を示す構成図であり、ATM網からセルを受信
し、時間t当たりn個以上の有効セルを受信するか否か
でスループットを監視するパルス発生率監視回路の例を
示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS. FIG. 1 shows a pulse generation rate monitoring circuit 1 according to the present invention.
It is a block diagram showing an example, and shows an example of a pulse generation rate monitoring circuit for monitoring the throughput by receiving cells from an ATM network and receiving n or more valid cells per time t.

【0009】本発明に係るパルス発生率監視回路は、セ
ル受信回路1と、メモリ2と、第1のタイマオーバーフ
ロー回数監視フラグ31および第2のタイマオーバーフ
ロー回数監視フラグ32と、制御回路4と、T時間タイ
マ5と、N進カウンタ6と、警報回路7から構成され
る。
The pulse generation rate monitoring circuit according to the present invention comprises a cell receiving circuit 1, a memory 2, a first timer overflow frequency monitoring flag 31, a second timer overflow frequency monitoring flag 32, a control circuit 4, It is composed of a T time timer 5, an N-ary counter 6, and an alarm circuit 7.

【0010】セル受信回路1は、ATM網から受信した
受信セルのうちに有効セルを検出したときに有効セルパ
ルスを発生させ、制御回路4に送る。受信したセルは図
示を省略した通信処理手段に送られ処理が行われる。
The cell receiving circuit 1 generates a valid cell pulse when it detects a valid cell among the received cells received from the ATM network, and sends it to the control circuit 4. The received cell is sent to communication processing means (not shown) for processing.

【0011】メモリ2は、N(≧n)個分の記憶エリア
を持ち、制御回路4の指令によって有効セルパルスが発
生した時刻のタイマ値を順次各記憶エリアに格納するタ
イマ値格納メモリの働きをする。
The memory 2 has N (≧ n) storage areas, and functions as a timer value storage memory for sequentially storing the timer values at the time when the effective cell pulse is generated by the control circuit 4 in each storage area. To do.

【0012】二つのタイマオーバーフロー回数監視フラ
グ31,32は、各々タイマ値格納用メモリ2の各アド
レスに対応させてN個のフラグを有し、T時間タイマ5
がオーバーフローするとその信号を受けて第1のフラグ
または第2のフラグのいずれかが状態を変化させられ、
タイマ5のオーバフロー回数を管理する。なお、フラグ
31,32の初期値は、全て“1”にセットされる。
The two timer overflow count monitoring flags 31, 32 each have N flags corresponding to each address of the timer value storage memory 2, and the T time timer 5
Is overflowed, either the first flag or the second flag is changed in response to the signal,
It manages the number of overflows of the timer 5. The initial values of the flags 31 and 32 are all set to "1".

【0013】制御回路4は、有効セルパルスが発生した
時刻のT時間タイマ5の値をメモリ2に格納すると同時
に、そのメモリに対応するフラグ31,32の値を
“0”とし、n回前のパルス発生時刻のタイマ値と今回
のパルス発生時刻のタイマ値および、フラグ31,32
の値から両時刻間の時間を算出し、この時間とパルス発
生回数nから、パルス発生率を算出し、パルス発生率の
監視を行う。さらに、制御回路4には、パルスを受信す
る度に状態を変化するレジスタAが設けられている。
The control circuit 4 stores the value of the T time timer 5 at the time when the effective cell pulse is generated in the memory 2 and at the same time sets the values of the flags 31 and 32 corresponding to the memory to "0", which is n times before. Pulse generation time timer value, current pulse generation time timer value, and flags 31, 32
The time between both times is calculated from the value of, and the pulse generation rate is calculated from this time and the pulse generation number n, and the pulse generation rate is monitored. Further, the control circuit 4 is provided with a register A that changes its state each time a pulse is received.

【0014】T時間タイマ5は、T(≧t)時間カウン
トしオーバーフローした後初期値からカウントを再開す
る。N進カウンタ6は、有効セルパルス発生回数をカウ
ントし、Nまでカウントするとリセットされ初期値から
カウントを再開する。
The T time timer 5 restarts counting from the initial value after counting T (≧ t) time and overflowing. The N-ary counter 6 counts the number of valid cell pulse occurrences, is reset when counting to N, and restarts counting from the initial value.

【0015】警報回路7は、パルス発生率が監視値を越
えた事を通知する警報回路である。
The alarm circuit 7 is an alarm circuit for notifying that the pulse generation rate has exceeded the monitored value.

【0016】以下、働きを説明する。ここで、T時間タ
イマの値をt[p,q]で示し、pはp番目のパルス入
力時を示している。セル受信回路1は、ATM網から受
信したセル中に有効セルを検出すると、有効セルパルス
を制御回路4へ向けて送出する。制御回路4は、1番目
の有効セルパルスを受信すると、メモリ2のアドレス
(0)番地にT時間タイマ5の有効セルパルス受信時刻
の値t[1,1]を格納させるとともにアドレス(0)
対応のフラグ31,32を“0”とし、さらにN進カウ
ンタ6を1歩進させて“1”とする。次ぎに、2番目の
有効セルパルスを受信すると、制御回路4は、N進カウ
ンタ6の内容“1”が示すメモリ2のアドレス(1)番
地にT時間タイマ5のその受信時刻の値t[2,1]を
格納するとともにアドレス(1)対応のフラグ31,3
2を“0”とし、さらにN進カウンタ6の値を1歩進さ
せて“2”とする。このように、有効セルパルスを受信
する度にその受信時刻のT時間タイマ5の値tmを順次
メモリ2に格納するとともにメモリアドレスに対応する
フラグ31,32を“0”とし、さらにN進カウンタ6
を順次歩進させる。
The operation will be described below. Here, the value of the T time timer is indicated by t [p, q], and p indicates the time of the p-th pulse input. When the cell receiving circuit 1 detects a valid cell among the cells received from the ATM network, the cell receiving circuit 1 sends a valid cell pulse to the control circuit 4. When the control circuit 4 receives the first valid cell pulse, the control circuit 4 stores the value t [1,1] of the valid cell pulse reception time of the T time timer 5 in the address (0) of the memory 2 and the address (0).
The corresponding flags 31 and 32 are set to "0", and the N-ary counter 6 is further advanced to "1". Next, when the second valid cell pulse is received, the control circuit 4 stores the value t [2 of the reception time of the T time timer 5 at the address (1) of the memory 2 indicated by the content “1” of the N-ary counter 6. , 1] is stored and flags 31 and 3 corresponding to the address (1) are stored.
2 is set to "0", and the value of the N-ary counter 6 is further advanced to "2". As described above, each time a valid cell pulse is received, the value t m of the T time timer 5 at the reception time is sequentially stored in the memory 2 and the flags 31 and 32 corresponding to the memory address are set to "0", and the N-ary counter is further set. 6
Step by step.

【0017】N番目の有効セルパルスを受信すると、制
御回路4は、N進カウンタ6の内容“n”が示すメモリ
2のアドレス(n−1)番地にT時間タイマ5のその受
信時刻の値t[n,1」を格納するとともにメモリアド
レス(n−1)に対応するフラグ31,32を“0”と
し、さらにN進カウンタ6の値を1歩進させて“n”と
する。
When the Nth valid cell pulse is received, the control circuit 4 receives the value t of the reception time of the T time timer 5 at the address (n-1) of the memory 2 indicated by the content "n" of the N-ary counter 6. [N, 1] is stored, the flags 31 and 32 corresponding to the memory address (n-1) are set to "0", and the value of the N-ary counter 6 is advanced by 1 to "n".

【0018】次いで、N+1番目の有効セルパルスを受
信すると、制御回路4は、N進カウンタ6の内容“n”
が示すメモリ2のアドレス(n)番地に有効セルパルス
受信時刻のT時間タイマ5の値t[n+1,1]を格納
するとともに、メモリ2の(0)番地に格納されたn個
前の有効セルパルス受信時刻のT時間タイマ5の値t
[1,1]と現在のT時間タイマ5の値t[n+1,
1]との差を用いて両時刻の間の時間t[n+1,1]
−t[1,1]を算出する。さらに、制御回路4は、算
出された両時刻間の時間t[n+1,1]−t[1,
1]を用いてパルス発生率N/t[n+1,1]−t
[1,1]を算出する。制御回路4は、このパルス発生
率を、例えば制御回路4自体内に格納された基準値と比
較して、基準値を超えたときに、その旨を警報回路7に
送出して、受信回路に対して適切な対応を行わせる。
Next, when the (N + 1) th effective cell pulse is received, the control circuit 4 controls the content "n" of the N-ary counter 6.
Stores the value t [n + 1,1] of the T-time timer 5 at the effective cell pulse reception time in the address (n) of the memory 2 indicated by, and the nth valid cell pulse stored in the address (0) of the memory 2 Value t of the T time timer 5 at the reception time
[1,1] and the current value of the T time timer 5 t [n + 1,
1] and the time t [n + 1,1] between both times.
Calculate t [1,1]. Further, the control circuit 4 causes the calculated time t [n + 1,1] -t [1,
1] is used to generate the pulse generation rate N / t [n + 1, 1] -t
Calculate [1,1]. The control circuit 4 compares this pulse generation rate with, for example, a reference value stored in the control circuit 4 itself, and when it exceeds the reference value, it sends a message to that effect to the alarm circuit 7 to notify the receiving circuit. Have them respond appropriately.

【0019】以下、順次有効セルパルスを受信すると、
制御回路4は、メモリ2に格納されているn個前の有効
セルパルス受信時刻のT時間タイマ5の値と、今回の有
効セルパルス受信時刻のT時間タイマ5の値のとの差を
算出して、パルス発生率を算出する。N進カウンタ6が
カウントアップするとその値は0に戻り、メモリ2のア
ドレスは再度(0)番地からカウントされる。
Hereinafter, when the effective cell pulses are sequentially received,
The control circuit 4 calculates the difference between the value of the T time timer 5 at the n-th previous valid cell pulse reception time stored in the memory 2 and the value of the T time timer 5 at the current valid cell pulse reception time. , Calculate the pulse generation rate. When the N-ary counter 6 counts up, its value returns to 0, and the address of the memory 2 is again counted from the address (0).

【0020】ここで、有効セルパルスを受信してパルス
発生率を監視しているときに、時間Tが経過してタイマ
5がタイムアップしてオーバフローした時の処理を図2
の動作フローチャートを用いて説明する。
Here, the process when the time T elapses and the timer 5 times up and overflows while receiving the effective cell pulse and monitoring the pulse generation rate is shown in FIG.
This will be described with reference to the operation flow chart.

【0021】フラグ31および32は前述のように初期
状態で全て“1”にセットされているとする。制御回路
4に設けられたレジスタAは、T時間タイマ5がオーバ
ーフローしたことを示すパルスを受信する度にレジスタ
Aの状態を“0”または“1”に変化させる。ここで、
レジスタAの初期値は不定であって良い。
It is assumed that the flags 31 and 32 are all set to "1" in the initial state as described above. The register A provided in the control circuit 4 changes the state of the register A to "0" or "1" each time it receives a pulse indicating that the T time timer 5 has overflowed. here,
The initial value of the register A may be indefinite.

【0022】いま、T時間タイマ5がオーバフローした
とすると(S1)、オーバーフローの情報を得た制御回
路4は、自身のレジスタAが“0”であるか否かを判断
する(S2)。レジスタAが“0”であるとき第1のフ
ラグ31の(0)〜(n−1)番目のフラグを全て
“1”とし(S3)、レジスタAが“1”のときフラグ
32の(0)〜(n−1)番目のフラグを全て“1”と
する(S4)。次に、レジスタAの内容を反転させたも
のをレジスタAに格納する(S5)。
Now, assuming that the T time timer 5 overflows (S1), the control circuit 4 which has obtained the overflow information judges whether or not its own register A is "0" (S2). When the register A is "0", all the (0) to (n-1) th flags of the first flag 31 are set to "1" (S3), and when the register A is "1", the flag 32 (0 )-(N-1) th flags are all set to "1" (S4). Next, the inverted contents of the register A are stored in the register A (S5).

【0023】いま、上述の状態からT時間タイマ5が2
回目のオーバフローしたとすると(S1)、オーバーフ
ローの情報を得た制御回路4は、自身のレジスタAが
“0”であるか否かを判断する(S2)。レジスタAが
“0”であるときフラグ31の(0)〜(n−1)番目
のフラグを全て“1”とし(S3)、レジスタAが
“1”のときフラグ32の(0)〜(n−1)番目のフ
ラグを全て“1”とする(S4)。次に、レジスタAの
内容を反転させたものをレジスタAに格納する(S
5)。
Now, from the above state, the T time timer 5 is set to 2
If the overflow occurs for the second time (S1), the control circuit 4 which has obtained the overflow information determines whether or not its own register A is "0" (S2). When the register A is "0", all the (0) to (n-1) th flags of the flag 31 are set to "1" (S3), and when the register A is "1", the flags 32 (0) to (( All the (n-1) th flags are set to "1" (S4). Next, the inverted contents of register A are stored in register A (S
5).

【0024】後で述べるように、メモリ1のアドレスに
対応したフラグ31,32は、初期値は“1”でメモリ
1にタイマ値が書き込まれたときに“0”となる。した
がって、メモリ1にタイマ値が書き込まれた後に発生し
たタイマオーバーフロー回数は、メモリ1に対応したフ
ラグ31,32のいずれも“0”の場合は0回、フラグ
31,32のいずれかが“1”の場合は1回、フラグ3
1,32のいずれも“1”の場合は2回以上で示すこと
ができる。又、フラグ31,32のいずれも“1”の場
合は、メモリ1にタイマ値が何も格納されていない初期
値の場合もある。
As will be described later, the flags 31 and 32 corresponding to the address of the memory 1 have an initial value of "1" and become "0" when the timer value is written in the memory 1. Therefore, the number of timer overflows that occurs after the timer value is written in the memory 1 is 0 when both the flags 31 and 32 corresponding to the memory 1 are “0”, and the number of the flags 31 and 32 is “1”. If once, flag 3
When both 1 and 32 are "1", it can be shown more than once. Further, when both the flags 31 and 32 are "1", the timer value may be an initial value in which no memory value is stored.

【0025】一方、パルスが発生したときの制御回路4
の処理を説明する。
On the other hand, the control circuit 4 when a pulse is generated
The processing of will be described.

【0026】上に述べたように、メモリ2内には、パル
ス発生毎に制御回路4内のN進カウンタ6の示すアドレ
スにその時のタイマ値が格納され、パルス発生毎に前記
N進カウンタ6は歩進される。したがってパルス発生時
の前記N進カウンタ6の値をxとし、パルス発生率算出
のためのパルス回数をnとし、T時間タイマ5がオーバ
ーフローする時間をTとし、N進カウンタ6のカウント
アップ値をNすると、x≧nの場合は、そのn回前のパ
ルス発生時のタイマ値はメモリ2のアドレス(x−n)
番地の内容M(x−n)で表され、x<nの場合はメモ
リ2のアドレス(x−n+N)番地の内容M(x−n+
N)で表わされる。また、そのn回の間のタイマオーバ
フロー回数(0,1,2回以上)は、x≧nの場合は第
1のフラグ31の(x−n)番目のフラグの値F1(x
−n)および第2のフラグ32の(x−n)番目のフラ
グの値F2(x−n)から、F1(x−n)+F2(x
−n)で表される。x<nの場合は第1のフラグ31の
(x−n+N)番目の値F1(x−n+N)および第2
のフラグ32の(x−n+N)番目のフラグの値F1
(x−n+N)から、F1(x−n+N)+F2(x−
n+N)で表わされる。また、n回前のパルス発生時の
タイマ値がメモリ2に格納されていない場合、つまりト
ータルのパルス発生回数がn回に満たない場合は、フラ
グF1(x−n+N)及びF2(x−n+N)は、初期
値の“1”、“1”がでありオーバーフロー回数2回以
上とみなす。
As described above, in the memory 2, the timer value at that time is stored in the address indicated by the N-ary counter 6 in the control circuit 4 every time the pulse is generated, and the N-ary counter 6 is generated every time the pulse is generated. Is stepped. Therefore, the value of the N-ary counter 6 when a pulse is generated is x, the number of pulses for calculating the pulse generation rate is n, the time when the T time timer 5 overflows is T, and the count-up value of the N-ary counter 6 is N, if x ≧ n, the timer value when the pulse is generated n times before is the address (x−n) of the memory 2.
It is represented by the content M (x-n) of the address, and when x <n, the content M (x-n +) of the address (x-n + N) of the memory 2
N). Further, the number of timer overflows (0, 1, 2 or more) during the n times is the value F1 (x of the (x−n) th flag of the first flag 31 when x ≧ n.
-N) and the value F2 (x-n) of the (x-n) th flag of the second flag 32, F1 (x-n) + F2 (x
-N). When x <n, the (x−n + N) th value F1 (x−n + N) of the first flag 31 and the second
Value F1 of the (x−n + N) th flag of the flag 32 of
From (x−n + N), F1 (x−n + N) + F2 (x−
n + N). If the timer value at the time of generating the pulse n times before is not stored in the memory 2, that is, if the total number of times of generating the pulse is less than n times, the flags F1 (x-n + N) and F2 (x-n + N) are generated. ), Initial values “1” and “1” are, and the overflow count is considered to be 2 or more.

【0027】よって制御回路4は、パルスの発生がある
と(S11)、x≧nの場合は、発生時刻+T×(F1
(x−n)+F2(x−n))−M(x−n)<tの条
件が、x≧nの場合は、発生時刻+T×(F1(x−n
+N)+F2(x−n+N))−M(x−n+N)<t
の条件が満たされるか否か判断し(S12)、この条件
が満たされた場合パルス発生率が規定値を越えたものと
して警報回路7へ通知する(S13)。この後、およ
び、上記条件が満たされないときは、制御回路4は、メ
モリ2のM(x)にパルス発生時のタイマ値を格納し、
第1のフラグ31の(x−1)番地のフラグF1(x)
および第2のフラグ32の(x−1)番地のフラグF2
(x)を“0”とし(S14)、最後に内部のN進カウ
ンタ6を歩進させて終了する(S15)。
Therefore, when a pulse is generated (S11), the control circuit 4 generates the generation time + T × (F1 when x ≧ n.
When the condition of (x−n) + F2 (x−n)) − M (x−n) <t is x ≧ n, the occurrence time + T × (F1 (x−n)
+ N) + F2 (x−n + N)) − M (x−n + N) <t
If the condition is satisfied (S12), the alarm circuit 7 is notified that the pulse generation rate exceeds the specified value (S13). After this, and when the above conditions are not satisfied, the control circuit 4 stores the timer value at the time of pulse generation in M (x) of the memory 2,
The flag F1 (x) at the address (x-1) of the first flag 31
And the flag F2 at the address (x-1) of the second flag 32
(X) is set to "0" (S14), and finally the internal N-ary counter 6 is incremented to finish (S15).

【0028】本実施例によれば、タイマ5の容量を小さ
くすることができるとともに、複数のタイマ及び制御回
路を持つことなくパルス発生率の常時監視が可能とな
る。
According to this embodiment, the capacity of the timer 5 can be reduced, and the pulse generation rate can be constantly monitored without having a plurality of timers and control circuits.

【0029】また、本実施例では、タイマ値のオーバー
フロー回数の管理を2種類のフラグを用いて実現してい
るが、2ビット以上のカウンタを用いても実現可能であ
る。
Further, in the present embodiment, the management of the number of overflows of the timer value is realized by using two kinds of flags, but it can also be realized by using a counter of 2 bits or more.

【0030】また、本実施例では、タイマ5がオーバフ
ローした場合を考慮し、フラグ31,32によりタイマ
5のオーバフロー回数管理を行っているが、タイマ5の
値Tが十分大きい場合フラグ31,32による処理なし
でも実現可能である。例えば、精度1秒のタイマ値が3
2ビットあった場合、136年間オーバフローしない。
Further, in this embodiment, in consideration of the case where the timer 5 overflows, the number of overflows of the timer 5 is managed by the flags 31 and 32. However, when the value T of the timer 5 is sufficiently large, the flags 31 and 32 are used. It can be realized without processing by. For example, a timer value with an accuracy of 1 second is 3
If it has 2 bits, it will not overflow for 136 years.

【0031】次ぎに、本発明の第2の実施例を図4を用
いて説明する。本実施例では、第1のフラグ31および
第2のフラグ32はメモリ2のアドレスに対応したフラ
グを有している。T時間タイマ5がオーバーフローする
までの間は、第1のフラグ31および第2のフラグ32
は、それぞれ全て“0”,“0”となっている。いま、
K番目のパルスの受信体勢にあるときに、T時間タイマ
5がオーバフローしたとすると(S21)、オーバーフ
ローの情報を得た制御回路4は、自身のレジスタAが
“0”であるか否かを判断する(S22)。レジスタA
が“0”であるときフラグ31のK番目のフラグ(k)
を“1”とし(S23)、レジスタAが“1”のときフ
ラグ32のK番目のフラグ(k)を“1”とする(S2
4)。次に、レジスタAの内容を反転させたものをレジ
スタAに格納する(S25)。次いで、新たなパルスが
入力されたか否かを判断し(S26)、入力がなかった
ときはステップ(S21)に戻ってT時間タイマ5のオ
ーバーフローを監視する。新たな、パルスが入力された
ときには、オーバーフロー監視フローを終了する。した
がって、レジスタAが“0”であるとき第1のフラグ3
1はK番目のフラグ(k)が“1”であり他は全て
“0”の状態にあり、第2のフラグ32は全て“0”の
状態にある。レジスタAが“1”であるとき第1のフラ
グ31は全て“0”の状態にあり、第2のフラグ32は
K番目のフラグ(k)が“1”であり他は全て“0”の
状態にある。
Next, a second embodiment of the present invention will be described with reference to FIG. In this embodiment, the first flag 31 and the second flag 32 have flags corresponding to the addresses of the memory 2. Until the T time timer 5 overflows, the first flag 31 and the second flag 32
Are all "0" and "0", respectively. Now
When the T-time timer 5 overflows while the K-th pulse is being received (S21), the control circuit 4 that has obtained the overflow information determines whether or not its register A is "0". A judgment is made (S22). Register A
Is "0", the Kth flag (k) of the flag 31
Is set to "1" (S23), and when the register A is "1", the Kth flag (k) of the flag 32 is set to "1" (S2).
4). Next, the inverted contents of the register A are stored in the register A (S25). Next, it is determined whether or not a new pulse has been input (S26), and when there is no input, the process returns to step (S21) and the overflow of the T time timer 5 is monitored. When a new pulse is input, the overflow monitoring flow ends. Therefore, when the register A is “0”, the first flag 3
In the case of 1, the Kth flag (k) is "1" and the others are all "0", and the second flags 32 are all "0". When the register A is "1", the first flag 31 is in the state of "0", the second flag 32 is the Kth flag (k) is "1", and the others are all "0". Is in a state.

【0032】次いで、K番目のパルスの受信体勢にある
ときに、T時間タイマ5が2回目のオーバフローをした
とすると(S21)、オーバーフローの情報を得た制御
回路4は、自身のレジスタAが“0”であるか否かを判
断する(S22)。レジスタAが“0”であるとき第1
のフラグ31のK番目のフラグ(k)を“1”とし(S
3)、レジスタAが“1”のとき第2のフラグ32のK
番目のフラグ(k)を“1”とする(S4)。次に、レ
ジスタAの内容を反転させたものをレジスタAに格納す
る(S5)。したがって、レジスタAが“0”であると
き、前回のレジスタAの状態は“1”であったから、第
2のフラグ32のK番目のフラグ(k)は既に“1”の
状態に変わっており、今回第1のフラグ31のK番目の
フラグ(k)が“1”に変わる。このとき第1のフラグ
31および第2のフラグ32他のフラグは全て“0”で
ある。レジスタAの内容が“1”であるとき、前回のレ
ジスタAの状態は“0”であったから、第1のフラグ3
1のK番目のフラグ(k)は既に“1”の状態に変わっ
ており、今回第2のフラグ32のK番目のフラグ(k)
が“1”に変わる。このとき第1のフラグ31および第
2のフラグ32他のフラグは全て“0”である。
Next, when the T-time timer 5 overflows for the second time when the K-th pulse is in the receiving position (S21), the control circuit 4 which has obtained the overflow information has its register A It is determined whether it is "0" (S22). First when register A is "0"
The Kth flag (k) of the flag 31 is set to "1" (S
3), when the register A is "1", K of the second flag 32
The th flag (k) is set to "1" (S4). Next, the inverted contents of the register A are stored in the register A (S5). Therefore, when the register A is "0", the previous state of the register A was "1", so the Kth flag (k) of the second flag 32 has already changed to the state of "1". , The Kth flag (k) of the first flag 31 is changed to “1” this time. At this time, the first flag 31, the second flag 32 and other flags are all “0”. When the content of the register A is "1", the state of the previous register A was "0", so the first flag 3
The Kth flag (k) of 1 has already changed to the state of “1”, and the Kth flag (k) of the second flag 32 this time.
Changes to "1". At this time, the first flag 31, the second flag 32 and other flags are all “0”.

【0033】したがって、本発明によれば、K番目のパ
ルス待機時にT時間タイマ5が1回オーバーフローした
ときには、第1のフラグ31のK番目のフラグ(k)か
第2のフラグ32のK番目のフラグ(k)のいずれかが
“1”となってオーバーフロー1回の状態を示し、K番
目のパルス待機中にさらにT時間タイマ6が2回目のオ
ーバーフローをしたときには、第1のフラグ31のK番
目のフラグ(k)および第2のフラグ32のK番目のフ
ラグ(k)のいずれも“1”となってオーバーフロー2
回の状態を示すことができる。
Therefore, according to the present invention, when the T time timer 5 overflows once while waiting for the Kth pulse, the Kth flag (k) of the first flag 31 or the Kth flag of the second flag 32. Any of the flags (k) of "1" becomes "1" to indicate the state of one overflow, and when the T time timer 6 further overflows for the second time while waiting for the Kth pulse, the first flag 31 Both the Kth flag (k) and the Kth flag (k) of the second flag 32 become "1" and overflow 2
Can show the status of times.

【0034】同様に、K+1番目のパルス待機時にT時
間タイマ5がオーバーフローしたときには、第1のフラ
グ31か第2のフラグ32のK+1番目のフラグ(k+
1)のいずれかが“1”となってオーバーフロー1回の
状態を示し、K+1番目のパルス待機中にさらにT時間
タイマ5が2回目のオーバーフローをしたときには、第
1のフラグ31および第2のフラグ32のK番目のフラ
グ(k+1)のいずれも“1”となってオーバーフロー
2回の状態を示すことができる。
Similarly, when the T time timer 5 overflows while waiting for the (K + 1) th pulse, the K + 1th flag (k +) of the first flag 31 or the second flag 32.
When any one of 1) becomes "1" to indicate the state of one overflow, and the T-time timer 5 further overflows for the second time while waiting for the (K + 1) th pulse, the first flag 31 and the second flag 31 Any of the Kth flag (k + 1) of the flags 32 can be set to "1" to indicate the state of two overflows.

【0035】次ぎに、パルスが発生したときの制御回路
4の処理を説明する。
Next, the processing of the control circuit 4 when a pulse is generated will be described.

【0036】上に述べたように、メモリ2内には、パル
ス発生毎に制御回路4内のN進カウンタ6の示すアドレ
スにその時のタイマ値が格納され、パルス発生毎に前記
N進カウンタ6は歩進される。したがってパルス発生時
の前記N進カウンタ6の値をxとし、パルス発生率算出
のためのパルス回数をnとし、T時間タイマ5がオーバ
ーフローする時間をTとし、N進カウンタ6のカウント
アップ値をNすると、x≧nの場合は、そのn回前のパ
ルス発生時のタイマ値はメモリ2のアドレス(x−n)
番地の内容M(x−n)で表され、x<nの場合はメモ
リ2のアドレス(x−n+N)番地の内容M(x−n+
N)で表わされる。また、そのn回前からの間のタイマ
オーバフロー回数は、x≧nの場合は第1のフラグ31
の(x−n)番目から(n)番目までの全てのフラグの
値の和ΣF1と第2のフラグ32の(x−n)番目から
(n)番目までの全てのフラグの値の和ΣF2との和Σ
F1+ΣF2で表される。x<nの場合は第1のフラグ
31の(x−n+N)番目のから(n)番目までの全て
のフラグの値の和ΣF1と第2のフラグ32の(x−n
+N)番目から(n)番目までの全てのフラグの値の和
ΣF2との和ΣF1+ΣF2で表される。
As described above, in the memory 2, the timer value at that time is stored in the address indicated by the N-ary counter 6 in the control circuit 4 for each pulse generation, and the N-ary counter 6 is generated for each pulse generation. Is stepped. Therefore, the value of the N-ary counter 6 when a pulse is generated is x, the number of pulses for calculating the pulse generation rate is n, the time when the T time timer 5 overflows is T, and the count-up value of the N-ary counter 6 is N, if x ≧ n, the timer value when the pulse is generated n times before is the address (x−n) of the memory 2.
It is represented by the content M (x-n) of the address, and when x <n, the content M (x-n +) of the address (x-n + N) of the memory 2
N). In addition, the number of timer overflows from n times before is the first flag 31 when x ≧ n.
Of the (x−n) th to (n) th flags of the second flag 32, and the sum of the values of all (x−n) th to (n) th flags of the second flag 32, ΣF2 Sum Σ
It is represented by F1 + ΣF2. When x <n, the sum ΣF1 of the values of all the flags from the (x−n + N) th to the (n) th of the first flag 31 and the (x−n of the second flag 32
It is represented by the sum ΣF1 + ΣF2 with the sum ΣF2 of the values of all the flags from the + N) th to the (n) th.

【0037】よって制御回路4は、パルスの発生がある
と、x≧nの場合は、発生時刻+T×(ΣF1+ΣF
2)−M(x−n)<tの条件が、x≧nの場合は、発
生時刻+T×(ΣF1+ΣF2)−M(x−n+N)<
tの条件が満たされるか否か判断し、この条件が満たさ
れた場合パルス発生率が規定値を越えたものとして警報
回路7へ通知する。この後、および、上記条件が満たさ
れないときは、制御回路4は、メモリ2のM(x)にパ
ルス発生時のタイマ値を格納し、第1のフラグ31の
(x−1)番地のフラグF1(x)および第2のフラグ
32の(x−1)番地のフラグF2(x)を“0”とし
(S14)、最後に内部のN進カウンタ6を歩進させて
終了する。
Therefore, when a pulse is generated, the control circuit 4 generates the generation time + T × (ΣF1 + ΣF) when x ≧ n.
2) When the condition of -M (x-n) <t is x≥n, the occurrence time + Tx (ΣF1 + ΣF2) -M (x-n + N) <
It is determined whether or not the condition of t is satisfied, and if this condition is satisfied, the alarm circuit 7 is notified that the pulse generation rate exceeds the specified value. After this, and when the above conditions are not satisfied, the control circuit 4 stores the timer value at the time of pulse generation in M (x) of the memory 2, and the flag at the address (x-1) of the first flag 31. F1 (x) and the flag F2 (x) at the address (x-1) of the second flag 32 are set to "0" (S14), and finally the internal N-ary counter 6 is incremented to finish.

【0038】また、実施例1および実施例2では、ハー
ドウェアによる実現例を示したが、ファームウェア処理
による実現も可能である。また、警報回路7は、パルス
発生率が監視値を越えた事を通知する警報回路とした
が、パルス発生率が監視値に達しないことを通知する警
報装置であってもよい。
In the first and second embodiments, an example of hardware implementation is shown, but firmware implementation is also possible. Further, although the alarm circuit 7 is an alarm circuit for notifying that the pulse generation rate exceeds the monitoring value, it may be an alarm device for notifying that the pulse generation rate does not reach the monitoring value.

【0039】[0039]

【発明の効果】本発明によれば、パルス発生率の算出及
び監視を常時行えるため監視性能を向上させることがで
きる。
According to the present invention, since the pulse generation rate can be calculated and monitored at all times, the monitoring performance can be improved.

【0040】例えば、パルスの発生が指数分布に従うも
のとすると従来の方法では、サンプリングとサンプリン
グとの間にまたがって一定時間内に規定値を越える数の
パルスが発生するため、見逃しを生じる場合があるが、
本発明においてはそのような見逃しがなくなる。
For example, assuming that the generation of pulses follows an exponential distribution, in the conventional method, the number of pulses exceeding the specified value is generated within a certain period of time between samplings, so that it may be overlooked. But
The present invention eliminates such an oversight.

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

【図1】本発明に係る計数回路の構成を示すブロック
図。
FIG. 1 is a block diagram showing a configuration of a counting circuit according to the present invention.

【図2】本発明の第1の実施例におけるタイマオーバフ
ロー時のタイマの動作フローチャート。
FIG. 2 is an operation flowchart of the timer when the timer overflows in the first embodiment of the present invention.

【図3】本発明の第1の実施例におけるパルス発生時の
制御部の動作フローチャート。
FIG. 3 is an operation flowchart of a control unit when a pulse is generated in the first embodiment of the present invention.

【図4】本発明の第2の実施例におけるタイマオーバフ
ロー時のタイマの動作フローチャート。
FIG. 4 is an operation flowchart of the timer when the timer overflows in the second embodiment of the present invention.

【符号の説明】 1 セル受信回路 2 メモリ 4 制御回路 5 T時間タイマ 6 N進カウンタ 7 警報回路 31 第1のフラグ 32 第2のフラグ[Explanation of Codes] 1 cell reception circuit 2 memory 4 control circuit 5 T time timer 6 N-ary counter 7 alarm circuit 31 first flag 32 second flag

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04Q 3/00 (72)発明者 小樋 康晴 神奈川県横浜市戸塚区戸塚町216番地 株 式会社日立製作所情報通信事業部内 (72)発明者 江坂 慎一 東京都千代田区内幸町一丁目1番6号 日 本電信電話株式会社内─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 6 Identification number Internal reference number FI Technical display location H04Q 3/00 (72) Inventor Yasuharu Kohi 216 Totsuka-cho, Totsuka-ku, Yokohama-shi, Kanagawa Stock company Hitachi, Ltd. Information & Communication Division (72) Inventor Shinichi Esaka 1-1-6 Uchisaiwaicho, Chiyoda-ku, Tokyo Nihon Telegraph and Telephone Corporation

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 パルス発生率が一定値を越えた事を検出
するパルス発生率監視回路において、パルス発生時刻を
計時するタイマと、パルスが発生した時刻での前記タイ
マ値を格納するメモリと、パルス発生毎に前記タイマ値
と前記メモリに格納済であるタイマ値によりパルス発生
率を算出する制御回路を備えることを特徴とするパルス
発生率監視回路。
1. A pulse generation rate monitoring circuit for detecting that the pulse generation rate exceeds a certain value, a timer for measuring the pulse generation time, and a memory for storing the timer value at the time of the pulse generation. A pulse generation rate monitoring circuit comprising a control circuit that calculates a pulse generation rate based on the timer value and the timer value stored in the memory each time a pulse is generated.
【請求項2】 タイマ値のオーバフロー回数を管理する
管理情報を前記タイマ値を格納するメモリに対応させて
具備し、タイマ値がオーバフローした場合においても、
前記管理情報にてパルス発生率を算出可能としたことを
特徴とする請求項1に記載のパルス発生率監視回路。
2. Management information for managing the number of times the timer value overflows is provided in association with a memory for storing the timer value, and even when the timer value overflows,
The pulse generation rate monitoring circuit according to claim 1, wherein the pulse generation rate can be calculated based on the management information.
JP18319094A 1994-08-04 1994-08-04 Pulse generation rate monitoring circuit Pending JPH0851426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18319094A JPH0851426A (en) 1994-08-04 1994-08-04 Pulse generation rate monitoring circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18319094A JPH0851426A (en) 1994-08-04 1994-08-04 Pulse generation rate monitoring circuit

Publications (1)

Publication Number Publication Date
JPH0851426A true JPH0851426A (en) 1996-02-20

Family

ID=16131352

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18319094A Pending JPH0851426A (en) 1994-08-04 1994-08-04 Pulse generation rate monitoring circuit

Country Status (1)

Country Link
JP (1) JPH0851426A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6674716B1 (en) 1998-01-16 2004-01-06 International Business Machines Corporation Cell compliance decision method and apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6674716B1 (en) 1998-01-16 2004-01-06 International Business Machines Corporation Cell compliance decision method and apparatus

Similar Documents

Publication Publication Date Title
US7693876B2 (en) Monitoring usage rate patterns in storage resources
EP0661847A2 (en) Automated benchmarking with self customization
US8326974B2 (en) Typicality filtering of event indicators for information technology resources
EP1065827A1 (en) Method and apparatus for detecting service anomalies in transaction-oriented networks
CN102077511A (en) Message management and suppression in a monitoring system
US20060077905A1 (en) Measure and recording of traffic parameters in data transmission networks
WO2011009000A1 (en) Method and apparatus for telecommunications network performance anomaly events detection and notification
US5923742A (en) System and method for detecting mass addressing events
EP0884684B1 (en) Multiple interrupt handling method and apparatus
JP4578371B2 (en) Monitoring information acquisition device
JPH0851426A (en) Pulse generation rate monitoring circuit
CN115296904B (en) Domain name reflection attack detection method and device, electronic equipment and storage medium
US5778172A (en) Enhanced real-time topology analysis system or high speed networks
US6804715B1 (en) Switch control apparatus, switch control method, and a computer-readable recording medium in which is recorded a switch control program
US5867096A (en) Method for signal degradation alarm detection and cancellation in synchronous digital microwave system
JP3183327B2 (en) Alarm information collection method
JP3140604B2 (en) Policing circuit
US5287357A (en) Communication control device having an apparatus for detecting the absence of a control data on a ring communication network
JP2851743B2 (en) Policing circuit
JPH04117045A (en) Control system for active line number
SU1583937A2 (en) Device for interfacing computer and subscribers
JPH04252533A (en) Fault notice system
JP2766069B2 (en) Failure judgment method
JPH1051446A (en) Monitor system for performance of sdh transmission network
JP2871923B2 (en) Alarm information collection method