JPH06121002A - Dynamic timeout control method - Google Patents
Dynamic timeout control methodInfo
- Publication number
- JPH06121002A JPH06121002A JP4271327A JP27132792A JPH06121002A JP H06121002 A JPH06121002 A JP H06121002A JP 4271327 A JP4271327 A JP 4271327A JP 27132792 A JP27132792 A JP 27132792A JP H06121002 A JPH06121002 A JP H06121002A
- Authority
- JP
- Japan
- Prior art keywords
- time
- timeout
- message
- response
- transmission
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
- Communication Control (AREA)
Abstract
(57)【要約】
【目的】 メッセージ送信からレスポンス受信までの時
間が正常であるか否かを判定する為のタイムアウト時間
を設定する動的タイムアウト時間制御方式に関し、伝送
時間に対応して動的にタイムアウト時間を設定する。
【構成】 タイムアウト時間設定部3に設定したタイム
アウト時間内にメッセージ送信に対するレスポンスを受
信できない時に、メッセージの再送処理を行う端末装置
1,2間のメッセージ通信に於いて、伝送時間計測部4
を設けて、最初のメッセージ送信からレスポンス受信ま
での時間を計測し、その計測した時間にマージンを加算
してタイムアウト時間の初期値として、タイムアウト時
間設定部3に設定する。メッセージ通信過程に於いて、
このタイムアウト時間の更新設定を行うことができる。
(57) [Summary] [Purpose] A dynamic timeout control method that sets a timeout for determining whether the time from sending a message to receiving a response is normal. Set the timeout time to. [Configuration] In a message communication between terminal devices 1 and 2, which performs a message resending process when a response to a message transmission cannot be received within a timeout time set in a timeout time setting unit 3, a transmission time measuring unit 4
Is provided, the time from the first message transmission to the response reception is measured, and a margin is added to the measured time to set it in the timeout time setting unit 3 as an initial value of the timeout time. In the message communication process,
The update setting of this timeout time can be set.
Description
【0001】[0001]
【産業上の利用分野】本発明は、メッセージ送信からレ
スポンス受信までの時間が正常であるか否かを判定する
タイムアウト時間を、端末装置間の伝送所要時間に対応
して設定する動的タイムアウト時間制御方式に関する。
端末装置間のメッセージ通信に於いて、一方の端末装置
からメッセージを他方の端末装置へ送信した時、受信側
の端末装置はメッセージを受信したことによりレスポン
スを返送する。従って、送信側の端末装置はレスポンス
を受信することにより、一つのメッセージの伝送終了と
判定することができる。この場合、メッセージ送信から
の時間がタイムアウト時間を超えると、受信側の端末装
置がメッセージを受信していないと判断して、メッセー
ジの再送処理を行うものであるから、この再送処理を繰
り返さないように、最適なタイムアウト時間の設定が必
要となる。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dynamic time-out time for setting a time-out time for determining whether a time from a message transmission to a response reception is normal in accordance with a time required for transmission between terminal devices. Regarding control method.
In message communication between terminal devices, when a message is transmitted from one terminal device to another terminal device, the receiving terminal device returns a response because the message is received. Therefore, the terminal device on the transmitting side can determine that the transmission of one message has ended by receiving the response. In this case, when the time from the message transmission exceeds the timeout time, the terminal device on the receiving side judges that the message is not received and performs the message resend process, so do not repeat this resend process. Therefore, it is necessary to set the optimum timeout time.
【0002】[0002]
【従来の技術】端末装置間でメッセージ通信を行う場
合、交換機等の中継装置を介して端末装置間が接続され
る場合が一般的である。その為に、端末装置間を接続し
てメッセージ通信を行う毎に、端末装置間に接続される
交換機等の中継装置の個数が相違したり、伝送経路が相
違することになり、それによる伝送遅延時間が相違する
ことになる。2. Description of the Related Art When message communication is performed between terminal devices, it is common that the terminal devices are connected via a relay device such as an exchange. Therefore, each time the terminal devices are connected and message communication is performed, the number of relay devices such as exchanges connected between the terminal devices may be different or the transmission route may be different, resulting in a transmission delay. The time will be different.
【0003】図7は中継通信システムの説明図であり、
端末装置71,72間に、交換機等の中継装置73−1
〜73−nが接続され、端末装置71からメッセージを
送信し、端末装置72がそのメッセージを受信すると、
レスポンスを端末装置71に対して送信する。このレス
ポンスを端末装置71が受信すると、一つのメッセージ
の伝送終了と判定し、次のメッセージを送信する。メッ
セージ及びレスポンスはパケット形式で伝送され、中継
装置73−1〜73−nに於ける処理遅延時間Trが生
じる。又端末装置72に於いては、メッセージ受信から
レスポンス送信までに要する処理時間Ttを必要とする
ことになる。FIG. 7 is an explanatory diagram of a relay communication system.
A relay device 73-1 such as an exchange is provided between the terminal devices 71 and 72.
73-n are connected, a message is transmitted from the terminal device 71, and the terminal device 72 receives the message,
The response is transmitted to the terminal device 71. When the terminal device 71 receives this response, it determines that the transmission of one message has ended, and transmits the next message. The message and the response are transmitted in the packet format, which causes a processing delay time Tr in the relay devices 73-1 to 73-n. Further, the terminal device 72 requires the processing time Tt required from the message reception to the response transmission.
【0004】従って、端末装置71がメッセージを送信
してからレスポンスを受信するまでに要する時間Td
は、中継装置73−1〜73−nの個数をnとすると、 Td=2×n×Tr+Tt …(1) となる。この時間Td以内にレスポンスを受信できない
時は、メッセージが喪失したものとして再送処理を行う
ものである。Therefore, the time Td required for the terminal device 71 to send a message and receive a response.
When the number of relay devices 73-1 to 73-n is n, Td = 2 × n × Tr + Tt (1) When the response cannot be received within this time Td, it is assumed that the message has been lost and the retransmission processing is performed.
【0005】[0005]
【発明が解決しようとする課題】前述のように、端末装
置71は、(1)式の時間Td以内にレスポンスを受信
できない時に再送処理を行うものであり、この時間Td
を求める為には中継装置73−1〜73−nの個数nを
知る必要がある。ところが、端末装置71,72間を接
続する中継装置を含む交換網に於いては、途中の輻輳等
により経路が変更される場合が多いものである。即ち、
端末装置71,72間に接続される中継装置の個数nは
一定とは限らないものである。そこで、交換網側から端
末装置71,72間に接続される中継装置の個数nを通
知することが考えられるが、交換網側にはこのような機
能は備えられていない。As described above, the terminal device 71 performs the retransmission process when the response cannot be received within the time Td of the equation (1).
It is necessary to know the number n of the relay devices 73-1 to 73-n in order to obtain However, in a switching network including a relay device that connects the terminal devices 71 and 72, the route is often changed due to congestion or the like on the way. That is,
The number n of relay devices connected between the terminal devices 71 and 72 is not always constant. Therefore, it is possible to notify the number n of relay devices connected between the terminal devices 71 and 72 from the switching network side, but the switching network side does not have such a function.
【0006】その為に、端末装置71,72は、予想さ
れる最大中継装置接続個数から求まる時間Tdをタイム
アウト時間に設定し、メッセージ送信からこのタイムア
ウト時間以内にレスポンスを受信できない時、再送処理
を行うように構成している。しかし、中継装置の接続個
数が少ない場合には、メッセージ喪失から再送処理まで
の時間が長くなり、全体の伝送効率が低下することにな
る。反対に、タイムアウト時間を短くすると、中継装置
の接続個数が多い時に、再送処理回数が増加する欠点が
生じる。又近距離の端末装置に対するタイムアウト時間
と、遠距離の端末装置に対するタイムアウト時間とが大
きく相違することから、多数の端末装置対応に、予想さ
れる最大中継装置接続個数を基にタイムアウト時間を設
定することが考えられるが、煩雑な処理となる欠点があ
る。本発明は、実際のメッセージ送信からレスポンス受
信までの時間を計測して、最適なタイムアウト時間を設
定することを目的とする。Therefore, the terminal devices 71 and 72 set the time Td obtained from the expected maximum number of relay device connections to the timeout time, and when the response cannot be received within this timeout time from the message transmission, the retransmission process is performed. Is configured to do. However, when the number of relay devices connected is small, the time from message loss to retransmission processing becomes long, and the overall transmission efficiency decreases. On the contrary, if the timeout time is shortened, the number of times of retransmission processing increases when the number of relay device connections is large. In addition, since the timeout time for a short-distance terminal device and the timeout time for a long-distance terminal device are significantly different, the timeout time is set based on the expected maximum number of relay device connections for a large number of terminal devices. However, there is a drawback that the process becomes complicated. An object of the present invention is to measure the time from the actual message transmission to the response reception and set an optimal timeout time.
【0007】[0007]
【課題を解決するための手段】本発明の動的タイムアウ
ト時間制御方式は、端末装置1から端末装置2へメッセ
ージを送信し、端末装置2はメッセージ受信によりレス
ポンスを端末装置1へ送信し、端末装置1はこのレスポ
ンスを受信することにより一つのメッセージ伝送の終了
と判定し、レスポンスがタイムアウト時間設定部3に設
定したタイムアウト時間内に受信できない時は、メッセ
ージの再送処理を行うメッセージ通信方式に於いて、メ
ッセージ送信からレスポンス受信までの時間を計測する
伝送時間計測部4を設け、この伝送時間計測部4により
計測された最初のメッセージ送信からレスポンス受信ま
での時間を計測し、この時間にマージンを加算した時間
をタイムアウト時間設定部3にタイムアウト時間の初期
値として設定する。SUMMARY OF THE INVENTION The dynamic time-out of the present invention.
The time control method is a message from terminal device 1 to terminal device 2.
Message is sent and the terminal device 2 receives the message
The response is transmitted to the terminal device 1, and the terminal device 1
End of one message transmission by receiving
And the response is set in the timeout time setting unit 3.
If you cannot receive the message within the specified timeout period,
In the message communication method for resending messages,
Measure the time from sending a message to receiving a response
The transmission time measurement unit 4 is provided, and the transmission time measurement unit 4
From sending the first measured message to receiving a response.
Time measured at and the margin added to this time
To the timeout time setting section 3
Set as a value.
【0008】又タイムアウト時間設定部3にタイムアウ
ト時間を初期値として設定した後、メッセージ送信毎
に、メッセージ送信からレスポンス受信までの時間を伝
送時間計測部4により計測し、その計測結果に基づい
て、レスポンスがタイムアウト時間設定部3に設定され
たタイムアウト時間内に受信できたか否かを判定し、タ
イムアウト時間内に受信できた時は、このタイムアウト
時間が短くなるように更新設定し、タイムアウト時間内
に受信できない時は、タイムアウト時間が長くなるよう
に更新設定する。After setting the timeout time as an initial value in the timeout time setting unit 3, the transmission time measuring unit 4 measures the time from the message transmission to the response reception for each message transmission, and based on the measurement result, It is determined whether or not the response can be received within the timeout time set in the timeout time setting unit 3. When the response can be received within the timeout time, update setting is performed so that the timeout time is shortened, and within the timeout time. If it cannot be received, update setting is made so that the timeout time becomes longer.
【0009】又タイムアウト時間設定部3にタイムアウ
ト時間を初期値として設定した後、メッセージ送信毎
に、メッセージ送信からレスポンス受信までの時間を伝
送時間計測部4により計測し、その計測結果の所定回数
の平均値を求め、この平均値にマージンを加算した時間
を、新たなタイムアウト時間としてタイムアウト時間設
定部3に設定する。After setting the timeout time as an initial value in the timeout time setting unit 3, the transmission time measuring unit 4 measures the time from the message transmission to the response reception every time a message is transmitted, and the measured result is counted a predetermined number of times. An average value is obtained, and the time obtained by adding a margin to this average value is set in the timeout time setting unit 3 as a new timeout time.
【0010】又タイムアウト時間設定部3に設定された
タイムアウト時間内にレスポンスを受信できない時に、
そのタイムアウト時間に係数を乗算又は一定数を加算し
た時間を、新たなタイムアウト時間としてタイムアウト
時間設定部3に設定する。When a response cannot be received within the time-out time set in the time-out time setting unit 3,
The time obtained by multiplying the timeout time by a coefficient or adding a fixed number is set in the timeout time setting unit 3 as a new timeout time.
【0011】[0011]
【作用】端末装置1から端末装置2に対して最初のメッ
セージを送信し、そのメッセージに対する端末装置2か
らのレスポンスを受信するまでの時間を、伝送時間計測
部4により計測し、その計測時間にマージンを加算して
タイムアウト時間とし、これをタイムアウト時間設定部
3に初期値として設定する。従って、端末装置1,2間
の中継装置の接続個数が異なる場合が生じても、タイム
アウト時間をその接続個数に対応した値として設定する
ことができる。The time required until the first message is transmitted from the terminal device 1 to the terminal device 2 and the response from the terminal device 2 to the message is received is measured by the transmission time measuring unit 4, and the measured time is set to the measured time. A margin is added to obtain a timeout time, which is set in the timeout time setting unit 3 as an initial value. Therefore, even when the number of relay devices connected between the terminal devices 1 and 2 may differ, the timeout time can be set as a value corresponding to the number of connections.
【0012】又タイムアウト時間設定部3に初期値とし
てのタイムアウト時間を設定した後に、メッセージ送信
毎にレスポンス受信までの時間を伝送時間計測部4によ
り計測し、初期タイムアウト時間内にレスポンスが受信
できた時は、初期値が大き過ぎた場合に相当し、反対に
初期タイムアウト時間内にレスポンスが受信できない時
は、初期値が小さ過ぎた場合に相当するから、タイムア
ウト時間を更新設定し、タイムアウト時間の最適化を図
る。After setting the timeout time as the initial value in the timeout time setting unit 3, the time until the response is received is measured by the transmission time measuring unit 4 for each message transmission, and the response can be received within the initial timeout time. When the initial value is too large, on the contrary, when the response cannot be received within the initial timeout time, it means that the initial value is too small. Optimize.
【0013】又伝送時間計測部4によるメッセージ送信
からレスポンス受信までの時間の平均値を求めて、この
平均値の時間を新たなタイムアウト時間とする。それに
より、メッセージ送信毎の経路変更等に伴う時間変動を
平均化して、タイムアウト時間の最適化を図ることがで
きる。Further, the average value of the time from the message transmission to the response reception by the transmission time measuring unit 4 is obtained, and the time of this average value is set as a new timeout time. As a result, it is possible to optimize the timeout time by averaging the time variation due to the route change etc. for each message transmission.
【0014】又タイムアウト時間内にレスポンスを受信
できない時に再送処理を行うと、先のメッセージ送信か
らそれに対するレスポンス受信までの時間を計測できな
いことになる。そこで、タイムアウト時間設定部3に設
定されたタイムアウト時間に、所定の係数を乗算し、又
は一定数を加算して、先のタイムアウト時間より長い新
たなタイムアウト時間を求めて、タイムアウト時間設定
部3に設定する。Further, if the resend processing is performed when the response cannot be received within the timeout time, the time from the previous message transmission to the response reception cannot be measured. Therefore, the timeout time set in the timeout time setting unit 3 is multiplied by a predetermined coefficient or a fixed number is added to obtain a new timeout time longer than the previous timeout time, and the timeout time setting unit 3 is determined. Set.
【0015】[0015]
【実施例】図2は本発明の一実施例の説明図であり、端
末装置の要部を示し、11は制御部、12はメッセージ
送信部、13はメッセージ受信部、14はタイマ、15
はタイマ制御部、16はマージン加算部、17はレジス
タ、18はタイムアウト検出部、19は再送処理部であ
る。レジスタ17はタイムアウト時間設定部3に相当
し、又タイマ14とタイマ制御部15とは伝送時間計測
部4に相当する。FIG. 2 is an explanatory view of an embodiment of the present invention, showing a main part of a terminal device, 11 is a control unit, 12 is a message transmitting unit, 13 is a message receiving unit, 14 is a timer, 15
Is a timer control unit, 16 is a margin addition unit, 17 is a register, 18 is a timeout detection unit, and 19 is a retransmission processing unit. The register 17 corresponds to the timeout time setting unit 3, and the timer 14 and the timer control unit 15 correspond to the transmission time measuring unit 4.
【0016】タイマ制御部15は、通信開始によりタイ
マ14をクリアし、メッセージ送信部12に加えるメッ
セージの送信指示によりタイマ14をスタートさせ、メ
ッセージ受信部13からのレスポンスの受信通知により
タイマ14をストップさせる制御を行うものである。従
って、タイマ14の値は、メッセージ送信からレスポン
ス受信までの計測時間を示すものとなる。The timer control unit 15 clears the timer 14 by starting communication, starts the timer 14 in response to a message transmission instruction to be added to the message transmitting unit 12, and stops the timer 14 by receiving a response reception notification from the message receiving unit 13. The control is performed. Therefore, the value of the timer 14 indicates the measurement time from the message transmission to the response reception.
【0017】マージン加算部16は、タイマ値に対して
マージンを加算してタイムアウト時間とし、レジスタ1
7に設定するものであり、マージンは、予め定めた一定
時間とするか、或いはタイマ値の例えば20%とするこ
とができる。タイムアウト検出部18は、タイマ値とレ
ジスタ17に設定されたタイムアウト時間とを比較し、
タイムアウト時間内にレスポンスを受信できない時に、
メッセージの喪失と判定して、再送処理部19を起動
し、メッセージの再送処理を行わせる。The margin adding unit 16 adds a margin to the timer value to obtain a time-out time, and the register 1
The margin can be set to a predetermined fixed time or 20% of the timer value, for example. The timeout detector 18 compares the timer value with the timeout time set in the register 17,
When a response cannot be received within the timeout period,
When it is determined that the message has been lost, the resending processing unit 19 is activated and the resending process of the message is performed.
【0018】図3は本発明の一実施例のフローチャート
であり、通信開始と通信中とを、ステップ(a1)〜
(a5)と(b1)〜(b5)とにより示し、通信開始
により前述のようにタイマ制御部15によりタイマ14
をクリアする(a1)。そして、メッセージ送信指示に
よりタイマ14をスタートさせる(a2)。このメッセ
ージ送信に対するレスポンス受信か否かを判定し(a
3)、レスポンス受信により、即ち、メッセージ受信部
13からの受信通知により、タイマ制御部15はタイマ
14をストップさせる(a4)。このタイマ14のタイ
マ値を読出して、マージン加算部16に於いてマージン
を加算し、レジスタ17へ書込む(a5)。即ち、タイ
ムアウト時間の初期値を設定したことになる。FIG. 3 is a flow chart of an embodiment of the present invention, in which communication start and communication are performed from step (a1) to step (a1).
(A5) and (b1) to (b5), the timer controller 15 controls the timer 14 as described above when communication is started.
Is cleared (a1). Then, the timer 14 is started by the message transmission instruction (a2). It is determined whether a response to this message transmission is received (a
3) Upon reception of a response, that is, upon receipt of a notification from the message receiving unit 13, the timer control unit 15 stops the timer 14 (a4). The timer value of the timer 14 is read, the margin is added by the margin adding unit 16, and the result is written into the register 17 (a5). That is, the initial value of the timeout time is set.
【0019】レジスタ17にタイムアウト時間を設定し
た後、メッセージ送信指示前にタイマ制御部15はタイ
マ14をクリアし(b1)、メッセージ送信指示により
タイマ14をスタートさせ(b2)、レスポンス受信か
否かを判定し(b3)、タイムアウト時間内にレスポン
スを受信すると正常終了とする。又レスポンスを受信で
きない時は、タイマ値ttとレジスタ17に設定したタ
イムアウト時間trとについて(b4)、tt<trか
否かを判定する(b5)。tt<trの場合は、タイム
アウト時間tr内であるから、ステップ(b3)に移行
する。又tt≧trの場合は、レスポンスをタイムアウ
ト時間tr内に受信できない場合であるから、再送処理
部19を起動して、メッセージ再送処理を行う。そし
て、ステップ(b1)に移行する。After setting the timeout time in the register 17 and before sending the message, the timer control unit 15 clears the timer 14 (b1), starts the timer 14 according to the message sending instruction (b2), and determines whether or not a response is received. Is judged (b3), and if a response is received within the timeout time, the processing ends normally. When the response cannot be received, the timer value tt and the timeout time tr set in the register 17 (b4) are checked to see if tt <tr (b5). If tt <tr, the time is within the timeout time tr, and the process proceeds to step (b3). If tt ≧ tr, it means that the response cannot be received within the timeout time tr. Therefore, the retransmission processing unit 19 is activated to perform the message retransmission processing. Then, the process proceeds to step (b1).
【0020】従って、メッセージ送信からレスポンス受
信までの時間を計測し、マージンを加算してタイムアウ
ト時間とし、このタイムアウト時間をレジスタ17に設
定して、それ以降のメッセージ送信に対するレスポンス
受信を監視し、メッセージ喪失判定により再送処理を行
うことができる。その場合のタイムアウト時間は、相手
端末装置との間が接続されて、メッセージ送信からレス
ポンス受信までの時間を計測して設定されるから、中継
装置の接続個数が通信毎に相違しても、実際の伝送時間
を基にタイムアウト時間を設定するから、中継装置の接
続個数を考慮する必要がないことになる。Therefore, the time from the message transmission to the response reception is measured, the margin is added to make the timeout time, and this timeout time is set in the register 17, and the response reception for the subsequent message transmission is monitored and the message is received. Retransmission processing can be performed by the loss judgment. In that case, the timeout time is set by measuring the time from message transmission to response reception when the other terminal device is connected, so even if the number of relay device connections differs for each communication, it is actually Since the timeout time is set on the basis of the transmission time of, it is not necessary to consider the number of connected relay devices.
【0021】前述の実施例は、通信開始時に伝送時間を
計測してタイムアウト時間を設定した後、このタイムア
ウト時間を用いてメッセージの喪失判定を行うものであ
るが、このタイムアウト時間を初期値とし、メッセージ
送信毎にタイマ14をスタートさせて、レスポンス受信
までの時間を計測していることになるから、レスポンス
受信がタイムアウト時間内に行われた時は、タイムアウ
ト時間が短くなるようにタイムアウト時間を更新し、又
レスポンスがタイムアウト時間内に受信できない時は、
タイムアウト時間が長くなるようにタイムアウト時間を
更新することにより、メッセージ通信継続過程におい
て、タイムアウト時間の最適化を進めることができる。In the above-described embodiment, the transmission time is measured at the start of communication, the timeout time is set, and then the message loss determination is performed using this timeout time. Since the timer 14 is started for each message transmission and the time until the response is received is measured, when the response is received within the timeout time, the timeout time is updated so that the timeout time becomes shorter. If the response cannot be received within the timeout time,
By updating the timeout time so that the timeout time becomes longer, the optimization of the timeout time can be promoted in the process of continuing the message communication.
【0022】図4は本発明の他の実施例の説明図であ
り、21は端末装置の制御部、22はメッセージ送信
部、23はメッセージ受信部、24はタイマ、25はタ
イマ制御部、26は加算器、27はレジスタ、28はタ
イムアウト検出部、29は再送処理部、31は加算器、
32は除算器(÷m)、33−1〜33−mはフリップ
フロップFF1〜FFm、34は乗算器、35は加算器
を示し、フリップフロップ33−1〜33−mと加算器
31と除算器32とにより、m回の計測時間の平均値を
求めるものである。従って、平均値算出の他の公知の構
成又はプロセッサの演算機能を用いることができる。FIG. 4 is an explanatory view of another embodiment of the present invention, in which 21 is a control unit of the terminal device, 22 is a message transmission unit, 23 is a message reception unit, 24 is a timer, 25 is a timer control unit, 26. Is an adder, 27 is a register, 28 is a timeout detection unit, 29 is a retransmission processing unit, 31 is an adder,
32 is a divider (÷ m), 33-1 to 33-m are flip-flops FF1 to FFm, 34 is a multiplier, 35 is an adder, and the flip-flops 33-1 to 33-m, the adder 31 and the divider 31 With the instrument 32, the average value of the measurement times of m times is obtained. Therefore, another known configuration for calculating the average value or the arithmetic function of the processor can be used.
【0023】又タイマ制御部25は、前述の実施例と同
様に、タイマ24のクリア,スタート,ストップを制御
して、メッセージ送信部22に対する送信指示によりタ
イマ24をスタートさせ、メッセージ受信部23からの
レスポンスの受信通知によりタイマ24をストップさせ
て、メッセージ送信からレスポンス受信までの時間を計
測するものである。Further, the timer control unit 25 controls the clearing, starting and stopping of the timer 24, and starts the timer 24 in response to a transmission instruction to the message transmitting unit 22 in the same manner as in the above-mentioned embodiment, and the message receiving unit 23 The timer 24 is stopped by the reception notification of the response, and the time from the message transmission to the response reception is measured.
【0024】又通信開始による最初のメッセージ送信か
らレスポンス受信までの計測時間に、マージンを加算し
てタイムアウト時間の初期値とし、これをレジスタ27
に設定する。それ以降のメッセージ送信毎のレスポンス
受信までの時間をタイマ24により計測し、フリップフ
ロップ33−1〜33−mからなるシフトレジスタに、
計測時間のタイマ値を入力し、シフトレジスタの各段の
出力を加算器31に加えて加算し、除算器32により除
算することにより、m回の平均値を求めることができ
る。Also, a margin is added to the measurement time from the first message transmission to the response reception at the start of communication to make the initial value of the timeout time, and this is used as the register 27.
Set to. The time until the reception of a response for each subsequent message transmission is measured by the timer 24, and is stored in the shift register including the flip-flops 33-1 to 33-m.
By inputting the timer value of the measurement time, adding the outputs of the respective stages of the shift register to the adder 31, adding them, and dividing by the divider 32, the average value of m times can be obtained.
【0025】この平均値に対して加算器26によりマー
ジンを加算して、新たなタイムアウト時間としてレジス
タ27に設定する。それにより、中継装置の輻輳に遭遇
して一時的に伝送時間が長くなるような変動が生じて
も、タイムアウト時間の更新設定を最適化することがで
きる。A margin is added to this average value by the adder 26, and a new timeout time is set in the register 27. Accordingly, even if the congestion of the relay device is encountered and a change that temporarily lengthens the transmission time occurs, the update setting of the timeout time can be optimized.
【0026】図5は本発明の他の実施例のフローチャー
トであり、通信開始によりタイマ制御部25によりタイ
マ24をクリアし(c1)、メッセージ送信部22に対
するメッセージの送信指示によりタイマ24をスタート
させ(c2)、メッセージ受信部23によりレスポンス
を受信したか否かを判定し(c3)、レスポンス受信に
よる受信通知によってタイマ24をストップさせる(c
4)。そして、タイマ値を読出し、フリップフロップF
F1〜FFmへ書込み、平均値計算,マージン加算を行
って、レジスタ27へタイムアウト時間を書込む(c
5)。これは、m回の平均値にマージンを加算した値を
タイムアウト時間の初期値とする場合を示すが、前述の
実施例のように、1回目の伝送時間計測結果を基にマー
ジンを加算してタイムアウト時間の初期値とすることが
できる。FIG. 5 is a flowchart of another embodiment of the present invention, in which the timer control unit 25 clears the timer 24 at the start of communication (c1), and the timer 24 is started by a message transmission instruction to the message transmission unit 22. (C2), the message receiving unit 23 determines whether or not a response is received (c3), and the timer 24 is stopped by the reception notification by the response reception (c).
4). Then, the timer value is read and the flip-flop F
Write to F1 to FFm, calculate average value, add margin, and write timeout time to register 27 (c
5). This shows the case where the value obtained by adding the margin to the average value of m times is used as the initial value of the timeout time. However, as in the above-described embodiment, the margin is added based on the result of the first transmission time measurement. It can be the initial value of the timeout time.
【0027】図6は通信中の本発明の他の実施例のフロ
ーチャートであり、メッセージ送信前にタイマ24をク
リアし(d1)、メッセージ送信指示によりタイマ24
をスタートさせ(d2)、レスポンスを受信したか否か
を判定し(d3)、レスポンスを受信した時は、フリッ
プフロップFF1〜FFmの内容を順次シフトさせ、初
段のフリップフロップFFmにタイマ24により計測し
たタイマ値をセットし、平均値計算,マージン加算を行
って、新たなタイムアウト時間を求めてレジスタ27に
書込む(d4)。FIG. 6 is a flowchart of another embodiment of the present invention during communication, in which the timer 24 is cleared (d1) before message transmission and the timer 24 is instructed by a message transmission instruction.
Is started (d2), it is determined whether or not a response is received (d3), and when the response is received, the contents of the flip-flops FF1 to FFm are sequentially shifted, and the first stage flip-flop FFm is measured by the timer 24. The timer value is set, the average value is calculated, the margin is added, and a new timeout time is calculated and written in the register 27 (d4).
【0028】又レスポンスを受信できない時は、タイマ
値をtt、レジスタ値をtrとして(d5)、tt<t
rか否かを判定し(d6)、tt<trの場合はタイム
アウト時間内であるから、ステップ(d3)に移行す
る。又tt<trでない場合、即ち、タイムアウト時間
内にレスポンスを受信できない時は、メッセージ喪失と
判定して再送処理部29を起動し、メッセージの再送処
理を行い、又tt×αを新たなtr又はtt+βを新た
なtrとしてレジスタ27に設定する(d7)。即ち、
タイムアウト検出が行われた時のタイマ値ttは、レジ
スタ27に設定されたタイムアウト時間(tr)を示す
ものであるから、タイムアウト時間が長くなるように、
これに係数α(>1)を乗算器34により乗算して、新
たなレジスタ値tr(タイムアウト時間)としてレジス
タ27に設定する。或いは、一定値βをタイマ値tt
(=レジスタ値tr)に加算器35により加算して、新
たなレジスタ値tr(タイムアウト時間)としてレジス
タ27に設定する。When the response cannot be received, the timer value is set to tt, the register value is set to tr (d5), and tt <t.
It is determined whether or not r (d6). If tt <tr, it means that it is within the time-out period. Therefore, the process proceeds to step (d3). When tt <tr is not satisfied, that is, when the response cannot be received within the timeout time, it is determined that the message has been lost, the retransmission processing unit 29 is activated, the message is retransmitted, and tt × α is set to a new tr or tt + β is set as a new tr in the register 27 (d7). That is,
The timer value tt when the timeout is detected indicates the timeout time (tr) set in the register 27.
This is multiplied by a coefficient α (> 1) by the multiplier 34 and set in the register 27 as a new register value tr (timeout time). Alternatively, the constant value β is set to the timer value tt
(= Register value tr) is added by the adder 35 and set in the register 27 as a new register value tr (timeout time).
【0029】従って、メッセージ通信中に、途中の中継
装置に於ける輻輳等に遭遇して、伝送時間が変動して
も、それに対応したタイムアウト時間を設定することが
できるから、無駄に長いタイムアウト時間を設定するこ
とがなくなり、メッセージの喪失を早期に検出して再送
処理を行うことができる。Therefore, even if congestion occurs in the relay device on the way during message communication and the transmission time fluctuates, the timeout time corresponding to it can be set. Is no longer set, and message loss can be detected early and retransmission processing can be performed.
【0030】[0030]
【発明の効果】以上説明したように、本発明は、端末装
置1からメッセージを端末装置2に送信し、端末装置2
からのレスポンスを受信して、メッセージ送信からレス
ポンス受信までの時間を伝送時間計測部4により計測
し、この計測結果にマージンを加算してタイムアウト時
間としてタイムアウト時間設定部3に設定するもので、
端末装置1,2間の接続経路が異なる場合でも、その接
続経路に対応した伝送時間を計測し、その結果に基づい
た最適なタイムアウト時間を自動的に設定できる利点が
ある。従って、メッセージの喪失を早期に検出して再送
処理を行うことができるから、全体としての伝送効率を
向上できる利点がある。As described above, according to the present invention, the message is transmitted from the terminal device 1 to the terminal device 2,
The time from the message transmission to the response reception is measured by the transmission time measuring unit 4, a margin is added to the measurement result, and the result is set as the timeout time in the timeout time setting unit 3.
Even if the connection paths between the terminal devices 1 and 2 are different, there is an advantage that the transmission time corresponding to the connection path can be measured and the optimum timeout time can be automatically set based on the result. Therefore, it is possible to detect the loss of the message at an early stage and perform the retransmission processing, and there is an advantage that the overall transmission efficiency can be improved.
【0031】又最初の伝送時間計測結果に基づいてタイ
ムアウト時間の初期値を設定し、それ以降のメッセージ
送信毎の伝送時間の計測結果に基づいて、タイムアウト
時間の更新設定を行うことにより、途中の中継装置の輻
輳等による伝送時間の変動に対しても、最適なタイムア
ウト時間を設定して、無駄な再送処理を防止できる利点
がある。Further, the initial value of the timeout time is set based on the first measurement result of the transmission time, and the timeout time is updated and set based on the measurement result of the transmission time for each subsequent message transmission. There is an advantage that an optimal time-out period can be set and unnecessary retransmission processing can be prevented even if the transmission time fluctuates due to congestion of the relay device.
【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.
【図2】本発明の一実施例の説明図である。FIG. 2 is an explanatory diagram of an embodiment of the present invention.
【図3】本発明の一実施例のフローチャートである。FIG. 3 is a flowchart of an embodiment of the present invention.
【図4】本発明の他の実施例の説明図である。FIG. 4 is an explanatory diagram of another embodiment of the present invention.
【図5】本発明の他の実施例のフローチャートである。FIG. 5 is a flowchart of another embodiment of the present invention.
【図6】本発明の他の実施例のフローチャートである。FIG. 6 is a flowchart of another embodiment of the present invention.
【図7】中継通信システムの説明図である。FIG. 7 is an explanatory diagram of a relay communication system.
1,2 端末装置 3 タイムアウト時間設定部 4 伝送時間計測部 1, 2 terminal device 3 timeout time setting unit 4 transmission time measuring unit
───────────────────────────────────────────────────── フロントページの続き (72)発明者 木下 勝正 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 松田 喜一 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Katsumasa Kinoshita 1015 Kamiodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture, Fujitsu Limited (72) Inventor, Kiichi Matsuda 1015, Kamedotachu, Nakahara-ku, Kawasaki City, Kanagawa Prefecture, Fujitsu Limited
Claims (4)
置からメッセージを他方の端末装置へ送信し、該他方の
端末装置はメッセージ受信によりレスポンスを返送し、
該レスポンスを前記一方の端末装置が受信することによ
り一つのメッセージの伝送終了と判定し、前記レスポン
スがタイムアウト時間設定部(3)に設定したタイムア
ウト時間内に受信できない時は、前記メッセージの再送
処理を行うメッセージ通信方式に於いて、 メッセージ送信から該メッセージに対するレスポンス受
信までの時間を計測する伝送時間計測部(4)を設け、 該伝送時間計測部(4)により計測された最初のメッセ
ージ送信からレスポンス受信までの時間を計測し、該時
間にマージンを加算した時間を前記タイムアウト時間設
定部(3)にタイムアウト時間の初期値として設定する
ことを特徴とする動的タイムアウト時間制御方式。1. A message is transmitted from one of the terminal devices (1) and (2) to the other terminal device, and the other terminal device returns a response upon receipt of the message,
When the one terminal device receives the response, it is determined that the transmission of one message has ended, and when the response cannot be received within the timeout time set in the timeout time setting unit (3), the message resend processing is performed. In the message communication system for performing the above, a transmission time measuring unit (4) for measuring the time from the message transmission to the reception of the response to the message is provided, and from the first message transmission measured by the transmission time measuring unit (4) A dynamic time-out time control method characterized in that a time until a response is received is measured, and a time obtained by adding a margin to the time is set as the initial value of the time-out time in the time-out time setting unit (3).
記タイムアウト時間を初期値として設定した後、メッセ
ージ送信毎に、メッセージ送信からレスポンス受信まで
の時間を前記伝送時間計測部(4)により計測し、該計
測の結果に基づいて、前記レスポンスが前記タイムアウ
ト時間設定部(3)に設定されたタイムアウト時間内に
受信できたか否かを判定し、前記タイムアウト時間内に
受信できた時は、該タイムアウト時間が短くなるように
更新設定し、前記タイムアウト時間内に受信できない時
は、該タイムアウト時間が長くなるように更新設定する
ことを特徴とする請求項1記載の動的タイムアウト時間
制御方式。2. After setting the timeout time as an initial value in the timeout time setting unit (3), the transmission time measuring unit (4) measures the time from message transmission to response reception for each message transmission. Based on the result of the measurement, it is determined whether or not the response can be received within the time-out time set in the time-out time setting unit (3). When the response can be received within the time-out time, the time-out is performed. 2. The dynamic timeout time control method according to claim 1, wherein updating is set so that the time becomes short, and when reception is not possible within the timeout time, updating is set so that the timeout time becomes long.
記タイムアウト時間を初期値として設定した後、メッセ
ージ送信毎に、メッセージ送信からレスポンス受信まで
の時間を前記伝送時間計測部(4)により計測し、該計
測の結果の所定回数の平均値を求め、該平均値にマージ
ンを加算した時間を、新たなタイムアウト時間として前
記タイムアウト時間設定部(3)に設定することを特徴
とする請求項1記載の動的タイムアウト時間制御方式。3. After setting the timeout time as an initial value in the timeout time setting unit (3), the transmission time measuring unit (4) measures the time from message transmission to response reception for each message transmission. 3. The average value of a predetermined number of times of the measurement results is obtained, and a time obtained by adding a margin to the average value is set in the timeout time setting unit (3) as a new timeout time. Dynamic Timeout Control Method for Internet.
定されたタイムアウト時間内に前記レスポンスを受信で
きない時に、該タイムアウト時間に係数を乗算又は一定
数を加算した時間を新たなタイムアウト時間として前記
タイムアウト時間設定部(3)に設定することを特徴と
する請求項1記載の動的タイムアウト時間制御方式。4. When the response cannot be received within the timeout time set in the timeout time setting unit (3), the timeout time is multiplied by a coefficient or a fixed number is added as a new timeout time to perform the timeout. The dynamic time-out time control method according to claim 1, wherein the time-out setting unit (3) sets the time-out unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4271327A JPH06121002A (en) | 1992-10-09 | 1992-10-09 | Dynamic timeout control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4271327A JPH06121002A (en) | 1992-10-09 | 1992-10-09 | Dynamic timeout control method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH06121002A true JPH06121002A (en) | 1994-04-28 |
Family
ID=17498510
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4271327A Pending JPH06121002A (en) | 1992-10-09 | 1992-10-09 | Dynamic timeout control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH06121002A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003521835A (en) * | 1999-02-22 | 2003-07-15 | テレフォンアクチーボラゲット エル エム エリクソン(パブル) | System and method for improved data transmission in a packet switched communication network |
JP2006119811A (en) * | 2004-10-20 | 2006-05-11 | Seiko Epson Corp | IC card |
JP2006279466A (en) * | 2005-03-29 | 2006-10-12 | Fujitsu Ltd | Monitoring system, monitoring program, and monitoring method |
JP2007180716A (en) * | 2005-12-27 | 2007-07-12 | Kyocera Corp | Communication relay device, communication device, communication relay method, and communication method |
US7369258B2 (en) | 2002-05-17 | 2008-05-06 | Sharp Kabushiki Kaisha | Network communication device |
US7567514B2 (en) | 2005-06-30 | 2009-07-28 | Fujitsu Limited | RAID apparatus, and communication-connection monitoring method and program |
JP2010224647A (en) * | 2009-03-19 | 2010-10-07 | Fujitsu Ltd | Timer value management system and server device |
US7956719B2 (en) * | 2005-09-29 | 2011-06-07 | Siemens Industry Inc. | Building control system communication system timing measurement arrangement and method |
CN105242908A (en) * | 2015-11-24 | 2016-01-13 | 西安烽火电子科技有限责任公司 | Method for transmitting very high frequency radio large file based on serial hardware flow control |
-
1992
- 1992-10-09 JP JP4271327A patent/JPH06121002A/en active Pending
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003521835A (en) * | 1999-02-22 | 2003-07-15 | テレフォンアクチーボラゲット エル エム エリクソン(パブル) | System and method for improved data transmission in a packet switched communication network |
US7369258B2 (en) | 2002-05-17 | 2008-05-06 | Sharp Kabushiki Kaisha | Network communication device |
JP2006119811A (en) * | 2004-10-20 | 2006-05-11 | Seiko Epson Corp | IC card |
JP2006279466A (en) * | 2005-03-29 | 2006-10-12 | Fujitsu Ltd | Monitoring system, monitoring program, and monitoring method |
US7567514B2 (en) | 2005-06-30 | 2009-07-28 | Fujitsu Limited | RAID apparatus, and communication-connection monitoring method and program |
US7956719B2 (en) * | 2005-09-29 | 2011-06-07 | Siemens Industry Inc. | Building control system communication system timing measurement arrangement and method |
JP2007180716A (en) * | 2005-12-27 | 2007-07-12 | Kyocera Corp | Communication relay device, communication device, communication relay method, and communication method |
JP2010224647A (en) * | 2009-03-19 | 2010-10-07 | Fujitsu Ltd | Timer value management system and server device |
CN105242908A (en) * | 2015-11-24 | 2016-01-13 | 西安烽火电子科技有限责任公司 | Method for transmitting very high frequency radio large file based on serial hardware flow control |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1203472B1 (en) | Method and device for determining a time-parameter | |
US7444578B2 (en) | Data unit sender and method of controlling the same | |
US4896151A (en) | Simultaneous communication method and system | |
JP2004023794A (en) | RTT measurement method mainly for receiving side in TCP | |
US6795401B1 (en) | Band width measuring method and apparatus for a packet switching network | |
JPH06121002A (en) | Dynamic timeout control method | |
EP0955749A1 (en) | Receiver based congestion control and congestion notification from router | |
WO2005006665A1 (en) | Method for setting the retransmission timeout period in a packet switched communication network | |
CN112087349B (en) | Method, device and system for acquiring retransmission timeout value | |
EP1898546A2 (en) | Communication terminal, comunication control method, and communication control program | |
JP6335430B2 (en) | COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM | |
US11962517B2 (en) | Communications method, apparatus, and system for recovering lost packets | |
JP2008259164A (en) | Communication terminal, communication control method, and communication control program | |
JP5387058B2 (en) | Transmission device, transmission rate calculation method, and transmission rate calculation program | |
EP4344112A1 (en) | Method, apparatus, and computer readable media for dynamically updating a retransmission timeout period | |
JPH07210473A (en) | Data filtering method between transmission lines | |
JP4192627B2 (en) | Packet transmission / reception method and apparatus | |
JP2969559B2 (en) | Data transfer flow control method | |
JP2003283472A (en) | Data transfer control method | |
JPH11225166A (en) | Flow control method | |
CN112671608B (en) | IPG monitoring method, switching equipment and switching system | |
JP3270235B2 (en) | Communication line route control system | |
JP2685035B2 (en) | Retransmission control device | |
JP3816835B2 (en) | Network bandwidth controller | |
JP3816833B2 (en) | Network bandwidth controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20010410 |