JP2000270004A - Router - Google Patents

Router

Info

Publication number
JP2000270004A
JP2000270004A JP2000004061A JP2000004061A JP2000270004A JP 2000270004 A JP2000270004 A JP 2000270004A JP 2000004061 A JP2000004061 A JP 2000004061A JP 2000004061 A JP2000004061 A JP 2000004061A JP 2000270004 A JP2000270004 A JP 2000270004A
Authority
JP
Japan
Prior art keywords
address
nat
descriptor
packet
interface
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.)
Granted
Application number
JP2000004061A
Other languages
Japanese (ja)
Other versions
JP4221864B2 (en
Inventor
Hisashi Hirano
尚志 平野
Ryota Hirose
良太 広瀬
Tsuneyuki Koikeda
恒行 小池田
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.)
Yamaha Corp
Original Assignee
Yamaha Corp
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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP2000004061A priority Critical patent/JP4221864B2/en
Publication of JP2000270004A publication Critical patent/JP2000270004A/en
Application granted granted Critical
Publication of JP4221864B2 publication Critical patent/JP4221864B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To allow the router to set a plurality of functions to one interface and to be applicable to data transmission between LANs by converting the address of a packet on the basis of conversion management information for each interface. SOLUTION: Interfaces PP1-PP3 conduct address conversion and channel connection in compliance with the NAT or the IP masquerade. NAT descriptor description information, NAT descriptor application setting information and NAT descriptor management information corresponding to each of the interfaces PP1-PP3 are set to respective areas in a memory of a route 2. Each of the interfaces PP1-PP3 conducts address conversion on the basis of the NAT descriptor management information and port number conversion in the case of the IP masquerade. Four management information can be set to this memory corresponding to each of the interfaces PP1-PP3 and LANs 1, 2.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、インターネット
等の各種ネットワークにおいて用いられるルータに関す
る。
[0001] The present invention relates to a router used in various networks such as the Internet.

【0002】[0002]

【従来の技術】周知のように、インターネットにおいて
は、TCP/IP(Transmissin Cont
rol Protocol/Internet Pro
tocol)プロトコルに従って通信制御が行われる。
ここで、ファイル(データ)の送信時、TCPプロトコ
ルは送信側ファイルをパケットに分割し、各パケットを
宛先のどのタイプのアプリケーションに渡すかを示す情
報を付加し、また、受信側では、パケットの受信時に、
各パケットに欠陥がないかをチェックし、再び組み合わ
せてファイルにする。図17にTCPヘッダの構成を示
す。また、IPプロトコルは、パケット送信時に、送信
データの宛先を示すIPアドレスを付加し、また、パケ
ット受信時には、そのIPアドレスを判別することによ
って自分宛のパケットか否かの判別を行う。図18にI
Pヘッダの構成を示す。TCP/IPプロトコルにおい
ては、送信データに上述したTCPヘッダおよびIPヘ
ッダが付加されてパケットが構成され、該パケットがネ
ットワークを伝送される。なお、TCPプロトコルの他
にUDPプロトコルも用いられる。図19にこのUDP
ヘッダの構成を示す。そして、上述した各ヘッダが付加
されたパケットの、ネットワークにおける送信制御にル
ータが用いられる。このルータは、内部にルーティング
テーブルを持ち、他のノードから送信されたパケットの
IPアドレスをルーティングテーブルと照合することに
よって同パケットの次の送信先を検知し、その送信先へ
向けてパケットを送り出す。
2. Description of the Related Art As is well known, in the Internet, TCP / IP (Transmission in Content) is used.
rol Protocol / Internet Pro
(tocol) protocol.
Here, when transmitting a file (data), the TCP protocol divides the file on the transmitting side into packets, adds information indicating which type of application to pass each packet to the destination, and on the receiving side, the packet of the packet is transmitted. When receiving,
Each packet is checked for defects and recombined into a file. FIG. 17 shows the configuration of the TCP header. The IP protocol adds an IP address indicating the destination of transmission data when transmitting a packet, and determines whether or not the packet is addressed to itself by determining the IP address when receiving the packet. FIG.
4 shows a configuration of a P header. In the TCP / IP protocol, a packet is formed by adding the above-described TCP header and IP header to transmission data, and the packet is transmitted through a network. Note that a UDP protocol is also used in addition to the TCP protocol. This UDP is shown in FIG.
3 shows a configuration of a header. Then, a router is used for controlling transmission of the packet to which the above-described headers are added in the network. This router has a routing table inside, detects the next destination of the packet by comparing the IP address of the packet transmitted from another node with the routing table, and sends the packet to the destination. .

【0003】ところで、近年、32ビットのIPアドレ
スが不足しつつあり、これを補うため、ルータにNAT
(Network Address Translat
ion)機能や、IPマスカレード機能を付加すること
が行われる。NAT機能とは、LAN(Local A
rea Network)内で使用されるプラーベート
IPアドレスをグローバルIPアドレスに変換してその
パケットをインターネットへ送信し、また、インターネ
ットから到達するパケットのグローバルIPアドレスを
プライベートIPアドレスに変換してLAN内のコンピ
ュータへ送信する。このNATには、静的NATと動的
NATがある。静的NATとは、相互変換するプライベ
ートIPアドレスとグローバルIPアドレスが予め決ま
っている(設定されている)ものであり、また、動的N
ATとは、通信開始時に通信を開始したノードのプライ
ベートIPアドレスを変換アドレスとして自動設定する
ものである。
In recent years, 32-bit IP addresses have become scarce, and to compensate for this, NATs have been added to routers.
(Network Address Translat
(ion) function or an IP masquerade function. The NAT function is a LAN (Local A)
The private IP address used in the local area network is converted to a global IP address and the packet is transmitted to the Internet, and the global IP address of the packet arriving from the Internet is converted to a private IP address and the computer in the LAN is converted. Send to The NAT includes a static NAT and a dynamic NAT. A static NAT is one in which a private IP address and a global IP address to be converted are determined (set) in advance.
The AT automatically sets a private IP address of a node that has started communication at the start of communication as a conversion address.

【0004】また、IPマスカレードは、IPアドレス
の変換だけでなく、その上位プロトコルであるTCP/
UDPのポート番号の変換も行い、これにより、1つの
グローバルIPアドレスを用いてLAN内の複数のコン
ピュータを外部と接続可能にしたものである。このIP
マスカレードにも静的IPマスカレードと動的IPマス
カレード(通常、これを単にIPマスカレードという)
がある。静的IPマスカレードは、変換すべきプライベ
ートIPアドレス、グローバルIPアドレス、プライベ
ートおよびグローバルIPアドレスそれぞれのポート番
号が予め決まっているものであり、一方、動的IPマス
カレードとは、通信開始時にプライベートIPアドレ
ス、ポート番号が自動設定されるものである。
[0004] IP masquerade not only translates IP addresses, but also uses TCP /
The port number of the UDP is also converted, whereby a plurality of computers in the LAN can be connected to the outside using one global IP address. This IP
Masquerade also has static IP masquerade and dynamic IP masquerade (usually simply called IP masquerade)
There is. In the static IP masquerade, the private IP address to be converted, the global IP address, and the port numbers of the private and global IP addresses are predetermined, while the dynamic IP masquerade is the private IP address at the start of communication. , The port number is automatically set.

【0005】図16はこの種のルータ100の構成を示
すブロック図である。この図に示すルータ100は、ル
ーティング装置101と、このルーティング装置101
とISDN回線との間のデータ伝送の物理的制御を行う
BRI(ISDN基本ユーザインターフェイス)コント
ローラ102と、ルーティング装置101とLANとの
間のデータ伝送の物理的制御を行うイーサネットコント
ローラ103とから構成されている。ルーティング装置
101は、CPU(中央処理装置)、CPUのプログラ
ムが記憶されたROM(リードオンリメモリ)、データ
一時記憶用のRAM(ランダムアクセスメモリ)等から
構成されており、図においてはプログラムに基づいて実
行される各機能をブロックで示している。ここで、符号
104は、伝送されるパケットのルーティングを行うI
Pルーティング処理である。105,106はインター
フェイスであり、NATまたはIPマスカレードによる
アドレス変換処理および回線接続処理を行う。
FIG. 16 is a block diagram showing the configuration of this type of router 100. The router 100 shown in FIG. 1 includes a routing device 101 and the routing device 101.
(ISDN basic user interface) controller 102 for performing physical control of data transmission between the LAN and the ISDN line, and Ethernet controller 103 for performing physical control of data transmission between the routing device 101 and the LAN. ing. The routing device 101 includes a CPU (central processing unit), a ROM (read only memory) storing a program of the CPU, a RAM (random access memory) for temporarily storing data, and the like. Each function to be executed is indicated by a block. Here, reference numeral 104 denotes an I that performs routing of a transmitted packet.
This is a P routing process. Interfaces 105 and 106 perform an address conversion process and a line connection process by NAT or IP masquerade.

【0006】[0006]

【発明が解決しようとする課題】ところで、上述した従
来のルータには次のような問題があった。 インターネットとの接続のみを対象としており、こ
のため、インターフェイス105,106がISDN回
線側にしか設けられていなかった。このため、例えば同
一職場内に2つのLANが形成されている場合のような
LAN間におけるデータ伝送には使用できなかった。 1つのインターフェイスに対して1つの機能しか設
定できず、このため、動的NATとIPマスカレードが
適用できない、静的NATによるプライベートIPアド
レスとグローバルIPアドレスの組み合わせに制限があ
る、複合的なNAT変換ができない等の欠点があった。
この発明はこのような問題を考慮してなされたもので、
その目的は、1つのインターフェイスに対して複数の機
能を設定することができると共に、LAN間のデータ伝
送にも適用できるフレキシビリティに富むルータを提供
することにある。
The above-mentioned conventional router has the following problems. It is intended only for connection to the Internet, and therefore, the interfaces 105 and 106 are provided only on the ISDN line side. Therefore, it cannot be used for data transmission between LANs, for example, when two LANs are formed in the same workplace. Only one function can be set for one interface, so that dynamic NAT and IP masquerading cannot be applied, and there are restrictions on the combination of private IP addresses and global IP addresses by static NAT, and complex NAT translation There were drawbacks such as the inability to perform.
The present invention has been made in consideration of such problems,
An object of the present invention is to provide a router which can set a plurality of functions for one interface and has high flexibility which can be applied to data transmission between LANs.

【0007】[0007]

【課題を解決するための手段】上記の目的を達成するた
めに、請求項1に記載の発明は、プライベートアドレス
とグローバルアドレスとの相互変換を行うアドレス変換
機能を有するルータにおいて、ユーザによって設定され
る変換用データが記憶される第1の記憶手段と、ユーザ
によって設定されるインターフェイス対応の適用情報が
記憶される第2の記憶手段と、第1、第2の記憶手段内
のデータに基づいてインターフェイス毎の変換管理情報
を生成する制御手段と、変換管理情報に基づいてパケッ
トのアドレスを変換する変換手段とを設けたことを特徴
とする。
In order to achieve the above object, an invention according to claim 1 is provided in a router having an address translation function for translating between a private address and a global address and set by a user. A first storage unit for storing conversion data, a second storage unit for storing application information corresponding to an interface set by a user, and a storage unit based on data in the first and second storage units. Control means for generating conversion management information for each interface, and conversion means for converting the address of a packet based on the conversion management information are provided.

【0008】請求項2に記載の発明は、請求項1に記載
の発明において、第1の記憶手段に、グローバルアドレ
スの範囲を示すリストと、プライベートアドレスの範囲
を示すリストと、グローバルアドレスとプライベートア
ドレスの対応関係を示すリストとを設けたことを特徴と
する。請求項3に記載の発明は、請求項1または請求項
2に記載の発明において、第2の記憶手段に各インター
フェイスに対応して複数の適用情報を記憶するようにし
たことを特徴とする。請求項4に記載の発明は、請求項
2に記載の発明において、第1の記憶手段に、さらにポ
ート番号とグローバルアドレスの対応関係を示すリスト
を設け、また、変換手段がパケットのアドレスおよびポ
ート番号を共に変換することを特徴とする。
According to a second aspect of the present invention, in the first aspect of the present invention, the first storage means includes a list indicating a range of a global address, a list indicating a range of a private address, a global address and a private address. And a list indicating the correspondence between addresses is provided. According to a third aspect of the present invention, in the first or second aspect of the invention, the second storage means stores a plurality of pieces of application information corresponding to each interface. According to a fourth aspect of the present invention, in the second aspect of the present invention, the first storage means further includes a list indicating a correspondence between a port number and a global address, and the conversion means includes a packet address and a port address. The number is converted together.

【0009】[0009]

【発明の実施の形態】以下、図面を参照し、この発明の
実施の形態について説明する。図1はこの発明の実施の
形態によるルータ1の構成を示すブロック図である。こ
の図に示すルータ1は、ルーティング装置2と、このル
ーティング装置2とISDN回線との間のデータ伝送の
物理的制御を行うBRIコントローラ3,4と、ルーテ
ィング装置2とLANとの間のデータ伝送の物理的制御
を行うイーサネットコントローラ5,6とから構成され
ている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a router 1 according to an embodiment of the present invention. A router 1 shown in FIG. 1 includes a routing device 2, BRI controllers 3 and 4 for physically controlling data transmission between the routing device 2 and an ISDN line, and data transmission between the routing device 2 and a LAN. And Ethernet controllers 5 and 6 for performing physical control of the RP.

【0010】ルーティング装置2は、CPU、CPUの
プログラムが記憶されたROM、データ一時記憶用のR
AM等から構成されており、図においてはプログラム基
づいて実行される各機能をブロックで示している。以
下、各ブロックの機能について説明する。まず、符号1
1は、伝送されるパケットのルーティングを行うIP
(Internet Protocol)ルーティング
処理である。なお、この処理は従来から周知の処理であ
り、詳細な説明は省略する。PP1〜PP3およびLA
N1、LAN2はインターフェイスであり詳細は以下に
述べる。26はBRIドライバ、31,32はイーサネ
ットドライバである。
The routing device 2 includes a CPU, a ROM in which a program of the CPU is stored, and an R for temporarily storing data.
Each function is executed by a program in the figure, and is shown by blocks. Hereinafter, the function of each block will be described. First, code 1
1 is an IP for routing transmitted packets
(Internet Protocol) routing processing. This process is a conventionally known process, and a detailed description thereof will be omitted. PP1 to PP3 and LA
N1 and LAN2 are interfaces, and details will be described below. 26 is a BRI driver, and 31 and 32 are Ethernet drivers.

【0011】次に、インターフェイスPP1〜PP3お
よびLAN1、LAN2について詳述する。これらのイ
ンターフェイスは、NATまたはIPマスカレードによ
るアドレス変換処理および回線接続処理を行うブロック
である。ルーティング装置2のメモリ(図示略)内に
は、後述するNATディスクリプタ定義情報およびNA
Tディスクリプタ適用設定情報、並びに各インターフェ
イスの各々に対応して予めNATディスクリプタ管理情
報がそれぞれの領域に設定されており、各インターフェ
イスはこのNATディスクリプタ管理情報に基づいてア
ドレス変換処理およびIPマスカレードの場合はポート
番号変換も行う。図2はメモリ内の上述した管理情報の
設定状態を示す図であり、この図に示すように、各イン
ターフェイスPP1〜PP3およびLAN1、LAN2
に各々対応して4個の管理情報が設定可能である。図3
は各管理情報の構成を示す図であり、この図に示すよう
に、各管理情報はNATディスクリプタ番号ND1、適
用インターフェイス情報ND2、NAT管理テーブルN
D3、マスカレード管理テーブルND4から構成されて
いる。なお、インターフェイスLAN1,LAN2には
所定のグローバルアドレスが割り当てられている。
Next, the interfaces PP1 to PP3 and the LAN1 and LAN2 will be described in detail. These interfaces are blocks for performing address conversion processing and line connection processing by NAT or IP masquerade. In a memory (not shown) of the routing device 2, NAT descriptor definition information and NA
NAT descriptor management information is set in each area in advance corresponding to each of the T descriptor application setting information and each interface, and each interface performs address conversion processing and IP masquerading based on the NAT descriptor management information. Also performs port number translation. FIG. 2 is a diagram showing a setting state of the above-mentioned management information in the memory. As shown in FIG. 2, each of the interfaces PP1 to PP3 and LAN1, LAN2
, Four pieces of management information can be set. FIG.
Is a diagram showing the configuration of each management information. As shown in this figure, each management information includes a NAT descriptor number ND1, applicable interface information ND2, and a NAT management table N.
D3 and a masquerade management table ND4. A predetermined global address is assigned to the interfaces LAN1 and LAN2.

【0012】図4はNAT管理テーブルND3の一例を
示す図であり、このNAT管理テーブルND3はグロー
バルアドレス、プライベートアドレスおよび寿命の3項
目からなる。このテーブルND3において、第1、第2
行目は静的NATの設定であり、プライベートアドレス
が予め設定されている。一方、第3行目以降は動的NA
Tのための欄であり、通信開始時点でプライベートアド
レスが書き込まれる。また、「寿命」とは、動的NAT
の場合に使用されるタイマであり、プライベートアドレ
スが書き込まれてから、この寿命欄に設定されている時
間が経過すると、プライベートアドレスが自動的に消去
される。
FIG. 4 is a diagram showing an example of the NAT management table ND3. The NAT management table ND3 includes three items, a global address, a private address, and a life. In this table ND3, the first, second
The line is a setting of a static NAT, and a private address is set in advance. On the other hand, the dynamic NA
This is a column for T, and a private address is written at the start of communication. "Life" is a dynamic NAT
The private address is automatically erased when the time set in the life column elapses after the private address is written after the private address is written.

【0013】図5はマスカレード管理テーブルND4の
一例を示す図であり、このマスカレード管理テーブルN
D4は、使用プロトコル、プライベートアドレス、プラ
イベートポート番号、宛先アドレス、宛先ポート番号、
グローバルアドレス、グローバルポート番号、寿命の8
項目からなる。このテーブルND4において、第1、第
2行目は静的IPマスカレードの設定であり、*印の位
置には、予めユーザの設定に基づくデータが設定され
る。第3行目以降は、IPマスカレードのための欄であ
り、通信開始時点で各項目にデータが書き込まれる。
「寿命」は、IPマスカレードの場合に使用されるタイ
マであり、各データが書き込まれてから、この寿命欄に
設定されている時間が経過すると、データが自動的に消
去される。
FIG. 5 shows an example of the masquerade management table ND4.
D4 is used protocol, private address, private port number, destination address, destination port number,
Global address, global port number, lifetime 8
Consists of items. In this table ND4, the first and second rows are the settings of the static IP masquerade, and data based on the user's settings are set in advance at the positions indicated by *. The third and subsequent lines are columns for IP masquerade, and data is written in each item at the start of communication.
"Life" is a timer used in the case of IP masquerade. When the time set in this life column elapses after each data is written, the data is automatically deleted.

【0014】次に、上述したNATディスクリプタ管理
情報の作成過程を説明する。図6はNATディスクリプ
タ定義情報の構成を示す。このNATディスクリプタ定
義情報の各データはユーザによって設定される。ここ
で、符号TG1はNATディスクリプタ番号、TG2は
処理タイプである。この処理タイプには、「NAT」、
「IPマスカレード」のいずれかが設定される。TG3
はグローバルアドレスリストであり、図7にその構成を
示す。この図に示すように、グローバルアドレスリスト
は始点アドレスと終点アドレスを指定することにより設
定され、また、複数組設定可能となっている。TG4は
プライベートアドレスリストであり、図8にその構成を
示す。プライベートアドレスリストも始点アドレスと終
点アドレスを指定することにより設定され、また、複数
組設定可能となっている。TG5は静的NATのリスト
であり、図9に示すように、グローバルアドレスとプラ
イベートアドレスの組が複数組設定される。TG6は静
的マスカレードのリストであり、図10に示すように、
プライベートアドレスとプロトコルとポート番号が設定
される。そして、上述したNATディスクリプタ定義情
報がユーザによって複数組設定される。なお、図7のグ
ローバルアドレスリストおよび図9の静的NATリスト
中のグローバルアドレスには、インターネットアクセス
プロバイダへのダイヤルアップ接続時のために、後述の
IPCPアドレスを使用するようにNATディスクリプ
タ設定情報を設定可能となっている。
Next, a process of creating the above-described NAT descriptor management information will be described. FIG. 6 shows the structure of the NAT descriptor definition information. Each data of the NAT descriptor definition information is set by the user. Here, the symbol TG1 is a NAT descriptor number, and TG2 is a processing type. These processing types include "NAT",
One of “IP masquerade” is set. TG3
Is a global address list, the structure of which is shown in FIG. As shown in this figure, the global address list is set by designating a start point address and an end point address, and a plurality of sets can be set. TG4 is a private address list, and its configuration is shown in FIG. The private address list is also set by specifying the start point address and the end point address, and a plurality of sets can be set. TG5 is a list of static NATs, and a plurality of sets of global addresses and private addresses are set as shown in FIG. TG6 is a list of static masquerades, and as shown in FIG.
The private address, protocol and port number are set. Then, a plurality of sets of the above-described NAT descriptor definition information are set by the user. The global address list in FIG. 7 and the global address in the static NAT list in FIG. 9 include NAT descriptor setting information such that an IPCP address described later is used for a dial-up connection to an Internet access provider. Can be set.

【0015】次に、図11はNATディスクリプタ適用
設定情報であり、各データはユーザによって入力され
る。このNATディスクリプタ適用設定情報は各インタ
ーフェイスPP1、PP2・・・およびLAN1、LA
N2に対応して設定されるもので、1インターフェイス
につき4個のNATディスクリプタ番号が設定可能であ
る。このNATディスクリプタ番号によって図6のNA
Tディスクリプタ定義情報が指定される。そして、上述
したNATディスクリプタ定義情報およびNATディス
クリプタ適用設定情報が設定され、あるいは変更される
と、入力された設定がルータの処理し易い形状のデータ
に変換される。そして、ルータの電源投入時、あるいは
定義情報等の変更が行われた時に、上述した定義情報お
よび適用設定情報に基づいて図2〜図6に示すNATデ
ィスクリプタ管理情報が生成される。この場合、NAT
ディスクリプタ適用設定情報を順番に見て、該当するデ
ィスクリプタ番号の定義情報から1つずつ管理情報が作
成される。ただし、適用設定情報が記載されていない場
合、あるいは定義情報や適用設定情報が不適切な場合は
作成されない。
Next, FIG. 11 shows NAT descriptor application setting information, and each data is input by a user. The NAT descriptor application setting information includes the interfaces PP1, PP2,... And LAN1, LA.
This is set in correspondence with N2, and four NAT descriptor numbers can be set for one interface. This NAT descriptor number indicates the NA of FIG.
T descriptor definition information is specified. When the above-described NAT descriptor definition information and NAT descriptor application setting information are set or changed, the input setting is converted into data having a shape that can be easily processed by the router. Then, when the power of the router is turned on or when the definition information or the like is changed, the NAT descriptor management information shown in FIGS. 2 to 6 is generated based on the above-described definition information and application setting information. In this case, NAT
By looking at the descriptor application setting information in order, management information is created one by one from the definition information of the corresponding descriptor number. However, when the application setting information is not described, or when the definition information or the application setting information is inappropriate, the information is not created.

【0016】次に、図1のインターフェイスPP1にお
いて、符号PP1aは上述したNATディスクリプタ管
理情報(図2)に基づいて、通過するパケットのアドレ
ス変換を行うブロックであり、その処理過程を図12に
示す。この図において、ステップS1ではカウントnに
「1」が設定される。次いで、ステップS2へ進むと、
カウントnが最大適用可能数4より小か否かが判断され
る。そして、判断結果が「YES」の場合は、ステップ
S3へ進む。ステップS3では、n個目のNATディス
クリプタ管理情報が作られているか否かが判断される。
すなわち、この場合、図2の符号K1の管理情報が作ら
れているか否かが判断される。そして、作られている場
合(「YES」の場合)はステップS4へ進む。ステッ
プS4では、パケットから得られる情報とNATディス
クリプタ管理情報を基に同パケットのアドレス変換(お
よびIPマスカレードの場合ポート番号変換)を行う。
なお、この変換処理は従来と同じである。そして、ステ
ップS5へ進む。ステップS5では、終了条件が判断さ
れる。もし、この答えが「YES」の場合は処理を終了
する。
Next, in the interface PP1 of FIG. 1, reference numeral PP1a is a block for performing address conversion of a passing packet based on the above-described NAT descriptor management information (FIG. 2), and the processing procedure is shown in FIG. . In this figure, "1" is set to the count n in step S1. Next, when the process proceeds to step S2,
It is determined whether or not the count n is smaller than the maximum applicable number 4. If the result of the determination is "YES", the operation proceeds to step S3. In step S3, it is determined whether or not the n-th NAT descriptor management information has been created.
That is, in this case, it is determined whether or not the management information indicated by the code K1 in FIG. 2 has been created. If it has been made ("YES"), the process proceeds to step S4. In step S4, based on the information obtained from the packet and the NAT descriptor management information, the address of the same packet is converted (and the port number is converted in the case of IP masquerade).
This conversion process is the same as the conventional one. Then, the process proceeds to step S5. In step S5, a termination condition is determined. If the answer is "YES", the process ends.

【0017】また、ステップS3の判断結果が「NO」
の場合はステップS6へ進み、カウントnに「1」が加
算され、ステップS2,S3の判断が繰り返される。そ
して、カウントnが「5」になると、ステップS2の判
断結果が「NO」となり、処理を終了する。以上がブロ
ックPP1aにおけるアドレス変換処理であり、ブロッ
クPP2a、PP3aにおける処理も同様である。ま
た、インターフェイスLAN1、LAN2におけるブロ
ックLAN1a、LAN2aの処理も同様である。
The result of the determination in step S3 is "NO".
In the case of, the process proceeds to step S6, "1" is added to the count n, and the determinations in steps S2 and S3 are repeated. When the count n becomes “5”, the result of the determination in step S2 becomes “NO”, and the process ends. The above is the address conversion processing in the block PP1a, and the same applies to the processing in the blocks PP2a and PP3a. The same applies to the processing of the blocks LAN1a and LAN2a in the interfaces LAN1 and LAN2.

【0018】次に、インターフェイスPP1(図1)に
おいて、符号PP1bは回線処理を行うブロックであ
り、予め設定してある電話番号のダイヤリング処理等を
行う。ブロックPP2b、PP3bの処理も同様であ
る。次に、上述したルータの動作を説明する。いま、図
1に示すネットワーク1のコンピュータ(コンピュータ
Aとする)がISDN回線を介して別の事業所へデータ
を送る場合を例にとる。この場合、インターフェイスL
AN1のブロックLAN1aを不動作に設定する。この
状態において、コンピュータAから送信されたパケット
には、そのコンピュータAに予め定められているプライ
ベートアドレスが送信元アドレスとして付されている。
そして、このパケットがイーサネットコントローラ5、
イーサネットドライバ31を介してIPルーティング処
理11へ進み、ここでルーティング処理が行われる。こ
のルーティング処理が終了後、パケットは例えばブロッ
クPP1aのアドレス変換処理へ進み、ここで、NAT
ディスクリプタ管理情報(図2)に基づいて送信元のプ
ライベートアドレスがグローバルアドレスに変換され
る。
Next, in the interface PP1 (FIG. 1), reference numeral PP1b is a block for performing line processing, and performs dialing processing of a preset telephone number. The same applies to the processing of the blocks PP2b and PP3b. Next, the operation of the above-described router will be described. Now, an example will be described in which a computer (computer A) of the network 1 shown in FIG. 1 sends data to another office via an ISDN line. In this case, the interface L
The block LAN1a of the AN1 is set inoperative. In this state, a packet transmitted from the computer A has a private address predetermined for the computer A as a source address.
And this packet is the Ethernet controller 5,
The processing proceeds to the IP routing processing 11 via the Ethernet driver 31, where the routing processing is performed. After this routing process is completed, the packet proceeds to, for example, the address translation process of the block PP1a, where the NAT
The private address of the transmission source is converted into a global address based on the descriptor management information (FIG. 2).

【0019】またこの時、ブロックPP1bによる回線
接続処理が行われる。この処理では、ダイヤリング処理
が行われ、次いで、図13に示す処理が行われる。この
処理において、ステップSa1では、インターフェイス
の回線接続状態を「接続中」とする。図14に回線接続
状態を設定するテーブルを示す。次に、ステップSa2
では、ipcpアドレスが通知されたか否かが判断され
る。ここで、ipcpアドレスとは、インターネットア
クセスプロバイダがIPCP(インターネットプロトコ
ル、エントワールプロトコル)により送信してくるグロ
ーバルアドレスである。そして、この判断結果が「YE
S」の場合は、ステップSa3へ進み、管理情報に同ア
ドレスを記録する(図14参照)。また、「NO」の場
合はステップSa3の処理は行われない。上述した回線
接続処理が終了すると、パケットがISDN回線へ送り
出される。また、回線接続終了時には、図15に示すよ
うに、図14のテーブルのリセットが行われる。
At this time, the line connection processing by the block PP1b is performed. In this process, a dialing process is performed, and then a process shown in FIG. 13 is performed. In this process, in step Sa1, the line connection state of the interface is set to “connected”. FIG. 14 shows a table for setting the line connection state. Next, step Sa2
Then, it is determined whether or not the ipcp address has been notified. Here, the ipcp address is a global address transmitted by an Internet access provider by IPCP (Internet Protocol, Enwar Protocol). The result of this determination is “YE
In the case of "S", the process proceeds to step Sa3, and the same address is recorded in the management information (see FIG. 14). If “NO”, the process of step Sa3 is not performed. When the above-described line connection processing is completed, the packet is sent out to the ISDN line. At the end of the line connection, the table of FIG. 14 is reset as shown in FIG.

【0020】次に、例えば図1に示すネットワーク2の
コンピュータ(コンピュータBとする)がネットワーク
1のコンピュータAへデータを送る場合について説明す
る。この場合、コンピュータBから送信されるパケット
には、送信先アドレスとしてネットワーク1のグローバ
ルアドレスが付けられ、また、送信元アドレスとして、
コンピュータBのプライベートアドレスが付けられる。
このパケットがイーサネットコントローラ6,イーサネ
ットドライバ32を介してインターフェイスLAN2の
ブロックLAN2aの処理へ送られる。このブロックL
AN2aの処理では、NATディスクリプタ管理情報に
基づいて送信元アドレスがグローバルアドレスに変換さ
れる。次いで、IPルーティング処理11へ進み、ここ
でルーティング処理が行われる。このルーティング処理
の結果、パケットがネットワーク1へ向けたものである
ことが検知され、同パケットがインターフェイスLAN
1のブロックLAN1aのアドレス変換処理へ進む。そ
して、このLAN1aの処理において、NATディスク
リプタ管理情報(図2)に基づいて送信先のグローバル
アドレスがコンピュータAのプライベートアドレスに変
換され、同コンピュータAに向けて送り出される。
Next, a case where a computer on the network 2 (computer B) shown in FIG. 1 sends data to the computer A on the network 1 will be described. In this case, the packet transmitted from the computer B is provided with the global address of the network 1 as a destination address, and as a source address.
The private address of computer B is assigned.
This packet is sent to the processing of the block LAN 2 a of the interface LAN 2 via the Ethernet controller 6 and the Ethernet driver 32. This block L
In the processing of the AN 2a, the source address is converted to a global address based on the NAT descriptor management information. Next, the process proceeds to the IP routing process 11, where the routing process is performed. As a result of this routing processing, it is detected that the packet is destined for the network 1, and the packet is transmitted to the interface LAN.
The process proceeds to the address conversion processing of the first block LAN1a. Then, in the processing of the LAN 1a, the destination global address is converted into the private address of the computer A based on the NAT descriptor management information (FIG. 2) and transmitted to the computer A.

【0021】このように、上述したルータにおいては、
アドレス変換処理と回線接続処理を分離し、かつ、アド
レス変換処理をNATディスクリプタによって汎用化
し、NATディスクリプタをユーザが自由に設定できる
ようにしている。なお、上述の例では、アドレス変換の
みを行うNATによる処理を説明したが、IPマスカレ
ードの場合は、アドレス変換のみならず、ポート番号の
変換も行われる。すなわち、本実施形態においては、送
信時は、送信元IPアドレスとしてのプライベートアド
レスを、グローバルアドレスに変換するとともに、送信
元ポート番号としてのプライベートポート番号を、利用
可能なグローバルポート番号に変換して送信する。一
方、返信パケットの受信時は、送られてきたパケットに
付加されている送信先のグローバルアドレス(送信時に
変換した送信元グローバルアドレスと同一)とそのポー
ト番号(前記宛先ポート番号と同一の番号)を、対応す
るプライベートアドレスとそのプライベートポート番号
に変換する。つまり、IPマスカレードにおけるポート
番号の変換は、図5のマスカレード管理テーブルに記入
されるプライベートポート番号と、宛先ポート番号の対
応関係に基づいて管理される。
Thus, in the router described above,
The address translation process and the line connection process are separated, and the address translation process is generalized using a NAT descriptor so that the user can freely set the NAT descriptor. In the above example, the processing by the NAT that performs only the address translation has been described. However, in the case of the IP masquerade, not only the address translation but also the port number translation is performed. That is, in the present embodiment, at the time of transmission, a private address as a source IP address is converted into a global address, and a private port number as a source port number is converted into an available global port number. Send. On the other hand, when the return packet is received, the destination global address (same as the source global address converted at the time of transmission) added to the transmitted packet and its port number (the same number as the destination port number) Into a corresponding private address and its private port number. That is, the conversion of the port number in the IP masquerade is managed based on the correspondence between the private port number written in the masquerade management table of FIG. 5 and the destination port number.

【0022】[0022]

【発明の効果】以上説明したように、この発明によれ
ば、1つのインターフェイスに対して複数の機能を設定
することができると共に、LAN側にもアドレス変換処
理を設定することができ、この結果、LAN間のデータ
伝送にも適用できるフレキシビリティに富むルータを提
供することができる。
As described above, according to the present invention, a plurality of functions can be set for one interface, and the address conversion processing can be set on the LAN side. It is possible to provide a highly flexible router applicable to data transmission between LANs.

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

【図1】 この発明の一実施形態の構成を示すブロック
図である。
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention.

【図2】 同実施形態におけるインターフェイスPP
1,PP2・・・およびLAN1,LAN2において用
いられるNATディスクリプタ管理情報の設定状態を示
す図である。
FIG. 2 shows an interface PP in the embodiment.
1, PP2,... And a setting state of NAT descriptor management information used in LAN1, LAN2.

【図3】 各NATディスクリプタ管理情報の構成を示
す図である。
FIG. 3 is a diagram showing a configuration of each NAT descriptor management information.

【図4】 図3のNATディスクリプタ管理情報におけ
るNAT管理テーブルの構成例を示す図である。
4 is a diagram showing a configuration example of a NAT management table in the NAT descriptor management information of FIG.

【図5】 図3のNATディスクリプタ管理情報におけ
るマスカレード管理テーブルの構成を示す図である。
FIG. 5 is a diagram showing a configuration of a masquerade management table in the NAT descriptor management information of FIG. 3;

【図6】 NATディスクリプタ定義情報の構成を示す
図である。
FIG. 6 is a diagram showing a configuration of NAT descriptor definition information.

【図7】 図6に示すNATディスクリプタ定義情報に
おけるグローバルアドレスリストの構成を示す図であ
る。
7 is a diagram showing a configuration of a global address list in the NAT descriptor definition information shown in FIG.

【図8】 図6に示すNATディスクリプタ定義情報に
おけるプライベートアドレスリストの構成を示す図であ
る。
8 is a diagram showing a configuration of a private address list in the NAT descriptor definition information shown in FIG.

【図9】 図6に示すNATディスクリプタ定義情報に
おける静的NATリストの構成を示す図である。
9 is a diagram showing a configuration of a static NAT list in the NAT descriptor definition information shown in FIG.

【図10】 図6に示すNATディスクリプタ定義情報
における静的マスカレードリストの構成を示す図であ
る。
FIG. 10 is a diagram showing a configuration of a static masquerade list in the NAT descriptor definition information shown in FIG.

【図11】 NATディスクリプタ適用設定情報の構成
を示す図である。
FIG. 11 is a diagram showing a configuration of NAT descriptor application setting information.

【図12】 図1におけるインターフェイスPP1のN
AT処理を示すフローチャートである。
FIG. 12 shows N of interface PP1 in FIG. 1;
It is a flowchart which shows AT processing.

【図13】 図1におけるインターフェイスPP1の回
線接続開始時の処理を示すフローチャートである。
FIG. 13 is a flowchart showing processing at the time of starting line connection of an interface PP1 in FIG. 1;

【図14】 回線接続状態が書き込まれるテーブルを示
す図である。
FIG. 14 is a diagram showing a table in which a line connection state is written.

【図15】 図1におけるインターフェイスPP1の回
線接続終了時の処理を示すフローチャートである。
FIG. 15 is a flowchart showing a process when the line connection of the interface PP1 in FIG. 1 is completed.

【図16】 従来のルータの構成を示すブロック図であ
る。
FIG. 16 is a block diagram showing a configuration of a conventional router.

【図17】 TCPヘッダの構成を示す図である。FIG. 17 is a diagram showing a configuration of a TCP header.

【図18】 IPヘッダの構成を示す図である。FIG. 18 is a diagram showing a configuration of an IP header.

【図19】 UDPヘッダの構成を示す図である。FIG. 19 is a diagram showing a configuration of a UDP header.

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

1…ルータ、2…ルーティング装置、11…IPルーテ
ィング処理、PP1、PP2、PP3…インターフェイ
ス、LAN1、LAN2…インターフェイス、PP1
a、PP2a、PP3a、LAN1a、LAN2a…ア
ドレス変換処理(NAT)、PP1b、PP2b、PP
3b…回線処理。
DESCRIPTION OF SYMBOLS 1 ... Router, 2 ... Routing apparatus, 11 ... IP routing processing, PP1, PP2, PP3 ... Interface, LAN1, LAN2 ... Interface, PP1
a, PP2a, PP3a, LAN1a, LAN2a... Address conversion processing (NAT), PP1b, PP2b, PP
3b Line processing.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 プライベートアドレスとグローバルアド
レスとの相互変換を行うアドレス変換機能を有するルー
タにおいて、 ユーザによって設定される変換用データが記憶される第
1の記憶手段と、 前記ユーザによって設定されるインターフェイス対応の
適用情報が記憶される第2の記憶手段と、 前記第1、第2の記憶手段内のデータに基づいてインタ
ーフェイス毎の変換管理情報を生成する制御手段と、 前記変換管理情報に基づいてパケット内のアドレスを変
換する変換手段と、 を具備してなるルータ。
1. A router having an address translation function for translating between a private address and a global address, wherein: first storage means for storing translation data set by a user; and an interface set by the user. Second storage means for storing corresponding application information; control means for generating conversion management information for each interface based on data in the first and second storage means; and And a translation unit for translating an address in the packet.
【請求項2】 前記第1の記憶手段には、 前記グローバルアドレスの範囲を示すリストと、 前記プライベートアドレスの範囲を示すリストと、 前記グローバルアドレスとプライベートアドレスの対応
関係を示すリストと、 が設けられることを特徴とする請求項1に記載のルー
タ。
2. The first storage means includes: a list indicating a range of the global address; a list indicating a range of the private address; and a list indicating a correspondence between the global address and the private address. The router according to claim 1, wherein
【請求項3】 前記第2の記憶手段には各インターフェ
イスに対応して複数の適用情報が記憶されることを特徴
とする請求項1または請求項2に記載のルータ。
3. The router according to claim 1, wherein a plurality of pieces of application information are stored in the second storage unit corresponding to each interface.
【請求項4】 前記第1の記憶手段には、さらにポート
番号とグローバルアドレスの対応関係を示すリストが設
けられ、前記変換手段はパケットのアドレスおよびポー
ト番号を変換することを特徴とする請求項2に記載のル
ータ。
4. The apparatus according to claim 1, wherein said first storage means further includes a list indicating a correspondence between a port number and a global address, and said conversion means converts a packet address and a port number. 2. The router according to 2.
JP2000004061A 1999-01-12 2000-01-12 Router Expired - Fee Related JP4221864B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000004061A JP4221864B2 (en) 1999-01-12 2000-01-12 Router

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP11-5827 1999-01-12
JP582799 1999-01-12
JP2000004061A JP4221864B2 (en) 1999-01-12 2000-01-12 Router

Publications (2)

Publication Number Publication Date
JP2000270004A true JP2000270004A (en) 2000-09-29
JP4221864B2 JP4221864B2 (en) 2009-02-12

Family

ID=26339841

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000004061A Expired - Fee Related JP4221864B2 (en) 1999-01-12 2000-01-12 Router

Country Status (1)

Country Link
JP (1) JP4221864B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002152260A (en) * 2000-11-13 2002-05-24 Oki Electric Ind Co Ltd Communication apparatus having address conversion function and multimedia communication method
JP2003163703A (en) * 2001-11-26 2003-06-06 Nec Corp Disconnecting system and disconnecting method for network address translator
WO2003056770A1 (en) * 2001-12-26 2003-07-10 Allied Telesis K.K. Relay apparatus, address conversion control method, and program
KR100458289B1 (en) * 2002-11-18 2004-11-26 (주)에이엘테크 NAT having unified memory
JP2008060763A (en) * 2006-08-30 2008-03-13 Alaxala Networks Corp Network node
JP2008067055A (en) * 2006-09-07 2008-03-21 Fujitsu Ltd Mobile communication system based on mobile ip, home agent used therein, mobile node, and method
JP2009267522A (en) * 2008-04-22 2009-11-12 Ntt Communications Kk Address converter, address conversion program
JP2010050547A (en) * 2008-08-19 2010-03-04 Oki Electric Ind Co Ltd Address conversion device, method and program, name resolution system, method and program, and node
JP2015125463A (en) * 2013-12-25 2015-07-06 エヌ・ティ・ティ・コムウェア株式会社 Load balancing device, load balancing method, and load balancing program

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002152260A (en) * 2000-11-13 2002-05-24 Oki Electric Ind Co Ltd Communication apparatus having address conversion function and multimedia communication method
JP2003163703A (en) * 2001-11-26 2003-06-06 Nec Corp Disconnecting system and disconnecting method for network address translator
WO2003056770A1 (en) * 2001-12-26 2003-07-10 Allied Telesis K.K. Relay apparatus, address conversion control method, and program
KR100458289B1 (en) * 2002-11-18 2004-11-26 (주)에이엘테크 NAT having unified memory
JP2008060763A (en) * 2006-08-30 2008-03-13 Alaxala Networks Corp Network node
JP2008067055A (en) * 2006-09-07 2008-03-21 Fujitsu Ltd Mobile communication system based on mobile ip, home agent used therein, mobile node, and method
JP2009267522A (en) * 2008-04-22 2009-11-12 Ntt Communications Kk Address converter, address conversion program
JP4705656B2 (en) * 2008-04-22 2011-06-22 エヌ・ティ・ティ・コミュニケーションズ株式会社 Address translation device, address translation program
JP2010050547A (en) * 2008-08-19 2010-03-04 Oki Electric Ind Co Ltd Address conversion device, method and program, name resolution system, method and program, and node
US8422503B2 (en) 2008-08-19 2013-04-16 Oki Electric Industry Co., Ltd. Address translator using address translation information in header area on network layer level and a method therefor
JP2015125463A (en) * 2013-12-25 2015-07-06 エヌ・ティ・ティ・コムウェア株式会社 Load balancing device, load balancing method, and load balancing program

Also Published As

Publication number Publication date
JP4221864B2 (en) 2009-02-12

Similar Documents

Publication Publication Date Title
US7339895B2 (en) Gateway device and control method for communication with IP and IPV6 protocols
JP4816572B2 (en) Virtual network connection system and apparatus
CN106899710B (en) IP address conversion method, IP address conversion device and gateway system
US7830870B2 (en) Router and method for transmitting packets
US6608830B1 (en) Router
US7623520B2 (en) Method and apparatus for routing packets
JP6098192B2 (en) Address generator
US20060268863A1 (en) Transparent address translation methods
JP3858884B2 (en) Network access gateway, network access gateway control method and program
KR100827143B1 (en) Packet switch device and the packet switching method
JP2000270004A (en) Router
US20040098512A1 (en) NAPT gateway system with method capable of extending the number of connections
KR100716997B1 (en) Method and apparatus of translation bridge between ethernet and 1394A local links for consumer electronics devices
JP2008527829A (en) Efficient address space expansion to pseudo-multihomed hosts
JP4763733B2 (en) IPv4-IPv6 translator device and dummy address reply method
WO2014156143A1 (en) Home gateway device and packet forwarding method
US20040153502A1 (en) Enhanced DNS server
JP2010062757A (en) Dns proxy apparatus and dns relay method
JPH1013471A (en) Inter-network connection system and domain name managing method
CN112165539B (en) IPv6 address translation method
CN113746715B (en) Method and device for realizing cross-three-layer transmission of two-layer message
KR100693050B1 (en) Header translation system and method using network processor
JP4499622B2 (en) Traffic distribution apparatus, traffic distribution program, and packet relay method
US20060227769A1 (en) Method for data exchange between network elements in networks with different address ranges
JP5990125B2 (en) Packet transfer device, distribution system, packet transfer method, program, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061205

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080624

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080825

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: 20081028

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: 20081110

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111128

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111128

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121128

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121128

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131128

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees