JP2008131441A - Packet repeating apparatus - Google Patents
Packet repeating apparatus Download PDFInfo
- Publication number
- JP2008131441A JP2008131441A JP2006315430A JP2006315430A JP2008131441A JP 2008131441 A JP2008131441 A JP 2008131441A JP 2006315430 A JP2006315430 A JP 2006315430A JP 2006315430 A JP2006315430 A JP 2006315430A JP 2008131441 A JP2008131441 A JP 2008131441A
- Authority
- JP
- Japan
- Prior art keywords
- packet
- address
- shared
- network
- mac address
- 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
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
本発明は、パケットの中継技術に関し、特に、同じIPアドレスを共用する複数のネットワーク端末にパケットを振り分ける技術に関する。 The present invention relates to a packet relay technique, and more particularly to a technique for distributing packets to a plurality of network terminals sharing the same IP address.
複数のインターネット端末で同じグローバルIP(Internet Protocol)アドレスを共用する技術として、NAT(Network Address Translation)を利用する技術(特許文献1参照)、およびNAPT(Network Address Port Translation)を利用する技術が知られている。 As a technology for sharing the same global IP (Internet Protocol) address among a plurality of Internet terminals, a technology using NAT (Network Address Translation) (see Patent Document 1) and a technology using NAPT (Network Address Port Translation) are known. It has been.
ホームサーバがインターネット経由でコンテンツ配信サーバからコンテンツデータを取得し再生するコンテンツ配信サービス、およびIP電話機が呼制御サーバ経由でコネクションを確立するIP電話サービスのように、インターネット端末が特定のサーバにのみアクセスするサービスでは、アプリケーションレイヤで、FTP(File Transfer Protocol)、SIP(Session Initiation Protocol)等のプロトコルが用いられることが多い。 An Internet terminal accesses only a specific server, such as a content distribution service in which a home server acquires and reproduces content data from a content distribution server via the Internet, and an IP telephone service in which an IP telephone establishes a connection via a call control server In such a service, protocols such as FTP (File Transfer Protocol) and SIP (Session Initiation Protocol) are often used in the application layer.
ところで、FTPおよびSIPでは、アドレス情報としてIPアドレスを利用する。一方、NATは、IPパケットのヘッダ内のIPアドレスを書き換える。また、NAPTは、IPパケットのヘッダ内のIPアドレス、およびTCP(Transmission Control Protocol)パケット、UDP(User Datagram Protocol)パケットのヘッダ内のポート番号を書き換える。しかし、NAT、NAPTは、アプリケーションレイヤのプロトコルのアドレス情報を変更しない。このため、アプリケーションレイヤでIPアドレスをアドレス情報として利用するプロトコルを用いたサービスでは、NAT、NAPTを利用することができない。 By the way, in FTP and SIP, an IP address is used as address information. On the other hand, NAT rewrites the IP address in the header of the IP packet. NAPT rewrites the IP address in the header of the IP packet, and the port number in the header of the TCP (Transmission Control Protocol) packet and UDP (User Datagram Protocol) packet. However, NAT and NAPT do not change application layer protocol address information. For this reason, NAT and NAPT cannot be used in a service using a protocol that uses an IP address as address information in the application layer.
本発明は上記事情に鑑みてなされたものであり、本発明の目的は、IPアドレスをアドレス情報として利用するアプリケーションレイヤのプロトコル、つまりNATおよびNAPTを利用できないアプリケーションレイヤのプロトコルを用いるネットワーク端末が、他のネットワーク端末と同じIPアドレスを用いてネットワークにアクセスすることができる技術を提供することにある。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an application layer protocol that uses an IP address as address information, that is, a network terminal that uses an application layer protocol that cannot use NAT and NAPT. An object of the present invention is to provide a technology capable of accessing a network using the same IP address as other network terminals.
上記課題を解決するために、本発明では、ネットワークと複数のネットワーク端末との間にパケット中継装置を設ける。パケット中継装置には、ネットワークと接続する第1のインターフェース手段と、ネットワーク端末毎に、対応するネットワーク端末を収容する複数の第2のインターフェース手段と、振分情報記憶手段と、を設ける。振分情報記憶手段には、第2のインターフェース手段の識別情報と、この第2のインターフェース手段が収容するネットワーク端末の通信相手のIPアドレスとの対応関係を、振分情報として記憶する。 In order to solve the above problems, in the present invention, a packet relay device is provided between a network and a plurality of network terminals. The packet relay apparatus includes first interface means for connecting to a network, a plurality of second interface means for accommodating corresponding network terminals for each network terminal, and distribution information storage means. In the distribution information storage means, the correspondence between the identification information of the second interface means and the IP address of the communication partner of the network terminal accommodated by the second interface means is stored as distribution information.
そして、パケット中継装置は、いずれかの第2のインターフェース手段を介してネットワーク端末からパケットを受信した場合に、この第2のインターフェースが共用インターフェースに設定されているならば、受信したパケットを第1のインターフェース手段から出力する。この第2のインターフェースが共用インターフェースに設定されていないならば、受信したパケットの送信元MACアドレスを、共用インターフェースに設定されている第2のインターフェース手段が収容するネットワーク端末のMACアドレスに変更し、それからこの受信したパケットを第1のインターフェース手段から出力する。 When the packet relay apparatus receives a packet from the network terminal via any second interface means, and the second interface is set as a shared interface, the packet relay apparatus transmits the received packet to the first interface. Output from the interface means. If this second interface is not set to the shared interface, the source MAC address of the received packet is changed to the MAC address of the network terminal accommodated by the second interface means set to the shared interface, Then, the received packet is output from the first interface means.
また、第1のインターフェース手段を介してネットワークからパケットを受信した場合に、受信したパケットの送信元IPアドレスに対応付けられて振分情報記憶手段に記憶されている識別情報を特定し、特定した識別情報を持つ第2のインターフェースが収容するネットワーク端末のMACアドレスを、この受信したパケットの宛先MACアドレスとして、特定した識別情報を持つ第2のインターフェース手段から出力する。 Further, when a packet is received from the network via the first interface means, the identification information stored in the distribution information storage means in association with the source IP address of the received packet is specified and specified. The MAC address of the network terminal accommodated by the second interface having the identification information is output from the second interface means having the identified identification information as the destination MAC address of the received packet.
例えば、本発明は、パケットデータを中継するパケット中継装置であって、
ネットワークと接続する第1のインターフェース手段と、
ネットワーク端末を収容する複数の第2のインターフェース手段と、
前記ネットワーク端末が共用するIPアドレスを、共用IPアドレスとして記憶する共用IPアドレス記憶手段と、
所定の前記第2のインターフェース手段の識別情報を、共用インターフェース情報として記憶する共用インターフェース情報記憶手段と、
前記ネットワーク端末各々のMACアドレスを、当該ネットワーク端末を収容する前記第2のインターフェース手段の識別情報に対応付けて記憶する端末MACアドレス記憶手段と、
前記第2のインターフェース手段の識別情報と、当該第2のインターフェース手段が収容する前記ネットワーク端末の通信相手のIPアドレスとの対応関係を、振分情報として記憶する振分情報記憶手段と、
前記ネットワーク端末から受信したパケットを、前記ネットワークに出力するパケット送信処理、および前記ネットワークから受信したパケットを、前記ネットワーク端末に出力するパケット受信処理を行う中継制御手段と、を有し、
前記中継制御手段は、
前記パケット送信処理において、パケットを受信した前記第2のインターフェース手段の識別情報が、共用インターフェース情報として前記共用インターフェース情報記憶手段に記憶されていない場合、当該パケットの送信元MACアドレスを、当該共用インターフェース情報に対応付けられて前記端末MACアドレス記憶手段に記憶されているMACアドレスに変更して、前記第1のインターフェース手段から当該パケットを出力し、
前記パケット受信処理において、前記ネットワークから受信したパケットの送信元IPアドレスに対応付けられて前記振分情報記憶手段に記憶されている前記第2のインターフェース手段の識別情報を特定すると共に、特定した識別情報に対応付けられて前記端末MACアドレス記憶手段に記憶されているMACアドレスを特定し、特定したMACアドレスを前記ネットワークから受信したパケットの宛先MACアドレスとして、特定した識別情報を持つ前記第2のインターフェース手段から当該パケットを出力する。
For example, the present invention is a packet relay device that relays packet data,
First interface means for connecting to a network;
A plurality of second interface means for accommodating network terminals;
Shared IP address storage means for storing an IP address shared by the network terminal as a shared IP address;
Shared interface information storage means for storing identification information of the predetermined second interface means as shared interface information;
A terminal MAC address storage unit that stores a MAC address of each of the network terminals in association with identification information of the second interface unit that accommodates the network terminal;
Distribution information storage means for storing correspondence information between the identification information of the second interface means and the IP address of the communication partner of the network terminal accommodated by the second interface means, as distribution information;
A packet transmission process for outputting the packet received from the network terminal to the network, and a relay control means for performing a packet reception process for outputting the packet received from the network to the network terminal,
The relay control means includes
In the packet transmission process, when the identification information of the second interface unit that has received the packet is not stored as shared interface information in the shared interface information storage unit, the source MAC address of the packet is Change the MAC address associated with the information and stored in the terminal MAC address storage means, and output the packet from the first interface means,
In the packet reception process, the identification information of the second interface means stored in the distribution information storage means in association with the source IP address of the packet received from the network is specified and the specified identification The MAC address associated with the information is stored in the terminal MAC address storage means, and the specified MAC address is used as the destination MAC address of the packet received from the network. The packet is output from the interface means.
本発明によれば、IPアドレスをアドレス情報として利用するアプリケーションレイヤのプロトコルを用いるネットワーク端末が、他のネットワーク端末と同じIPアドレスを用いてネットワークにアクセスすることができる。 According to the present invention, a network terminal using an application layer protocol that uses an IP address as address information can access the network using the same IP address as other network terminals.
以下、本発明の実施の形態について説明する。 Embodiments of the present invention will be described below.
図1は、本発明の一実施の形態が適用されたパケット中継装置を含むネットワークシステムの概略構成図である。 FIG. 1 is a schematic configuration diagram of a network system including a packet relay device to which an embodiment of the present invention is applied.
図示するように、本実施の形態のパケット中継装置1は、DHCP(Dynamic Host Configuration Protocol)サーバ機能を有するISP(Internet Services Provider)5と、DHCPクライアント機能を有するインターネット端末であるホームサーバ2、Webブラウザ端末3との間に設置される。
As shown in the figure, the
ここで、ISP5は、WAN(Wide Area Network)9を介して、コンテンツ配信サーバ6およびWebサーバ7に接続している。ISP5は、ホームサーバ2およびWebブラウザ端末3にWAN9への接続サービスを提供する。
Here, the
ホームサーバ2は、LAN(Local Area Network)(LAN−A)8を介してパケット中継装置1に接続されている。ホームサーバ2は、所定のコンテンツ配信サーバ6にアクセスして、このコンテンツ配信サーバ6からコンテンツデータとして例えば映像データを取得して蓄積し、利用者の再生要求に応じて再生信号をテレビ受信機4に出力する。
The
Webブラウザ端末3は、LAN−Aとは別のLAN(LAN−B)8を介してパケット中継装置1に接続されている。Webブラウザ端末3は、例えばパーソナルコンピュータであり、任意のWebサーバ7にアクセスして、このWebサーバ7からWebデータを取得し表示する。
The
そして、本実施の形態のパケット中継装置1は、ISP5と連携して、ホームサーバ2およびWebブラウザ端末3に同じ(共通の)IPアドレスを付与する。また、この同じIPアドレスが付与されたホームサーバ2およびWebブラウザ端末3と、WAN9(ISP5)との間を流れるパケットを中継する。
Then, the
図2は、図1に示すパケット中継装置1の概略機能ブロック図である。
FIG. 2 is a schematic functional block diagram of the
図示するように、パケット中継装置1は、WAN側インターフェース部11と、LAN8毎に設けられた複数のLAN側インターフェース部12と、記憶部13と、中継制御部14と、を有する。
As illustrated, the
WAN側インターフェース部11は、WAN9のインターフェース制御機能を有し、ISP5を介して、WAN9に接続されたコンテンツ配信サーバ6、Webサーバ7とパケットを送受信する。
The WAN
LAN側インターフェース部12は、LAN8のインターフェース制御機能を有し、対応するLAN8(LAN−A、LAN−B)を介して、このLAN8に接続されたインターネット端末(ホームサーバ2、Webブラウザ端末3)を収容する。そして、収容したインターネット端末とパケットを送受信する。
The LAN-
記憶部13は、共用IPアドレス記憶部131と、共用インターフェース記憶部132と、ゲートウェイアドレス記憶部133と、端末MAC(Media Access Control)アドレス記憶部134と、振分情報記憶部135と、を有する。
The
共用IPアドレス記憶部131は、ホームサーバ2およびWebブラウザ端末3が共用するIPアドレスを、共用IPアドレスとして記憶する。本実施の形態では、共用IPアドレスとして、ISP5がホームサーバ2およびWebブラウザ端末3のいずれかにリースしたIPアドレス(DHCPリースIPアドレスと呼ぶ)を用いている。
The shared IP
共用インターフェース記憶部132は、いずれか1つのLAN側インターフェース部12の識別情報を、共用インターフェース情報として記憶する。本実施の形態では、共用インターフェース情報として、DHCPリースIPアドレスがリースされたインターネット端末(ホームサーバ2およびWebブラウザ端末3のいずれか)を収容するLAN側インターフェース部12の識別情報を用いている。
The shared
ゲートウェイアドレス記憶部133は、ホームサーバ2およびWebブラウザ端末3が共用するゲートウェイのIPアドレスを、ゲートウェイアドレスとして記憶する。なお、本実施の形態では記載していないが、ゲートウェイとはWAN上で、媒体やプロトコルが異なるデータを相互に変換して通信を行う装置のことであり、図1のISP5のシステム内に存在する。また、ゲートウェイアドレスとして、ISP5が、ホームサーバ2およびWebブラウザ端末3のいずれかに、DHCPリースIPアドレスと共にリースしたゲートウェイのIPアドレス(DHCPリースゲートウェイアドレスと呼ぶ)を用いている。
The gateway
端末MACアドレス記憶部134は、LAN側インターフェース部12毎に、このLAN側インターフェース部12の識別情報と、このLAN側インターフェース部12が収容するインターネット端末(ホームサーバ2およびWebブラウザ端末3のいずれか)のMACアドレスと、を記憶する。
The terminal MAC
図3(A)は、端末MACアドレス記憶部134の登録内容を模式的に表した図である。図示するように、端末MACアドレス記憶部134には、LAN側インターフェース部12毎にレコード1340が登録されている。レコード1340は、LAN側インターフェース部12の識別情報を登録するフィールド1341と、LAN側インターフェース部12が収容するインターネット端末のMACアドレスを登録するフィールド1342と、を有する。本実施の形態では、ホームサーバ2を収容するLAN側インターフェース部12およびWebブラウザ端末3を収容するLAN側インターフェース部12のそれぞれについてレコード1340が登録される。
FIG. 3A is a diagram schematically showing the registered contents of the terminal MAC
振分情報記憶部135は、所定のサーバのみと通信を行うインターネット端末毎に、このインターネット端末を収容するLAN側インターフェース部12の識別情報と、この所定のサーバのIPアドレスと、を含む振分情報を記憶する。なお、識別情報および振分情報の内容は、例えばLAN側インターフェース部12のポート番号である。
The distribution
図3(B)は、振分情報記憶部135の登録内容を模式的に表した図である。図示するように、振分情報記憶部135には、所定のサーバのみと通信を行うインターネット端末毎に、レコード1350が登録されている。レコード1350は、インターネット端末を収容するLAN側インターフェース部12の識別情報を登録するフィールド1351と、所定のサーバのIPアドレスを登録するフィールド1352と、を有する。本実施の形態では、コンテンツ配信サーバ6のみ通信を行うホームサーバ2についてレコード1350が登録される。そして、このレコード1350のフィールド1351には、コンテンツ配信サーバ6を収容するLAN側インターフェース12の識別情報が登録され、フィールド1352にはコンテンツ配信サーバ6のIPアドレスが登録される。
FIG. 3B is a diagram schematically showing the registration contents of the distribution
図2に戻って説明を続ける。中継制御部14は、LAN側インターフェース部12を介してインターネット端末から受信したパケットを、WAN側インターフェース部11を介してWAN9側に出力するパケット送信処理、およびWAN側インターフェース部11を介してWAN側9から受信したパケットを、LAN側インターフェース部12を介してインターネット端末に出力するパケット受信処理を行う。
Returning to FIG. 2, the description will be continued. The
図4は、パケット中継装置1の動作フローを説明するための図である。
FIG. 4 is a diagram for explaining an operation flow of the
中継制御部14は、パケットを受信すると(S1)、このパケットの送出元のインターフェース部を確認する(S2)。送出元のインターフェース部がLAN側インターフェース部12(LAN−A側およびLAN−B側のいずれか)の場合は、後述するパケット送信処理を実行する(S3)。一方、送出元のインターフェース部がWAN側インターフェース部11の場合は、後述するパケット受信処理を実行する(S4)。
When the
図5は、図4に示すパケット送信処理(S3)を説明するためのフロー図である。 FIG. 5 is a flowchart for explaining the packet transmission process (S3) shown in FIG.
S301において、中継制御部14は、共用インターフェース記憶部132に共用インターフェース情報が登録されているか否かを調べる。登録されている場合(S301でYES)はS302に進み、登録されていない場合(S301でNO)はS307に進む。
In S301, the
S302において、中継制御部14は、共用インターフェース記憶部132に記憶されている共用インターフェース情報が、パケット送信元のLAN側インターフェース部12(LAN−A側およびLAN−B側のいずれか)と一致するか否かを調べる。一致する場合(S302でYES)はS303に進み、登録されていない場合(S302でNO)はS307に進む。
In S302, the
S303において、中継制御部14は、受信パケットのヘッダ等に格納された情報に基づき、この受信パケットが、DHCPリクエスト等のDHCPメッセージを格納したDHCPパケットであるか否かを調べる。DHCPパケットである場合(S303でYES)はS304に進み、DHCPパケットでない場合(S303でNO)はS306に進む。
In S303, the
S304において、中継制御部14は、共用IPアドレス記憶部131に記憶されている共用IPアドレス、およびゲートウェイアドレス記憶部133に記憶されているゲートウェイアドレスを、DHCPサーバであるISPサーバ5がパケット送信元のインターネット端末(ホームサーバ2およびWebブラウザ端末3のいずれか)にリースしたDHCPリースIPアドレス、およびDHCPリースゲートウェイアドレスとして、これらのDHCPリースIPアドレスおよびDHCPリースゲートウェイアドレスを格納したDHCPメッセージ(例えばDHCPサーバにIPアドレスのリースを要求するDHCPリクエストに対する応答メッセージであるDHCPリクエストACKメッセージ)を生成する。そして、パケット送信元のLAN側インターフェース部12を介して、このパケット送信元のインターネット端末に、生成したDHCPメッセージを格納したDHCPパケットを送信する。その後、S305に進む。
In S304, the
S305において、中継制御部14は、パケット送信元のLAN側インターフェース部12の識別情報に対応付けて、このパケットの送信元MACアドレスを、端末MACアドレス記憶部134に登録する。あるいは、パケット送信元のLAN側インターフェース部12の識別情報に対応付けられて端末MACアドレス記憶部134に登録されているMACアドレスを、このパケットの送信元MACアドレスに更新する。
In S305, the
S306において、中継制御部14は、共用インターフェース記憶部132に記憶されている共用インターフェース情報に対応付けられて端末MACアドレス記憶部134に記憶されているMACアドレスを特定する。そして、受信パケットの送信元MACアドレスを、この特定したMACアドレスに変更する。その後、S307に進む。
In S <b> 306, the
S307において、中継制御部14は、WAN側インターフェース部11を介してWAN9側(ISP5)に、受信パケットを送信する。
In S307, the
図6は、図4に示すパケット受信処理(S4)を説明するためのフロー図である。 FIG. 6 is a flowchart for explaining the packet reception process (S4) shown in FIG.
S401において、中継制御部14は、受信パケットに格納されているデータがDHCPリクエストACKメッセージであるか否かを調べる。DHCPリクエストACKメッセージである場合(S401でYES)は、後述するリクエストACK受信処理(S406)を実行する。DHCPリクエストACKメッセージでない場合(S401でNO)は、S402に進む。
In S401, the
S402において、中継制御部14は、受信パケットに格納されているデータが、DHCPサーバにIPアドレスのリリースを要求するDHCPリリースに対する応答メッセージであるDHCPリリースACKメッセージであるか否かを調べる。DHCPリリースACKメッセージである場合(S402でYES)は、後述するリリースACK受信処理(S407)を実行する。DHCPリリースACKメッセージでない場合(S402でNO)は、S403に進む。
In S402, the
S403において、中継制御部14は、振分情報記憶部135に記憶されている振分情報を用いて、受信パケットの振分先となるLAN側インターフェース部12を決定する。具体的には、フィールド1352に受信パケットの送信元IPアドレスが登録されているレコード1350を、振分情報記憶部135から検索する。そして、検索したレコード1350のフィールド1351に登録されている識別情報を持つLAN側インターフェース部12を、受信パケットの振分先に決定する。なお、レコード1350が検索できなかった場合は、所定のLAN側インターフェース部12を受信パケットの振分先に決定する。その後、S404に進む。
In S403, the
本実施の形態では、LAN−Aに接続されたLAN側インターフェース部12の識別情報がフィールド1351に登録され、かつ、コンテンツ配信サーバ6のIPアドレスがフィールド1352に登録されたレコード1350のみを、振分情報記憶部135に登録している。そして、上記所定のLAN側インターフェース部12として、LAN−Bに接続されたLAN側インターフェース部12を設定している。これにより、コンテンツ配信サーバ6から送信されたパケットがLAN−A側に中継され、その他のサーバ(Webサーバ7等)から送信されたパケットがLAN−B側に中継されるようにしている。
In the present embodiment, only the
S404において、中継制御部14は、振分先に決定されたLAN側インターフェース部12の識別情報に対応付けられて端末MACアドレス記憶部134に記憶されているMACアドレスを特定する。そして、受信パケットの宛先MACアドレスを、特定したMACアドレスに変更する。その後、S405に進む。なお、この際、受信パケットの宛先MACアドレスと特定したMACアドレスとが同じである場合は、アドレスを変更する必要がないので、そのまま送信しても良い。
In S404, the
S405において、中継制御部14は、振分先に決定されたLAN側インターフェース部12から受信パケットを送出する。
In step S405, the
図7は、図6に示すリクエストACK受信処理(S406)を説明するためのフロー図である。 FIG. 7 is a flowchart for explaining the request ACK reception process (S406) shown in FIG.
S4061において、中継制御部14は、受信パケットの宛先MACアドレスに対応付けられて端末MACアドレス記憶部134に記憶されているLAN側インターフェース部12の識別情報を特定する。その後、S4062に進む。
In S4061, the
S4062において、中継制御部14は、特定したLAN側インターフェース部の識別情報を共用インターフェース情報に決定し、この識別情報を共用インターフェース記憶部132に登録する。その後、S4063に進む。
In S4062, the
S4063において、中継制御部14は、受信パケットに格納されているDHCPリクエストACKメッセージに記述されているDHCPリースIPアドレスを共用IPアドレスに決定する。そして、このDHCPリースIPアドレスを共用IPアドレス記憶部131に登録する。その後、S4064に進む。
In S4063, the
S4064において、中継制御部14は、受信パケットに格納されているDHCPリクエストACKメッセージに記述されているDHCPリースゲートウェイアドレスをゲートウェイアドレスに決定する。そして、このDHCPリースゲートウェイアドレスをゲートウェイアドレス記憶部133に登録する。その後、S4065に進む。
In S4064, the
S4065において、中継制御部14は、受信パケットの宛先MACアドレスに対応付けられて端末MACアドレス記憶部134に記憶されている識別情報を特定する。そして、特定した識別情報を持つLAN側インターフェース部12を、この受信パケットの振分先に決定する。その後、S4066に進む。
In S4065, the
S4066において、中継制御部14は、振分先に決定されたLAN側インターフェース部12から受信パケットを送出する。
In S4066, the
図8は、図6に示すリリースACK受信処理(S407)を説明するためのフロー図である。 FIG. 8 is a flowchart for explaining the release ACK reception process (S407) shown in FIG.
S4071において、中継制御部14は、共用インターフェース記憶部132の登録内容をクリアし、S4072に進む。
In S4071, the
S4072において、中継制御部14は、共用IPアドレス記憶部131の登録内容をクリアし、S4073に進む。
In S4072, the
S4073において、中継制御部14は、ゲートウェイアドレス記憶部133の登録内容をクリアし、S4074に進む。
In S4073, the
S4074において、中継制御部14は、受信パケットの宛先MACアドレスを変更して、各インターネット端末宛ての受信パケットのコピーを生成する。具体的には、端末MACアドレス記憶部134に記憶されているMACアドレス毎に、宛先MACアドレスをこのMACアドレスに変更した受信パケットのコピーを生成する。それから、S4075に進む。
In S4074, the
S4075において、中継制御部14は、生成した受信パケットのコピー各々を、このコピーの宛先MACアドレスに対応付けられて端末MACアドレス記憶部134に登録されている識別情報を持つLAN側インターフェース部12から送出する。
In S4075, the
以上、本発明の一実施の形態を説明した。 The embodiment of the present invention has been described above.
本実施の形態において、パケット中継装置1は、WAN9側と接続するWAN側インターフェース部11と、インターネット端末(ホームサーバ2およびWebブラウザ端末3のいずれか)毎に、対応するインターネット端末を収容するLAN側インターフェース部12と、振分情報記憶部135と、を有する。振分情報記憶部135は、LAN側インターフェース部12の識別情報と、このLAN側インターフェース部12が収容するインターネット端末の通信相手のIPアドレスとの対応関係を、振分情報として記憶する。
In the present embodiment, the
そして、パケット中継装置1は、いずれかのLAN側インターフェース部12を介してインターネット端末からパケットを受信した場合に、このLAN側インターフェース部12が共用インターフェースに設定されているならば、受信したパケットをWAN側インターフェース部11から出力する。このLAN側インターフェース部12が共用インターフェースに設定されていないならば、受信したパケットの送信元MACアドレスを、共用インターフェースに設定されているLAN側インターフェース部12が収容するインターネット端末のMACアドレスに変更してから、この受信したパケットをWAN側インターフェース部11から出力する。
When the
また、WAN側インターフェース部11を介してWAN9側からパケットを受信した場合に、受信パケットの送信元IPアドレスに対応付けられて振分情報記憶部135に記憶されている識別情報を特定し、特定した識別情報を持つLAN側インターフェース部12が収容するインターネット端末のMACアドレスを、受信したパケットの宛先MACアドレスとして、この受信パケットを特定した識別情報を持つLAN側インターフェース部12から出力する。
Further, when a packet is received from the
したがって、本実施の形態によれば、WAN9で利用可能なIPアドレスがインターネット端末に直接付与されるので、ホームサーバ2がIPアドレスをアドレス情報として利用するアプリケーションレイヤのプロトコル、つまりNATおよびNAPTを利用できないアプリケーションレイヤのプロトコルを用いるインターネット端末である場合でも、他のインターネット端末と同じIPアドレスを用いてWAN9にアクセスできる。
Therefore, according to the present embodiment, an IP address that can be used in the
また、本実施の形態において、パケット中継装置1は、WAN側インターフェース部11を介してWAN9側からパケットを受信した場合に、受信パケットの送信元IPアドレスに対応付けられてLAN側インターフェース部12の識別情報が振分情報記憶部135に記憶されていないならば、LAN−Bに接続されているLAN側インターフェース部12の識別情報に対応付けられて端末MACアドレス記憶部134に記憶されているMACアドレスを特定する。そして、受信したパケットの宛先MACアドレスをこの特定したMACアドレスに変更して、この受信したパケットをLAN−Bに接続されているLAN側インターフェースから出力する。
In the present embodiment, when the
したがって、本実施の形態によれば、特定のサーバ(コンテンツ配信サーバ6)にアクセスするホームサーバ2、および不特定のサーバ(Webサーバ7)にアクセスするWebブラウザ端末3が、同じIPアドレスを用いることができる。
Therefore, according to the present embodiment, the
また、本実施の形態において、パケット中継装置1は、インターネット端末から受信したパケットがDHCPリクエスト等のDHCPメッセージを格納している場合、共用IPアドレス記憶部131に共用IPアドレスが記憶されているならば、この共用IPアドレスが記述されたDHCPリクエストACKメッセージを格納したパケットを、このインターネット端末に通知し、共用IPアドレス記憶部131に共用IPアドレスが記憶されていないならば、WAN側インターフェース部11から受信パケットを出力する。
In the present embodiment, the
また、パケット中継装置1は、WAN9側から受信したパケットがDHCPリクエストACKメッセージを格納している場合、このDHCPリクエストACKメッセージに記述されているDHCPリースIPアドレスを、共用IPアドレスとして共用IPアドレス記憶部131に記憶すると共に、受信パケットの宛先MACアドレスに対応付けられて端末MACアドレス記憶部134に記憶されている識別情報を、共用インターフェース情報として共用インターフェース記憶部132に記憶する。そして、この受信したパケットを、この識別情報を持つLAN側インターフェース部12から出力する。
Further, when the packet received from the
また、パケット中継装置1は、WAN9側から受信したパケットがDHCPリリースACKメッセージを格納している場合、共用IPアドレス記憶部131および共用インターフェース記憶部132の記憶内容をクリアすると共に、LAN側インターフェース部12毎に、受信パケットのコピーを生成し、このコピーの宛先MACアドレスを、対象のLAN側インターフェース部12の識別情報に対応付けられて端末MACアドレス記憶部134に記憶されているMACアドレスに変更する。そして、このコピーを対象のLAN側インターフェース部12から出力する。
In addition, when the packet received from the
したがって、本実施の形態によれば、DHCPクライアント機能を有するインターネット端末各々がWAN9側のDHCPサーバ(ISP5)を利用しつつも、インターネット端末間で同じIPアドレスを利用することができる。
Therefore, according to the present embodiment, each Internet terminal having a DHCP client function can use the same IP address between Internet terminals while using the DHCP server (ISP 5) on the
なお、本発明は上記の実施の形態に限定されるものではなく、その要旨の範囲内で数々の変形が可能である。例えば、パケット中継装置1の各構成は、ASIC(Application Specific Integrated Circuit)、FPGA(Field Programmable Gate Array)などの集積ロジックICによりハード的に実行されるものでもよいし、あるいはDSPなど計算機によりソフトウエア的に実行されるものでもよい。
In addition, this invention is not limited to said embodiment, Many deformation | transformation are possible within the range of the summary. For example, each configuration of the
また、本実施の形態では、特定のサーバにアクセスするインターネット端末として、ホームサーバ2を例にとり説明したが、本発明はこれに限定されない。このようなインターネット端末として、ホームサーバ2の他に、特定のSIPサーバのみと通信を行うSIPフォン(IP電話端末)等がある。
In this embodiment, the
また、本実施の形態において、特定のサーバにアクセスするインターネット端末を複数設けてもよい。この場合、パケット中継装置1に、インターネット端末毎にLAN側インターフェース部12を用意すると共に、特定のサーバにアクセスするインターネット端末毎に、このインターネット端末を収容するLAN側インターフェース部12の識別情報がフィールド1351に登録され、このインターネット端末がアクセスするサーバのアドレスがフィールド1352に登録されたレコード1350を、振分情報記憶部135に記憶しておく。
In the present embodiment, a plurality of Internet terminals that access a specific server may be provided. In this case, the LAN
また、本実施の形態では、Webブラウザ端末3をパケット中継装置1にLAN−Bを介して接続しているが、ISP5に対してはDHCPクライアントとして機能し、Webブラウザ端末3に対してはDHCPサーバとして機能するルータを、LAN−Bを介してパケット中継装置1に接続し、このルータにWebブラウザ端末3を複数接続するようにしてもよい。
In the present embodiment, the
また、本実施の形態では、本発明をパケット中継装置として実施しているが、ホームサーバなどの常時電源が投入されている装置に本発明を組み込むようにしてもよい。 In the present embodiment, the present invention is implemented as a packet relay device. However, the present invention may be incorporated into a device that is constantly powered, such as a home server.
1:パケット中継装置、2:ホームサーバ、3:Webブラウザ端末3、4:TV、5:ISP、6:コンテンツ配信サーバ、7:Webサーバ、8:LAN、9:WAN、11:WAN側インターフェース部、12:LAN側インターフェース部、13:記憶部、14:中継制御部、131:共用IPアドレス記憶部、132:共用インターフェース記憶部、133:ゲートウェイアドレス記憶部、134:端末MACアドレス記憶部、135:振分情報記憶部
1: packet relay device, 2: home server, 3:
Claims (6)
ネットワークと接続する第1のインターフェース手段と、
ネットワーク端末を収容する複数の第2のインターフェース手段と、
前記ネットワーク端末が共用するIPアドレスを、共用IPアドレスとして記憶する共用IPアドレス記憶手段と、
所定の前記第2のインターフェース手段の識別情報を、共用インターフェース情報として記憶する共用インターフェース情報記憶手段と、
前記ネットワーク端末各々のMACアドレスを、当該ネットワーク端末を収容する前記第2のインターフェース手段の識別情報に対応付けて記憶する端末MACアドレス記憶手段と、
前記第2のインターフェース手段の識別情報と、当該第2のインターフェース手段が収容する前記ネットワーク端末の通信相手のIPアドレスとの対応関係を、振分情報として記憶する振分情報記憶手段と、
前記ネットワーク端末から受信したパケットを、前記ネットワークに出力するパケット送信処理、および前記ネットワークから受信したパケットを、前記ネットワーク端末に出力するパケット受信処理を行う中継制御手段と、を有し、
前記中継制御手段は、
前記パケット送信処理において、パケットを受信した前記第2のインターフェース手段の識別情報が、共用インターフェース情報として前記共用インターフェース情報記憶手段に記憶されていない場合、当該パケットの送信元MACアドレスを、当該共用インターフェース情報に対応付けられて前記端末MACアドレス記憶手段に記憶されているMACアドレスに変更して、前記第1のインターフェース手段から当該パケットを出力し、
前記パケット受信処理において、前記ネットワークから受信したパケットの送信元IPアドレスに対応付けられて前記振分情報記憶手段に記憶されている前記第2のインターフェース手段の識別情報を特定すると共に、特定した識別情報に対応付けられて前記端末MACアドレス記憶手段に記憶されているMACアドレスを特定し、特定したMACアドレスを前記ネットワークから受信したパケットの宛先MACアドレスとして、特定した識別情報を持つ前記第2のインターフェース手段から当該パケットを出力する
ことを特徴とするパケット中継装置。 A packet relay device that relays packet data,
First interface means for connecting to a network;
A plurality of second interface means for accommodating network terminals;
Shared IP address storage means for storing an IP address shared by the network terminal as a shared IP address;
Shared interface information storage means for storing identification information of the predetermined second interface means as shared interface information;
A terminal MAC address storage unit that stores a MAC address of each of the network terminals in association with identification information of the second interface unit that accommodates the network terminal;
Distribution information storage means for storing correspondence information between the identification information of the second interface means and the IP address of the communication partner of the network terminal accommodated by the second interface means, as distribution information;
A packet transmission process for outputting the packet received from the network terminal to the network, and a relay control means for performing a packet reception process for outputting the packet received from the network to the network terminal,
The relay control means includes
In the packet transmission process, when the identification information of the second interface unit that has received the packet is not stored as shared interface information in the shared interface information storage unit, the source MAC address of the packet is Change the MAC address associated with the information and stored in the terminal MAC address storage means, and output the packet from the first interface means,
In the packet reception process, the identification information of the second interface means stored in the distribution information storage means in association with the source IP address of the packet received from the network is specified and the specified identification The MAC address associated with the information and stored in the terminal MAC address storage means is specified, and the specified MAC address is used as the destination MAC address of the packet received from the network. A packet relay device that outputs the packet from the interface means.
前記中継制御手段は、
前記パケット受信処理において、前記ネットワークから受信したパケットの送信元IPアドレスに対応付けられて前記第2のインターフェース手段の識別情報が前記振分情報記憶手段に記憶されていない場合、予め定められた前記第2のインターフェース手段の識別情報に対応付けられて前記端末MACアドレス記憶手段に記憶されているMACアドレスを特定し、特定したMACアドレスを前記ネットワークから受信したパケットの宛先MACアドレスとして、前記予め定められた前記第2のインターフェース手段から当該パケットを出力する
ことを特徴とするパケット中継装置。 The packet relay device according to claim 1,
The relay control means includes
In the packet reception process, when the identification information of the second interface means is not stored in the distribution information storage means in association with the source IP address of the packet received from the network, the predetermined information The MAC address associated with the identification information of the second interface unit is specified and stored in the terminal MAC address storage unit, and the specified MAC address is set as the destination MAC address of the packet received from the network. The packet relay apparatus outputs the packet from the second interface means.
前記振分情報記憶手段に識別情報が記憶されている前記第2のインターフェース手段は、前記ネットワークに接続された特定の通信相手と通信を行う前記ネットワーク端末を収容し、
前記予め定められた前記第2のインターフェース手段は、前記ネットワークに接続された不特定の通信相手と通信を行う前記ネットワーク端末を収容する
ことを特徴とするパケット中継装置。 The packet relay device according to claim 1 or 2,
The second interface means in which identification information is stored in the distribution information storage means accommodates the network terminal that communicates with a specific communication partner connected to the network,
The packet relay device characterized in that the predetermined second interface means accommodates the network terminal that communicates with an unspecified communication partner connected to the network.
前記ネットワークには、DHCPサーバが接続されており、
前記ネットワーク端末は、DHCPクライアント機能を有し、
前記共用IPアドレスは、前記DHCPサーバがいずれかの前記ネットワーク端末にリースしたIPアドレスである
ことを特徴とするパケット中継装置。 The packet relay device according to any one of claims 1 to 3,
A DHCP server is connected to the network,
The network terminal has a DHCP client function;
The packet relay apparatus, wherein the shared IP address is an IP address leased to any one of the network terminals by the DHCP server.
前記中継制御手段は、
前記パケット送信処理において、前記ネットワーク端末から受信したパケットがDHCPリクエストパケットの場合、前記共用IPアドレス記憶手段に前記共用IPアドレスが記憶されているならば、当該共用IPアドレスを格納したDHCPリクエスト応答パケットを当該ネットワーク端末に通知し、前記共用IPアドレス記憶手段に前記共用IPアドレスが記憶されていないならば、前記第1のインターフェース手段から当該DHCPリクエストパケットを出力し、
前記パケット受信処理において、前記ネットワークから受信したパケットがDHCPリクエスト応答パケットの場合、当該DHCPリクエスト応答パケットに格納されているIPアドレスを、前記共用IPアドレスとして前記共用IPアドレス記憶手段に記憶すると共に、当該DHCPリクエスト応答パケットの宛先MACアドレスに対応付けられて前記端末MACアドレス記憶手段に記憶されている識別情報を、前記共用インターフェース情報として前記共用インターフェース情報記憶手段に記憶し、当該識別情報を持つ前記第2のインターフェース手段から当該DHCPリクエスト応答パケットを出力する
ことを特徴とするパケット中継装置。 The packet relay device according to claim 4,
The relay control means includes
In the packet transmission process, when the packet received from the network terminal is a DHCP request packet, if the shared IP address is stored in the shared IP address storage means, a DHCP request response packet storing the shared IP address To the network terminal, and if the shared IP address is not stored in the shared IP address storage means, the DHCP request packet is output from the first interface means,
In the packet reception process, when the packet received from the network is a DHCP request response packet, the IP address stored in the DHCP request response packet is stored as the shared IP address in the shared IP address storage unit; The identification information associated with the destination MAC address of the DHCP request response packet and stored in the terminal MAC address storage unit is stored in the shared interface information storage unit as the shared interface information, and the identification information has the identification information. A packet relay apparatus that outputs the DHCP request response packet from the second interface means.
前記中継制御手段は、
前記パケット受信処理において、前記ネットワークから受信したパケットがDHCPリリース応答パケットの場合、前記共用IPアドレス記憶手段および前記共用インターフェース情報記憶手段の記憶内容をクリアすると共に、前記第2のインターフェース手段毎に、当該DHCPリリース応答パケットの宛先MACアドレスを、当該第2のインターフェース手段の識別情報に対応付けられて前記端末MACアドレス記憶手段に記憶されているMACアドレスに変更して、当該第2のインターフェース手段から当該DHCPリリース応答パケットを出力する
ことを特徴とするパケット中継装置。 The packet relay device according to claim 5,
The relay control means includes
In the packet reception process, when the packet received from the network is a DHCP release response packet, the storage contents of the shared IP address storage unit and the shared interface information storage unit are cleared, and for each second interface unit, From the second interface means, the destination MAC address of the DHCP release response packet is changed to the MAC address stored in the terminal MAC address storage means in association with the identification information of the second interface means. A packet relay device that outputs the DHCP release response packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006315430A JP5023672B2 (en) | 2006-11-22 | 2006-11-22 | Packet relay device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006315430A JP5023672B2 (en) | 2006-11-22 | 2006-11-22 | Packet relay device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008131441A true JP2008131441A (en) | 2008-06-05 |
JP5023672B2 JP5023672B2 (en) | 2012-09-12 |
Family
ID=39556839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006315430A Expired - Fee Related JP5023672B2 (en) | 2006-11-22 | 2006-11-22 | Packet relay device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5023672B2 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002185639A (en) * | 2000-12-11 | 2002-06-28 | Matsushita Electric Ind Co Ltd | Internet telephone system |
JP2004048235A (en) * | 2002-07-10 | 2004-02-12 | Nakayo Telecommun Inc | Relay apparatus and connection method |
JP2005269457A (en) * | 2004-03-19 | 2005-09-29 | Sun Corp | Relay equipment |
-
2006
- 2006-11-22 JP JP2006315430A patent/JP5023672B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002185639A (en) * | 2000-12-11 | 2002-06-28 | Matsushita Electric Ind Co Ltd | Internet telephone system |
JP2004048235A (en) * | 2002-07-10 | 2004-02-12 | Nakayo Telecommun Inc | Relay apparatus and connection method |
JP2005269457A (en) * | 2004-03-19 | 2005-09-29 | Sun Corp | Relay equipment |
Also Published As
Publication number | Publication date |
---|---|
JP5023672B2 (en) | 2012-09-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
USRE47566E1 (en) | NAT traversal for mobile network devices | |
US7684397B2 (en) | Symmetric network address translation system using STUN technique and method for implementing the same | |
US8462800B2 (en) | Gateway device and port number assignment method | |
US20060056420A1 (en) | Communication apparatus selecting a source address | |
EP2449749B1 (en) | Method and apparatus for relaying packets | |
US20060187912A1 (en) | Method and apparatus for server-side NAT detection | |
CA2884683C (en) | Split network address translation | |
JP5051728B2 (en) | Method and system for transmitting data between nodes connected to different IP environments by assigning a fake address | |
US20100131631A1 (en) | Method for management of a secured transfer session through an address translation device, corresponding server and computer program | |
US20100023620A1 (en) | Access controller | |
JP5926164B2 (en) | High-speed distribution method and connection system for session border controller | |
JP2005269348A (en) | Communication system, and gateway unit | |
JP2008205676A (en) | Information processing system, information processor, information processing method and information processing program | |
JP5023672B2 (en) | Packet relay device | |
JP2004104357A (en) | Network system and communication method, information processing apparatus and method therefor, as well as program | |
JP4648436B2 (en) | Packet distribution device, communication system, packet processing method, and program | |
JP5054666B2 (en) | VPN connection device, packet control method, and program | |
JP4889620B2 (en) | IP packet relay method and gateway device in communication network | |
JP2007074059A (en) | Communication support apparatus, system, communication method, and computer program | |
JP5084716B2 (en) | VPN connection apparatus, DNS packet control method, and program | |
JP2008206081A (en) | Data relaying apparatus and data relaying method used for multi-homing communication system | |
KR20070061036A (en) | Apparatus and method for sharing media inter homenetworks | |
TWI385999B (en) | And a method of accessing the connection between the user side and the network device in the network system | |
WO2018142526A1 (en) | Relay device, communication system, and communication method | |
KR20030081840A (en) | METHOD FOR HOLDING A GLOBAL IP IN COMMON TO REALIZE A VoIP |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20091009 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111219 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111227 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120201 |
|
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: 20120522 |
|
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: 20120604 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150629 Year of fee payment: 3 |
|
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: 20150629 Year of fee payment: 3 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
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 |