JP2005086753A - Packet transmission apparatus - Google Patents

Packet transmission apparatus Download PDF

Info

Publication number
JP2005086753A
JP2005086753A JP2003319660A JP2003319660A JP2005086753A JP 2005086753 A JP2005086753 A JP 2005086753A JP 2003319660 A JP2003319660 A JP 2003319660A JP 2003319660 A JP2003319660 A JP 2003319660A JP 2005086753 A JP2005086753 A JP 2005086753A
Authority
JP
Japan
Prior art keywords
data
transmission
packet
unit
stored
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.)
Granted
Application number
JP2003319660A
Other languages
Japanese (ja)
Other versions
JP3930842B2 (en
Inventor
Yusuke Uchida
裕介 内田
Noboru Masuda
昇 益田
Nobuyuki Arasawa
伸幸 荒澤
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2003319660A priority Critical patent/JP3930842B2/en
Publication of JP2005086753A publication Critical patent/JP2005086753A/en
Application granted granted Critical
Publication of JP3930842B2 publication Critical patent/JP3930842B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a packet transmission apparatus transmitting a packet without losing it while ensuring a real time property even if a fault occurs in a packet transmission path. <P>SOLUTION: If a state wherein data are not rightly transmitted is judged, a transmission section 3 resends data which is judged not to be rightly transmitted, and a first signal processing section 4 stores generated data into a storage section 1. If a state wherein data are rightly transmitted is judged, the transmission section 3 transmits data newly generated by the first signal processing section 4 and the data stored in the storage section. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、所定のデータ(例えば、パケット)を送信するパケット送信装置に関し、特にパケット送信路に障害が発生した時にも、リアルタイム性を確保しつつ、パケットを失うことなく送信することのできるパケット送信装置に関する。   The present invention relates to a packet transmission apparatus that transmits predetermined data (for example, a packet), and more particularly, a packet that can be transmitted without losing a packet while ensuring real-time performance even when a failure occurs in a packet transmission path. The present invention relates to a transmission device.

伝送路品質の劣化などの理由で通信遮断が生じたとき、送信できなかったパケットを記憶手段に蓄積し、通信が回復したときに再送するシステムは従来から存在する。   Conventionally, there is a system in which a packet that could not be transmitted is stored in a storage unit when a communication interruption occurs due to deterioration in transmission path quality or the like, and is retransmitted when communication is recovered.

この記憶手段として、送信部に単純にFIFOを設けて通信遮断時にパケットを蓄積すれば、通信回復時にパケットを廃棄することなく順に送信することができる。この場合、伝送路品質の良いときは記憶手段に蓄積されることなくリアルタイムで伝送される。   As this storage means, if a simple FIFO is provided in the transmission unit and packets are accumulated when communication is cut off, the packets can be transmitted in sequence without being discarded when communication is recovered. In this case, when the transmission path quality is good, it is transmitted in real time without being stored in the storage means.

また、パケット送信の成否を観測して記憶手段内のパケットを選択することにより、送信失敗を繰り返すパケットの優先度を低くすることもできる。   Also, by observing the success or failure of packet transmission and selecting a packet in the storage means, the priority of a packet that repeats transmission failure can be lowered.

例えば、あるパケットの送信時に再送を繰り返した場合にはそのパケットの再送を中断して後続のパケットの送信を行えるようにする、パケット通信装置が知られている(例えば、特許文献1参照。)。
特開平10−117213号公報
For example, a packet communication device is known in which, when retransmission is repeated during transmission of a certain packet, the retransmission of the packet is interrupted so that the subsequent packet can be transmitted (for example, see Patent Document 1). .
Japanese Patent Laid-Open No. 10-117213

前述のように、記憶手段として送信部に単純にFIFOを設けただけのシステムでは、通信回復時に蓄積されたパケットを蓄積した順序を保存して送信する。そのため、通信遮断期間中に蓄積されたパケットを送信し終えるには相応の時間を必要とするので、通信回復後もすぐには通常時のような遅延の小さいリアルタイム伝送に復帰することができない。特に、許容遅延量が小さいシステムでは、伝送品質が回復しても所望の伝送遅延特性に復帰するまでに大きな時間を要することとなる。この課題は特に通信遮断時間が大きいときに顕著に表れる。   As described above, in a system in which a transmission unit is simply provided with a FIFO as storage means, the order in which packets accumulated during communication recovery are stored is stored and transmitted. For this reason, since it takes a certain amount of time to finish transmitting the packets accumulated during the communication cut-off period, it is not possible to return to real-time transmission with a small delay as usual during communication recovery. In particular, in a system with a small allowable delay amount, it takes a long time to return to a desired transmission delay characteristic even if transmission quality is restored. This problem appears particularly when the communication interruption time is long.

また、前述の特許文献1に記載のパケット通信装置のように、再送を繰り返すパケットの優先度を下げることによりパケットの順序を入れ替えて送信することも可能であるが、その場合も通信遮断期間中に蓄積したパケットをすべて処理し終えてリアルタイム伝送に復帰するには相応の時間を必要とする。   In addition, as in the packet communication device described in Patent Document 1 described above, it is possible to change the order of packets by lowering the priority of packets that are repeatedly retransmitted. It takes a certain amount of time to return to the real-time transmission after processing all the packets stored in.

本発明は、以上のような問題点を鑑みてなされたものであり、通信遮断時に蓄積したパケットを廃棄することなく、通信回復時には速やかにリアルタイム伝送に復帰できるパケット通信システムを実現することを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to realize a packet communication system that can quickly return to real-time transmission when communication is restored without discarding packets accumulated when communication is cut off. And

上記の目的を達成するために、本発明の第1の発明の送信装置は、パケットを格納するメモリ部1と、FIFO2と、FIFO2から読み出したパケットをパケット送信路に送信する送信部3と、入力されたデータを送信用にパケット化する処理を行ない、FIFO2に蓄積されているパケット量が第1の所定量以下であるか否かによって該送信用パケットを上記メモリ装置又は上記FIFOへ書きこむ第1の信号処理部4と、FIFO2に蓄積されているパケット量が第2の所定量以下であれば上記メモリ部1に格納されたパケットを読み出してFIFO2に書き込む第2の信号処理部5と、送信部3から送信されたパケットに対するACK又はNACKを受信してパケットの送信の成否を判断する受信部6と、受信部6から送信成否を上記パケット送信部に通知する制御線7と、FIFO2に蓄積されているパケット量を第1の信号処理部4に通知する制御線8と、FIFO2に蓄積されているパケット量を第2の信号処理部6に通知する制御線9と、を備える。   In order to achieve the above object, a transmission apparatus according to a first aspect of the present invention includes a memory unit 1 that stores a packet, a FIFO 2, a transmission unit 3 that transmits a packet read from the FIFO 2 to a packet transmission path, The input data is packetized for transmission, and the transmission packet is written to the memory device or the FIFO depending on whether or not the amount of packets stored in the FIFO 2 is equal to or smaller than a first predetermined amount. A first signal processing unit 4, and a second signal processing unit 5 that reads a packet stored in the memory unit 1 and writes it to the FIFO 2 if the amount of packets stored in the FIFO 2 is equal to or less than a second predetermined amount, A receiving unit 6 that receives an ACK or NACK for the packet transmitted from the transmitting unit 3 and determines the success or failure of the transmission of the packet; A control line 7 for notifying the packet transmission unit, a control line 8 for notifying the first signal processing unit 4 of the amount of packets stored in the FIFO 2, and a second signal processing unit for the amount of packets stored in the FIFO 2 6 and a control line 9 for notifying 6.

本発明によると、通信遮断時にもパケットを失うことなく蓄積し、通信再開直後は通信遮断期間中に蓄積したパケットよりも通信遮断解消後にパケット化されたデータの方を優先して送信路に送信し、通信再開後に通信が安定し、蓄積中のパケットが十分少なくなりリアルタイムのパケットの送信を妨げなくなった時点で、蓄積してあった通信遮断時のパケットを送信することが可能になる。その結果、通信遮断時のパケットを廃棄することなく、通信再開時には即座にリアルタイムのパケットを送信する状態に復帰し、通信遮断時に蓄積しておいたパケットは通信が安定してから送信することができる。   According to the present invention, packets are stored without loss even when communication is interrupted, and immediately after resuming communication, the packetized data is transmitted to the transmission path with higher priority than packets accumulated during the communication disconnection period after canceling communication disconnection. Then, after the communication is resumed, when the communication becomes stable and the accumulated packets are sufficiently small and the real-time packet transmission is not hindered, it is possible to transmit the accumulated packet when the communication is cut off. As a result, without discarding the packet at the time of communication interruption, it returns to the state of transmitting a real-time packet immediately when communication resumes, and the packet accumulated at the time of communication interruption can be transmitted after the communication is stable it can.

以下、本発明の実施の形態を、図面を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の第1の実施の形態のパケット送信装置の全体構成を示すブロック図である。   FIG. 1 is a block diagram showing the overall configuration of the packet transmission apparatus according to the first embodiment of this invention.

第1の信号処理部4は、図示しないデータ生成装置からデータを受け取り、受け取ったデータをパケット化して、パケット化されたデータ(パケット)をメモリ部1又はFIFO2に送る。メモリ部1は、第1の信号処理部4からパケットを受け取り、パケットを記憶する記憶部として機能する。FIFO2は、第1の信号処理部4又は第2の信号処理部5からのパケットを受け取り、受け取ったパケットを所定の数だけ保持し、保持しているパケットのうち、最古のものを送信部3に送ることで、送信バッファとして機能する。   The first signal processing unit 4 receives data from a data generation device (not shown), packetizes the received data, and sends the packetized data (packet) to the memory unit 1 or the FIFO 2. The memory unit 1 functions as a storage unit that receives a packet from the first signal processing unit 4 and stores the packet. The FIFO 2 receives packets from the first signal processing unit 4 or the second signal processing unit 5, holds a predetermined number of received packets, and transmits the oldest packet among the held packets to the transmission unit By sending to 3, it functions as a transmission buffer.

送信部3は、FIFO2から受け取ったパケットを、パケット送信路を経由して図示しない通信相手に送信する。送信部3のパケット送出レート(すなわち、本発明のパケット送信装置のパケット送信能力)は、第1の信号処理部4のパケット生成レートよりも大きくなっている。   The transmission unit 3 transmits the packet received from the FIFO 2 to a communication partner (not shown) via the packet transmission path. The packet transmission rate of the transmission unit 3 (that is, the packet transmission capability of the packet transmission device of the present invention) is larger than the packet generation rate of the first signal processing unit 4.

受信部6は、パケット送信先からパケットが到達したか否かの確認メッセージ(ACK又はNACK)を受け取って、パケットが正しく送信されたか否かによって、パケット送信路の状態を判定する。   The receiving unit 6 receives a confirmation message (ACK or NACK) as to whether or not the packet has arrived from the packet transmission destination, and determines the state of the packet transmission path depending on whether or not the packet has been correctly transmitted.

なお、本発明におけるパケット送信路は、パケットの送受信ができるものであればよいが、本発明はパケット送信路に障害が発生したときの動作に特徴があることから、無線通信路のような、通信状態が安定せず、通信の途絶が発生し得る送信路を使用する場合に好適である。   Note that the packet transmission path in the present invention may be any packet transmission / reception, but the present invention is characterized by the operation when a failure occurs in the packet transmission path. This is suitable when using a transmission path in which the communication state is not stable and communication interruption may occur.

メモリ部1は、第1の信号処理部4から受け取ったパケットを一時的に格納し、格納したパケットを第2の信号処理部5に送る。第2の信号処理部5は、メモリ部1から送られたパケットを、FIFO2に送る。   The memory unit 1 temporarily stores the packet received from the first signal processing unit 4 and sends the stored packet to the second signal processing unit 5. The second signal processing unit 5 sends the packet sent from the memory unit 1 to the FIFO 2.

また、受信部6と送信部3との間は、制御線7によって接続され、FIFO2と第1の信号処理部4との間は、制御線8によって接続され、FIFO2と第2の信号処理部5との間は、制御線9によって、それぞれ接続されている。   Further, the receiving unit 6 and the transmitting unit 3 are connected by a control line 7, and the FIFO 2 and the first signal processing unit 4 are connected by a control line 8, and the FIFO 2 and the second signal processing unit. Are connected to each other by a control line 9.

次に、以上のように構成された第1の実施の形態のパケット送信装置の動作を説明する。   Next, the operation of the packet transmission apparatus according to the first embodiment configured as described above will be described.

第1の信号処理部4は、図示しないデータ生成装置からデータが逐次的に入力され、このデータが一定量たまったときにパケットを生成する。   The first signal processing unit 4 sequentially receives data from a data generation device (not shown), and generates a packet when a certain amount of this data is accumulated.

また、第1の信号処理部4は、FIFO2に蓄積されているパケットの量を制御線8を通じて知る。そして、第1の信号処理部4は、FIFO2に蓄積されているパケットの量と第1の所定量(例えば、2個)との比較結果に基づいて、パケットをFIFO2へ書き込むか、メモリ部1に書き込むかを決定する。すなわち、FIFO2に蓄積されているパケットの量が第1の所定量以下であれば、パケットをFIFO2へ書き込む。一方、FIFO2に蓄積されているパケットの量が第1の所定量より多ければ、パケットをメモリ部1に書き込む。   Further, the first signal processing unit 4 knows the amount of packets stored in the FIFO 2 through the control line 8. Then, the first signal processing unit 4 writes the packet into the FIFO 2 based on the comparison result between the amount of packets stored in the FIFO 2 and the first predetermined amount (for example, two), or the memory unit 1 Determine whether to write to. That is, if the amount of packets stored in the FIFO 2 is less than or equal to the first predetermined amount, the packets are written into the FIFO 2. On the other hand, if the amount of packets stored in the FIFO 2 is larger than the first predetermined amount, the packets are written in the memory unit 1.

第2の信号処理部5はFIFO2に蓄積されているパケットの量を第3の制御線9を通じて知る。そして、第2の信号処理部5は、FIFO2に蓄積されているパケットの量と第2の所定量との比較結果に基づいて、メモリ部1に格納されたパケットを読み出してFIFO2に書き込む。すなわち、FIFO2に蓄積されているパケットの量が第2の所定量以下であり、かつ、メモリ部1内にパケットが格納されていれば、メモリ部1に格納されたパケットを読み出してFIFO2に書き込む。なお、第2の所定量は第1の所定量よりも小さい値であり、“0”としてもよい。   The second signal processing unit 5 knows the amount of packets stored in the FIFO 2 through the third control line 9. Then, the second signal processing unit 5 reads out the packet stored in the memory unit 1 and writes it in the FIFO 2 based on the comparison result between the amount of packets stored in the FIFO 2 and the second predetermined amount. That is, if the amount of packets stored in the FIFO 2 is equal to or less than the second predetermined amount and the packet is stored in the memory unit 1, the packet stored in the memory unit 1 is read and written to the FIFO 2. . The second predetermined amount is a value smaller than the first predetermined amount and may be “0”.

送信部3は、FIFO2に格納されたパケットの最古のものから1つずつ読み出し、パケット送信路に送信する。送信部3から送信されたパケットを、図示しない通信相手が正しく受信した場合は、通信相手は受信部6に、正しく受信された旨を予め定めた信号(ACK)により通知する。また、通信相手が正しくパケットを受信できなかった場合も同様にその旨を受信部6に予め定めた信号(NACK)により通知する。   The transmission unit 3 reads one by one from the oldest packet stored in the FIFO 2 and transmits it to the packet transmission path. When a communication partner (not shown) correctly receives a packet transmitted from the transmission unit 3, the communication partner notifies the reception unit 6 that the packet has been correctly received by a predetermined signal (ACK). Further, when the communication partner cannot correctly receive the packet, the reception unit 6 is similarly notified by a predetermined signal (NACK).

受信部6は、受信した信号がACK又はNACKのいずれであるかを判定し、パケット送信の正否を判定する判定部として機能する。このとき、受信部6は、送信部3がパケット送信路に送信したパケットの情報を予め送信部3から受け取っており、送信したパケットに対応するACK又はNACKを受信することによって、送信部3から送信されたパケットの送信の正否、すなわち、パケットが正しく送られたか否かを判定する。そして、受信部6は、制御線7を通じてパケット送信の正否の情報を送信部3に伝達する。   The reception unit 6 functions as a determination unit that determines whether the received signal is ACK or NACK and determines whether the packet transmission is correct. At this time, the receiving unit 6 has previously received information on the packet transmitted from the transmitting unit 3 to the packet transmission path from the transmitting unit 3, and receives the ACK or NACK corresponding to the transmitted packet from the transmitting unit 3. It is determined whether or not the transmitted packet is correct, that is, whether or not the packet is correctly transmitted. Then, the receiving unit 6 transmits information on the correctness of packet transmission to the transmitting unit 3 through the control line 7.

パケットの送信が正しく行われた(送信が成功した)場合には、送信部3は、FIFO2に格納されているパケットを新たに読み出し、該パケットをパケット送信路に送信する。パケットの送信が正しく行われなかった(送信が失敗した)場合には、送信部3は、FIFO2からパケットを読み出さず、送信が失敗したパケット(送信部3に備えられているキャッシュメモリに保持されているパケット)を、パケット送信路に再び送信する。   When the packet is correctly transmitted (successful transmission), the transmission unit 3 newly reads the packet stored in the FIFO 2 and transmits the packet to the packet transmission path. When the packet transmission is not performed correctly (transmission fails), the transmission unit 3 does not read the packet from the FIFO 2 and is stored in a cache memory provided in the transmission unit 3 (the cache memory included in the transmission unit 3). Packet) is transmitted again to the packet transmission path.

ここで、第2の所定量を0として設定した場合の、本発明の第1の実施の形態のパケット送信装置の動作を説明する。   Here, the operation of the packet transmission apparatus according to the first embodiment of this invention when the second predetermined amount is set to 0 will be described.

パケット送信路に通信遮断が発生していない場合、すなわち、前述したように、送信部3がパケットを送信した結果、受信部6がACKを受信している場合には、第1の信号処理部4に入力されたデータより生成され、FIFO2に書き込まれたパケットは、直ちに、送信部3によってFIFO2から読み出され、パケット送信路に送信される。そのため、FIFO2にはパケットが蓄積されず、第1の信号処理部4に入力されたデータは、リアルタイムでパケット送信路を経て通信相手に送られる。   When communication interruption has not occurred in the packet transmission path, that is, as described above, when the reception unit 6 has received ACK as a result of transmission of the packet by the transmission unit 3, the first signal processing unit The packet generated from the data input to 4 and written in the FIFO 2 is immediately read from the FIFO 2 by the transmission unit 3 and transmitted to the packet transmission path. For this reason, no packets are stored in the FIFO 2, and the data input to the first signal processing unit 4 is sent to the communication partner via the packet transmission path in real time.

ここで、ひとたびパケット送信路に通信遮断が発生すると、受信部6はNACKを受信する。送信部3は、パケットが正しくパケット送信路に送信されないため、送信部3のキャッシュにあるパケットの再送処理を繰り返す。その間にも、第1の信号処理部4が生成したパケットはFIFO2に送られるので、通信遮断が解消しない場合は、FIFO2に未送信のパケットが蓄積され始める。そして、FIFO2内のパケットの量が第1の所定量を超えると、第1の信号処理部4は、制御線8を通じてFIFO2にパケットの量が第1の所定量を超えたことを知る。そして、第1の信号処理部4は、FIFO2に蓄積されたパケットの量が第1の所定量を超えた後には、生成したパケットを、FIFO2でなく、メモリ部1に書き込み、メモリ部1に記憶させる。   Here, once communication interruption occurs in the packet transmission path, the receiving unit 6 receives NACK. Since the packet is not correctly transmitted to the packet transmission path, the transmission unit 3 repeats the retransmission process of the packet in the cache of the transmission unit 3. In the meantime, since the packet generated by the first signal processing unit 4 is sent to the FIFO 2, if the communication interruption is not solved, untransmitted packets start to be accumulated in the FIFO 2. When the amount of packets in the FIFO 2 exceeds the first predetermined amount, the first signal processing unit 4 knows that the amount of packets in the FIFO 2 has exceeded the first predetermined amount through the control line 8. Then, after the amount of packets accumulated in the FIFO 2 exceeds the first predetermined amount, the first signal processing unit 4 writes the generated packet in the memory unit 1, not in the FIFO 2, and stores it in the memory unit 1. Remember me.

このとき、パケット送信路の通信遮断が解消するまではFIFO2に蓄積されているパケットの量は減少しない。従って、FIFO2に蓄積されているパケットの量が第2の所定量(“0”)以下になることがないので、通信遮断が解消する以前に、メモリ部1に書き込まれたパケットが、第2の信号処理部5によってFIFO2に書き込まれることはない。   At this time, the amount of packets stored in the FIFO 2 does not decrease until the communication interruption of the packet transmission path is resolved. Accordingly, since the amount of packets stored in the FIFO 2 does not become the second predetermined amount (“0”) or less, packets written in the memory unit 1 before the communication interruption is canceled Are not written into the FIFO 2 by the signal processing unit 5.

やがて、パケット送信路の通信遮断が解消すると、受信部6は、パケット受信路からACKを受信するので、パケットが正しく送られたと判定し、送信部3にその旨を伝達する。送信部3は、パケットが正しく送られたことを知ると、次のパケットをFIFO2から読み出し、送信する。そして、送信部3によって読み出されパケット送信路に送信されることによって、FIFO2に蓄積されているパケットの量は減少を始める。   Eventually, when the communication interruption of the packet transmission path is resolved, the reception unit 6 receives the ACK from the packet reception path, and therefore determines that the packet has been sent correctly, and notifies the transmission unit 3 accordingly. When the transmission unit 3 knows that the packet has been sent correctly, it reads the next packet from the FIFO 2 and transmits it. Then, the amount of packets stored in the FIFO 2 starts to decrease by being read by the transmission unit 3 and transmitted to the packet transmission path.

通信遮断が発生している間は、FIFO2内に蓄積されているパケットの量は、送信もされず、書き込みもされないので、常に第1の所定量である。ここで、通信遮断が解消すると、送信部3によってFIFO2のパケットが読み出されて送信される。そして、FIFO2に蓄積されているパケットの量が第1の所定量より1個でも少なくなると、第1の信号処理部4は、生成したパケットをメモリ部1ではなくFIFO2に直接書き込む。   While communication is interrupted, the amount of packets stored in the FIFO 2 is always the first predetermined amount because neither transmission nor writing is performed. Here, when the communication interruption is eliminated, the FIFO 2 packet is read and transmitted by the transmission unit 3. When the amount of packets stored in the FIFO 2 is even smaller than the first predetermined amount, the first signal processing unit 4 writes the generated packet directly in the FIFO 2 instead of the memory unit 1.

そして、送信部3が、FIFO2に蓄積されている第1の所定量のパケット全てを送信し終えると、パケットをリアルタイムに送信する状態(リアルタイム通信)に復帰する。なお、この間も、FIFO2に蓄積されているパケットの量が第1の所定量より少ないので、第1の信号処理部4は生成したパケットをFIFO2に書き込む。   When the transmission unit 3 finishes transmitting all the first predetermined amount of packets stored in the FIFO 2, the state returns to a state in which packets are transmitted in real time (real time communication). During this time, the first signal processing unit 4 writes the generated packet in the FIFO 2 because the amount of packets stored in the FIFO 2 is smaller than the first predetermined amount.

そして、FIFO2内に蓄積されているパケット量がさらに減少して、第2の所定量(すなわち0)になると、第2の信号処理部5がメモリ部1に記憶され蓄積されたパケットをFIFO2に書き込む。送信部3は、第1の信号処理部4又は第2の信号処理部5からFIFO2に書き込まれたパケットのうち、最古のものから順次パケット送信路に送信するので、パケットをリアルタイムに送信すると共に、メモリ部1に蓄積されたパケットも送信する。これにより、パケット伝送のリアルタイム性を確保しつつ、通信遮断時に蓄積したパケットを失うことなく送信することができる。   Then, when the amount of packets accumulated in the FIFO 2 further decreases to a second predetermined amount (that is, 0), the second signal processing unit 5 stores the accumulated packets stored in the memory unit 1 into the FIFO 2. Write. Since the transmission unit 3 sequentially transmits the packets written in the FIFO 2 from the first signal processing unit 4 or the second signal processing unit 5 to the packet transmission path from the oldest packet, it transmits the packets in real time. At the same time, the packet stored in the memory unit 1 is also transmitted. Thereby, it is possible to transmit packets without losing packets accumulated at the time of communication interruption while ensuring the real-time property of packet transmission.

なお、各パケットにはタイムスタンプや一連の番号等が付されている。また、メモリ部1に一旦蓄積されたパケットには所定のフラグが付される。そのため、パケットを受信した通信相手は、パケットの順序を判定することによって、リアルタイムのパケットであるか、通信遮断等によって一旦メモリ部1に蓄積されたパケットであるかを識別することができる。   Each packet is given a time stamp, a series of numbers, and the like. In addition, a predetermined flag is attached to the packet once accumulated in the memory unit 1. Therefore, the communication partner receiving the packet can identify whether the packet is a real-time packet or a packet once accumulated in the memory unit 1 due to communication interruption or the like by determining the order of the packets.

以上のように、パケット送信路に通信遮断が発生した際には、第1の信号処理部4が生成したパケットはメモリ部1に蓄積され、通信遮断が回復した後には、第1の信号処理部4が生成したパケットはリアルタイムでパケット送信路に送信することができる。このとき、第2の信号処理部5は、FIFO2にパケットが蓄積されていないときのみ(すなわち、FIFO2に書き込まれたパケットが送信部3によって送信され、さらに、第1の信号処理部4が生成した新たなパケットがFIFO2に書き込まれていないときのみ)、メモリ部1に蓄積されたパケットをFIFO2に書き込むので、通信遮断が回復した後に生成されたパケットの伝送のリアルタイム性は確保される。   As described above, when communication interruption occurs in the packet transmission path, the packet generated by the first signal processing unit 4 is stored in the memory unit 1, and after the communication interruption is recovered, the first signal processing is performed. The packet generated by the unit 4 can be transmitted to the packet transmission path in real time. At this time, the second signal processing unit 5 transmits the packet written in the FIFO 2 only when the packet is not accumulated in the FIFO 2 (that is, the packet written in the FIFO 2 is further transmitted by the first signal processing unit 4). Only when the new packet is not written in the FIFO 2), since the packet stored in the memory unit 1 is written in the FIFO 2, the real-time property of transmission of the packet generated after the communication interruption is recovered is ensured.

次に、第2の所定量を“0”よりも大きく設定した場合の、本発明の第1の実施の形態のパケット送信装置の動作を説明する。   Next, the operation of the packet transmission apparatus according to the first embodiment of the present invention when the second predetermined amount is set larger than “0” will be described.

特に、前述した第2の所定量を“0”とした場合では、第1の信号処理部4に逐次データが入力され、常にパケットがFIFO2に書き込まれている状態では、通信遮断が解消した後でも、FIFO2のパケットの量が0にならない場合が生じ、いつまでも、メモリ部1に蓄積されたパケットが送信部3によって送信されないことが生じ得る。第2の所定量を“0”よりも大きく設定すると、このような場合にも、メモリ部1に蓄積されたパケットを送信部3によって送信することができる。   In particular, when the above-mentioned second predetermined amount is set to “0”, when the data is sequentially input to the first signal processing unit 4 and the packet is always written in the FIFO 2, the communication interruption is resolved. However, there is a case where the amount of the FIFO2 packet does not become zero, and the packet stored in the memory unit 1 may not be transmitted by the transmission unit 3 indefinitely. When the second predetermined amount is set larger than “0”, the packet stored in the memory unit 1 can be transmitted by the transmission unit 3 even in such a case.

前述した第2の所定量が0である場合と同様に、パケット送信路に通信遮断が生じていない場合は、FIFO2にはパケットが蓄積されないため、第1の信号処理部4に入力されたデータより生成されたパケットは、そのままFIFO2に書き込まれ、FIFO2から送信部3によってFIFO2から読み出され、パケット送信路に送信される。そのため、FIFO2にはパケットが蓄積されず、第1の信号処理部4に入力されたデータは、リアルタイムでパケット送信路を経て通信相手に送られる。   Similarly to the case where the second predetermined amount is 0 as described above, when communication is not interrupted in the packet transmission path, no data is stored in the FIFO 2, so the data input to the first signal processing unit 4. The generated packet is directly written into the FIFO 2, read out from the FIFO 2 by the transmission unit 3 from the FIFO 2, and transmitted to the packet transmission path. For this reason, no packets are stored in the FIFO 2, and the data input to the first signal processing unit 4 is sent to the communication partner via the packet transmission path in real time.

ここで、ひとたびパケット送信路に通信遮断が発生すると、受信部6はNACKを受信する。送信部3は、パケットが正しくパケット送信路に送信されないため、送信部3のキャッシュにあるパケットの再送処理を繰り返す。その間にも、第1の信号処理部4が生成したパケットはFIFO2に送られるので、通信遮断が解消しない場合は、FIFO2に未送信のパケットが蓄積され始める。そして、FIFO2内のパケットの量が第1の所定量を超えると、第1の信号処理部4は、制御線8を通じてFIFO2にパケットの量が第1の所定量を超えたことを知る。そして、第1の信号処理部4は、FIFO2に蓄積されたパケットの量が第1の所定量を超えた後には、生成したパケットを、FIFO2でなく、メモリ部1に書き込む。   Here, once communication interruption occurs in the packet transmission path, the receiving unit 6 receives NACK. Since the packet is not correctly transmitted to the packet transmission path, the transmission unit 3 repeats the retransmission process of the packet in the cache of the transmission unit 3. In the meantime, since the packet generated by the first signal processing unit 4 is sent to the FIFO 2, if the communication interruption is not solved, untransmitted packets start to be accumulated in the FIFO 2. When the amount of packets in the FIFO 2 exceeds the first predetermined amount, the first signal processing unit 4 knows that the amount of packets in the FIFO 2 has exceeded the first predetermined amount through the control line 8. Then, after the amount of packets accumulated in the FIFO 2 exceeds the first predetermined amount, the first signal processing unit 4 writes the generated packet in the memory unit 1 instead of the FIFO 2.

すなわち、NACKを受信することによって、データが正しく送信されない状態であると判定され、さらに、FIFO2内のパケットの量が第1の所定量を超えることを契機として、第1の信号処理部4は生成したパケットをメモリ部1に記憶させる。   That is, when the NACK is received, it is determined that the data is not correctly transmitted, and the first signal processing unit 4 is triggered by the amount of packets in the FIFO 2 exceeding the first predetermined amount. The generated packet is stored in the memory unit 1.

このとき、パケット送信路の通信遮断が解消されるまではFIFO2に蓄積されているパケットの量は減少しない。従って、FIFO2に蓄積されているパケットの量が第2の所定量(“0”)以下になることがないので、通信遮断が解消する以前に、メモリ部1に書き込まれたパケットが、第2の信号処理部5によってFIFO2に書き込まれることはない。   At this time, the amount of packets stored in the FIFO 2 does not decrease until the communication interruption of the packet transmission path is resolved. Accordingly, since the amount of packets stored in the FIFO 2 does not become the second predetermined amount (“0”) or less, packets written in the memory unit 1 before the communication interruption is canceled Are not written into the FIFO 2 by the signal processing unit 5.

やがて、パケット送信路の通信遮断が解消すると、受信部6は、パケット受信路からACKを受信するので、パケットが正しく送られたと判定し、送信部3にその旨を伝達する。送信部3は、パケットが正しく送られたことを知ると、次のパケットをFIFO2から読み出し、送信する。そして、送信部3によって読み出されパケット送信路に送信されることによって、FIFO2に蓄積されているパケットの量は減少を始める。   Eventually, when the communication interruption of the packet transmission path is resolved, the reception unit 6 receives the ACK from the packet reception path, and therefore determines that the packet has been sent correctly, and notifies the transmission unit 3 accordingly. When the transmission unit 3 knows that the packet has been sent correctly, it reads the next packet from the FIFO 2 and transmits it. Then, the amount of packets stored in the FIFO 2 starts to decrease by being read by the transmission unit 3 and transmitted to the packet transmission path.

通信遮断が発生している間は、FIFO2内に蓄積されているパケットの量は、送信もされず、書き込みもされないので、常に第1の所定量である。そして、通信遮断が解消すると、送信部3によってFIFO2のパケットが読み出されて送信される。そして、FIFO2に蓄積されているパケットの量が第1の所定量より1個でも少なくなると、第1の信号処理部4は、生成したパケットをメモリ部1ではなくFIFO2に直接書き込む。   While communication is interrupted, the amount of packets stored in the FIFO 2 is always the first predetermined amount because neither transmission nor writing is performed. When the communication interruption is resolved, the FIFO 2 packet is read out and transmitted by the transmission unit 3. When the amount of packets stored in the FIFO 2 is even smaller than the first predetermined amount, the first signal processing unit 4 writes the generated packet directly in the FIFO 2 instead of the memory unit 1.

そして、FIFO2内に蓄積されているパケット量がさらに減少して、第2の所定量より小さくなると、第2の信号処理部がメモリ部1に蓄積されたパケットをFIFO2に書き込む。送信部3は、第1の信号処理部4又は第2の信号処理部5からFIFO2に書き込まれたパケットのうち、最古のものから順次パケット送信路に送信するので、パケットをリアルタイムに送信すると共に、メモリ部1に蓄積されたパケットも送信する。これにより、パケット伝送のリアルタイム性を確保しつつ、通信遮断時に蓄積したパケットを失うことなく送信することができる。   When the packet amount stored in the FIFO 2 further decreases and becomes smaller than the second predetermined amount, the second signal processing unit writes the packet stored in the memory unit 1 into the FIFO 2. Since the transmission unit 3 sequentially transmits the packets written in the FIFO 2 from the first signal processing unit 4 or the second signal processing unit 5 to the packet transmission path from the oldest packet, it transmits the packets in real time. At the same time, the packet stored in the memory unit 1 is also transmitted. Thereby, it is possible to transmit packets without losing packets accumulated at the time of communication interruption while ensuring the real-time property of packet transmission.

すなわち、ACKを受信することによって、データが正しく送信される状態であると判定され、さらに、FIFO2内のパケットの量が第2の所定量より小さくなることを契機として、送信部3は、第1の信号処理部4が新たに生成したパケット及びメモリ部1に記憶されたパケットを送信する。   That is, by receiving the ACK, it is determined that the data is correctly transmitted, and further, when the amount of packets in the FIFO 2 becomes smaller than the second predetermined amount, the transmission unit 3 1 signal processing unit 4 transmits a newly generated packet and a packet stored in memory unit 1.

この場合、通信遮断時にメモリ部1に蓄積したパケットを、通信遮断回復後に第1の信号処理部4が生成したパケットよりも先に送信する場合も生じるが、パケットにはタイムスタンプ等が付されているので、送信部3及び通信相手は、リアルタイムのパケットであるか、通信遮断等によって一旦メモリ部1に蓄積されたパケットであるかを識別することができる。なお、メモリ部1に蓄積されたデータ(又は、メモリ部1に保持されなかったデータ)にフラグを付加することによって、送信部3及び通信相手は、メモリ部1に蓄積されたデータであるか否かを識別することができる。   In this case, the packet stored in the memory unit 1 at the time of communication interruption may be transmitted before the packet generated by the first signal processing unit 4 after recovery of communication interruption, but the packet is given a time stamp or the like. Therefore, it is possible to identify whether the transmission unit 3 and the communication partner are real-time packets or packets that are temporarily stored in the memory unit 1 due to communication interruption or the like. Whether the transmission unit 3 and the communication partner are data stored in the memory unit 1 by adding a flag to the data stored in the memory unit 1 (or data not held in the memory unit 1). Whether or not can be identified.

以上のように、パケット送信路に通信遮断が発生した際には、第1の信号処理部4が生成したパケットはメモリ部1に蓄積し、通信遮断が回復した後には、第1の信号処理部4が生成したパケットはリアルタイムでパケット送信路に送信することができる。このとき、第2の信号処理部5は、FIFO2に蓄積されるパケットの量が第2の所定量よりも小さいときのみ、メモリ部1に蓄積されたパケットをFIFO2に書き込むので、通信遮断が回復し、リアルタイムな伝送が可能な状態に復帰した後に、通信遮断時にメモリ部1に蓄積したパケットを効率的に送信することができる。   As described above, when communication interruption occurs in the packet transmission path, the packet generated by the first signal processing unit 4 is stored in the memory unit 1, and after the communication interruption is recovered, the first signal processing is performed. The packet generated by the unit 4 can be transmitted to the packet transmission path in real time. At this time, since the second signal processing unit 5 writes the packet stored in the memory unit 1 to the FIFO 2 only when the amount of packets stored in the FIFO 2 is smaller than the second predetermined amount, the communication interruption is recovered. Then, after returning to a state where real-time transmission is possible, the packets stored in the memory unit 1 can be efficiently transmitted when communication is interrupted.

次に、本発明の第2の実施の形態のパケット送信装置について説明する。   Next, a packet transmission apparatus according to the second embodiment of this invention will be described.

第2の実施の形態のパケット送信装置は、第1の実施の形態のパケット送信装置の動作をソフトウェアによって実現したものである。なお、第1の実施の形態と同一の動作をする構成には同一の符号を付し、その説明は省略する。   The packet transmission apparatus according to the second embodiment realizes the operation of the packet transmission apparatus according to the first embodiment by software. In addition, the same code | symbol is attached | subjected to the structure which carries out the same operation | movement as 1st Embodiment, and the description is abbreviate | omitted.

図2は、第2の実施の形態のパケット送信装置の構成を示すブロック図である。   FIG. 2 is a block diagram illustrating a configuration of the packet transmission apparatus according to the second embodiment.

プロセッサ10は、図示しないデータ生成装置からデータを受け取り、該データをパケット化して、送信部3に送る。   The processor 10 receives data from a data generation device (not shown), packetizes the data, and sends it to the transmission unit 3.

このプロセッサ10は、生成したパケットを、リアルタイム伝送が必要な「1種蓄積パケット」とリアルタイム伝送が必要とされない「2種蓄積パケット」との2種類に分けて記憶する。それぞれのパケットは、生成した時刻、及び、生成の順序と共に、パケットの種別を判定可能に記憶される。また、プロセッサ10は、1種蓄積パケットの記憶量によってパケット生成及び記憶の動作を変更する。その基準として、第1、第2の2種の所定量を設定する。第2の所定量は第1の所定量より小さいものとし、第2の所定量を0とすることも可能である。   The processor 10 stores the generated packets by dividing them into two types of “1 type stored packet” that requires real time transmission and “2 type stored packet” that does not require real time transmission. Each packet is stored such that the packet type can be determined together with the generation time and the generation order. Further, the processor 10 changes the packet generation and storage operation depending on the storage amount of the one type of accumulated packet. As the reference, first and second predetermined amounts are set. The second predetermined amount may be smaller than the first predetermined amount, and the second predetermined amount may be zero.

次に、第2の実施の形態のパケット送信装置の動作を説明する。   Next, the operation of the packet transmission apparatus according to the second embodiment will be described.

第2の実施の形態のパケット送信装置の動作は、逐次入力されるデータが1パケット分蓄積されたときに行なわれるパケット化処理、1種蓄積パケットの蓄積量が第2の所定量を超えたときに行なわれるパケット種別変更処理、及び、パケットを送信するためのパケット送信処理、の3つに大きく分けられる。   The operation of the packet transmission apparatus according to the second embodiment is a packetization process that is performed when data sequentially input is accumulated for one packet, and the accumulated amount of the one-type accumulated packet exceeds the second predetermined amount. It can be broadly divided into three types: packet type change processing that is sometimes performed, and packet transmission processing for transmitting packets.

プロセッサ10は、パケット送信装置に逐次的に入力される入力データが1パケット分蓄積されたときに、パケットを生成する。そして、パケットの種別を決定して、生成したパケットを記憶する。すなわち、その時点でのパケットの蓄積量が第1の所定量を超えないときは1種蓄積パケットとして記憶し、パケットの蓄積量が第1の所定量以上であるときには2種蓄積パケットとして記憶する。   The processor 10 generates a packet when one packet of input data sequentially input to the packet transmission device is accumulated. Then, the type of the packet is determined and the generated packet is stored. That is, when the accumulated amount of packets at that time does not exceed the first predetermined amount, it is stored as one type of accumulated packet, and when the accumulated amount of packets is equal to or more than the first predetermined amount, it is stored as two types of accumulated packets. .

また、1種蓄積パケットの蓄積量が第2の所定量よりも小さい場合には、2種蓄積パケット中から最古のものを抽出し、パケット種別を変更して、蓄積時刻をその時点(種別変更時点)に書き換え、新たに1種蓄積パケットとして記憶する。   If the accumulated amount of the one type of accumulated packet is smaller than the second predetermined amount, the oldest one is extracted from the two types of accumulated packets, the packet type is changed, and the accumulation time is changed to the current time (type) At the time of change) and newly stored as a one-type accumulated packet.

次に、プロセッサ10に蓄積された1種蓄積パケットは、送信部3からパケット送信路を経由してパケット受け取り側に送られる。プロセッサ10は、この送信したパケットに対するACKを受信したとの通知を受信部6から受け取ったときには、最後に送信したパケットを送信済みとして削除し、プロセッサ10から1種蓄積パケットの中で最古のものを読み出し、次の送信パケットとして送信部3に送る。   Next, the one-type stored packet stored in the processor 10 is sent from the transmitter 3 to the packet receiving side via the packet transmission path. When the processor 10 receives a notification from the receiving unit 6 that it has received an ACK for the transmitted packet, the processor 10 deletes the last transmitted packet as transmitted, and the processor 10 deletes the oldest one of the one kind of accumulated packets. One is read and sent to the transmitter 3 as the next transmission packet.

一方、受信部6がNACKを受信したとの通知を受け取ったときには、プロセッサ10は、最後に送信したパケットは送信失敗として削除せず、最後に送信したパケットを次の送信パケットとして送信部3に再び送る。そして、送信部3は、プロセッサ10によって設定されたパケットを送信する。   On the other hand, when the notification that the reception unit 6 has received the NACK is received, the processor 10 does not delete the last transmitted packet as a transmission failure, and the last transmitted packet is transmitted to the transmission unit 3 as the next transmission packet. Send again. Then, the transmission unit 3 transmits the packet set by the processor 10.

図3は、第2の実施の形態のパケット送信装置の処理を示すフローチャートである。   FIG. 3 is a flowchart illustrating processing of the packet transmission device according to the second embodiment.

プロセッサ10には、図示しないデータ生成装置からデータが逐次的に入力されている。そして、このデータが一定量(すなわち、1パケット分)蓄積されたか否かを判定する(処理1001)。データが1パケット分蓄積されていない場合には、処理S1003に移行し、1パケット分のデータが蓄積されるまでこの処理を繰り返す。データが1パケット分蓄積されたと判定すると、処理1002に移行する。   Data is sequentially input to the processor 10 from a data generation device (not shown). Then, it is determined whether or not a certain amount of this data has been accumulated (that is, one packet) (process 1001). When data for one packet is not accumulated, the process proceeds to step S1003, and this process is repeated until data for one packet is accumulated. If it is determined that one packet of data has been accumulated, the processing proceeds to processing 1002.

処理1002では、蓄積されたデータからパケットを生成するパケット化処理(図4)を行う。このパケット化処理では、生成されたパケットを、プロセッサ10内部のパケットの蓄積量に応じて、1種蓄積パケット又は2種蓄積パケットとして、パケットを記憶する。   In the process 1002, a packetization process (FIG. 4) for generating a packet from the accumulated data is performed. In this packetization process, the generated packet is stored as a one-type stored packet or a two-type stored packet according to the amount of packets stored in the processor 10.

次に、プロセッサ10に蓄積されている1種蓄積パケットの量が、第2の所定量以上であるか否かを判定する(処理1003)。1種蓄積パケットの蓄積量が第2の所定量よりも小さければ、処理1004に移行し、第2の所定量以上であれば、処理1004を行うことなく処理1005に移行する。   Next, it is determined whether or not the amount of the one-type stored packet stored in the processor 10 is equal to or greater than a second predetermined amount (process 1003). If the accumulated amount of the one-type accumulated packet is smaller than the second predetermined amount, the process proceeds to process 1004, and if it is greater than or equal to the second predetermined amount, the process proceeds to process 1005 without performing process 1004.

処理1004では、プロセッサ10に蓄積されている1種蓄積パケットを、2種蓄積パケットに変更するパケット種別変更処理(図5)を行う。   In process 1004, a packet type change process (FIG. 5) is performed in which the one-type stored packet stored in the processor 10 is changed to a two-type stored packet.

処理1005では、プロセッサ10に蓄積されている1種蓄積パケットのうち最古のものを送信部3に送り、パケット送信路に送信するパケット送信処理(図6)を行う。   In the process 1005, the oldest packet of the one kind of accumulated packets accumulated in the processor 10 is sent to the transmitting unit 3 and a packet transmission process (FIG. 6) for transmitting to the packet transmission path is performed.

図4は、プロセッサ10の行うパケット化処理(図3の処理1002)の詳細を示すフローチャートである。   FIG. 4 is a flowchart showing details of the packetization processing (processing 1002 in FIG. 3) performed by the processor 10.

プロセッサ10は、逐次的に入力されるデータが一定量(1パケット分)蓄積されると、蓄積されたデータからパケットを生成する(処理2001)。   The processor 10 generates a packet from the accumulated data when a certain amount of sequentially input data is accumulated (for one packet) (processing 2001).

次に、プロセッサ10に蓄積されているパケットのうち、1種蓄積パケットの量が、第1の所定量(例えば、2個)より大きいか否かを判定する(処理2002)。第1の所定量よりも大きければ処理2003に移行し、生成したパケットを2種蓄積パケットとして記憶する。一方、第1の所定量以下であれば、処理2004に移行し、生成したパケットを1種蓄積パケットとして記憶する。   Next, it is determined whether or not the amount of the one type of accumulated packet among the packets accumulated in the processor 10 is larger than a first predetermined amount (for example, 2) (process 2002). If it is larger than the first predetermined amount, the process proceeds to processing 2003, and the generated packet is stored as two types of accumulated packets. On the other hand, if it is equal to or less than the first predetermined amount, the process proceeds to processing 2004, and the generated packet is stored as a one-type accumulated packet.

図5は、プロセッサ10の行うパケット種別変更処理(図3の処理1004)の詳細を示すフローチャートである。   FIG. 5 is a flowchart showing details of the packet type change process (process 1004 in FIG. 3) performed by the processor 10.

プロセッサ10は、蓄積されているパケットのうち、2種蓄積パケットの最古のもの、すなわち、2種蓄積パケットに付された蓄積時刻の情報が最古のものを抽出する(処理3001)。   The processor 10 extracts the oldest of the two types of stored packets, that is, the oldest information of the storage time attached to the two types of stored packets from the stored packets (processing 3001).

次に、抽出した2種蓄積パケットの蓄積時刻を現在の時刻に更新し、1種蓄積パケットをして変更して記憶する(処理3002)。   Next, the storage time of the extracted two kinds of accumulated packets is updated to the current time, and the one kind of accumulated packets is changed and stored (process 3002).

このようすることで、1種蓄積パケットの量が第1の所定量より小さいときに、既に蓄積されている2種蓄積パケットを1種蓄積パケットに変更するので、該1種蓄積パケットを速やかに送信部3に送り、パケット送信路に送信することができる。   In this way, when the amount of the one type of accumulated packet is smaller than the first predetermined amount, the already accumulated two types of accumulated packet are changed to the one type of accumulated packet. It can send to the transmission part 3 and can transmit to a packet transmission path.

図6は、パケット送信処理(図3の処理1005)の詳細を示すフローチャートである。   FIG. 6 is a flowchart showing details of the packet transmission process (process 1005 in FIG. 3).

プロセッサ10は、1種蓄積パケットのうち最古のものを抽出して読み出して、送信部3に送る(処理4001)。   The processor 10 extracts and reads out the oldest one of the one kind of accumulated packets, and sends it to the transmitter 3 (process 4001).

送信部3は、プロセッサ10から受け取ったパケットをパケット送信路に送信する(処理4002)。   The transmission unit 3 transmits the packet received from the processor 10 to the packet transmission path (process 4002).

次に、受信部6は、送信部3の送信したパケットに対してACK又はNACKのいずれが送られてきたかを判定する(処理4003)。NACKが送られてきた場合には、パケットが正常に伝送されていないと判定し、処理4001で既に読み込んでいるパケットを再び送信部3に送り、パケットを再送する(処理4002、4003)。   Next, the receiving unit 6 determines whether ACK or NACK has been sent to the packet transmitted by the transmitting unit 3 (process 4003). If NACK is sent, it is determined that the packet is not normally transmitted, the packet already read in the process 4001 is sent again to the transmission unit 3, and the packet is retransmitted (process 4002, 4003).

一方、受信部6が、ACKが送られてきたと判定した場合には、プロセッサ10は、送信部に送ったパケットを削除して(処理4004)、本フローチャートを終了し、図3のフローチャートに復帰する。   On the other hand, if the receiving unit 6 determines that an ACK has been sent, the processor 10 deletes the packet sent to the sending unit (process 4004), ends this flowchart, and returns to the flowchart of FIG. To do.

以上の処理によると、パケット送信路に通信遮断が起きていないときには、受信部6は、送信部3が送信したパケットに対するACKを受信する。そのため、パケットは順次送信される。プロセッサ10に逐次入力されるデータから生成されるパケットは、1種蓄積パケットとして記憶され、時刻の古いものから順次、リアルタイムに送信される。   According to the above processing, when communication interruption has not occurred in the packet transmission path, the reception unit 6 receives an ACK for the packet transmitted by the transmission unit 3. Therefore, the packets are transmitted sequentially. Packets generated from data sequentially input to the processor 10 are stored as one kind of accumulated packets, and are sequentially transmitted in real time from the oldest one.

しかし、ひとたびパケット送信路に通信遮断が起きると、受信部6は、NACKを受信するので、プロセッサ10は、先に送信部3に送ったパケットを、再度送信部3に送る。送信部3は、このパケットを再送する処理を行う。そのため、プロセッサ10に蓄積されている1種蓄積パケットの最古のものは削除されず、1種蓄積パケットの量が増加し始める。そして、1種蓄積パケットの量が第1の所定量を超えると、プロセッサ10は、生成されたパケットを2種蓄積パケットとして記憶する。生成されたパケットは、通信遮断が解消し、1種蓄積パケットの量が第1の所定量よりも小さくなるまでは、2種蓄積パケットとして蓄積される。   However, once communication interruption occurs in the packet transmission path, the receiving unit 6 receives the NACK, so the processor 10 sends the packet previously sent to the sending unit 3 to the sending unit 3 again. The transmission unit 3 performs processing for retransmitting this packet. For this reason, the oldest one kind of accumulated packet accumulated in the processor 10 is not deleted, and the amount of the one kind accumulated packet starts to increase. When the amount of the one type of accumulated packet exceeds the first predetermined amount, the processor 10 stores the generated packet as the two types of accumulated packet. The generated packet is stored as a two-type stored packet until the communication interruption is resolved and the amount of the one-type stored packet is smaller than the first predetermined amount.

パケット送信路の通信遮断が解消すると、受信部6は、ACKを受信する。そして、送信部3は新たに1種蓄積パケットを読み込む。プロセッサ10では、ACKが確認された1種蓄積パケットは削除され、1種蓄積パケットの量は減少し始める。そして、1種蓄積パケットの量が第1の所定量より少なくなると、プロセッサ10は、それ以降に生成するパケットを、1種蓄積パケットとして記憶する。この1種蓄積パケットは、通信遮断期間中に生成して蓄積された2種蓄積パケットよりも優先して送信されるようになる。   When the communication interruption of the packet transmission path is resolved, the receiving unit 6 receives ACK. Then, the transmission unit 3 newly reads one type of accumulated packet. In the processor 10, the one-type stored packet for which ACK has been confirmed is deleted, and the amount of the one-type stored packet starts to decrease. When the amount of the one type of accumulated packet becomes smaller than the first predetermined amount, the processor 10 stores a packet generated thereafter as the one type of accumulated packet. This type 1 accumulation packet is transmitted with priority over the type 2 accumulation packet generated and accumulated during the communication cut-off period.

やがて、通信遮断解消以前に生成された1種蓄積パケットを送信し、1種蓄積パケットの量が減少すると、遅延の少ないリアルタイムなパケット送信状態に復帰する。   Eventually, when the type 1 accumulation packet generated before the cancellation of communication interruption is transmitted and the amount of the type 1 accumulation packet is reduced, the packet transmission state returns to a real-time packet transmission state with little delay.

そして、1種蓄積パケットの量がさらに減少し、第2の所定量より小さくなると、通信遮断中に生成され2種蓄積パケットとして記憶されたパケットが、パケット種別変更処理(図5)によって1種蓄積パケットとして改めて記憶される。1種蓄積パケットは、蓄積時刻順に送信部3によって読み込まれ送信されるので、通信遮断中に2種蓄積パケットとして記憶したパケットも失われることなく、通信遮断解消後にパケット送信路に送信することができる。   When the amount of the one type of accumulated packet further decreases and becomes smaller than the second predetermined amount, the packet generated during the communication interruption and stored as the two types of accumulated packet is changed to one type by the packet type changing process (FIG. 5). It is stored again as a stored packet. Since the type 1 accumulation packet is read and transmitted by the transmission unit 3 in the order of accumulation time, the packet stored as the type 2 accumulation packet during communication interruption is not lost, and can be transmitted to the packet transmission path after the communication interruption is canceled. it can.

本発明は、入力されたデータを、リアルタイムで送信すると共に、通信遮断時に入力されたデータを失うことなく送信相手に送信するデータ転送装置に用いられる。特に、送信路に無線通信を用いる医療機器等に好適である。   The present invention is used in a data transfer apparatus that transmits input data in real time and transmits the input data to a transmission partner without losing the data when communication is interrupted. In particular, it is suitable for medical devices that use wireless communication in the transmission path.

本発明の第1の実施の形態の、パケット送信装置の全体構成を示すブロッック図である。It is a block diagram which shows the whole structure of the packet transmission apparatus of the 1st Embodiment of this invention. 本発明の第2の実施の形態の、パケット送信装置の構成を示すブロック図である。It is a block diagram which shows the structure of the packet transmitter of the 2nd Embodiment of this invention. 本発明の第2の実施の形態の、パケット送信装置の処理を示すフローチャートである。It is a flowchart which shows the process of the packet transmission apparatus of the 2nd Embodiment of this invention. 本発明の第2の実施の形態の、プロセッサ10が行うパケット化処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the packetization process which the processor 10 of the 2nd Embodiment of this invention performs. 本発明の第2の実施の形態の、プロセッサ10が行うパケット種別変更処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the packet type change process which the processor 10 of the 2nd Embodiment of this invention performs. 本発明の第2の実施の形態の、パケット送信装置が行うパケット送信処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the packet transmission process which the packet transmission apparatus of the 2nd Embodiment of this invention performs.

符号の説明Explanation of symbols

1 メモリ装置
2 FIFO
3 パケット送信部
4 第1の信号処理部
5 第2の信号処理部
6 受信部
7、8、9 制御線
10 プロセッサ
1 Memory device 2 FIFO
DESCRIPTION OF SYMBOLS 3 Packet transmission part 4 1st signal processing part 5 2nd signal processing part 6 Reception part 7, 8, 9 Control line 10 Processor

Claims (11)

データを生成する第1の信号処理部と、
前記第1の信号処理部によって生成されたデータを送信する送信部と、
前記送信部が送信したデータが正しく送信されたかによって、送信路の状態を判定する判定部と、
前記第1の信号処理部によって生成されたデータを記憶する記憶部と、
を備えたデータ送信装置において、
データが正しく送信されない状態であると判定された場合には、前記送信部は、正しく送信されなかったと判定されたデータを再送すると共に、前記第1の信号処理部は、生成したデータを前記記憶部に記憶し、
データが正しく送信される状態であると判定された場合には、前記送信部は、前記第1の信号処理部によって新たに生成されたデータ及び前記記憶部に記憶されたデータを送信することを特徴とするデータ送信装置。
A first signal processing unit for generating data;
A transmission unit for transmitting data generated by the first signal processing unit;
A determination unit that determines the state of the transmission path according to whether the data transmitted by the transmission unit is correctly transmitted; and
A storage unit for storing data generated by the first signal processing unit;
In a data transmission device comprising:
When it is determined that the data is not correctly transmitted, the transmission unit retransmits the data determined not to be transmitted correctly, and the first signal processing unit stores the generated data in the storage Remember in the department,
When it is determined that the data is correctly transmitted, the transmission unit transmits the data newly generated by the first signal processing unit and the data stored in the storage unit. A data transmission device.
データを生成する第1の信号処理部と、
前記第1の信号処理部によって生成されたデータを記憶する送信バッファと、
前記前記送信バッファに記憶されたデータを送信する送信部と、
前記送信部が送信したデータが正しく送信されたか否かを判定する判定部と、
前記第1の信号処理部によって生成されたデータを記憶する記憶部と、
前記記憶部に記憶されたデータを前記送信バッファに転送する第2の信号処理部と、
を備えたデータ送信装置において、
前記送信部は、前記判定部によってデータが正しく送信されたと判定された場合には、前記送信バッファからデータを読み込み該データを送信し、前記判定部によってデータが正しく送信されなかったと判定された場合には、正しく送信されなかったと判定されたデータを再送し、
前記第1の信号処理部は、前記送信バッファに記憶されているデータ量と第1の所定量との比較結果に基づいて、生成したデータを、前記送信バッファに記憶させるか、前記記憶部に記憶させるかを決定し、
前記第2の信号処理部は、前記送信バッファに記憶されているデータ量と第2の所定量との比較結果に基づいて、前記記憶部に記憶されたデータを前記送信バッファに転送するか否かを決定することを特徴とするデータ送信装置。
A first signal processing unit for generating data;
A transmission buffer for storing data generated by the first signal processing unit;
A transmission unit for transmitting data stored in the transmission buffer;
A determination unit for determining whether or not the data transmitted by the transmission unit is correctly transmitted;
A storage unit for storing data generated by the first signal processing unit;
A second signal processing unit for transferring data stored in the storage unit to the transmission buffer;
In a data transmission device comprising:
When the determination unit determines that the data has been transmitted correctly, the transmission unit reads the data from the transmission buffer and transmits the data, and when the determination unit determines that the data has not been transmitted correctly Retransmits data that was determined not to be sent correctly,
The first signal processing unit stores the generated data in the transmission buffer based on a comparison result between the data amount stored in the transmission buffer and a first predetermined amount, or stores the generated data in the storage unit. Decide whether to remember,
Whether the second signal processing unit transfers the data stored in the storage unit to the transmission buffer based on a comparison result between the data amount stored in the transmission buffer and a second predetermined amount A data transmitting apparatus characterized by determining whether or not.
前記第2の所定量は0であり、
前記第2の信号処理部は、前記送信バッファにデータが記憶されていない場合に、前記記憶部に記憶されたデータを前記送信バッファに記憶させることを特徴とする請求項2に記載のデータ送信装置。
The second predetermined amount is zero;
The data transmission according to claim 2, wherein the second signal processing unit stores the data stored in the storage unit in the transmission buffer when the data is not stored in the transmission buffer. apparatus.
前記送信部は、前記第1の信号処理部によって送信バッファに記憶されたデータ及び前記第2の信号処理装置によって記憶部から送信バッファに転送されたデータを送信することを特徴とする請求項2又は3に記載のデータ送信装置。   The transmission unit transmits the data stored in the transmission buffer by the first signal processing unit and the data transferred from the storage unit to the transmission buffer by the second signal processing device. Or the data transmission device according to 3; 前記記憶部に記憶されたデータ又は前記記憶部に記憶されなかったデータの少なくとも一方には、所定のフラグが付加されることによって、前記送信部が、前記記憶部に記憶されたデータであるか否かを識別可能としたことを特徴とする請求項2から4に記載のいずれか一つに記載のデータ送信装置。   Whether at least one of the data stored in the storage unit or the data not stored in the storage unit is a data stored in the storage unit by adding a predetermined flag to the data. 5. The data transmission device according to claim 2, wherein it is possible to identify whether or not. 前記第1の信号処理部が生成したデータに一連番号が付加されることによって、前記送信部が、前記データの順序を識別可能としたことを特徴とする請求項2から4に記載のいずれか一つに記載のデータ送信装置。   The serial number is added to the data generated by the first signal processing unit, so that the transmission unit can identify the order of the data. The data transmission device according to one. データを生成し、該データを第1のデータ又は第2のデータとして記憶するプロセッサと、前記プロセッサによって生成されたデータを送信する送信部と、を備えたデータ送信装置に用いられるデータ送信方法であって、
前記送信部によって送信されたデータが正しく送信されたか否かを判定する第1の手順と、
前記生成した第1のデータの量と第1の所定量との比較結果に基づいて、前記プロセッサによって生成されたデータを、第1のデータとして記憶するか、第2のデータとして記憶するかを決定する第2の手順と、
前記第1のデータの量と第2の所定量との比較結果に基づいて、前記記憶された第2のデータを第1のデータに変更して記憶するか否かを決定する第3の手順と、を含むことを特徴とするデータ送信方法。
A data transmission method used in a data transmission apparatus, comprising: a processor that generates data and stores the data as first data or second data; and a transmission unit that transmits data generated by the processor. There,
A first procedure for determining whether or not the data transmitted by the transmission unit has been transmitted correctly;
Whether the data generated by the processor is stored as first data or second data based on a comparison result between the generated first data amount and a first predetermined amount A second procedure to determine;
Third procedure for determining whether or not to change the stored second data to the first data based on the comparison result between the amount of the first data and the second predetermined amount. A data transmission method comprising:
前記プロセッサは、
前記第1の手順によってデータが正しく送信されたと判定された場合には、前記送信部に第1のデータを送り、
前記第1の手順によってデータが正しく送信されなかったと判定された場合には、正しく送信されなかったと判定されたデータを再送する第4の手順を含むことを特徴とする請求項7に記載のデータ送信方法。
The processor is
If it is determined that the data has been transmitted correctly by the first procedure, the first data is sent to the transmitter,
8. The data according to claim 7, further comprising: a fourth procedure for retransmitting data determined not to be transmitted correctly when it is determined that the data has not been transmitted correctly by the first procedure. Transmission method.
前記第2の所定量は0であり、
前記第3の手順は、前記第1のデータが記憶されていない場合に、前記第2のデータを第1のデータに変更して記憶することを特徴とする請求項7又は8に記載のデータ送信方法。
The second predetermined amount is zero;
The data according to claim 7 or 8, wherein the third procedure changes the second data to the first data and stores the first data when the first data is not stored. Transmission method.
前記第2のデータとして記憶されたデータ又は前記第2のデータとして記憶されなかったデータの少なくとも一方には、所定のフラグが付加されることによって、前記送信部が、前記第2のデータとして記憶されたデータであるか否かを識別可能としたことを特徴とする請求項7から9のいずれか一つに記載のデータ送信装置。   A predetermined flag is added to at least one of data stored as the second data or data not stored as the second data, so that the transmission unit stores the data as the second data. 10. The data transmission device according to claim 7, wherein it is possible to identify whether the received data is received data. 前記プロセッサが生成したデータに一連番号が付加されることによって、前記送信部が、前記データの順序を識別可能としたことを特徴とする請求項7から9のいずれか一つに記載のデータ送信装置。   The data transmission according to any one of claims 7 to 9, wherein the transmission unit can identify the order of the data by adding a serial number to the data generated by the processor. apparatus.
JP2003319660A 2003-09-11 2003-09-11 Packet transmitter Expired - Fee Related JP3930842B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003319660A JP3930842B2 (en) 2003-09-11 2003-09-11 Packet transmitter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003319660A JP3930842B2 (en) 2003-09-11 2003-09-11 Packet transmitter

Publications (2)

Publication Number Publication Date
JP2005086753A true JP2005086753A (en) 2005-03-31
JP3930842B2 JP3930842B2 (en) 2007-06-13

Family

ID=34418548

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003319660A Expired - Fee Related JP3930842B2 (en) 2003-09-11 2003-09-11 Packet transmitter

Country Status (1)

Country Link
JP (1) JP3930842B2 (en)

Also Published As

Publication number Publication date
JP3930842B2 (en) 2007-06-13

Similar Documents

Publication Publication Date Title
JP4495085B2 (en) Communication system, communication apparatus, and data retransmission control method
KR101139996B1 (en) Data flow control with duplicate acknowledgment
KR100772528B1 (en) Method and apparatus for efficient packet retransmission in wired/wireless network
US7496038B2 (en) Method for faster detection and retransmission of lost TCP segments
JP4153502B2 (en) Communication device and logical link error detection method
US9031076B2 (en) Processing requests
EP2978171B1 (en) Communication method, communication device, and communication program
US9118548B2 (en) System, device and method for distributing link state information in a communication network
JP2007053588A (en) Packet retransmission method, packet retransmission system, packet retransmission program, and program recording medium
JP2006287925A (en) Error recovery mechanism and network element including the same
JP2009089197A (en) Repeating device
JP2005520374A (en) Changes to TCP / IP
JP5091463B2 (en) Message transmission / reception system, message transmission / reception method, message transmission apparatus, message reception apparatus, and program
JP6547973B2 (en) Stream control method and system
JP2006191368A (en) Network transmission device
JP2005143076A (en) Packet communication system, packet communication method, data reception system, and data reception method
KR101611663B1 (en) Data communications using connectionless-oriented protocol
JP3930842B2 (en) Packet transmitter
JP3950865B2 (en) ATM communication system
JP2003304273A (en) Device, program and method for repeating packet
JP2008099139A (en) Communication method
JP4755036B2 (en) Retransmission control method, retransmission control device, and communication device
JP2006237968A (en) System and method for communication
JP2004241872A (en) Information communication method and repeating device
JP2004349783A (en) Mobile communication method and system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051213

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060213

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060314

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060515

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060706

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20060720

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061212

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070213

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: 20070306

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070309

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees