JPH04100454A - Method of packet communication - Google Patents

Method of packet communication

Info

Publication number
JPH04100454A
JPH04100454A JP2219241A JP21924190A JPH04100454A JP H04100454 A JPH04100454 A JP H04100454A JP 2219241 A JP2219241 A JP 2219241A JP 21924190 A JP21924190 A JP 21924190A JP H04100454 A JPH04100454 A JP H04100454A
Authority
JP
Japan
Prior art keywords
variable
data
read
value
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2219241A
Other languages
Japanese (ja)
Inventor
Tetsuya Nagai
哲也 長井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2219241A priority Critical patent/JPH04100454A/en
Publication of JPH04100454A publication Critical patent/JPH04100454A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

PURPOSE:To prevent a decline in communication efficiency of the title method by throwing away packet data after a single reading and reducing the value of a data read-and-throw variable by one whenever the data are received when the read-and-throw variable is one or larger and restarting the storage of received packet data in a reception buffer when the data read-and-throw variable becomes zero. CONSTITUTION:When no data exist in a reception buffer 34 at the next readout timing, P=0 is set and the value of a data read-and-throw variable C becomes '1'. Thereafter, the variable C increases one by one whenever readout timing comes and reaches '4'. Dummy readout is successively performed whenever packets arrive and the value of the variable C successively decreases and reaches '0' when the 13th packet data R are thrown away, but, since the readout timing comes soon, the variable C again becomes '1' and the 14th received packet data R are thrown away.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、情報をパケットを用し)で通信を行うパケッ
ト通信方法に間する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a packet communication method for communicating information using packets.

従来の技術 一般に、この種のパケット通信方法は、第3(!lに概
要を示している装置接続において実施されている。すな
わち、第3図において、送信データTは送信装置31で
パケットに組み立てられて送出され、そのパケットはパ
ケット通信網32を通って受信装置33に伝搬される。
BACKGROUND OF THE INVENTION In general, this type of packet communication method is implemented in a device connection as outlined in the third (!l). In other words, in FIG. The packet is transmitted through the packet communication network 32 to the receiving device 33.

ただし、パケット通信網32のパケット伝搬遅延時間は
一定ではないので、受信装置33では、パケットデータ
Rを−H受信バッファ34に入れ、ある程度蓄積されて
からデータを読み出し、受信パケットデータRを得るよ
うにしている。
However, since the packet propagation delay time of the packet communication network 32 is not constant, the receiving device 33 puts the packet data R into the -H receiving buffer 34 and reads the data after it has been accumulated to a certain extent to obtain the received packet data R. I have to.

これにより、パケット通信網32のパケット伝搬遅延時
間にゆらぎがあっても、受信バッファ34内のデータi
が増減するだけで、受信パケットデータRの読み出しは
一定の速度を保つことができる。
As a result, even if there is fluctuation in the packet propagation delay time of the packet communication network 32, the data i in the reception buffer 34
By simply increasing or decreasing the received packet data R, the reading speed of the received packet data R can be maintained at a constant speed.

従来、この種のパケット通信において、音声情報を送る
場合は、送信装置31でパケットに連続した番号(ンー
ケンス番号)を付加してパケットを送り、受信装置33
では受信バッファ34から読み出すべきパケットのシー
ケンス番号の期待値Nを持ち、期待値Nと実際に読み出
されるパケットのシーケンス番号を確認しながら読み出
しを行なう。
Conventionally, in this type of packet communication, when transmitting audio information, the transmitting device 31 adds consecutive numbers (sequence numbers) to the packets and sends the packets, and the receiving device 33
Now, the expected value N of the sequence number of the packet to be read out from the reception buffer 34 is obtained, and the readout is performed while checking the expected value N and the sequence number of the packet actually read out.

これは、パケット伝送遅延時間ゆらぎが大きくなって受
信バッファ34で吸収しきれなくなった場合のためであ
る。以下、これを、従来のパケット通信方法を説明する
第4図のフローチャート図と、一部のパケットが遅延し
て受信側に到着した場合の動作を示す第5図のタイミン
グチャートとに基づいて説明する。
This is in case the packet transmission delay time fluctuation becomes so large that it cannot be absorbed by the reception buffer 34. This will be explained below based on the flowchart of FIG. 4, which explains the conventional packet communication method, and the timing chart of FIG. 5, which shows the operation when some packets arrive at the receiving side with a delay. do.

尚、第5図においては、シーケンス番号1.2.3のパ
ケットは正常に到着したが、シーケンス番号4.5.6
.7のパケットが遅延した場合の動作を説明している。
In FIG. 5, the packet with sequence number 1.2.3 arrived normally, but the packet with sequence number 4.5.6 arrived normally.
.. The operation when packet No. 7 is delayed is explained.

また、本従来例の受信バッファ34におけるゆらぎ吸収
lYは2とした。また、第4図において、Eは、次に受
信バッファ34から読み出されようとしているパケット
のシーケンス番号、Nは期待値、Pは、受信バッファ3
4に蓄積された受信パケットデータの数である。
Further, the fluctuation absorption lY in the reception buffer 34 of this conventional example is set to 2. Further, in FIG. 4, E is the sequence number of the packet that is about to be read out next from the reception buffer 34, N is the expected value, and P is the sequence number of the packet that is about to be read out from the reception buffer 34.
This is the number of received packet data accumulated in 4.

第4図に示すように、通信を開始するとステップ4−1
において、装置内の初期化を行ない、これに伴って、期
待値Nと、シーケンス番号Eと、受信バッファ34内の
蓄積データ数PとがOにクリアされる。
As shown in Figure 4, when communication starts, step 4-1
At this point, the device is initialized, and along with this, the expected value N, sequence number E, and number P of accumulated data in the reception buffer 34 are cleared to O.

そして、受信バッファ34への到着データの蓄積が開始
され、シーケンス番号2のパケットが到着した時点で、
受信バッファ34内には2パケット分のデータが蓄積さ
れたことになるので、これにて初期化フェーズを終了す
る。
Then, the accumulation of arriving data in the reception buffer 34 is started, and when the packet with sequence number 2 arrives,
Since two packets of data have been accumulated in the reception buffer 34, the initialization phase is now completed.

次いで、ステップ4−2で読み出しを行なうタイミング
であるかを判断し、YESの場合はステップ4−3で受
信バッファ34における蓄積データPがあるか否かを判
断し、蓄積データがある場合はステップ4−4でデータ
の受信バプツ734からの読み出しを行ない、ステップ
4−5でNを1加算した後、ステップ4−2の判断がN
Next, in step 4-2, it is determined whether it is the timing to read, and if YES, it is determined in step 4-3 whether or not there is accumulated data P in the reception buffer 34, and if there is accumulated data, step After reading the data from the reception button 734 in step 4-4 and adding 1 to N in step 4-5, the judgment in step 4-2 is
.

の場合と同じようにステップ4−2の判断を繰り返す。The judgment in step 4-2 is repeated in the same way as in the case of .

一方、ステップ4−3において、受信バプツ734の蓄
積データがない場合はステップ4−6に移行して変数N
を1加算した後、ステップ4−7で読み出しを行なうタ
イミングか否かを判断し、YESの場合はステップ4−
8で変数Nを121III算し、ステップ4−7の判断
がNOの場合とともにステップ4−9で、現時点におけ
る受信バッファ34の蓄積データがあるか否かを判断す
る。
On the other hand, in step 4-3, if there is no accumulated data of the received baptism 734, the process moves to step 4-6 and the variable N
After adding 1 to , it is determined in step 4-7 whether or not it is the timing to read out, and if YES, step 4-7 is performed.
8, the variable N is calculated by 121III, and if the determination in step 4-7 is NO, it is determined in step 4-9 whether or not there is data accumulated in the reception buffer 34 at the present time.

そして、ステップ4−9において蓄積データがあると判
断された場合は、ステップ4−10でN=Eかを判断し
、YESの場合はステップ4−2の判断に戻り、読み出
しタイミングでシーケンス番号1の受信パケットデータ
Rが読み8虞れ、以下、シーケンス番号2.3の受信パ
ケットデータRが同様に読み出される。
If it is determined in step 4-9 that there is accumulated data, it is determined in step 4-10 whether N=E, and if YES, the process returns to step 4-2 and the sequence number 1 is set at the read timing. The received packet data R of sequence number 2.3 is read out in the same manner.

一方、ステップ4−10においてN=Mではない場合は
、ステップ4−11でダミーの読み出しを行ない、ステ
ップ4−9の判断がNoの場合とともにステップ4−7
に戻り上記の動作を繰り返すものである。
On the other hand, if N=M is not true in step 4-10, dummy reading is performed in step 4-11, and when the determination in step 4-9 is No, step 4-7
, and repeat the above operation.

ところが、第5図に示すような場合、次の読み出しタイ
ミングでは受信バッファ34内にデータはなく、シーケ
ンス番号4のパケットが到着するのは、期待値Nが5の
時である。従って、N≠Eであるからダミー読み出しが
行なわれ、シーケンス番号4のパケットのデータは捨て
られる。次のシーケンス番号5のパケットについては、
該当する読み出しタイミングに間に合うので正常に読み
出される。
However, in the case shown in FIG. 5, there is no data in the reception buffer 34 at the next read timing, and the packet with sequence number 4 arrives when the expected value N is 5. Therefore, since N≠E, dummy reading is performed and the data of the packet with sequence number 4 is discarded. For the next packet with sequence number 5,
Since the corresponding read timing is met, the data is read normally.

このように、上記従来のパケット通信方法によっても、
大きく連着したパケット以外は正常にパケットを送受信
することができる。
In this way, even with the above conventional packet communication method,
Packets can be sent and received normally except for large consecutive packets.

発明が解決しようとする課題 しかしながら、上記従来のパケット通信方法では、送信
装置でシーケンス番号を付加しなければならず、その分
パケットの冗長度が増加し、通信効率が低下するという
問題があった。
Problems to be Solved by the Invention However, in the conventional packet communication method described above, a sequence number must be added at the transmitting device, which increases packet redundancy and reduces communication efficiency. .

また、受信装置におけるゆらぎ吸収量Yの初期設定値が
小さかったり、運用中にパケット通信網のゆらぎ輻が大
きくなった場合には、データの遅延量が大きくなって頻
繁にデータが捨てられることになってしまうという問題
もあった。
In addition, if the initial setting value of the amount of fluctuation absorption Y in the receiving device is small, or if the fluctuation congestion of the packet communication network increases during operation, the amount of data delay will increase and data will be frequently discarded. There was also the problem of becoming

本発明は、このような従来の問題を解決するものであり
、その第1の目的は、シーケンス番号の付与を不要とし
て通信効率の低下を防止することができるパケット通信
方法を提供することにあり、その第2の目的は、ゆらぎ
吸収能力を1回の通信毎に変化させて、パケットの遅延
lを小さくすることができ、よって、読み捨てデータの
量を少なくすることができるパケット通信方法を提供す
ることにある。
The present invention is intended to solve such conventional problems, and its first purpose is to provide a packet communication method that does not require assigning sequence numbers and can prevent a decrease in communication efficiency. , its second purpose is to provide a packet communication method that can reduce the packet delay l by changing the fluctuation absorption capacity for each communication, thereby reducing the amount of discarded data. It's about doing.

課題を解決するための手段 本発明は上記第1の目的を達成するために、通信開始直
後から受信バッファに受信パケットデータを蓄積し始め
、遅延ゆらぎ吸収に必要な量の受信パケットデータがた
まったときには、以後、定間隔の読み出しタイミング毎
に受信パケットデータを1パケット分ずつ読み出すパケ
ット通信方法であって、 通信開始時に、データ読み捨て変数を0と定義し、 上記受信バプフ7が空のときにiU記読み出しタイミン
グとなった場合には、上記初期値Oであるデータ読み捨
て変数を1とし、以後、前記読み出しタイミングとなる
毎に前記変数の値を1ずつ増加させ、 上記読み捨て変数が少なくとも1以上であるときには、
上記受信パケットデータを受信する毎にそのデータを上
記受信バッファから読み捨て、かつ上記読み捨て変数の
値を1ずつ減少させ、上記読み捨て変数の値が○となっ
たときには、再び受信バッファに受信パケメトデータを
ためはじめ、遅延ゆらぎ吸収に必要な量の受信パケット
データが蓄積されたときには、以後、一定間隔の読み出
しタイミング毎に受信パケットデータを1パケット分ず
つ読み出すようにした。
Means for Solving the Problems In order to achieve the above-mentioned first object, the present invention starts accumulating received packet data in a receiving buffer immediately after the start of communication, and accumulates received packet data in an amount necessary for absorbing delay fluctuations. Sometimes, there is a packet communication method in which the received packet data is read out one packet at a time at regular intervals, and at the start of communication, a data readout variable is defined as 0, and when the above-mentioned receive buffer 7 is empty, the iU When the reading timing has come, the data reading discarding variable which is the initial value O is set to 1, and thereafter, the value of the variable is increased by 1 each time the reading timing comes, and the reading discarding variable is at least 1 or more. Sometimes,
Each time the received packet data is received, the data is read out from the receive buffer, and the value of the read-out variable is decreased by 1. When the value of the read-out variable becomes ○, the received packet data is stored in the receive buffer again. Initially, when the amount of received packet data necessary for absorbing delay fluctuations has been accumulated, the received packet data is read out one packet at a time at regular intervals thereafter.

また、本発明は上記第1の目的を達成するために、上記
読み捨て変数が少なくとも1以上になったときには、以
後、この読み捨て変数が再びOとなるまでの間の読み捨
て変数の値を記憶し、上記読み捨て変数が減少してOと
なったときに、上記記憶した読み捨て変数の値に基づい
て、以後の通信における、受信パケットデータの受信ハ
1.ファへの蓄噴量を決定するようにした。
Furthermore, in order to achieve the first object, the present invention stores the value of the discarded variable until the discarded variable becomes O again when the discarded variable becomes at least 1, When the above-mentioned discard variable decreases to O, reception of received packet data in subsequent communication is performed based on the value of the above-mentioned stored discard variable.1. The amount of fuel injection into the fa is now determined.

作用 第1の発明は上記構成により、受信データにシーケンス
番号を付与して期待値との照合を行うことなくデータの
読み捨て、読み出しを行うことができるので、通信効率
の低下を防止することができる。
Effects According to the first invention, with the above configuration, it is possible to discard or read data without assigning a sequence number to received data and checking it with an expected value, thereby preventing a decrease in communication efficiency. .

また、第2の発明は上記構成により、前回の読み捨てデ
ータの数に基づいて次回のゆらぎ吸収能力を設定するこ
とができるので、1回の通信毎にゆらぎ吸収能力を変化
させることができ、よって、パケットの遅延量を小さく
することができると共に、読み捨てデータの量を少なく
することができる。
Further, according to the second invention, with the above configuration, the next fluctuation absorption capacity can be set based on the number of discarded data from the previous time, so the fluctuation absorption capacity can be changed for each communication. , the amount of packet delay can be reduced, and the amount of discarded data can be reduced.

実施例 第1図は、本発明の一実施例のパケット通信方法を説明
するフローチャート図、第2図は、一部のパケットが遅
延して受信側に到着した場合の動作を示すタイミングチ
ャートである。
Embodiment FIG. 1 is a flowchart explaining a packet communication method according to an embodiment of the present invention, and FIG. 2 is a timing chart showing the operation when some packets arrive at the receiving side with a delay. .

尚、第2図においては、12番目、13番目、及び14
番目のパケットは正常に到着したが、15番目以降、1
5−O乃至15−5の6つのパケットが連着した場合の
動作を説明している。
In addition, in Figure 2, the 12th, 13th, and 14th
The 15th packet arrived normally, but after the 15th packet, the 1st packet arrived normally.
The operation when six packets 5-O to 15-5 are connected is explained.

なお、ゆらぎ吸収量Yは「2」とした。また、第1図に
おいて、Pは受信バッファ34内に蓄積されているパケ
ットデータの数を示す変数、Cはデータ読み捨て変数で
ある。
Note that the fluctuation absorption amount Y was set to "2". Further, in FIG. 1, P is a variable indicating the number of packet data stored in the reception buffer 34, and C is a data discard variable.

以下に、本発明の第1実施例の動作について説明する。The operation of the first embodiment of the present invention will be explained below.

第3図に示すような、パケット通信網32を介しての送
信装置31から受信装置33に対してのパケット通信に
おいて、第1図に示すように、通信を開始するとステッ
プ1−1において、装置内の初期化を行ない、これに伴
って、データ読み捨て変数Cと、受信バッファ34内の
蓄積データ数PとがOにクリアされる。
In packet communication from the transmitting device 31 to the receiving device 33 via the packet communication network 32 as shown in FIG. 3, when communication starts as shown in FIG. Along with this, the data readout variable C and the number P of accumulated data in the reception buffer 34 are cleared to O.

そして、受信バブフ734への到着データの蓄積が開始
され、13番目のパケットが到着した時点で、受信バッ
ファ34内には2パケット分のデータが蓄積されたこと
になるので、これにて初期化フェーズを終了する。
Then, the accumulation of the arriving data in the reception buffer 734 is started, and when the 13th packet arrives, the data for 2 packets has been accumulated in the reception buffer 34, so the initialization is started. Finish the phase.

次いで、ステップ12で読み出しを行なうタイミングで
あるかを判断し、YESの場合はステップ1−3で受信
バッファ34における蓄積データPがあるか否かを判断
し、蓄積データがある場合はステップ1−4で受信パケ
y)データRの受信バッファ34からの読み出しを行な
った後、ステップ1−2の判断がNoの場合と同じよう
にステップ1−2の判断を繰り返し、以下、同様に13
番目、14番目の受信パケットデータRの読み出しが行
われる。
Next, in step 12, it is determined whether it is the timing to perform reading. If YES, it is determined in step 1-3 whether or not there is accumulated data P in the reception buffer 34, and if there is accumulated data, it is determined in step 1-3. After reading the received packet y) data R from the reception buffer 34 in Step 4, the judgment in Step 1-2 is repeated in the same way as when the judgment in Step 1-2 is No.
The 14th and 14th received packet data R are read out.

一方、ステップ1−3の判断がNOの場合は、ステップ
1−5に移行してデータ読み捨て変数Cを1つ加算した
後、ステップ1−6で読み出しを行なうタイミングであ
るかを判断し、YESの場合はデータ読み捨て変数Cを
1つ加算し、ステップl−6の判断がNoの場合ととも
にステップ17で、受信バッファ34内に蓄積データが
あるかが判断される。
On the other hand, if the judgment in step 1-3 is NO, the process moves to step 1-5, in which the data readout variable C is incremented by one, and then in step 1-6 it is judged whether it is the timing to perform the readout, and the judgment is YES. In this case, the data discard variable C is added by one, and if the determination in step 1-6 is No, it is determined in step 17 whether there is any accumulated data in the reception buffer 34.

そして、ステップl−7の判断がYESの場合は、ステ
ップ1−8でデータ読み捨て変数CがOであるかが判断
され、YESの場合はステップ12の判断に戻り、No
の場合はステップl−9でダミー読み出しを行ない、ス
テップ1−10で変数Cを1減算した後、ステップ1−
8の判断がNoの場合とともにステップ1−6の判断を
繰り返すものである。
If the judgment in step l-7 is YES, it is judged in step 1-8 whether the data discard variable C is O, and in the case of YES, the process returns to step 12 and no
In this case, perform dummy reading in step l-9, subtract 1 from variable C in step 1-10, and then perform step 1-1.
If the determination in Step 8 is No, the determination in Steps 1-6 is repeated.

ところが、第2図に示すような場合、次の読み出しタイ
ミングでは受信バッファ34内にデータがないのでP=
Oとなり、データ読み捨て変数Cの値が「l」になる。
However, in the case shown in FIG. 2, there is no data in the reception buffer 34 at the next read timing, so P=
0, and the value of the data discard variable C becomes "l".

その後、しばらくパケメトが到着しないので、読み出し
タイミングになる毎にデータ読み捨て変数C後は増加し
て「4」になる。
After that, since no packets arrive for a while, the data readout variable C increases to "4" every time the read timing comes.

その後、パケットが到着すると、データ数PがOでなく
なるので、ダミー読み出しが行なわれる。ダミー読み出
しが行なわれると、f−少数PはOになるはずであるが
、実際にはパ/rメトが次々に到着しているので、デー
タ数Pは常にOより大きくなり、ダミー読み出しが次々
に行なわれる。これにより、データ読み捨て変数Cの値
が順次減少していく。
Thereafter, when a packet arrives, the data number P is no longer O, so dummy reading is performed. When a dummy read is performed, the f-number P should be O, but in reality, the number P of data is always larger than O because the par/r metes arrive one after another, and the dummy read is performed one after another. It will be held in As a result, the value of the data discard variable C gradually decreases.

そして、13番目の受信パケットデータRを捨てたとこ
ろで、データ読み捨て変数Cは一旦○となるが、すぐに
読み出しタイミングとなるので、データ読み捨て変数C
は再び1となり、14番目の受信パケットデータRが捨
てられる。
Then, when the 13th received packet data R is discarded, the data discard variable C becomes ○, but the read timing comes soon, so the data discard variable C
becomes 1 again, and the 14th received packet data R is discarded.

そこでデータ読み捨て変数Cの値は再びOとなるので、
次のダミー読み出しは行なわれず、本来の読み出しタイ
ミングで15番目以降、15−0乃至15−5番目の受
信パケットデータRが正しく読み出されるようになる。
Therefore, the value of the data discard variable C becomes O again, so
The next dummy read is not performed, and the 15th and subsequent 15-0 to 15-5 received packet data R are correctly read at the original read timing.

このように上記実施例によれば、変数Cはダミー読み出
しを行なうべき回数を示しているわけであるが、これが
読み出しタイミングの回数と、ダミー読み出しを行なっ
た回数という簡単に得られる値から容易に得る二とがで
きるという利点を有する。
In this way, according to the above embodiment, the variable C indicates the number of times dummy reading should be performed, but this can be easily obtained from the easily obtained values of the number of read timings and the number of times dummy reading is performed. It has the advantage of being able to obtain two things.

また、複数のパケット伝達による1回の通信における変
数Cの最大値が、パケット通信網の伝搬遅延ゆらぎの最
大値に対応していることを利用して、受信バッファ34
の蓄積データ量を決定するようにしたのが、下記に示す
本発明の第2実施例である。
Furthermore, by utilizing the fact that the maximum value of the variable C in one communication by a plurality of packet transmissions corresponds to the maximum value of propagation delay fluctuation of the packet communication network, the reception buffer 3
In a second embodiment of the present invention described below, the amount of accumulated data is determined.

本第2実施例は、上述のようなパケットの遅延が生じた
場合に、データ読み捨て変数Cの最大値Cmaxを記憶
しておき、通常のデータ読み出しの状態に戻ったときに
は、記憶したデータ読み出し変数Cの最大値Cmaxに
あらかじめ定められた数を乗じた後に整数化した値を、
前の通信で用いたゆらぎ吸収量Yに加えて、これを今回
の新しいゆらぎ吸収量Ycの値とする。
In the second embodiment, when a packet delay as described above occurs, the maximum value Cmax of the data readout variable C is stored, and when the state returns to normal data readout, the stored data readout variable The value obtained by multiplying the maximum value Cmax of C by a predetermined number and converting it into an integer is
In addition to the fluctuation absorption amount Y used in the previous communication, this is set as the value of the new fluctuation absorption amount Yc.

従って、読み出し変数Cの最大値Cmaxが大きい程、
すなわち、ゆらぎの量が大きい程、新しいゆらぎ吸収1
kYcの値は自動的に大きく設定される。また、読み出
し変数Cの最大値CrnaxがOであった場合はゆらぎ
吸収lが大きすぎる可能性があるので、次回の通信での
ゆらぎ吸収量Ycを1だけ減らす。
Therefore, the larger the maximum value Cmax of the read variable C,
In other words, the larger the amount of fluctuation, the new fluctuation absorption 1
The value of kYc is automatically set large. Furthermore, if the maximum value Crnax of the read variable C is O, there is a possibility that the fluctuation absorption l is too large, so the fluctuation absorption amount Yc in the next communication is reduced by 1.

このように、パケット通信網の遅延ゆらぎが変化しても
それに追従した必要十分なゆらぎ吸収量を得ることがで
きる。
In this way, even if the delay fluctuation of the packet communication network changes, it is possible to obtain the necessary and sufficient amount of fluctuation absorption that follows it.

なお、上記第2実施例において、次回の通信に用いる新
しいゆらぎ吸収量YCの求め方は、読み出し変数Cの最
大値Cmaxと比例関係にある必要はなく、読み出し変
数Cの最大値Cmaxの関数として定義してもよいし、
読み出し変数Cの最大値Cmaxに限らず前回の通信に
おける変数Cの度数分布、時間変化から求めるようにし
てもよい。
In addition, in the second embodiment, the new fluctuation absorption amount YC to be used for the next communication does not need to be in a proportional relationship with the maximum value Cmax of the read variable C, but is determined as a function of the maximum value Cmax of the read variable C. You can define
It may be determined not only from the maximum value Cmax of the read variable C but also from the frequency distribution and time change of the variable C in the previous communication.

また、上記第1及び第2実施例において、データ読み出
し変数Cに上限値を設ければ、この上限値をデータ読み
出し変数Cが越えたときに、受信パケメトデータRの入
力断などの障害が発生したものとして、警報を発する等
することができる。
Furthermore, in the first and second embodiments described above, if an upper limit value is set for the data read variable C, when the data read variable C exceeds this upper limit value, a failure such as input interruption of the received packet data R occurs. As a result, it is possible to issue an alarm, etc.

発明の効果 ト述のように第1の発明によねば、通信開始直後から受
信バッファに受信パケットデータを蓄積し始め、遅延ゆ
らぎ吸収に必要な量の受信パケットデータがたまったと
きには、以後、一定間隔の読み出しタイミング毎に受信
パヶメトデータを1パケット分ずつ読み出すパケット通
信網法であって、 通信開始時に、データ読み捨て変数を0と定義し、 上記受信バッファが空のときに前記読み出しタイミング
となった場合には、上記初期値0であるデータ読み捨て
変数を1とし、以後、前記読み出しタイミングとなる毎
に前記変数の値を1ずつ増加させ、 上記読み捨て変数が少なくとも1以上であるときには、
上記受信パケットデータを受信する毎にそのデータを上
記受信バッファから読み捨て、かつ上記読み捨て変数の
値を1ずつ減少させ、上記読み捨て変数の値が○となっ
たときには、再び受信バッファに受信パケットデータを
ためはじめ、遅延ゆらぎ吸収に必要な量の受信パケメト
データが蓄積されたときには、以後、一定間隔の読み出
しタイミング毎に受信パケットデータを1パケット分ず
つ読み出すようにした。
Effects of the Invention According to the first invention as described above, received packet data starts to be accumulated in the receive buffer immediately after the start of communication, and when the amount of received packet data necessary for absorbing delay fluctuations has been accumulated, the data is stored at a constant level from then on. This is a packet communication network method in which received packet data is read out one packet at each interval readout timing, where the data readout variable is defined as 0 at the start of communication, and the readout timing occurs when the abovementioned reception buffer is empty. In this case, the data read-out variable with the initial value of 0 is set to 1, and thereafter, the value of the variable is increased by 1 at each read timing, and when the read-out variable is at least 1 or more,
Each time the received packet data is received, the data is read out from the receive buffer, and the value of the read-out variable is decreased by 1. When the value of the read-out variable becomes ○, the received packet data is read out into the receive buffer again. Therefore, when the amount of received packet data necessary for absorbing delay fluctuations has been accumulated, the received packet data is read out one packet at a time at regular intervals.

このため、受信データにシーケンス番号を付与して期待
値との照合を行う二となくデータの読み捨て、読み出し
を行うことができるので、通信効率の低下を防止するこ
とができる。
Therefore, the data can be discarded or read without giving the received data a sequence number and comparing it with the expected value, thereby preventing a decrease in communication efficiency.

また、上述のように第2の発明によれば、上記読み捨て
変数が少なくとも1以上になったときには、以後、この
読み捨て変数が再びOとなるまでの間の読み捨て変数の
値を記憶し、 上記読み捨て変数が減少してOとなったときに、上記記
憶した読み捨て変数の値に基づいて、以後の通信におけ
る、受信パケットデータの受信バッファへの蓄積iを決
定するようにした。
Further, as described above, according to the second invention, when the above-mentioned discarded variable becomes at least 1 or more, the value of the discarded variable is stored until the discarded variable becomes O again, and the above-mentioned discarded variable is stored. When the variable decreases to O, the accumulation i of received packet data in the reception buffer in subsequent communication is determined based on the value of the stored discarded variable.

このため、前回の読み捨てデータの数に基づいて次回の
ゆらぎ吸収能力を設定することができるので、1回の通
信毎にゆらぎ吸収能力を変化させることができ、よって
、パケットの遅延量を小さくすることができると共に、
読み捨てデータの量を少なくすることができる。
Therefore, it is possible to set the next fluctuation absorption capacity based on the number of discarded data from the previous time, so it is possible to change the fluctuation absorption capacity for each communication, thereby reducing the amount of packet delay. In addition to being able to
The amount of discarded data can be reduced.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明の一実施例におけるパケット通信方法
を説明するフローチャート図、第2図は、第1図のパケ
ット通信方法の動作を説明するタイミングチャート、第
3図は、一般的なパケット通信の概要を示す説明図、第
4図は、従来のパケット通信方法を説明するフローチャ
ート図、第5図は、第5図のパケット通信方法の動作を
説明するタイミングチャートである。 34・・・受信バッファ、R・・・受信パケットデータ
。 第1図 代理人の氏名 弁理士 粟 野 重 孝はか1名4べじ
11・−丸二 べし11・−処← 鯖4図
FIG. 1 is a flowchart explaining a packet communication method in an embodiment of the present invention, FIG. 2 is a timing chart explaining the operation of the packet communication method of FIG. 1, and FIG. 3 is a general packet communication method. FIG. 4 is a flowchart explaining the conventional packet communication method, and FIG. 5 is a timing chart explaining the operation of the packet communication method shown in FIG. 34...Reception buffer, R...Reception packet data. Figure 1 Agent's name Patent attorney Shige Awano Takahaka 1 person 4 Beji 11・-Marunibeshi 11・-Processing ← Saba 4 figure

Claims (2)

【特許請求の範囲】[Claims] (1)通信開始直後から受信バッファに受信パケットデ
ータを蓄積し始め、遅延ゆらぎ吸収に必要な量の受信パ
ケットデータがたまったときには、以後、一定間隔の読
み出しタイミング毎に受信パケットデータを1パケット
分ずつ読み出すパケット通信方法であって、 通信開始時に、データ読み捨て変数を0と定義し、 上記受信バッファが空のときに前記読み出しタイミング
となった場合には、上記初期値0であるデータ読み捨て
変数を1とし、以後、前記読み出しタイミングとなる毎
に前記変数の値を1ずつ増加させ、 上記読み捨て変数が少なくとも1以上であるときには、
上記受信パケットデータを受信する毎にそのデータを上
記受信バッファから読み捨て、かつ上記読み捨て変数の
値を1ずつ減少させ、上記読み捨て変数の値が0となっ
たときには、再び受信バッファに受信パケットデータを
ためはじめ、遅延ゆらぎ吸収に必要な量の受信パケット
データが蓄積されたときには、以後、一定間隔の読み出
しタイミング毎に受信パケットデータを1パケット分ず
つ読み出すようにしたパケット通信方法。
(1) Immediately after the start of communication, receive packet data starts to be accumulated in the receive buffer, and when the amount of receive packet data necessary to absorb delay fluctuations has accumulated, from then on, one packet of received packet data is stored at regular intervals of read timing. A packet communication method in which a data readout variable is defined as 0 at the start of communication, and when the readout timing comes when the reception buffer is empty, the data readout variable whose initial value is 0 is defined. 1, and from then on, the value of the variable is increased by 1 at each read timing, and when the discarded variable is at least 1,
Each time the received packet data is received, the data is read out from the receive buffer, and the value of the read-out variable is decreased by 1. When the value of the read-out variable becomes 0, the received packet data is read out into the receive buffer again. Therefore, when the amount of received packet data necessary for absorbing delay fluctuations is initially accumulated, the received packet data is read out one packet at a time at regular interval readout timings thereafter.
(2)上記読み捨て変数が少なくとも1以上になったと
きには、以後、この読み捨て変数が再び0となるまでの
間の読み捨て変数の値を記憶し、上記読み捨て変数が減
少して0となったときに、上記記憶した読み捨て変数の
値に基づいて、以後の通信における、受信パケットデー
タの受信バッファへの蓄積量を決定するようにした請求
項(1)記載のパケット通信方法。
(2) When the above-mentioned discarded variable becomes at least 1, the value of the discarded variable is stored until the discarded variable becomes 0 again, and when the above-mentioned discarded variable decreases to 0, 2. The packet communication method according to claim 1, wherein the amount of received packet data to be stored in the reception buffer in subsequent communication is determined based on the value of the stored discarded variable.
JP2219241A 1990-08-20 1990-08-20 Method of packet communication Pending JPH04100454A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2219241A JPH04100454A (en) 1990-08-20 1990-08-20 Method of packet communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2219241A JPH04100454A (en) 1990-08-20 1990-08-20 Method of packet communication

Publications (1)

Publication Number Publication Date
JPH04100454A true JPH04100454A (en) 1992-04-02

Family

ID=16732429

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2219241A Pending JPH04100454A (en) 1990-08-20 1990-08-20 Method of packet communication

Country Status (1)

Country Link
JP (1) JPH04100454A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011077622A (en) * 2009-09-29 2011-04-14 Aiphone Co Ltd Data transmission system
US8081614B2 (en) 2006-09-28 2011-12-20 Kyocera Corporation Voice transmission apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8081614B2 (en) 2006-09-28 2011-12-20 Kyocera Corporation Voice transmission apparatus
JP2011077622A (en) * 2009-09-29 2011-04-14 Aiphone Co Ltd Data transmission system

Similar Documents

Publication Publication Date Title
EP0448232B1 (en) Burst time division multiplex interface for integrated data link controller
US4839891A (en) Method for controlling data flow
EP0042447B1 (en) Flow control mechanism for block switching nodes
US7257080B2 (en) Dynamic traffic-based packet analysis for flow control
JPH10313342A (en) Method/device for allocating resources in packet transmission digital network
US4506361A (en) Retransmission control system
KR970706673A (en) A transmission control method and a communication system between a plurality of stations and corresponding stations,
EP0342861B1 (en) Smoothing apparatus for independently clocked networks
JP2925977B2 (en) Communication device
EP0342844B1 (en) Smoothing apparatus for independently clocked networks
JPH06237285A (en) High-level data link controller (hdlc) receiver state machine
EP0430050A2 (en) Asynchronous priority select logic
JPH04100454A (en) Method of packet communication
US5228129A (en) Synchronous communication interface for reducing the effect of data processor latency
JPH02170645A (en) System and equipment for packet transmission
JP2568458B2 (en) Data length detector
CN100484081C (en) Latency management for network
EP0532431B1 (en) Method and device for multiplexing
JPS5821459B2 (en) Audio packet transmission method
KR100259363B1 (en) Method and apparatus for controlling lan
JPS6343029B2 (en)
CN1215869A (en) Network interface card capable of decreasing interuption frequency and method therefor
JPS59204345A (en) Packet communication system
JP2002217969A (en) Method and device for relaying data
JP3430689B2 (en) Bidirectional repeater device