JP2003198635A - Method for controlling computer connected to network - Google Patents

Method for controlling computer connected to network

Info

Publication number
JP2003198635A
JP2003198635A JP2001399460A JP2001399460A JP2003198635A JP 2003198635 A JP2003198635 A JP 2003198635A JP 2001399460 A JP2001399460 A JP 2001399460A JP 2001399460 A JP2001399460 A JP 2001399460A JP 2003198635 A JP2003198635 A JP 2003198635A
Authority
JP
Japan
Prior art keywords
computer
address
network
area network
information
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
JP2001399460A
Other languages
Japanese (ja)
Inventor
Hiroshi Kawasaki
浩 川崎
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.)
Icom Inc
Original Assignee
Icom 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 Icom Inc filed Critical Icom Inc
Priority to JP2001399460A priority Critical patent/JP2003198635A/en
Publication of JP2003198635A publication Critical patent/JP2003198635A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a method for controlling a network system capable of matching the private IP of a server with global IP by integrating a router and the server. <P>SOLUTION: In this method for controlling a computer equipped with an IP Masquerade function by an address converting means, narrow area address information set in a prescribed computer is preliminarily set so as to be matched with wide area address information. When the narrow area address information to designate any general computer in a narrow area network is acquired based on access information from the wide area network, access from the wide area network is assigned to the general computer. When information to designate the computer is included in the access information from the wide area network, the access from the wide area network is assigned to the computer. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】 【0001】 【発明の属する技術分野】本発明は、近年発明の著しい
コンピュータネットワークの広域利用を容易に可能にす
るためにルータとサーバを1体化し、かつコンピュータ
ネットワークを用いた会議、TV電話のような会話が可能
なネットワークコンピュータに関するものである。 【0002】 【従来の技術】複数の狭域コンピュータネットワーク
(LAN:Local Area Network)を、グローバルインタ
ーネットに接続する場合、ルータ装置が必要である。通
常このルータ装置は、NAT(Network Address Translato
r : ネットワーク・アドレス変換機能)と呼ばれる機
能有している。この機能はLAN内で使用されているRF
C1918(Address Allocation for Private Internets)
に従った、いわゆるプライベートIPアドレス(ローカ
ルIPアドレス)をCIDR(ClasslessInter-Domain Rout
ing)に従った、グローバルインターネットで使用でき
る、いわゆるグローバルIPアドレスに変換することに
よりルータに割り当てられたグローバルIPアドレスをLA
Nに接続された複数の端末で共有するための機能であ
る。 【0003】NATには、大きく分けると以下のような2
種類の方法(1)、(2)がある。 (1)1つのグローバルアドレスを1つのプライベートアド
レスに対応させて、インターネットと通信できるように
する為の静的なアドレス変換機能 (狭義の意味でのNA
T)。これは、1対1のアドレス変換方式であり、複数のプ
ライベートIPアドレス空間の端末がインターネットに接
続するためには、その要求だけのグローバルIPアドレス
の割り当てが必要となる。この機能実現のためにルータ
は一般に、プライベート空間から発信されたパケットの
IPヘッダ部の発信元IPアドレスのみを変更している。図
7に示した例のように、発信元のプライベートIPアド
レスに1対1に対応したグローバルIPアドレスでグロ
ーバル空間へ送出される。 【0004】(2) 1つのグローバルアドレスを複数のプ
ライベートアドレスで共有し、インターネットと通信で
きるようにする動的なアドレス変換(いわゆるIP Masque
radeと呼ばれる機能)。これは、1対多のアドレス変換方
式である。この機能実現のためにルータは、一般に、プ
ライベート空間から発信されたパケットのIPヘッダ部と
TCP/UDPヘッダ部のポート番号を変更している。 【0005】図8に示したように、プライベートIPア
ドレスは全てひとつのグローバルIPアドレスに変換さ
れてグローバル空間へ送出される。そして、応答パケッ
トはIP Masquerade機能によって個別のプライベートI
Pアドレスに変換されて配信される。 【0006】特にIP Masquerade を端末型ダイヤルアッ
プ接続とともに用いると、安価なダイヤルアップLAN接
続を実現できるとともに、グローバルIPアドレスの節約
にも大きな効果を発揮する。このように1つのグローバ
ルアドレスを複数のプライベートアドレスで共有するこ
とが出来るNATではあるが、以下のような問題点もあ
る。 (1)IP MasqueradeはUDP/TCPのポート番号の変換を行う
ことを前提にしている。そのため、ポート番号の概念が
ないICMP (Internet Control Message Protocol)に対
しては別途、特別な配慮が必要となる。 【0007】(2)グローバル側からアクセスされる場
合、最初のパケットは当然 グローバル側からやってく
る。グローバルアドレスとプライベートアドレスが 1対
1対応のNATであれば、そのような場合でもパケットの配
送先が分かるが、IP Masqueradeの場合は1対1対応では
ないため、どのホストにパケットを 送るべきかの判断
がつかない。 (3)rsh(remort shell)系のコマンドで使用されるプロ
トコルは、クライアント側のポート番号が WELL KNOWN
ポートの範囲内にあることが要求される。 そのため、
ポート番号を変換してしまうIP Masquerade越しには 使
えない。 【0008】また、近年、ネットミーティングやオンラ
インミーティングと呼ばれるコンピュータネットワーク
を用いた電子会議やTV電話のような会話が普及してきて
おり、これらのオンラインミーティングに参加するため
専用のアプリケーションソフトの多くは、アプリケーシ
ョンデータ内にまで、データ使用者のプライベートIP
アドレスに関するデータを書き込むようにしている。 【0009】つまり、本来、LAN内でのみ使用される
ように付されたプライベートIPアドレスが、アプリケ
ーションデータAPdataに書き込まれたことにより、ルー
タ装置によって、変換、付加されたグローバルIPアド
レスとが相違し、不一致となって、正常に動作しなかっ
たり、全く動作しないと言う問題点があった。 【0010】なお、特開平9−247216号公報に
は、ネットワークOSを用いて、これらルータとサーバ
を1体化させる技術が開示されている。この技術は、図
9に示したように、市販のOS、WindosNTをサ
ーバ(101)に搭載してネットワークOSとして用い
て、ルータとサーバの機能を一体化したものである。 【0011】さらに最も効率良く広域との通信が可能な
ようにサーバ(101)にマルチ通信インタフェース
(104)を備えて、電話網、ISDN、スーパデジタ
ル、フレームリレー、無線網との接続も可能にしたもの
である。 【0012】また、前記サーバ(101)のLAN上に
接続されている端末機器から広域通信回線上の外部端末
機器へのアクセスのために、該OSのアプリケーション
ソフトに端末機器識別アドレス判別用のルックアップテ
ーブルを設けた。 【0013】今後、インフラの拡張の期待できる電話
網、ISDN、スーパデジタル、フレームリレー、無線
網に接続可能なようにマルチ通信インタフェースを備え
た。さらに安価で信頼性の高いシステムにするための、
該サーバ(101)のファイルには、様々なプロトコル
に対応するため、WWW、FTP、E−Mail、FA
X、DNS、SQLを備えた。 【0014】 【発明が解決しようとする課題】ところが、上述した特
開平9−247216号公報には、ネットワークOSを
用いて、これらルータとサーバを1体化させる技術が開
示されているが、この技術はルータとサーバとをハード
ウェア的に一体化させているのみであり、アドレス変換
に関するソフトウェア処理は従来のままである。 【0015】従って、ポート番号の概念がないICMP
に対する処理や、グローバル側からグローバルIPアド
レスをもってアクセスされる場合でも適正な処理が問題
となるとともに、“rsh系のコマンドで使用されるプ
ロトコルをIP Masquerade越しに使うことができない”
という問題がある。さらに、ネットミーティングやオン
ラインミーティングと呼ばれるコンピュータネットワー
クを用いた電子会議やTV電話のような会話システムのよ
うに、アプリケーションデータ内にまでデータ使用者の
IPアドレスや使用されるポート番号に関するデータを
書き込むように構成されたシステムを、インターネット
等のWANで使用することに問題が発生することにな
る。 【0016】そこで、本発明は、ルータとサーバを1体
化し、サーバのプライベートIPとグローバルIPとを
一致させることのできるネットワークシステムの制御方
法を提供することを目的とし、発明されたものである。 【0017】 【課題を解決するための手段】本発明にかかるネットワ
ークに接続されたコンピュータの制御方法においては、
広域ネットワークと通信する広域側インターフェース手
段と、狭域ネットワークを介して複数の一般のコンピュ
ータと通信する狭域側インターフェース手段と、広域ネ
ットワークにおける識別情報として設定された広域アド
レス情報と前記狭域ネットワークにおける識別情報とし
て設定された狭域アドレス情報とを相互に変換するアド
レス変換手段と、を備え、前記アドレス変換手段によっ
て、広域ネットワークからのアクセス情報に基づいて、
狭域ネットワークに接続された何れかの一般のコンピュ
ータを指定する狭域アドレス情報が得られる場合には、
前記広域ネットワークからのアクセスを前記一般のコン
ピュータに振り分けるように構成されたコンピュータに
おいて、当該コンピュータに設定される狭域アドレス情
報を、予め前記広域アドレス情報と一致させて設定して
おき、広域ネットワークからのアクセス情報に基づい
て、狭域ネットワークの何れかの一般のコンピュータを
指定する狭域アドレス情報が得られる場合には、前記広
域ネットワークからのアクセスを前記一般のコンピュー
タに振り分け、広域ネットワークからのアクセス情報
に、当該コンピュータを指定する情報が含まれている場
合には、前記広域ネットワークからのアクセスを当該コ
ンピュータに振り分けるように制御するように構成し
た。 【0018】 【発明の実施の形態】以下に、本発明にかかるネットワ
ークに接続されたコンピュータの制御方法を、その実施
の形態を示した図面に基づいて詳細に説明する。 【0019】本発明に用いるコンピュータの構成例を示
した図1において、1はCPU、メインメモリ、バスコ
ントローラ、ディスプレイ装置、外部記憶装置、入力装
置等を備えたコンピュータである。2は前記コンピュー
タ1に設けられたインターフェースカード用の汎用バス
スロットのひとつである。この汎用バススロット2は例
えばPCI規格のスロットである。このような汎用バス
スロット2と同じスロット(図示せず。)が複数設けら
れている。 【0020】3は本発明にかかるネットワークインター
フェースカードであり、複数のプロトコルにそれぞれ対
応可能なインターフェース部を備えている。このネット
ワークインターフェースカード3は、前記ひとつの汎用
バススロット2に装着されて、所定のドライバプログラ
ムが前記コンピュータ1にインストールされている。3
1はWAN側の第1インターフェース部であり、ケーブ
ルモデム、xDSLモデム、光メディアコンバータ等の
変換器311を介してインターネットNに接続されてい
る。この第1インターフェース部31はTCP/IPの
プロトコルによってWAN側のインターネットNと通信
可能に構成されている。 【0021】32、33はLAN側の第2、第3インタ
ーフェース部であり、例えば、第2インターフェース部
32は、10Base−T/100Base−T対応の
イーサネット(登録商標)用のインターフェース機能を
備えており、コンピュータ1はこの第2インターフェー
ス部32を介してLANに接続されている。また、第3
インターフェース33は、802.11X(IEEE)
に対応の無線LAN用のインターフェース機能を備えて
おり、コンピュータ1はこの第3インターフェース部3
3を介して無線LANに接続されている。また、その
他、PHS通信用のインターフェース機能を備えたイン
ターフェース部、IrDA(赤外線通信インタフェー
ス)用のインターフェース部(いずれも図示しない。)
を備えている。 【0022】前記第1インターフェース部31がサポー
トするTCP/IPのプロトコルは、アプリケーション
層、ソケット、トランスポート層、ネットワーク層、ネ
ットワーク・アクセス層、物理層から成る。Inter
net関連のMosaicやftp、telnetなど
はアプリケーション層になる。これらのアプリケーショ
ンはソケットのAPI(アプリケーション・プログラミ
ング・インタフェース)を利用することによりTCP/
IPを通じて通信できる。 【0023】TCPはパケットの組み立てや、コネクシ
ョンの確立と切断、フロー制御などを行い、IPは伝送
経路の確立や、ネットワークアドレスとホスト・アドレ
スの定義によるネットワークの論理的な管理などを行
う。 【0024】上記構成において、前記コンピュータ1の
送信制御プログラムにおいては、当該コンピュータ1に
対するプライベートIPアドレスは、グローバルIPア
ドレスと一致するよう設定されている。前記コンピュー
タ1以外のLANに接続された他のコンピュータに対す
るプライベートIPアドレスは、前記コンピュータ1が
備えるIP Masquerade機能によって、それぞれ重複しな
いプライベートIPアドレスに設定される。 【0025】次に、LAN側を起点とする送信制御を行
う制御プログラムを、図2のフローチャートを参照して
説明する。LAN側を起点とする送信データが、前記第
2インターフェース部32と汎用バススロット2を介し
てコンピュータ1に入力されると、ステップS21にお
いて、宛先のIPアドレスと発信元ポート番号とを記憶
し、ステップS22において、コンピュータ1は前記送
信データに含まれる発信元データ(発信元プライベート
IPアドレス、発信元ポート番号)をチェックして、前
記コンピュータ1からの発信か、前記LANを経由した
他のコンピュータからの発信かを判別する。 【0026】ステップS22におけるチェックの結果、
前記コンピュータ1からの発信であれば、前記発信元プ
ライベートIPアドレスを発信元グローバルIPアドレ
スとして、ステップS25において、WAN側に送出す
る。前記コンピュータ1以外のコンピュータからの発信
であれば、ステップS23において、前記IP Masquerad
e機能によって、発信元プライベートIPアドレスと発
信元ポート番号とを所定のグローバルIPアドレスと発
信元ポート番号に変換すると共に、ステップS24にお
いて、その変換情報を記憶して、WAN側に送出する。
もし、宛先がプライベートIPアドレスであれば、LA
N側の所定のコンピュータに送出することは当然であ
る。 【0027】次に、WAN側からの応答パケット制御を
行う制御プログラムを、図3のフローチャートを参照し
て説明する。WAN側からの応答パケットデータが、前
記第1インターフェース部31と汎用バススロット2を
介してコンピュータ1に入力されると、ステップS31
において、前記応答パケットデータに含まれる宛先デー
タ(宛先のIPアドレス、宛先ポート番号)を検索し
て、ステップS32において、前記コンピュータ1への
応答か、前記LANを経由した他のコンピュータへの応
答かを判別する。 【0028】ステップS32における判別の結果、前記
コンピュータ1への応答であれば、ステップS35にお
いて当該コンピュータ1のアプリケーションプログラム
に渡す。前記コンピュータ1以外のコンピュータへの応
答であれば、ステップS33において、前記IP Masquer
ade機能によって、図2のステップS24において記憶
した記憶情報に基づいて発信元プライベートIPアドレ
スと発信元ポート番号とに変換すると共に、ステップS
34において、内部ルーティングテーブルから本来の発
信元である所定のコンピュータへ送信する。 【0029】このようにして、コンピュータ1からWA
N側への送信の場合には、発信元のプライベートIPア
ドレスがグローバルIPアドレスと一致しているので変
換することなくWAN側へ送出し、WAN側からの応答
が前記コンピュータ1への応答の場合には、前記コンピ
ュータ1へ渡すので、当該コンピュータ1はグローバル
IPアドレスを自己のIPアドレスとして使用すること
ができ、WAN側からも当該コンピュータ1を特定する
ことができるのである。 【0030】なお、図2、3の制御プログラムと前記コ
ンピュータ1は、アドレス変換手段に相当する構成であ
り、WAN側の第1インターフェース部31は広域側イ
ンターフェース手段に相当し、LAN側の第2インター
フェース部32は狭域側インターフェース手段に相当し
ている。また、インターネットNは広域ネットワークに
相当し、LANは狭域ネットワークに相当し、グローバ
ルIPアドレスは広域アドレス情報に相当し、プライベ
ートIPアドレスは狭域アドレス情報に相当し、応答パ
ケットはアクセス情報にそれぞれ相当している。 【0031】従って、ポート番号の概念がないICMP
に対してもコンピュータ1が対応できるとともに、グロ
ーバル側からグローバルIPアドレスをもってアクセス
される場合でも、そのグローバルIPアドレスと一致す
るプライベートIPアドレスが設定されているコンピュ
ータ1にパケットを配送することによって、適正な処理
が可能となる。また、rsh(remort shell)系のコマン
ドで使用されるプロトコルがコンピュータ1で使用でき
る。また、コンピュータ1においてはプライベートIP
アドレスとグローバルIPアドレスとが一致しているの
で、ネットミーティングやオンラインミーティングと呼
ばれるコンピュータネットワークを用いた電子会議やTV
電話のような会話も問題なく処理できる。 【0032】次に、本発明の実施例として、図4のネッ
トワークシステムにおける制御方法を説明する。図4に
おいて、41は本発明に用いるコンピュータであり、L
ANに接続された特定のコンピュータとしてのコンピュ
ータ部411と、本発明にかかる制御方法を実施するネ
ットワークインターフェースカード412とを備えてい
る。前記ネットワークインターフェースカード412
は、WAN側の第1インターフェース部413と、LA
N側の第2インターフェース部414と、802.11
X(IEEE)に基づいたプロトコルを使用した無線L
AN用のインターフェース部415とを備えている。さ
らに種々のプロトコルに対応可能なインターフェース部
を備えることもできる。また、前記コンピュータ41で
は、図2、3に示したような制御を行うプログラムが実
行されている。 【0033】42は前記LANに接続された一般のコン
ピュータであり、インターフェース部424によって前
記LANと接続されている。43は前記LANに接続さ
れた一般のコンピュータであり、インターフェース部4
34によって前記LANと接続され、無線LAN用のイ
ンターフェース部435によってPHS機器と接続され
ている。44は一般のコンピュータであり、802.1
1X(IEEE)に基づいたプロトコルを使用した無線
LAN用のインターフェース部444を介して、無線L
ANに接続されている。 【0034】以上のネットワークシステムにおいて、コ
ンピュータ41のIPアドレスとして「10,1,0,
1」が設定されている。このIPアドレス「10,1,
0,1」はグローバルIPアドレスであり、また、LA
N側における当該コンピュータ41のプライベートIP
アドレスとしても設定されている。コンピュータ42に
はプライベートIPアドレス「192,168,0,1
0」が設定され、コンピュータ43にはプライベートI
Pアドレス「192,168,0,11」が設定され、
コンピュータ44にはプライベートIPアドレス「19
2,168,0,12」が設定されている。 【0035】そして、図5に示したように、LAN(プ
ライベート空間)側の前記コンピュータ41からWAN
側への送信データには、発信元のIPアドレスとしてプ
ライベートIPアドレスと一致して設定されたグローバ
ルIPアドレス「10,1,0,1」が含まれている。
また、発信元ポート番号としては「2000」が含まれ
ている。そして、宛先IPとしては、目的のサーバを指
定するためのグローバルIPアドレス、例えば「10,
0,0,1」が設定され、発信先ポート番号としてはW
WWに対応した番号「80」が設定されている。WAN
(グローバル空間)側には、発信元のIPアドレス「1
0,1,0,1」、発信元ポート番号「6000」、宛
先のIPアドレス「10,0,0,1」、発信先ポート
番号「80」として送出される。 【0036】次に、以上の送信データに対する応答パケ
ットは、発信元のIPアドレス「10,0,0,1」、
発信元ポート番号「80」、宛先のIPアドレス「1
0,1,0,1」、発信先ポート番号「6000」とし
て届くので、コンピュータ41においては、前記プログ
ラムによって前記宛先のIPアドレス「10,1,0,
1」と発信先ポート番号「6000」とを検索し、当該
応答パケットがコンピュータ41宛であることを判断
し、当該応答パケットをコンピュータ41の所定のアプ
リケーションプログラムに引き渡す。 【0037】ところが、図6に示したように、一般のコ
ンピュータ42からWAN側への送信データには、発信
元のプライベートIPアドレス「192,168,0,
10」、宛先のグローバルIPアドレス「10,0,
0,1」、発信元ポート番号「2001」、発信先ポー
ト番号「80」が含まれているので、前記送信データを
LANを経由して受け取ったコンピュータ41において
は、前記プログラムによって、前記送信データの発信
元、宛先の情報を記憶するとともに、発信元のIPアド
レスをグローバルIPアドレス「10,1,0,1」に
変換して、その変換情報も記憶し、変換済みのグローバ
ルIPアドレス「10,1,0,1」を含んだ送信デー
タをWAN側へ送出する。 【0038】そして、前記一般のコンピュータ42への
応答パケットには発信元のIPアドレス「10,0,
0,1」が含まれているので、記憶しておいた送信デー
タの宛先の情報から、当該応答パケットが前記コンピュ
ータ42に対するものであることを判断し、記憶してお
いた変換情報に基づいて宛先のIPアドレスをプライベ
ートIPアドレス「10,1,0,1」に変換し戻し
て、前記コンピュータ42へ振り分けるのである。 【0039】このようにして、コンピュータ41からの
送信に対する応答パケットはコンピュータ41に振り分
けられ、他の一般のコンピュータからの送信に対する応
答はそれぞれのコンピュータに振り分けられる。このよ
うにして、IP Masquerade機能が実現されているととも
に、前記コンピュータ41からの送信データには発信元
のIPアドレスとして自己のプライベートIPアドレス
と一致するグローバルIPアドレスが含まれているの
で、ポート番号の概念がないICMPに対してもコンピ
ュータ1が対応できるとともに、グローバル側からグロ
ーバルIPアドレスをもってアクセスされる場合でも適
正な処理が可能となる。また、ネットミーティングやオ
ンラインミーティングと呼ばれるコンピュータネットワ
ークを用いた電子会議やTV電話のような会話も問題なく
処理できる。 【0040】 【発明の効果】このようにして、本発明によれば、ポー
ト番号の概念がないICMPに対する処理も、グローバ
ル側からグローバルIPアドレスをもってアクセスされ
る場合でも適正な処理が可能となる。さらに、ネットミ
ーティングやオンラインミーティングと呼ばれるコンピ
ュータネットワークを用いた電子会議やTV電話のような
会話システムのように、アプリケーションデータ内にま
でデータ使用者のIPアドレスに関するデータを書き込
むように構成されたシステムを、インターネット等のW
ANで問題なく使用することが可能となったのである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an integrated router and server for facilitating widespread use of a computer network which has been remarkably invented in recent years. The present invention relates to a network computer capable of conducting a conference or a videophone conversation. 2. Description of the Related Art When connecting a plurality of narrow area computer networks (LANs: Local Area Networks) to the global Internet, a router is required. Normally, this router device uses NAT (Network Address Translato).
r: network address translation function). This function is used for RF used in LAN.
C1918 (Address Allocation for Private Internets)
A private IP address (local IP address) according to CIDR (Classless Inter-Domain Rout)
ing), the global IP address assigned to the router by converting it to a so-called global IP address that can be used on the global Internet
This is a function to be shared by multiple terminals connected to N. [0003] NAT is roughly divided into the following two.
There are different methods (1) and (2). (1) Static address translation function to enable communication with the Internet by associating one global address with one private address (NA in a narrow sense)
T). This is a one-to-one address conversion method, and in order for terminals in a plurality of private IP address spaces to connect to the Internet, it is necessary to allocate a global IP address only for the request. In order to realize this function, routers generally use packets sent from private space.
Only the source IP address in the IP header is changed. As in the example shown in FIG. 7, the packet is transmitted to the global space with a global IP address corresponding to the private IP address of the transmission source on a one-to-one basis. (2) Dynamic address translation (so-called IP Masque) that allows one global address to be shared by a plurality of private addresses and to communicate with the Internet
function called rade). This is a one-to-many address conversion method. To realize this function, routers generally use the IP header part of packets transmitted from the private space.
The port number in the TCP / UDP header has been changed. [0005] As shown in FIG. 8, all private IP addresses are converted into one global IP address and transmitted to the global space. The response packet is sent to the individual private I / O by the IP Masquerade function.
It is converted to a P address and distributed. [0006] In particular, when IP Masquerade is used together with a terminal type dial-up connection, an inexpensive dial-up LAN connection can be realized, and a great effect is achieved in saving global IP addresses. As described above, NAT allows one global address to be shared by a plurality of private addresses, but has the following problems. (1) IP Masquerade assumes that UDP / TCP port numbers are converted. Therefore, special consideration is required for Internet Control Message Protocol (ICMP), which has no concept of port numbers. (2) When accessed from the global side, the first packet naturally comes from the global side. One pair of global address and private address
In the case of 1-compatible NAT, the delivery destination of the packet is known even in such a case, but in the case of IP Masquerade, it is not one-to-one correspondence, so it is not possible to determine which host should send the packet. (3) The protocol used for rsh (remort shell) commands is that the port number on the client side is WELL KNOWN.
Required to be within port range. for that reason,
It cannot be used over IP Masquerade, which converts port numbers. In recent years, conversations such as electronic conferences and videophones using a computer network called net meetings and online meetings have become widespread, and most of application software dedicated to participating in these online meetings has been developed. Private IP of data user even in application data
Writes data about addresses. That is, since the private IP address originally used only in the LAN is written in the application data APdata, the translated and added global IP address differs depending on the router device. However, there is a problem in that they do not operate normally or do not operate at all. [0010] Japanese Patent Application Laid-Open No. 9-247216 discloses a technique for integrating these routers and servers by using a network OS. In this technique, as shown in FIG. 9, a commercially available OS, Windows NT, is mounted on a server (101) and used as a network OS to integrate the functions of a router and a server. Further, the server (101) is provided with a multi-communication interface (104) so that communication with a wide area can be performed most efficiently, and connection with a telephone network, ISDN, super digital, frame relay, and a wireless network is also possible. It was done. Also, in order for a terminal device connected to the LAN of the server (101) to access an external terminal device on a wide area communication line, a look-up for identifying a terminal device identification address is provided to application software of the OS. An up table was provided. In the future, a multi-communication interface will be provided so as to connect to a telephone network, an ISDN, a super digital, a frame relay, and a wireless network, which can be expected to expand the infrastructure. In order to make the system cheaper and more reliable,
The file of the server (101) includes WWW, FTP, E-Mail, FA in order to support various protocols.
X, DNS, SQL. However, in the above-mentioned Japanese Patent Application Laid-Open No. 9-247216, there is disclosed a technique for integrating these routers and servers using a network OS. The technology only integrates a router and a server in hardware, and software processing related to address translation remains the same. Therefore, ICMP without the concept of port numbers
And proper processing even when accessed from the global side with a global IP address poses a problem, and the protocol used in rsh commands cannot be used over IP Masquerade.
There is a problem. Further, as in a conversation system such as an electronic conference using a computer network called a net meeting or an online meeting or a videophone, data relating to the IP address of a data user and a port number to be used are written in application data. A problem arises when the system configured as described above is used in a WAN such as the Internet. SUMMARY OF THE INVENTION The present invention has been made with an object to provide a method of controlling a network system in which a router and a server are integrated into one, and a private IP and a global IP of the server can be matched. . According to the present invention, there is provided a method for controlling a computer connected to a network according to the present invention.
Wide-area interface means for communicating with a wide-area network, narrow-area interface means for communicating with a plurality of general computers via a narrow area network, wide-area address information set as identification information in the wide area network, and Address conversion means for mutually converting between the narrow area address information set as the identification information, and, by the address conversion means, based on access information from the wide area network,
If local address information specifying any general computer connected to the local area network is obtained,
In a computer configured to distribute access from the wide area network to the general computer, narrow area address information set in the computer is set in advance so as to match the wide area address information, and from the wide area network, If the narrow area address information specifying any general computer in the narrow area network is obtained based on the access information, the access from the wide area network is distributed to the general computer, and the access from the wide area network is performed. When the information includes the information for designating the computer, the computer is controlled so that the access from the wide area network is distributed to the computer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a method for controlling a computer connected to a network according to the present invention will be described in detail with reference to the drawings showing an embodiment. FIG. 1 shows a configuration example of a computer used in the present invention. Reference numeral 1 denotes a computer provided with a CPU, a main memory, a bus controller, a display device, an external storage device, an input device, and the like. Reference numeral 2 denotes one of the general-purpose bus slots for an interface card provided in the computer 1. The general-purpose bus slot 2 is, for example, a PCI standard slot. A plurality of slots (not shown) identical to the general-purpose bus slot 2 are provided. Reference numeral 3 denotes a network interface card according to the present invention, which has an interface unit capable of respectively supporting a plurality of protocols. The network interface card 3 is mounted on the one general-purpose bus slot 2, and a predetermined driver program is installed on the computer 1. Three
Reference numeral 1 denotes a first interface unit on the WAN side, which is connected to the Internet N via a converter 311 such as a cable modem, an xDSL modem, or an optical media converter. The first interface unit 31 is configured to be able to communicate with the Internet N on the WAN side by a TCP / IP protocol. Reference numerals 32 and 33 denote second and third interface units on the LAN side. For example, the second interface unit 32 has an interface function for Ethernet (registered trademark) compatible with 10Base-T / 100Base-T. The computer 1 is connected to the LAN via the second interface unit 32. Also, the third
The interface 33 is 802.11X (IEEE)
The computer 1 is provided with an interface function for wireless LAN corresponding to the third interface unit 3.
3 is connected to the wireless LAN. In addition, an interface unit having an interface function for PHS communication and an interface unit for IrDA (infrared communication interface) (both are not shown).
It has. The TCP / IP protocol supported by the first interface unit 31 includes an application layer, a socket, a transport layer, a network layer, a network access layer, and a physical layer. Inter
Mosaic, ftp, telnet, etc. related to the net are application layers. These applications use TCP / API by using socket API (Application Programming Interface).
Can communicate via IP. The TCP performs packet assembly, connection establishment and disconnection, flow control, and the like, and the IP establishes a transmission path and logically manages a network by defining a network address and a host address. In the above configuration, in the transmission control program of the computer 1, the private IP address for the computer 1 is set to match the global IP address. The private IP addresses for other computers connected to the LAN other than the computer 1 are set to non-overlapping private IP addresses by the IP Masquerade function of the computer 1. Next, a control program for performing transmission control starting from the LAN side will be described with reference to the flowchart of FIG. When the transmission data starting from the LAN side is input to the computer 1 via the second interface unit 32 and the general-purpose bus slot 2, in step S21, the destination IP address and the source port number are stored, In step S22, the computer 1 checks the source data (source private IP address, source port number) included in the transmission data, and transmits the data from the computer 1 or from another computer via the LAN. Determine whether the call originated. As a result of the check in step S22,
If the call originates from the computer 1, the source private IP address is sent to the WAN side in step S25 as the source global IP address. If the call originates from a computer other than the computer 1, in step S23, the IP Masquerad
The e function converts the source private IP address and the source port number into a predetermined global IP address and a source port number, and in step S24, stores the conversion information and sends it to the WAN side.
If the destination is a private IP address, LA
It is natural that the data is transmitted to a predetermined computer on the N side. Next, a control program for controlling a response packet from the WAN will be described with reference to the flowchart of FIG. When the response packet data from the WAN side is input to the computer 1 through the first interface unit 31 and the general-purpose bus slot 2, step S31
In step S32, destination data (destination IP address and destination port number) included in the response packet data is searched, and in step S32, a response to the computer 1 or a response to another computer via the LAN Is determined. If the result of determination in step S32 is a response to the computer 1, in step S35 the response is passed to the application program of the computer 1. If it is a response to a computer other than the computer 1, in step S33, the IP Masquer
Using the ade function, based on the storage information stored in step S24 of FIG. 2, the source IP address and the source port number are converted into a source IP address and a source port number.
At 34, the data is transmitted from the internal routing table to a predetermined computer which is the original transmission source. In this way, the computer 1 sends the WA
In the case of transmission to the N side, if the private IP address of the transmission source matches the global IP address, it is sent to the WAN side without conversion, and the response from the WAN side is a response to the computer 1. In this case, since the computer 1 is passed to the computer 1, the computer 1 can use the global IP address as its own IP address, and can specify the computer 1 from the WAN side. The control program shown in FIGS. 2 and 3 and the computer 1 correspond to address conversion means. The first interface unit 31 on the WAN side corresponds to wide area interface means and the second interface unit on the LAN side. The interface unit 32 corresponds to a narrow-area interface unit. The Internet N corresponds to a wide area network, the LAN corresponds to a narrow area network, the global IP address corresponds to wide area address information, the private IP address corresponds to narrow area address information, and the response packet corresponds to access information. Equivalent. Therefore, ICMP without the concept of port numbers
The computer 1 can cope with the above problem, and even if access is made from the global side with a global IP address, the packet is delivered to the computer 1 in which a private IP address that matches the global IP address is set, so that the Processing can be performed. In addition, a protocol used in rsh (remort shell) commands can be used in the computer 1. In the computer 1, a private IP
Since the address matches the global IP address, a teleconference or TV using a computer network called a net meeting or online meeting
It can handle conversations like telephone calls without any problems. Next, a control method in the network system shown in FIG. 4 will be described as an embodiment of the present invention. In FIG. 4, reference numeral 41 denotes a computer used in the present invention.
The computer includes a computer unit 411 as a specific computer connected to the AN, and a network interface card 412 for implementing the control method according to the present invention. The network interface card 412
Is the first interface unit 413 on the WAN side and the LA
An N-side second interface unit 414;
Wireless L using a protocol based on X (IEEE)
An interface unit 415 for AN is provided. Further, an interface unit capable of supporting various protocols can be provided. Further, in the computer 41, a program for performing control as shown in FIGS. Reference numeral 42 denotes a general computer connected to the LAN, which is connected to the LAN by an interface unit 424. Reference numeral 43 denotes a general computer connected to the LAN.
34, it is connected to the LAN, and a wireless LAN interface unit 435 is connected to PHS devices. 44 is a general computer,
Wireless LAN via a wireless LAN interface unit 444 using a protocol based on 1X (IEEE).
Connected to AN. In the above network system, the IP address of the computer 41 is “10, 1, 0,
1 "is set. This IP address “10, 1,
"0,1" is a global IP address, and LA
Private IP of the computer 41 on the N side
It is also set as an address. The computer 42 has a private IP address “192, 168, 0, 1”.
0 ”is set and the computer 43
P address “192, 168, 0, 11” is set,
The computer 44 has a private IP address "19
2,168,0,12 "is set. Then, as shown in FIG. 5, the computer 41 on the LAN (private space) side
The transmission data to the side includes the global IP address “10, 1, 0, 1” set as the source IP address in accordance with the private IP address.
Also, “2000” is included as the source port number. As the destination IP, a global IP address for specifying a target server, for example, “10,
0, 0, 1 "is set, and W is set as the destination port number.
A number “80” corresponding to WW is set. WAN
On the (global space) side, the source IP address "1"
0, 1, 0, 1 ", source port number" 6000 ", destination IP address" 10, 0, 0, 1 ", and destination port number" 80 ". Next, a response packet to the above transmission data is composed of a source IP address "10, 0, 0, 1",
Source port number “80”, destination IP address “1”
0, 1, 0, 1 ”and the destination port number“ 6000 ”, the computer 41 uses the program to send the destination IP address“ 10, 1, 0, 1 ”.
"1" and the destination port number "6000", and determines that the response packet is addressed to the computer 41, and delivers the response packet to a predetermined application program of the computer 41. However, as shown in FIG. 6, the transmission data from the general computer 42 to the WAN side includes the private IP address “192, 168, 0,
10, "and the destination global IP address" 10, 0,
0, 1 ”, the source port number“ 2001 ”, and the destination port number“ 80 ”, the computer 41 that has received the transmission data via the LAN executes the transmission data Of the source and destination of the global IP address "10, 1, 0, 1", and the conversion information is also stored, and the converted global IP address "10" is stored. , 1, 0, 1 "to the WAN side. The response packet to the general computer 42 includes the source IP address "10, 0,
0, 1 ”, it is determined from the stored transmission data destination information that the response packet is for the computer 42, and based on the stored conversion information. The destination IP address is converted back to the private IP address “10, 1, 0, 1” and distributed to the computer. In this way, a response packet to a transmission from the computer 41 is distributed to the computer 41, and a response to a transmission from another general computer is distributed to each computer. In this way, the IP Masquerade function is realized, and the transmission data from the computer 41 includes a global IP address that matches its own private IP address as the source IP address. The computer 1 can cope with ICMP that does not have the concept of, and appropriate processing can be performed even when the global side accesses with a global IP address. Also, conversations such as electronic conferences and videophones using a computer network called net meetings and online meetings can be processed without any problem. As described above, according to the present invention, appropriate processing for ICMP without the concept of a port number can be performed even when access is made from the global side with a global IP address. Furthermore, a system configured to write data relating to the data user's IP address into application data, such as a teleconference using a computer network called a net meeting or an online meeting or a conversation system such as a video phone, is provided. , Internet, etc.
It became possible to use it without problems in AN.

【図面の簡単な説明】 【図1】本発明にかかるネットワークに接続されたコン
ピュータの制御方法の実施の形態の構成を示した構成図
である。 【図2】前記実施の形態における制御プログラムを説明
するフローチャートである。 【図3】前記実施の形態における制御プログラムを説明
するフローチャートである。 【図4】本発明の実施例に用いるネットワークシステム
の構成図である。 【図5】前記実施例における動作例の説明図である。 【図6】前記実施例における動作例の説明図である。 【図7】前記従来例における動作例の説明図である。 【図8】前記従来例における動作例の説明図である。 【図9】従来例の方法に用いるネットワークシステムの
構成図である。 【符号の説明】 1 コンピュータ、アドレス変換手段 2 汎用バススロット 3 ネットワークインターフェースカード 31 WAN側の第1インターフェース部、広域側イン
ターフェース手段 32 LAN側の第2インターフェース部、狭域側イン
ターフェース手段 33 LAN側の第3インターフェース部 N 広域ネットワーク LAN 狭域ネットワーク
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a configuration diagram showing a configuration of an embodiment of a control method of a computer connected to a network according to the present invention. FIG. 2 is a flowchart illustrating a control program according to the embodiment. FIG. 3 is a flowchart illustrating a control program according to the embodiment. FIG. 4 is a configuration diagram of a network system used in an embodiment of the present invention. FIG. 5 is an explanatory diagram of an operation example in the embodiment. FIG. 6 is an explanatory diagram of an operation example in the embodiment. FIG. 7 is an explanatory diagram of an operation example in the conventional example. FIG. 8 is an explanatory diagram of an operation example in the conventional example. FIG. 9 is a configuration diagram of a network system used in a conventional method. DESCRIPTION OF REFERENCE NUMERALS 1 computer, address conversion means 2 general-purpose bus slot 3 network interface card 31 first interface unit on WAN side, wide area interface means 32 second interface unit on LAN side, narrow area interface means 33 on LAN side Third interface unit N Wide area network LAN Narrow area network

Claims (1)

【特許請求の範囲】 【請求項1】広域ネットワークと通信する広域側インタ
ーフェース手段と、狭域ネットワークを介して複数の一
般のコンピュータと通信する狭域側インターフェース手
段と、広域ネットワークにおける識別情報として設定さ
れた広域アドレス情報と前記狭域ネットワークにおける
識別情報として設定された狭域アドレス情報とを相互に
変換するアドレス変換手段と、を備え、前記アドレス変
換手段によって、広域ネットワークからのアクセス情報
に基づいて、狭域ネットワークに接続された何れかの一
般のコンピュータを指定する狭域アドレス情報が得られ
る場合には、前記広域ネットワークからのアクセスを前
記一般のコンピュータに振り分けるように構成されたコ
ンピュータにおいて、当該コンピュータに設定される狭
域アドレス情報を、予め前記広域アドレス情報と一致さ
せて設定しておき、広域ネットワークからのアクセス情
報に基づいて、狭域ネットワークの何れかの一般のコン
ピュータを指定する狭域アドレス情報が得られる場合に
は、前記広域ネットワークからのアクセスを前記一般の
コンピュータに振り分け、広域ネットワークからのアク
セス情報に、当該コンピュータを指定する情報が含まれ
ている場合には、前記広域ネットワークからのアクセス
を当該コンピュータに振り分けるように制御することを
特徴とするネットワークに接続されたコンピュータの制
御方法。
Claims: 1. A wide-area interface means for communicating with a wide-area network, a narrow-area interface means for communicating with a plurality of general computers via a narrow-area network, and setting as identification information in the wide-area network. Address conversion means for mutually converting between the wide area address information and the narrow area information set as identification information in the narrow area network, and the address conversion means, based on access information from the wide area network In the case where narrow-area address information specifying any general computer connected to the narrow-area network is obtained, the computer configured to distribute access from the wide-area network to the general computer includes Set on computer The narrow-area address information is set in advance in accordance with the wide-area address information, and based on access information from the wide-area network, narrow-area address information specifying any general computer in the narrow-area network can be obtained. In the case, the access from the wide area network is distributed to the general computer, and if the access information from the wide area network includes information designating the computer, the access from the wide area network is A method for controlling a computer connected to a network, characterized in that the computer is controlled to be distributed to a network.
JP2001399460A 2001-12-28 2001-12-28 Method for controlling computer connected to network Pending JP2003198635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001399460A JP2003198635A (en) 2001-12-28 2001-12-28 Method for controlling computer connected to network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001399460A JP2003198635A (en) 2001-12-28 2001-12-28 Method for controlling computer connected to network

Publications (1)

Publication Number Publication Date
JP2003198635A true JP2003198635A (en) 2003-07-11

Family

ID=27604480

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001399460A Pending JP2003198635A (en) 2001-12-28 2001-12-28 Method for controlling computer connected to network

Country Status (1)

Country Link
JP (1) JP2003198635A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010103709A (en) * 2008-10-22 2010-05-06 Oki Networks Co Ltd Device, method and program for transferring packet, and communication device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010103709A (en) * 2008-10-22 2010-05-06 Oki Networks Co Ltd Device, method and program for transferring packet, and communication device

Similar Documents

Publication Publication Date Title
CN113014562B (en) Method and apparatus for establishing a media session
US8532126B2 (en) Mediated network address translation traversal
US6801528B2 (en) System and method for dynamic simultaneous connection to multiple service providers
US7773580B2 (en) Apparatus and method for voice processing of voice over internet protocol (VoIP)
US8689313B2 (en) Real time streaming data communications through a security device
US7453488B2 (en) Sharing of prerecorded motion video over an Internet work
US20040153858A1 (en) Direct peer-to-peer transmission protocol between two virtual networks
US7385621B2 (en) Private sharing of computer resources over an internetwork
KR100392206B1 (en) A method for an Internet Communication
US7995566B2 (en) Method for ensuring VLAN integrity for voice over internet protocol telephones
US20060140174A1 (en) VoIP (voice over internet protocol) call processing
JP2001313674A (en) Network device and computer network
KR20020036165A (en) Method for data communications on Internet using NAT and apparatus thereof
JP2003198635A (en) Method for controlling computer connected to network
JP2007519356A (en) Remote control gateway management with security
CN100525202C (en) A method of registration for the private network terminal to the gatekeeper based on the H.323 protocol
JP2002009846A (en) Communication system employing multimedia proxy server
JP6898120B2 (en) Network system, network system address resolution method, and base-side connection device
KR100764063B1 (en) Method for udp multicast tunneling in multicast-based multi-party collaboration environment, and system therefor
CN115883256B (en) Data transmission method, device and storage medium based on encryption tunnel
JPH06261094A (en) Data communications system and data communications method
KR20020037223A (en) Method and System of communication service using public and private IP addresses
JP2004007516A (en) GLOBAL IP SHARING METHOD FOR REALIZING VoIP
KR100702783B1 (en) System and method for devices with identical MAC address in a subnet in IP based internet access network
US8194689B2 (en) Method for bring-up of voice over internet protocol telephones

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040507

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060214

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060801