JP4614129B2 - Network load tester - Google Patents

Network load tester Download PDF

Info

Publication number
JP4614129B2
JP4614129B2 JP2005176302A JP2005176302A JP4614129B2 JP 4614129 B2 JP4614129 B2 JP 4614129B2 JP 2005176302 A JP2005176302 A JP 2005176302A JP 2005176302 A JP2005176302 A JP 2005176302A JP 4614129 B2 JP4614129 B2 JP 4614129B2
Authority
JP
Japan
Prior art keywords
frame
ifg
trigger signal
length
value
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
JP2005176302A
Other languages
Japanese (ja)
Other versions
JP2006352538A (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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP2005176302A priority Critical patent/JP4614129B2/en
Publication of JP2006352538A publication Critical patent/JP2006352538A/en
Application granted granted Critical
Publication of JP4614129B2 publication Critical patent/JP4614129B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Description

本発明は、瞬時的な送信レートを一定に保つことができるネットワークの負荷試験器に関するものである。   The present invention relates to a load tester for a network that can keep the instantaneous transmission rate constant.

イーサネット(登録商標)などのネットワークでは、フレーム長の異なる送信フレームを連続して送信して負荷試験を行う。なお、イーサネット(登録商標)では、送信フレームの間には、最小長さが定まっているIFG(Inter Frame Gap)を設けることが規定されている。   In a network such as Ethernet (registered trademark), a load test is performed by continuously transmitting transmission frames having different frame lengths. Ethernet (registered trademark) stipulates that an IFG (Inter Frame Gap) having a minimum length is provided between transmission frames.

図6にこのようなネットワークの負荷試験を行う負荷試験器の構成を示す。図6において、タイミング発生部10はフレームカウンタ11およびIFGカウンタ12で構成され、フレームトリガ信号およびIFGトリガ信号を出力する。   FIG. 6 shows the configuration of a load tester for performing such a network load test. In FIG. 6, the timing generation unit 10 includes a frame counter 11 and an IFG counter 12, and outputs a frame trigger signal and an IFG trigger signal.

フレームカウンタ11は4つのカウンタ11a〜11dで構成される。これらのカウンタ11a〜11dは順番に動作する。カウンタを4つ内蔵しているので、この負荷試験器はフレーム長の異なる4種類の送信フレームを生成することができる。   The frame counter 11 includes four counters 11a to 11d. These counters 11a to 11d operate in order. Since four counters are built in, this load tester can generate four types of transmission frames having different frame lengths.

カウンタ11a〜11dは図示しないクロック発生器からのクロックでカウントアップされ、カウント値が予め定められた設定値になるとフレームトリガ信号をフレーム生成部20およびIFGカウンタ12に出力し、自身をリセットする。IFGカウンタ12はフレームトリガ信号が入力されるとカウントアップを開始し、予め定められた設定値に達すると自身をリセットして、IFGトリガ信号をカウンタ11a〜11dおよびフレーム生成部20に出力して自身をリセットする。このIFGトリガ信号により、次のカウンタがカウントアップを開始する。   The counters 11a to 11d are counted up by a clock from a clock generator (not shown), and when the count value reaches a predetermined set value, a frame trigger signal is output to the frame generation unit 20 and the IFG counter 12, and resets itself. The IFG counter 12 starts counting up when a frame trigger signal is input, resets itself when reaching a predetermined set value, and outputs the IFG trigger signal to the counters 11 a to 11 d and the frame generation unit 20. Reset itself. In response to the IFG trigger signal, the next counter starts counting up.

IFGカウンタ12の設定値は、送信レート(=送信フレーム長/(送信フレーム長+IFG長)))の平均値が一定になるように、下記(1)式に基づいて決められる。
設定値=((F1+F2+F3+F4)/4)×(100−A)/A・・・(1)
なお、F1、F2、F3、F4はそれぞれカウンタ11a〜11dの設定値(送信フレーム長)、Aは送信レート(%単位)である。
The set value of the IFG counter 12 is determined based on the following expression (1) so that the average value of the transmission rate (= transmission frame length / (transmission frame length + IFG length)) is constant.
Setting value = ((F1 + F2 + F3 + F4) / 4) × (100−A) / A (1)
F1, F2, F3, and F4 are set values (transmission frame length) of the counters 11a to 11d, respectively, and A is a transmission rate (% unit).

次に、図7を用いてタイミング発生部10およびフレーム生成部20の動作を説明する。図2において、(A)〜(D)はそれぞれカウンタ11a〜11dの動作、(E)はIFGカウンタ12の動作、(F)はフレーム生成部20の出力である。   Next, the operations of the timing generator 10 and the frame generator 20 will be described with reference to FIG. 2, (A) to (D) are operations of the counters 11a to 11d, (E) is an operation of the IFG counter 12, and (F) is an output of the frame generation unit 20, respectively.

カウンタ11aは時刻t1からカウントアップを開始し、同時にフレーム生成部20はフレームデータ部30が出力するフレームデータ(宛先アドレス、送信元アドレス、データ、ペイロード等)を用いて送信フレームを生成して出力する。時刻t2でカウンタ11aがカウントアップすると、フレームトリガ信号が出力される。フレーム生成部20はこのフレームトリガ信号が入力されると送信フレームの生成を中止し、IFG(データ“0”)を連続して出力する。時刻t3でIFGトリガ信号が出力されると、カウンタ11bがカウントアップを開始し、フレーム生成部20はIFGの出力を中止して再び送信フレームを生成する。   The counter 11a starts counting up from time t1, and at the same time, the frame generation unit 20 generates and outputs a transmission frame using frame data (destination address, transmission source address, data, payload, etc.) output by the frame data unit 30. To do. When the counter 11a counts up at time t2, a frame trigger signal is output. When this frame trigger signal is input, the frame generation unit 20 stops generating a transmission frame and continuously outputs IFG (data “0”). When the IFG trigger signal is output at time t3, the counter 11b starts counting up, and the frame generation unit 20 stops outputting the IFG and generates a transmission frame again.

同様にして、時刻t4でフレームトリガ信号が出力され、フレーム生成部20は送信フレームの生成を中止してIFGを出力する。時刻t5でIFGトリガ信号が出力されるので、IFGの出力を中止して送信フレームの生成を再開する。以後同様にして、カウンタ11c、11dが順番にカウントアップし、送信フレームの生成とIFGの出力を交互に繰り返す。   Similarly, a frame trigger signal is output at time t4, and the frame generation unit 20 stops generating a transmission frame and outputs an IFG. Since the IFG trigger signal is output at time t5, output of the IFG is stopped and transmission frame generation is resumed. Thereafter, in the same manner, the counters 11c and 11d sequentially count up, and the generation of the transmission frame and the output of the IFG are repeated alternately.

特許文献1には、ATM(Asyncronous Transfer Mode)で用いられるタイミング発生回路の発明が記載されている。このタイミング発生回路の構成を図8に示す。ATMでは複数の固定ビットレートが設定されており、これらの固定ビットレート毎に定められたセルギャップの周期で、データをATM網に送出しなければならない。このセルギャップの周期を生成するために、所定の周波数のクロックを計数し、この計数値が規定値に達する毎にタイミングパルスを出力するようにしている。しかし、規定のセルギャップ精度を満たすためにはギガヘルツオーダーのクロックを計数しなければならず。回路規模が大きくなるという課題があった。   Patent Document 1 describes an invention of a timing generation circuit used in ATM (Asyncronous Transfer Mode). The configuration of this timing generation circuit is shown in FIG. In ATM, a plurality of fixed bit rates are set, and data must be transmitted to the ATM network at a cell gap period determined for each of these fixed bit rates. In order to generate the period of the cell gap, a clock having a predetermined frequency is counted, and a timing pulse is output every time the counted value reaches a specified value. However, in order to satisfy the specified cell gap accuracy, clocks in the order of gigahertz must be counted. There was a problem that the circuit scale increased.

そのため、28ビット加算器の出力を2MHzのクロックに同期してラッチ42に格納し、このラッチの出力と初期値を28ビット加算器41で加算する動作を繰り返して、28ビット加算器41のオーバーフロー信号をセル生成トリガパルスとする。このようにすることにより、初期値を変えるだけで、2MHzという低い周波数のクロックを用いて種々のビットレートに対応することができる。
特開2003−289323号公報
Therefore, the output of the 28-bit adder is stored in the latch 42 in synchronization with the 2 MHz clock, and the operation of adding the output of this latch and the initial value by the 28-bit adder 41 is repeated, and the overflow of the 28-bit adder 41 is repeated. The signal is a cell generation trigger pulse. By doing so, it is possible to cope with various bit rates by using a clock having a low frequency of 2 MHz only by changing the initial value.
JP 2003-289323 A

しかし、このようなタイミング発生回路や負荷試験器には、次のような課題があった。図6に示すネットワーク負荷試験器は、前記(1)を用いることにより平均の送信レートを所望の値に設定することはできる。しかし、IFG長をFIFGとすると、各送信フレームの送信レートはそれぞれF1/FIFG、F2/FIFG、F3/FIFG、F4/FIFGとなる。F1〜F4はそれぞれ異なっているので、各送信フレームの送信レートが一定にならないという課題があった。 However, such timing generation circuits and load testers have the following problems. The network load tester shown in FIG. 6 can set the average transmission rate to a desired value by using (1). However, if the IFG length is FIFG , the transmission rates of the transmission frames are F1 / FIFG , F2 / FIFG , F3 / FIFG , and F4 / FIFG , respectively. Since F1 to F4 are different from each other, there is a problem that the transmission rate of each transmission frame is not constant.

また、特許文献1に記載されたタイミング発生回路は、所定の精度のセルギャップ周期を得るためには28ビットの加算器およびラッチが必要であり、回路規模が大きくなると課題があった。   Further, the timing generation circuit described in Patent Document 1 requires a 28-bit adder and a latch in order to obtain a cell gap period with a predetermined accuracy, and there is a problem when the circuit scale increases.

従って本発明の目的は、送信フレーム単位で送信レートを一定にすることができるネットワーク負荷試験器を提供することにある。   Accordingly, an object of the present invention is to provide a network load tester capable of making the transmission rate constant in units of transmission frames.

このような課題を達成するために、本発明のうち請求項1記載の発明は、
送信フレームとインターフレームギャップを交互に送信して情報を交換するネットワークの負荷試験を行うネットワーク負荷試験器であって、
前記送信フレームのフレーム長および送信レートが入力され、これらの入力値から前記インターフレームギャップの長さであるIFG長と前記フレーム長の比率を演算して出力する比率演算部と、
IFGトリガ信号が入力されてから前記フレーム長に等しい値だけクロック信号をカウントすると、フレームトリガ信号を出力するフレームカウンタと、
前記IFGトリガ信号が入力されると、前記クロック信号に同期して前記比率演算部の出力値を累算し、前記フレームトリガ信号が入力されると、前記クロック信号に同期して固定値を累算する累算部と、
前記累算部が累算した値と所定の値を比較し、この累算値が前記所定の値より小さくなると前記IFGトリガ信号を出力する比較器と、
前記IFGトリガ信号が入力されたときに送信フレームの出力を開始し、前記フレームトリガ信号が入力されたときにインターフレームギャップの出力を開始するフレーム生成部と
を具備したものである。瞬時的にも送信レートを一定にすることができる。
In order to achieve such a problem, the invention according to claim 1 of the present invention is:
A network load tester that performs a load test on a network that exchanges information by alternately transmitting transmission frames and interframe gaps,
A frame length and a transmission rate of the transmission frame are input, a ratio calculation unit that calculates and outputs a ratio between the IFG length that is the length of the interframe gap and the frame length from these input values;
A frame counter that outputs a frame trigger signal when the clock signal is counted by a value equal to the frame length after the IFG trigger signal is input;
When the IFG trigger signal is input, the output value of the ratio calculation unit is accumulated in synchronization with the clock signal, and when the frame trigger signal is input, a fixed value is accumulated in synchronization with the clock signal. An accumulation part to calculate,
A comparator that compares a value accumulated by the accumulation unit with a predetermined value, and outputs the IFG trigger signal when the accumulated value is smaller than the predetermined value;
A frame generation unit that starts transmission of a transmission frame when the IFG trigger signal is input and starts output of an inter-frame gap when the frame trigger signal is input. The transmission rate can be made constant even instantaneously.

請求項2記載の発明は、
送信フレームとインターフレームギャップを交互に送信して情報を交換するネットワークの負荷試験を行うネットワーク負荷試験機であって、
前記インターフレームギャップの長さであるIFG長および送信レートが入力され、これらの入力値から前記送信フレームの長さであるフレーム長と前記IFG長の比率を演算して出力する比率演算部と、
フレームトリガ信号が入力されてから前記IFG長に等しい値だけ前記クロック信号をカウントすると、IFGトリガ信号を出力するIFGカウンタと、
前記フレームトリガ信号が入力されると、前記クロック信号に同期して前記比率演算部の出力値を累算し、前記IFGトリガ信号が入力されると、前記クロック信号に同期して固定値を累算する累算部と、
前記累算部が累算した値と所定の値を比較し、前記累算値が前記所定の値より小さくなると前記フレームトリガ信号を出力する比較器と、
前記IFGトリガ信号が入力されたときに送信フレームの出力を開始し、前記フレームトリガ信号が入力されたときにインターフレームギャップの出力を開始するフレーム生成部と
を具備したものである。瞬時的にも送信レートを一定にすることができる。
The invention according to claim 2
A network load tester that performs a load test on a network that exchanges information by alternately transmitting transmission frames and interframe gaps,
A ratio calculation unit that receives the IFG length and the transmission rate that are the length of the interframe gap, calculates the ratio of the frame length that is the length of the transmission frame and the IFG length from these input values, and outputs the ratio.
An IFG counter that outputs an IFG trigger signal when the clock signal is counted by a value equal to the IFG length after a frame trigger signal is input;
When the frame trigger signal is input, the output value of the ratio calculation unit is accumulated in synchronization with the clock signal, and when the IFG trigger signal is input, a fixed value is accumulated in synchronization with the clock signal. An accumulation part to calculate,
A comparator that compares a value accumulated by the accumulation unit with a predetermined value, and outputs the frame trigger signal when the accumulated value is smaller than the predetermined value;
A frame generation unit that starts transmission of a transmission frame when the IFG trigger signal is input and starts output of an inter-frame gap when the frame trigger signal is input. The transmission rate can be made constant even instantaneously.

請求項3記載の発明は、請求項1若しくは請求項2に記載の発明において、
前記累算部は前記比率演算部が演算した比率の整数部と小数部を分けて累算し、かつ前記固定値を−1とするようにしたものである。構成を簡単にできる。
The invention according to claim 3 is the invention according to claim 1 or 2,
The accumulation unit accumulates an integer part and a fraction part of the ratio calculated by the ratio calculation unit and sets the fixed value to -1. The configuration can be simplified.

以上説明したことから明らかなように、本発明によれば次のような効果がある。
請求項1,2および3の発明によれば、送信フレームとインターフレームギャップの2つのフレームのうち、長さを設定するフレームを送信している間は2つの長さの比率を累算し、長さを設定しないフレームを送信している間は固定値を累算して、この累算値が所定の値以下になると長さを設定するフレームの送信に切り換えるようにした。
As is apparent from the above description, the present invention has the following effects.
According to the first, second, and third aspects of the present invention, the ratio of the two lengths is accumulated while the frame for setting the length is transmitted among the two frames of the transmission frame and the interframe gap. A fixed value is accumulated during transmission of a frame for which the length is not set, and when the accumulated value falls below a predetermined value, switching to transmission of a frame for setting the length is performed.

長さを設定するフレームの長さに応じて、長さを設定しないフレームの長さが調整されるので、平均的な送信レートだけでなく、瞬時的な送信レートをも一定にすることができるという効果がある。また、加算器のビット長を短くすることができるので、回路規模を小さくすることができるという効果もある。   Depending on the length of the frame for which the length is set, the length of the frame for which the length is not set is adjusted, so that not only the average transmission rate but also the instantaneous transmission rate can be made constant. There is an effect. In addition, since the bit length of the adder can be shortened, there is an effect that the circuit scale can be reduced.

以下本発明を図面を用いて詳細に説明する。図1は本発明に係るネットワーク負荷試験器の一実施例を示す構成図である。なお、図6と同じ要素には同一符号を付し、説明を省略する。図1において、50はタイミング発生部であり、比率演算部51、フレームカウンタレジスタ52、フレームカウンタ53、固定レジスタ54、比率レジスタ55、スイッチ56、加算器57、加算レジスタ58および比較器59で構成され、フレーム発生部20にフレームトリガ信号およびIFGトリガ信号を出力する。   Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a network load tester according to the present invention. In addition, the same code | symbol is attached | subjected to the same element as FIG. 6, and description is abbreviate | omitted. In FIG. 1, reference numeral 50 denotes a timing generation unit, which includes a ratio calculation unit 51, a frame counter register 52, a frame counter 53, a fixed register 54, a ratio register 55, a switch 56, an adder 57, an addition register 58, and a comparator 59. Then, the frame trigger signal and the IFG trigger signal are output to the frame generator 20.

比率演算部51は、送信するフレームのフレーム長と送信レートをフレームデータ部30から取得し、下記(2)式を用いて送信フレーム長に対するIFG長さの比率を計算する。なお、Aは%単位で表したフレームの送信レートである。
IFG長さの比率=(100―A)/A ・・・・・ (2)
フレームカウンタレジスタ52には、比率演算部51が取得したフレーム長が格納される。
The ratio calculation unit 51 acquires the frame length and transmission rate of the frame to be transmitted from the frame data unit 30, and calculates the ratio of the IFG length to the transmission frame length using the following equation (2). A is a frame transmission rate expressed in%.
IFG length ratio = (100−A) / A (2)
The frame counter register 52 stores the frame length acquired by the ratio calculation unit 51.

固定レジスタ54には値−1が格納され、比率レジスタ55には比率演算部51が上記(2)式で計算したIFG長さの比率が格納される。この比率は、整数部と小数部に分けて格納される。格納される小数部の桁数は任意であるが、桁数が多くなるほど送信レートの精度を高めることができる。   The fixed register 54 stores the value -1, and the ratio register 55 stores the ratio of the IFG length calculated by the ratio calculator 51 according to the above equation (2). This ratio is stored separately in an integer part and a decimal part. Although the number of digits of the decimal part stored is arbitrary, the accuracy of the transmission rate can be increased as the number of digits increases.

スイッチ56のA側には固定レジスタ54に格納された値が、B側には比率レジスタ55に格納された値が入力される。スイッチ56はこれらの値を選択して出力する。加算器57はスイッチ56で選択された値と加算レジスタ58の値を加算して出力する。加算レジスタ58は加算器57で加算した値を保持する。比較器59は加算レジスタ58の値と予め定められた設定値とを比較し、その比較結果であるIFGトリガ信号をフレームカウンタ53およびスイッチ56に出力する。   The value stored in the fixed register 54 is input to the A side of the switch 56, and the value stored in the ratio register 55 is input to the B side. The switch 56 selects and outputs these values. The adder 57 adds the value selected by the switch 56 and the value of the addition register 58 and outputs the result. The addition register 58 holds the value added by the adder 57. The comparator 59 compares the value of the addition register 58 with a predetermined set value, and outputs an IFG trigger signal, which is the comparison result, to the frame counter 53 and the switch 56.

なお、加算器57と加算レジスタ58で累算器を構成している。スイッチ56は、IFGトリガ信号が入力されると、それ以降比率レジスタ55の出力をこの累算器に入力し、フレームトリガ信号が入力されると、それ以降固定レジスタ54の値を累算器に入力する役割を果たしている。   The adder 57 and the addition register 58 constitute an accumulator. When the IFG trigger signal is input, the switch 56 thereafter inputs the output of the ratio register 55 to this accumulator, and when the frame trigger signal is input, the value of the fixed register 54 is thereafter input to the accumulator. Plays the role of typing.

次に、この実施例の動作を図2フローチャートに基づいて説明する。なお、工程(A−4)から(A−6)までと、工程(A−11)から(A−12)までの一連の工程は、同じクロックに同期して実行される。図2において、まず工程(A−1)でフレームカウンタレジスタ52にフレーム長を設定し、加算レジスタ58をゼロクリアして、スイッチ56をB側に設定する初期設定を行う。   Next, the operation of this embodiment will be described with reference to the flowchart of FIG. Note that a series of steps from steps (A-4) to (A-6) and steps (A-11) to (A-12) are executed in synchronization with the same clock. In FIG. 2, first, in step (A-1), the frame length is set in the frame counter register 52, the addition register 58 is cleared to zero, and the initial setting for setting the switch 56 to the B side is performed.

次に、工程(A−2)で、送信レートから前記(2)式を用いて比率演算部51が計算したIFG長さの比率を比率レジスタ55に設定する。この比率は整数部と小数部に分けて格納される。そして、工程(A−3)でフレームカウンタレジスタ52に格納されているフレーム長をフレームカウンタ53に設定する。   Next, in step (A-2), the ratio of the IFG length calculated by the ratio calculation unit 51 using the equation (2) from the transmission rate is set in the ratio register 55. This ratio is stored separately in an integer part and a decimal part. In step (A-3), the frame length stored in the frame counter register 52 is set in the frame counter 53.

次に、工程(A−4)でフレームカウンタ53をカウントダウンし、工程(A−5)で加算レジスタ58の値に比率レジスタ55に格納されている値を加算し、加算レジスタ58に格納する。この加算は、整数部と小数部を別々に行う。そして、工程(A−6)でフレームカウンタ53のカウント値が0であるかどうかをチェックし、0でないと工程(A−4)に戻る。すなわち、フレームカウンタ53の値が0になるまで、クロックに同期して比率レジスタ55の値を加算レジスタ58に加算していく。   Next, in step (A-4), the frame counter 53 is counted down, and in step (A-5), the value stored in the ratio register 55 is added to the value in the addition register 58 and stored in the addition register 58. This addition is performed separately for the integer part and the fractional part. In step (A-6), it is checked whether the count value of the frame counter 53 is 0. If not, the process returns to step (A-4). That is, the value of the ratio register 55 is added to the addition register 58 in synchronization with the clock until the value of the frame counter 53 becomes zero.

フレームカウンタ53の値が0になると、工程(A−7)でフレームトリガ信号を出力する。フレーム生成部20は、このフレームトリガ信号が入力されると送信フレームの出力を中断し、IFGの出力を開始する。そして、工程(A−8)でフレーム停止割り込みが発生しているかを調べ、発生しているとフレーム送信を停止する。   When the value of the frame counter 53 becomes 0, a frame trigger signal is output in step (A-7). When this frame trigger signal is input, the frame generation unit 20 interrupts output of the transmission frame and starts output of IFG. In step (A-8), it is checked whether a frame stop interrupt has occurred. If it has occurred, frame transmission is stopped.

フレーム割り込みが発生していないと、工程(A−10)でスイッチ56をA側に切り換える。実際には、スイッチ56はフレームトリガ信号が入力されるとA側に切り換えられる。これによって、加算器57には固定レジスタ54に格納された値、すなわち−1が入力される。   If no frame interrupt has occurred, the switch 56 is switched to the A side in step (A-10). Actually, the switch 56 is switched to the A side when a frame trigger signal is input. As a result, the value stored in the fixed register 54, that is, −1 is input to the adder 57.

次に、工程(A−11)で、加算器57の出力を加算レジスタ58にラッチする。加算器57には加算レジスタ58の値と−1(固定レジスタ54に格納されている値)が入力されているので、クロックに同期して加算器57の出力を加算レジスタ58にラッチすることにより、加算レジスタ58をクロックに同期してデクリメントさせることができる。   Next, in step (A-11), the output of the adder 57 is latched in the addition register 58. Since the value of the addition register 58 and -1 (value stored in the fixed register 54) are input to the adder 57, the output of the adder 57 is latched in the addition register 58 in synchronization with the clock. The addition register 58 can be decremented in synchronization with the clock.

そして、工程(A−12)で、比較器59によって加算レジスタ58に格納された値が1より小さいかどうかを判定し、小さいとIFGトリガ信号を出力する。スイッチ56はB側に切り換えられ、加算レジスタ58は0にクリアされる。そして、工程(A−3)に戻る。フレーム生成部20は、IFGトリガ信号が入力されるとIFGの出力を中断し、送信フレームの出力を開始する。   In step (A-12), the comparator 59 determines whether or not the value stored in the addition register 58 is smaller than 1, and if smaller, outputs an IFG trigger signal. The switch 56 is switched to the B side, and the addition register 58 is cleared to zero. And it returns to a process (A-3). When the IFG trigger signal is input, the frame generation unit 20 interrupts the output of the IFG and starts outputting the transmission frame.

このようにすることにより、送信フレーム毎にIFG長は比率レジスタ55に設定された比率の長さに制御されるので、瞬時的にも送信レートを一定にすることができる。また、IFG長とフレーム長の比率を整数部と小数部に分けて比率レジスタ55に設定し、加算器57この整数部と小数部を分けて加算するようにしたので、短いデータ長で正確に送信レートを一定にすることができる。   By doing so, the IFG length is controlled to the length of the ratio set in the ratio register 55 for each transmission frame, so that the transmission rate can be made constant even instantaneously. In addition, since the ratio between the IFG length and the frame length is divided into an integer part and a fraction part and set in the ratio register 55, and the adder 57 adds the integer part and the fraction part separately, the data can be accurately obtained with a short data length. The transmission rate can be made constant.

次に、図3に基づいてこの実施例の動作を更に詳しく説明する。なお、フレームの送信レートを62.5%とした。比率レジスタ55には、前記(2)式で計算した0.6が格納される。   Next, the operation of this embodiment will be described in more detail with reference to FIG. The frame transmission rate was 62.5%. The ratio register 55 stores 0.6 calculated by the equation (2).

図3(A)はクロックであり、このクロックの立ち上がりと立ち下がりの両方に同期して動作する。(B)はフレームトリガ信号、(C)はフレームカウンタ53のカウント値である。フレームカウンタ53はクロックの立ち上がり、立ち下がりに同期してデクリメントする。(D)は加算レジスタ58の整数部の格納値、(E)は同小数部の格納値、(F)はIFGトリガ信号、(G)はフレーム生成部20の出力である送信信号である。   FIG. 3A shows a clock, which operates in synchronization with both rising and falling of this clock. (B) is a frame trigger signal, and (C) is a count value of the frame counter 53. The frame counter 53 decrements in synchronization with the rise and fall of the clock. (D) is the stored value of the integer part of the addition register 58, (E) is the stored value of the decimal part, (F) is the IFG trigger signal, and (G) is the transmission signal that is the output of the frame generating unit 20.

図3は送信フレームを出力している状態から始まっている。加算器57は、クロックの立ち上がり、立ち下がりに同期して加算レジスタ58に比率レジスタ55に格納された値(=0.6)を加算する。なお、小数部が10以上になると、桁上がりを発生させる。   FIG. 3 starts from a state in which a transmission frame is output. The adder 57 adds the value (= 0.6) stored in the ratio register 55 to the addition register 58 in synchronization with the rise and fall of the clock. When the decimal part becomes 10 or more, a carry is generated.

時刻t1で小数部の値が12になるので桁上がりが発生し、整数部は1増加し、小数部は2になる。時刻t2でフレームカウンタ53の値が0になり、フレームトリガ信号が発生する。そのため、フレーム生成部20は送信フレームの出力を中断し、IFGの出力を開始する。また、スイッチ55はA側に切り換えられる。これ以降、加算レジスタ58は1ずつ減算される。   Since the value of the decimal part becomes 12 at time t1, a carry occurs, the integer part increases by 1, and the decimal part becomes 2. At time t2, the value of the frame counter 53 becomes 0 and a frame trigger signal is generated. Therefore, the frame generation unit 20 interrupts the output of the transmission frame and starts outputting the IFG. The switch 55 is switched to the A side. Thereafter, the addition register 58 is decremented by one.

時刻t3で加算レジスタ58の値が1より小さくなるので、IFGトリガ信号が出力される。そのため、フレームカウンタ53にはフレーム長が設定され、フレーム生成部20はIFG出力を中断してフレーム送信を開始する。また、スイッチ55はB側に切り換えられるので、加算レジスタ58の格納値は比率レジスタ55に格納された値(=0.6)で増加する。この一連の動作は、フレーム停止割り込みが発生するまで継続する。   Since the value of the addition register 58 becomes smaller than 1 at time t3, an IFG trigger signal is output. Therefore, the frame length is set in the frame counter 53, and the frame generation unit 20 interrupts the IFG output and starts frame transmission. Further, since the switch 55 is switched to the B side, the stored value of the addition register 58 is increased by the value (= 0.6) stored in the ratio register 55. This series of operations continues until a frame stop interrupt occurs.

図4に本実施例による送信レートの計算結果を示す。なお、送信レートの設定値を62.5%とした。図5(A)は従来例(図5)におけるIFG長、(B)は同瞬時送信レート、(C)は図1実施例のIFG長の計算値、(D)は実際のIFG長、(E)は瞬時送信レートである。   FIG. 4 shows the calculation result of the transmission rate according to this embodiment. The set value of the transmission rate was 62.5%. 5A shows the IFG length in the conventional example (FIG. 5), FIG. 5B shows the same instantaneous transmission rate, FIG. 5C shows the calculated IFG length in FIG. 1 embodiment, FIG. 5D shows the actual IFG length, E) is the instantaneous transmission rate.

(A)に示すように、従来例ではフレーム長が変化してもIFG長は385バイト一定である。そのため、(B)に示すように瞬時送信レートはフレーム長を69〜1518バイトの間で変化させると、平均送信レートは62.476%と設定値に近い値になるが、瞬時送信レートは15.198から79.768%と変化する。   As shown in (A), in the conventional example, even if the frame length changes, the IFG length is constant at 385 bytes. Therefore, as shown in (B), when the frame length is changed between 69 and 1518 bytes, the average transmission rate is 62.476%, which is close to the set value, but the instantaneous transmission rate is 15%. 198 to 79.768%.

それに対して、図1実施例ではフレーム長に従ってIFG長も変化する。(C)は瞬時送信レートを一定(=62.5%)にするIFG長の計算値である。実際には、IFG長は整数値しか取れないので、(D)に示すように小数点以下を切り捨てた値になる。このIFG長のときの瞬時送信レートを(E)に示す。この図から、フレーム長を69から1518バイトに変化させても、瞬時送信レートは高々0.2%しか変化しない。   In contrast, in the embodiment of FIG. 1, the IFG length also changes according to the frame length. (C) is a calculated value of the IFG length that keeps the instantaneous transmission rate constant (= 62.5%). Actually, since the IFG length can take only an integer value, the value after the decimal point is rounded down as shown in (D). The instantaneous transmission rate when the IFG length is shown in (E). From this figure, even if the frame length is changed from 69 to 1518 bytes, the instantaneous transmission rate changes only at most 0.2%.

なお、この実施例では比率レジスタ55および加算レジスタにIFG長とフレーム長の比率の整数部と小数部を格納するようにしたが、比率をn倍して整数部のみを格納するようにしてもよい。この場合は、固定レジスタ54には−nを格納する。IFG出力期間(図3のt2からt3までの期間)は、加算レジスタ58の格納値からnを減算することになる。   In this embodiment, the integer part and fraction part of the ratio of IFG length to frame length are stored in the ratio register 55 and the addition register. However, the ratio may be multiplied by n to store only the integer part. Good. In this case, −n is stored in the fixed register 54. In the IFG output period (period from t2 to t3 in FIG. 3), n is subtracted from the stored value of the addition register 58.

図5に本発明の他の実施例を示す。この実施例は、IFG長を設定し、このIFG長に応じた長さの送信フレームを出力するようにしたものである。なお、図1と同じ要素には同一符号を付し、説明を省略する。   FIG. 5 shows another embodiment of the present invention. In this embodiment, an IFG length is set, and a transmission frame having a length corresponding to the IFG length is output. In addition, the same code | symbol is attached | subjected to the same element as FIG. 1, and description is abbreviate | omitted.

図5において、60はタイミング発生部である。比率演算部61はフレームデータ部30からIFG長さと送信レートを取得し、下記(3)式を用いてIFG長に対する送信フレーム長さの比率を計算する。なお、Aは%単位で表したフレームの送信レートである。
送信フレーム長さの比率=A/(100―A) ・・・・・ (3)
IFGカウンタレジスタ62には、比率演算部51が取得したIFG長が格納される。
In FIG. 5, 60 is a timing generator. The ratio calculation unit 61 acquires the IFG length and the transmission rate from the frame data unit 30, and calculates the ratio of the transmission frame length to the IFG length using the following equation (3). A is a frame transmission rate expressed in%.
Transmission frame length ratio = A / (100−A) (3)
The IFG counter register 62 stores the IFG length acquired by the ratio calculation unit 51.

動作は図2フローチャートとほぼ同じである。IFGカウンタ63にはIFGカウンタレジスタ62に格納されたIFG長が設定さる。この設定値はカウントダウンされ、同時に比率レジスタ55に設定された送信フレーム長さの比率は加算レジスタ58に加算される。   The operation is almost the same as the flowchart in FIG. In the IFG counter 63, the IFG length stored in the IFG counter register 62 is set. The set value is counted down, and the transmission frame length ratio set in the ratio register 55 is added to the addition register 58 at the same time.

IFGカウンタが0になると、IFGトリガ信号が出力される。フレーム生成部20は、このIFGトリガ信号でIFGの出力を中止し、送信フレームの出力を開始する。また、加算レジスタ58の値から固定レジスタ54の値(−1)を減算していく。   When the IFG counter reaches 0, an IFG trigger signal is output. The frame generation unit 20 stops outputting the IFG with this IFG trigger signal and starts outputting the transmission frame. Further, the value (−1) of the fixed register 54 is subtracted from the value of the addition register 58.

加算レジスタ58の値が1より小さくなると、フレームトリガ信号が発生する。フレーム生成部20は、このフレームトリガ信号により送信フレームの出力を中止し、IFGの出力を開始する。これら一連の動作は、フレーム停止割り込みが発生するまで継続される。   When the value of the addition register 58 becomes smaller than 1, a frame trigger signal is generated. The frame generation unit 20 stops outputting the transmission frame by this frame trigger signal and starts outputting IFG. These series of operations are continued until a frame stop interrupt occurs.

なお、この実施例でも図1実施例と同様に、比率は整数部と小数部を分けて格納あるいは加算してもよく、また、n倍して格納、加算してもよい。この場合、固定レジスタ54には−nの値を格納すればよい。   In this embodiment as well, as in the embodiment of FIG. 1, the ratio may be stored or added separately for the integer part and the decimal part, or may be stored and added by multiplying by n. In this case, the fixed register 54 may store a value of −n.

また、図1実施例のフレームカウンタ53および図5実施例のIFGカウンタ63は、最初に長さを設定しておき、クロック信号に同期してデクリメントして、ゼロになるとフレームトリガ信号(IFGトリガ信号)を出力するようにしたが、最初にゼロクリアして、クロック信号に同期してインクリメントして、長さに相当する値になるとトリガ信号を出力する等、他の構成を用いてもよい。要は、IFGトリガ信号(フレームトリガ信号)が入力されてから、設定長さに相当するクロックをカウントすると、フレームトリガ信号(IFGトリガ信号)を出力する構成であればよい。   Further, the frame counter 53 of FIG. 1 embodiment and the IFG counter 63 of FIG. 5 embodiment first set the length, decrement in synchronization with the clock signal, and when it becomes zero, the frame trigger signal (IFG trigger) However, other configurations may be used such as first clearing to zero, incrementing in synchronization with the clock signal, and outputting a trigger signal when a value corresponding to the length is reached. The point is that the frame trigger signal (IFG trigger signal) may be output when the clock corresponding to the set length is counted after the IFG trigger signal (frame trigger signal) is input.

本発明の一実施例を示す構成図である。It is a block diagram which shows one Example of this invention. 本発明の一実施例の動作を説明するためのフローチャートである。It is a flowchart for demonstrating operation | movement of one Example of this invention. 本発明の一実施例の動作を説明するためのタイムチャートである。It is a time chart for demonstrating operation | movement of one Example of this invention. 本発明の効果を示す表である。It is a table | surface which shows the effect of this invention. 本発明の他の実施例の構成図である。It is a block diagram of the other Example of this invention. 従来のネットワーク負荷試験器の構成図である。It is a block diagram of the conventional network load tester. 従来のネットワーク負荷試験器の動作を説明するためのタイムチャートである。It is a time chart for demonstrating operation | movement of the conventional network load tester. 従来のタイミング発生回路の構成図である。It is a block diagram of the conventional timing generation circuit.

符号の説明Explanation of symbols

20 フレーム生成部
30 フレームデータ部
50、60 タイミング発生部
51、61 比率演算部
52 フレームカウンタレジスタ
53 フレームカウンタ
54 固定レジスタ
55 比率レジスタ
56 スイッチ
57 加算器
58 加算レジスタ
59 比較器
62 IFGカウンタレジスタ
63 IFGカウンタ
20 Frame generation unit 30 Frame data unit 50, 60 Timing generation unit 51, 61 Ratio calculation unit 52 Frame counter register 53 Frame counter 54 Fixed register 55 Ratio register 56 Switch 57 Adder 58 Addition register 59 Comparator 62 IFG counter register 63 IFG counter

Claims (3)

送信フレームとインターフレームギャップを交互に送信して情報を交換するネットワークの負荷試験を行うネットワーク負荷試験器であって、
前記送信フレームのフレーム長および送信レートが入力され、これらの入力値から前記インターフレームギャップの長さであるIFG長と前記フレーム長の比率を演算して出力する比率演算部と、
IFGトリガ信号が入力されてから前記フレーム長に等しい値だけクロック信号をカウントすると、フレームトリガ信号を出力するフレームカウンタと、
前記IFGトリガ信号が入力されると、前記クロック信号に同期して前記比率演算部の出力値を累算し、前記フレームトリガ信号が入力されると、前記クロック信号に同期して固定値を累算する累算部と、
前記累算部が累算した値と所定の値を比較し、この累算値が前記所定の値より小さくなると前記IFGトリガ信号を出力する比較器と、
前記IFGトリガ信号が入力されたときに送信フレームの出力を開始し、前記フレームトリガ信号が入力されたときにインターフレームギャップの出力を開始するフレーム生成部と
を具備したことを特徴とするネットワーク負荷試験器。
A network load tester that performs a load test on a network that exchanges information by alternately transmitting transmission frames and interframe gaps,
A frame length and a transmission rate of the transmission frame are input, a ratio calculation unit that calculates and outputs a ratio between the IFG length that is the length of the interframe gap and the frame length from these input values;
A frame counter that outputs a frame trigger signal when the clock signal is counted by a value equal to the frame length after the IFG trigger signal is input;
When the IFG trigger signal is input, the output value of the ratio calculation unit is accumulated in synchronization with the clock signal. When the frame trigger signal is input, a fixed value is accumulated in synchronization with the clock signal. An accumulation part to calculate,
A comparator that compares a value accumulated by the accumulation unit with a predetermined value, and outputs the IFG trigger signal when the accumulated value is smaller than the predetermined value;
A network load comprising: a frame generation unit that starts output of a transmission frame when the IFG trigger signal is input and starts output of an interframe gap when the frame trigger signal is input Tester.
送信フレームとインターフレームギャップを交互に送信して情報を交換するネットワークの負荷試験を行うネットワーク負荷試験機であって、
前記インターフレームギャップの長さであるIFG長および送信レートが入力され、これらの入力値から前記送信フレームの長さであるフレーム長と前記IFG長の比率を演算して出力する比率演算部と、
フレームトリガ信号が入力されてから前記IFG長に等しい値だけ前記クロック信号をカウントすると、IFGトリガ信号を出力するIFGカウンタと、
前記フレームトリガ信号が入力されると、前記クロック信号に同期して前記比率演算部の出力値を累算し、前記IFGトリガ信号が入力されると、前記クロック信号に同期して固定値を累算する累算部と、
前記累算部が累算した値と所定の値を比較し、前記累算値が前記所定の値より小さくなると前記フレームトリガ信号を出力する比較器と、
前記IFGトリガ信号が入力されたときに送信フレームの出力を開始し、前記フレームトリガ信号が入力されたときにインターフレームギャップの出力を開始するフレーム生成部と
を具備したことを特徴とするネットワーク負荷試験器。
A network load tester that performs a load test on a network that exchanges information by alternately transmitting transmission frames and interframe gaps,
A ratio calculation unit that receives the IFG length and the transmission rate that are the length of the interframe gap, calculates the ratio of the frame length that is the length of the transmission frame and the IFG length from these input values, and outputs the ratio.
An IFG counter that outputs an IFG trigger signal when the clock signal is counted by a value equal to the IFG length after a frame trigger signal is input;
When the frame trigger signal is input, the output value of the ratio calculation unit is accumulated in synchronization with the clock signal, and when the IFG trigger signal is input, a fixed value is accumulated in synchronization with the clock signal. An accumulation part to calculate,
A comparator that compares a value accumulated by the accumulation unit with a predetermined value, and outputs the frame trigger signal when the accumulated value is smaller than the predetermined value;
A network load comprising: a frame generation unit that starts output of a transmission frame when the IFG trigger signal is input and starts output of an interframe gap when the frame trigger signal is input Tester.
前記累算部は前記比率演算部が演算した比率の整数部と小数部を分けて累算し、かつ前記固定値を−1とするようにしたことを特徴とする請求項1若しくは請求項2に記載のネットワーク負荷試験器。
3. The accumulation unit according to claim 1, wherein an integral part and a fraction part of the ratio calculated by the ratio calculation unit are divided and accumulated, and the fixed value is set to -1. The network load tester described in 1.
JP2005176302A 2005-06-16 2005-06-16 Network load tester Expired - Fee Related JP4614129B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005176302A JP4614129B2 (en) 2005-06-16 2005-06-16 Network load tester

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005176302A JP4614129B2 (en) 2005-06-16 2005-06-16 Network load tester

Publications (2)

Publication Number Publication Date
JP2006352538A JP2006352538A (en) 2006-12-28
JP4614129B2 true JP4614129B2 (en) 2011-01-19

Family

ID=37647889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005176302A Expired - Fee Related JP4614129B2 (en) 2005-06-16 2005-06-16 Network load tester

Country Status (1)

Country Link
JP (1) JP4614129B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5418974B2 (en) * 2009-10-07 2014-02-19 横河電機株式会社 Network load test system
JP5154586B2 (en) * 2010-01-25 2013-02-27 アンリツ株式会社 PCS test apparatus and PCS test method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003289323A (en) * 2002-03-28 2003-10-10 Ando Electric Co Ltd Timing pulse generator and frame converter
JP2004120504A (en) * 2002-09-27 2004-04-15 Fujitsu Access Ltd Ethernet (r) transmission apparatus and method of testing its line quality monitoring function

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6377583B1 (en) * 1996-06-27 2002-04-23 Xerox Corporation Rate shaping in per-flow output queued routing mechanisms for unspecified bit rate service

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003289323A (en) * 2002-03-28 2003-10-10 Ando Electric Co Ltd Timing pulse generator and frame converter
JP2004120504A (en) * 2002-09-27 2004-04-15 Fujitsu Access Ltd Ethernet (r) transmission apparatus and method of testing its line quality monitoring function

Also Published As

Publication number Publication date
JP2006352538A (en) 2006-12-28

Similar Documents

Publication Publication Date Title
JP5522050B2 (en) Clock dividing circuit, clock distributing circuit, clock dividing method and clock distributing method
US7205800B2 (en) Clock frequency divider circuit
JP6481533B2 (en) Digitally controlled oscillator circuit
US20140036672A1 (en) Calculating credit for controlling data frame transmission
US8732510B2 (en) Digital forced oscilation by direct digital synthesis to generate pulse stream having frequency relative to a reference clock signal and to eliminate an off-chip filter
JP4614129B2 (en) Network load tester
JP5006231B2 (en) Impedance adjustment circuit
JP6299516B2 (en) Time measurement circuit
JP2010011389A (en) Frequency divider
JP4434277B2 (en) Clock generation circuit and method of using the same
US9201447B2 (en) Apparatus and method using first and second clocks
CN103856211A (en) Counter, counting method and frequency divider
JPH10261952A (en) Clock frequency divider
JP2007019785A (en) Circuit for generating frame rate and frame rate generator
JPWO2007105487A1 (en) Pulse width control signal generation circuit, power conversion control circuit, and power conversion control LSI
JP5101426B2 (en) Random error signal generator
JP6454619B2 (en) Pulse output device
JP2012222793A (en) Variable frequency division device
JP4951739B2 (en) Semiconductor integrated circuit and operating condition control method
KR19990081701A (en) PIEL standard clock application device
CN102208973A (en) Data stream transmitting method and device
JP2009105829A (en) Traffic shaping apparatus and method
JPH10145192A (en) Pulse width modulation circuit
JP2007214849A (en) Interval timer device and semiconductor integrated circuit
JPH1146132A (en) Code generating circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071211

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100916

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100924

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101007

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20131029

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees