JP2008131441A - Packet repeating apparatus - Google Patents

Packet repeating apparatus Download PDF

Info

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
Application number
JP2006315430A
Other languages
Japanese (ja)
Other versions
JP5023672B2 (en
Inventor
Takayasu Akashi
明石貴靖
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.)
Nakayo Telecommunications Inc
Original Assignee
Nakayo Telecommunications 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 Nakayo Telecommunications Inc filed Critical Nakayo Telecommunications Inc
Priority to JP2006315430A priority Critical patent/JP5023672B2/en
Publication of JP2008131441A publication Critical patent/JP2008131441A/en
Application granted granted Critical
Publication of JP5023672B2 publication Critical patent/JP5023672B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide technologies for enabling a network terminal using an application utilizing an IP address, to perform access using the same IP address as that of another network terminal. <P>SOLUTION: When a packet repeating apparatus 1 receives a packet from a LAN side interface section 12 and if the LAN side interface section 12 is a shared interface, the packet repeating apparatus 1 outputs the packet from a WAN side interface section 11. If not, the packet repeating apparatus 1 outputs the packet after changing a transmission source MAC address into a MAC address of an internet terminal accommodated in the shared interface. When receiving a packet from the WAN side interface section 11, the packet repeating apparatus 1 uses a MAC address of an internet terminal accommodated in the LAN side interface section 12 corresponding to a transmission source IP address as a destination MAC address and outputs the packet from the LAN side interface section 12. <P>COPYRIGHT: (C)2008,JPO&INPIT

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.

特開2006−101513号公報JP 2006-101513 A

ホームサーバがインターネット経由でコンテンツ配信サーバからコンテンツデータを取得し再生するコンテンツ配信サービス、および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 packet relay device 1 according to the present embodiment includes an ISP (Internet Services Provider) 5 having a DHCP (Dynamic Host Configuration Protocol) server function, a home server 2 that is an Internet terminal having a DHCP client function, a Web It is installed between the browser terminal 3.

ここで、ISP5は、WAN(Wide Area Network)9を介して、コンテンツ配信サーバ6およびWebサーバ7に接続している。ISP5は、ホームサーバ2およびWebブラウザ端末3にWAN9への接続サービスを提供する。   Here, the ISP 5 is connected to the content distribution server 6 and the Web server 7 via a WAN (Wide Area Network) 9. The ISP 5 provides a connection service to the WAN 9 to the home server 2 and the Web browser terminal 3.

ホームサーバ2は、LAN(Local Area Network)(LAN−A)8を介してパケット中継装置1に接続されている。ホームサーバ2は、所定のコンテンツ配信サーバ6にアクセスして、このコンテンツ配信サーバ6からコンテンツデータとして例えば映像データを取得して蓄積し、利用者の再生要求に応じて再生信号をテレビ受信機4に出力する。   The home server 2 is connected to the packet relay device 1 via a LAN (Local Area Network) (LAN-A) 8. The home server 2 accesses a predetermined content distribution server 6, acquires and accumulates, for example, video data as content data from the content distribution server 6, and sends a reproduction signal to the television receiver 4 in response to a user's reproduction request. Output to.

Webブラウザ端末3は、LAN−Aとは別のLAN(LAN−B)8を介してパケット中継装置1に接続されている。Webブラウザ端末3は、例えばパーソナルコンピュータであり、任意のWebサーバ7にアクセスして、このWebサーバ7からWebデータを取得し表示する。   The web browser terminal 3 is connected to the packet relay device 1 via a LAN (LAN-B) 8 different from the LAN-A. The web browser terminal 3 is a personal computer, for example, and accesses an arbitrary web server 7 to acquire and display web data from the web server 7.

そして、本実施の形態のパケット中継装置1は、ISP5と連携して、ホームサーバ2およびWebブラウザ端末3に同じ(共通の)IPアドレスを付与する。また、この同じIPアドレスが付与されたホームサーバ2およびWebブラウザ端末3と、WAN9(ISP5)との間を流れるパケットを中継する。   Then, the packet relay apparatus 1 of the present embodiment gives the same (common) IP address to the home server 2 and the Web browser terminal 3 in cooperation with the ISP 5. Also, the packet flowing between the home server 2 and the web browser terminal 3 to which the same IP address is assigned and the WAN 9 (ISP 5) is relayed.

図2は、図1に示すパケット中継装置1の概略機能ブロック図である。   FIG. 2 is a schematic functional block diagram of the packet relay device 1 shown in FIG.

図示するように、パケット中継装置1は、WAN側インターフェース部11と、LAN8毎に設けられた複数のLAN側インターフェース部12と、記憶部13と、中継制御部14と、を有する。   As illustrated, the packet relay apparatus 1 includes a WAN side interface unit 11, a plurality of LAN side interface units 12 provided for each LAN 8, a storage unit 13, and a relay control unit 14.

WAN側インターフェース部11は、WAN9のインターフェース制御機能を有し、ISP5を介して、WAN9に接続されたコンテンツ配信サーバ6、Webサーバ7とパケットを送受信する。   The WAN side interface unit 11 has an interface control function of the WAN 9 and transmits / receives packets to / from the content distribution server 6 and the web server 7 connected to the WAN 9 via the ISP 5.

LAN側インターフェース部12は、LAN8のインターフェース制御機能を有し、対応するLAN8(LAN−A、LAN−B)を介して、このLAN8に接続されたインターネット端末(ホームサーバ2、Webブラウザ端末3)を収容する。そして、収容したインターネット端末とパケットを送受信する。   The LAN-side interface unit 12 has an interface control function for the LAN 8, and is connected to the LAN 8 via the corresponding LAN 8 (LAN-A, LAN-B) (home server 2, Web browser terminal 3). To accommodate. The packet is transmitted / received to / from the accommodated Internet terminal.

記憶部13は、共用IPアドレス記憶部131と、共用インターフェース記憶部132と、ゲートウェイアドレス記憶部133と、端末MAC(Media Access Control)アドレス記憶部134と、振分情報記憶部135と、を有する。   The storage unit 13 includes a shared IP address storage unit 131, a shared interface storage unit 132, a gateway address storage unit 133, a terminal MAC (Media Access Control) address storage unit 134, and a distribution information storage unit 135. .

共用IPアドレス記憶部131は、ホームサーバ2およびWebブラウザ端末3が共用するIPアドレスを、共用IPアドレスとして記憶する。本実施の形態では、共用IPアドレスとして、ISP5がホームサーバ2およびWebブラウザ端末3のいずれかにリースしたIPアドレス(DHCPリースIPアドレスと呼ぶ)を用いている。   The shared IP address storage unit 131 stores an IP address shared by the home server 2 and the Web browser terminal 3 as a shared IP address. In this embodiment, an IP address leased to either the home server 2 or the web browser terminal 3 by the ISP 5 (referred to as a DHCP lease IP address) is used as the shared IP address.

共用インターフェース記憶部132は、いずれか1つのLAN側インターフェース部12の識別情報を、共用インターフェース情報として記憶する。本実施の形態では、共用インターフェース情報として、DHCPリースIPアドレスがリースされたインターネット端末(ホームサーバ2およびWebブラウザ端末3のいずれか)を収容するLAN側インターフェース部12の識別情報を用いている。   The shared interface storage unit 132 stores the identification information of any one of the LAN side interface units 12 as shared interface information. In this embodiment, the identification information of the LAN side interface unit 12 that accommodates the Internet terminal (either the home server 2 or the Web browser terminal 3) leased with the DHCP lease IP address is used as the shared interface information.

ゲートウェイアドレス記憶部133は、ホームサーバ2およびWebブラウザ端末3が共用するゲートウェイのIPアドレスを、ゲートウェイアドレスとして記憶する。なお、本実施の形態では記載していないが、ゲートウェイとはWAN上で、媒体やプロトコルが異なるデータを相互に変換して通信を行う装置のことであり、図1のISP5のシステム内に存在する。また、ゲートウェイアドレスとして、ISP5が、ホームサーバ2およびWebブラウザ端末3のいずれかに、DHCPリースIPアドレスと共にリースしたゲートウェイのIPアドレス(DHCPリースゲートウェイアドレスと呼ぶ)を用いている。   The gateway address storage unit 133 stores the gateway IP address shared by the home server 2 and the Web browser terminal 3 as a gateway address. Although not described in the present embodiment, a gateway is a device that performs communication by mutually converting data of different media and protocols on a WAN, and exists in the ISP5 system of FIG. To do. Also, as the gateway address, the IP address of the gateway leased together with the DHCP lease IP address by the ISP 5 to either the home server 2 or the Web browser terminal 3 (referred to as a DHCP lease gateway address) is used.

端末MACアドレス記憶部134は、LAN側インターフェース部12毎に、このLAN側インターフェース部12の識別情報と、このLAN側インターフェース部12が収容するインターネット端末(ホームサーバ2およびWebブラウザ端末3のいずれか)のMACアドレスと、を記憶する。   The terminal MAC address storage unit 134 includes, for each LAN side interface unit 12, identification information of the LAN side interface unit 12 and an Internet terminal (either the home server 2 or the web browser terminal 3) accommodated by the LAN side interface unit 12. ) MAC address.

図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 address storage unit 134. As illustrated, a record 1340 is registered in the terminal MAC address storage unit 134 for each LAN-side interface unit 12. The record 1340 includes a field 1341 for registering identification information of the LAN side interface unit 12 and a field 1342 for registering the MAC address of the Internet terminal accommodated by the LAN side interface unit 12. In the present embodiment, a record 1340 is registered for each of the LAN side interface unit 12 that accommodates the home server 2 and the LAN side interface unit 12 that accommodates the Web browser terminal 3.

振分情報記憶部135は、所定のサーバのみと通信を行うインターネット端末毎に、このインターネット端末を収容するLAN側インターフェース部12の識別情報と、この所定のサーバのIPアドレスと、を含む振分情報を記憶する。なお、識別情報および振分情報の内容は、例えばLAN側インターフェース部12のポート番号である。   The distribution information storage unit 135 includes, for each Internet terminal that communicates only with a predetermined server, the distribution information including the identification information of the LAN side interface unit 12 that accommodates the Internet terminal and the IP address of the predetermined server. Store information. The contents of the identification information and the distribution information are, for example, the port number of the LAN side interface unit 12.

図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 information storage unit 135. As shown in the figure, in the distribution information storage unit 135, a record 1350 is registered for each Internet terminal that communicates with only a predetermined server. The record 1350 has a field 1351 for registering identification information of the LAN-side interface unit 12 that accommodates the Internet terminal, and a field 1352 for registering the IP address of a predetermined server. In the present embodiment, a record 1350 is registered for the home server 2 that communicates only with the content distribution server 6. Then, in the field 1351 of this record 1350, identification information of the LAN side interface 12 that accommodates the content distribution server 6 is registered, and in the field 1352, the IP address of the content distribution server 6 is registered.

図2に戻って説明を続ける。中継制御部14は、LAN側インターフェース部12を介してインターネット端末から受信したパケットを、WAN側インターフェース部11を介してWAN9側に出力するパケット送信処理、およびWAN側インターフェース部11を介してWAN側9から受信したパケットを、LAN側インターフェース部12を介してインターネット端末に出力するパケット受信処理を行う。   Returning to FIG. 2, the description will be continued. The relay control unit 14 outputs a packet received from the Internet terminal via the LAN side interface unit 12 to the WAN 9 side via the WAN side interface unit 11 and the WAN side via the WAN side interface unit 11 A packet reception process is performed in which the packet received from 9 is output to the Internet terminal via the LAN-side interface unit 12.

図4は、パケット中継装置1の動作フローを説明するための図である。   FIG. 4 is a diagram for explaining an operation flow of the packet relay device 1.

中継制御部14は、パケットを受信すると(S1)、このパケットの送出元のインターフェース部を確認する(S2)。送出元のインターフェース部がLAN側インターフェース部12(LAN−A側およびLAN−B側のいずれか)の場合は、後述するパケット送信処理を実行する(S3)。一方、送出元のインターフェース部がWAN側インターフェース部11の場合は、後述するパケット受信処理を実行する(S4)。   When the relay control unit 14 receives the packet (S1), the relay control unit 14 confirms the interface unit that has transmitted the packet (S2). If the source interface unit is the LAN side interface unit 12 (either the LAN-A side or the LAN-B side), a packet transmission process described later is executed (S3). On the other hand, when the source interface unit is the WAN side interface unit 11, a packet reception process described later is executed (S4).

図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 relay control unit 14 checks whether the shared interface information is registered in the shared interface storage unit 132. If registered (YES in S301), the process proceeds to S302. If not registered (NO in S301), the process proceeds to S307.

S302において、中継制御部14は、共用インターフェース記憶部132に記憶されている共用インターフェース情報が、パケット送信元のLAN側インターフェース部12(LAN−A側およびLAN−B側のいずれか)と一致するか否かを調べる。一致する場合(S302でYES)はS303に進み、登録されていない場合(S302でNO)はS307に進む。   In S302, the relay control unit 14 matches the shared interface information stored in the shared interface storage unit 132 with the LAN side interface unit 12 (either the LAN-A side or the LAN-B side) that is the packet transmission source. Check whether or not. If they match (YES in S302), the process proceeds to S303, and if not registered (NO in S302), the process proceeds to S307.

S303において、中継制御部14は、受信パケットのヘッダ等に格納された情報に基づき、この受信パケットが、DHCPリクエスト等のDHCPメッセージを格納したDHCPパケットであるか否かを調べる。DHCPパケットである場合(S303でYES)はS304に進み、DHCPパケットでない場合(S303でNO)はS306に進む。   In S303, the relay control unit 14 checks whether or not the received packet is a DHCP packet storing a DHCP message such as a DHCP request based on information stored in a header or the like of the received packet. If it is a DHCP packet (YES in S303), the process proceeds to S304, and if it is not a DHCP packet (NO in S303), the process proceeds to S306.

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 relay control unit 14 uses the shared IP address stored in the shared IP address storage unit 131 and the gateway address stored in the gateway address storage unit 133 by the ISP server 5 that is a DHCP server as a packet transmission source. DHCP lease IP address leased to any Internet terminal (either the home server 2 or the Web browser terminal 3), and a DHCP message (for example, DHCP) storing these DHCP lease IP address and DHCP lease gateway address as the DHCP lease gateway address A DHCP request ACK message, which is a response message to a DHCP request that requests the server to lease an IP address, is generated. Then, a DHCP packet storing the generated DHCP message is transmitted to the Internet terminal that is the packet transmission source via the LAN side interface unit 12 that is the packet transmission source. Thereafter, the process proceeds to S305.

S305において、中継制御部14は、パケット送信元のLAN側インターフェース部12の識別情報に対応付けて、このパケットの送信元MACアドレスを、端末MACアドレス記憶部134に登録する。あるいは、パケット送信元のLAN側インターフェース部12の識別情報に対応付けられて端末MACアドレス記憶部134に登録されているMACアドレスを、このパケットの送信元MACアドレスに更新する。   In S305, the relay control unit 14 registers the transmission source MAC address of the packet in the terminal MAC address storage unit 134 in association with the identification information of the LAN side interface unit 12 of the packet transmission source. Alternatively, the MAC address registered in the terminal MAC address storage unit 134 in association with the identification information of the LAN side interface unit 12 of the packet transmission source is updated to the transmission source MAC address of this packet.

S306において、中継制御部14は、共用インターフェース記憶部132に記憶されている共用インターフェース情報に対応付けられて端末MACアドレス記憶部134に記憶されているMACアドレスを特定する。そして、受信パケットの送信元MACアドレスを、この特定したMACアドレスに変更する。その後、S307に進む。   In S <b> 306, the relay control unit 14 specifies a MAC address stored in the terminal MAC address storage unit 134 in association with the shared interface information stored in the shared interface storage unit 132. Then, the source MAC address of the received packet is changed to the specified MAC address. Thereafter, the process proceeds to S307.

S307において、中継制御部14は、WAN側インターフェース部11を介してWAN9側(ISP5)に、受信パケットを送信する。   In S307, the relay control unit 14 transmits the received packet to the WAN 9 side (ISP 5) via the WAN side interface unit 11.

図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 relay control unit 14 checks whether the data stored in the received packet is a DHCP request ACK message. If it is a DHCP request ACK message (YES in S401), a request ACK reception process (S406) described later is executed. If it is not a DHCP request ACK message (NO in S401), the process proceeds to S402.

S402において、中継制御部14は、受信パケットに格納されているデータが、DHCPサーバにIPアドレスのリリースを要求するDHCPリリースに対する応答メッセージであるDHCPリリースACKメッセージであるか否かを調べる。DHCPリリースACKメッセージである場合(S402でYES)は、後述するリリースACK受信処理(S407)を実行する。DHCPリリースACKメッセージでない場合(S402でNO)は、S403に進む。   In S402, the relay control unit 14 checks whether or not the data stored in the received packet is a DHCP release ACK message that is a response message to a DHCP release requesting the DHCP server to release an IP address. If it is a DHCP release ACK message (YES in S402), a later-described release ACK reception process (S407) is executed. If it is not a DHCP release ACK message (NO in S402), the process proceeds to S403.

S403において、中継制御部14は、振分情報記憶部135に記憶されている振分情報を用いて、受信パケットの振分先となるLAN側インターフェース部12を決定する。具体的には、フィールド1352に受信パケットの送信元IPアドレスが登録されているレコード1350を、振分情報記憶部135から検索する。そして、検索したレコード1350のフィールド1351に登録されている識別情報を持つLAN側インターフェース部12を、受信パケットの振分先に決定する。なお、レコード1350が検索できなかった場合は、所定のLAN側インターフェース部12を受信パケットの振分先に決定する。その後、S404に進む。   In S403, the relay control unit 14 uses the distribution information stored in the distribution information storage unit 135 to determine the LAN-side interface unit 12 that is the distribution destination of the received packet. Specifically, the record 1350 in which the source IP address of the received packet is registered in the field 1352 is searched from the distribution information storage unit 135. Then, the LAN side interface unit 12 having the identification information registered in the field 1351 of the searched record 1350 is determined as the distribution destination of the received packet. When the record 1350 cannot be searched, the predetermined LAN side interface unit 12 is determined as a distribution destination of the received packet. Thereafter, the process proceeds to S404.

本実施の形態では、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 record 1350 in which the identification information of the LAN side interface unit 12 connected to the LAN-A is registered in the field 1351 and the IP address of the content distribution server 6 is registered in the field 1352 is allocated. It is registered in the minute information storage unit 135. As the predetermined LAN side interface unit 12, the LAN side interface unit 12 connected to the LAN-B is set. As a result, packets transmitted from the content distribution server 6 are relayed to the LAN-A side, and packets transmitted from other servers (such as the Web server 7) are relayed to the LAN-B side.

S404において、中継制御部14は、振分先に決定されたLAN側インターフェース部12の識別情報に対応付けられて端末MACアドレス記憶部134に記憶されているMACアドレスを特定する。そして、受信パケットの宛先MACアドレスを、特定したMACアドレスに変更する。その後、S405に進む。なお、この際、受信パケットの宛先MACアドレスと特定したMACアドレスとが同じである場合は、アドレスを変更する必要がないので、そのまま送信しても良い。   In S404, the relay control unit 14 specifies the MAC address stored in the terminal MAC address storage unit 134 in association with the identification information of the LAN-side interface unit 12 determined as the distribution destination. Then, the destination MAC address of the received packet is changed to the specified MAC address. Then, it progresses to S405. At this time, if the destination MAC address of the received packet is the same as the specified MAC address, it is not necessary to change the address, and the packet may be transmitted as it is.

S405において、中継制御部14は、振分先に決定されたLAN側インターフェース部12から受信パケットを送出する。   In step S405, the relay control unit 14 transmits a received packet from the LAN-side interface unit 12 determined as a distribution destination.

図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 relay control unit 14 identifies the identification information of the LAN side interface unit 12 stored in the terminal MAC address storage unit 134 in association with the destination MAC address of the received packet. Then, it progresses to S4062.

S4062において、中継制御部14は、特定したLAN側インターフェース部の識別情報を共用インターフェース情報に決定し、この識別情報を共用インターフェース記憶部132に登録する。その後、S4063に進む。   In S4062, the relay control unit 14 determines the identification information of the specified LAN side interface unit as the shared interface information, and registers this identification information in the shared interface storage unit 132. Then, it progresses to S4063.

S4063において、中継制御部14は、受信パケットに格納されているDHCPリクエストACKメッセージに記述されているDHCPリースIPアドレスを共用IPアドレスに決定する。そして、このDHCPリースIPアドレスを共用IPアドレス記憶部131に登録する。その後、S4064に進む。   In S4063, the relay control unit 14 determines the DHCP lease IP address described in the DHCP request ACK message stored in the received packet as a shared IP address. Then, the DHCP lease IP address is registered in the shared IP address storage unit 131. Thereafter, the process proceeds to S4064.

S4064において、中継制御部14は、受信パケットに格納されているDHCPリクエストACKメッセージに記述されているDHCPリースゲートウェイアドレスをゲートウェイアドレスに決定する。そして、このDHCPリースゲートウェイアドレスをゲートウェイアドレス記憶部133に登録する。その後、S4065に進む。   In S4064, the relay control unit 14 determines the DHCP lease gateway address described in the DHCP request ACK message stored in the received packet as the gateway address. Then, the DHCP lease gateway address is registered in the gateway address storage unit 133. Thereafter, the process proceeds to S4065.

S4065において、中継制御部14は、受信パケットの宛先MACアドレスに対応付けられて端末MACアドレス記憶部134に記憶されている識別情報を特定する。そして、特定した識別情報を持つLAN側インターフェース部12を、この受信パケットの振分先に決定する。その後、S4066に進む。   In S4065, the relay control unit 14 specifies identification information stored in the terminal MAC address storage unit 134 in association with the destination MAC address of the received packet. Then, the LAN side interface unit 12 having the specified identification information is determined as a distribution destination of the received packet. Thereafter, the process proceeds to S4066.

S4066において、中継制御部14は、振分先に決定されたLAN側インターフェース部12から受信パケットを送出する。   In S4066, the relay control unit 14 transmits a received packet from the LAN-side interface unit 12 determined as a distribution destination.

図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 relay control unit 14 clears the registered content of the shared interface storage unit 132, and the process proceeds to S4072.

S4072において、中継制御部14は、共用IPアドレス記憶部131の登録内容をクリアし、S4073に進む。   In S4072, the relay control unit 14 clears the registered content of the shared IP address storage unit 131, and the process proceeds to S4073.

S4073において、中継制御部14は、ゲートウェイアドレス記憶部133の登録内容をクリアし、S4074に進む。   In S4073, the relay control unit 14 clears the registered content of the gateway address storage unit 133, and the process proceeds to S4074.

S4074において、中継制御部14は、受信パケットの宛先MACアドレスを変更して、各インターネット端末宛ての受信パケットのコピーを生成する。具体的には、端末MACアドレス記憶部134に記憶されているMACアドレス毎に、宛先MACアドレスをこのMACアドレスに変更した受信パケットのコピーを生成する。それから、S4075に進む。   In S4074, the relay control unit 14 changes the destination MAC address of the received packet, and generates a copy of the received packet addressed to each Internet terminal. Specifically, for each MAC address stored in the terminal MAC address storage unit 134, a copy of the received packet in which the destination MAC address is changed to this MAC address is generated. Then, the process proceeds to S4075.

S4075において、中継制御部14は、生成した受信パケットのコピー各々を、このコピーの宛先MACアドレスに対応付けられて端末MACアドレス記憶部134に登録されている識別情報を持つLAN側インターフェース部12から送出する。   In S4075, the relay control unit 14 sends each copy of the generated received packet from the LAN-side interface unit 12 having identification information associated with the destination MAC address of this copy and registered in the terminal MAC address storage unit 134. Send it out.

以上、本発明の一実施の形態を説明した。   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 packet relay device 1 includes a WAN side interface unit 11 connected to the WAN 9 side and a LAN that accommodates a corresponding Internet terminal for each Internet terminal (either the home server 2 or the Web browser terminal 3). A side interface unit 12 and a distribution information storage unit 135. The distribution information storage unit 135 stores the correspondence between the identification information of the LAN side interface unit 12 and the IP address of the communication partner of the Internet terminal accommodated by the LAN side interface unit 12 as distribution information.

そして、パケット中継装置1は、いずれかのLAN側インターフェース部12を介してインターネット端末からパケットを受信した場合に、このLAN側インターフェース部12が共用インターフェースに設定されているならば、受信したパケットをWAN側インターフェース部11から出力する。このLAN側インターフェース部12が共用インターフェースに設定されていないならば、受信したパケットの送信元MACアドレスを、共用インターフェースに設定されているLAN側インターフェース部12が収容するインターネット端末のMACアドレスに変更してから、この受信したパケットをWAN側インターフェース部11から出力する。   When the packet relay device 1 receives a packet from an Internet terminal via any one of the LAN side interface units 12, if the LAN side interface unit 12 is set as a shared interface, the packet relay device 1 Output from the WAN side interface unit 11. If the LAN side interface unit 12 is not set as a shared interface, the source MAC address of the received packet is changed to the MAC address of the Internet terminal accommodated by the LAN side interface unit 12 set as the shared interface. Then, the received packet is output from the WAN side interface unit 11.

また、WAN側インターフェース部11を介してWAN9側からパケットを受信した場合に、受信パケットの送信元IPアドレスに対応付けられて振分情報記憶部135に記憶されている識別情報を特定し、特定した識別情報を持つLAN側インターフェース部12が収容するインターネット端末のMACアドレスを、受信したパケットの宛先MACアドレスとして、この受信パケットを特定した識別情報を持つLAN側インターフェース部12から出力する。   Further, when a packet is received from the WAN 9 side via the WAN side interface unit 11, the identification information stored in the distribution information storage unit 135 in association with the transmission source IP address of the received packet is specified and specified. The MAC address of the Internet terminal accommodated in the LAN side interface unit 12 having the identification information is output from the LAN side interface unit 12 having the identification information specifying the received packet as the destination MAC address of the received packet.

したがって、本実施の形態によれば、WAN9で利用可能なIPアドレスがインターネット端末に直接付与されるので、ホームサーバ2がIPアドレスをアドレス情報として利用するアプリケーションレイヤのプロトコル、つまりNATおよびNAPTを利用できないアプリケーションレイヤのプロトコルを用いるインターネット端末である場合でも、他のインターネット端末と同じIPアドレスを用いてWAN9にアクセスできる。   Therefore, according to the present embodiment, an IP address that can be used in the WAN 9 is directly assigned to the Internet terminal, so that the home layer 2 uses an application layer protocol that uses the IP address as address information, that is, NAT and NAPT. Even in the case of an Internet terminal using an application layer protocol that cannot be performed, the WAN 9 can be accessed using the same IP address as other Internet terminals.

また、本実施の形態において、パケット中継装置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 packet relay apparatus 1 receives a packet from the WAN 9 side via the WAN side interface unit 11, the packet relay apparatus 1 is associated with the transmission source IP address of the received packet in the LAN side interface unit 12. If the identification information is not stored in the distribution information storage unit 135, the MAC stored in the terminal MAC address storage unit 134 in association with the identification information of the LAN side interface unit 12 connected to the LAN-B. Identify the address. Then, the destination MAC address of the received packet is changed to the specified MAC address, and the received packet is output from the LAN side interface connected to LAN-B.

したがって、本実施の形態によれば、特定のサーバ(コンテンツ配信サーバ6)にアクセスするホームサーバ2、および不特定のサーバ(Webサーバ7)にアクセスするWebブラウザ端末3が、同じIPアドレスを用いることができる。   Therefore, according to the present embodiment, the home server 2 that accesses a specific server (content distribution server 6) and the Web browser terminal 3 that accesses an unspecified server (Web server 7) use the same IP address. be able to.

また、本実施の形態において、パケット中継装置1は、インターネット端末から受信したパケットがDHCPリクエスト等のDHCPメッセージを格納している場合、共用IPアドレス記憶部131に共用IPアドレスが記憶されているならば、この共用IPアドレスが記述されたDHCPリクエストACKメッセージを格納したパケットを、このインターネット端末に通知し、共用IPアドレス記憶部131に共用IPアドレスが記憶されていないならば、WAN側インターフェース部11から受信パケットを出力する。   In the present embodiment, the packet relay apparatus 1 is configured such that when the packet received from the Internet terminal stores a DHCP message such as a DHCP request, the shared IP address storage unit 131 stores the shared IP address. For example, a packet storing the DHCP request ACK message in which the shared IP address is described is notified to the Internet terminal, and if the shared IP address is not stored in the shared IP address storage unit 131, the WAN side interface unit 11 The received packet is output from.

また、パケット中継装置1は、WAN9側から受信したパケットがDHCPリクエストACKメッセージを格納している場合、このDHCPリクエストACKメッセージに記述されているDHCPリースIPアドレスを、共用IPアドレスとして共用IPアドレス記憶部131に記憶すると共に、受信パケットの宛先MACアドレスに対応付けられて端末MACアドレス記憶部134に記憶されている識別情報を、共用インターフェース情報として共用インターフェース記憶部132に記憶する。そして、この受信したパケットを、この識別情報を持つLAN側インターフェース部12から出力する。   Further, when the packet received from the WAN 9 side stores the DHCP request ACK message, the packet relay device 1 stores the DHCP lease IP address described in the DHCP request ACK message as a shared IP address. The identification information stored in the unit 131 and associated with the destination MAC address of the received packet and stored in the terminal MAC address storage unit 134 is stored in the shared interface storage unit 132 as shared interface information. Then, the received packet is output from the LAN side interface unit 12 having this identification information.

また、パケット中継装置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 WAN 9 side stores the DHCP release ACK message, the packet relay device 1 clears the storage contents of the shared IP address storage unit 131 and the shared interface storage unit 132, and the LAN side interface unit. Every 12th, a copy of the received packet is generated, and the destination MAC address of this copy is changed to the MAC address stored in the terminal MAC address storage unit 134 in association with the identification information of the target LAN side interface unit 12. To do. Then, this copy is output from the target LAN side interface unit 12.

したがって、本実施の形態によれば、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 WAN 9 side.

なお、本発明は上記の実施の形態に限定されるものではなく、その要旨の範囲内で数々の変形が可能である。例えば、パケット中継装置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 packet relay apparatus 1 may be executed by hardware by an integrated logic IC such as ASIC (Application Specific Integrated Circuit) or FPGA (Field Programmable Gate Array), or may be software by a computer such as a DSP. It may be executed automatically.

また、本実施の形態では、特定のサーバにアクセスするインターネット端末として、ホームサーバ2を例にとり説明したが、本発明はこれに限定されない。このようなインターネット端末として、ホームサーバ2の他に、特定のSIPサーバのみと通信を行うSIPフォン(IP電話端末)等がある。   In this embodiment, the home server 2 has been described as an example of an Internet terminal that accesses a specific server. However, the present invention is not limited to this. As such an Internet terminal, there is a SIP phone (IP telephone terminal) that communicates only with a specific SIP server in addition to the home server 2.

また、本実施の形態において、特定のサーバにアクセスするインターネット端末を複数設けてもよい。この場合、パケット中継装置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 side interface unit 12 is prepared for each Internet terminal in the packet relay device 1, and the identification information of the LAN side interface unit 12 accommodating this Internet terminal is provided for each Internet terminal accessing a specific server. A record 1350 registered in the field 1351 and registered in the field 1352 with the address of the server accessed by the Internet terminal is stored in the distribution information storage unit 135.

また、本実施の形態では、Webブラウザ端末3をパケット中継装置1にLAN−Bを介して接続しているが、ISP5に対してはDHCPクライアントとして機能し、Webブラウザ端末3に対してはDHCPサーバとして機能するルータを、LAN−Bを介してパケット中継装置1に接続し、このルータにWebブラウザ端末3を複数接続するようにしてもよい。   In the present embodiment, the Web browser terminal 3 is connected to the packet relay apparatus 1 via LAN-B, but functions as a DHCP client for the ISP 5 and DHCP for the Web browser terminal 3. A router functioning as a server may be connected to the packet relay device 1 via LAN-B, and a plurality of Web browser terminals 3 may be connected to this router.

また、本実施の形態では、本発明をパケット中継装置として実施しているが、ホームサーバなどの常時電源が投入されている装置に本発明を組み込むようにしてもよい。   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は、本発明の一実施の形態が適用されたパケット中継装置を含むネットワークシステムの概略構成図である。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. 図2は、図1に示すパケット中継装置1の概略機能ブロック図である。FIG. 2 is a schematic functional block diagram of the packet relay device 1 shown in FIG. 図3(A)は、端末MACアドレス記憶部134の登録内容を模式的に表した図であり、図3(B)は、振分情報記憶部135の登録内容を模式的に表した図である。FIG. 3A is a diagram schematically showing the registration contents of the terminal MAC address storage unit 134, and FIG. 3B is a diagram schematically showing the registration contents of the distribution information storage unit 135. is there. 図4は、パケット中継装置1の動作フローを説明するための図である。FIG. 4 is a diagram for explaining an operation flow of the packet relay device 1. 図5は、図4に示すパケット送信処理(S3)を説明するためのフロー図である。FIG. 5 is a flowchart for explaining the packet transmission process (S3) shown in FIG. 図6は、図4に示すパケット受信処理(S4)を説明するためのフロー図である。FIG. 6 is a flowchart for explaining the packet reception process (S4) shown in FIG. 図7は、図6に示すリクエストACK受信処理(S406)を説明するためのフロー図である。FIG. 7 is a flowchart for explaining the request ACK reception process (S406) shown in FIG. 図8は、図6に示すリリースACK受信処理(S407)を説明するためのフロー図である。FIG. 8 is a flowchart for explaining the release ACK reception process (S407) shown in FIG.

符号の説明Explanation of symbols

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: Web browser terminal 3, 4: TV, 5: ISP, 6: content distribution server, 7: Web server, 8: LAN, 9: WAN, 11: WAN side interface Unit: 12: LAN side interface unit, 13: storage unit, 14: relay control unit, 131: shared IP address storage unit, 132: shared interface storage unit, 133: gateway address storage unit, 134: terminal MAC address storage unit, 135: Distribution information storage unit

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.
請求項1に記載のパケット中継装置であって、
前記中継制御手段は、
前記パケット受信処理において、前記ネットワークから受信したパケットの送信元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.
請求項1又は2に記載のパケット中継装置であって、
前記振分情報記憶手段に識別情報が記憶されている前記第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.
請求項1乃至3のいずれか一項に記載のパケット中継装置であって、
前記ネットワークには、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.
請求項4に記載のパケット中継装置であって、
前記中継制御手段は、
前記パケット送信処理において、前記ネットワーク端末から受信したパケットが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.
請求項5に記載のパケット中継装置であって、
前記中継制御手段は、
前記パケット受信処理において、前記ネットワークから受信したパケットが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.
JP2006315430A 2006-11-22 2006-11-22 Packet relay device Expired - Fee Related JP5023672B2 (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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