JP4231984B2 - Relay server and communication system - Google Patents
Relay server and communication system Download PDFInfo
- Publication number
- JP4231984B2 JP4231984B2 JP2001007072A JP2001007072A JP4231984B2 JP 4231984 B2 JP4231984 B2 JP 4231984B2 JP 2001007072 A JP2001007072 A JP 2001007072A JP 2001007072 A JP2001007072 A JP 2001007072A JP 4231984 B2 JP4231984 B2 JP 4231984B2
- Authority
- JP
- Japan
- Prior art keywords
- relay server
- connection
- terminal
- communication
- network device
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、複数のネットワーク装置及び複数の中継サーバがネットワークによって接続された通信システムと、そのような通信システムにおいて利用して好適な中継サーバに関するものである。
【0002】
【従来の技術】
図4は、一般的なインターネットを用いたシステムの一例を示す説明図である。図中、1,2はローカルシステム、3はインターネット、11,12,21,22は端末、13,23はゲートウェイ、14,24はLANである。ローカルシステム1は、端末11、端末12、ゲートウェイ13などがLAN14により接続されて構成されている。ゲートウェイ13は、LAN14とともにインターネット3に接続されており、LAN14上の端末11,12など、各種のネットワーク機器からインターネットを利用することができる。またローカルシステム2も同様であり、端末21、端末22、ゲートウェイ23などがLAN24により接続されて構成されている。ゲートウェイ23は、LAN24とともにインターネット3に接続されており、LAN24上の端末21,22など、各種のネットワーク機器からインターネットを利用することができる。もちろん、それぞれのローカルシステム1,2において、他の様々な機器がLAN14,24により接続されていてよい。
【0003】
このようなシステムにおいて、通常はローカルシステム1,2に対してはグローバルIPアドレスは1ないし複数個が割り当てられるが、ローカルシステム1,2内のそれぞれのネットワーク機器にグローバルIPアドレスが割り当てられるわけではない。それぞれのローカルシステム1,2内の各ネットワーク機器にはプライベートなIPアドレスが割り振られており、ゲートウェイ13,23によってNATやIPマスカレードなどの機能を用いてプライベートなIPアドレスとグローバルなIPアドレスとの変換を行っている。このようなIPアドレスの変換機能を有するゲートウェイ13,23を用い、例えばローカルシステム1では端末11,12はゲートウェイ13を介してインターネット3を利用することになる。またローカルシステム2においても、端末21,22はゲートウェイ23を介してインターネット3を利用することになる。
【0004】
またゲートウェイ13,23あるいは別のネットワーク装置等においてはファイアウォールやプロキシサーバなどの機能を有し、これらの装置を介して各端末がインターネット3を利用するような構成も利用されており、システムの安全性を向上させている。
【0005】
ここで、例えばインターネット3からローカルシステム1内の端末11に対してアクセスしようとすると、ゲートウェイ13のグローバルIPアドレスを知ることはできるものの、端末11のプライベートなIPアドレスを知ることはできない。従って、通常の接続方法ではローカルシステム1の外部から端末11をアクセスすることはできない。またゲートウェイ13のファイアウォールの機能などによって、アクセスを受け付けるサイトが制限されている場合もある。もちろん、端末12についても同様であるし、ローカルシステム2内の端末21,22についても同様である。
【0006】
さらに、ローカルシステム1内の端末11や端末12、ローカルシステム2内の端末21や端末22は、通常はクライアント機能しか有しておらず、他のネットワーク機器からの情報を受け付けるサーバの機能を有していない。そのため、端末11,12,21,22から他のネットワーク機器にアクセスしない限り、他のネットワーク機器からこれらの端末に情報を送信することができない。
【0007】
【発明が解決しようとする課題】
本発明は、上述した事情に鑑みてなされたもので、インターネットからローカルシステム内の端末への接続、あるいは異なるローカルシステム内の端末間の接続を複数の中継サーバを介して行うことができる通信システム、および、そのような通信システムにおいて利用して好適な中継サーバを提供することを目的とするものである。
【0008】
【課題を解決するための手段】
本発明は、中継サーバにおいて、複数のネットワーク装置とそれぞれ1以上のTCP/IPコネクションを用いて通信可能であるとともに他の中継サーバと通信可能な通信手段と、前記通信手段により通信可能な前記ネットワーク装置の接続情報を保持する接続情報保持手段を有し、前記通信手段は、前記ネットワーク装置とTCP/IPコネクションを確立後、前記TCP/IPコネクションを維持し、前記ネットワーク装置から他のネットワーク装置との接続要求に基づいて前記接続情報を参照し、必要に応じて他の中継サーバへ前記接続要求を送り、前記ネットワーク装置との間で確立されているTCP/IPコネクションと他の中継サーバとの間で通信を中継することにより前記ネットワーク装置と他のネットワーク装置との通信を中継することを特徴とするものである。このように、中継サーバに対してネットワーク装置がTCP/IPコネクションを確立して保持することにより通信可能に接続されているので、ローカルシステム内のネットワーク装置に対する通信が可能である。さらに、ネットワーク装置が異なる中継サーバに接続されていても、中継サーバ間で中継を行うことによって、異なる中継サーバに接続されているネットワーク装置間での通信が可能になる。
【0009】
なお、ネットワーク装置から接続要求された通信相手先のネットワーク装置が接続されている中継サーバは、接続要求時に指定したり、予めそれぞれの中継サーバに設定されているほか、前記通信手段が外部より他の中継サーバの接続情報を受け取って接続情報保持手段に格納するように構成することができる。外部から接続情報を受け取ることによって、動的な管理が可能になる。
【0010】
また本発明は、複数のネットワーク装置及び複数の中継サーバがネットワークによって接続された通信システムにおいて、前記ネットワーク装置は、いずれかの前記中継サーバと1以上のTCP/IPコネクションを確立して該TCP/IPコネクションを維持しており、他のネットワーク装置との接続要求を行って通信を行うものであり、中継サーバは、前記ネットワーク装置からの前記接続要求に基づいて必要に応じて他の中継サーバへ前記接続要求を送り、前記ネットワーク装置との間で確立されているTCP/IPコネクションと他の中継サーバとの間で通信を中継することにより前記ネットワーク装置と他のネットワーク装置との通信を中継することを特徴とするものである。このような通信システムでは、いずれかの中継サーバとネットワーク装置がTCP/IPコネクションを確立して維持していることによって、中継サーバとネットワーク装置との間の通信が可能である。これを利用し、中継サーバ間の通信を行って、ネットワーク装置間の通信を中継することによって、異なる中継サーバに接続されているネットワーク装置間での通信が可能になる。
【0011】
なお、ネットワーク装置から接続要求された通信相手先のネットワーク装置が接続されている中継サーバは、接続要求時に指定したり、予めそれぞれの中継サーバに設定されているほか、中継サーバが他の中継サーバの接続情報を取得して、いずれの中継サーバへ中継するかを決定するように構成することができる。中継サーバが他の中継サーバの接続情報を取得することによって、動的な管理が可能になる。
【0012】
【発明の実施の形態】
図1は、本発明の中継サーバを含む通信システムの実施の一形態を示す構成図である。図中、図4と同様の部分には同じ符号を付して重複する説明を省略する。4,5は中継サーバ、41は通信部、42は接続情報保持部である。中継サーバ4および中継サーバ5は、インターネット3に接続されており、それぞれグローバルIPアドレスを有している。このグローバルIPアドレスに対するネットワーク機器からのログイン要求を受け付け、そのネットワーク機器との接続を維持して通信路を確保しておく。また、中継サーバ4と中継サーバ5との間も通信路が確保されているものとする。ネットワーク機器はいずれの中継サーバに対して接続していてもよい。図1に示す例では、ローカルシステム1内の端末11や端末12がゲートウェイ13を介して中継サーバ4に、また、ローカルシステム2内の端末21や端末22が中継サーバ5に、それぞれ通信路が確保されている例を示している。なお中継サーバ4,5は、それぞれ、複数のネットワーク機器との間で接続を維持しておくことができる。
【0013】
中継サーバ4,5は、このようなネットワーク機器との通信路を用いて、インターネットから、あるいは他のローカルシステムのネットワーク機器からのデータを中継して通信を行う。また、ネットワーク機器から他のネットワーク機器などに対する接続要求を受けると、接続先が当該中継サーバとの通信路を確保していれば、その通信路を用いて両者間のデータを中継し、通信を行う。接続先が他の中継サーバと通信可能に接続されている場合には、接続要求を行ったネットワーク機器と他の中継サーバとの間でデータを中継し、さらにデータが転送された他の中継サーバで接続先のネットワーク機器にデータを中継し、ネットワーク機器間における通信を実現する。
【0014】
例えば中継サーバ4からローカルシステム1内のゲートウェイ13に対しては接続可能であるが、端末11や端末12については接続することができない。しかし、中継サーバ4のグローバルIPアドレスを使用すれば、端末11や端末12からゲートウェイ13を介して中継サーバ4に接続することは可能である。従って、端末11や端末12から中継サーバ4に対してログイン要求を行うことによって、中継サーバ4とログイン要求を行った端末11あるいは端末12との間の双方向の通信が可能になる。同様に、中継サーバ5からローカルシステム2内のゲートウェイ23に対しては接続可能であるが、端末21や端末22については接続することができない。しかし、中継サーバ5のグローバルIPアドレスを使用すれば、端末21や端末22からゲートウェイ23を介して中継サーバ5に接続することは可能である。従って、端末21や端末22から中継サーバ4に対してログイン要求を行うことによって、中継サーバ5とログイン要求を行った端末21あるいは端末22との間の双方向の通信が可能になる。さらに中継サーバ4と中継サーバ5とが通信を行うことによって、端末11や端末12と、端末21または端末22とが、中継サーバ4および中継サーバ5を介して通信を行うことができる。
【0015】
中継サーバ4は、例えば通信部41および接続情報保持部42を含んで構成することができる。通信部41は、インターネット3を介して複数のネットワーク機器および1ないし複数の中継サーバと通信可能である。そして通信部41は、通信可能に接続されているネットワーク機器から接続要求情報を受け取ると、その接続要求情報に従って、接続先のネットワーク機器あるいは他の中継サーバとの間で通信を行い、接続を要求したネットワーク機器との間でのデータ転送を中継する。例えば端末11がそれぞれ通信部41により通信可能に接続されており、中継サーバ5に接続されている端末21との接続要求情報を受け取ると、端末11と通信部41との間でデータ転送を行うとともに、通信部41と中継サーバ5との間でデータ転送を行う。さらに中継サーバ5で端末21との間の通信を行うことによって、実質的に端末11と端末21との間での通信を実現する。もちろん、中継サーバ4に接続されている2台のネットワーク機器間での通信も可能である。また、1台のネットワーク機器と複数の接続を確保しておくことも可能であり、1台のネットワーク機器が複数の接続を用いて複数台のネットワーク機器との通信を行うことが可能である。
【0016】
なお、中継サーバ5の構成は中継サーバ4と同様に構成することができる。もちろん、中継サーバは2台に限らず、さらに多くの中継サーバがインターネット上に設けられていてよい。また、それぞれの中継サーバは、すべての中継サーバと接続できなくてもよく、1ないし複数の中継サーバを介して目的の中継サーバと接続される接続形態であってもよい。
【0017】
接続情報保持部42は、通信部41により通信可能なネットワーク機器の接続情報を保持している。接続情報は、例えばユーザIDや接続状態などの情報を含んでおり、中継サーバを介して通信可能なユーザ(ネットワーク機器)の管理や、通信状態の管理などを行うことができる。図2は、接続情報保持部42が保持している接続情報を含む情報の一例の説明図である。図2に示す例では、中継サーバに固有の情報としてサーバ名、IPアドレスなどの情報を含むとともに、ユーザID、タイプ、属性、状態などの情報を含む接続情報と、その接続情報の最終更新日時などの情報を接続情報保持部42に保持させている。タイプはネットワーク機器の種別の情報、例えばクライアント端末であるのかFAXやプリンタなどの装置であるかなどの情報を保持することができる。属性は、タイプの情報に付随した種々の情報を保持することができ、例えば図2に示す例ではファイル単位の送受信を行う旨を示す属性を付した例を示している。状態の情報としては、例えばログオン中であるか否かや、ログオンした後に他のネットワーク機器と通信を行っているか否かなどを示す情報を保持することができる。もちろん、接続情報として、このほかにも各種の情報を含んでいてよい。
【0018】
図2に示す接続情報は、当該中継サーバに接続されるネットワーク機器について、予め登録しておくことができる。また、他の中継サーバに接続されているネットワーク機器の接続情報についても取得して接続情報保持部42に保持させておくことができる。これによって、他の中継サーバに接続されているネットワーク機器についても、接続先のネットワーク機器について、その接続状態や、いずれの中継サーバに対して通信を中継するのかなどといった情報を得ることができる。
【0019】
図3は、本発明の中継サーバを含む通信システムの実施の一形態における通信手順の一例を示すシーケンス図である。図3に示す通信手順は、TCP/IPを利用して実行され、中継サーバとの接続、接続の維持、端末への接続要求、端末へのデータ転送、端末との接続終了、中継サーバとの接続終了等を行うものである。ここでは一例として、図1におけるローカルシステム1内の端末11とローカルシステム2内の端末21との間で通信を行う場合について示している。予め、中継サーバ4に対して端末11をユーザとして登録し、また中継サーバ5に対して端末21をユーザとして登録しておく。登録の情報としては、例えば図2に示した接続情報の各項目の情報とすることができる。このほか、認証のためにパスワードなどを登録しておくとよい。
【0020】
端末11は、例えば起動後あるいはオペレータによって指示されると、(1)において、ゲートウェイ13を介して中継サーバ4に接続し、ログインして中継サーバ4とのTCP/IPコネクション(接続1)を確立する。端末11はローカルシステム1内のネットワーク機器であるため、中継サーバ4から直接通信を行うことはできないが、クライアントである端末11からのログインにより中継サーバ4への接続は可能である。TCP/IPコネクションは双方向型のデータ通信が可能であるので、端末11から中継サーバ4へ、また中継サーバ4から端末11への通信を行うことができる。
【0021】
接続1が確立した後、(2)において端末11はユーザIDを中継サーバ4に送る。中継サーバ4は、受け取ったユーザIDが接続情報保持部42に接続情報として保持されているかを調べる。なお、端末11のユーザIDとともに、例えばパスワードなどによって認証を行うとよい。この認証によって、不特定の第3者との接続を回避し、安全性を確保することができる。もし接続情報が登録されていなかったり、認証に失敗した場合には、中継サーバ4は端末11に対して否定応答を行うか、あるいはそのまま接続1を切断する。認証が成功したら、(3)において肯定応答を行うとともに、端末11の接続情報をログインの状態に変更する。以後、接続1が切断されるまで、接続1を維持するように制御する。
【0022】
中継サーバ4とのTCP/IPコネクションが確立し、認証が得られたら、その接続(接続1)を保持しておくために、(4)において定期的に中継サーバ4に対し接続保持のコマンドを送出し、(5)において中継サーバ4からの確認の応答を得る。これによって接続を保持しておくとともに、中継サーバが正常に稼働していることの確認を行う。
【0023】
同様に端末21は、(1’)において、ゲートウェイ23を介して中継サーバ5に接続し、ログインして中継サーバ5とのTCP/IPコネクション(接続2)を確立する。端末21もローカルシステム2内のネットワーク機器であるため、中継サーバ5から直接通信を行うことはできないが、クライアントである端末21からのログインにより中継サーバ5への接続は可能である。接続2によって、端末21から中継サーバ5へ、また中継サーバ5から端末21への通信を行うことができる。
【0024】
接続2が確立した後、(2’)において端末21はユーザIDを中継サーバ5に送る。中継サーバ5は、受け取ったユーザIDが登録されているか否かを調べる。なお、端末21のユーザIDとともに、例えばパスワードなどによって認証を行うとよい。この認証によって、不特定の第3者との接続を回避し、安全性を確保することができる。もし接続情報が登録されていなかったり、認証に失敗した場合には、中継サーバ5は端末21に対して否定応答を行うか、あるいはそのまま接続2を切断する。認証が成功したら、(3’)において、肯定応答を行うとともに、端末21の接続情報をログインの状態に変更する。以後、接続2が切断されるまで、接続2を維持するように制御する。
【0025】
中継サーバ5とのTCP/IPコネクションが確立し、認証が得られたら、その接続(接続2)を保持しておくために、(4’)において定期的に中継サーバ5に対し接続保持のコマンドを送出し、(5’)において中継サーバ5からの確認の応答を得る。これによって接続を保持しておくとともに、中継サーバが正常に稼働していることの確認を行う。
【0026】
なお、端末11と中継サーバ4との接続と、端末21と中継サーバ5との接続は、両者の通信前であればいつ行ってもよい。また、両者の通信時まで両者の接続が維持されいている必要がある。
【0027】
端末11から端末21に接続したいという要求が発生すると、(6)において、端末11は中継サーバ4に対して接続したい端末21のユーザIDを指定して接続要求を行う。なお、接続先となる端末21のユーザIDは、予め取得しておくか、あるいは中継サーバ4からログイン中のユーザの一覧などによって確認して指定するなど、任意の方法で指定することができる。また、端末21が接続されている中継サーバは、端末11から端末21のユーザIDとともに指定したり、あるいは、中継サーバ4においてユーザIDから自動的に取得することができる。中継サーバ4において自動的に他の中継サーバを割り出す場合には、他の中継サーバから予め接続情報を取得しておいたり、他の中継サーバやデータベースサーバ等に対して問い合わせるなど、種々の方法によって、転送すべき中継サーバを割り出すことが可能である。なお、中継サーバ4は、指定されたユーザIDに対応する端末21が接続されている中継サーバが割り出せなかった場合には、エラーの応答を端末11に対して返す。
【0028】
中継サーバ4は、接続要求によって指定された端末21が接続される中継サーバ5を特定したら、(7)において、特定した中継サーバ5に対して端末21への接続要求を送る。中継サーバ5は、中継サーバ4から転送されてきた接続要求を受け取り、指定されたユーザIDに対応する端末21の接続の有無を判定する。端末21が登録されていなかったり、ログインされていない場合や、既に通信中で空きの接続が存在しない場合など、通信を行うことができない場合には、エラーの応答を中継サーバ4に返す。この場合、中継サーバ4はエラーの応答を端末11に中継する。端末21がログイン状態にあり、通信可能であれば、(8)において、端末21に対して接続要求がある旨の情報と接続を要求している端末11のユーザIDを含む接続要求通知を送信する。
【0029】
端末21は、接続要求通知の送信に用いられた接続(接続2)が端末11との接続に使用されていることを記憶して、(9)において受け入れ可能の応答を返す。なお、接続を拒否する場合はエラーを返す。中継サーバ5は、(10)において、端末21からの応答を中継サーバ4に転送する。このとき、中継サーバ5は、端末21からの応答が受け入れ可能である場合には、接続2を端末21との通信に使用するものとして記憶するとともに、中継サーバ4とのコネクションを通じて接続2との通信を中継することを記憶する。また中継サーバ4は、(11)において、中継サーバ5から転送されてきた端末21からの応答を端末11に対して返す。このとき、中継サーバ4は、端末21からの応答が受け入れ可能である場合には、端末11からの接続要求を受けた接続(接続1)を端末11との通信に使用するものとして記憶するとともに、中継サーバ5とのコネクションを通じて接続1との通信を中継することを記憶する。さらに、端末21からの応答を受け取った端末11では、受け入れ可能の応答を受け取った場合には、使用している接続(接続1)を端末21との通信に使用するものとして記憶する。
【0030】
このようにして端末11と端末21との間で通信を行うことを確認した後、(17)以降において実際にデータを送信することになる。なお、図3に示す例では、端末11と端末21との間の通信を行うことが決定された後に、その他のネットワーク機器からの接続要求を受けたり、他のネットワーク機器への接続要求を行うために、それぞれ、新しいTCP/IPコネクションを中継サーバ4,5に確立する。すなわち、端末11は(12)において中継サーバ4にログインして中継サーバ4とのTCP/IPコネクション(接続3)を確立し、(13)において端末11はユーザIDを中継サーバ4に送る。中継サーバ4は、受け取ったユーザIDなどに基づいて端末11の認証を行い、(14)において応答を返す。そしてこの接続3を維持するため、定期的に(15)において端末11から中継サーバ4へ接続保持コマンドを送信し、中継サーバ4は(16)において応答を端末11に返す。同様に端末21は(12’)において中継サーバ5にログインして中継サーバ5とのTCP/IPコネクション(接続4)を確立し、(13’)において端末21はユーザIDを中継サーバ5に送る。中継サーバ5は、受け取ったユーザIDなどに基づいて端末21の認証を行い、(14’)において応答を返す。そしてこの接続4を維持するため、定期的に(15’)において端末21から中継サーバ5へ接続保持コマンドを送信し、中継サーバ5は(16’)において応答を端末21に返す。なお、このような空きの接続を確保しておく必要がなければ、(12)〜(16)あるいは(12’)〜(16’)の手順は必要ない。また、既に複数の接続を確保している場合も、これらの手順を行わなくてもよい。
【0031】
上述の(6)〜(11)によって端末11と端末21との間で通信を行うことを確認したら、(17)において、端末11は中継サーバ4に対して接続1を用いて端末21へ送るデータを送信する。中継サーバ4は、端末11からのデータを受け取り、(18)において、受け取ったデータを中継サーバ5に転送する。中継サーバ5は、中継サーバ4から転送されてきたデータを受け取り、(19)において、接続2を用いて端末21へ送信する。端末21は、中継サーバ4から接続2を用いて送られてきた端末11からのデータを受け取り、(20)において端末11に対する応答を中継サーバ5に対して送信する。中継サーバ5は、(21)において、端末21が送信した端末11への応答を中継サーバ4に転送する。中継サーバ4は、中継サーバ5から転送されてきた端末21から端末11に対する応答を受け取り、受け取った応答を、(22)において接続1を用いて端末11へ送信する。
【0032】
このようにして、端末11と中継サーバ4との間の接続1と、中継サーバ4と中継サーバ5とのコネクションと、端末21と中継サーバ5との間の接続2とを用い、中継サーバ4および中継サーバ5でデータを中継することによって、端末11と端末21との間の通信を行うことができる。なお、(17)〜(22)による端末11から端末21へのデータ転送は、複数回繰り返されてもよい。また、端末21から端末11へのデータ転送が行われてもよい。
【0033】
端末11と端末21との間のデータ転送が終了したら、端末11あるいは端末21から終了通知を行う。ここでは端末11から行うものとし、(23)において端末11は端末21に対する終了通知を、接続1を使用して中継サーバ4に対して送信する。中継サーバ4は、端末11から受け取った端末21への終了通知を、(24)において中継サーバ5へ転送する。中継サーバ5は、中継サーバ4から転送されてきた端末21への終了通知を受け取り、その終了通知を(25)において接続2を使用して端末21へ送信する。終了通知を送信した端末11は、(26)において、接続1が空きになったことを示す開放通知を中継サーバ4へ送信する。また終了通知を受け取った端末21も、(26’)において、接続2が空きになったことを示す開放通知を中継サーバ5へ送信する。これによって中継サーバ4は、接続1が端末11と端末21との間の通信用ではなくなり、空きになったことを記憶する。また中継サーバ5は、接続2が端末11と端末21との間の通信用ではなくなり、空きになったことを記憶する。なお、この例では終了通知に対する応答を行っていないが、応答を返信するようにしてもよい。
【0034】
このようにして開放された接続1および接続2は、(4)、(5)または(4’)、(5’)で示したように接続保持コマンドとその応答を定期的に行って、端末11と中継サーバ4との間、および、端末21と中継サーバ5との間の接続を保つ。
【0035】
なお、この時点では端末11と中継サーバ4との間では接続1と接続3が確保されている。同様に、端末21と中継サーバ5との間では接続2と接続4が確保されている。そのままでもよいし、接続1および接続2の解放時にこれらの接続については切断してもよい。もちろん、接続1および接続2を存続させ、接続3および接続4を切断してもよい。
【0036】
端末11が電源を切断する場合や、中継サーバ4への接続をやめる場合には、(27)において、端末11は中継サーバ4に対してログアウトを通知する。このとき、複数の接続が確保されている場合には、いずれの接続を用いて行ってもよい。そして、端末11は中継サーバ4との接続を切断する。この例では(28)において接続1を、(29)において接続3を切断して終了する。中継サーバ4は、端末11からのログアウトの通知を受け、端末11のログアウトを認識して端末11との接続(接続1,3)を切断する。なお、端末21においても中継サーバ5に対して同様にしてログアウトを行うことができる。
【0037】
上述のような手順を実行することによって、それぞれあるいは一方がローカルシステム内のネットワーク機器である場合でも、通信を行うことが可能になる。また、それぞれのネットワーク機器が別の中継サーバに接続されている場合でも、支障なく通信を行うことができる。
【0038】
なお、上述のような中継サーバ4との接続、接続の維持、端末への接続要求、端末へのデータ送信、端末との接続終了、中継サーバとの接続終了を行うための手順は、上位で動作するアプリケーションプロトコルがやりとりするコマンドやデータに対しては透過性を保ち何の影響も与えないように構成することが可能であり、既存のアプリケーションプロトコルをそのまま用いて通信を行うことが可能である。
【0039】
上述の例では、接続要求元のネットワーク機器が接続されている中継サーバと、接続先のネットワーク機器が接続されている中継サーバとが直接通信を行うことが可能な場合について示した。しかし本発明はこのような構成に限られるものではなく、例えば2つの中継サーバの間に1ないし複数の中継サーバが介在してもよい。この場合、接続要求元のネットワーク機器が中継経路を指定したり、あるいはそれぞれの中継サーバがルーティングを行えばよい。もちろん、同じ中継サーバに接続されているネットワーク機器間で通信を行う場合には、当該中継サーバがデータの中継を行うのみで実現可能である。
【0040】
【発明の効果】
以上の説明から明らかなように、本発明によれば、ローカルシステム内のネットワーク機器から中継サーバへ予め接続して通信路を確保しておいて、この通信路を用いてデータの中継を行うので、インターネットからローカルシステム内のネットワーク機器へのデータ転送、あるいは異なるローカルシステム内のネットワーク機器間のデータ転送を実現することができる。また、中継サーバ間の通信を行うことによって、必要に応じて他の中継サーバを介して他のネットワーク装置との通信を中継することができるので、異なる中継サーバに接続されているネットワーク機器間での通信を支障なく行うことができるという効果がある。
【図面の簡単な説明】
【図1】本発明の中継サーバを含む通信システムの実施の一形態を示す構成図である。
【図2】接続情報保持部が保持している接続情報を含む情報の一例の説明図である。
【図3】本発明の中継サーバを含む通信システムの実施の一形態における通信手順の一例を示すシーケンス図である。
【図4】一般的なインターネットを用いたシステムの一例を示す説明図である。
【符号の説明】
1,2…ローカルシステム、3…インターネット、4,5…中継サーバ、11,12,21,22…端末、13,23…ゲートウェイ、14,24…LAN、41…通信部、42…接続情報保持部。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a communication system in which a plurality of network devices and a plurality of relay servers are connected by a network, and a relay server suitable for use in such a communication system.
[0002]
[Prior art]
FIG. 4 is an explanatory diagram showing an example of a system using a general Internet. In the figure, 1 and 2 are local systems, 3 is the Internet, 11, 12, 21 and 22 are terminals, 13 and 23 are gateways, and 14 and 24 are LANs. The
[0003]
In such a system, one or more global IP addresses are normally assigned to the
[0004]
The
[0005]
Here, for example, when trying to access the terminal 11 in the
[0006]
Furthermore, the terminal 11 and the
[0007]
[Problems to be solved by the invention]
The present invention has been made in view of the circumstances described above, and is a communication system capable of performing connection from the Internet to a terminal in a local system or connection between terminals in different local systems via a plurality of relay servers. And it aims at providing a suitable relay server utilized in such a communication system.
[0008]
[Means for Solving the Problems]
The present invention provides a relay server capable of communicating with a plurality of network devices using one or more TCP / IP connections, and capable of communicating with another relay server, and the network capable of communicating with the relay means. Connection information holding means for holding connection information of an apparatus, and the communication means maintains the TCP / IP connection after establishing a TCP / IP connection with the network apparatus, and communicates with the other network apparatus from the network apparatus. The connection information is referred to based on the connection request of the network, the connection request is sent to another relay server as necessary, and the TCP / IP connection established with the network device and the other relay server By relaying communication between the network device and other network devices It is characterized in that joint. As described above, since the network device is connected to the relay server so as to be able to communicate by establishing and holding the TCP / IP connection, it is possible to communicate with the network device in the local system. Furthermore, even if network devices are connected to different relay servers, communication between network devices connected to different relay servers becomes possible by relaying between the relay servers.
[0009]
Note that the relay server to which the network device of the communication partner requested for connection from the network device is connected is designated at the time of the connection request, or is set in advance in each relay server. The connection information of the relay server can be received and stored in the connection information holding means. By receiving connection information from the outside, dynamic management becomes possible.
[0010]
In the communication system in which a plurality of network devices and a plurality of relay servers are connected by a network, the network device establishes one or more TCP / IP connections with any of the relay servers, and the TCP / IP An IP connection is maintained, communication is performed by making a connection request with another network device, and the relay server transmits to another relay server as necessary based on the connection request from the network device. The communication between the network device and the other network device is relayed by sending the connection request and relaying the communication between the TCP / IP connection established with the network device and another relay server. It is characterized by this. In such a communication system, any one of the relay servers and the network device establishes and maintains a TCP / IP connection, thereby enabling communication between the relay server and the network device. By using this, communication between relay servers is performed, and communication between network devices is relayed, thereby enabling communication between network devices connected to different relay servers.
[0011]
Note that the relay server to which the network device of the communication partner requested for connection from the network device is connected is specified at the time of the connection request, or is set in advance in each relay server. The connection information can be acquired and the relay server to be relayed can be determined. A relay server acquires connection information of other relay servers, thereby enabling dynamic management.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a block diagram showing an embodiment of a communication system including a relay server of the present invention. In the figure, parts similar to those in FIG. 4 and 5 are relay servers, 41 is a communication unit, and 42 is a connection information holding unit. The
[0013]
The
[0014]
For example, the
[0015]
The
[0016]
The
[0017]
The connection
[0018]
The connection information shown in FIG. 2 can be registered in advance for network devices connected to the relay server. Also, connection information of network devices connected to other relay servers can be acquired and held in the connection
[0019]
FIG. 3 is a sequence diagram showing an example of a communication procedure in the embodiment of the communication system including the relay server of the present invention. The communication procedure shown in FIG. 3 is executed using TCP / IP, and is connected to the relay server, maintained, connection request to the terminal, data transfer to the terminal, connection with the terminal, connection with the relay server. The connection is terminated. Here, as an example, a case where communication is performed between the terminal 11 in the
[0020]
The terminal 11 is connected to the
[0021]
After the
[0022]
When a TCP / IP connection with the
[0023]
Similarly, in (1 ′), the terminal 21 connects to the
[0024]
After the
[0025]
When a TCP / IP connection with the
[0026]
Note that the connection between the terminal 11 and the
[0027]
When a request for connection from the terminal 11 to the terminal 21 is generated, the terminal 11 designates the user ID of the terminal 21 to be connected to the
[0028]
When the
[0029]
The terminal 21 stores that the connection (connection 2) used for transmission of the connection request notification is used for connection with the terminal 11, and returns an acceptable response in (9). An error is returned when connection is rejected. The
[0030]
After confirming that communication is performed between the terminal 11 and the terminal 21 in this way, data is actually transmitted after (17). In the example shown in FIG. 3, after it is decided to perform communication between the terminal 11 and the terminal 21, a connection request from another network device is received or a connection request to another network device is made. Therefore, a new TCP / IP connection is established in the
[0031]
When it is confirmed that the communication between the terminal 11 and the terminal 21 is performed according to the above (6) to (11), the terminal 11 sends the
[0032]
In this way, the
[0033]
When the data transfer between the terminal 11 and the terminal 21 is completed, an end notification is sent from the terminal 11 or the terminal 21. Here, it is assumed that the communication is performed from the terminal 11, and in (23), the terminal 11 transmits an end notification to the terminal 21 to the
[0034]
The
[0035]
At this time,
[0036]
When the terminal 11 turns off the power or when the connection to the
[0037]
By executing the procedure as described above, it is possible to perform communication even when each or one is a network device in the local system. Further, even when each network device is connected to another relay server, communication can be performed without any problem.
[0038]
Note that the procedures for connecting to the
[0039]
In the above-described example, the case where the relay server to which the connection request source network device is connected and the relay server to which the connection destination network device is connected can directly communicate is shown. However, the present invention is not limited to such a configuration. For example, one or a plurality of relay servers may be interposed between two relay servers. In this case, the network device that is the connection request source may specify a relay route, or each relay server may perform routing. Of course, when communication is performed between network devices connected to the same relay server, it can be realized only by the relay server relaying data.
[0040]
【The invention's effect】
As is clear from the above description, according to the present invention, a communication path is secured in advance by connecting to a relay server from a network device in the local system, and data is relayed using this communication path. Data transfer from the Internet to network devices in the local system or data transfer between network devices in different local systems can be realized. In addition, by communicating between relay servers, communication with other network devices can be relayed via other relay servers as necessary, so between network devices connected to different relay servers. There is an effect that communication can be performed without any trouble.
[Brief description of the drawings]
FIG. 1 is a configuration diagram showing an embodiment of a communication system including a relay server of the present invention.
FIG. 2 is an explanatory diagram of an example of information including connection information held by a connection information holding unit.
FIG. 3 is a sequence diagram showing an example of a communication procedure in an embodiment of a communication system including a relay server of the present invention.
FIG. 4 is an explanatory diagram showing an example of a system using a general Internet.
[Explanation of symbols]
1, 2 ... Local system, 3 ... Internet, 4, 5 ... Relay server, 11, 12, 21, 22 ... Terminal, 13, 23 ... Gateway, 14, 24 ... LAN, 41 ... Communication unit, 42 ... Holding connection information Department.
Claims (4)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001007072A JP4231984B2 (en) | 2001-01-15 | 2001-01-15 | Relay server and communication system |
US10/045,897 US7206088B2 (en) | 2001-01-15 | 2002-01-10 | Relay server, communication system and facsimile system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001007072A JP4231984B2 (en) | 2001-01-15 | 2001-01-15 | Relay server and communication system |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2002217943A JP2002217943A (en) | 2002-08-02 |
JP2002217943A5 JP2002217943A5 (en) | 2006-10-26 |
JP4231984B2 true JP4231984B2 (en) | 2009-03-04 |
Family
ID=18874873
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001007072A Expired - Fee Related JP4231984B2 (en) | 2001-01-15 | 2001-01-15 | Relay server and communication system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4231984B2 (en) |
Families Citing this family (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7206088B2 (en) | 2001-01-15 | 2007-04-17 | Murata Kikai Kabushiki Kaisha | Relay server, communication system and facsimile system |
US20070233844A1 (en) | 2006-03-29 | 2007-10-04 | Murata Kikai Kabushiki Kaisha | Relay device and communication system |
JP4492575B2 (en) * | 2006-03-29 | 2010-06-30 | 村田機械株式会社 | Relay device and communication system |
JP4535019B2 (en) * | 2006-03-29 | 2010-09-01 | 村田機械株式会社 | Relay device and communication system |
JP4222397B2 (en) | 2006-09-12 | 2009-02-12 | 村田機械株式会社 | Relay server |
EP1926285B1 (en) | 2006-10-11 | 2011-07-13 | Murata Machinery, Ltd. | Relay server |
EP1912404B1 (en) | 2006-10-11 | 2011-06-01 | Murata Machinery, Ltd. | File transfer server |
EP1942634B1 (en) | 2006-11-24 | 2012-08-29 | Murata Machinery, Ltd. | Relay server, relay communication system, and communication device |
US8010647B2 (en) | 2006-12-11 | 2011-08-30 | Murata Machinery, Ltd. | Relay server and relay communication system arranged to share resources between networks |
JP4333736B2 (en) | 2006-12-19 | 2009-09-16 | 村田機械株式会社 | Relay server and client terminal |
EP1990974A3 (en) | 2007-05-02 | 2010-03-24 | Murata Machinery, Ltd. | Relay server and relay communication system |
US8606941B2 (en) | 2007-05-02 | 2013-12-10 | Murata Machinery, Ltd. | Relay server and relay communication system |
EP1990975B1 (en) | 2007-05-09 | 2013-02-20 | Murata Machinery, Ltd. | Relay server and relay communication system |
JP4591875B2 (en) | 2007-12-25 | 2010-12-01 | 村田機械株式会社 | Relay server and relay communication system |
JP4406850B2 (en) | 2007-12-25 | 2010-02-03 | 村田機械株式会社 | Relay server and relay communication system |
JP4645915B2 (en) | 2007-12-27 | 2011-03-09 | 村田機械株式会社 | Relay server and relay communication system |
JP4416035B2 (en) | 2007-12-28 | 2010-02-17 | 村田機械株式会社 | Relay server and relay communication system |
TWI455547B (en) | 2008-09-01 | 2014-10-01 | Murata Machinery Ltd | Relay server and relay communication system |
EP2323320B1 (en) | 2008-09-05 | 2013-04-17 | Murata Machinery, Ltd. | Relay server, relay communication system and communication apparatus |
US8738788B2 (en) | 2009-03-13 | 2014-05-27 | Murata Machinery, Ltd. | First relay server and second relay server |
CN102422601B (en) * | 2009-05-15 | 2014-07-09 | 村田机械株式会社 | Relay communication system and first relay server |
JP5141638B2 (en) * | 2009-05-15 | 2013-02-13 | 村田機械株式会社 | Relay communication system |
JP5212282B2 (en) * | 2009-07-07 | 2013-06-19 | 村田機械株式会社 | Relay communication system |
-
2001
- 2001-01-15 JP JP2001007072A patent/JP4231984B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2002217943A (en) | 2002-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4231984B2 (en) | Relay server and communication system | |
JP4231985B2 (en) | Relay server and communication system | |
JP4222397B2 (en) | Relay server | |
US8316134B2 (en) | File server device arranged in a local area network and being communicable with an external server arranged in a wide area network | |
US7206088B2 (en) | Relay server, communication system and facsimile system | |
JP4656536B2 (en) | Relay server and relay communication system | |
JP4207078B2 (en) | Relay server | |
CA2860680C (en) | Device arrangement and method for implementing a data transfer network used in remote control of properties | |
JP2008098888A (en) | Relay server | |
JP3743507B2 (en) | Relay server | |
US8738788B2 (en) | First relay server and second relay server | |
US20020095506A1 (en) | Relay server, communication system and facsimile system | |
US20020143922A1 (en) | Relay server and relay system | |
JP2005167646A (en) | Connection control system, connection controller and connection manager | |
JP3743506B2 (en) | Relay server and relay system | |
JP4187036B2 (en) | Relay server | |
JP4380945B2 (en) | Relay server | |
JP3543767B2 (en) | Facsimile system | |
JP3743500B2 (en) | Relay server | |
JP4304410B2 (en) | Relay server and communication system | |
JP3743501B2 (en) | Relay server | |
JP3743502B2 (en) | COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND NETWORK DEVICE | |
JP4773312B2 (en) | File transfer server | |
JP4992944B2 (en) | Relay server and relay communication system | |
JP4222402B2 (en) | Relay server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060417 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060907 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20081112 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20081125 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111219 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4231984 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121219 Year of fee payment: 4 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131219 Year of fee payment: 5 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131219 Year of fee payment: 5 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |