JP4175352B2 - Communication device - Google Patents
Communication device Download PDFInfo
- Publication number
- JP4175352B2 JP4175352B2 JP2005252427A JP2005252427A JP4175352B2 JP 4175352 B2 JP4175352 B2 JP 4175352B2 JP 2005252427 A JP2005252427 A JP 2005252427A JP 2005252427 A JP2005252427 A JP 2005252427A JP 4175352 B2 JP4175352 B2 JP 4175352B2
- Authority
- JP
- Japan
- Prior art keywords
- measurement
- data
- data size
- communication
- bandwidth
- 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 - Lifetime
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Description
本発明は、通信網を介してデータ通信を行う技術に関し、特に、そのデータ通信に使用可能な帯域幅を把握しつつデータ通信を行う技術に関する。 The present invention relates to a technique for performing data communication via a communication network, and more particularly to a technique for performing data communication while grasping a bandwidth usable for the data communication.
インターネットのように不特定多数のユーザによって共用される通信網(以下、「公衆網」とも呼ぶ)においては、新たにデータ通信を行う際に使用可能な帯域幅が、その通信網を介して行われている通信のトラフィック量に応じて大きく変動してしまう場合がある。充分な帯域幅を利用できない状況下では、送信したデータがその宛先へ到達しないこと(所謂パケットロス)が起こり得る。このため、優先度の高いデータや重要なデータなど相手装置へ確実に送り届ける必要があるデータを送信する場合には、その時点で使用可能な帯域幅を測定し、その測定結果を元にしたQoS制御を行い、例えば優先度の低いパケットの送信を見合わせるなどして意図しないパケットロスが発生しないようにすることが望ましい。
通信網にて使用可能な帯域幅を測定することを可能にする技術の一例としては、非特許文献1や非特許文献2、および、特許文献1や特許文献2に開示された技術(以下では、「先行技術」とも呼ぶ)が挙げられる。これら先行技術では、帯域測定用のデータブロック(例えば、パケット)を所定数分だけ所定の送信間隔で1つづつ送信する。そして、その送信間隔と相手装置での受信間隔とを比較し、両者が略一致している場合に、その送信間隔に応じた帯域幅(すなわち、単位時間当たりの送出個数(送信間隔の逆数)に上記測定用データブロックのデータサイズを乗算して得られる値)を使用可能であると判定する。なお、上記送信間隔に比較して上記受信間隔が長い場合には、その両者が略一致するまで送信間隔を狭めつつ上述した帯域測定を行うことで、その時点で使用可能な帯域幅が測定される。
As an example of a technique that makes it possible to measure the bandwidth that can be used in a communication network, the techniques disclosed in Non-Patent Document 1, Non-Patent Document 2, and Patent Document 1 and Patent Document 2 (hereinafter referred to as , Also referred to as “prior art”). In these prior arts, data blocks (for example, packets) for bandwidth measurement are transmitted one by one at a predetermined transmission interval by a predetermined number. Then, the transmission interval is compared with the reception interval at the partner device, and when both are substantially the same, the bandwidth corresponding to the transmission interval (that is, the number of transmissions per unit time (the reciprocal of the transmission interval) It is determined that the value obtained by multiplying the data size of the data block for measurement) can be used. If the reception interval is longer than the transmission interval, the bandwidth that can be used at that time is measured by performing the above-described band measurement while narrowing the transmission interval until the two coincide substantially. The
ところで、測定用データブロックの数を一定にして上記帯域測定を行う場合、それら測定用データブロックの全ての送信に要する時間は、広帯域を想定して測定を行う場合(つまり、狭い送信間隔で測定用データブロックを送信する場合)と、狭帯域を想定して測定を行う場合(つまり、広い送信間隔で測定用データブロックを送信する場合)とで異なってしまう。具体的には、広帯域を想定して測定を行う場合に比較して、狭帯域を想定して測定を行う場合の所要時間は長くなってしまう。
また、広帯域を想定して測定を行う場合には、受信間隔のわずかな誤差が測定結果に大きな影響を与えてしまうため、測定用データブロックの送信数を充分に多くしておくことが望ましいが、狭帯域を想定して測定を行う場合には、受信間隔の誤差が測定結果に与える影響はさほど大きくないため、少ない数の測定用データブロックを用いて帯域測定を行ったとしても特段の問題は生じない。
また、データブロックのデータサイズが小さい程、ルータなどの中継装置でデータブロックをルーティングする際に発生するオーバヘッドが大きくなってしまうため、測定用データブロックのデータサイズが、通信網で実際に送受信されているデータブロックのデータサイズに比較して小さすぎたり逆に大きすぎたりすると、上記オーバヘッドの分だけ帯域測定を正しく行えなくなってしまう虞がある。
つまり、測定用データブロックを用いて帯域測定を行う場合には、測定用データブロックのデータサイズやその送信間隔、送信個数などの測定用パラメータの値を帯域測定の対象である通信網の実際の利用状況に則した値に設定しておく必要があるが、上記各文献に開示された技術を用いたとしても、このようなことを実現することはできない。
本発明は、上記課題に鑑みて為されたものであり、通信網の利用状況に則した帯域測定を行うことを可能にする技術を提供することを目的としている。
By the way, when the above band measurement is performed with the number of measurement data blocks being constant, the time required for transmission of all the measurement data blocks is measured assuming a wide band (that is, measured at a narrow transmission interval). The case where the measurement data block is transmitted) and the case where the measurement is performed assuming a narrow band (that is, the case where the measurement data block is transmitted at a wide transmission interval). Specifically, the time required to perform measurement assuming a narrow band is longer than when performing measurement assuming a wide band.
Also, when performing measurement assuming a wide band, it is desirable to increase the number of measurement data blocks to be transmitted sufficiently, because a slight error in the reception interval has a large effect on the measurement result. When measurement is performed assuming a narrow band, the influence of the reception interval error on the measurement result is not so large, so even if band measurement is performed using a small number of measurement data blocks, there is a special problem. Does not occur.
In addition, the smaller the data size of the data block, the greater the overhead that occurs when routing the data block with a relay device such as a router. Therefore, the data size of the measurement data block is actually transmitted and received on the communication network. If the data size is too small or too large compared to the data size of the data block, the band measurement may not be performed correctly by the overhead.
In other words, when performing bandwidth measurement using a measurement data block, the values of measurement parameters such as the data size of the measurement data block, its transmission interval, and the number of transmissions are set to the actual values of the communication network that is the target of bandwidth measurement. Although it is necessary to set the value according to the usage situation, even if the technique disclosed in each of the above documents is used, this cannot be realized.
The present invention has been made in view of the above-described problems, and an object of the present invention is to provide a technique that enables bandwidth measurement in accordance with the use status of a communication network.
請求項1に係る発明は、記憶手段と、相手装置との間で通信網を介して所定の通信プロトコルにしたがったデータブロックの送受信を行う通信手段と、前記通信手段により送信または受信したデータブロックのデータサイズの履歴を前記記憶手段へ書き込む書き込み手段と、前記記憶手段に記憶されている前記履歴に所定の統計処理を施して得られる値をデータサイズとする測定用データブロックを予め定められた送信間隔で予め定められた数だけ送信し、前記通信網を介して前記相手装置と通信する際に使用可能な帯域幅を、それら測定用データブロックの前記相手装置での受信間隔と前記送信間隔とを比較して計測する測定手段と、前記測定手段により帯域幅の測定を行った場合に、その測定に用いた測定用データブロックのデータサイズを前回測定時のデータサイズとして前記記憶手段へ書き込む一方、前記記憶手段に記憶されている前記履歴に所定の統計処理を施して得られる値と前記前回測定時のデータサイズとの差が所定の閾値を超えた場合に、帯域幅の測定をし直すように前記測定手段を制御する測定制御手段とを有することを特徴とする通信装置を提供する。The invention according to claim 1 is a communication unit that transmits and receives data blocks according to a predetermined communication protocol via a communication network between a storage unit and a partner device, and a data block transmitted or received by the communication unit. A writing unit for writing the history of the data size to the storage unit, and a measurement data block having a data size that is a value obtained by performing predetermined statistical processing on the history stored in the storage unit is predetermined. The bandwidth that can be used when transmitting a predetermined number of transmission intervals and communicating with the counterpart device via the communication network is defined as the reception interval and the transmission interval of the measurement data block at the counterpart device. And the measurement means used for the measurement and the data size of the measurement data block used for the measurement when the bandwidth is measured by the measurement means. Is stored in the storage means as the data size at the time of the previous measurement, while the difference between the value obtained by performing predetermined statistical processing on the history stored in the storage means and the data size at the time of the previous measurement is a predetermined value. There is provided a communication apparatus comprising: a measurement control unit that controls the measurement unit so that a bandwidth is measured again when a threshold value is exceeded.
請求項2に係る発明は、請求項1に記載の通信装置において、前記記憶手段には、測定用データブロックについて互いに異なるデータサイズが予め複数書き込まれているとともに、その各々のデータサイズに対応付けて、そのデータサイズを有する測定用データブロックを用いて予め定められた測定精度で帯域幅の測定を前記測定手段に行わせる際に、前記測定手段に送信させるべき測定用データブロックの数が測定精度毎に書き込まれており、前記測定制御手段は、前記記憶手段に記憶されている前記履歴に所定の統計処理を施して得られる値をデータサイズとし、該データサイズと予め指定された測定精度とに対応する測定用データブロックの数を前記記憶手段の記憶内容を参照して特定し、その値のデータサイズを有する測定用データブロックをその数分だけ用いて帯域幅を測定し直すように前記測定手段を制御することを特徴とする。According to a second aspect of the present invention, in the communication device according to the first aspect, a plurality of different data sizes are written in advance in the storage means for the measurement data block, and are associated with each data size. The number of measurement data blocks to be transmitted to the measurement unit is measured when the measurement unit performs bandwidth measurement with a predetermined measurement accuracy using the measurement data block having the data size. It is written for each accuracy, and the measurement control means uses a value obtained by subjecting the history stored in the storage means to a predetermined statistical process as a data size, and the data size and a predetermined measurement accuracy The number of measurement data blocks corresponding to the above is specified with reference to the storage content of the storage means, and the measurement data having the data size of the value Using the lock only that number and controls the measurement unit to re-measure the bandwidth.
なお、本発明の別の態様においては、コンピュータ装置に、通信網を介して相手装置と所定の通信プロトコルにしたがったデータブロックの送受信を実行させるプログラムにおいて、前記通信網を介して送信または受信したデータブロックのデータサイズの履歴を記憶する記憶機能と、前記記憶機能により記憶された前記履歴に所定の統計処理を施して得られる値をデータサイズとする測定用データブロックを予め定められた送信間隔で予め定められた数だけ送信し、前記通信網を介して前記相手装置と通信する際に使用可能な帯域幅をそれら測定用データブロックの前記相手装置での受信間隔と前記送信間隔とを比較して計測する計測機能と、を実現させることを特徴とするプログラムを提供するとしても良い。
このようなプログラムによれば、通信網を介してデータ通信を行う一般的なコンピュータ装置に、本発明に係る通信装置と同一の機能を付与することが可能になる。
In another aspect of the present invention, in a program that causes a computer device to execute transmission / reception of a data block according to a predetermined communication protocol with a counterpart device via a communication network, the computer device transmits or receives the data block via the communication network. A storage function for storing a history of the data size of the data block, and a predetermined transmission interval for a measurement data block whose data size is a value obtained by performing predetermined statistical processing on the history stored by the storage function The number of transmissions determined in advance is compared, and the bandwidth that can be used when communicating with the counterpart device via the communication network is compared with the reception interval of the measurement data block at the counterpart device and the transmission interval. It is also possible to provide a program characterized by realizing a measurement function for measurement.
According to such a program, it becomes possible to give the same function as the communication apparatus according to the present invention to a general computer apparatus that performs data communication via a communication network.
本発明によれば、帯域測定を行う際に用いる測定用データブロックのデータサイズを、その測定を行おうとする時点までに通信網を介して送受信されたデータブロックのデータサイズにすることが可能になり、通信網の利用状況に則した帯域測定を行うことが可能になる、といった効果を奏する。 According to the present invention, the data size of the measurement data block used when performing the band measurement can be set to the data size of the data block transmitted / received via the communication network by the time when the measurement is to be performed. Thus, there is an effect that it becomes possible to perform bandwidth measurement in accordance with the use situation of the communication network.
以下、図面を参照しつつ、本発明を実施する際の最良の形態について説明する。
(A.構成)
図1は、本発明に係る通信装置の1実施形態である中継装置200Aおよび200Bを含んでいる通信システム10の構成例を示す図である。図1に示すように、この通信システム10には、例えばインターネットなどの公衆網である通信網100と、LAN(Local Area Network)300Aおよび300Bが含まれており、LAN300Aは中継装置200Aを介して通信網100に接続されており、LAN300Bは中継装置200Bを介して通信網100に接続されている。
なお、以下では中継装置200Aと200Bとを区別する必要がない場合には、「中継装置200」と表記する。同様に、LAN300Aと300Bについても、両者を区別する必要がない場合には、「LAN300」と表記する。
Hereinafter, the best mode for carrying out the present invention will be described with reference to the drawings.
(A. Configuration)
FIG. 1 is a diagram illustrating a configuration example of a
Hereinafter, when it is not necessary to distinguish between the
中継装置200は、例えばルータであり、所定の通信プロトコル(本実施形態では、「IP」)にしたがって通信網100から送信されてくるデータブロック(すなわち、パケット)を受信し、そのパケットが、自装置に接続されているLAN300に収容されている通信装置宛てのパケットである場合に、上記所定の通信プロトコルにしたがってそのパケットをその宛先へと転送するものである。なお、本実施形態では、中継装置200がルータである場合について説明するが、ゲートウェイ(すなわち、通信網100における通信プロトコルとLAN300における通信プロトコルの相互変換を行いつつ中継処理を行う通信装置)であっても良いことは勿論である。
The relay device 200 is, for example, a router, and receives a data block (that is, a packet) transmitted from the
図2は、中継装置200のハードウェア構成の一例を示すブロック図である。
図2に示すように、中継装置200は、制御部210と、ユーザインタフェイス(User Interface:以下、「UI」)部220と、第1通信インターフェイス(以下、「IF」)部230と、第2通信IF部240と、記憶部250と、これら構成要素間のデータ授受を仲介するバス260と、を有している。
FIG. 2 is a block diagram illustrating an example of a hardware configuration of the relay apparatus 200.
As shown in FIG. 2, the relay device 200 includes a
制御部210は、例えばCPU(Central Processing Unit)であり、後述する記憶部250に格納されているプログラムを実行し、他の構成要素の作動制御を行うためのものである。また、制御部210は、図示せぬクロックジェネレータから供給される動作クロックにしたがって計時動作を行う計時手段としても機能する。
The
UI部220は、中継装置200の運用管理者(例えば、中継装置200が接続されているLAN300のネットワーク管理者)に測定用パケットの宛先である相手装置の通信アドレスや、前述した測定用パラメータ(測定用パケットのデータサイズや、帯域測定に利用する測定用パケットの数など)の初期値、本発明に係る通信装置に特徴的た帯域測定処理を制御部210に実行させるか否かなどの設定を行わせるためのものである。より詳細に説明すると、UI部220は、液晶ディスプレイとその駆動回路で構成された表示部(図示省略)とキーボードなどの操作部(図示省略)とを含んでおり、上記設定を促すための画面を制御部210の制御下で上記表示部に表示させたり、上記運用管理者が操作部を操作することによって入力した設定内容を表すデータを制御部210へ引渡す。
The
第1通信IF部230と第2通信IF部240は、ともに、NIC(Network Interface Card)であり、夫々異なる通信網に接続されている。具体的には、中継装置200Aの第1通信IF部230は、通信網100に接続されており、中継装置200Aの第2通信IF部240は、LAN300Aに接続されている。一方、中継装置200Bの第1通信IF部230は、通信網100に接続されており、中継装置200Bの第2通信IF部240は、LAN300Bに接続されている。
第1通信IF部230と第2通信IF部240は、その各々が接続されている通信網を介して送信されてくるパケットを受信し制御部210へと引渡す一方、制御部210から引渡されたパケットをその各々が接続されている通信網へと送出する。なお、本実施形態では、帯域測定用に送受信される測定用パケットには、データの送受信のためのパケット(以下、データパケット)と区別するための情報がそのヘッダ部に書き込まれている。
The first
The first
記憶部250は、図2に示すように、揮発性記憶部251と不揮発性記憶部252とを含んでいる。
揮発性記憶部251は、RAM(Random Access Memory)であり、プログラムにしたがって作動している制御部210によってワークエリアとして利用される。具体的には、揮発性記憶部251には、上記初期設定にて運用管理者によって設定された各種データが書き込まれる。また、この揮発性記憶部251には、通信網100からLAN300へのデータパケットの転送またはLAN300から通信網100へのデータパケットの転送が制御部210によって行われる度にそのデータパケットのデータサイズとそのデータパケットの受信時刻とが対応付けて登録される履歴テーブル(以下、転送履歴)が記憶される。詳細については後述するが、この転送履歴の格納内容は、測定用パケットのデータサイズを決定する際に利用される。
一方、不揮発性記憶部252は、ROM(Read Only Memory)やハードディスクで構成されている。この不揮発性記憶部252には、本発明に係る通信装置に特徴的な帯域測定動作を制御部210に実行させるためのプログラムが予め格納されているとともに、図3に示す管理テーブルが格納されている。図3に示すように、この管理テーブルには、測定用パケットのデータサイズを表すデータに対応付けて、そのデータサイズを有する測定用パケットを用いて帯域測定を行う際に送信するべき測定用パケットの数を表すデータが、測定精度毎に格納されている。例えば、図3に示す管理テーブルでは、データサイズが256バイトの測定用パケットを用いて高精度の帯域測定を行う場合には、その測定用パケットを20個送信すべきことが示されている。
以上が中継装置200の構成である。
As illustrated in FIG. 2, the
The
On the other hand, the
The above is the configuration of the relay device 200.
(B.動作)
次いで、不揮発性記憶部252に格納されているプログラムにしたがって制御部210が行う動作について説明する。なお、以下に説明する動作例では、中継装置200Aについては、本発明に係る通信装置に特徴的な帯域測定を実行する旨の設定が為されており、中継装置200Bについては上記設定は為されていないものとする。
(B. Operation)
Next, an operation performed by the
図4は、制御部210が行う帯域測定動作の流れを示すフローチャートである。
図4に示すように、上記プログラムにしたがって作動している制御210は、まず、帯域測定を行う旨の設定が為されているか否かを判定し(ステップSA100)、その判定結果が “Yes”である場合には、本発明に係る帯域測定を行うための初期設定の実行を促す(ステップSA110)。逆に、ステップSA100の判定結果が“No”である場合には、通常のパケット転送処理を実行する。
FIG. 4 is a flowchart showing the flow of the band measurement operation performed by the
As shown in FIG. 4, the
中継装置200Aの制御部210(以下、制御部210Aと呼ぶ)は、上記ステップSA110において、まず、上記初期設定の実行を促すための画面をUI部220に表示させる。この画面を視認した運用管理者はUI部220の操作部を適宜操作することにより測定用パラメータや、所望する測定精度を表すデータなどの各種データを入力するができる。このようにして入力されたデータは、UI部220の操作部から制御部210Aに引渡され、制御部210によって揮発性記憶部251に書き込まれる。これにより、初期設定が完了する。
一方、中継装置200Bの制御部210(以下、制御部210Bと呼ぶ)は、ステップSA100の判定結果が“No”であるため、従来のパケット転送処理を実行する。ここで、“従来のパケット転送処理”とは、第1通信IF部230または第2通信IF部240の何れか一方を介してデータパケットを受信した場合に、そのデータパケットのヘッダ部に書き込まれている宛先アドレスを参照してそのパケットを他方の通信IF部ら送出するべきか否かを判定し、その判定結果が“Yes”である場合には、そのパケットを他方の通信IF部へと引渡して送出する一方、その判定結果が“No”である場合には、そのパケットを破棄する処理である。また、制御部210Bは、通信網100を介して測定用パケットを受信した場合に、その受信間隔を計測しその計測結果を上記測定用パケットの送信元へ返信する処理も実行する。
In step SA110,
On the other hand, the control unit 210 (hereinafter referred to as the control unit 210B) of the
ステップSA110に後続して実行されるステップSA120においては、制御部210Aは、ステップSA110にて設定された測定用パラメータにしたがって帯域測定を実行する。具体的には、制御部210は、ステップSA110にて設定されたデータサイズの測定用パケットを、ステップSA110にて設定された数分だけ所定の送信間隔で第1通信IF部230を介して通信網100へと送出し、相手装置(本実施形態では、中継装置200B)からその受信間隔を通知された場合に、その受信間隔と上記送信間隔とを比較することによって、その時点で通信網100を介して相手装置と通信する際に使用可能な帯域幅を測定し、その測定結果(すなわち、その時点で使用可能な帯域幅)を表すデータを揮発性記憶部251に書き込んで記憶する。なお、このようにして揮発性記憶部251に書き込まれる測定結果は、相手装置へデータパケットを転送する際の転送速度(すなわち、データパケットの送信間隔)を決定する際に利用される。
そして、制御部210Aは、第1通信IF部230または第2通信IF部240の何れかによりパケットを受信したか否かを判定し(ステップSA130)、その判定結果が“Yes”である場合には、受信したデータパケットについて図5に示すパケット転送処理を施す(ステップSA140)一方、その判定結果が“No”である場合には、その判定結果が“Yes”になるまで、ステップSA130の処理を繰り返し実行する。
In step SA120 executed subsequent to step SA110, control unit 210A performs band measurement according to the measurement parameters set in step SA110. Specifically, the
Then, control unit 210A determines whether or not the packet has been received by either first communication IF
図5は、制御部210Aが行うパケット転送動作の流れを示すフローチャートである。
図5に示すように制御部210Aは、第1通信IF部230または第2通信IF部240の何れか一方から引渡されたデータパケットを解析し、そのデータパケットが他方の通信IF部を介してその宛先へと転送すべきデータパケットであるか否かを判定する(ステップSB100)。
ステップSB100の判定結果が“No”である場合には、制御部210は、受信したデータパケットを破棄(ステップSB110)して本パケット転送動作を終了する。逆に、ステップSB100の判定結果が“Yes”である場合には、受信したデータパケットのデータサイズとその受信時刻とを前述した転送履歴に登録し(ステップSB120)、その後、そのデータパケットを前述したステップSA120にて測定された帯域幅に応じた送信間隔で他方の通信IF部へと引渡しその宛先へと転送する(ステップSB130)。なお、データパケットの転送を行う際には、必要に応じてそのヘッダ部を適宜書き換えるようにしても良いことは勿論である。
FIG. 5 is a flowchart showing a flow of a packet transfer operation performed by the control unit 210A.
As shown in FIG. 5, the control unit 210A analyzes the data packet delivered from either the first communication IF
If the determination result in step SB100 is “No”, the
図4に戻って、制御部210Aは、上述したパケット転送動作を完了すると、上記履歴を参照して帯域測定をし直す必要があるか否かを判定する(ステップSA150)。具体的には、制御部210Aは、その時点までに転送したデータパケットのデータサイズの平均値(例えば、相加平均)を前述した転送履歴を参照して算出し、その平均値と前回帯域測定を行った際に用いた測定用パケットのデータサイズとの差が所定の閾値を超えているか否かを判定し、その閾値を超えている場合には、帯域測定をし直す必要があると判定する。
なお、本実施形態では、転送履歴に格納されているデータサイズの全てを参照して上記平均値を算出する場合について説明したが、直近に転送した所定数分のデータパケットについて上記平均値を算出するようにしても勿論良い。また、転送履歴に格納されているデータサイズの個数が上記所定数に達していない場合には、帯域測定をし直す必要はないと判定させるようにしても良い。
Returning to FIG. 4, when completing the above-described packet transfer operation,
In the present embodiment, the case where the average value is calculated with reference to all the data sizes stored in the transfer history has been described. However, the average value is calculated for a predetermined number of data packets transferred most recently. Of course, it is good. In addition, when the number of data sizes stored in the transfer history does not reach the predetermined number, it may be determined that it is not necessary to perform band measurement again.
ステップSA150の判定結果が“No”である場合(すなわち、帯域測定をし直す必要がないと判定した場合)には、制御部210Aは、ステップSA130以降の処理を実行する。その結果、前回の帯域測定の結果を反映した状態でデータパケットの転送が行われることになる。
一方、ステップSA150の判定結果が“Yes”である場合には、制御部210Aは、測定用パケットのデータサイズを、ステップSA150にて算出した平均値に設定するとともに、そのデータサイズと運用管理者によって予め設定された測定精度とに応じた送信個数を管理テーブルから読み出し、その値を測定用パラメータに再設定し(ステップSA160)、前述したステップSA120以降の処理を実行する。
When the determination result in step SA150 is “No” (that is, when it is determined that it is not necessary to perform band measurement again), control unit 210A executes the processes after step SA130. As a result, the data packet is transferred while reflecting the result of the previous bandwidth measurement.
On the other hand, when the determination result in step SA150 is “Yes”, control unit 210A sets the data size of the measurement packet to the average value calculated in step SA150, and the data size and operation manager. The number of transmissions corresponding to the measurement accuracy set in advance is read from the management table, the value is reset to the measurement parameter (step SA160), and the processing after step SA120 described above is executed.
以上に説明したように、本実施形態に係る中継装置200によれば、その中継装置200によって転送されたデータパケットのデータサイズについての平均値と、前回に帯域測定を行った際に使用した測定用パケットのデータサイズとの差が所定の閾値を超えた場合に、その平均値に等しいデータサイズを有する測定用パケットによって帯域測定がし直され、その測定結果がパケット転送処理に反映されることになる。これにより、通信網100の実際の利用状況に則した帯域測定を行うことが可能になるとともに、その時点の通信網100の利用状況に則したパケット転送処理を行うことが可能になる、といった効果を奏する。また、本実施形態に係る中継装置200によれば、運用管理者が予め所望の測定精度を設定しておくことによって、その測定精度に見合った数の測定用パケットを送信し帯域測定を行うことが可能になる。
As described above, according to the relay device 200 according to the present embodiment, the average value of the data size of the data packet transferred by the relay device 200 and the measurement used when the bandwidth measurement was performed last time. When the difference from the data size of the packet for use exceeds a predetermined threshold, the bandwidth is measured again with the measurement packet having a data size equal to the average value, and the measurement result is reflected in the packet transfer process. become. As a result, it is possible to perform bandwidth measurement according to the actual usage status of the
(C.変形)
以上、本発明の1実施形態について説明したが、上記実施形態を以下に説明するように変形しても良いことは勿論である。
(1)上述した実施形態では、公衆網とLANとの間の通信を仲介する中継装置に本発明を適用する場合について説明したが、通信経路の両端に位置する送信装置や受信装置に本発明を適用するとしても良いことは勿論である。要は、通信網を介して相手装置とデータブロックの送受信を行う通信装置であれば良い。
(C. deformation)
Although one embodiment of the present invention has been described above, it is needless to say that the above embodiment may be modified as described below.
(1) In the above-described embodiment, the case where the present invention is applied to a relay device that mediates communication between a public network and a LAN has been described. However, the present invention is applied to a transmission device and a reception device located at both ends of a communication path. Of course, it may be applied. In short, any communication device that transmits and receives data blocks to and from a partner device via a communication network may be used.
(2)上述した実施形態では、ネットワーク層のデータブロックであるパケットの送信間隔と受信間隔を比較することによって、帯域幅を計測する場合について説明した。しかしながら、ネットワーク層よりも下位層(例えば、データリンク層)のデータブロックであるフレームの送信間隔と受信間隔を比較して帯域幅を測定するとしても良く、逆に、ネットワーク層よりも上位層(例えば、トランスポート層)のデータブロックであるセグメントの送信間隔と受信間隔とを比較して帯域幅を測定するようにしても勿論良い。要は、所定の通信プロトコルにしたがって送受信されるデータブロックの送信間隔と受信間隔とを比較して帯域幅を測定する態様であれば、その通信プロトコルが属するプロトコル階層は問わない。 (2) In the above-described embodiment, the case has been described in which the bandwidth is measured by comparing the transmission interval and the reception interval of packets that are data blocks in the network layer. However, the bandwidth may be measured by comparing the transmission interval and the reception interval of frames that are data blocks in the lower layer (for example, the data link layer) than the network layer, and conversely, the upper layer ( For example, it is of course possible to measure the bandwidth by comparing the transmission interval and the reception interval of the segments that are data blocks in the transport layer). In short, as long as the bandwidth is measured by comparing the transmission interval and the reception interval of data blocks transmitted and received according to a predetermined communication protocol, the protocol hierarchy to which the communication protocol belongs is not limited.
(3)上述した実施形態では、前述したパケット転送動作にて転送された全てのデータパケットのデータサイズについての平均値と、その帯域測定の際に用いた測定用パケットのデータサイズとの差が所定の閾値を超えた場合に、その平均値と一致するデータサイズの測定用パケットを用いて帯域測定をし直す場合について説明した。しかしながら、上記平均値に替えて最頻出値(或いは中央値)を算出し、その値と前回の帯域測定にて用いた測定用パケットのデータサイズとを比較し、両者の差が所定の閾値を超えた場合に、上記最頻出値(或いは中央値)と一致するデータサイズの測定用パケットを用いて帯域測定をし直すようにしても良い。要は、前述したパケット転送動作にて転送されたデータパケットのデータサイズの履歴に、何らかの統計処理を施すことにより得られた値(すなわち、平均値や最頻出値、中央値など)と前回の帯域測定の際に用いた測定用パケットのデータサイズとを比較して、帯域測定をし直す必要があるか否かを判定する態様であれば良い。 (3) In the above-described embodiment, the difference between the average value of the data sizes of all the data packets transferred by the above-described packet transfer operation and the data size of the measurement packet used for the bandwidth measurement is A case has been described in which when a predetermined threshold value is exceeded, bandwidth measurement is performed again using a measurement packet having a data size that matches the average value. However, instead of the average value, the most frequent value (or median value) is calculated, and the value is compared with the data size of the measurement packet used in the previous bandwidth measurement. If it exceeds, the bandwidth measurement may be performed again using a measurement packet having a data size that matches the most frequently occurring value (or median). In short, the value obtained by applying some statistical processing to the history of the data size of the data packet transferred by the packet transfer operation described above (that is, the average value, the most frequent value, the median value, etc.) Any mode may be used as long as it is necessary to compare the data size of the measurement packet used in the bandwidth measurement to determine whether or not the bandwidth measurement needs to be performed again.
(4)上述した実施形態では、前述したパケット転送処理にて転送されたデータパケットのデータサイズについての平均値と、前回の帯域測定の際に用いた測定用パケットのデータサイズとを比較する場合について説明した。しかしながら、データパケットの種類毎(例えば、パケットの送信元であるアプリケーションプログラム毎)に、上記平均値の算出および閾値との比較を行い、データパケットの種類毎に帯域測定をやり直す必要があるか否かを判定するようにしても良い。また、データパケットの種類毎に異なる格納内容を有する管理テーブルを不揮発性記憶部252に予め書き込んでおき、データパケットの種類毎に、測定用パラメータを決定するようにしても良い。
(4) In the above-described embodiment, when the average value of the data size of the data packet transferred by the packet transfer process described above is compared with the data size of the measurement packet used in the previous bandwidth measurement Explained. However, for each data packet type (for example, for each application program that is a packet transmission source), whether the average value is calculated and compared with a threshold value, and whether or not it is necessary to repeat the bandwidth measurement for each data packet type. You may make it determine. In addition, a management table having different storage contents for each type of data packet may be written in the
(5)上述した実施形態では、本発明に係る通信装置に特徴的な機能をソフトウェアモジュールで実現する場合について説明したが、ハードウェアモジュールで実現しても良いことは勿論である。また、上述した実施形態では、本発明に係る通信装置に特徴的な帯域測定動作を制御部210に実行させるためのプログラムが記憶部250に予め記憶されている場合について説明したが、係るプログラムをCD−ROM(Compact Disk-Read Only Memory)などコンピュータ装置読取り可能な記録媒体に書き込んで配布するとしても良く、また、インターネットなどの電気通信回線を介して配布するようにしても良い。このようにすると、上記記録媒体に書き込まれたプログラムや上記電気通信回線を介して配布されたプログラムを、一般的なコンピュータ装置にインストールすることによって、そのコンピュータ装置に本発明に係る通信装置と同一の機能を付与することが可能になる。
(5) In the above-described embodiment, the case where the characteristic function of the communication apparatus according to the present invention is realized by a software module has been described. However, it goes without saying that the function may be realized by a hardware module. In the above-described embodiment, a case has been described in which a program for causing the
10…通信システム、100…通信網、200,200A,200B…中継装置、300,300A,300B…LAN、210…制御部、220…UI部、230…第1通信IF部、240…第2通信IF部、250…記憶部、251…揮発性記憶部、252…不揮発性記憶部、260…バス。
DESCRIPTION OF
Claims (2)
相手装置との間で通信網を介して所定の通信プロトコルにしたがったデータブロックの送受信を行う通信手段と、
前記通信手段により送信または受信したデータブロックのデータサイズの履歴を前記記憶手段へ書き込む書き込み手段と、
前記記憶手段に記憶されている前記履歴に所定の統計処理を施して得られる値をデータサイズとする測定用データブロックを予め定められた送信間隔で予め定められた数だけ送信し、前記通信網を介して前記相手装置と通信する際に使用可能な帯域幅を、それら測定用データブロックの前記相手装置での受信間隔と前記送信間隔とを比較して計測する測定手段と、
前記測定手段により帯域幅の測定を行った場合に、その測定に用いた測定用データブロックのデータサイズを前回測定時のデータサイズとして前記記憶手段へ書き込む一方、
前記記憶手段に記憶されている前記履歴に所定の統計処理を施して得られる値と前記前回測定時のデータサイズとの差が所定の閾値を超えた場合に、帯域幅の測定をし直すように前記測定手段を制御する測定制御手段と
を有することを特徴とする通信装置。 Storage means;
A communication means for performing transmission / reception of a data block according to a predetermined communication protocol with a counterpart device via a communication network;
Writing means for writing a history of the data size of the data block transmitted or received by the communication means to the storage means;
Transmitting a predetermined number of measurement data blocks having a data size as a data size obtained by performing predetermined statistical processing on the history stored in the storage means, and the communication network a measuring means for the available bandwidth to communicate with the partner apparatus, measured as compared to the reception interval in those the counterpart device of the measurement data blocks and said transmission interval through,
When measuring the bandwidth by the measurement means, while writing the data size of the measurement data block used for the measurement to the storage means as the data size at the time of the previous measurement,
When the difference between the value obtained by performing predetermined statistical processing on the history stored in the storage unit and the data size at the time of the previous measurement exceeds a predetermined threshold, the bandwidth is measured again And a measurement control means for controlling the measurement means .
測定用データブロックについて互いに異なるデータサイズが予め複数書き込まれているとともに、その各々のデータサイズに対応付けて、そのデータサイズを有する測定用データブロックを用いて予め定められた測定精度で帯域幅の測定を前記測定手段に行わせる際に、前記測定手段に送信させるべき測定用データブロックの数が測定精度毎に書き込まれており、
前記測定制御手段は、
前記記憶手段に記憶されている前記履歴に所定の統計処理を施して得られる値をデータサイズとし、該データサイズと予め指定された測定精度とに対応する測定用データブロックの数を前記記憶手段の記憶内容を参照して特定し、その値のデータサイズを有する測定用データブロックをその数分だけ用いて帯域幅を測定し直すように前記測定手段を制御する
ことを特徴とする請求項1に記載の通信装置。 In the storage means,
A plurality of different data sizes are written in advance for the measurement data block, and the bandwidth of the measurement data block having the data size is determined in association with each data size with a predetermined measurement accuracy. When making the measurement means perform the measurement, the number of measurement data blocks to be transmitted to the measurement means is written for each measurement accuracy,
The measurement control means includes
A value obtained by performing predetermined statistical processing on the history stored in the storage unit is a data size, and the number of measurement data blocks corresponding to the data size and a predetermined measurement accuracy is stored in the storage unit. The measurement means is controlled to re-measure the bandwidth by using the number of measurement data blocks having the data size corresponding to the specified data size with reference to the stored contents. The communication apparatus as described in.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005252427A JP4175352B2 (en) | 2005-08-31 | 2005-08-31 | Communication device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005252427A JP4175352B2 (en) | 2005-08-31 | 2005-08-31 | Communication device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2007067924A JP2007067924A (en) | 2007-03-15 |
| JP4175352B2 true JP4175352B2 (en) | 2008-11-05 |
Family
ID=37929567
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2005252427A Expired - Lifetime JP4175352B2 (en) | 2005-08-31 | 2005-08-31 | Communication device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4175352B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4692557B2 (en) * | 2008-02-21 | 2011-06-01 | 沖電気工業株式会社 | Packet relay device |
-
2005
- 2005-08-31 JP JP2005252427A patent/JP4175352B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JP2007067924A (en) | 2007-03-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103999409B (en) | Method for Link Buffer Size and Queue Length Estimation for Bandwidth Varying Mobile Data Networks | |
| JP4348124B2 (en) | Method and communication device for estimating QoS | |
| US8509067B2 (en) | System and method for controlling network congestion | |
| Scherrer et al. | Model-based insights on the performance, fairness, and stability of BBR | |
| JP6051832B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM | |
| EP3902217B1 (en) | Message processing method and apparatus | |
| Arzani et al. | Deconstructing MPTCP performance | |
| JPWO2020012973A1 (en) | Communication controllers, methods, and programs | |
| JP6464911B2 (en) | Information processing system, information processing system control method, and receiving apparatus | |
| Man et al. | ImTCP: TCP with an inline measurement mechanism for available bandwidth | |
| Ahsan et al. | TCP BBR-n interplay with modern AQM in Wireless-N/AC networks: Quest for the golden pair | |
| JP4175352B2 (en) | Communication device | |
| JP5087595B2 (en) | Edge node, window size control method and program | |
| JP4175354B2 (en) | Communication device | |
| JP4175353B2 (en) | Communication system and communication apparatus | |
| JP4766703B2 (en) | Edge node and bandwidth control method | |
| Torres-Jr et al. | Packet reordering metrics to enable performance comparison in IP‐networks | |
| JPWO2007004558A1 (en) | Band control circuit and band control method used therefor | |
| JP4828555B2 (en) | Node device and bandwidth control method | |
| Jaiswal et al. | A comparative performance analysis of TCP congestion control algorithm: elastic TCP vs. e-Elastic TCP | |
| Rabitsch | Evaluation of packet schedulers for multipath quic | |
| Yang et al. | APCC: Active Precise Congestion Control for Campus Wireless Networks | |
| Liu et al. | Modeling multi-path TCP throughput with coupled congestion control and flow control | |
| JP4797033B2 (en) | Flow rate control method and edge node in TCP flow rate control edge node | |
| JP4774411B2 (en) | Edge node and bandwidth control method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20071207 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20071218 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080215 |
|
| 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: 20080729 |
|
| 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: 20080811 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110829 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4175352 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120829 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130829 Year of fee payment: 5 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313532 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |