JP2008219323A - Packet communication method - Google Patents

Packet communication method Download PDF

Info

Publication number
JP2008219323A
JP2008219323A JP2007052293A JP2007052293A JP2008219323A JP 2008219323 A JP2008219323 A JP 2008219323A JP 2007052293 A JP2007052293 A JP 2007052293A JP 2007052293 A JP2007052293 A JP 2007052293A JP 2008219323 A JP2008219323 A JP 2008219323A
Authority
JP
Japan
Prior art keywords
packet
packet number
last
transmitted
received
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
JP2007052293A
Other languages
Japanese (ja)
Inventor
Norihiro Ito
徳弘 伊藤
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.)
Tietech Co Ltd
Original Assignee
Tietech 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 Tietech Co Ltd filed Critical Tietech Co Ltd
Priority to JP2007052293A priority Critical patent/JP2008219323A/en
Publication of JP2008219323A publication Critical patent/JP2008219323A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To make it possible to correctly and efficiently transmit again when the transmitting side does not receive a notification showing that a receiving side has normally received a packet transmitted from the transmitting side. <P>SOLUTION: In the packet communication method by which the transmitting side sequentially transmits a packet with a packet number attached to the receiving side, a notification is made to the transmitting side when the receiving side normally receives the packet, and the transmitting side restarts transmission at a packet number which has not been normally received by the receiving side when a notification of normally receiving the packet is not received from the receiving side, when a notification of normally receiving the packet is not received until the preceding packet of the packet with the last packet number while the data amount of the packet with the last packet number attached is one byte, a data amount from a packet with a packet number about which the notification of normally receiving the packet is not received till the preceding packet of the packet with the last packet number is divided into small parts and sequentially transmitted, and the packet with the last packet number is transmitted without reducing a data amount. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、送信側から送信されたパケットを受信側で正常に受信したことを示す通知が送信側で受け取れなかった場合に送信側からパケットを再送するパケット通信方法に関する。   The present invention relates to a packet communication method for retransmitting a packet from a transmission side when a notification indicating that the packet transmitted from the transmission side has been normally received at the reception side is not received at the transmission side.

従来のパケット通信方法においては、パケット番号が付与されたパケットを送信側から順次受信側へ送信し、受信側がパケットを正常に受信した場合には、正常に受信したことをACK信号により送信側へ通知している。そして、送信側がACK信号を受信しない場合には、受信側がパケットを正しく受信できなかった、すなわち未達(NAK)が発生したと判断して、未達のパケットを再送している。なお、送信側がACK信号を受信しない現象は、受信側がパケットを正常に受信できなくてACK信号を送信しなかった場合と、受信側がパケットを正常に受信してACK信号を送信したにも関わらず、送信側でACK信号を受信できなかった場合の2つの場合に生じる。   In the conventional packet communication method, packets with packet numbers are sequentially transmitted from the transmission side to the reception side, and when the reception side has received the packet normally, the fact that the packet has been received normally is transmitted to the transmission side by an ACK signal. Notify. When the transmitting side does not receive the ACK signal, it is determined that the receiving side has not received the packet correctly, that is, non-reaching (NAK) has occurred, and the unreachable packet is retransmitted. Note that the phenomenon in which the transmitting side does not receive the ACK signal occurs when the receiving side cannot receive the packet normally and does not transmit the ACK signal, and when the receiving side normally receives the packet and transmits the ACK signal. This occurs in two cases where the transmission side cannot receive the ACK signal.

また、送信側から送信されたパケットを受信側で正常に受信できない未達は、妨害電波や他の機器からのノイズ等によって生じる。前記未達は、送信されるデータ量が大きい場合に生じやすく、その場合には再送時に再び未達となるおそれがある。前記妨害電波や他の機器からのノイズ等の通信障害による未達を防ぐには、予め全パケットのデータ量を小さくする、例えば1バイトにするのが好ましいが、その場合には、全データの送信時間が長くなる不都合が発生する。   Further, the failure to normally receive a packet transmitted from the transmission side on the reception side is caused by interference radio waves, noise from other devices, or the like. The unreached state is likely to occur when the amount of data to be transmitted is large. In this case, the unreached state may not be reached again at the time of retransmission. In order to prevent non-reach due to interference such as interference from radio waves or noise from other devices, it is preferable to reduce the data amount of all packets in advance, for example, 1 byte. The inconvenience that the transmission time becomes long occurs.

そこで、データを効率よく送信し、かつ再送時の未達を防ぐには、未達を生じたパケット番号以降のパケットについてはデータ量を小さく分割して、未達を生じたパケット番号から送信を再開することが有効となる。図6に示すパケット構成のパケット通信方法では、1つのパケットのデータ量を例えば256バイト、最初のパケット番号を0、最後のパケット番号をEとし、送信するデータ量に応じてパケット番号[0、[1〜9、A〜D]〜E]までのパケットで送信し、未達が起きた場合には未達が起きたパケット番号以降のパケットのデータ量を例えば32バイトと小さく分割して、未達(NAK)が起きたパケット番号のパケットからパケットの送信を再開することとしている。   Therefore, in order to transmit data efficiently and prevent unreachability at the time of retransmission, the data amount is divided into smaller parts for packets after the packet number that has not reached, and transmission is started from the packet number that has not reached. It is effective to resume. In the packet communication method having the packet configuration shown in FIG. 6, the data amount of one packet is, for example, 256 bytes, the first packet number is 0, the last packet number is E, and the packet number [0, [1-9, A to D] to E] are transmitted in packets, and when unreachable occurs, the data amount of the packet after the packet number where unreachable occurs is divided into, for example, 32 bytes, The transmission of the packet is resumed from the packet of the packet number where the non-delivery (NAK) has occurred.

また、前記のように、未達を生じたパケット番号以降のパケットについてデータ量を小さく分割して送信を再開する方法では、最後のパケット番号Eで未達(NAK)が起きた場合、本来であれば、[E][0][1]・・・と分割して再送することとなる。しかし、[E]は一連のデータの終わりを示し、一方[0]は新たなデータの始まりを意味しており、未だ一連のデータ送信が終了していない状態では、新たなデータの始まりを意味する[0]を含む再送を行うことができない。そこで、本出願人は、図7に示すように、最後のパケット番号Eで未達(NAK)が起きたときだけパケット番号1から分割送信を開始するパケット通信方法を採用した。   In addition, as described above, in the method of resuming transmission by dividing the data amount into packets after the packet number that has not been delivered, when the last packet number E has not been reached (NAK), If there is, it will be divided and retransmitted as [E] [0] [1]. However, [E] indicates the end of a series of data, while [0] means the start of new data, and in the state where the series of data transmission has not yet ended, it means the start of new data. Cannot be retransmitted including [0]. Therefore, as shown in FIG. 7, the present applicant has adopted a packet communication method in which the divided transmission is started from the packet number 1 only when the last packet number E is not reached (NAK).

しかしながら、前記パケット通信方法を実際に行ってみると、最後のパケット番号Eで未達(NAK)が起きて、データが小さく分割されたパケット番号1から送信が再開された場合、図8に示すように、受信側がパケット番号1のパケット[32バイト]を受信できず、送信側がパケット番号1のパケットを延々と送信し続ける現象が発生する場合のあることが判明した。すなわち、受信側が最後のパケット番号Eを受信できず、パケット番号Eの受信について、ACK信号(正常に受信した通知)を送信側へ送信しなかった場合、送信側ではパケット番号Eで未達が起きたと判断してパケット番号Eのパケットを分割してパケット1から送信を開始する。しかし、受信側では、受信できなかったパケット番号Eの着信を待ち続けているため、送信側から送信されたパケット番号1のデータが着信しても捨ててしまい、パケット番号1についてACK信号を送信側へ送信することがない。一方、送信側では、パケット番号1のパケット送信に対してACK信号を受信しないため、パケット番号1のパケットを繰り返し送信し続けることになる。   However, when the packet communication method is actually performed, if the last packet number E is not reached (NAK) and transmission is resumed from packet number 1 in which the data is divided into small parts, the transmission is resumed as shown in FIG. As described above, it has been found that there is a case where the receiving side cannot receive the packet [32 bytes] of the packet number 1 and the transmitting side continuously transmits the packet of the packet number 1 endlessly. That is, if the receiving side cannot receive the last packet number E and does not transmit an ACK signal (a notification that has been normally received) to the transmitting side for receiving the packet number E, the transmitting side has not reached the packet number E. It is determined that it has occurred, the packet with the packet number E is divided, and transmission is started from packet 1. However, since the receiving side continues to wait for the arrival of the packet number E that could not be received, the data of the packet number 1 transmitted from the transmitting side is discarded even if it arrives, and an ACK signal is transmitted for the packet number 1 Will not be sent to the other side. On the other hand, since the transmitting side does not receive an ACK signal for packet transmission of packet number 1, it continues to transmit the packet of packet number 1 repeatedly.

なお、送信側が受信側から最後のパケット番号Eを正常に受信した通知を受け取らない現象は、前記場合の他に、受信側が最後のパケット番号Eを正しく受信してACK信号を送信側へ送信したにもかかわらず、何らかの事情で送信側がACK信号を受信できなかった場合にも生じる。この場合、受信側では既に最後のパケット番号Eまでデータ受信を完了しており、次にパケット番号1の受信を待ち受けている状態となり、その状態のときに、送信側がACK信号未受信により未達と判断したパケット番号Eについて小さく分割してパケット番号1から送信再開するため、受信側では送信側から送信されたパケット番号1について正しく受信してACK信号を送信側へ送信することができ、前記のような送信側がパケット番号1を繰り返し送信し続ける現象が発生しない。   In addition, the phenomenon that the transmission side does not receive the notification that the last packet number E was normally received from the reception side is the case where the reception side correctly received the last packet number E and transmitted the ACK signal to the transmission side. Nevertheless, it also occurs when the transmitting side cannot receive the ACK signal for some reason. In this case, the reception side has already completed data reception up to the last packet number E, and then waits for reception of packet number 1, and in that state, the transmission side has not reached due to ACK signal not being received. Since the packet number E determined to be divided into smaller portions and transmission is resumed from the packet number 1, the reception side can correctly receive the packet number 1 transmitted from the transmission side and transmit an ACK signal to the transmission side. Such a phenomenon that the transmission side continuously transmits the packet number 1 does not occur.

特開平10−150435号公報JP-A-10-150435 特開2002−344456号公報JP 2002-344456 A

本発明は前記の点に鑑みなされたものであって、送信側から送信されたパケットを受信側で正常に受信したことを示す通知が送信側で受け取れなかった場合に、再送を正しくかつ効率よく行うことができるパケット通信方法の提供を目的とする。   The present invention has been made in view of the above points, and when a notification indicating that the packet transmitted from the transmission side has been normally received by the reception side cannot be received by the transmission side, the retransmission is correctly and efficiently performed. An object is to provide a packet communication method that can be performed.

本発明は、パケット番号が付与されたパケットを送信側から順次受信側へ送信し、前記受信側が前記パケットを正常に受信した場合には正常に受信したことを前記送信側へ通知し、前記正常に受信した通知を前記送信側が受け取らなかった場合には、前記正常に受信した通知を受け取らなかったパケット番号から前記送信側がパケットの送信を再開するパケット通信方法であって、前記パケット番号が付与されたパケットのうち最後のパケット番号が付与されたパケットのデータ量を1バイトとし、最後のパケット番号の一つ前までの間で前記正常に受信した通知を前記送信側が受け取らなかった場合には、前記正常に受信した通知を受け取らなかったパケット番号から最後のパケット番号の一つ前までのパケットについてデータ量を小さく分割して前記送信側から順次送信し、最後のパケット番号のパケットについてはデータ量を小さくすることなく送信することを特徴とする。   The present invention sequentially transmits packets with packet numbers from the transmission side to the reception side, and when the reception side has received the packet normally, notifies the transmission side that the packet has been received normally, and the normal A packet communication method in which the transmission side resumes packet transmission from a packet number that did not receive the normally received notification when the transmission side did not receive the notification received in If the data amount of the packet to which the last packet number is assigned is 1 byte among the received packets, and the transmission side does not receive the notification that has been normally received before the last packet number, Decrease the amount of data for packets from the packet number that did not receive the normally received notification to the packet before the last packet number. And split sequentially transmitted from the transmitting side, the packet of the last packet numbers and transmits without reducing the data amount.

本発明によれば、あらかじめ最後のパケット番号のパケットについてはデータ量が最小単位の1バイトに設定されているため、最後のパケット番号で通信障害による未達が起き難くなっている。しかも、最後のパケット番号で未達が起きても、未達が起きた最後のパケットについては初めからデータ量が最小単位にされていて、通信障害による未達が繰り返し発生するおそれが少ないことから、そのまま最後のパケット番号のパケットのみを再送すればよい。さらに、本発明では、受信側が最後のパケット番号のパケットを受信できず、最後のパケット番号のパケットを待ち受けている状態のときに、送信側から最後のパケット番号のパケットが再送されることになるため、再送された最後のパケット番号のパケットを受信側で受信することができ、前記のように最後のパケット番号のデータを分割してパケット番号1から再送する場合の受信エラー、すなわち、再送パケットを受信側で受け取れなくなって送信側が延々とパケットを再送するという不具合を生じるおそれがない。また、あらかじめ全パケットのデータ量を1バイトと小さくするものではなく、未達の起きたパケット番号から最後のパケット番号の一つ前までのパケットについてデータを小さく分割して送信するため、効率よくデータを送信することができる。   According to the present invention, since the data amount of the packet with the last packet number is set to 1 byte as a minimum unit in advance, it is difficult for the last packet number to be unreached due to a communication failure. In addition, even if the last packet number has not been reached, the data amount of the last packet that has not been reached is set to the minimum unit from the beginning, and there is little possibility of repeated failures due to communication failures. Only the packet with the last packet number may be retransmitted as it is. Furthermore, in the present invention, when the receiving side cannot receive the packet with the last packet number and is waiting for the packet with the last packet number, the packet with the last packet number is retransmitted from the sending side. Therefore, the packet with the last packet number retransmitted can be received at the receiving side, and the reception error when the data with the last packet number is divided and retransmitted from packet number 1 as described above, that is, the retransmission packet Is not received at the receiving side, and there is no possibility of causing a problem that the transmitting side retransmits the packet endlessly. In addition, the data amount of all packets is not reduced to 1 byte in advance, but data is divided and transmitted for packets from the unreachable packet number to the last packet number before the last packet number. Data can be transmitted.

以下、本発明の実施形態を説明する。図1は本発明の一実施例に係るパケット通信方法における送信側のフローチャート、図2はパケットの構成の一例を示す図、図3は同実施例における各パケットのデータ量を示す図、図4は同実施例において途中で未達が起きた場合の各パケットのデータ量を示す図、図5は同実施例において最後のパケット番号で未達が起きた場合の各パケットのデータ量を示す図である。   Embodiments of the present invention will be described below. 1 is a flowchart on the transmission side in a packet communication method according to an embodiment of the present invention, FIG. 2 is a diagram illustrating an example of a packet configuration, FIG. 3 is a diagram illustrating a data amount of each packet in the embodiment, and FIG. FIG. 5 is a diagram showing the data amount of each packet when failure occurs midway in the embodiment, and FIG. 5 is a diagram showing the data amount of each packet when failure occurs at the last packet number in the embodiment. It is.

本発明のパケット通信方法は、送信側から所定のデータがパケットで受信側へ送信される。送信側と受信側は、有線あるいは無線の通信経路によって接続可能とされている。送信側および受信側はハードディスク装置やメモリ等に格納された送信データや受信データに対して読み書き可能な公知のランダム・アクセス手段を備える。前記送信側の機器の例としては、携帯端末やパソコン、受信側としてはパソコンやプリンタ等を挙げることができ、それぞれCPUを備える。   In the packet communication method of the present invention, predetermined data is transmitted from the transmission side to the reception side as a packet. The transmission side and the reception side can be connected by a wired or wireless communication path. The transmission side and the reception side are provided with known random access means that can read and write transmission data and reception data stored in a hard disk device or a memory. Examples of the device on the transmission side include a portable terminal and a personal computer, and examples of the reception side include a personal computer and a printer, each having a CPU.

図1に示すように、送信側では、有線または無線の通信経路によって受信側との接続が確率される(S101)。次に、ハードディスク装置やメモリ等から読み出されたデータが所定のデータ量に分割されて一連のパケット番号が付与されたパケットとされ、パケット番号順に受信側へ送信される(S102)。   As shown in FIG. 1, on the transmission side, connection to the reception side is established by a wired or wireless communication path (S101). Next, the data read from the hard disk device, the memory, etc. is divided into a predetermined amount of data to give a series of packet numbers, and transmitted to the receiving side in the order of packet numbers (S102).

図2に示すように、各パケット10は、分割されたデータが格納されると共に、ヘッダにはエラー検査情報、フッタにはパケット番号が格納されている。なお、前記エラー検査情報とパケット番号は、何れをヘッダにあるいはフッタに格納してもよく、また両方共ヘッダあるいはフッタに格納してもよい。本実施例では、最初に送信されるパケットにパケット番号0、一方、最後に送信されるパケットにパケット番号Eが付与され、その間のパケットがパケット番号1〜9、A〜Dが付されるようになっている。パケット番号0は、最初に送信されるパケットであることを示し、パケット番号Eは最後に送信されるパケットであることを示す。最後のパケット番号Eのパケットは1バイトとされる。なお、最初のパケット番号0と最後のパケット番号Eの間のパケットの数は、送信されるデータ量によって変化する。図3に示す例では、パケット番号0〜4のパケットが各256バイト、最後の一つ前のパケット番号5のパケットが255バイト、最後のパケット番号Eのパケットが1バイトのデータ量とされている。   As shown in FIG. 2, each packet 10 stores divided data, error check information in the header, and packet number in the footer. The error check information and the packet number may be stored in the header or footer, or both may be stored in the header or footer. In this embodiment, the packet number 0 is assigned to the first transmitted packet, while the packet number E is assigned to the last transmitted packet, and the packet numbers 1 to 9 and A to D are added to the packets in between. It has become. Packet number 0 indicates that the packet is transmitted first, and packet number E indicates that the packet is transmitted last. The packet with the last packet number E is 1 byte. Note that the number of packets between the first packet number 0 and the last packet number E varies depending on the amount of data to be transmitted. In the example shown in FIG. 3, the packet numbers 0 to 4 are each 256 bytes, the last packet number 5 is 255 bytes, and the last packet number E is 1 byte. Yes.

前記パケット番号順にしたがうパケット送信毎に、未達(NAK)が起きたか(受信側からACK信号を受信していないか)判断され(S103)、未達(NAK)が起きていない(ACK信号を受信している)場合には、最後のパケット番号のパケットが送信済みか判断される(S104)。最後のパケット番号のパケットが送信済みでない場合には、パケット番号に1加算され(S105)、加算後のパケット番号のパケットが送信される(S102)。前記S102〜S105の処理は、最後のパケット番号のパケットが送信されるまで繰り返され、最後のパケット番号のパケットが送信済みと判断されると送信側からのデータ送信が終了する。なお、受信側は、パケット番号毎にパケットを正しく受信するとACK信号を送信側へ送信する。   For each packet transmission according to the packet number order, it is determined whether or not an unreached (NAK) has occurred (whether an ACK signal has been received from the receiving side) (S103), and an unreached (NAK) has not occurred (an ACK signal is not received). If it has been received), it is determined whether the packet of the last packet number has been transmitted (S104). If the packet with the last packet number has not been transmitted, 1 is added to the packet number (S105), and the packet with the added packet number is transmitted (S102). The processing of S102 to S105 is repeated until the packet with the last packet number is transmitted. When it is determined that the packet with the last packet number has been transmitted, the data transmission from the transmission side ends. When the receiving side correctly receives a packet for each packet number, the receiving side transmits an ACK signal to the transmitting side.

一方、S103において、未達(NAK)が起きている(受信側からACK信号を受信していない)と判断されると、次に未達(NAK)の起きたパケットが最後のパケット番号か判断され(S106)、最後のパケット番号ではない場合には、未達(NAK)が起きたパケット番号から最後のパケット番号の一つ前まで各パケットのデータ量が、最初に設定されている各パケットのデータ量よりも小さく分割される(S107)。例えば、図4に示すように、パケット番号4のパケット(データ量256バイト)で未達(NAK)が起きた場合、未達(NAK)の起きたパケット番号4から最後の一つ前のパケット番号のパケットまで、データ量が小さく分割される。なお、図示の例では、未達(NAK)の起きたパケット番号から最後のパケット番号の二つ前のパケットまでは32バイトに分割され、最後のパケット番号の一つ前のパケットについては31バイトに分割されている。   On the other hand, if it is determined in S103 that unreached (NAK) has occurred (no ACK signal has been received from the receiving side), it is determined whether the next unreachable (NAK) packet is the last packet number. If the packet number is not the last packet number (S106), the data amount of each packet from the packet number that has not reached (NAK) to the one before the last packet number is set to the first packet number. (S107). For example, as shown in FIG. 4, when a non-reached (NAK) occurs in a packet with a packet number 4 (data amount 256 bytes), the packet immediately before the last packet number 4 where the unreached (NAK) has occurred. The data amount is divided into small packets up to the number. In the example shown in the figure, the packet number from which the non-delivery (NAK) occurred to the packet immediately before the last packet number is divided into 32 bytes, and the packet immediately before the last packet number is 31 bytes. It is divided into

データ量が小さく分割されたパケットについて、前記未達(NAK)の起きたパケット番号から順に送信が再開され(S108)、また、送信毎に受信側から未達(NAK)が起きたか(ACK信号を受信していないか)判断される(S109)。未達(NAK)が起きていない(受信側からACK信号を受信している)場合には、最後の一つ前のパケット番号のパケットが送信済みか判断され(S110)、送信済みではない場合、パケット番号に1加算され(S111)、加算後のパケット番号のパケットが送信される(S108)。前記S108〜S111は、最後の一つ前のパケット番号のパケットが送信済みとなるまで繰り返される。また、前記S109で未達(NAK)が起きている(受信側からACK信号を受信していない)場合には、未達(NAK)が起きたパケット番号のパケットから再度送信(S108)が開始される。   For packets divided into small amounts of data, transmission is resumed in order from the packet number where the non-reached (NAK) occurred (S108), and whether the non-reached (NAK) occurred from the receiving side for each transmission (ACK signal) (S109). If no delivery (NAK) has occurred (acknowledgment has been received from the receiving side), it is determined whether the packet with the last previous packet number has been transmitted (S110), and has not been transmitted. Then, 1 is added to the packet number (S111), and the packet with the added packet number is transmitted (S108). Steps S108 to S111 are repeated until the packet with the last previous packet number has been transmitted. In addition, if unreached (NAK) has occurred in S109 (no ACK signal has been received from the receiving side), transmission (S108) starts again from the packet of the packet number where unreached (NAK) has occurred. Is done.

S110で最後のパケット番号の一つ前のパケットを送信済みと判断された場合、あるいは前記S106で未達(NAK)の起きたパケットが最後のパケット番号であると判断された場合には、最後のパケット番号のパケット(1バイト)が送信され(S112)、次いで未達(NAK)が起きたか(受信側からACK信号を受信していないか)判断され(S113)、未達(NAK)が起きている場合には、未達の起きた最後のパケット番号のパケット(1バイト)について再送が行われる(S112)。図5には、最後のパケット番号で未達(NAK)が起きた場合の各パケットのデータ量を示す。一方、S113で未達(NAK)が起きていないと判断されると、送信側からのデータ通信が終了する。   If it is determined in S110 that the packet immediately before the last packet number has been transmitted, or if it is determined in S106 that the packet that has not been reached (NAK) is the last packet number, Packet (1 byte) having a packet number of (1) is transmitted (S112), it is then determined whether an unreached (NAK) has occurred (whether an ACK signal has been received from the receiving side) (S113), and an unreached (NAK) is If it has occurred, the packet (1 byte) of the last packet number that has not been reached is retransmitted (S112). FIG. 5 shows the data amount of each packet when non-reach (NAK) occurs at the last packet number. On the other hand, if it is determined in S113 that the non-reaching (NAK) has not occurred, the data communication from the transmission side is terminated.

このように、本発明によれば、あらかじめ最後のパケット番号のパケットについては、データ量が1バイトと最小単位に設定されているため、最後のパケット番号のパケットでは通信障害による未達を生じにくく、また、未達が発生した場合には、最後のデータ番号のパケットのみをそのまま再送すればよい。しかも、あらかじめ全パケットのデータ量を1バイトと小さくするものではなく、未達の起きたパケット番号から最後のパケット番号の一つ前までのパケットについてデータを小さく分割して送信するため、効率よくデータを送信することができる。   As described above, according to the present invention, since the data amount of the last packet number packet is set to a minimum unit of 1 byte in advance, the last packet number packet is less likely to be unreached due to a communication failure. In addition, when undelivered occurs, only the packet with the last data number may be retransmitted as it is. In addition, the data amount of all packets is not reduced to 1 byte in advance, but data is divided and transmitted for packets from the unreachable packet number to the last packet number one before. Data can be transmitted.

なお、前記実施例では、未達が起きた場合には、未達の起きたパケットについて正常に送信されるまで繰り返して再送が行われるが、再送を繰り返す最大時間を設けたり、再送繰り返しの最大回数を設けたりして、その繰り返し最大時間や繰り返し最大回数を超えた場合にはタイムアウトとしてエラー報知をするようにしてもよい。   In the above-described embodiment, when unsuccessful occurrence occurs, retransmission is repeatedly performed until the packet that has not been reached is normally transmitted. If the maximum number of repetitions or the maximum number of repetitions is exceeded, an error notification may be issued as a timeout.

また、前記実施例では、未達時に256バイトから32バイトへ分割する例を示したが、本発明は前記の例に限られるものではなく、最初のデータ量および分割後のデータ量を他の値としてもよい。   In the above embodiment, an example in which 256 bytes are divided into 32 bytes when not achieved is shown. However, the present invention is not limited to the above example, and the initial data amount and the divided data amount are changed to other values. It may be a value.

本発明の一実施例に係るパケット通信方法における送信側のフローチャートである。It is a flowchart on the transmission side in the packet communication method according to an embodiment of the present invention. パケットの構成の一例を示す図である。It is a figure which shows an example of a structure of a packet. 同実施例における各パケットのデータ量を示す図である。It is a figure which shows the data amount of each packet in the Example. 同実施例において途中で未達が起きた場合の各パケットのデータ量を示す図である。It is a figure which shows the data amount of each packet when non-achieving occurs in the middle in the same Example. 同実施例において最後のパケット番号で未達が起きた場合の各パケットのデータ量を示す図である。It is a figure which shows the data amount of each packet when failure to reach | attain with the last packet number in the Example. 未達が起きたパケット番号以降のパケットについてデータ量を小さくする場合の各パケットのデータ量を示す図である。It is a figure which shows the data amount of each packet in the case of making data amount small about the packet after the packet number by which unreachable occurred. 最後のパケット番号で未達が起きた場合の再送時における各パケットのデータ量を示す図である。It is a figure which shows the data amount of each packet at the time of retransmission at the time of non-delivery with the last packet number. 最後のパケット番号で未達が起きた場合の再送繰り返しによる通信エラーの状態を示す図である。It is a figure which shows the state of the communication error by repetition of resending in case unreachable by the last packet number.

符号の説明Explanation of symbols

10 パケット   10 packets

Claims (1)

パケット番号が付与されたパケットを送信側から順次受信側へ送信し、前記受信側が前記パケットを正常に受信した場合には正常に受信したことを前記送信側へ通知し、前記正常に受信した通知を前記送信側が受け取らなかった場合には、前記正常に受信した通知を受け取らなかったパケット番号から前記送信側がパケットの送信を再開するパケット通信方法であって、
前記パケット番号が付与されたパケットのうち最後のパケット番号が付与されたパケットのデータ量を1バイトとし、
最後のパケット番号の一つ前までの間で前記正常に受信した通知を前記送信側が受け取らなかった場合には、前記正常に受信した通知を受け取らなかったパケット番号から最後のパケット番号の一つ前までのパケットについてデータ量を小さく分割して前記送信側から順次送信し、最後のパケット番号のパケットについてはデータ量を小さくすることなく送信することを特徴とするパケット通信方法。
The packet with the packet number is sequentially transmitted from the transmission side to the reception side, and when the reception side normally receives the packet, the reception side is notified to the transmission side, and the normal reception notification A packet communication method in which the transmission side resumes packet transmission from a packet number that did not receive the normally received notification,
The data amount of the packet assigned the last packet number among the packets assigned the packet number is 1 byte,
If the transmission side does not receive the normally received notification until the last packet number, the packet number that did not receive the normally received notification is immediately before the last packet number. A packet communication method characterized in that the data amount is divided into small parts and transmitted sequentially from the transmitting side, and the packet with the last packet number is transmitted without reducing the data amount.
JP2007052293A 2007-03-02 2007-03-02 Packet communication method Pending JP2008219323A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007052293A JP2008219323A (en) 2007-03-02 2007-03-02 Packet communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007052293A JP2008219323A (en) 2007-03-02 2007-03-02 Packet communication method

Publications (1)

Publication Number Publication Date
JP2008219323A true JP2008219323A (en) 2008-09-18

Family

ID=39838857

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007052293A Pending JP2008219323A (en) 2007-03-02 2007-03-02 Packet communication method

Country Status (1)

Country Link
JP (1) JP2008219323A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075305A (en) * 2009-11-20 2011-05-25 索尼公司 Communication device, program, and communication method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075305A (en) * 2009-11-20 2011-05-25 索尼公司 Communication device, program, and communication method
EP2326061A2 (en) 2009-11-20 2011-05-25 Sony Corporation Communication device, program, and communication method including fragmenting of messages inside a device
EP2326061A3 (en) * 2009-11-20 2011-09-14 Sony Corporation Communication device, program, and communication method including fragmenting of messages inside a device
EP2469794A2 (en) 2009-11-20 2012-06-27 Sony Corporation Conversion Communication Device, Program, and Communication Method
US9083679B2 (en) 2009-11-20 2015-07-14 Sony Corporation Communication device, program, and communication method for accurately transmitting a message in a device
US9661479B2 (en) 2009-11-20 2017-05-23 Sony Corporation Communication device, program, and communication method

Similar Documents

Publication Publication Date Title
CN106559739B (en) Lightweight data transmission method suitable for Bluetooth low-power wireless communication system
JP5694993B2 (en) Communication apparatus and communication method
EP1871031B1 (en) Retransmission control method and device
CA2624671C (en) Methods and apparatus for dynamically adjusting a data packet window size for data packet transmission in a wireless communication network
JP4021885B2 (en) Method for controlling a receiver and a transmitter to process a transmission window resizing procedure in a wireless communication system
CN101753277B (en) Method for transmitting message status report of radio link control layer
JP2006311543A (en) Method and device for polling transmission state in radio communication system
US20050041663A1 (en) Method to avoid potential deadlocks in a SDU discard function
JP2006087113A (en) Enhanced polling method for preventing deadlock in wireless communications system
JP3957709B2 (en) Method and apparatus for controlling a reset procedure in a wireless communication system
JP3968097B2 (en) Status report missing detection in communication systems
US9723490B2 (en) Acknowledgement communication with interference detection (ACK-ID)
KR101514160B1 (en) System and method for dynamic timeslot reduction
JP4807828B2 (en) Envelope packet architecture for broadband engines
KR100392169B1 (en) Method and apparatus for conveying data packets in a communication system
JP2006197177A (en) Communication collision preventing method for radio node
JP2016174211A (en) Communication system
JP2008219323A (en) Packet communication method
US20060251076A1 (en) Real-time and reliable method for transporting data
JP2007324700A (en) Transmission control method
CN101150494A (en) Data packet transmission device, receiving device and method
US9172511B2 (en) Apparatus and method of communicating automatic repeat request (ARQ) feedback in a wireless communication network
JP2008300936A (en) Communication system, terminal device used for communication system, and communication method of communication system
JP2009060238A (en) Transmission method, communication system and communication apparatus
JP2005167352A (en) Transmission apparatus and program