JP2003333072A - Information processing device - Google Patents

Information processing device

Info

Publication number
JP2003333072A
JP2003333072A JP2002137156A JP2002137156A JP2003333072A JP 2003333072 A JP2003333072 A JP 2003333072A JP 2002137156 A JP2002137156 A JP 2002137156A JP 2002137156 A JP2002137156 A JP 2002137156A JP 2003333072 A JP2003333072 A JP 2003333072A
Authority
JP
Japan
Prior art keywords
communication
ppp
address
reconnection
application
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.)
Withdrawn
Application number
JP2002137156A
Other languages
Japanese (ja)
Inventor
Masao Aihara
正男 合原
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2002137156A priority Critical patent/JP2003333072A/en
Publication of JP2003333072A publication Critical patent/JP2003333072A/en
Withdrawn legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To restore a relation of an application and a lower stage layer using small loss, when line break and reconnect on active line occur during operation of application in a portable terminal enabling communication, and the like. <P>SOLUTION: In an information processing device, in which TCP/IP communication is carried out by using PPP and the line is reconnected when a line break occurs, the communication of an application layer is interrupted, only when the IP address changed after reconnection or the reconnection failed. <P>COPYRIGHT: (C)2004,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、PPPを使ってT
CP/IP通信を行うデータ通信装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention
The present invention relates to a data communication device that performs CP / IP communication.

【0002】[0002]

【従来技術】電話回線などを利用してTCP/IPでの
通信を行う場合、現在はPPPを用いるのが一般的であ
る。PPPは、接続開始時にLCPを用いてデータリン
ク層の確立に必要なパラメータの調停を行い、データリ
ンク層が確立すると、次にIPCPを用いて、TCP/
IP通信に必要なパラメータの調停を行う。これにはI
Pアドレスも含まれる。
2. Description of the Related Art When TCP / IP communication is performed using a telephone line or the like, PPP is currently generally used. When the connection is started, PPP arbitrates the parameters necessary for establishing the data link layer using LCP, and when the data link layer is established, next, using IPCP, TCP / TCP /
It arbitrates the parameters required for IP communication. I for this
The P address is also included.

【0003】IPCPの調停が完了するとTCP/IP
の通信が可能になる。
When arbitration of IPCP is completed, TCP / IP
Communication becomes possible.

【0004】(参考) RFC1661:The Point−to−Poin
t Protocol(PPP) RFC1332:The PPP Internet
Protocol Control Protocol
(IPCP)
(Reference) RFC1661: The Point-to-Point
t Protocol (PPP) RFC1332: The PPP Internet
Protocol Control Protocol
(IPCP)

【0005】[0005]

【発明が解決しようとする課題】通常のPPPでは、一
度電話回線などの物理層が切断されると、再接続した後
にLCP,IPCPの調停をやり直す必要がある。この
ため、IPアドレスが変わってしまう可能性がある。
In the ordinary PPP, once the physical layer such as a telephone line is disconnected, it is necessary to reconnect the LCP and IPCP after reconnecting. Therefore, the IP address may change.

【0006】IPアドレスが変わるとHTTPやFTP
などのアプリケーション層の通信が姫続できなくなる。
When the IP address changes, HTTP or FTP
Communication of application layer such as can not be continued.

【0007】そのため、PPPが切断されたときの対応
として以下の2つの方式がある。
Therefore, there are the following two methods as measures when the PPP is disconnected.

【0008】1)PPPが切断されると上位層の通信も
中断する。この場合、すぐに再接続されてIPアドレス
が同じだった場合、本来は上位層の通信が継続可能であ
るのに無駄に通信を中断することになる。
1) When PPP is disconnected, upper layer communication is also interrupted. In this case, if the IP address is the same after reconnecting immediately, the communication in the upper layer is originally interrupted but the communication is unnecessarily interrupted.

【0009】2)PPPが切断されても上位層には何も
影響を与えない。この場合、すぐに再接続されてIPア
ドレスが変わってしまった場合、上位層アプリケーショ
ンはいつまでも以前のIPアドレスでの通信を継続しよ
うとするが、実際には通信できない。
2) Even if the PPP is disconnected, the upper layer has no effect. In this case, when the IP address is changed due to immediate reconnection, the upper layer application tries to continue communication with the previous IP address forever, but cannot actually communicate.

【0010】上記2つの対応はそれぞれに無駄な場合が
あり、不便である。
The above two measures are inconvenient and sometimes inconvenient.

【0011】近年増加している携帯電話などを利用した
移動体通信では、電波状況によって予期せずに接続が切
れる場合が多いので、特に問題である。
Mobile communication using a mobile phone, etc., which has been increasing in number in recent years, is a particular problem because the connection is often disconnected unexpectedly depending on the radio wave condition.

【0012】[0012]

【課題を解決するための手段】本発明は、かかる問題点
を解決して、物理層が切断されたときにすぐに再接続を
行う場合には切断されたときにすぐにはアプリケーショ
ンに影響を与えず、再接続に失敗したときと再接続には
成功したがIPアドレスが前回と違うときにアプリケー
ションに通知することを特徴とする。
SUMMARY OF THE INVENTION The present invention solves such a problem, and if the physical layer is reconnected immediately when disconnected, the application is immediately affected when disconnected. It is characterized by notifying the application and notifying the application when the reconnection fails or when the reconnection succeeds but the IP address is different from the last time.

【0013】これにより、一時的に通信が途切れてすぐ
に再接続する場合には効果的な通信が可能になる。
As a result, effective communication becomes possible when communication is temporarily interrupted and reconnection is made immediately.

【0014】ここで、アプリケーションに通知する手段
としてはシグナルやソフトウェア割り込み、イベントフ
ラグなどプログラム間通信に適切な方式であれば何でも
良い。また、通信を利用するライブラリコールやシステ
ムコールが異常終了するなどの方法でも良い。
Here, any means suitable for inter-program communication such as signals, software interrupts, event flags, etc. may be used as means for notifying the application. Alternatively, a method of abnormally ending a library call or system call that uses communication may be used.

【0015】[0015]

【発明の実施の形態】(実施形態1)以下、図面を参照
して本発明の詳細を説明する。図1、図2は本発明の一
実施形態である、携帯電話を利用してPPP接続をし、
TCP/IPで通信するデータ通信装置を説明するもの
である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS (Embodiment 1) The present invention will be described in detail below with reference to the drawings. 1 and 2 are one embodiment of the present invention, in which a PPP connection is made using a mobile phone,
A data communication device that communicates by TCP / IP will be described.

【0016】図1は本情報処理装置の構成図である。1
0はサーバに接続を要求するクライアントマシンであ
り、11のCUP、12のメモリ装置、13の携帯電話
から構成されている。この手段を実現するためにCUP
が実行するプログラムは12のメモリ装置に格納されて
いる。また、PPPを利用してTCP/IP通信を行う
アプリケーションプログラムもメモリ装置12に格納さ
れており、11のCUPで実行される。プログラムが格
納されている場所はその他の外部記憶装置などの媒体で
も良い。
FIG. 1 is a block diagram of the information processing apparatus. 1
Reference numeral 0 is a client machine that requests a connection from the server, and is composed of 11 CUPs, 12 memory devices, and 13 mobile phones. To realize this means CUP
The programs executed by are stored in 12 memory devices. An application program for performing TCP / IP communication using PPP is also stored in the memory device 12, and is executed by 11 CUPs. The place where the program is stored may be another medium such as an external storage device.

【0017】20はクライアントからの接続要求を受付
けるサーバマシンであり、21のCUP、22のメモリ
装置、23のモデムから構成されている。本手段を実現
するためのプログラムはメモリ装置22または他の媒体
に格納されている。30はクライアントとサーバ双方の
モデムが接続されている電話回線である。サーバはネッ
トワーク40により、他のデータ通信機器と繋がってい
る。
A server machine 20 accepts a connection request from a client, and comprises a CUP 21, a memory device 22 and a modem 23. The program for implementing this means is stored in the memory device 22 or another medium. Reference numeral 30 is a telephone line to which modems of both the client and the server are connected. The server is connected to other data communication devices via the network 40.

【0018】クライアント10とサーバ20はPPPで
接続し、クライアント10はネットワーク層プロトコル
としてTCP/IPを用いて、サーバ20またはネット
ワーク40上のデータ通信装置と通信をする。
The client 10 and the server 20 are connected by PPP, and the client 10 communicates with the server 20 or a data communication device on the network 40 by using TCP / IP as a network layer protocol.

【0019】続いて、本システムの動作について、図2
のフローチャートを用いて説明する。図2はクライアン
トマシンに本発明を適応した場合のPPPに関する動作
を表すフローチャートである。
Next, the operation of this system will be described with reference to FIG.
This will be described with reference to the flowchart of. FIG. 2 is a flowchart showing the operation regarding PPP when the present invention is applied to a client machine.

【0020】クライアントマシン10の動作について説
明する。すでにサーバ20とのPPP通信を行っていた
クライアント10がC0で通信が切れると、C1で携帯
電話13を使用してモデム23を介してサーバ20との
PPPの再接続を試みる。ここで電話が繋がらない、P
PPのLCPかIPCPでの調停に失敗する等の理由で
再接続ができなかったときはC5に遷移する。同じくC
1で再接続が成功した場合はC2おいて再接続後のIP
アドレスが前回のIPアドレスと同じかどうかを検査す
る。ここでIPアドレスが同じだった場合はC4に遷移
し、アプリケーションには何の影響もなくTCP/IP
による通信が継続できる。
The operation of the client machine 10 will be described. When the client 10 which has already performed the PPP communication with the server 20 loses the communication at C0, the mobile phone 13 is used at C1 to try to reconnect the PPP with the server 20 via the modem 23. The phone doesn't connect here, P
When reconnection is not possible due to failure of arbitration in PP LCP or IPCP, the process proceeds to C5. Also C
If reconnection is successful in 1, the IP after reconnection in C2
Check if the address is the same as the previous IP address. If the IP address is the same here, it transits to C4 and TCP / IP has no effect on the application.
Communication can continue.

【0021】C2で再接続が失敗した場合とC3でIP
アドレスが以前と違う場合はC5に遷移しする。C5で
はTCP/IPで通信中のアプリケーションに該当する
事象(「再接続に失敗した」または「IPアドレスが変
わった」)を通知する。事象を知らされたアプリケーシ
ョンはそれまでのTCP/IP通信がこれ以上継続でき
ないので使用中の通信を切断する。ここで知らされた事
象が「IPアドレスが変わった」であれば必要であれば
再び新しいIPアドレスで通信を始めることもできる。
When reconnection fails at C2 and IP at C3
If the address is different from the previous one, the operation transits to C5. In C5, an event (“reconnection failed” or “IP address changed”) corresponding to the application communicating with TCP / IP is notified. The application notified of the event disconnects the communication in use because the TCP / IP communication until then cannot be continued. If the event notified here is “IP address has changed”, communication can be started again with a new IP address if necessary.

【0022】このようにして、PPP再接続が成功して
IPアドレスが変わらなかった場合にはアプリケーショ
ンの通信は継続でき、それ以外の場合にはアプリケーシ
ョンは通信を中断することができる。
In this way, if the PPP reconnection succeeds and the IP address does not change, the communication of the application can be continued, and in other cases, the application can interrupt the communication.

【0023】(実施形態2)次に、クライアントマシン
が再接続を何回か繰り返す場合についての本発明の実施
形態を示す。図3は本実施形態でのクライアントマシン
10のPPPに関する動作を表すフローチャートであ
る。
(Second Embodiment) Next, an embodiment of the present invention in which the client machine repeats reconnection several times will be described. FIG. 3 is a flowchart showing the operation of the client machine 10 relating to PPP in this embodiment.

【0024】実施形態1と同様にクライアントマシンは
サーバと通信していた回線が切断されると再接続を試み
る。C7,C8,C9以外の部分については実施形態1
と同じであるので説明は省略する。
Similar to the first embodiment, the client machine tries to reconnect when the line communicating with the server is disconnected. The portions other than C7, C8, and C9 are the same as those in the first embodiment.
The description is omitted because it is the same as.

【0025】C0で回線が切断されるとC1でPPP再
接続を試みるまえにC7において接続に失敗した回数を
数える変数、‘failed’に0を代入する。
When the line is disconnected at C0, 0 is substituted for a variable "failed" that counts the number of connection failures at C7 before attempting PPP reconnection at C1.

【0026】C2で再接続が失敗した場合はC8に遷移
し、変数、‘failed’の値を1増やす。C9で
‘failed’の値が再接続の規定回数(この例では
3回)を越、えていた場合はC5に遷移するが、再接続
の規定回数を越えていない場合はC1に遷移し、再び再
接続を行う。
If the reconnection fails at C2, the process proceeds to C8 and the value of the variable'failed 'is incremented by 1. In C9, if the value of'failed 'has exceeded the specified number of reconnections (3 times in this example), the process transitions to C5, but if it does not exceed the specified number of reconnections, the process transitions to C1 and then again. Reconnect.

【0027】このようにして、規定回数を越えるまで再
接続を繰り返し、それでも再接続に失敗した場合は通信
を終了するというシステムにも本発明が適用できる。
In this way, the present invention can be applied to a system in which reconnection is repeated until the specified number of times is exceeded, and if the reconnection is still unsuccessful, the communication is terminated.

【0028】[0028]

【発明の効果】すなわち本発明によれば、PPPが切断
されたときにすぐに再接続を行う通信装置において、再
接続したときに前回の接続と同じIPアドレスでない場
合にはIPアドレスが変更されたことを他のプログラム
に通知することによって、IPアドレスが変更されない
ときにはアプリケーション層の通信を継続し、IPアド
レスが変更されたときや再接続に失敗したときにはアプ
リケーション層の通信を終了させることができる。
As described above, according to the present invention, in a communication device that reconnects immediately when PPP is disconnected, if the IP address is not the same as the previous connection when reconnecting, the IP address is changed. By notifying other programs of this, the application layer communication can be continued when the IP address is not changed, and the application layer communication can be terminated when the IP address is changed or reconnection fails. .

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

【図1】本発明の実施形態である情報処理装置の構成図
である。
FIG. 1 is a configuration diagram of an information processing apparatus that is an embodiment of the present invention.

【図2】本発明の実施形態である情報処理装置の構成図
である。
FIG. 2 is a configuration diagram of an information processing apparatus that is an embodiment of the present invention.

【図3】本実施形態でのクライアントマシン10のPP
Pに関する動作を表すフローチャートである。
FIG. 3 is a PP of a client machine 10 according to this embodiment.
7 is a flowchart showing an operation regarding P.

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

10 クライアント本体 11 クライアントのCUP 12 クライアントのメモリ装置 13 クライアントのモデム装置(携帯電話) 20 サーバ本体 21 サーバのCUP 22 サーバのメモリ装置 23 サーバのモデム装置 30 電話回線 40 サーバが繋がっているネットワーク 10 Client body 11 Client CUP 12 Client memory device 13 Client modem device (mobile phone) 20 server body 21 Server CUP 22 Server memory device 23 Server modem device 30 telephone lines Network with 40 servers

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B089 GA21 HB02 HB03 KA01 KB06 KG06 5K030 HA08 JL01 JT09 LB01 5K034 AA02 DD01 EE03 EE12 FF01 FF02 FF13 GG02 KK21 LL01 LL02 SS00 SS02    ─────────────────────────────────────────────────── ─── Continued front page    F term (reference) 5B089 GA21 HB02 HB03 KA01 KB06                       KG06                 5K030 HA08 JL01 JT09 LB01                 5K034 AA02 DD01 EE03 EE12 FF01                       FF02 FF13 GG02 KK21 LL01                       LL02 SS00 SS02

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 PPPを使ってTCP/IP通信を行
い、PPPが切断されたときにすぐに再接続を行う通信
装置において、 再接続したときに前回の接続と同じIPアドレスでない
場合にはIPアドレスが変更されたことを他のプログラ
ムに通知するというアルゴリズム。
1. A communication device for performing TCP / IP communication using PPP and immediately reconnecting when PPP is disconnected, in a case where the IP address is not the same as that of the previous connection when reconnecting. An algorithm that notifies other programs that an address has changed.
【請求項2】 前記PPPが切断されたときにすぐに再
接続を行う通信装置において、 再接続に失敗したときにはそのことを他のプログラムに
通知するというアルゴリズム。
2. An algorithm that, in a communication device that reconnects immediately when the PPP is disconnected, notifies another program of that when reconnection fails.
【請求項3】 前記データ通信装置を上記アルゴリズム
のように制御するプログラム。
3. A program for controlling the data communication device as the above algorithm.
【請求項4】 上記のPPPプログラムを搭載した、デ
ータ通信装置。
4. A data communication device equipped with the above-mentioned PPP program.
【請求項5】 上記データ通信装置2つを組み合わせた
システム。
5. A system in which two data communication devices are combined.
【請求項6】 前記各々、装置、アルゴリズム、媒体。6. Each of said devices, algorithms, media.
JP2002137156A 2002-05-13 2002-05-13 Information processing device Withdrawn JP2003333072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002137156A JP2003333072A (en) 2002-05-13 2002-05-13 Information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002137156A JP2003333072A (en) 2002-05-13 2002-05-13 Information processing device

Publications (1)

Publication Number Publication Date
JP2003333072A true JP2003333072A (en) 2003-11-21

Family

ID=29698991

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002137156A Withdrawn JP2003333072A (en) 2002-05-13 2002-05-13 Information processing device

Country Status (1)

Country Link
JP (1) JP2003333072A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005295565A (en) * 2004-04-02 2005-10-20 Fr Telecom Communication system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005295565A (en) * 2004-04-02 2005-10-20 Fr Telecom Communication system
JP2012023722A (en) * 2004-04-02 2012-02-02 Fr Telecom Communications system

Similar Documents

Publication Publication Date Title
JP4268969B2 (en) Media message upload control method via wireless communication network
US8660527B2 (en) Control of data call origination based on prior origination attempts
US7561592B1 (en) Method and apparatus for fiber auto-negotiation
JP5374794B2 (en) Fast recovery of network connections
JPH1069449A (en) Device and method for recovering session between server and client
BRPI0107490B1 (en) method for processing a fixed to mobile packet data call origination, wireless subscriber station equipment, method for packet data call origination, and subscriber station
KR20050077688A (en) System and method for reestablishing the session between terminal and server
US6904033B1 (en) Method, system and packet data serving node (PDSN) for mobile IP (MIP) registration of a mobile node (MN)
JP2003046514A (en) Electronic device with relay function for data communication
CN109964493B (en) Network connection detection method, device, terminal and computer storage medium
WO2000002131A1 (en) Method and apparatus for communication control, and recording medium for communication control program
JP4001593B2 (en) Packet receiving method for portable terminal
US20060153221A1 (en) Methods for IP configuration negotiation and related devices
JP2003333072A (en) Information processing device
US20050021760A1 (en) PPPoE network system and reconnection method thereof
US6973567B1 (en) Early authentication during modem training
WO2008083340A2 (en) Network communication equipment with pppoe bridging function
US20050204049A1 (en) Connectivity confirmation method for network storage device and host computer
CN115022384A (en) HSMS communication connection method and device
JP2003008683A (en) Cellular phone apparatus with usb reconnection function, and communication recovery method of the device
JP2001333132A (en) Information processing unit, information processing method and recording medium
TW200306100A (en) Communication apparatus, communication system and the program
CN113965444A (en) Remote recovery method and device for home gateway
CN106911696B (en) Keep-alive message transmission method and device
EP0912025A2 (en) Data communications error recovery

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050802