JP5703154B2 - Switching hub connection stage detection method and apparatus - Google Patents
Switching hub connection stage detection method and apparatus Download PDFInfo
- Publication number
- JP5703154B2 JP5703154B2 JP2011155459A JP2011155459A JP5703154B2 JP 5703154 B2 JP5703154 B2 JP 5703154B2 JP 2011155459 A JP2011155459 A JP 2011155459A JP 2011155459 A JP2011155459 A JP 2011155459A JP 5703154 B2 JP5703154 B2 JP 5703154B2
- Authority
- JP
- Japan
- Prior art keywords
- message
- stage number
- connection stage
- delay time
- communication delay
- 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.)
- Active
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Description
本発明は、通信制御技術に関し、特にノード間を結ぶ通信経路上に接続されているスイッチングハブの接続段数を検出するスイッチングハブ接続段数検出技術に関する。 The present invention relates to a communication control technique, and more particularly to a switching hub connection stage detection technique for detecting the number of connection stages of switching hubs connected on a communication path connecting nodes.
ビル設備やプラント設備を監視制御する監視制御システムでは、情報収集機能や制御機能などの各種機能を有する通信機器をノードとして、Ethernet(登録商標)などの通信ネットワークを介して接続し、これらノードからの情報に基づき中央監視装置で個々の設備を監視制御するものとなっている。このような監視制御システムでは、多くのノードを通信ネットワークに接続するため、複数のスイッチングハブを多段接続した通信ネットワークを計装する。 In a monitoring control system that monitors and controls building facilities and plant facilities, communication devices having various functions such as an information collection function and a control function are connected as nodes via a communication network such as Ethernet (registered trademark). Based on this information, the central monitoring device monitors and controls each facility. In such a monitoring control system, in order to connect many nodes to a communication network, a communication network in which a plurality of switching hubs are connected in multiple stages is instrumented.
このような多くのノードが接続された通信ネットワークでは、ネットワーク構成の変更やメンテナンスなどに際し、通信ネットワークの構成を確認するため、任意のノード間を結ぶ通信経路上にいくつのスイッチングハブが接続されているのか、すなわち、スイッチングハブ接続段数を効率よく検出する手段が必要となる。IPアドレスを持つ通信を行うことが可能なパソコンやノード機器については、容易に確認することは可能であるが、安価なノンインテリジェントスイッチングハブについては、容易に確認することができない。 In such a communication network to which many nodes are connected, in order to check the configuration of the communication network when the network configuration is changed or maintained, several switching hubs are connected on the communication path connecting any nodes. That is, a means for efficiently detecting the switching hub connection stage number is required. Personal computers and node devices capable of performing communication with IP addresses can be easily confirmed, but inexpensive non-intelligent switching hubs cannot be easily confirmed.
従来、通信ネットワークを構成するハブの接続構成を認識する技術として、上位のハブから下位のハブに対して、周波数分周を利用して接続段数を確認するための段数信号を順次送信し、下位のハブから上位のハブに対して、下位のハブと自己との接続段数を通知する構成認識信号を順次送信する機能を、すべてのハブに搭載することにより、ハブの接続構成を認識するものが提案されている(例えば、特許文献1など参照)。 Conventionally, as a technology for recognizing the connection configuration of hubs constituting a communication network, a higher level hub sequentially transmits a stage number signal for confirming the number of connection stages using frequency division from the lower level hub to the lower level hub. Some hubs recognize the connection configuration of hubs by installing a function that sequentially transmits a configuration recognition signal that notifies the number of connection stages between the lower hub and itself from the hub to the upper hub. It has been proposed (see, for example, Patent Document 1).
しかしながら、このような従来技術では、通信ネットワークを構成するスイッチングハブとして、特定の段数信号や構成認識信号を他のスイッチングハブとの間で送受信する特別な機能を有するものを用いる必要がある。したがって、このような機能を持たない、安価なノンインテリジェントスイッチングハブを利用した通信ネットワークについては、スイッチングハブの接続構成を検出することができず、通信ネットワークを計装する際、予め、このような特別な機能を有するスイッチングハブで統一する必要がある。このため、各種のスイッチングハブを用いる、ビル計装やフィールド計装などの通信ネットワークには、適用が難しいという問題点があった。 However, in such a conventional technique, it is necessary to use a switching hub constituting a communication network having a special function of transmitting / receiving a specific stage number signal or a configuration recognition signal to / from another switching hub. Therefore, for a communication network that uses an inexpensive non-intelligent switching hub that does not have such a function, the connection configuration of the switching hub cannot be detected. It is necessary to unify with a switching hub having a special function. For this reason, there is a problem that it is difficult to apply to communication networks such as building instrumentation and field instrumentation using various switching hubs.
本発明はこのような課題を解決するためのものであり、特別な機能を有するスイッチングハブで統一しなくても、通信経路上に接続されているスイッチングハブの接続段数を容易に検出できるスイッチングハブ接続段数検出技術を提供することを目的としている。 The present invention is to solve such problems, and a switching hub capable of easily detecting the number of connection stages of switching hubs connected on a communication path without being unified with a switching hub having a special function. The object is to provide a connection stage number detection technique.
このような目的を達成するために、本発明にかかるスイッチングハブ接続段数検出方法は、複数のスイッチングハブが多段接続されてなる通信経路の一端に接続された第1の端末と、当該通信経路の他端に接続された第2の端末との間で、メッセージを往復させることにより、第1の端末におけるメッセージの送信から受信までの所要時間を計時する所要時間計時ステップと、第2の端末でのメッセージの受信から返信までに要するメッセージ返信処理時間を、所要時間から減算することにより、通信経路に関する通信遅延時間を計算する通信遅延時間計算ステップと、通信遅延時間とスイッチングハブにおけるメッセージの転送に要するメッセージ転送処理時間とを比較することにより、通信経路を構成するスイッチングハブの接続段数を特定する接続段数特定ステップとを備えている。 In order to achieve such an object, a switching hub connection stage number detection method according to the present invention includes a first terminal connected to one end of a communication path in which a plurality of switching hubs are connected in multiple stages, and the communication path. A required time counting step for measuring a required time from transmission to reception of a message in the first terminal by reciprocating the message with the second terminal connected to the other end; A message delay processing step for calculating a communication delay time related to a communication path by subtracting a message reply processing time required from the reception of the message to the reply from the required time, and for transferring the communication delay time and the message in the switching hub. By comparing the message transfer processing time required, the number of connection stages of the switching hubs that make up the communication path can be determined. And a connection number specifying step constant to.
この際、所要時間計時ステップで、メッセージの往復を複数回実行することにより、複数の所要時間を計時し、通信遅延時間計算ステップで、所要時間ごとに計算した通信遅延時間のうちから最小の通信遅延時間を選択し、接続段数特定ステップで、通信遅延時間に基づいて、スイッチングハブ接続段数を特定するようにしてもよい。 At this time, the required time is measured multiple times in the required time counting step to measure multiple required times, and the communication delay time calculated for each required time in the communication delay time calculating step is the minimum communication. The delay time may be selected, and the number of connection stages of the switching hub may be specified based on the communication delay time in the connection stage number specifying step.
また、接続段数特定ステップで、メッセージ返信処理時間をメッセージの長さに基づいて補正し、補正後のメッセージ返信処理時間に基づいて、スイッチングハブの接続段数を特定するようにしてもよい。 In the connection stage number specifying step, the message reply processing time may be corrected based on the message length, and the switching hub connection stage number may be specified based on the corrected message reply processing time.
また、接続段数特定ステップで、予め設定されている通信遅延時間の範囲とスイッチングハブ接続段数との対応関係に基づいて、通信遅延時間に対応するスイッチングハブの接続段数を特定するようにしてもよい。 Further, in the connection stage number specifying step, the connection stage number of the switching hub corresponding to the communication delay time may be specified based on the correspondence relationship between the preset communication delay time range and the switching hub connection stage number. .
また、本発明にかかるスイッチングハブ接続段数検出装置は、複数のスイッチングハブが多段接続されてなる通信経路の一端に接続されて、当該通信経路の他端に接続された相手装置までの間に接続されているスイッチングハブの接続段数を検出するスイッチングハブ接続段数検出装置であって、相手装置との間でメッセージを往復させることにより、当該メッセージの送信から受信までの所要時間を計時する所要時間計時部と、相手装置でのメッセージの受信から返信までに要するメッセージ返信処理時間を、所要時間から減算することにより、通信経路に関する通信遅延時間を計算する通信遅延時間計算部と、通信遅延時間とスイッチングハブにおけるメッセージの転送に要するメッセージ転送処理時間とを比較することにより、通信経路を構成するスイッチングハブの接続段数を特定する接続段数特定部とを備えている。 The switching hub connection stage number detecting device according to the present invention is connected to one end of a communication path in which a plurality of switching hubs are connected in multiple stages, and connected to the other apparatus connected to the other end of the communication path. A switching hub connection stage detection device that detects the number of connected switching hubs, and measures the required time from transmission to reception of the message by reciprocating the message with the partner device. A communication delay time calculating unit that calculates a communication delay time related to a communication path by subtracting a message reply processing time required from the reception of the message at the partner device to a reply from the required time, and a communication delay time and a switching By comparing the message transfer processing time required for message transfer at the hub, And a connection number identifying unit that identifies the number of connection stages of the switching hub that constitutes the.
本発明によれば、特別な機能を有するスイッチングハブで統一しなくても、計測により得られるメッセージの往復所要時間に基づいて、通信経路上に接続されているスイッチングハブの接続段数を容易に検出することが可能となる。 According to the present invention, the number of connection stages of switching hubs connected on the communication path can be easily detected based on the round-trip required time of a message obtained by measurement without being unified with a switching hub having a special function. It becomes possible to do.
次に、本発明の実施の形態について図面を参照して説明する。
[第1の実施の形態]
まず、図1を参照して、本発明の第1の実施の形態にかかるスイッチングハブ接続段数検出装置10について説明する。図1は、第1の実施の形態にかかるスイッチングハブ接続段数検出装置の構成を示すブロック図である。
Next, embodiments of the present invention will be described with reference to the drawings.
[First Embodiment]
First, a switching hub connection stage
このスイッチングハブ接続段数検出装置10は、複数のスイッチングハブH1〜Hn(nは2以上の整数)が多段接続されてなる通信経路Lの一端に接続されて、通信経路Lの他端に接続された相手装置20までの間に接続されているスイッチングハブH1〜Hnの接続段数を検出する装置である。
This switching hub connection stage
本実施の形態は、スイッチングハブ接続段数検出装置(第1の端末)10と、相手装置(第2の端末)20との間で、メッセージを往復させることにより、スイッチングハブ接続段数検出装置10におけるメッセージの送信から受信までの所要時間を計時し、相手装置20でのメッセージの送信から受信までに要するメッセージ返信処理時間を、所要時間から減算することにより、通信経路Lに関する通信遅延時間を計算し、この通信遅延時間とスイッチングハブH1〜Hnにおけるメッセージの転送に要するメッセージ転送処理時間とを比較することにより、通信経路Lを構成するスイッチングハブH1〜Hnの接続段数を特定するようにしたものである。
In the present embodiment, a message is reciprocated between the switching hub connection stage detection device (first terminal) 10 and the counterpart device (second terminal) 20, so that the switching hub connection
スイッチングハブ接続段数検出装置10には、主な機能部として、通信I/F部11、記憶部12、所要時間計時部13、通信遅延時間計算部14、および接続段数特定部15が設けられている。
The switching hub connection stage
通信I/F部11は、一般的なデータ通信回路からなり、通信経路Lを介して接続された相手装置20などの端末装置との間でメッセージを送受信する機能を有している。
記憶部12は、半導体メモリなどの記憶装置からなり、各機能部で処理する処理データを記憶する機能を有している。
The communication I /
The
所要時間計時部13は、スイッチングハブ接続段数検出装置10と相手装置20との間で、通信I/F部11を介してメッセージを往復させることにより、スイッチングハブ接続段数検出装置10におけるメッセージの送信から受信までの所要時間を計時する機能を有している。メッセージの送受信時刻については、例えばCPUに設けられたタイマを利用すればよい。
The required
通信遅延時間計算部14は、相手装置20でのメッセージの送信から受信までに要するメッセージ返信処理時間を、所要時間計時部13で計時した所要時間から減算することにより、通信経路Lに関する通信遅延時間を計算する機能を有している。
The communication delay
接続段数特定部15は、通信遅延時間計算部14で計算した通信遅延時間とスイッチングハブH1〜Hnにおけるメッセージの転送に要するメッセージ転送処理時間とを比較することにより、通信経路を構成するスイッチングハブの接続段数を特定する機能を有している。
The connection stage
また、相手装置20には、主な機能として、通信I/F部21とメッセージ返信部22とが設けられている。
通信I/F部21は、一般的なデータ通信回路からなり、通信経路Lを介して接続されたスイッチングハブ接続段数検出装置10などの端末装置との間でメッセージを送受信する機能を有している。
メッセージ返信部22は、通信I/F部21で受信したスイッチングハブ接続段数検出装置10からのメッセージを返信する機能を有している。
Further, the
The communication I /
The
[スイッチングハブ接続段数特定方法]
次に、図2を参照して、本実施の形態にかかるスイッチングハブ接続段数の特定方法について説明する。図2は、スイッチングハブ接続段数特定方法を示す説明図である。
時刻T1にスイッチングハブ接続段数検出装置10からリクエストメッセージを送信した場合、最初のスイッチングハブH1でリクエストメッセージの転送処理が実行される。この際、スイッチングハブH1におけるメッセージの転送処理には、メッセージの長さ、すなわちデータ量に応じた分だけ、メッセージ転送処理時間THが発生する。例えば100baseTの通信経路で、メッセージが1500バイトの場合、一般的なスイッチングハブでは120.96[μsec]のメッセージ転送処理時間THが発生する。
[Switching hub connection stage identification method]
Next, with reference to FIG. 2, a method for specifying the switching hub connection stage number according to the present embodiment will be described. FIG. 2 is an explanatory diagram showing a method for specifying the switching hub connection stage number.
When a request message is transmitted from the switching hub connection stage
したがって、リクエストメッセージには、スイッチングハブH1においてメッセージ転送処理時間THだけ遅延が生じる。このメッセージ転送処理時間THは、各スイッチングハブH1〜Hnでほぼ共通している。このため、n個のスイッチングハブH1〜Hnが多段接続されている場合、これらスイッチングハブH1〜Hnでの遅延は、TH×nとなる。 Therefore, the request message is delayed by the message transfer processing time TH in the switching hub H1. This message transfer processing time TH is substantially common to the switching hubs H1 to Hn. For this reason, when n switching hubs H1 to Hn are connected in multiple stages, the delay in these switching hubs H1 to Hn is TH × n.
一方、リクエストメッセージの受信に応じて、相手装置20からレスポンスメッセージを返信する際、メッセージ返信処理にも、メッセージ返信処理時間TBが発生する。
さらに、このレスポンスメッセージに対して、リクエストメッセージと同様に、スイッチングハブH1〜Hnのメッセージ転送処理に応じた分だけ、TH×nの遅延が発生する。
On the other hand, when a response message is returned from the
Further, for this response message, a delay of TH × n is generated by the amount corresponding to the message transfer processing of the switching hubs H1 to Hn, similarly to the request message.
したがって、時刻T2において、スイッチングハブ接続段数検出装置10でレスポンスメッセージを受信した場合、時刻T1から時刻T2までのメッセージの往復に要した所要時間をTA(=T2−T1)とすると、スイッチングハブH1〜Hnでの通信遅延時間TDは、TD=TA−TB≒2×TH×nとなる。
Therefore, when the response message is received by the switching hub connection stage
ここで、前述したように、100baseTの通信経路で、メッセージが1500バイトの場合、2×THは、2×120.96[μsec]=241.92[μsec]となる。また、メッセージ返信処理時間TBは、ほぼ一定であり、予め計時しおくことができる。また、通信ケーブルでの遅延時間は極めて小さく無視できる程度ある。
このため、通信遅延時間TDに基づいて、スイッチングハブH1〜Hnの接続段数nを特定することができる。
Here, as described above, when the message is 1500 bytes on the communication path of 100baseT, 2 × TH is 2 × 120.96 [μsec] = 241.92 [μsec]. The message reply processing time TB is almost constant and can be timed in advance. Further, the delay time in the communication cable is extremely small and can be ignored.
For this reason, the connection stage number n of the switching hubs H1 to Hn can be specified based on the communication delay time TD.
図3は、通信遅延時間とスイッチングハブ接続段数の関係を示す説明図である。
前述したように、1つのスイッチングハブでのメッセージ転送処理時間THは、100baseTの通信経路で、メッセージが1500バイトの場合、120.96[μsec]である。このため、通信経路L上にスイッチングハブが1つ増えるごとに、通信遅延時間TDは、2×THずつ増加することになる。
FIG. 3 is an explanatory diagram showing the relationship between the communication delay time and the number of switching hub connection stages.
As described above, the message transfer processing time TH in one switching hub is 120.96 [μsec] when the message is 1500 bytes on the communication path of 100baseT. For this reason, every time one switching hub is added on the communication path L, the communication delay time TD increases by 2 × TH.
このため、図3に示すように、2×THをしきい値とする通信遅延時間TDの範囲に対して、スイッチングハブの接続段数を対応させることができる。
例えば、通信遅延時間TDが241.92(=2×TH)[μsec]未満の範囲では、スイッチングハブ接続段数n=0となり、241.92[μsec]以上で483.84[μsec]未満の範囲では、スイッチングハブ接続段数n=1となり、483.84[μsec]以上で725.76[μsec]未満の範囲では、スイッチングハブ接続段数n=2となる。
For this reason, as shown in FIG. 3, the number of connection stages of the switching hub can be made to correspond to the range of the communication delay time TD having 2 × TH as a threshold value.
For example, when the communication delay time TD is less than 241.92 (= 2 × TH) [μsec], the switching hub connection stage number n = 0, and the range is more than 241.92 [μsec] and less than 483.84 [μsec]. Then, the switching hub connection stage number n = 1, and in the range of 483.84 [μsec] or more and less than 725.76 [μsec], the switching hub connection stage number n = 2.
[第1の実施の形態の動作]
次に、図4を参照して、本実施の形態にかかるスイッチングハブ接続段数検出装置10の動作について説明する。図4は、第1の実施の形態にかかるスイッチングハブ接続段数検出処理を示すフローチャートである。
[Operation of First Embodiment]
Next, the operation of the switching hub connection stage
まず、スイッチングハブ接続段数検出装置10の所要時間計時部13は、通信I/F部11から通信経路Lへ、リクエストメッセージを送信し(ステップ100)、これに応じて相手装置20から返信されたレスポンスメッセージを受信待機する(ステップ101)。
ここで、レスポンスメッセージを受信した場合(ステップ101:YES)、所要時間計時部13は、リクエストメッセージを送信した時刻T1と、レスポンスメッセージを受信した時刻T2とから、所要時間TA(=T2−T1)を計算する(ステップ102)。
First, the required
When the response message is received (step 101: YES), the required
続いて、通信遅延時間計算部14は、所要時間TAから、予め記憶部12に設定されている相手装置20でのメッセージ返信処理時間TBを減算することにより、スイッチングハブH1〜Hnでの通信遅延時間TD(=TA−TB)を計算する(ステップ103)。
この後、接続段数特定部15は、通信遅延時間TDと予め記憶部12に設定されているスイッチングハブでのメッセージ転送処理時間THとを比較することにより、スイッチングハブH1〜Hnの接続段数nを特定し(ステップ104)、一連の処理を終了する。
Subsequently, the communication delay
Thereafter, the connection stage
通信遅延時間TDとメッセージ転送処理時間THとを比較する場合、例えば、前述の図3で示した通信遅延時間とスイッチングハブ接続段数の関係を示すテーブルを記憶部12に予め設定しておき、このテーブルを参照して、スイッチングハブ接続段数nを特定してもよい。あるいは、通信遅延時間TDを2×THで除算し、その整数部をスイッチングハブ接続段数nとして特定してもよい。 When comparing the communication delay time TD and the message transfer processing time TH, for example, a table showing the relationship between the communication delay time and the switching hub connection stage shown in FIG. With reference to the table, the switching hub connection stage number n may be specified. Alternatively, the communication delay time TD may be divided by 2 × TH, and the integer part may be specified as the switching hub connection stage number n.
一方、所要時間計時部13は、レスポンスメッセージの受信待機中、リクエストメッセージの受信タイムアウトを監視しており(ステップ105)、リクエストメッセージの送信から規定時間内に、レスポンスメッセージを受信できず、受信タイムアウトとなった場合(ステップ105:YES)、計測エラーと判定して(ステップ106)、一連の処理を終了する。
On the other hand, the required
[第1の実施の形態の効果]
このように、本実施の形態では、スイッチングハブ接続段数検出装置10と相手装置20との間で、メッセージを往復させることにより、所要時間計時部13で、スイッチングハブ接続段数検出装置10におけるメッセージの送信から受信までの所要時間TAを計時し、通信遅延時間計算部14で、相手装置20でのメッセージの送信から受信までに要するメッセージ返信処理時間TBを、所要時間TAから減算することにより、通信経路Lに関する通信遅延時間TDを計算し、接続段数特定部15で、この通信遅延時間TDとスイッチングハブH1〜Hnにおけるメッセージの転送に要するメッセージ転送処理時間THとを比較することにより、通信経路Lを構成するスイッチングハブH1〜Hnの接続段数nを特定している。
[Effect of the first embodiment]
As described above, in the present embodiment, a message is reciprocated between the switching hub connection stage
これにより、特別な機能を有するスイッチングハブで統一しなくても、計測により得られるメッセージの往復所要時間TAに基づいて、通信経路L上に接続されているスイッチングハブの接続段数nを容易に検出することが可能となる。 This makes it easy to detect the number n of switching hubs connected on the communication path L based on the round-trip required time TA of the message obtained by measurement, without having to unify the switching hubs with special functions. It becomes possible to do.
また、本実施の形態では、接続段数特定部15で、予め設定されている通信遅延時間TDの範囲とスイッチングハブ接続段数nとの対応関係に基づいて、通信遅延時間TDに対応するスイッチングハブの接続段数nを特定するようにしたので、テーブルを参照するという極めて簡素な処理でスイッチングハブの接続段数nを特定できる。
In the present embodiment, the connection stage
また、本実施の形態では、所要時間計時部13で、所要時間TAを計時する場合、メッセージの送受信時刻の時刻差T2−T1から所要時間TAを計算する場合を例として説明したが、これに限定されるものではなく、リクエストメッセージの送信時にタイマをスタートし、レスポンスメッセージの受信時にタイマをストップさせて、このタイマの計数値から所要時間TAを計算するようにしてもよい。
Further, in the present embodiment, when the required time TA is measured by the required
また、本実施の形態では、所要時間計時部13、通信遅延時間計算部14、および接続段数特定部15を、ノードN1とは別個のスイッチングハブ接続段数検出装置10に実装した場合を例として説明したが、これに限定されるものではなく、ノードN1に実装してもよい。
また、本実施の形態では、ノードN2とは別個の相手装置20で、スイッチングハブ接続段数検出装置10からのメッセージを返信する場合を例として説明したが、これに限定されるものではなく、ノードN2にメッセージ返信部22を実装してもよい。
Further, in the present embodiment, a case where the required
Further, in the present embodiment, the case has been described as an example in which the
[第2の実施の形態]
次に、本発明の第2の実施の形態にかかるスイッチングハブ接続段数検出装置10について説明する。本実施の形態では、所要時間計時部13で、メッセージの往復を複数回実行することにより、複数の所要時間TAを計時し、通信遅延時間計算部14で、これら所要時間TAの通信遅延時間TDをそれぞれ求め、これら通信遅延時間TDのうちから選択した最小通信遅延時間TDminに基づいて、接続段数特定部15で、スイッチングハブ接続段数nを特定するようにしたものである。
[Second Embodiment]
Next, the switching hub connection stage
通信遅延時間TDは、各スイッチングハブの動作状態により、僅かではあるが変動する。この変動は、スイッチングハブでのメッセージ転送処理が遅れる方向へ変動し、早まる方向へは変動しない。このため、通信遅延時間TDのうち、最も小さいものを選択すれば、各スイッチングハブにおける変動のない通信遅延時間TDを得ることができる。 The communication delay time TD varies slightly depending on the operating state of each switching hub. This fluctuation fluctuates in a direction in which the message transfer process in the switching hub is delayed, and does not fluctuate in a direction that advances. For this reason, if the smallest one of the communication delay times TD is selected, a communication delay time TD without fluctuation in each switching hub can be obtained.
[第2の実施の形態の動作]
次に、図5を参照して、本実施の形態にかかるスイッチングハブ接続段数検出装置10の動作について説明する。図5は、第2の実施の形態にかかるスイッチングハブ接続段数検出処理を示すフローチャートである。
[Operation of Second Embodiment]
Next, the operation of the switching hub connection stage
まず、スイッチングハブ接続段数検出装置10の所要時間計時部13は、通信I/F部11から通信経路Lへ、リクエストメッセージを送信し(ステップ200)、これに応じて相手装置20から返信されたレスポンスメッセージを受信待機する(ステップ201)。
ここで、レスポンスメッセージを受信した場合(ステップ201:YES)、所要時間計時部13は、リクエストメッセージを送信した時刻T1と、レスポンスメッセージを受信した時刻T2とから、所要時間TA(=T2−T1)を計算する(ステップ202)。
First, the required
Here, when the response message is received (step 201: YES), the required
続いて、通信遅延時間計算部14は、所要時間TAから、予め記憶部12に設定されている相手装置20でのメッセージ返信処理時間TBを減算することにより、スイッチングハブH1〜Hnでの通信遅延時間TD(=TA−TB)を計算する(ステップ203)。
一方、所要時間計時部13は、レスポンスメッセージの受信待機中、リクエストメッセージの受信タイムアウトを監視しており(ステップ204)、リクエストメッセージの送信から規定時間内に、レスポンスメッセージを受信できず、受信タイムアウトとなった場合(ステップ204:YES)、通信遅延時間計算部14は、通信遅延時間TDとして予め設定されている最大値を設定する(ステップ205)。
Subsequently, the communication delay
On the other hand, the required
続いて、通信遅延時間計算部14は、得られた通信遅延時間TDと、記憶部12に保持している通信遅延時間TDの最小値TDminとを比較し(ステップ206)、通信遅延時間TDが最小値TDminより小さい場合(ステップ206:YES)、通信遅延時間TDで最小値TDminを更新する(ステップ207)。
Subsequently, the communication delay
この後、通信遅延時間計算部14は、通信遅延時間を規定回数だけ繰り替えし計算したか確認し(ステップ208)、規定回数に達していない場合には(ステップ208:NO)、ステップ200へ戻る。
一方、規定回数に達している場合(ステップ208:YES)、接続段数特定部15は、通信遅延時間TDと予め記憶部12に設定されているスイッチングハブでのメッセージ転送処理時間THとを比較することにより、スイッチングハブH1〜Hnの接続段数nを特定し(ステップ209)、一連の処理を終了する。
Thereafter, the communication delay
On the other hand, when the specified number of times has been reached (step 208: YES), the connection stage
[第2の実施の形態の効果]
このように、本実施の形態は、所要時間計時部13で、メッセージの往復を複数回実行することにより、複数の所要時間TAを計時し、通信遅延時間計算部14で、所要時間TAごとに計算した通信遅延時間TDのうちから最小の通信遅延時間TDminを選択し、接続段数特定部15で、最小通信遅延時間TDminに基づいてスイッチングハブ接続段数nを特定するようにしたので、極めて誤差の少ない通信遅延時間TDminを計算することができ、より正確にスイッチングハブ接続段数nを特定することが可能となる。
[Effect of the second embodiment]
As described above, in the present embodiment, the required
[第3の実施の形態]
次に、本発明の第3の実施の形態にかかるスイッチングハブ接続段数検出装置10について説明する。本実施の形態では、接続段数特定部15で、メッセージ転送処理時間THをメッセージの長さに基づいて補正し、補正後のメッセージ転送処理時間TH’に基づいて、スイッチングハブの接続段数を特定するようにしたものである。
[Third Embodiment]
Next, a switching hub connection stage
スイッチングハブにおけるメッセージの転送に要するメッセージ転送処理時間THは、メッセージの長さ、すなわちデータ量に応じて変化する。したがって、予めメッセージ長とメッセージ転送処理時間THとの対応関係を実測あるいは計算により、例えば1500バイト長などの規定メッセージ長に対する補正値を導出して記憶部12へ設定しておき、通信遅延時間計算部14で、この対応関係に基づいて、メッセージの長さに対応した補正値で補正したメッセージ転送処理時間TH’を用いてスイッチングハブの接続段数を特定する。
The message transfer processing time TH required for message transfer in the switching hub varies depending on the message length, that is, the data amount. Therefore, a correspondence value between the message length and the message transfer processing time TH is calculated in advance by calculating or calculating a correction value for a specified message length such as a 1500-byte length in the
この場合、リクエストメッセージとレスポンスメッセージとの長さが異なる場合には、それぞれメッセージ長に応じて、片道分のメッセージ転送処理時間THを補正し、これらメッセージ転送処理時間THの合計を、スイッチングハブ接続段数を特定する際のしきい値として用いればよい。 In this case, when the lengths of the request message and the response message are different, the message transfer processing time TH for one way is corrected according to the message length, and the total of these message transfer processing times TH is connected to the switching hub. What is necessary is just to use as a threshold value at the time of specifying a stage number.
[第3の実施の形態の効果]
このように、本実施の形態では、接続段数特定ステップは、メッセージ返信処理時間をメッセージの長さに基づいて補正し、補正後のメッセージ返信処理時間に基づいて、スイッチングハブの接続段数を特定するようにしたので、極めて正確にスイッチングハブの接続段数を特定することができる。
[Effect of the third embodiment]
Thus, in the present embodiment, the connection stage number specifying step corrects the message reply processing time based on the message length, and specifies the connection stage number of the switching hub based on the corrected message reply processing time. Since it did in this way, the number of connection stages of a switching hub can be specified very accurately.
[実施の形態の拡張]
以上、実施形態を参照して本発明を説明したが、本発明は上記実施形態に限定されるものではない。本発明の構成や詳細には、本発明のスコープ内で当業者が理解しうる様々な変更をすることができる。また、各実施形態については、矛盾しない範囲で任意に組み合わせて実施することができる。
[Extended embodiment]
The present invention has been described above with reference to the embodiments, but the present invention is not limited to the above embodiments. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention. In addition, each embodiment can be implemented in any combination within a consistent range.
10…スイッチングハブ接続段数検出装置、11…通信I/F部、12…記憶部、13…所要時間計時部、14…通信遅延時間計算部、15…接続段数特定部、20…相手装置、H1〜Hn…スイッチングハブ、N1,N2…ノード、L…通信経路、TA…所要時間、TB…メッセージ返信処理時間、TD…通信遅延時間、TH…メッセージ転送処理時間。
DESCRIPTION OF
Claims (4)
前記第2の端末での前記メッセージの受信から返信までに要するメッセージ返信処理時間を、前記所要時間から減算することにより、前記通信経路に関する通信遅延時間を計算する通信遅延時間計算ステップと、
予め設定されている通信遅延時間の範囲とハブ接続段数との対応関係に基づいて、前記通信遅延時間に対応する、前記通信経路を構成する前記ハブの接続段数を特定する接続段数特定ステップと
を備えることを特徴とするハブ接続段数検出方法。 By reciprocating a message between a first terminal connected to one end of a communication path in which a plurality of hubs are connected in multiple stages and a second terminal connected to the other end of the communication path, A required time measuring step of measuring a required time from transmission to reception of the message in the first terminal;
A communication delay time calculating step of calculating a communication delay time related to the communication path by subtracting a message reply processing time required from the reception of the message to the reply at the second terminal from the required time;
A connection stage number specifying step for specifying the connection stage number of the hub constituting the communication path , corresponding to the communication delay time, based on a correspondence relationship between a preset communication delay time range and the hub connection stage number ; A hub connection stage number detection method comprising:
前記所要時間計時ステップは、前記メッセージの往復を複数回実行することにより、複数の所要時間を計時し、
前記通信遅延時間計算ステップは、前記所要時間ごとに計算した通信遅延時間のうちから最小の通信遅延時間を選択し、
前記接続段数特定ステップは、前記通信遅延時間に基づいて、前記ハブ接続段数を特定する
ことを特徴とするハブ接続段数検出方法。 In the hub stage number detection method according to claim 1,
The required time counting step measures a plurality of required times by executing a round trip of the message a plurality of times,
The communication delay time calculating step selects the minimum communication delay time from the communication delay times calculated for each required time,
The hub connection stage number detecting method, wherein the connection stage number specifying step specifies the hub connection stage number based on the communication delay time.
前記接続段数特定ステップは、前記対応関係に代えて、前記ハブにおける前記メッセージの転送に要するメッセージ転送処理時間を2倍した値で、前記通信遅延時間を除算して得られた整数部に基づいて、前記接続段数を特定することを特徴とするハブ接続段数検出方法。 In the hub stage number detection method according to claim 1 or 2,
The connection stage number specifying step is based on an integer part obtained by dividing the communication delay time by a value obtained by doubling the message transfer processing time required for transferring the message in the hub instead of the correspondence relationship. A method for detecting the number of connected hub stages, wherein the number of connected stages is specified .
前記相手装置との間でメッセージを往復させることにより、当該メッセージの送信から受信までの所要時間を計時する所要時間計時部と、
前記相手装置での前記メッセージの受信から返信までに要するメッセージ返信処理時間を、前記所要時間から減算することにより、前記通信経路に関する通信遅延時間を計算する通信遅延時間計算部と、
予め設定されている通信遅延時間の範囲とハブ接続段数との対応関係に基づいて、前記通信遅延時間に対応する、前記通信経路を構成する前記ハブの接続段数を特定する接続段数特定部と
を備えることを特徴とするハブ接続段数検出装置。 Hub connection stage number detection for detecting the number of hub connection stages connected to one end of a communication path in which a plurality of hubs are connected in multiple stages and connected to the other device connected to the other end of the communication path. A device,
A required time measuring unit for measuring a required time from transmission to reception of the message by reciprocating the message with the counterpart device;
A communication delay time calculation unit that calculates a communication delay time related to the communication path by subtracting a message reply processing time required from the reception of the message to the reply at the counterpart device from the required time;
A connection stage number specifying unit for specifying the connection stage number of the hub constituting the communication path , corresponding to the communication delay time, based on a correspondence relationship between a preset communication delay time range and the hub connection stage number ; A hub connection stage number detection device comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011155459A JP5703154B2 (en) | 2011-07-14 | 2011-07-14 | Switching hub connection stage detection method and apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011155459A JP5703154B2 (en) | 2011-07-14 | 2011-07-14 | Switching hub connection stage detection method and apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2013021631A JP2013021631A (en) | 2013-01-31 |
| JP5703154B2 true JP5703154B2 (en) | 2015-04-15 |
Family
ID=47692592
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2011155459A Active JP5703154B2 (en) | 2011-07-14 | 2011-07-14 | Switching hub connection stage detection method and apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5703154B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6561558B2 (en) * | 2015-04-20 | 2019-08-21 | サクサ株式会社 | Telephone system, wireless telephone terminal, and communication system |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008167382A (en) * | 2007-01-05 | 2008-07-17 | Hitachi Ltd | Network device configuration management system and management method |
-
2011
- 2011-07-14 JP JP2011155459A patent/JP5703154B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2013021631A (en) | 2013-01-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5519683B2 (en) | Transmission device, reception device, transmission / reception system, and transmission / reception method | |
| CN105141542B (en) | Control Algorithm and System of Congestion Window Based on TCP Communication Protocol | |
| KR20130060297A (en) | Communication device and delay detection method | |
| CN105517668A (en) | Method and device for identifying network transmission congestion | |
| US10567400B2 (en) | Attack detection device, attack detection method, and non-transitory computer-readable recording medium | |
| CN102217236A (en) | Method and device for detecting link packet loss rate | |
| EP3226489A1 (en) | Available-band estimation system, available-band estimation method, reception apparatus, and reception apparatus program storage medium | |
| JP2016517232A (en) | Data processing method, coordinator, and node device | |
| CN102271067B (en) | Network detecting method, apparatus and system | |
| CN103428738B (en) | Detect the abnormal method of Remote Radio Unit link and Remote Radio Unit | |
| US20170118107A1 (en) | System and method for optimizing network performance based on profiling | |
| JP5703154B2 (en) | Switching hub connection stage detection method and apparatus | |
| KR101669397B1 (en) | Distance measurement device and distance measurement method | |
| TWI658715B (en) | Communication device, available bandwidth calculation system, available bandwidth calculation method, and program | |
| US11606282B2 (en) | Method and device for detecting network reliability | |
| JP5448679B2 (en) | Wireless base station equipment | |
| CN110659863A (en) | Object monitoring method, apparatus, electronic device, and computer-readable storage medium | |
| CN109997403A (en) | Wireless communication device and program | |
| US10638290B2 (en) | Communication terminal and communication system | |
| US10523469B2 (en) | Relay device and communication system | |
| CN105306135B (en) | Link polling detection method and device | |
| CN114938705B (en) | Communication device, communication device, storage medium and delay time correction method | |
| JP5937955B2 (en) | Packet transfer delay measuring apparatus, method and program | |
| KR101875362B1 (en) | Communication system, communication device and communication method | |
| CN116668338A (en) | Delay detection method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140324 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20141118 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20141201 |
|
| 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: 20150217 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20150223 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5703154 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |