JPH114259A - Virtual connection communication equipment and communication method - Google Patents

Virtual connection communication equipment and communication method

Info

Publication number
JPH114259A
JPH114259A JP15658397A JP15658397A JPH114259A JP H114259 A JPH114259 A JP H114259A JP 15658397 A JP15658397 A JP 15658397A JP 15658397 A JP15658397 A JP 15658397A JP H114259 A JPH114259 A JP H114259A
Authority
JP
Japan
Prior art keywords
connection
transmission
data
virtual
tcp
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
JP15658397A
Other languages
Japanese (ja)
Inventor
Nobuhiro Sekine
信博 関根
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP15658397A priority Critical patent/JPH114259A/en
Publication of JPH114259A publication Critical patent/JPH114259A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To quickly complete a data transmission processing of a transmitter by assigning a virtual connection equipment which pretends that a connection is established between the transmitter and the transmitted and buffering transmission data regardless of a connection state with the other transmission. SOLUTION: A client socket processing part 18 always establishes a TCP/IP connection 51 when there are non-transmitted data in a transmission data FIFO buffer 13, and when a server socket connection state 16 is established during establishing a connection, the TCP/IP connection is always held. As long as the TCP/IP connection is established or there are non-transmitted data in the transmission data FIFO buffers 13 and 33 by an interaction of each part, the TCP/IP connections 51 and 52 continue to establish the connection and the TCP/IP connections 50 and 52 are not released even if the TCP/IP connection 51 is released.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、コネクション型通
信を使用して、回線品質の低い送信先、あるいは送信相
手と比較して受信処理能力の低い相手先及び回線障害が
頻繁に発生する相手に対しての通信において、相手との
コネクションを維持し、更に送信側の処理占有時間改善
を行う通信方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a transmission destination having a low line quality, a destination having a low reception processing capacity as compared with a transmission destination, and a destination having a frequent line failure, using connection-type communication. The present invention relates to a communication method for maintaining a connection with a partner in communication with the other party and further improving the processing occupation time on the transmission side.

【0002】[0002]

【従来の技術】従来の通信方法を、図4を参照しながら
説明する。図4において、送信処理(1)と受信処理
(2)の間でTCP/IPを使用したデータ通信を行な
う。まず、送信処理(1)は、コネクション開設要求
(3)を送信し、コネクション開設応答(4)を受信す
る。その後、データ送信要求(5)を送信し、ACK
(6)を受信する。このあとコネクション解放要求
(7)を送信し、コネクション解放応答(8)を受信す
る。
2. Description of the Related Art A conventional communication method will be described with reference to FIG. In FIG. 4, data communication using TCP / IP is performed between transmission processing (1) and reception processing (2). First, the transmission process (1) transmits a connection opening request (3) and receives a connection opening response (4). After that, a data transmission request (5) is transmitted, and ACK is transmitted.
(6) is received. Thereafter, a connection release request (7) is transmitted, and a connection release response (8) is received.

【0003】送信データがそれぞれの相手に届くまでの
時間をAとすると、(3)〜(8)の6回送信が行われ
ている為、送信処理が、データ送信処理を完了するまで
に6Aの時間がかかる。
[0003] Assuming that the time until the transmission data reaches each partner is A, since the transmission is performed six times in (3) to (8), the transmission process takes 6A until the data transmission process is completed. It takes time.

【0004】このような従来のコネクション型通信にお
いて、回線品質が悪い場合にも通信を可能にする方式と
して、1つの通信相手に対して複数のTCP/IPコネ
クションを確立し、どちらか一方が障害となった場合で
も、他方のコネクションを使用して通信を継続する方式
が、特開平8−298535号公報「OSI通信システ
ム」に記述されている。
In such conventional connection-type communication, a plurality of TCP / IP connections are established for one communication partner as a method for enabling communication even when the line quality is poor, and one of the TCP / IP connections fails. A method of continuing communication using the other connection even in the case of the above is described in Japanese Patent Application Laid-Open No. Hei 8-298535, "OSI Communication System".

【0005】[0005]

【発明が解決しようとする課題】第1の問題点は、コネ
クションを複数にしても、全ての回線で(あるいは共通
するどこかの回線で)障害が発生した場合は、コネクシ
ョンが確立できず、データの送信が行えなくなることで
ある。コネクションが確立できなければ、コネクション
の確立の為に定期的にコネクションの確立要求が送信さ
れるが、この間、データ送信を行おうとしたプロセス
は、データ送信完了まで待たされてしまう。また、コネ
クションが確立されていても、回線障害が発生した場合
に解放されてしまう。
A first problem is that even if there are a plurality of connections, if a failure occurs in all the lines (or in some common line), the connection cannot be established. Data transmission cannot be performed. If the connection cannot be established, a connection establishment request is transmitted periodically to establish the connection. During this time, the process that attempted to transmit the data has to wait until the data transmission is completed. Even if a connection has been established, it is released when a line failure occurs.

【0006】第2の問題点は、回線品質の悪い経路や回
線速度が低い経路を使用した場合、及び送信先の処理能
力が低い場合、送信元のデータ送信処理は送信完了待ち
時間が増え、送信元のスループットが低下することであ
る。回線が切断されなければ、見かけ上回線数分のデー
タ送信速度が確保できるが、回線品質が悪ければデータ
の再送処理や送達順序の訂正などのオーバヘッドが増え
る可能性がある。
The second problem is that when a path with poor line quality or a low line speed is used, or when the processing capacity of the destination is low, the data transmission processing of the source increases the transmission completion waiting time. That is, the throughput of the transmission source decreases. If the line is not disconnected, an apparent data transmission speed corresponding to the number of lines can be secured, but if the line quality is poor, overhead such as data retransmission processing and correction of the delivery order may increase.

【0007】第3の問題点は、コストが高くなることで
ある。複数の経路についてデータ送信要求の有無に関係
なくコネクションを確立し続けるため、常に経路分の回
線使用料金を払わなければならなくなる。
[0007] A third problem is that the cost is high. In order to continue to establish connections regardless of the presence or absence of a data transmission request for a plurality of routes, the line usage fee for the routes must always be paid.

【0008】[発明の目的]本発明の目的は、コネクシ
ョン型通信を使用して、回線品質の低い送信先、あるい
は送信相手と比較して受信処理能力の低い相手先、及び
回線障害が頻繁に発生する相手に対しての通信におい
て、相手とのコネクションを維持し、更に送信側の処理
占有時間改善を行うことにある。
[0008] The object of the present invention is to provide a transmission destination having low line quality, a destination having low reception processing capability compared with a transmission destination, and frequent line failures using connection-type communication. It is an object of the present invention to maintain a connection with a partner in communication with the partner, and to improve processing occupation time on the transmission side.

【0009】即ち、本発明の第1の目的は、無線などの
低品質な伝送媒体を経由する場合の通信においても、効
率的にデータ送信を行うことであり、第2の目的は、デ
ータ送信側の処理完了までの時間を短縮することであ
る。
That is, a first object of the present invention is to efficiently transmit data even in a communication via a low-quality transmission medium such as a wireless communication, and a second object is to transmit data. Is to shorten the time until the processing on the side is completed.

【0010】[0010]

【課題を解決するための手段】本発明の仮想コネクショ
ン通信方式は、送信元と送信先の間に一対の仮想コネク
ション装置をおくことにより実現される。この仮想コネ
クション装置は、送信先の代わりに送信元のコネクショ
ン要求・データ送信要求・コネクション解放要求を受け
付ける機構と、それぞれの上記要求に対し送信元へコネ
クション応答・データ受信応答(ACK)・コネクショ
ン解放応答を返送する機構と、データ送信要求にある送
信データを送信用FIFOバッファに保持する機構と、
FIFOバッファに未送信データがある場合に、予め設
定されている送信先へコネクション型通信で自動的に送
信する機構を有すると同時に、送信先から受信したデー
タを受信用FIFOバッファに保持する機構と、送信元
とコネクションが確立している時に、受信用FIFOバ
ッファから、送信先から受信したデータを、自動的に送
信元へ送信する機構を有する。
The virtual connection communication system of the present invention is realized by placing a pair of virtual connection devices between a source and a destination. This virtual connection device receives a connection request, a data transmission request, and a connection release request of a transmission source instead of a transmission destination, and a connection response, a data reception response (ACK), and a connection release to the transmission source in response to each of the above requests. A mechanism for returning a response, a mechanism for holding transmission data in a data transmission request in a transmission FIFO buffer,
A mechanism for automatically transmitting connection-type communication to a preset destination when there is untransmitted data in the FIFO buffer, and a mechanism for holding data received from the destination in a reception FIFO buffer And a mechanism for automatically transmitting data received from a transmission destination to a transmission source from a reception FIFO buffer when a connection is established with the transmission source.

【0011】仮想コネクション装置間は、送信用FIF
Oバッファに未送信データが有る場合にコネクションを
確立しデータを送信する。FIFOバッファに未送信デ
ータが無い場合にコネクションを自動的に切断するか否
かは実装する回線に応じて決めるものとする。
A transmission interface is provided between the virtual connection devices.
When there is untransmitted data in the O buffer, a connection is established and data is transmitted. Whether or not the connection is automatically disconnected when there is no untransmitted data in the FIFO buffer is determined according to the line to be mounted.

【0012】上記仮想コネクション装置とそれを使用し
た通信において、送信元と送信先の間のコネクション
は、仮想コネクション装置間のコネクションに関係なく
見かけ上コネクションが確立されている様に扱え、かつ
実際のデータ送信は、送信データが欠損すること無く仮
想コネクション装置間でコネクションが確立できた時の
み行える様になる。
In the virtual connection device and the communication using the same, the connection between the transmission source and the destination can be treated as if a connection is apparently established irrespective of the connection between the virtual connection devices. Data transmission can be performed only when a connection can be established between virtual connection devices without loss of transmission data.

【0013】また、本発明は前述した課題を解決するた
めの手段として、図1に示すように、送信機側10の送
信プロセス11とコネクション接続50された仮想コネ
クションプロセス12と、受信機側30の受信プロセス
31とコネクション接続52された仮想コネクションプ
ロセス32と、前記仮想コネクションプロセス12,3
2間を接続するコネクション接続51と、を備え、前記
仮想コネクションプロセス12は、送信データの一時蓄
積バッファである送信データ用FIFOバッファ13
と、受信データの一時蓄積バッファである受信データ用
FIFOバッファ14と、送信データを受信するサーバ
ーソケット処理部15と、コネクション状態を保持する
サーバーソケットコネクション状態16と、データ送信
先情報を保持する仮想コネクション接続先情報17と、
データ送信の処理部であるクライアントソケット処理部
18と、を有することを特徴とする仮想コネクション通
信装置を提供するものである。
Further, as means for solving the above-mentioned problems, as shown in FIG. 1, a virtual connection process 12 connected to a transmission process 11 on a transmitter 10 and a connection connection 50 as shown in FIG. A virtual connection process 32 connected to the receiving process 31 of the virtual connection process 52,
A connection connection 51 for connecting the two, and the virtual connection process 12 includes a transmission data FIFO buffer 13 serving as a temporary storage buffer for transmission data.
And a reception data FIFO buffer 14 that is a temporary storage buffer for reception data, a server socket processing unit 15 that receives transmission data, a server socket connection state 16 that holds a connection state, and a virtual server that holds data transmission destination information. Connection destination information 17;
And a client socket processing unit which is a processing unit for data transmission.

【0014】[作用]本発明によれば、コネクション通
信を行おうとしている送信元、送信先の間でコネクショ
ンが確立している様に見せかける仮想コネクション装置
を配置して、相手先とのコネクションの状態に関係なく
送信データをバッファリングすることにより、送信元の
データ送信処理を速やかに完了させることができる。バ
ッファリングされたデータは、送信先に有る受信用の仮
想コネクション装置経由で相手先に送信される。
[Operation] According to the present invention, a virtual connection device that makes it appear that a connection is established between a transmission source and a transmission destination that intends to perform connection communication is arranged to establish a connection with the destination. By buffering the transmission data irrespective of the state, the data transmission processing of the transmission source can be completed quickly. The buffered data is transmitted to the destination via the receiving virtual connection device at the destination.

【0015】これにより、回線障害で実際のコネクショ
ンが確立されていなくても、送信元は、送信先にデータ
送信が完了したものとしてその他の処理が実行でき、ス
ループットが向上する。これは回線品質が低い場合、回
線速度が遅い場合にも同様の効果がある。
Thus, even if an actual connection has not been established due to a line failure, the transmission source can perform other processing assuming that data transmission has been completed to the transmission destination, thereby improving throughput. This has the same effect when the line quality is low or when the line speed is low.

【0016】また、送信元、送信先ともに擬似的にコネ
クションが確立されていると認識されるので、実際にコ
ネクションを確立させ続ける必要が無くなる。これは、
常にコネクション確立が必要なアプリケーションでも、
データオンデマンド機能が使用できるという効果があ
る。
In addition, since it is recognized that the connection is established in a pseudo manner at both the transmission source and the transmission destination, there is no need to keep establishing the connection. this is,
Even for applications that always need to establish a connection,
There is an effect that the data on demand function can be used.

【0017】以下、本発明の作用について、詳しく説明
する。
Hereinafter, the operation of the present invention will be described in detail.

【0018】最初に、送信元と送信先の間に有る回線障
害が頻発する場合にもコネクションが維持される働きに
ついて説明する。
First, a description will be given of how the connection is maintained even when a line failure between the transmission source and the transmission destination frequently occurs.

【0019】送信元が、仮想コネクション装置(送信元
側)にコネクションを確立しデータ送信を開始すると、
仮想コネクション装置は、コネクション確立応答及びデ
ータ送信応答を返しながら内部のFIFO方式バッファ
に送信データを蓄積する。
When the transmission source establishes a connection with the virtual connection device (transmission source side) and starts data transmission,
The virtual connection device accumulates transmission data in an internal FIFO buffer while returning a connection establishment response and a data transmission response.

【0020】内部のFIFO方式バッファに送信データ
が蓄積された仮想コネクション装置(送信元側)は、予
め決められた送信先(この場合は送信先側の仮想コネク
ション装置)との間にコネクションを確立し、内部のF
IFOバッファから送信データを取り出して仮想コネク
ション装置(送信先側)に送信する。仮想コネクション
装置(送信先側)も内部のFIFO方式バッファに送信
データを蓄積する。内部のFIFO方式バッファに送信
データが蓄積された仮想コネクション装置(送信先側)
も、予め決められた送信先(この場合は、最終的な送信
先)との間にコネクションを確立し、内部のFIFO方
式バッファから送信データを取り出して送信先へ送信す
る。以上で、通常の場合と同様に送信できたことにな
る。
The virtual connection device (transmission source side) in which transmission data is stored in the internal FIFO buffer establishes a connection with a predetermined transmission destination (in this case, the virtual connection device on the transmission destination side). And the internal F
The transmission data is extracted from the IFO buffer and transmitted to the virtual connection device (transmission destination). The virtual connection device (destination side) also stores transmission data in an internal FIFO buffer. Virtual connection device (transmission destination) in which transmission data is stored in an internal FIFO buffer
Also, a connection is established with a predetermined transmission destination (in this case, a final transmission destination), transmission data is taken out from an internal FIFO buffer and transmitted to the transmission destination. Thus, the transmission has been completed as in the normal case.

【0021】この状態で、仮想コネクション間の回線障
害が発生した場合、仮想コネクション間のコネクション
は解放されるが、送信元と仮想コネクション装置(送信
元側)との間のコネクション、及び仮想コネクション装
置(送信先側)と送信との間のコネクションは確立され
たままであり、それぞれデータの送信が可能である。仮
想コネクション装置間のコネクションが再確立されるま
では、送信元の送信データは、仮想コネクション装置
(送信元側)のFIFO方式バッファに蓄積され、仮想
コネクション装置(送信先側)のFIFO方式バッファ
に未送信データが残っている場合は、送信先へ送信し続
ける。
In this state, if a line failure occurs between the virtual connections, the connection between the virtual connections is released, but the connection between the transmission source and the virtual connection device (source side) and the virtual connection device The connection between the (destination side) and the transmission remains established, and data transmission is possible. Until the connection between the virtual connection devices is re-established, the transmission data of the transmission source is stored in the FIFO buffer of the virtual connection device (source side) and stored in the FIFO buffer of the virtual connection device (transmission destination side). If untransmitted data remains, transmission is continued to the destination.

【0022】仮想コネクション間のコネクションが再確
立されると、仮想コネクション間のデータ送信が再開さ
れる。結果として、送信元と送信先との間のコネクショ
ンが、その間である仮想コネクション装置間のコネクシ
ョン状態に関係なく確立されている様な効果と、送信元
と送信先の間で障害が発生していても、コネクションが
確立されているかの様にデータを送信し続けることがで
きる。
When the connection between the virtual connections is re-established, data transmission between the virtual connections is resumed. As a result, the effect that the connection between the source and the destination is established irrespective of the connection state between the virtual connection devices between them, and the failure between the source and the destination occur. However, data can be continuously transmitted as if a connection had been established.

【0023】次に、送信元と送信先の間の回線の品質が
悪い場合及び回線速度が遅い場合に、回線のスループッ
トが向上する効果について説明する。
Next, the effect of improving the throughput of the line when the quality of the line between the source and the destination is poor and when the line speed is low will be described.

【0024】送信先と仮想コネクション装置は同一ホス
ト内に設置し、ホスト内部折り返しで通信を行う。従っ
て、送信元は送信先との間の物理的回線の品質・速度に
依存せずに、送信データを仮想コネクション装置(送信
元側)のFIFOバッファ装置へ送信することができ
る。内部のFIFO方式バッファに送信データが蓄積さ
れた仮想コネクション装置(送信元側)は、予め決めら
れた送信先(この場合は送信先側の仮想コネクション装
置)との間でコネクションを確立し内部のFIFOバッ
ファから送信データを取り出して仮想コネクション装置
(送信先側)に送信する。この間も、仮想コネクション
装置(送信側)は送信先からのデータ送信要求が有れ
ば、FIFO方式バッファに送信データを蓄積する。
The destination and the virtual connection device are installed in the same host, and perform communication by looping back inside the host. Therefore, the transmission source can transmit transmission data to the FIFO buffer device of the virtual connection device (source side) without depending on the quality and speed of the physical line with the transmission destination. The virtual connection device (transmission source side) in which the transmission data is stored in the internal FIFO buffer establishes a connection with a predetermined transmission destination (in this case, the virtual connection device on the transmission destination side) and establishes an internal connection. The transmission data is extracted from the FIFO buffer and transmitted to the virtual connection device (transmission destination). During this time, if there is a data transmission request from the transmission destination, the virtual connection device (transmission side) stores transmission data in the FIFO buffer.

【0025】以上の様に、送信データのFIFO方式バ
ッファへの蓄積と、FIFO方式バッファからデータを
取り出して仮想コネクション装置(送信先側)へ送信す
る処理を同時に実行することにより、送信元は、実際の
回線品質・速度に影響されずに、ホスト内部折り返し通
信と同じ速度でデータ送信処理を完了することが可能に
なる。
As described above, by simultaneously storing the transmission data in the FIFO buffer and extracting the data from the FIFO buffer and transmitting the data to the virtual connection device (destination side), the transmission source becomes: The data transmission process can be completed at the same speed as the internal loopback communication without being affected by the actual line quality and speed.

【0026】以下、本発明の作用について、更に詳しく
説明する。
Hereinafter, the operation of the present invention will be described in more detail.

【0027】従来、TCP/IPに代表されるコネクシ
ョン通信では、データを送信する前に相手とのコネクシ
ョンを確立する必要がある。この為、データの送信要求
が発生してから実際に送信可能になるまで、データ送信
処理部分では「コネクションの確立」までの待ちや、送
信データ受信応答(ACKなど)の受信待ちが発生す
る。これらの待ち時間は、回線品質が悪いと増大し、デ
ータ送信処理が完了するまでの時間が増加する。
Conventionally, in connection communication represented by TCP / IP, it is necessary to establish a connection with a partner before transmitting data. For this reason, from the occurrence of a data transmission request to the point at which transmission is actually possible, the data transmission processing portion waits until “connection is established” or waits for reception of a transmission data reception response (ACK or the like). These waiting times increase when the line quality is poor, and the time until the data transmission processing is completed increases.

【0028】そこで、本発明では、コネクション型通信
処理に対して、実際のコネクション確立状態(コネクシ
ョン確立状態…コネクション型通信でのコネクションの
状態。解放中・開設移行中・開設中・解放移行中等があ
る。)に関係なく、あたかもコネクションが確立してい
るかのように振る舞う仮想コネクション通信処理を設け
る。
Therefore, according to the present invention, the actual connection establishment state (connection establishment state: connection state in connection-type communication. ), A virtual connection communication process that behaves as if a connection has been established.

【0029】この本発明の仮想コネクション処理は、
「コネクション要求に対してダミーのコネクション確立
応答を返す処理」と「送信データを受信した時にダミー
の送信データ受信応答(ACK)を返す処理」と「送信
データバッファに送信データを一時保存する処理」と
「送信データバッファに送信データがある場合は、コネ
クションを確立し、相手側に送信する処理」を有する。
The virtual connection processing of the present invention
"Process of returning dummy connection establishment response to connection request", "Process of returning dummy transmission data reception response (ACK) when transmission data is received", and "Process of temporarily storing transmission data in transmission data buffer" And "processing for establishing a connection when there is transmission data in the transmission data buffer and transmitting the data to the other party".

【0030】これにより、データ送信処理は、仮想コネ
クション型通信にデータを送信する時間で処理を完了す
る事ができる。仮想コネクション型送信処理は、データ
送信処理から受信したデータを実際の送信先に通常のコ
ネクション型通信にて送信する。
As a result, the data transmission process can be completed in the time for transmitting data to the virtual connection type communication. In the virtual connection type transmission process, data received from the data transmission process is transmitted to an actual destination by ordinary connection type communication.

【0031】以下、図3及び図4を参照しながら、本発
明の作用について、更に詳細に説明する。
Hereinafter, the operation of the present invention will be described in more detail with reference to FIGS.

【0032】従来の通信方法を、図4を参照しながら説
明する。図4において、送信処理(1)と受信処理
(2)の間でTCP/IPを使用したデータ通信を考え
る。まず、送信処理(1)は、コネクション開設要求
(3)を送信し、コネクション開設応答(4)を受信す
る。その後、データ送信要求(5)を送信し、ACK
(6)を受信する。このあとコネクション解放要求
(7)を送信し、コネクション解放応答(8)を受信す
る。
A conventional communication method will be described with reference to FIG. In FIG. 4, data communication using TCP / IP between transmission processing (1) and reception processing (2) is considered. First, the transmission process (1) transmits a connection opening request (3) and receives a connection opening response (4). After that, a data transmission request (5) is transmitted, and ACK is transmitted.
(6) is received. Thereafter, a connection release request (7) is transmitted, and a connection release response (8) is received.

【0033】送信データがそれぞれの相手に届くまでの
時間をAとすると、(3)〜(8)の6回送信が行われ
ている為、送信処理が、データ送信処理を完了するまで
に6Aの時間がかかる。
Assuming that the time until the transmission data reaches each of the other parties is A, since the transmission is performed six times in (3) to (8), the transmission processing takes 6A until the data transmission processing is completed. It takes time.

【0034】本発明の通信方法を、図3を参照しながら
説明する。図3において、送信処理(9)と受信処理
(10)の間に、仮想コネクション(11)を設ける。
送信処理(9)は、仮想コネクション(11)に対して
コネクション開設要求(12)を送信し、コネクション
開設応答(13)を受け取る。仮想コネクション(1
1)は、受信処理(10)に対してコネクション確立要
求(12)’を送信し、コネクション応答(13)’を
受信する。その後、送信処理(9)は、データ送信要求
(14)を仮想コネクション(11)に送信する。
The communication method of the present invention will be described with reference to FIG. In FIG. 3, a virtual connection (11) is provided between a transmission process (9) and a reception process (10).
The transmission process (9) transmits a connection opening request (12) to the virtual connection (11) and receives a connection opening response (13). Virtual connection (1
1) transmits a connection establishment request (12) 'to the reception process (10) and receives a connection response (13)'. Thereafter, the transmission process (9) transmits a data transmission request (14) to the virtual connection (11).

【0035】仮想コネクション(11)は、データ送信
要求(14)の内容をデータバッファ(15)に一時蓄
積し、ACK(16)を受信する。仮想コネクション
(11)は、データバッファ(15)から情報を読み出
し、受信処理(10)に対してデータ送信要求(1
4)’を送信し、ACK(16)’受信する。この後、
送信処理(9)は、コネクション解放要求(17)を仮
想コネクション(11)に送信し、コネクション解放応
答(18)を返す。同様に仮想コネクション(11)
は、データバッファ(15)にのみ送信データが無いた
め、コネクション解放要求(17)’を受信処理(1
0)に送信しコネクション解放応答(18)’を返す。
The virtual connection (11) temporarily stores the content of the data transmission request (14) in the data buffer (15) and receives the ACK (16). The virtual connection (11) reads information from the data buffer (15), and sends a data transmission request (1) to the reception process (10).
4) 'is transmitted and ACK (16)' is received. After this,
The transmission process (9) transmits a connection release request (17) to the virtual connection (11) and returns a connection release response (18). Similarly, virtual connection (11)
Receives the connection release request (17) ′ because there is no transmission data only in the data buffer (15).
0) and returns a connection release response (18) '.

【0036】(12)(13)(14)(16)(1
7)(18)の送信と、(12)’(13)’(1
4)’(16)’(17)’(18)’の送信は、待ち
合わせをせずに、独立して行われる。
(12) (13) (14) (16) (1
7) Transmission of (18) and (12) '(13)' (1
4) Transmission of '(16)' (17) '(18)' is performed independently without waiting.

【0037】(12)〜(18)の送信時間は、6B、
(12)’〜(18)’の送信時間は6Cとなる。
The transmission time of (12) to (18) is 6B,
The transmission time of (12) 'to (18)' is 6C.

【0038】送信処理(10)と仮想コネクション(1
1)は同一ホスト上に実装し、受信処理(12)は、品
質の悪い回線で接続されているものとすると、一般的に
6B<6Cである。従来方式での送信時間と比較すると
6A≒6Cであるから、従来より、仮想コネクション
(11)を経由して通信した方が回線品質による影響を
受けにくく、回線品質が悪い場合は、従来の方式より送
信処理(9)が送信処理を完了するまでの時間が短くな
る。
Transmission processing (10) and virtual connection (1)
Assuming that 1) is mounted on the same host and the receiving process (12) is connected by a line of poor quality, generally 6B <6C. Since 6A 時間 6C compared to the transmission time in the conventional method, communication via the virtual connection (11) is less affected by the line quality than before, and when the line quality is poor, the conventional method is used. The time required for the transmission process (9) to complete the transmission process becomes shorter.

【0039】以上、説明したように、本発明によれば、
以下のような作用効果を得ることができる。
As described above, according to the present invention,
The following operational effects can be obtained.

【0040】・データ送信側の送信処理が送信完了まで
に要する時間は、受信側との間の回線品質に影響しな
い。
The time required for the transmission process on the data transmission side to complete the transmission does not affect the line quality with the reception side.

【0041】・従来は、回線品質がよくても受信処理側
の処理性能が悪ければ、回線品質が悪い場合と同様にデ
ータ送信側の送信処理が完了するまでの時間が増大する
が、本発明の仮想コネクションによれば、データ送信側
の送信処理が送信完了までに要する時間は、受信側の処
理性能に影響しなくなる。
Conventionally, even if the line quality is good, if the processing performance on the reception processing side is poor, the time required for completing the transmission processing on the data transmission side increases as in the case where the line quality is poor. According to this virtual connection, the time required for the transmission process on the data transmission side to complete the transmission does not affect the processing performance on the reception side.

【0042】[0042]

【発明の実施の形態】次に、本発明の実施形態について
図面を参照して詳細に説明する。
Next, an embodiment of the present invention will be described in detail with reference to the drawings.

【0043】[構成の説明]図1は、送信側ホスト10
の内部の送信プロセス11が、受信側ホスト30の内部
の受信プロセス31に対してTCP/IPを使用してデ
ータ送信する場合に、本発明の仮想コネクション装置を
使用して仮想コネクション通信を行った場合の実装形態
を示している。
[Explanation of Configuration] FIG.
In the case where the transmission process 11 inside transmits data using TCP / IP to the reception process 31 inside the receiving host 30, virtual connection communication is performed using the virtual connection device of the present invention. It shows a mounting form in the case.

【0044】図1において、本発明の仮想コネクション
装置は、それぞれソフトウェアプロセスとして仮想コネ
クションプロセス12、仮想コネクションプロセス32
という形態で実装されている。仮想コネクション接続先
情報17には、クライアントソケット処理部18と受信
側ホスト30内のサーバソケット処理部35との間にT
CP/IPコネクション51を確立する為に必要な情報
として、受信側ホスト30のIPアドレスとサーバソケ
ット処理部35のポート番号が設定されている。同じ
く、仮想コネクション接続情報37には、受信側ホスト
30内の受信プロセス31との間にTCP/IPコネク
ション52を確立する為に必要な情報として、受信ホス
ト30のIPアドレスと受信プロセス31のポート番号
が設定される。これらの情報を記録するものとして、参
照・変更が容易なテキストファイルが望ましい。
In FIG. 1, the virtual connection device of the present invention includes a virtual connection process 12 and a virtual connection process 32 as software processes, respectively.
It is implemented in the form. The virtual connection connection destination information 17 includes a T between the client socket processing unit 18 and the server socket processing unit 35 in the receiving host 30.
As information necessary for establishing the CP / IP connection 51, the IP address of the receiving host 30 and the port number of the server socket processing unit 35 are set. Similarly, the virtual connection connection information 37 includes the IP address of the receiving host 30 and the port of the receiving process 31 as information necessary for establishing the TCP / IP connection 52 with the receiving process 31 in the receiving host 30. The number is set. A text file that is easy to refer to and change is desirable for recording such information.

【0045】サーバソケットコネクション状態16に
は、TCP/IPコネクション50のコネクション状態
が設定され、サーバソケットコネクション状態36に
は、TCP/IPコネクション50がコネクション確立
中か、送信データ用FIFOバッファ13に未送信デー
タがある状態の時に、コネクション確立中と設定され
る。これらは、メモリ中にその値を保持する。サーバソ
ケットコネクション状態36にコネクション状態と、送
信データ用FIFOバッファ13の状態を参照した値を
設定する方法については後で説明する。
In the server socket connection state 16, the connection state of the TCP / IP connection 50 is set. In the server socket connection state 36, whether the TCP / IP connection 50 is establishing a connection or not stored in the transmission data FIFO buffer 13. When transmission data exists, it is set that connection is being established. These hold their values in memory. A method of setting a value referring to the connection state and the state of the transmission data FIFO buffer 13 in the server socket connection state 36 will be described later.

【0046】サーバソケット処理部15は、TCP/I
Pコネクション50からの送信データを送信用FIFO
バッファ13に保持する。クライアントソケット処理部
18は、送信データ用FIFOバッファ13を送信用デ
ータバッファ33に保持する。これらのFIFOバッフ
ァは、高速に参照更新する必要があることからメモリ上
にバッファリングすることが望ましい。
The server socket processing unit 15 has a TCP / I
FIFO for sending data from P connection 50
The data is stored in the buffer 13. The client socket processing unit 18 holds the transmission data FIFO buffer 13 in the transmission data buffer 33. Since these FIFO buffers need to be updated at high speed, it is desirable to buffer them on a memory.

【0047】[動作の説明]次に、本発明の実施形態の
動作について図1を参照して詳細に説明する。
[Description of Operation] Next, the operation of the embodiment of the present invention will be described in detail with reference to FIG.

【0048】クライアントソケット処理部18は、送信
データ用FIFOバッファ13に未送信データがある場
合は、常にTCP/IPコネクション51を確立してデ
ータを送信し、サーバソケットコネクション状態16が
コネクション確立中に設定されている場合は、TCP/
IPコネクション51を常に保持する様に動作する。
When there is untransmitted data in the transmit data FIFO buffer 13, the client socket processing unit 18 always establishes the TCP / IP connection 51 and transmits the data, and the server socket connection state 16 indicates that the connection is being established. If set, TCP /
It operates so as to always hold the IP connection 51.

【0049】同様に、クライアントソケット処理部38
は、送信データ用FIFOバッファ33に未送信データ
が有る場合には、常にTCP/IPコネクション52を
確立してデータを送信し、サーバソケットコネクション
状態36が、コネクション確立中に設定されている場合
にはTCP/IPコネクション52を常に確立する様に
動作する。
Similarly, the client socket processing unit 38
When there is untransmitted data in the transmission data FIFO buffer 33, the TCP / IP connection 52 is always established and the data is transmitted, and when the server socket connection state 36 is set to "connection established". Operates to always establish the TCP / IP connection 52.

【0050】以上に説明した各部分の相互作用により、
TCP/IPコネクション50が確立しているか、送信
用データFIFOバッファ13または送信用データFI
FOバッファ33に未送信データがある限りは、TCP
/IPコネクション51及びTCP/IPコネクション
52は、コネクションを確立し続けるように動作し、T
CP/IPコネクション51が解放されても、TCP/
IPコネクション50とTCP/IPコネクション52
は解放されないため、送信プロセス11と受信プロセス
31との間で、見かけ上コネクション確立が継続されて
いる様に見える。
By the interaction of each part described above,
Whether the TCP / IP connection 50 has been established, the transmission data FIFO buffer 13 or the transmission data FI
As long as there is untransmitted data in the FO buffer 33, TCP
The / IP connection 51 and the TCP / IP connection 52 operate to keep establishing the connection.
Even if the CP / IP connection 51 is released, the TCP /
IP connection 50 and TCP / IP connection 52
Since is not released, it appears that the connection is apparently established between the transmission process 11 and the reception process 31.

【0051】図1のサーバソケットコネクション状態3
6に、TCP/IPコネクション50及び送信データ用
FIFOバッファ13に応じたコネクション状態値を伝
達する方法について図2を用いて説明する。図2は、図
1から説明に関連する要素を取り出して番号を振り直し
たものに送信データ101〜107とコネクション状態
111〜113、仮想コネクション間送信データ141
を加えたものである。
The server socket connection state 3 in FIG.
6, a method of transmitting a connection state value according to the TCP / IP connection 50 and the transmission data FIFO buffer 13 will be described with reference to FIG. FIG. 2 shows transmission data 101 to 107, connection statuses 111 to 113, and transmission data 141 between virtual connections, which are obtained by extracting elements related to the description from FIG.
Is added.

【0052】図1のサーバソケットコネクション状態3
6は、図2のサーバソケットコネクション状態128に
相当する。又、図1のTCP/IPコネクション50
は、図2のTCP/IPコネクション151に相当し、
送信データ用FIFOバッファ13は、図2の送信デー
タ用FIFOバッファ122に相当する。図1での仮想
コネクションプロセス12及び仮想コネクションプロセ
ス32の間のTCP/IPコネクション51は、図2で
のTCP/IPコネクション152が相当する。以後、
図2の番号を用いて説明する。
The server socket connection state 3 in FIG.
6 corresponds to the server socket connection state 128 of FIG. Also, the TCP / IP connection 50 shown in FIG.
Corresponds to the TCP / IP connection 151 in FIG.
The transmission data FIFO buffer 13 corresponds to the transmission data FIFO buffer 122 in FIG. The TCP / IP connection 51 between the virtual connection process 12 and the virtual connection process 32 in FIG. 1 corresponds to the TCP / IP connection 152 in FIG. Since then
Description will be made using the numbers in FIG.

【0053】送信データ101〜107の内容は、全て
同じものである。送信データ101は、TCP/IPコ
ネクション151を経由してサーバソケット処理部12
1にわたり、送信データ用FIFOバッファ122に送
信データ103が保存される。TCP/IPコネクショ
ン151を経由している間も、送信データ102以外の
データは送信されない。
The contents of the transmission data 101 to 107 are all the same. The transmission data 101 is transmitted to the server socket processing unit 12 via the TCP / IP connection 151.
For one, the transmission data 103 is stored in the transmission data FIFO buffer 122. No data other than the transmission data 102 is transmitted during the transmission via the TCP / IP connection 151.

【0054】一方、クライアントソケット処理部125
は、TCP/IPコネクション152を使用してサーバ
ソケット処理部126へデータを送信する場合は、常に
コネクション状態を先頭に付与して送信する。具体的に
は、以下のようになる。送信データ用FIFOバッファ
122に未送信データが有ることを検出したクライアン
トソケット処理部125は、同バッファから送信データ
104を読み出した後に、サーバソケットコネクション
状態123を参照し、TCP/IPコネクション151
がまだ、コネクションを確立しているか否か確認する。
On the other hand, the client socket processing unit 125
When transmitting data to the server socket processing unit 126 using the TCP / IP connection 152, the connection state is always added to the head and transmitted. Specifically, it is as follows. The client socket processing unit 125, which has detected that there is untransmitted data in the transmission data FIFO buffer 122, reads out the transmission data 104 from the buffer and then refers to the server socket connection state 123 to check the TCP / IP connection 151.
Confirms that the connection is still established.

【0055】この時、コネクション状態が、確立中の場
合は、コネクション状態111をコネクション確立中で
生成する。もし、コネクション解放中だった場合は、バ
ッファから読み出した送信データが、最後の未送信デー
タか否かを確認する。送信データ104が、バッファに
残された最後の未送信データの場合は、コネクション状
態111を、コネクション解放中で生成する。最後の未
送信データでない場合は、コネクション確立中で生成す
る。
At this time, if the connection state is being established, a connection state 111 is generated while the connection is being established. If the connection is being released, it is checked whether the transmission data read from the buffer is the last untransmitted data. If the transmission data 104 is the last untransmitted data remaining in the buffer, the connection state 111 is generated during the release of the connection. If it is not the last untransmitted data, it is generated during connection establishment.

【0056】その後、クライアントソケット処理部12
5は、コネクション状態111を送信データ105先頭
に付与した仮想コネクション間送信データ141を生成
し、TCP/IPコネクション152経由でサーバソケ
ット処理部126へ送信する。
Thereafter, the client socket processing unit 12
5 generates transmission data 141 between virtual connections in which the connection state 111 is added to the head of the transmission data 105, and transmits the generated data 141 to the server socket processing unit 126 via the TCP / IP connection 152.

【0057】仮想コネクション間送信データ141を受
信したサーバソケット処理部126は、先頭に付与され
たコネクション状態113と、送信データ107に分離
させ、送信データ107は、送信データ用FIFOバッ
ファ127へ保存し、コネクション状態113は、サー
バソケットコネクション状態128に、コネクション状
態を設定する為に参照される。
The server socket processing unit 126 that has received the transmission data 141 between virtual connections separates the connection state 113 added to the head and the transmission data 107, and stores the transmission data 107 in the transmission data FIFO buffer 127. The connection state 113 is referred to in order to set the connection state in the server socket connection state 128.

【0058】以上の説明の通り、サーバソケットコネク
ション状態を伝達する為の手段は、クライアントソケッ
ト処理部125とサーバソケット処理部126の間で送
信するデータにコネクション状態を常に付与することに
よって実現される。
As described above, the means for transmitting the server socket connection state is realized by always giving the connection state to the data transmitted between the client socket processing unit 125 and the server socket processing unit 126. .

【0059】[0059]

【実施例】次に、本発明の実施例について図1を参照し
て説明する。実施例には、実施形態の説明で用いた図を
そのまま実施例とする。すなわち、仮想コネクション装
置は、通常送信プロセスの存在するホストと、受信プロ
セスの存在するホストに、それぞれ通信用のプロセスと
して実装する。図中、仮想コネクションプロセス12と
仮想コネクションプロセス32がそれぞれ該当する。
Next, an embodiment of the present invention will be described with reference to FIG. In the examples, the drawings used in the description of the embodiments will be referred to as examples. That is, the virtual connection device is mounted as a communication process on each of the host having the normal transmission process and the host having the reception process. In the figure, the virtual connection process 12 and the virtual connection process 32 correspond respectively.

【0060】次に、本発明の実施例の動作について図1
を参照して詳細に説明する。本発明の効果がもっとも表
されるケースは、大量のデータを送信プロセス11から
受信プロセス31に転送する場合で、転送中にコネクシ
ョンが解放(切断)された場合には、再度データの送信
を行わなければならない場合である。具体的な例として
は、携帯電話の様に伝送媒体として一部無線を使用して
いる環境でファイル転送などを行う等のケースが上げら
れる。一般的なTCP/IPコネクションでのデータ送
信では、コネクションが切れた場合には、最初からやり
直す必要が有る。また、従来の方法の説明で示した物理
的なコネクションを複数同時に確立して転送する方法で
は、コネクションが完全に切断される確率を下げるだけ
の効果しか得られないし、無線を使用している場合は、
複数のコネクションは同時に切断される可能性が高い。
従って、本発明の効果をもっともよく表しているケース
として、大量なデータを送信プロセス11から受信プロ
セス31へ送信中に、中間のTCP/IPコネクション
51が切断され、再度接続された場合を想定して説明す
る。
Next, the operation of the embodiment of the present invention will be described with reference to FIG.
This will be described in detail with reference to FIG. The case where the effect of the present invention is most apparent is when a large amount of data is transferred from the transmission process 11 to the reception process 31. If the connection is released (disconnected) during the transfer, the data is transmitted again. This is the case. As a specific example, there is a case where file transfer or the like is performed in an environment where a part of wireless is used as a transmission medium like a mobile phone. In data transmission over a general TCP / IP connection, if the connection is broken, it is necessary to start over from the beginning. Also, the method of simultaneously establishing and transferring a plurality of physical connections described in the description of the conventional method can only obtain the effect of lowering the probability of completely disconnecting the connection, and when using wireless Is
A plurality of connections are likely to be disconnected at the same time.
Therefore, as a case best expressing the effect of the present invention, it is assumed that the middle TCP / IP connection 51 is disconnected and re-connected while a large amount of data is being transmitted from the transmission process 11 to the reception process 31. Will be explained.

【0061】送信プロセス11は、受信プロセス31へ
データ送信を行う目的で、仮想コネクションプロセス1
2にデータを送信する。最初に、TCP/IPコネクシ
ョン50が確立され、送信データは、サーバソケット処
理部15によって送信用データFIFOバッファ13に
保存される。クライアントソケット処理部18は、送信
データ用FIFOバッファ13に未送信データが蓄積さ
れたことを検出する。検出は、サーバソケット処理部1
5が送信用データFIFOバッファ13に送信データを
保存すると同時に、クライアントソケット処理部18
に、送信データを保存した旨を通知することで行われ
る。
The transmission process 11 transmits the virtual connection process 1 to the reception process 31 for the purpose of transmitting data.
2 to send the data. First, the TCP / IP connection 50 is established, and the transmission data is stored in the transmission data FIFO buffer 13 by the server socket processing unit 15. The client socket processing unit 18 detects that untransmitted data has been accumulated in the transmission data FIFO buffer 13. The detection is performed by the server socket processing unit 1
5 stores transmission data in the transmission data FIFO buffer 13 and at the same time,
This is done by notifying that the transmission data has been saved.

【0062】クライアントソケット処理部18は、仮想
コネクション接続先情報17から接続先の仮想コネクシ
ョン32に接続する為の情報を読み出し、TCP/IP
コネクション51を確立し、送信データ用FIFOバッ
ファ13から未送信データが無くなるまで、TCP/I
Pコネクション51経由で仮想コネクションプロセス3
2へコネクション状態を先頭に付与しながら送信する。
The client socket processing unit 18 reads information for connecting to the virtual connection 32 of the connection destination from the virtual connection connection destination information 17 and executes TCP / IP.
The connection 51 is established, and the TCP / I is executed until the untransmitted data is exhausted from the transmission data FIFO buffer 13.
Virtual connection process 3 via P connection 51
2 while transmitting the connection status to the top.

【0063】仮想コネクションプロセス32内のサーバ
ソケット処理部35は、受信したデータをコネクション
状態と、送信データに分割し、送信データは、送信デー
タ用FIFOバッファ33に保存する。同時に、分離し
たコネクション状態を参照し、サーバソケットコネクシ
ョン状態36の値を更新する。更に、サーバソケット処
理部35は、送信データ用FIFOバッファ33に送信
データを保存した旨をクライアントソケット処理部38
に通知する。
The server socket processing unit 35 in the virtual connection process 32 divides the received data into a connection state and transmission data, and stores the transmission data in the transmission data FIFO buffer 33. At the same time, the value of the server socket connection state 36 is updated with reference to the separated connection state. Further, the server socket processing unit 35 notifies the client socket processing unit 38 that the transmission data has been stored in the transmission data FIFO buffer 33.
Notify.

【0064】クライアントソケット処理部38は、仮想
コネクション接続先情報37から受信プロセス31へ接
続する為の情報を読み出し、TCP/IPコネクション
52を確立し、送信データ用FIFOバッファ33から
未送信データがなくなるまで、送信データの読み出しと
受信プロセス31への送信を繰り返す。
The client socket processing unit 38 reads information for connecting to the reception process 31 from the virtual connection destination information 37, establishes the TCP / IP connection 52, and the transmission data FIFO buffer 33 has no untransmitted data. Up to this point, the reading of the transmission data and the transmission to the reception process 31 are repeated.

【0065】以上で、TCP/IPコネクション50,
51,52が確立し、送信データ用FIFOバッファ1
3,33を経由して送信データが送信プロセス11から
受信プロセス31へ送信されている状況になる。
With the above, the TCP / IP connection 50,
51 and 52 are established and the transmission data FIFO buffer 1
The transmission data is transmitted from the transmission process 11 to the reception process 31 via the transmission processes 3 and 33.

【0066】この状況で、TCP/IPコネクション5
1が切断された場合の送信プロセス11及び受信プロセ
ス31の動作を説明する。送信プロセス11は、TCP
/IPコネクション51が切断されてもTCP/IPコ
ネクション50は確立したままであり、送信データは送
信データ用FIFOバッファ13に保存されるだけであ
るから、動作に変化はなく、TCP/IPコネクション
51が切断される前と同様にデータを送信し続ける。
In this situation, the TCP / IP connection 5
The operation of the transmission process 11 and the reception process 31 when 1 is disconnected will be described. The transmission process 11 uses TCP
Even if the / IP connection 51 is disconnected, the TCP / IP connection 50 is still established, and the transmission data is only stored in the transmission data FIFO buffer 13. Continue to transmit data as before it was disconnected.

【0067】受信プロセス31は、送信データ用FIF
Oバッファ33に未送信データが有る限り、TCP/I
Pコネクション51が切断される前と同様にデータを受
信し続ける。
The reception process 31 includes a transmission data FIF.
As long as there is untransmitted data in the O buffer 33, TCP / I
Data is continuously received as before the P connection 51 is disconnected.

【0068】送信データ用FIFOバッファ33に未送
信データが無くなると、クライアントソケット処理部3
8は、サーバソケットコネクション状態36を参照し、
送信プロセス11がまだコネクションを確立しているの
か判断する。TCP/IPコネクション51が切断され
る直前にサーバソケット処理部35が受信したデータの
先頭に付与されているコネクション状態は、コネクショ
ン確立中に設定されている。なぜならば、TCP/IP
コネクション51が切断される直前では、TCP/IP
コネクション50は確立中の筈であるし、もし、送信プ
ロセスが全ての送信処理を終えてTCP/IPコネクシ
ョン50を切断していたとしても、送信データ用FIF
Oバッファ13には未送信データがあるため、クライア
ントソケット処理部18が付与するコネクション状態
は、コネクション確立中になる筈だからである。
When there is no untransmitted data in the transmission data FIFO buffer 33, the client socket processing unit 3
8 refers to the server socket connection state 36,
It is determined whether the transmission process 11 is still establishing a connection. The connection state added to the head of the data received by the server socket processing unit 35 immediately before the disconnection of the TCP / IP connection 51 is set during connection establishment. Because TCP / IP
Immediately before the connection 51 is disconnected, the TCP / IP
The connection 50 should be established, and even if the transmission process completes all transmission processing and disconnects the TCP / IP connection 50, the transmission data
This is because there is untransmitted data in the O-buffer 13, so that the connection state given by the client socket processing unit 18 should be in the state of establishing a connection.

【0069】サーバソケットコネクション状態36を参
照し、コネクション確立中で有ることを確認したクライ
アントソケット処理部38は、TCP/IPコネクショ
ン52を確立中のまま保持する。以上で、TCP/IP
コネクション51が切断されてもTCP/IPコネクシ
ョン50及び52が確立したままの状況となる。この
後、TCP/IPコネクション51が再接続され、デー
タ送信が再開される迄を説明するが、状況として、TC
P/IPコネクション51が再接続するまで、送信プロ
セス11が送信し続けている場合と、送信が完了し、T
CP/IPコネクション50が解放されている場合があ
り得る。この2つのケースを順番に説明する。
Referring to the server socket connection state 36, the client socket processing unit 38 confirming that the connection is being established holds the TCP / IP connection 52 as it is being established. With the above, TCP / IP
Even if the connection 51 is disconnected, the TCP / IP connections 50 and 52 remain established. After that, a description will be given of a process until the TCP / IP connection 51 is reconnected and the data transmission is restarted.
The transmission process 11 continues to transmit until the P / IP connection 51 is reconnected, and the transmission is completed and T
It is possible that the CP / IP connection 50 has been released. These two cases will be described in order.

【0070】まず、TCP/IPコネクション51が再
接続するまで、送信プロセス11が送信し続けていた場
合について説明する。TCP/IPコネクションが何ら
かの外部要因によって切断されたことを検出したクライ
アントソケット処理部18は、適当な間隔で、コネクシ
ョンの再確立を試みる。UNIXシステムであれば、定
期的なシグナル割り込みを利用して間隔をとるのが適当
と思われる。
First, the case where the transmission process 11 continues to transmit until the TCP / IP connection 51 is reconnected will be described. Upon detecting that the TCP / IP connection has been disconnected due to some external factor, the client socket processing unit 18 attempts to re-establish the connection at appropriate intervals. For UNIX systems, it may be appropriate to use periodic signal interruptions to take time intervals.

【0071】TCP/IPコネクション51の再確立に
成功したクライアントソケット処理部18は、TCP/
IPコネクション51が切断される直前の状態から処理
を再開する。すなわち、送信データ用FIFOバッファ
13に未送信データがあるか否かを確認し、未送信デー
タがあるので、送信データにコネクション状態を付与し
て仮想コネクションプロセス32へ送信する。この時付
与するコネクション状態は、TCP/IPコネクション
50が確立中であるという前提からコネクション確立中
が設定される。
The client socket processing unit 18 that has successfully re-established the TCP / IP connection 51
The processing is restarted from the state immediately before the disconnection of the IP connection 51. That is, it is checked whether or not there is untransmitted data in the transmission data FIFO buffer 13. Since there is untransmitted data, the connection state is added to the transmitted data and transmitted to the virtual connection process 32. The connection state given at this time is set to “connection established” on the premise that the TCP / IP connection 50 is being established.

【0072】以上で、データ送信が再開したことにな
る。このままの状況で、送信プロセスがデータ送信を全
て完了すると、最後のデータ送信の後TCP/IPコネ
クション50を切断する。クライアントソケット処理部
18は、送信データ用FIFOバッファ13に未送信デ
ータがある限り、最後の未送信データとなるまでコネク
ション確立中に設定したコネクション状態を付与した送
信データを仮想コネクションプロセスに送信し続ける。
最後の送信データを送信データ用FIFOバッファ13
から読み出したクライアントソケット処理部18は、T
CP/IPコネクション50が解放中であり、かつ送信
データ用FIFOバッファ13に未送信データが無いこ
とからコネクション解放中に設定したコネクション状態
を最後の送信データに付与し、仮想コネクションプロセ
ス32へ送信し、TCP/IPコネクション51を切断
する。
Thus, the data transmission has been resumed. In this situation, when the transmission process completes all data transmission, the TCP / IP connection 50 is disconnected after the last data transmission. As long as there is untransmitted data in the transmission data FIFO buffer 13, the client socket processing unit 18 continues to transmit the transmission data with the connection state set during connection establishment to the virtual connection process until the last untransmitted data is reached. .
The last transmission data is stored in the transmission data FIFO buffer 13.
The client socket processing unit 18 read from T
Since the CP / IP connection 50 is being released and there is no untransmitted data in the transmission data FIFO buffer 13, the connection state set during the release of the connection is added to the last transmission data and transmitted to the virtual connection process 32. , The TCP / IP connection 51 is disconnected.

【0073】クライアントソケット処理部38も、やが
て、送信データ用FIFOバッファ33から最後の未送
信データを読み出す。最後の未送信データを読み出した
クライアントソケット処理部38は、サーバソケットコ
ネクション状態36を参照し、コネクション解放中とな
っているのを確認する。コネクションが解放中であるた
め、クライアントソケット処理部38は、最後の未送信
データを受信プロセス31へ送信後、TCP/IPコネ
クション52を切断する。以上で、全データの転送が完
了したことになる。
The client socket processing unit 38 also reads out the last untransmitted data from the transmission data FIFO buffer 33 in due course. The client socket processing unit 38 that has read the last untransmitted data refers to the server socket connection state 36 and confirms that the connection is being released. Since the connection is being released, the client socket processing unit 38 disconnects the TCP / IP connection 52 after transmitting the last untransmitted data to the reception process 31. This completes the transfer of all data.

【0074】次に、TCP/IPコネクション51が再
確立する前に送信プロセス11が全データの送信を完了
し、TCP/IPコネクション50が解放されている場
合について説明する。この場合、送信データ用FIFO
バッファ13に未送信データが有るか否かを確認し、未
送信データがある場合は、コネクション確立中に設定し
たコネクション状態を付与してデータ送信を再開する。
やがて、最後の未送信データを送信する時に、コネクシ
ョン解放中に設定したコネクション状態を付与して送信
し、その後TCP/IPコネクション51を切断する。
Next, a case where the transmission process 11 has completed transmission of all data before the TCP / IP connection 51 is re-established and the TCP / IP connection 50 has been released will be described. In this case, the transmission data FIFO
It is checked whether or not there is unsent data in the buffer 13. If there is unsent data, the connection state set during connection establishment is given, and data transmission is resumed.
Eventually, when transmitting the last untransmitted data, the connection state set during connection release is added and transmitted, and then the TCP / IP connection 51 is disconnected.

【0075】仮想コネクションプロセス32も最後の未
送信データを送信する時にサーバソケットコネクション
状態36を参照し、TCP/IP50のコネクションが
解放されていることを認識する。データを受信プロセス
31に送信した後TCP/IPコネクション52を切断
し、全データの転送が完了したことになる。
The virtual connection process 32 also refers to the server socket connection state 36 when transmitting the last untransmitted data, and recognizes that the TCP / IP 50 connection has been released. After transmitting the data to the receiving process 31, the TCP / IP connection 52 is disconnected, and the transfer of all data is completed.

【0076】[0076]

【発明の効果】第1の効果は、無線などの低品質な伝送
媒体を経由する場合の通信においても、効率的にデータ
送信を行うことができるということである。実施例に示
したとおり、コネクションが切断されるような状況にお
いてもデータ送信側は、データ送信処理を継続できる
し、受信側もデータ受信を継続することができる。
The first effect is that data transmission can be efficiently performed even in communication via a low-quality transmission medium such as wireless communication. As shown in the embodiment, even in a situation where the connection is disconnected, the data transmission side can continue the data transmission process, and the reception side can continue the data reception.

【0077】その理由は、仮想コネクション装置が、あ
たかもコネクションが接続されているかのように振る舞
う機構と、送信データのバッファリング機構を持つため
である。この2つの機構を有するため、実際には、コネ
クションが切断されている様な状況に陥っても、送信処
理及び受信処理は中断されず、最終的に全てのデータを
送信することができる。つまり、コネクションの切断に
よるデータの再送などが発生しないという点において効
率的なデータ転送が行えているといえる。
The reason is that the virtual connection device has a mechanism that behaves as if a connection is connected and a transmission data buffering mechanism. Since these two mechanisms are provided, even in a situation where the connection is actually disconnected, the transmission processing and the reception processing are not interrupted, and all data can be finally transmitted. In other words, it can be said that efficient data transfer can be performed in that data retransmission and the like due to disconnection of the connection do not occur.

【0078】第2の効果は、データ送信側の処理完了ま
での時間を短縮できることである。これも仮想コネクシ
ョンプロセスのもつ送信データバッファリング機構によ
るもので、送信処理側は、バッファに全てのデータを送
信した後は、受信側でのデータ引き取り完了を待たずに
コネクションを解放できる。後のデータ送信は、仮想コ
ネクション装置が代行する。
The second effect is that the time until the processing on the data transmitting side is completed can be shortened. This is also due to the transmission data buffering mechanism of the virtual connection process. After transmitting all data to the buffer, the transmission processing side can release the connection without waiting for the completion of data collection at the reception side. Subsequent data transmission is performed by the virtual connection device.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】実施例のうち、サーバソケットコネクション状
態の伝達手段の詳細な説明図である。
FIG. 2 is a detailed explanatory diagram of a means for transmitting a server socket connection state in the embodiment.

【図3】本発明の仮想コネクション通信方法を示す図で
ある。
FIG. 3 is a diagram showing a virtual connection communication method of the present invention.

【図4】従来の仮想コネクション通信方法を示す図であ
る。
FIG. 4 is a diagram showing a conventional virtual connection communication method.

【符号の説明】[Explanation of symbols]

10 送信処理の実装されているホスト; 11 TCP/IPにてデータ送信を行うプロセス; 12 送信処理側に実装されている仮想コネクション
装置; 13 仮想コネクション装置内にある送信データの一
時蓄積バッファ; 14 仮想コネクション装置内にある受信データの一
時蓄積バッファ; 15 仮想コネクション装置内にある送信データを受
信する処理部; 16 仮想コネクション装置内にあるコネクション状
態を保持する部位; 17 仮想コネクション装置内にあるデータ送信先情
報を保持している部位; 18 仮想コネクション装置内にあるデータ送信の処
理部; 19 ホスト内に実装されているタイマ機能を持つプ
ロセス; 30 受信処理の実装されているホスト; 31 TCP/IPにてデータ受信を行うプロセス; 32 送信処理側に実装されている仮想コネクション
装置; 33 仮想コネクション装置内にある送信データの一
時蓄積バッファ; 34 仮想コネクション装置内にある受信データの一
時蓄積バッファ; 35 仮想コネクション装置内にある送信データを受
信する処理部; 36 仮想コネクション装置内にあるコネクション状
態を保持する部位; 37 仮想コネクション装置内にあるデータ送信先情
報を保持している部位; 38 仮想コネクション装置内にあるデータ送信の処
理部; 39 ホスト内に実装されているタイマ機能を持つプ
ロセス; 50 送信プロセスと仮想コネクション装置との間に
確立されたTCP/IPコネクション; 51 仮想コネクション装置間に確立されたTCP/
IPコネクション; 52 仮想コネクション装置と受信プロセスとの間に
確立されたTCP/IPコネクション; 101〜107 送信データ; 111〜113 コネクション状態を表しているデー
タ; 121 仮想コネクション装置内にある送信データを
受信する処理部; 122 仮想コネクション装置内にある送信データの
一時蓄積バッファ; 123 仮想コネクション装置内にあるコネクション
状態を保持する部位; 124 仮想コネクション装置内にあるデータ送信先
情報を保持している部位; 125 仮想コネクション装置内にあるデータ送信の
処理部; 126 仮想コネクション装置内にある送信データを
受信する処理部; 127 仮想コネクション装置内にある送信データの
一時蓄積バッファ; 128 仮想コネクション装置内にあるコネクション
状態を保持する部位; 141 送信データにコネクション状態を付与したデ
ータ; 151 送信プロセスと仮想コネクション装置との間
に確立されたTCP/IPコネクション; 152 仮想コネクション装置間に確立されたTCP
/IPコネクション;
Reference Signs List 10 Host equipped with transmission processing; 11 Process of transmitting data by TCP / IP; 12 Virtual connection device mounted on transmission processing side; 13 Temporary storage buffer for transmission data in virtual connection device; A buffer for temporarily storing received data in the virtual connection device; 15 a processing unit for receiving transmission data in the virtual connection device; 16 a unit for holding a connection state in the virtual connection device; 17 data in the virtual connection device 18 a data transmission processing unit in the virtual connection device; 19 a process having a timer function implemented in the host; 30 a host equipped with reception processing; 31 TCP / Process of receiving data by IP; 32 Transmission process 33 A temporary storage buffer for transmission data in the virtual connection device; 34 A temporary storage buffer for reception data in the virtual connection device; 35 Receives transmission data from the virtual connection device Processing unit; 36 a unit that holds a connection state in the virtual connection device; 37 a unit that holds data transmission destination information in the virtual connection device; 38 a processing unit for data transmission in the virtual connection device; 39 host A TCP / IP connection established between the sending process and the virtual connection device; 51 a TCP / IP connection established between the virtual connection device
IP connection; 52 TCP / IP connection established between the virtual connection device and the receiving process; 101 to 107 transmission data; 111 to 113 data representing the connection state; 121 receiving transmission data in the virtual connection device 122, a temporary storage buffer for transmission data in the virtual connection device; 123, a portion holding the connection state in the virtual connection device; 124, a portion holding the data transmission destination information in the virtual connection device; 125 a processing unit for data transmission in the virtual connection device; 126 a processing unit for receiving transmission data in the virtual connection device; 127 a temporary storage buffer for transmission data in the virtual connection device; 141: a data holding connection state to transmission data; 151 TCP / IP connection established between transmission process and virtual connection device; 152 TCP established between virtual connection device.
/ IP connection;

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 コネクション型通信方式において、 送信先の代わりに送信元のコネクション要求・データ送
信要求・コネクション解放要求を受け付ける機構と、 それぞれの上記要求に対し、送信元へコネクション応答
・データ受信応答(ACK)・コネクション解放応答を
返送する機構と、 データ送信要求にある送信データを送信用FIFO方式
バッファに保持する機構と、 前記FIFO方式バッファに未送信データがある場合
に、予め設定されている送信先へ前記コネクション型通
信で自動的に送信する機構と、 前記送信先から受信したデータを受信用FIFO方式バ
ッファに保持する機構と、 前記送信元とコネクションが確立している時に、前記受
信用FIFO方式バッファから、送信先から受信したデ
ータを、自動的に送信元へ送信する機構と、を有するこ
とを特徴とする仮想コネクション通信装置。
In a connection type communication system, a mechanism for receiving a connection request, a data transmission request, and a connection release request of a transmission source instead of a transmission destination, and a connection response / data reception response to the transmission source for each of the above requests (ACK) A mechanism for returning a connection release response, a mechanism for holding transmission data in a data transmission request in a transmission FIFO buffer, and a preset when there is untransmitted data in the FIFO buffer. A mechanism for automatically transmitting to the destination by the connection-type communication, a mechanism for holding data received from the destination in a FIFO buffer for reception, and a method for receiving when the connection with the source is established. Automatically send data received from the destination to the source from the FIFO buffer A virtual connection communication device, comprising:
【請求項2】 送信機側の送信プロセスとコネクション
接続された仮想コネクションプロセスと、 受信機側の受信プロセスとコネクション接続された仮想
コネクションプロセスと、 前記仮想コネクションプロセス間を接続するコネクショ
ン接続と、を備え、 前記仮想コネクションプロセスは、 送信データの一時蓄積バッファである送信データ用FI
FOバッファと、 受信データの一時蓄積バッファである受信データ用FI
FOバッファと、 送信データを受信するサーバーソケット処理部と、 コネクション状態を保持するサーバーソケットコネクシ
ョン状態と、 データ送信先情報を保持する仮想コネクション接続先情
報と、 データ送信の処理部であるクライアントソケット処理部
と、を有することを特徴とする請求項1記載の仮想コネ
クション通信装置。
2. A virtual connection process connected to a transmission process on a transmitter side, a virtual connection process connected to a reception process on a receiver side, and a connection connection connecting the virtual connection processes. The virtual connection process includes a transmission data FI that is a temporary storage buffer for transmission data.
FO buffer and received data FI which is a buffer for temporarily storing received data
FO buffer, server socket processing unit for receiving transmission data, server socket connection status for holding connection status, virtual connection connection destination information for holding data destination information, and client socket processing as a data transmission processing unit The virtual connection communication device according to claim 1, comprising:
【請求項3】 送信元と送信先に備えられた1対の仮想
コネクション装置を有し、 該仮想コネクション装置の1対を経由する事により、該
仮想コネクション装置間のコネクション状態に関係な
く、送信先と送信元がコネクションを確立しているよう
に通信することを特徴とする仮想コネクション通信方
法。
3. A transmission apparatus having a pair of virtual connection devices provided at a transmission source and a transmission destination, and transmitting via a pair of the virtual connection devices irrespective of a connection state between the virtual connection devices. A virtual connection communication method, wherein communication is performed as if a destination and a source have established a connection.
【請求項4】 コネクション型通信方法において、 コネクション要求に対してダミーのコネクション確立応
答を返す処理と、 送信データを受信した時にダミーの送信データ受信応答
(ACK)を返す処理と、 送信データバッファに送信データを一時保存する処理
と、 前記送信データバッファに送信データがある場合は、前
記コネクションを確立し、相手側に送信する処理と、を
有することを特徴とする請求項3記載の仮想コネクショ
ン通信方法。
4. A connection type communication method, comprising: a process of returning a dummy connection establishment response to a connection request; a process of returning a dummy transmission data reception response (ACK) when receiving transmission data; 4. The virtual connection communication according to claim 3, comprising: a process of temporarily storing transmission data; and a process of establishing the connection when there is transmission data in the transmission data buffer, and transmitting the connection to a partner. Method.
JP15658397A 1997-06-13 1997-06-13 Virtual connection communication equipment and communication method Pending JPH114259A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15658397A JPH114259A (en) 1997-06-13 1997-06-13 Virtual connection communication equipment and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15658397A JPH114259A (en) 1997-06-13 1997-06-13 Virtual connection communication equipment and communication method

Publications (1)

Publication Number Publication Date
JPH114259A true JPH114259A (en) 1999-01-06

Family

ID=15630944

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15658397A Pending JPH114259A (en) 1997-06-13 1997-06-13 Virtual connection communication equipment and communication method

Country Status (1)

Country Link
JP (1) JPH114259A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003517688A (en) * 1999-12-13 2003-05-27 テレフォンアクチーボラゲット エル エム エリクソン(パブル) Method and apparatus for performing network operations
JP2003204580A (en) * 2001-09-28 2003-07-18 Symbol Technologies Inc Software method for maintaining connectivity between applications during communication by mobile computer terminal operable in wireless network
JP2008250976A (en) * 2007-03-02 2008-10-16 Hitachi Communication Technologies Ltd Icmp conversion device
JP2008262273A (en) * 2007-04-10 2008-10-30 Fujitsu Ltd Data processing system, daemon program, and computer activation method
JP2009230269A (en) * 2008-03-19 2009-10-08 Sony Corp Information processing apparatus, information processing method, remote server and information processing system
US8477804B2 (en) 2007-03-02 2013-07-02 Hitachi, Ltd. ICMP translator

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003517688A (en) * 1999-12-13 2003-05-27 テレフォンアクチーボラゲット エル エム エリクソン(パブル) Method and apparatus for performing network operations
JP2003204580A (en) * 2001-09-28 2003-07-18 Symbol Technologies Inc Software method for maintaining connectivity between applications during communication by mobile computer terminal operable in wireless network
JP2008250976A (en) * 2007-03-02 2008-10-16 Hitachi Communication Technologies Ltd Icmp conversion device
US8477804B2 (en) 2007-03-02 2013-07-02 Hitachi, Ltd. ICMP translator
JP2008262273A (en) * 2007-04-10 2008-10-30 Fujitsu Ltd Data processing system, daemon program, and computer activation method
JP2009230269A (en) * 2008-03-19 2009-10-08 Sony Corp Information processing apparatus, information processing method, remote server and information processing system
US8838813B2 (en) 2008-03-19 2014-09-16 Sony Corporation Information processing unit, information processing method, remote server, and information processing system

Similar Documents

Publication Publication Date Title
US8675472B2 (en) Method and apparatus for network management system
US6954797B1 (en) Data Communication method, terminal equipment, interconnecting installation, data communication system and recording medium
US8724656B2 (en) Methods and devices for transmitting data between storage area networks
JP3620010B2 (en) Apparatus and program recording medium used in wireless communication system
CA2514086C (en) Methods and devices for transmitting data between storage area networks
JPH09160858A (en) Data resending method and server
JP3439320B2 (en) Data communication method, data communication device, and data communication program recording medium
US7689702B1 (en) Methods and apparatus for coordinating processing of network connections between two network protocol stacks
JP3608905B2 (en) Data communication system and data communication method
JPH114259A (en) Virtual connection communication equipment and communication method
JPS6350901B2 (en)
US8549345B1 (en) Methods and apparatus for recovering from a failed network interface card
JPH11177621A (en) Data transmission equipment and data communication system
JPH11168525A (en) Data communication method and data communication equipment
JP2003122539A (en) Network printer and network printer system
KR100333730B1 (en) Method for Requesting Data Retransmission between Network Access Systems over Ethernet
JPH10336242A (en) Data communication system
JP2000347965A (en) System and method for mobile communication
JP2968646B2 (en) X. 25 / X. 75 layer 2 processing unit
JPH08186601A (en) Data transfer method for communication equipment
JP3219070B2 (en) Line restoration method
JP2746207B2 (en) Emergency buffer reservation method
JP2002290442A (en) Communication device, program, information recording medium, and communication control method
JPS63246055A (en) Packet transmitter-receiver
JPH10150435A (en) Method for controlling data transfer error