JP5874486B2 - COMMUNICATION SYSTEM, PORTABLE TERMINAL, RELAY DEVICE, AND COMMUNICATION CONTROL METHOD - Google Patents

COMMUNICATION SYSTEM, PORTABLE TERMINAL, RELAY DEVICE, AND COMMUNICATION CONTROL METHOD Download PDF

Info

Publication number
JP5874486B2
JP5874486B2 JP2012070362A JP2012070362A JP5874486B2 JP 5874486 B2 JP5874486 B2 JP 5874486B2 JP 2012070362 A JP2012070362 A JP 2012070362A JP 2012070362 A JP2012070362 A JP 2012070362A JP 5874486 B2 JP5874486 B2 JP 5874486B2
Authority
JP
Japan
Prior art keywords
packet
ipv6
network
identification information
ipv4
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2012070362A
Other languages
Japanese (ja)
Other versions
JP2013201731A (en
Inventor
雅幸 大野
雅幸 大野
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2012070362A priority Critical patent/JP5874486B2/en
Publication of JP2013201731A publication Critical patent/JP2013201731A/en
Application granted granted Critical
Publication of JP5874486B2 publication Critical patent/JP5874486B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、通信システム、携帯端末、中継装置及び通信制御方法に関する。   The present invention relates to a communication system, a portable terminal, a relay device, and a communication control method.

従来、WAN(Wide Area Network)等の外部ネットワークに接続する携帯電話等の携帯端末と、LAN(Local Area Network)等の内部ネットワークに接続する家電製品等の電子機器との間の通信を中継装置が中継する通信システムがある。中継装置は、ゲートウェイ(GW:Gate Way)とも呼ばれる。このような通信システムでは、ネットワーク上の通信の相手先を識別する識別情報としてIPv4(Internet Protocol version 4)アドレスを利用していたが、近年のネットワークの大規模化に伴って、IPv4アドレスの枯渇が問題となっていた。   Conventionally, a relay device for communication between a portable terminal such as a mobile phone connected to an external network such as a WAN (Wide Area Network) and an electronic device such as a home appliance connected to an internal network such as a LAN (Local Area Network) There is a communication system that relays. The relay device is also called a gateway (GW). In such a communication system, an IPv4 (Internet Protocol version 4) address is used as identification information for identifying a communication partner on the network. However, with the recent increase in the scale of networks, the IPv4 address is depleted. Was a problem.

これに対して、最近の通信システムでは、IPv4アドレスに代わる次世代の識別情報として開発されたIPv6(Internet Protocol version 6)アドレスを利用したネットワークが普及しつつある。ただし、IPv4アドレスを利用したネットワークを、IPv6アドレスを利用するものに直ちに移行することは困難であり、IPv4アドレスとIPv6アドレスとが共存するネットワーク環境が発生することが想定される。例えば、IPv6アドレスを利用したWAN等の外部ネットワーク(以下「IPv6ネットワーク」という)と、IPv4アドレスを利用したLAN等の内部ネットワーク(以下「IPv4ネットワーク」という)とが共存するネットワーク環境が想定される。IPv6ネットワークとIPv4ネットワークとが共存したネットワーク環境では、IPv6ネットワークからIPv4ネットワークへの接続を可能とすることが望まれる。   On the other hand, in recent communication systems, networks using IPv6 (Internet Protocol version 6) addresses developed as next-generation identification information instead of IPv4 addresses are becoming widespread. However, it is difficult to immediately migrate a network using an IPv4 address to one using an IPv6 address, and it is assumed that a network environment in which the IPv4 address and the IPv6 address coexist will occur. For example, a network environment in which an external network such as a WAN using an IPv6 address (hereinafter referred to as “IPv6 network”) and an internal network such as a LAN using an IPv4 address (hereinafter referred to as “IPv4 network”) is assumed. . In a network environment in which an IPv6 network and an IPv4 network coexist, it is desirable to enable connection from the IPv6 network to the IPv4 network.

IPv6ネットワークからIPv4ネットワークへの接続方式としては、ポート転送方式と呼ばれる技術が知られている。このポート転送方式では、ポート番号と転送先のIPv4アドレスとの対応関係を表す静的IPマスカレード設定テーブルを中継装置となるGWのメモリに保持する。ポート転送方式では、IPv6ネットワーク側のIPv6アドレスを宛先とし、かつ、ポート番号が静的IPマスカレード設定テーブルのエントリと一致するパケットを受信したGWが、同エントリの対応するIPv4アドレスに対してパケットを転送する。これにより、GWがIPv6ネットワークからIPv4ネットワークへの通信を中継することができる。   As a connection method from the IPv6 network to the IPv4 network, a technique called a port transfer method is known. In this port forwarding method, a static IP masquerade setting table representing the correspondence between port numbers and forwarding destination IPv4 addresses is held in the memory of the GW serving as a relay device. In the port forwarding method, a GW that receives a packet whose destination is an IPv6 address on the IPv6 network side and whose port number matches an entry in the static IP masquerade setting table sends a packet to the corresponding IPv4 address of the entry. Forward. Thereby, the GW can relay communication from the IPv6 network to the IPv4 network.

特開2004−254203号公報JP 2004-254203 A

しかしながら、上記したポート転送方式では、外部ネットワークから内部ネットワークへの通信を中継することができるものの、GWのメモリ規模が増大するという問題がある。   However, although the port transfer method described above can relay communication from the external network to the internal network, there is a problem that the memory scale of the GW increases.

具体的には、ポート転送方式では、ポート番号と転送先のIPv4アドレスとの対応関係をGWの静的IPマスカレード設定テーブルに事前に登録するため、静的IPマスカレード設定テーブルの容量だけGWのメモリ規模が増大する。また、IPv4アドレスを持つ転送先の電子機器の数が増加するほど、ポート番号と転送先のIPv4アドレスとの対応関係の数、すなわち、静的IPマスカレード設定テーブルのエントリ数が増大するため、GWのメモリ規模の更なる増大を招く。   Specifically, in the port forwarding method, the correspondence between the port number and the IPv4 address of the forwarding destination is registered in advance in the static IP masquerade setting table of the GW. Scale increases. Further, as the number of transfer destination electronic devices having IPv4 addresses increases, the number of correspondences between port numbers and transfer destination IPv4 addresses, that is, the number of entries in the static IP masquerade setting table increases. This further increases the memory size.

開示の技術は、上記に鑑みてなされたものであって、中継装置のメモリ規模の増大を抑えつつ、外部ネットワークから内部ネットワークへの通信を中継することができる通信システム、携帯端末、中継装置及び通信制御方法を提供することを目的とする。   The disclosed technology has been made in view of the above, and is capable of relaying communication from an external network to an internal network while suppressing an increase in the memory size of the relay device, a mobile terminal, a relay device, and An object is to provide a communication control method.

本願の開示する通信システムは、一つの態様において、第一のネットワークに接続する携帯端末と第二のネットワークに接続する電子機器との間の通信を中継装置が中継する通信システムである。前記携帯端末は、取得部と送信部とを備える。取得部は、前記第二のネットワークで前記携帯端末を識別する第二の携帯端末識別情報と、前記第二のネットワークで前記電子機器を識別する電子機器識別情報とを取得する。送信部は、前記第一のネットワークで前記携帯端末を識別する第一の携帯端末識別情報を送信元に設定するとともに、前記第二の携帯端末識別情報及び前記電子機器識別情報を含む第一のパケットを、前記第一のネットワークを介して前記中継装置に送信する。前記中継装置は、格納部と転送部とを備える。格納部は、前記携帯端末から送信された前記第一のパケットを受信した場合に、前記第一のパケットの送信元に設定された前記第一の携帯端末識別情報と、前記第一のパケットに含まれる前記第二の携帯端末識別情報とを対応付けて変換テーブルに格納する。転送部は、前記変換テーブルに格納された前記第二の携帯端末識別情報を送信元に設定し、前記パケットに含まれる前記電子機器識別情報を宛先に設定した第二のパケットを、前記第二のネットワークを介して前記電子機器に転送する。   In one aspect, the communication system disclosed in the present application is a communication system in which a relay device relays communication between a mobile terminal connected to a first network and an electronic device connected to a second network. The portable terminal includes an acquisition unit and a transmission unit. The acquisition unit acquires second mobile terminal identification information for identifying the mobile terminal in the second network and electronic device identification information for identifying the electronic device in the second network. The transmission unit sets first portable terminal identification information for identifying the portable terminal in the first network as a transmission source, and includes the second portable terminal identification information and the electronic device identification information. The packet is transmitted to the relay device via the first network. The relay device includes a storage unit and a transfer unit. When the storage unit receives the first packet transmitted from the mobile terminal, the storage unit includes the first mobile terminal identification information set as the transmission source of the first packet and the first packet. The second mobile terminal identification information included is associated and stored in the conversion table. The transfer unit sets the second mobile terminal identification information stored in the conversion table as a transmission source, and sets a second packet in which the electronic device identification information included in the packet is set as a destination. To the electronic device via the network.

本願の開示する通信システムの一つの態様によれば、中継装置のメモリ規模の増大を抑えつつ、外部ネットワークから内部ネットワークへの通信を中継することできるという効果を奏する。   According to one aspect of the communication system disclosed in the present application, it is possible to relay communication from the external network to the internal network while suppressing an increase in the memory size of the relay device.

図1は、実施例1に係る通信システムの構成を示す図である。FIG. 1 is a diagram illustrating the configuration of the communication system according to the first embodiment. 図2は、実施例1に係る携帯電話の構成を示す機能ブロック図である。FIG. 2 is a functional block diagram illustrating the configuration of the mobile phone according to the first embodiment. 図3は、IPv4アドレス管理テーブルのデータ構造の一例を示す図である。FIG. 3 is a diagram illustrating an example of the data structure of the IPv4 address management table. 図4は、IPv6アドレス管理テーブルのデータ構造の一例を示す図である。FIG. 4 is a diagram illustrating an example of the data structure of the IPv6 address management table. 図5は、GW情報管理テーブルのデータ構造の一例を示す図である。FIG. 5 is a diagram illustrating an example of a data structure of the GW information management table. 図6は、コードの内容の一例を示す図である。FIG. 6 is a diagram illustrating an example of the contents of a code. 図7は、実施例1に係るGWの構成を示す機能ブロック図である。FIG. 7 is a functional block diagram illustrating the configuration of the GW according to the first embodiment. 図8は、IPv6−IPv4アドレス変換テーブルのデータ構造の一例を示す図である。FIG. 8 is a diagram illustrating an example of a data structure of the IPv6-IPv4 address conversion table. 図9は、実施例1に係る携帯電話のハードウェア構成の一例を示す図である。FIG. 9 is a diagram illustrating an example of a hardware configuration of the mobile phone according to the first embodiment. 図10は、実施例1に係るGWのハードウェア構成の一例を示す図である。FIG. 10 is a diagram illustrating an example of a hardware configuration of the GW according to the first embodiment. 図11は、実施例1に係る通信システムの携帯電話がGWを介してLANのTVと通信する処理の処理手順の一例を示すシーケンス図である。FIG. 11 is a sequence diagram illustrating an example of a processing procedure of a process in which the mobile phone of the communication system according to the first embodiment communicates with the LAN TV via the GW. 図12は、実施例1のGWが実行するWAN側アドレス通知処理の処理手順を示すフローチャートである。FIG. 12 is a flowchart illustrating a processing procedure of WAN address notification processing executed by the GW according to the first embodiment. 図13は、実施例1の携帯電話が実行するIPv4/IPv6パケット送信処理の処理手順を示すフローチャートである。FIG. 13 is a flowchart illustrating a processing procedure of IPv4 / IPv6 packet transmission processing executed by the mobile phone according to the first embodiment. 図14は、実施例1に係る通信システムの携帯電話がWAN及びGWを介してLANのTVと通信する処理の処理手順の一例を示すシーケンス図である。FIG. 14 is a sequence diagram illustrating an example of a processing procedure of processing in which the mobile phone of the communication system according to the first embodiment communicates with the LAN TV via the WAN and the GW. 図15は、IPv6パケットのデータ構造の一例を示す図(その1)である。FIG. 15 is a diagram (part 1) illustrating an example of a data structure of an IPv6 packet. 図16は、実施例1のGWが実行するIPv4パケット転送処理の処理手順を示すフローチャートである。FIG. 16 is a flowchart illustrating a processing procedure of IPv4 packet transfer processing executed by the GW according to the first embodiment. 図17は、IPv4パケットのデータ構造の一例(その1)を示す図である。FIG. 17 is a diagram illustrating an example (part 1) of the data structure of the IPv4 packet. 図18は、IPv4パケットのデータ構造の一例(その2)を示す図である。FIG. 18 is a diagram illustrating an example (part 2) of the data structure of the IPv4 packet. 図19は、実施例1のGWが実行するIPv6パケット転送処理の処理手順を示すフローチャートである。FIG. 19 is a flowchart of the IPv6 packet transfer process performed by the GW according to the first embodiment. 図20は、IPv6パケットのデータ構造の一例を示す図(その2)である。FIG. 20 is a second diagram illustrating an exemplary data structure of an IPv6 packet. 図21は、実施例1のGWが実行するIPv4−IPv6アドレス削除処理の処理手順を示すフローチャートである。FIG. 21 is a flowchart illustrating the processing procedure of IPv4-IPv6 address deletion processing executed by the GW according to the first embodiment. 図22は、実施例2に係る通信システムの携帯電話がWAN及びGWを介してLANのTVと通信する処理の処理手順の一例を示すシーケンス図である。FIG. 22 is a sequence diagram illustrating an example of a processing procedure of a process in which the mobile phone of the communication system according to the second embodiment communicates with the LAN TV via the WAN and the GW. 図23は、実施例3に係る通信システムの携帯電話がGWを介してLANのTVと通信する処理の処理手順の一例を示すシーケンス図である。FIG. 23 is a sequence diagram illustrating an example of a processing procedure of a process in which the mobile phone of the communication system according to the third embodiment communicates with the LAN TV via the GW. 図24は、実施例3に係る通信システムの携帯電話がWAN及びGWを介してLANのTVと通信する処理の処理手順の一例を示すシーケンス図である。FIG. 24 is a sequence diagram illustrating an example of a processing procedure of a process in which the mobile phone of the communication system according to the third embodiment communicates with the LAN TV via the WAN and the GW. 図25は、IPv6パケットのデータ構造の一例を示す図(その3)である。FIG. 25 is a third diagram illustrating an exemplary data structure of an IPv6 packet. 図26は、IPv6−IPv4アドレス変換テーブルのデータ構造の他の例を示す図である。FIG. 26 is a diagram illustrating another example of the data structure of the IPv6-IPv4 address conversion table. 図27は、IPv6パケットのデータ構造の一例を示す図(その4)である。FIG. 27 is a fourth diagram illustrating an exemplary data structure of an IPv6 packet. 図28は、実施例4に係る通信システムの構成を示す図である。FIG. 28 is a diagram illustrating the configuration of the communication system according to the fourth embodiment. 図29は、実施例4に係る通信システムの携帯電話がWAN及びGWを介してLANのTVと通信する処理の処理手順の一例を示すシーケンス図である。FIG. 29 is a sequence diagram illustrating an example of a processing procedure of processing in which the mobile phone of the communication system according to the fourth embodiment communicates with the LAN TV via the WAN and the GW.

以下に、本願の開示する通信システム、携帯端末、中継装置及び通信制御方法の実施例を図面に基づいて詳細に説明する。なお、この実施例により開示技術が限定されるものではない。   Hereinafter, embodiments of a communication system, a mobile terminal, a relay device, and a communication control method disclosed in the present application will be described in detail based on the drawings. The disclosed technology is not limited by this embodiment.

まず、実施例1に係る通信システムの構成について説明する。図1は、実施例1に係る通信システムの構成を示す図である。図1に示すように、この通信システムは、IPv6ネットワーク1、キャリアネットワーク2、エリアネットワーク3、家庭内ネットワーク4、テレビ(TV:Television)5、携帯電話100及びGW200を有する。   First, the configuration of the communication system according to the first embodiment will be described. FIG. 1 is a diagram illustrating the configuration of the communication system according to the first embodiment. As shown in FIG. 1, the communication system includes an IPv6 network 1, a carrier network 2, an area network 3, a home network 4, a television (TV) 5, a mobile phone 100, and a GW 200.

IPv6ネットワーク1は、通信の相手先を識別する識別情報としてIPv6アドレスを利用するネットワークである。キャリアネットワーク2は、携帯電話100に各種の通信サービスを提供する通信事業者により運用されるネットワークであり、IPv6ネットワーク1と同様にIPv6アドレスを利用するものである。エリアネットワーク3は、キャリアネットワーク2に所属し、IPv6ネットワーク1及びキャリアネットワーク2と同様にIPv6アドレスを利用する基地局群等である。これらIPv6ネットワーク1、キャリアネットワーク2及びエリアネットワーク3は、外部ネットワークの一種であるWAN10を形成する。WAN10は、第一のネットワークの一例である。   The IPv6 network 1 is a network that uses an IPv6 address as identification information for identifying a communication partner. The carrier network 2 is a network operated by a telecommunications carrier that provides various communication services to the mobile phone 100 and uses an IPv6 address in the same manner as the IPv6 network 1. The area network 3 is a base station group that belongs to the carrier network 2 and uses an IPv6 address in the same manner as the IPv6 network 1 and the carrier network 2. The IPv6 network 1, the carrier network 2, and the area network 3 form a WAN 10 that is a kind of external network. The WAN 10 is an example of a first network.

家庭内ネットワーク4は、GW200とTV5とを仲介する家庭内のネットワークである。TV5は、IPv4アドレスを利用するIPv4プロトコルスタックを実装した電子機器であり、家庭内ネットワーク4に接続している。これら家庭内ネットワーク4及びTV5は、内部ネットワークの一種であるLAN20を形成する。LAN20は、第二のネットワークの一例である。なお、図1では、説明の簡素化のために図示を省略したが、家庭内ネットワーク4にはTV5以外の他の電子機器も接続しているものとする。   The home network 4 is a home network that mediates between the GW 200 and the TV 5. The TV 5 is an electronic device equipped with an IPv4 protocol stack that uses an IPv4 address, and is connected to the home network 4. The home network 4 and the TV 5 form a LAN 20 that is a kind of internal network. The LAN 20 is an example of a second network. Although illustration is omitted in FIG. 1 for simplification of explanation, it is assumed that an electronic device other than the TV 5 is also connected to the home network 4.

携帯電話100は、WAN10のエリアネットワーク3と無線により接続し、WAN10及び後述のGW200を介して、LAN20のTV5を操作する。また、携帯電話100は、GW200と無線により接続し、GW200を介して、LAN20のTV5を操作することもできる。携帯電話100は、携帯端末の一例である。   The cellular phone 100 is wirelessly connected to the area network 3 of the WAN 10 and operates the TV 5 of the LAN 20 via the WAN 10 and a GW 200 described later. The mobile phone 100 can also be connected to the GW 200 wirelessly and operate the TV 5 of the LAN 20 via the GW 200. The mobile phone 100 is an example of a mobile terminal.

GW200は、WAN10に接続するとともに、LAN20に接続する。GW200は、WAN10に接続する携帯電話100と、LAN20のTV5との間の通信を中継する。GW200は、中継装置の一例である。   The GW 200 is connected to the WAN 10 and to the LAN 20. The GW 200 relays communication between the mobile phone 100 connected to the WAN 10 and the TV 5 of the LAN 20. The GW 200 is an example of a relay device.

本実施例の通信システムでは、GW200と無線により接続する携帯電話100が、GW200を介してLAN20と通信する際に、LAN20で携帯電話100を識別するIPv4アドレスと、LAN20でTV5を識別するIPv4アドレスとを取得する。以下では、LAN20で携帯電話100を識別するIPv4アドレスを、携帯電話100のIPv4アドレスと表記し、LAN20でTV5を識別するIPv4アドレスをTV5のIPv4アドレスと表記する。携帯電話100のIPv4アドレスは、第二の携帯端末識別情報の一例であり、TV5のIPv4アドレスは、電子機器識別情報の一例である。   In the communication system of the present embodiment, when the mobile phone 100 wirelessly connected to the GW 200 communicates with the LAN 20 via the GW 200, the IPv4 address that identifies the mobile phone 100 on the LAN 20 and the IPv4 address that identifies the TV 5 on the LAN 20 And get. Hereinafter, the IPv4 address that identifies the mobile phone 100 on the LAN 20 is referred to as the IPv4 address of the mobile phone 100, and the IPv4 address that identifies the TV 5 on the LAN 20 is referred to as the IPv4 address of the TV 5. The IPv4 address of the mobile phone 100 is an example of second mobile terminal identification information, and the IPv4 address of the TV 5 is an example of electronic device identification information.

そして、携帯電話100は、GW200との接続を終了してWAN10のエリアネットワーク3と無線により接続する。携帯電話100は、WAN10からWAN10で携帯電話100を識別するIPv6アドレスを取得する。以下では、WAN10で携帯電話100を識別するIPv6アドレスを携帯電話100のIPv6アドレスと表記する。携帯電話100のIPv6アドレスは、第一の携帯端末識別情報の一例である。   Then, the mobile phone 100 ends the connection with the GW 200 and connects to the area network 3 of the WAN 10 by radio. The cellular phone 100 acquires an IPv6 address that identifies the cellular phone 100 from the WAN 10 to the WAN 10. Hereinafter, the IPv6 address that identifies the mobile phone 100 in the WAN 10 is referred to as the IPv6 address of the mobile phone 100. The IPv6 address of the mobile phone 100 is an example of first mobile terminal identification information.

そして、携帯電話100は、携帯電話100のIPv6アドレスを送信元に設定するとともに、携帯電話100のIPv4アドレス及びTV5のIPv4アドレスを含むIPv6パケットを、WAN10を介してGW200に送信する。   Then, the mobile phone 100 sets the IPv6 address of the mobile phone 100 as a transmission source, and transmits an IPv6 packet including the IPv4 address of the mobile phone 100 and the IPv4 address of the TV 5 to the GW 200 via the WAN 10.

GW200は、携帯電話100から送信されたIPv6パケットを受信すると、IPv6パケットの送信元に設定された携帯電話100のIPv6アドレスと、IPv6パケットに含まれる携帯電話100のIPv4アドレスと対応付けて変換テーブルに格納する。   Upon receiving the IPv6 packet transmitted from the mobile phone 100, the GW 200 associates the IPv6 address of the mobile phone 100 set as the source of the IPv6 packet with the IPv4 address of the mobile phone 100 included in the IPv6 packet. To store.

そして、GW200は、変換テーブルに格納された携帯電話100のIPv4アドレスを送信元に設定し、IPv6パケットに含まれるTV5のIPv4アドレスを宛先に設定したIPv4パケットを生成して、LAN20を介してTV5に転送する。   Then, the GW 200 sets the IPv4 address of the mobile phone 100 stored in the conversion table as a transmission source, generates an IPv4 packet in which the IPv4 address of the TV5 included in the IPv6 packet is set as the destination, and transmits the TV5 via the LAN 20 to the TV5. Forward to.

このように、本実施例の通信システムでは、WAN10に接続した携帯電話100が、携帯電話100のIPv6アドレスを送信元に設定し、携帯電話100のIPv4アドレス及びTV5のIPv4アドレスを含めたIPv6パケットをGW200に送信する。GW200は、受信したIPv6パケットの送信元の携帯電話100のIPv6アドレスと、IPv6パケットに含まれる携帯電話100のIPv4アドレスとを対応付けて変換テーブルに格納する。GW200は、変換テーブルの携帯電話100のIPv6アドレスを送信元に設定し、IPv6パケットに含まれるTV5のIPv4アドレスを宛先に設定したIPv4パケットを生成して、LAN20を介してTV5に転送する。このため、本実施例の通信システムでは、ポート番号と転送先のIPv4アドレスとの対応関係をGW200に事前登録することなく、IPv4パケットをLAN20を介してTV5に転送することができる。結果として、GW200のメモリ規模の増大を抑えつつ、WAN10からLAN20への通信を中継することができる。   As described above, in the communication system according to the present embodiment, the mobile phone 100 connected to the WAN 10 sets the IPv6 address of the mobile phone 100 as a transmission source, and includes an IPv6 packet including the IPv4 address of the mobile phone 100 and the IPv4 address of the TV 5. Is transmitted to GW200. The GW 200 associates the IPv6 address of the mobile phone 100 that is the transmission source of the received IPv6 packet with the IPv4 address of the mobile phone 100 included in the IPv6 packet, and stores them in the conversion table. The GW 200 sets the IPv6 address of the mobile phone 100 in the conversion table as a transmission source, generates an IPv4 packet in which the IPv4 address of the TV 5 included in the IPv6 packet is set as a destination, and transfers the IPv4 packet to the TV 5 via the LAN 20. Therefore, in the communication system of the present embodiment, it is possible to transfer the IPv4 packet to the TV 5 via the LAN 20 without pre-registering the correspondence relationship between the port number and the IPv4 address of the transfer destination in the GW 200. As a result, communication from the WAN 10 to the LAN 20 can be relayed while suppressing an increase in the memory size of the GW 200.

次に、図1に示した携帯電話100の構成について説明する。図2は、実施例1に係る携帯電話の構成を示す機能ブロック図である。図2に示すように、携帯電話100は、記憶部101、IPv4アドレス取得部102、通信要求受付部103、パケット処理部104、パケット送信部105及び無線インターフェース部106を有する。   Next, the configuration of the mobile phone 100 shown in FIG. 1 will be described. FIG. 2 is a functional block diagram illustrating the configuration of the mobile phone according to the first embodiment. As illustrated in FIG. 2, the mobile phone 100 includes a storage unit 101, an IPv4 address acquisition unit 102, a communication request reception unit 103, a packet processing unit 104, a packet transmission unit 105, and a wireless interface unit 106.

記憶部101は、例えば、IPv4アドレス管理テーブル111、IPv6アドレス管理テーブル112及びGW情報管理テーブル113を有する。   The storage unit 101 includes, for example, an IPv4 address management table 111, an IPv6 address management table 112, and a GW information management table 113.

IPv4アドレス管理テーブル111は、LAN20で通信相手を識別するIPv4アドレスを記憶するテーブルである。図3は、IPv4アドレス管理テーブルのデータ構造の一例を示す図である。図3に示すように、このIPv4アドレス管理テーブル111は、機器及びIPv4アドレスを対応付けて記憶する。このうち、機器は、LAN20に接続する機器の種別を示す。IPv4アドレスは、LAN20で機器を識別するIPv4アドレスを示す。例えば、図3の1行目は、LAN20でTV5を識別するTV5のIPv4アドレスが「192.168.0.100」であることを示す。図3の2行目は、LAN20で携帯電話100を識別する携帯電話100のIPv4アドレスが「192.168.100.200」であることを示す。   The IPv4 address management table 111 is a table that stores an IPv4 address for identifying a communication partner on the LAN 20. FIG. 3 is a diagram illustrating an example of the data structure of the IPv4 address management table. As shown in FIG. 3, this IPv4 address management table 111 stores devices and IPv4 addresses in association with each other. Among these, the device indicates the type of device connected to the LAN 20. The IPv4 address indicates an IPv4 address for identifying a device on the LAN 20. For example, the first line in FIG. 3 indicates that the IPv4 address of the TV 5 that identifies the TV 5 on the LAN 20 is “192.168.0.100”. The second line in FIG. 3 indicates that the IPv4 address of the mobile phone 100 that identifies the mobile phone 100 on the LAN 20 is “192.168.100.200”.

IPv6アドレス管理テーブル112は、WAN10に接続する携帯電話100がWAN10から割り当てられるIPv6アドレスを記憶するテーブルである。図4は、IPv6アドレス管理テーブルのデータ構造の一例を示す図である。図4に示すように、このIPv6アドレス管理テーブル112は、IPv6プレフィックスを記憶する。IPv6プレフィックスは、WAN20で携帯電話100を識別するIPv6アドレスの前半部分であるIPv6プレフィックスを示す。図4の例は、WAN20から割り当てられたIPv6アドレスの前半部分が「2400:xxxx:xxxx:11::/64」であることを示す。   The IPv6 address management table 112 is a table that stores an IPv6 address to which the mobile phone 100 connected to the WAN 10 is assigned from the WAN 10. FIG. 4 is a diagram illustrating an example of the data structure of the IPv6 address management table. As shown in FIG. 4, this IPv6 address management table 112 stores an IPv6 prefix. The IPv6 prefix indicates an IPv6 prefix that is the first half of an IPv6 address that identifies the mobile phone 100 in the WAN 20. The example of FIG. 4 indicates that the first half of the IPv6 address assigned from the WAN 20 is “2400: xxxx: xxxx: 11 :: / 64”.

GW情報管理テーブル113は、WAN10でGW200を識別するためのWAN側アドレスを記憶するテーブルである。図5は、GW情報管理テーブルのデータ構造の一例を示す図である。図5に示すように、このGW情報管理テーブル113は、GW−IPv6プレフィックス、GW−LAN側MACアドレス及びコードを対応付けてWAN側アドレスとして記憶する。このうち、GW−IPv6プレフィックスは、WAN20でGW200を識別するIPv6アドレスの前半部分であるGW200のIPv6プレフィックスを示す。なお、GW200のIPv6プレフィックスには、48ビットのものと64ビットのものが存在する。GW−LAN側MACアドレスは、GW200のLAN20側のMACアドレスを示す。   The GW information management table 113 is a table for storing a WAN address for identifying the GW 200 in the WAN 10. FIG. 5 is a diagram illustrating an example of a data structure of the GW information management table. As illustrated in FIG. 5, the GW information management table 113 stores a GW-IPv6 prefix, a GW-LAN side MAC address, and a code in association with each other as a WAN side address. Among these, the GW-IPv6 prefix indicates the IPv6 prefix of the GW 200 that is the first half of the IPv6 address that identifies the GW 200 in the WAN 20. Note that there are 48-bit and 64-bit IPv6 prefixes of GW200. The GW-LAN side MAC address indicates the MAC address on the LAN 20 side of the GW 200.

コードは、WAN10に接続する携帯電話100とLAN20のTV5との間の通信の中継をGW200が実施しているか否かを示すフラグである。コードが「0x0000」である場合には、そのコードは、図6に示すように、WAN10に接続する携帯電話100とLAN20のTV5との間の通信の中継をGW200が実施していることを意味する。また、コードが「0xFFFF」である場合には、そのコードは、WAN10に接続する携帯電話100とLAN20のTV5との間の通信の中継をGW200が終了していることを意味する。なお、図6は、コードの内容の一例を示す図である。   The code is a flag indicating whether or not the GW 200 is relaying communication between the mobile phone 100 connected to the WAN 10 and the TV 5 of the LAN 20. When the code is “0x0000”, the code means that the GW 200 is relaying communication between the mobile phone 100 connected to the WAN 10 and the TV 5 of the LAN 20, as shown in FIG. To do. When the code is “0xFFFF”, the code means that the GW 200 has finished relaying communication between the mobile phone 100 connected to the WAN 10 and the TV 5 of the LAN 20. FIG. 6 is a diagram illustrating an example of the contents of the code.

図5の例では、GW200のWAN20側のIPv6プレフィックスが、48ビットの「2001:fe00:abcd::/48」であること示し、GW200のLAN20側のMACアドレスが「1CDF−0F0A−ABCD」であることを示す。また、図5の例では、コードが「0x0000」であるので、WAN10に接続する携帯電話100とLAN20のTV5との間の通信の中継をGW200が実施している。   In the example of FIG. 5, the IPv6 prefix on the WAN 20 side of the GW 200 indicates 48 bits “2001: fe00: abcd :: / 48”, and the MAC address on the LAN 20 side of the GW 200 is “1CDF-0F0A-ABCD”. It shows that there is. In the example of FIG. 5, since the code is “0x0000”, the GW 200 relays communication between the mobile phone 100 connected to the WAN 10 and the TV 5 of the LAN 20.

図2に戻り、IPv4アドレス取得部102は、携帯電話100のIPv4アドレスと、TV5のIPv4アドレスとを取得する。例えば、IPv4アドレス取得部102は、タッチパネル等の入力装置からユーザの入力操作を受け付けることにより、携帯電話100のIPv4アドレスと、TV5のIPv4アドレスとを取得する。IPv4アドレス取得部102は、取得した携帯電話100のIPv4アドレス及びTV5のIPv4アドレスをIPv4アドレス管理テーブル111に格納する。IPv4アドレス取得部102は、取得部の一例である。   Returning to FIG. 2, the IPv4 address acquisition unit 102 acquires the IPv4 address of the mobile phone 100 and the IPv4 address of the TV 5. For example, the IPv4 address acquisition unit 102 acquires the IPv4 address of the mobile phone 100 and the IPv4 address of the TV 5 by receiving a user input operation from an input device such as a touch panel. The IPv4 address acquisition unit 102 stores the acquired IPv4 address of the mobile phone 100 and the IPv4 address of the TV 5 in the IPv4 address management table 111. The IPv4 address acquisition unit 102 is an example of an acquisition unit.

通信要求受付部103は、携帯電話100とLAN20のTV5との間の通信を中継する旨をGW200に要求する通信要求をユーザから受け付ける。通信要求受付部103は、受け付けた通信要求をパケット処理部104に通知する。   The communication request receiving unit 103 receives a communication request for requesting the GW 200 to relay communication between the mobile phone 100 and the TV 5 of the LAN 20 from the user. The communication request accepting unit 103 notifies the packet processing unit 104 of the accepted communication request.

また、通信要求受付部103は、携帯電話100とLAN20のTV5との間の通信の中継を終了する旨をGW200に要求する通信終了要求をユーザから受け付ける。通信要求受付部103は、受け付けた通信終了要求をパケット処理部104に通知する。   Further, the communication request accepting unit 103 accepts a communication end request for requesting the GW 200 to end the relay of communication between the mobile phone 100 and the TV 5 of the LAN 20 from the user. The communication request accepting unit 103 notifies the packet processing unit 104 of the accepted communication end request.

パケット処理部104は、GW200と接続する場合に、GW200に対してWAN側アドレスを要求するWAN側アドレス要求を送信する。パケット処理部104は、WAN側アドレス要求を受け付けたGW200から返信されるGW200のWAN側アドレスを受け付けてGW情報管理テーブル113に格納する。本実施例では、パケット処理部104は、GW200から通知されるGW200のIPv6プレフィックス、LAN20側のMACアドレス及びコードを受け付けてGW情報管理テーブル113に格納する。   When connecting to the GW 200, the packet processing unit 104 transmits a WAN address request for requesting the WAN address to the GW 200. The packet processing unit 104 receives the WAN address of the GW 200 returned from the GW 200 that has received the WAN address request, and stores it in the GW information management table 113. In this embodiment, the packet processing unit 104 receives the IPv6 prefix of the GW 200 notified from the GW 200, the MAC address and code on the LAN 20 side, and stores them in the GW information management table 113.

また、パケット処理部104は、通信要求受付部103から通信要求を受け付けた場合に、IPv4アドレス管理テーブル111、IPv6アドレス管理テーブル112及びGW情報管理テーブル113を基に、IPv4パケット又はIPv6パケットを生成する。   In addition, when receiving a communication request from the communication request receiving unit 103, the packet processing unit 104 generates an IPv4 packet or an IPv6 packet based on the IPv4 address management table 111, the IPv6 address management table 112, and the GW information management table 113. To do.

パケット処理部104がIPv4パケット又はIPv6パケットを生成する処理の一例について説明する。まず、パケット処理部104がIPv4パケットを生成する処理の一例について説明する。パケット処理部104は、通信要求を受け付けると、接続性の確認のためのIPv4パケットを生成してGW200に送信し、GW200からの返信を待つ。GW200からの返信を受け付けたパケット処理部104は、携帯電話100がGW200に直接接続していることを認識する。すると、パケット処理部104は、IPv4アドレス管理テーブル111を参照し、通信要求の対象となるTV5のIPv4アドレスを宛先に設定し、携帯電話100のIPv4アドレスを送信元に設定したIPv4パケットを生成する。   An example of processing in which the packet processing unit 104 generates an IPv4 packet or an IPv6 packet will be described. First, an example of processing in which the packet processing unit 104 generates an IPv4 packet will be described. When receiving the communication request, the packet processing unit 104 generates an IPv4 packet for confirming connectivity, transmits the packet to the GW 200, and waits for a reply from the GW 200. The packet processing unit 104 that has received a reply from the GW 200 recognizes that the mobile phone 100 is directly connected to the GW 200. Then, the packet processing unit 104 refers to the IPv4 address management table 111, sets the IPv4 address of the TV 5 that is the target of the communication request as the destination, and generates an IPv4 packet in which the IPv4 address of the mobile phone 100 is set as the transmission source. .

続いて、パケット処理部104がIPv6パケットを生成する処理の一例について説明する。パケット処理部104は、通信要求を受け付けると、接続性の確認のためのIPv4パケットを生成してGW200に送信し、GW200からの返信を待つ。GW200からの返信を受け付けることができなかったパケット処理部104は、携帯電話100がWAN10に接続していることを認識する。パケット処理部104は、IPv4アドレス管理テーブル111及びIPv6アドレス管理テーブル112を参照して、携帯電話100のIPv6プレフィックスを送信元に設定し、携帯電話100及びTV5のIPv4アドレスを含むIPv6パケットを生成する。なお、パケット処理部104によって生成されるIPv6パケットのデータ構造については、後述する。   Next, an example of processing in which the packet processing unit 104 generates an IPv6 packet will be described. When receiving the communication request, the packet processing unit 104 generates an IPv4 packet for confirming connectivity, transmits the packet to the GW 200, and waits for a reply from the GW 200. The packet processing unit 104 that has not received a reply from the GW 200 recognizes that the mobile phone 100 is connected to the WAN 10. The packet processing unit 104 refers to the IPv4 address management table 111 and the IPv6 address management table 112, sets the IPv6 prefix of the mobile phone 100 as a transmission source, and generates an IPv6 packet including the IPv4 addresses of the mobile phone 100 and the TV 5 . The data structure of the IPv6 packet generated by the packet processing unit 104 will be described later.

また、パケット処理部104は、通信要求受付部103から通信終了要求を受け付けた場合に、WAN10に接続する携帯電話100とLAN20のTV5との間の通信を終了することを示すコードを含むIPv6パケットを生成する。   Further, when the packet processing unit 104 receives a communication end request from the communication request receiving unit 103, the IPv6 packet including a code indicating that communication between the mobile phone 100 connected to the WAN 10 and the TV 5 of the LAN 20 is ended. Is generated.

パケット送信部105は、パケット処理部104によって生成されたIPv4パケットを受け付け、受け付けたIPv4パケットをGW200に送信する。また、パケット送信部105は、パケット処理部104によって生成されたIPv6パケットを受け付け、受け付けたIPv6パケットを、WAN10を介してGW200に送信する。パケット送信部105は、送信部の一例である。   The packet transmission unit 105 receives the IPv4 packet generated by the packet processing unit 104, and transmits the received IPv4 packet to the GW 200. In addition, the packet transmission unit 105 receives the IPv6 packet generated by the packet processing unit 104 and transmits the received IPv6 packet to the GW 200 via the WAN 10. The packet transmission unit 105 is an example of a transmission unit.

無線インターフェース部106は、GW200及びWAN10のエリアネットワーク3と無線によりデータ通信する処理部である。例えば、パケット処理部104は、無線インターフェース部106を介して、GW200から通知されるGW200のWAN側アドレスを受け付ける。また、例えば、パケット送信部105は、無線インターフェース部106を介して、IPv4パケットをGW200に送信する。また、例えば、パケット送信部105は、無線インターフェース部106を介して、IPv6パケットをGW200に送信する。   The wireless interface unit 106 is a processing unit that wirelessly performs data communication with the area network 3 of the GW 200 and the WAN 10. For example, the packet processing unit 104 receives the WAN address of the GW 200 notified from the GW 200 via the wireless interface unit 106. For example, the packet transmission unit 105 transmits an IPv4 packet to the GW 200 via the wireless interface unit 106. For example, the packet transmission unit 105 transmits an IPv6 packet to the GW 200 via the wireless interface unit 106.

次に、図1に示したGW200の構成について説明する。図7は、実施例1に係るGWの構成を示す機能ブロック図である。図7に示すように、GW200は、WAN側インターフェース部201、LAN側インターフェース部202、IPv6−IPv4アドレス変換テーブル203及びIPv6−IPv4アドレス格納部204を有する。また、GW200は、IPv4ルーティングテーブル205、IPv6ルーティングテーブル206及びルーティング管理部207を有する。また、GW200は、MACアドレス記憶部208、コード記憶部209、IPv6アドレス記憶部210及びIPv6アドレス処理部211及びパケット転送部212を有する。   Next, the configuration of the GW 200 shown in FIG. 1 will be described. FIG. 7 is a functional block diagram illustrating the configuration of the GW according to the first embodiment. As illustrated in FIG. 7, the GW 200 includes a WAN-side interface unit 201, a LAN-side interface unit 202, an IPv6-IPv4 address conversion table 203, and an IPv6-IPv4 address storage unit 204. The GW 200 includes an IPv4 routing table 205, an IPv6 routing table 206, and a routing management unit 207. The GW 200 includes a MAC address storage unit 208, a code storage unit 209, an IPv6 address storage unit 210, an IPv6 address processing unit 211, and a packet transfer unit 212.

WAN側インターフェース部201は、WAN10のIPv6ネットワーク1と接続され、WAN10との間でデータ通信する処理部である。例えば、IPv6−IPv4アドレス格納部204及びパケット転送部212は、WAN側インターフェース部201を介して、WAN10のIPv6ネットワーク1とIPv6パケット等を送受信する。また、例えば、IPv6アドレス処理部211は、WAN側インターフェース部201を介して、WAN10のIPv6ネットワーク1からIPv6プレフィックス等を受信する。   The WAN side interface unit 201 is a processing unit that is connected to the IPv6 network 1 of the WAN 10 and performs data communication with the WAN 10. For example, the IPv6-IPv4 address storage unit 204 and the packet transfer unit 212 transmit / receive IPv6 packets and the like to / from the IPv6 network 1 of the WAN 10 via the WAN-side interface unit 201. For example, the IPv6 address processing unit 211 receives an IPv6 prefix or the like from the IPv6 network 1 of the WAN 10 via the WAN side interface unit 201.

LAN側インターフェース部202は、LAN20及び携帯電話100と接続され、LAN20及び携帯電話100との間でデータ通信する処理部である。例えば、パケット転送部212は、LAN側インターフェース部202を介して、LAN20とIPv4パケット等を送受信する。また、例えば、IPv6アドレス処理部211は、LAN側インターフェース部202を介して、携帯電話100にGW200のIPv6プレフィックス等を送信する。   The LAN-side interface unit 202 is a processing unit that is connected to the LAN 20 and the mobile phone 100 and performs data communication with the LAN 20 and the mobile phone 100. For example, the packet transfer unit 212 transmits / receives an IPv4 packet or the like to / from the LAN 20 via the LAN side interface unit 202. For example, the IPv6 address processing unit 211 transmits the IPv6 prefix of the GW 200 to the mobile phone 100 via the LAN side interface unit 202.

IPv6−IPv4アドレス変換テーブル203は、パケット転送部212がIPv6パケット及びIPv4パケットの転送を行う際に宛先アドレス又は送信元アドレスの変換を行うために参照するテーブルである。図8は、IPv6−IPv4アドレス変換テーブルのデータ構造の一例を示す図である。図8に示すように、このIPv6−IPv4アドレス変換テーブル203は、IPv6アドレス、IPv4アドレス、コード及びタイマ値を対応付けて記憶する。このうち、IPv6アドレスは、IPv6パケットの送信元に設定された携帯電話100のIPv6アドレスを格納する。IPv4アドレスは、IPv6パケットに含まれる携帯電話100のIPv4アドレスを格納する。コードは、IPv6パケットに含まれるコードを格納する。タイマ値は、携帯電話100のIPv6アドレスと携帯電話100のIPv4アドレスとの対応関係のエントリの保持期間を格納する。タイマ値が「0」になった場合に、対応するエントリが削除される。タイマ値は、保持期間情報の一例である。   The IPv6-IPv4 address conversion table 203 is a table that is referred to when the packet transfer unit 212 converts a destination address or a source address when transferring an IPv6 packet and an IPv4 packet. FIG. 8 is a diagram illustrating an example of a data structure of the IPv6-IPv4 address conversion table. As shown in FIG. 8, this IPv6-IPv4 address conversion table 203 stores an IPv6 address, an IPv4 address, a code, and a timer value in association with each other. Among these, the IPv6 address stores the IPv6 address of the mobile phone 100 set as the source of the IPv6 packet. The IPv4 address stores the IPv4 address of the mobile phone 100 included in the IPv6 packet. The code stores a code included in the IPv6 packet. The timer value stores the holding period of the entry of the correspondence relationship between the IPv6 address of the mobile phone 100 and the IPv4 address of the mobile phone 100. When the timer value becomes “0”, the corresponding entry is deleted. The timer value is an example of retention period information.

図8の例では、IPv6パケットの送信元に設定された携帯電話100のIPv6アドレスが「2400:1234:5678::1」であることを示す。また、図8の例では、IPv6パケットに含まれる携帯電話100のIPv4アドレスが「192.168.100.200」であることを示す。また、図8の例では、IPv6パケットに含まれるコードが「0x0000」であることを示す。また、図8の例では、携帯電話100のIPv6アドレス「2400:1234:5678::1」と携帯電話100のIPv4アドレス「192.168.100.200」との対応関係の保持期間が「2000」であることを示す。   The example of FIG. 8 indicates that the IPv6 address of the mobile phone 100 set as the transmission source of the IPv6 packet is “2400: 1234: 5678: 1”. Further, the example of FIG. 8 indicates that the IPv4 address of the mobile phone 100 included in the IPv6 packet is “192.168.100.200”. In the example of FIG. 8, the code included in the IPv6 packet is “0x0000”. In the example of FIG. 8, the retention period of the correspondence relationship between the IPv6 address “2400: 1234: 5678 :: 1” of the mobile phone 100 and the IPv4 address “192.168.100.200” of the mobile phone 100 is “2000”. ".

IPv6−IPv4アドレス格納部204は、WAN10に接続する携帯電話100から送信されたIPv6パケットをWAN側インターフェース部201を介して受信する。IPv6−IPv4アドレス格納部204は、IPv6パケットの送信元に設定された携帯電話100のIPv6アドレスとIPv6パケットに含まれる携帯電話100のIPv4アドレスとを対応付けてIPv6−IPv4アドレス変換テーブル203に格納する。なお、IPv6−IPv4アドレス格納部204は、IPv6パケットにコードが含まれている場合には、IPv6パケットに含まれるコードをIPv6−IPv4アドレス変換テーブル203にさらに格納する。   The IPv6-IPv4 address storage unit 204 receives the IPv6 packet transmitted from the mobile phone 100 connected to the WAN 10 via the WAN-side interface unit 201. The IPv6-IPv4 address storage unit 204 associates the IPv6 address of the mobile phone 100 set as the source of the IPv6 packet with the IPv4 address of the mobile phone 100 included in the IPv6 packet and stores it in the IPv6-IPv4 address conversion table 203. To do. Note that when the IPv6 packet includes a code, the IPv6-IPv4 address storage unit 204 further stores the code included in the IPv6 packet in the IPv6-IPv4 address conversion table 203.

また、IPv6−IPv4アドレス格納部204は、携帯電話100のIPv6アドレスと携帯電話100のIPv4アドレスとの対応関係の保持期間を示すタイマ値をIPv6−IPv4アドレス変換テーブル203にさらに格納する。そして、IPv6−IPv4アドレス格納部204は、例えばクロックイベントが発生する度に、IPv6−IPv4アドレス変換テーブル203のタイマ値をデクリメントする。そして、IPv6−IPv4アドレス格納部204は、タイマ値が示す保持期間が満了した場合に、言い換えると、タイマ値が「0」となった場合に、該タイマ値に対応するエントリをIPv6−IPv4アドレス変換テーブル203から削除する。   Further, the IPv6-IPv4 address storage unit 204 further stores a timer value indicating a holding period of the correspondence relationship between the IPv6 address of the mobile phone 100 and the IPv4 address of the mobile phone 100 in the IPv6-IPv4 address conversion table 203. The IPv6-IPv4 address storage unit 204 decrements the timer value of the IPv6-IPv4 address conversion table 203 every time a clock event occurs, for example. Then, when the holding period indicated by the timer value expires, in other words, when the timer value becomes “0”, the IPv6-IPv4 address storage unit 204 sets the entry corresponding to the timer value to the IPv6-IPv4 address. Delete from the conversion table 203.

また、IPv6−IPv4アドレス格納部204は、IPv6パケットに通信終了を示すコードが含まれる場合に、以下の処理を行う。すなわち、IPv6−IPv4アドレス格納部204は、IPv6パケットの送信元に設定された携帯電話100のIPv6アドレスに対応するエントリをIPv6−IPv4アドレス変換テーブル203から削除する。   Also, the IPv6-IPv4 address storage unit 204 performs the following processing when a code indicating the end of communication is included in the IPv6 packet. That is, the IPv6-IPv4 address storage unit 204 deletes the entry corresponding to the IPv6 address of the mobile phone 100 set as the source of the IPv6 packet from the IPv6-IPv4 address conversion table 203.

IPv4ルーティングテーブル205は、LAN20においてIPv4プロトコルスタックを実装した電子機器(以下「IPv4電子機器」という)を宛先とする通信経路の情報を記憶するテーブルである。IPv6ルーティングテーブル206は、LAN20においてIPv6プロトコルスタックを実装した電子機器(以下「IPv6電子機器」という)を宛先とする通信経路の情報を記憶するテーブルである。ルーティング管理部207は、IPv4ルーティングテーブル205及びIPv6ルーティングテーブル206を管理し、IPv4ルーティングテーブル205及びIPv6ルーティングテーブル206とパケット転送部212との間のやり取りを仲介する。   The IPv4 routing table 205 is a table that stores information on communication routes destined for an electronic device (hereinafter referred to as “IPv4 electronic device”) in which an IPv4 protocol stack is implemented in the LAN 20. The IPv6 routing table 206 is a table that stores information on communication routes destined for an electronic device (hereinafter, referred to as “IPv6 electronic device”) that implements the IPv6 protocol stack in the LAN 20. The routing management unit 207 manages the IPv4 routing table 205 and the IPv6 routing table 206, and mediates exchanges between the IPv4 routing table 205 and the IPv6 routing table 206 and the packet forwarding unit 212.

MACアドレス記憶部208は、携帯電話100に対してWAN側アドレスの一部として通知するGW200のLAN20側のMACアドレスを記憶する。コード記憶部209は、携帯電話100に対してWAN側アドレスの一部として通知するコードを記憶する。IPv6アドレス記憶部210は、携帯電話100に対してWAN側アドレスの一部として通知するGW200のIPv6プレフィックスを記憶する。   The MAC address storage unit 208 stores the MAC address on the LAN 20 side of the GW 200 that is notified to the mobile phone 100 as a part of the WAN side address. The code storage unit 209 stores a code notified to the mobile phone 100 as a part of the WAN address. The IPv6 address storage unit 210 stores the IPv6 prefix of the GW 200 that is notified to the mobile phone 100 as part of the WAN address.

IPv6アドレス処理部211は、WAN10のIPv6ネットワーク1から割り当てられるIPv6プレフィックスを受信する。WAN10のIPv6ネットワーク1から割り当てられるIPv6プレフィックスには、48ビットのものと64ビットのものが存在する。本実施例では、WAN10のIPv6ネットワーク1から割り当てられるIPv6プレフィックスが48ビットであるものとする。IPv6アドレス処理部211は、受信したIPv6プレフィックスをIPv6アドレス記憶部210に格納する。   The IPv6 address processing unit 211 receives an IPv6 prefix assigned from the IPv6 network 1 of the WAN 10. There are 48-bit and 64-bit IPv6 prefixes assigned from the IPv10 network 1 of the WAN 10. In this embodiment, it is assumed that the IPv6 prefix allocated from the IPv6 network 1 of the WAN 10 is 48 bits. The IPv6 address processing unit 211 stores the received IPv6 prefix in the IPv6 address storage unit 210.

また、IPv6アドレス処理部211は、WAN側アドレス要求を携帯電話100から受信した場合に、IPv6アドレス記憶部210のIPv6プレフィックスが48ビットであるか、又は、64ビットであるかを確認する。IPv6アドレス処理部211は、IPv6アドレス記憶部210のIPv6プレフィックスが48ビットである場合には、以下の処理を行う。IPv6アドレス処理部211は、MACアドレス記憶部208のLAN20側のMACアドレス、コード記憶部209のコード及びIPv6アドレス記憶部210のIPv6プレフィックスをGW200のWAN側アドレスとして携帯電話100に通知する。一方、IPv6アドレス処理部211は、IPv6アドレス記憶部210のIPv6プレフィックスが64ビットである場合には、以下の処理を行う。IPv6アドレス処理部211は、IPv6アドレス記憶部210のIPv6プレフィックスに任意の64ビットの値を追加することによって、WAN側IPv6アドレスを生成する。IPv6アドレス処理部211は、生成したWAN側IPv6アドレスをGW200のWAN側アドレスとして携帯電話100に通知する。なお、IPv6アドレス処理部211は、生成したWAN側IPv6アドレスを自身の記憶領域に保持する。   Further, when the IPv6 address processing unit 211 receives a WAN address request from the mobile phone 100, the IPv6 address processing unit 211 checks whether the IPv6 prefix of the IPv6 address storage unit 210 is 48 bits or 64 bits. The IPv6 address processing unit 211 performs the following processing when the IPv6 prefix of the IPv6 address storage unit 210 is 48 bits. The IPv6 address processing unit 211 notifies the cellular phone 100 of the MAC address on the LAN 20 side of the MAC address storage unit 208, the code on the code storage unit 209, and the IPv6 prefix on the IPv6 address storage unit 210 as the WAN side address of the GW 200. On the other hand, the IPv6 address processing unit 211 performs the following processing when the IPv6 prefix of the IPv6 address storage unit 210 is 64 bits. The IPv6 address processing unit 211 generates a WAN-side IPv6 address by adding an arbitrary 64-bit value to the IPv6 prefix in the IPv6 address storage unit 210. The IPv6 address processing unit 211 notifies the mobile phone 100 of the generated WAN side IPv6 address as the WAN side address of the GW 200. Note that the IPv6 address processing unit 211 holds the generated WAN-side IPv6 address in its own storage area.

パケット転送部212は、WAN10からIPv6パケットを受信した場合に、IPv6−IPv4アドレス変換テーブル203を基にして、IPv4パケットを生成し、生成したIPv4パケットをLAN20のTV5に転送する。また、パケット転送部212は、LAN10からIPv4パケットを受信した場合に、IPv6−IPv4アドレス変換テーブル203を基にして、IPv6パケットを生成し、生成したIPv6パケットをWAN10に接続する携帯電話100に転送する。   When receiving an IPv6 packet from the WAN 10, the packet transfer unit 212 generates an IPv4 packet based on the IPv6-IPv4 address conversion table 203, and transfers the generated IPv4 packet to the TV 5 of the LAN 20. Further, when receiving an IPv4 packet from the LAN 10, the packet transfer unit 212 generates an IPv6 packet based on the IPv6-IPv4 address conversion table 203, and transfers the generated IPv6 packet to the mobile phone 100 connected to the WAN 10. To do.

パケット転送部212がIPv4パケットを生成する処理の一例について説明する。パケット転送部212は、WAN10からIPv6パケットを受信すると、IPv6−IPv4アドレス変換テーブル203を参照して、IPv6パケットの送信元と同一の「IPv6アドレス」のエントリを検索する。パケット転送部212は、IPv6パケットの送信元と同一の「IPv6アドレス」のエントリが存在する場合には、以下の処理を行う。すなわち、パケット転送部212は、同エントリのタイマ値をリセットし、同エントリの対応する携帯電話100のIPv4アドレスを送信元に設定し、IPv6パケットに含まれるTV5のIPv4アドレスを宛先に設定したIPv4パケットを生成する。   An example of processing in which the packet transfer unit 212 generates an IPv4 packet will be described. When receiving the IPv6 packet from the WAN 10, the packet transfer unit 212 refers to the IPv6-IPv4 address conversion table 203 and searches for an entry with the same “IPv6 address” as the source of the IPv6 packet. The packet transfer unit 212 performs the following process when an entry with the same “IPv6 address” as the source of the IPv6 packet exists. That is, the packet transfer unit 212 resets the timer value of the entry, sets the IPv4 address of the mobile phone 100 corresponding to the entry as the transmission source, and sets the IPv4 address of the TV 5 included in the IPv6 packet as the destination. Generate a packet.

パケット転送部212がIPv6パケットを生成する処理の一例について説明する。パケット転送部212は、LAN20からIPv4パケットを受信すると、IPv6−IPv4アドレス変換テーブル203を参照して、IPv4パケットの宛先と同一の「IPv4アドレス」のエントリを検索する。パケット転送部212は、IPv4パケットの宛先と同一の「IPv4アドレス」のエントリが存在する場合には、以下の処理を行う。すなわち、パケット転送部212は、同エントリの対応する携帯電話100のIPv6アドレスを宛先に設定したIPv6パケットを生成する。   An example of processing in which the packet transfer unit 212 generates an IPv6 packet will be described. When receiving the IPv4 packet from the LAN 20, the packet transfer unit 212 refers to the IPv6-IPv4 address conversion table 203 and searches for an entry with the same “IPv4 address” as the destination of the IPv4 packet. The packet transfer unit 212 performs the following process when an entry with the same “IPv4 address” as the destination of the IPv4 packet exists. That is, the packet transfer unit 212 generates an IPv6 packet in which the IPv6 address of the corresponding mobile phone 100 of the entry is set as the destination.

次に、本実施例に係る携帯電話100のハードウェア構成について説明する。図9は、実施例1に係る携帯電話のハードウェア構成の一例を示す図である。図9に示す携帯電話100は、CPU(Central Processing Unit)301、パケット転送エンジン302、RAM(Random Access Memory)303及びハードディスク装置304を有する。また、携帯電話100は、無線インターフェース装置305、入力装置306及びディスプレイ装置307を有する。各装置301〜307は、バス308に接続される。   Next, the hardware configuration of the mobile phone 100 according to the present embodiment will be described. FIG. 9 is a diagram illustrating an example of a hardware configuration of the mobile phone according to the first embodiment. A mobile phone 100 shown in FIG. 9 includes a CPU (Central Processing Unit) 301, a packet transfer engine 302, a RAM (Random Access Memory) 303, and a hard disk device 304. In addition, the mobile phone 100 includes a wireless interface device 305, an input device 306, and a display device 307. Each device 301 to 307 is connected to a bus 308.

RAM303は、図2におけるIPv4アドレス管理テーブル111、IPv6アドレス管理テーブル112及びGW情報管理テーブル113の機能を実現している。また、パケット転送エンジン302及び無線インターフェース装置305は、図2における無線インターフェース部106の機能を実現している。   The RAM 303 implements the functions of the IPv4 address management table 111, the IPv6 address management table 112, and the GW information management table 113 in FIG. Further, the packet transfer engine 302 and the wireless interface device 305 realize the function of the wireless interface unit 106 in FIG.

ハードディスク装置304は、図2に例示したIPv4アドレス取得部102、通信要求受付部103、パケット処理部104及びパケット送信部105等による処理を実現する各種プログラムを記憶している。   The hard disk device 304 stores various programs that realize processing by the IPv4 address acquisition unit 102, the communication request reception unit 103, the packet processing unit 104, the packet transmission unit 105, and the like illustrated in FIG.

CPU301及びRAM303は、ハードディスク装置304に記憶された各種プログラムを読み出して実行することで、上述した各機能を実現するプロセスを生成する。   The CPU 301 and the RAM 303 read out and execute various programs stored in the hard disk device 304, thereby generating a process that realizes each function described above.

次に、本実施例に係るGW200のハードウェア構成について説明する。図10は、実施例1に係るGWのハードウェア構成の一例を示す図である。図10に示すGW200は、CPU401、パケット転送エンジン402、RAM403、ハードディスク装置404、無線インターフェース装置405及び入力装置406を有する。また、GW200は、WAN側インターフェース装置407、LAN側インターフェース装置408及びディスプレイ装置409を有する。各装置401〜409は、バス410に接続される。   Next, a hardware configuration of the GW 200 according to the present embodiment will be described. FIG. 10 is a diagram illustrating an example of a hardware configuration of the GW according to the first embodiment. A GW 200 illustrated in FIG. 10 includes a CPU 401, a packet transfer engine 402, a RAM 403, a hard disk device 404, a wireless interface device 405, and an input device 406. The GW 200 includes a WAN side interface device 407, a LAN side interface device 408, and a display device 409. Each device 401 to 409 is connected to the bus 410.

RAM403は、図7におけるIPv6−IPv4アドレス変換テーブル203、IPv4ルーティングテーブル205及びIPv6ルーティングテーブル206の機能を実現している。また、RAM403は、図7におけるMACアドレス記憶部208、コード記憶部209及びIPv6アドレス記憶部210の機能を実現している。また、パケット転送エンジン402及びWAN側インターフェース装置407は、図7におけるWAN側インターフェース部201の機能を実現している。また、パケット転送エンジン402、無線インターフェース装置405及びLAN側インターフェース装置408は、図7におけるLAN側インターフェース部202の機能を実現している。   The RAM 403 realizes the functions of the IPv6-IPv4 address conversion table 203, the IPv4 routing table 205, and the IPv6 routing table 206 in FIG. The RAM 403 implements the functions of the MAC address storage unit 208, the code storage unit 209, and the IPv6 address storage unit 210 in FIG. Further, the packet transfer engine 402 and the WAN side interface device 407 realize the function of the WAN side interface unit 201 in FIG. Further, the packet transfer engine 402, the wireless interface device 405, and the LAN side interface device 408 realize the function of the LAN side interface unit 202 in FIG.

ハードディスク装置404は、図7に例示したIPv6−IPv4アドレス格納部204、ルーティング管理部207、IPv6アドレス処理部211及びパケット転送部212等による処理を実現する各種プログラムを記憶している。   The hard disk device 404 stores various programs that realize processing by the IPv6-IPv4 address storage unit 204, the routing management unit 207, the IPv6 address processing unit 211, the packet transfer unit 212, and the like illustrated in FIG.

CPU401及びRAM403は、ハードディスク装置404に記憶された各種プログラムを読み出して実行することで、上述した各機能を実現するプロセスを生成する。   The CPU 401 and the RAM 403 read out and execute various programs stored in the hard disk device 404, thereby generating processes for realizing the functions described above.

次に、実施例1に係る通信システムの処理手順について説明する。まず、実施例1に係る通信システムの携帯電話100がGW200と無線により接続し、GW200を介してLAN10のTV5と通信する一連の処理の処理手順について説明する。図11は、実施例1に係る通信システムの携帯電話がGWを介してLANのTVと通信する処理の処理手順の一例を示すシーケンス図である。図11の例では、携帯電話100がGW200と接続可能な範囲に存在するものとする。また、図11の例では、WAN10のIPv6ネットワーク1からGW200に通知されるIPv6プレフィックスが、48ビットであるものとする。   Next, a processing procedure of the communication system according to the first embodiment will be described. First, a processing procedure of a series of processes in which the mobile phone 100 of the communication system according to the first embodiment is wirelessly connected to the GW 200 and communicates with the TV 5 of the LAN 10 via the GW 200 will be described. FIG. 11 is a sequence diagram illustrating an example of a processing procedure of a process in which the mobile phone of the communication system according to the first embodiment communicates with the LAN TV via the GW. In the example of FIG. 11, it is assumed that the mobile phone 100 exists in a range that can be connected to the GW 200. In the example of FIG. 11, it is assumed that the IPv6 prefix notified from the IPv6 network 1 of the WAN 10 to the GW 200 is 48 bits.

図11に示すように、携帯電話100は、携帯電話100のIPv4アドレスと、TV5のIPv4アドレスとを取得する(ステップS101)。携帯電話100は、取得した携帯電話100のIPv4アドレス及びTV5のIPv4アドレスをIPv4アドレス管理テーブル111に格納する。   As shown in FIG. 11, the mobile phone 100 acquires the IPv4 address of the mobile phone 100 and the IPv4 address of the TV 5 (step S101). The mobile phone 100 stores the acquired IPv4 address of the mobile phone 100 and the IPv4 address of the TV 5 in the IPv4 address management table 111.

GW200は、WAN10のIPv6ネットワーク1から通知される48ビットのIPv6プレフィックスを受信する(ステップS102)。GW200は、受信した48ビットのIPv6プレフィックスをIPv6アドレス記憶部210に格納する。   The GW 200 receives the 48-bit IPv6 prefix notified from the IPv6 network 1 of the WAN 10 (step S102). The GW 200 stores the received 48-bit IPv6 prefix in the IPv6 address storage unit 210.

携帯電話100は、GW200と接続する場合に、GW200に対してWAN側アドレス要求を送信する(ステップS103)。   When connecting to the GW 200, the mobile phone 100 transmits a WAN address request to the GW 200 (step S103).

GW200は、携帯電話100からWAN側アドレス要求を受信すると、WAN側アドレス通知処理を実行する(ステップS104)。   When the GW 200 receives the WAN address request from the mobile phone 100, the GW 200 executes a WAN address notification process (step S104).

ここで、ステップS104のWAN側アドレス通知処理について説明する。図12は、実施例1のGWが実行するWAN側アドレス通知処理の処理手順を示すフローチャートである。図12に示すように、GW200は、携帯電話100からWAN側アドレス要求を受信すると(ステップS121)、IPv6アドレス記憶部210のIPv6プレフィックスが64ビットであるか否かを確認する(ステップS122)。GW200は、IPv6アドレス記憶部210のIPv6プレフィックスが48ビットである場合には(ステップS122;No)、以下の処理を行う。GW200は、MACアドレス記憶部208のLAN20側のMACアドレス、コード記憶部209のコード及びIPv6アドレス記憶部210のIPv6プレフィックスをGW200のWAN側アドレスとして携帯電話100に通知する(ステップS123)。   Here, the WAN address notification processing in step S104 will be described. FIG. 12 is a flowchart illustrating a processing procedure of WAN address notification processing executed by the GW according to the first embodiment. As shown in FIG. 12, when the GW 200 receives a WAN address request from the mobile phone 100 (step S121), the GW 200 confirms whether the IPv6 prefix in the IPv6 address storage unit 210 is 64 bits (step S122). When the IPv6 prefix of the IPv6 address storage unit 210 is 48 bits (step S122; No), the GW 200 performs the following processing. The GW 200 notifies the mobile phone 100 of the MAC address on the LAN 20 side of the MAC address storage unit 208, the code of the code storage unit 209, and the IPv6 prefix of the IPv6 address storage unit 210 as the WAN side address of the GW 200 (step S123).

一方、GW200は、IPv6アドレス記憶部210のIPv6プレフィックスが64ビットである場合には(ステップS122;Yes)、以下の処理を行う。GW200は、IPv6アドレス記憶部210のIPv6プレフィックスに任意の64ビットの値を追加することで、WAN側IPv6アドレスを生成し、WAN側IPv6アドレスを携帯電話100に通知する(ステップS124)。なお、GW200は、生成したWAN側IPv6アドレスを保持しておく。   On the other hand, when the IPv6 prefix of the IPv6 address storage unit 210 is 64 bits (step S122; Yes), the GW 200 performs the following processing. The GW 200 generates a WAN-side IPv6 address by adding an arbitrary 64-bit value to the IPv6 prefix in the IPv6 address storage unit 210, and notifies the WAN-side IPv6 address to the mobile phone 100 (step S124). The GW 200 holds the generated WAN side IPv6 address.

本実施例では、IPv6アドレス記憶部210のIPv6プレフィックスが48ビットである。このため、GW200は、図12の例において、LAN20側のMACアドレス、コード及びIPv6プレフィックスを携帯電話100に通知する(ステップS122;No、S123)。   In this embodiment, the IPv6 prefix of the IPv6 address storage unit 210 is 48 bits. Therefore, the GW 200 notifies the mobile phone 100 of the MAC address, code, and IPv6 prefix on the LAN 20 side in the example of FIG. 12 (steps S122; No, S123).

図11に戻り、携帯電話100は、GW200から通知されたIPv6プレフィックス、コード及びLAN20側のMACアドレスを受信する(ステップS105)。携帯電話100は、IPv4/IPv6パケット送信処理を実行する(ステップS106)。   Returning to FIG. 11, the mobile phone 100 receives the IPv6 prefix, the code, and the MAC address on the LAN 20 side notified from the GW 200 (step S105). The cellular phone 100 executes an IPv4 / IPv6 packet transmission process (step S106).

ここで、ステップS106のIPv4/IPv6パケット送信処理について説明する。図13は、実施例1の携帯電話が実行するIPv4/IPv6パケット送信処理の処理手順を示すフローチャートである。   Here, the IPv4 / IPv6 packet transmission processing in step S106 will be described. FIG. 13 is a flowchart illustrating a processing procedure of IPv4 / IPv6 packet transmission processing executed by the mobile phone according to the first embodiment.

図13に示すように、携帯電話100は、LAN20のTV5との間の通信を中継する旨をGW200に要求する通信要求をユーザから受け付けたか否かを判定する(ステップS131)。携帯電話100は、通信要求を受け付けていない場合には(ステップS131;No)、処理をステップS131に戻す。   As illustrated in FIG. 13, the mobile phone 100 determines whether or not a communication request for requesting the GW 200 to relay communication with the TV 5 of the LAN 20 is received from the user (step S131). If the mobile phone 100 has not received a communication request (step S131; No), the process returns to step S131.

一方、携帯電話100は、通信要求を受け付けた場合には(ステップS131;Yes)、接続性の確認のためのIPv4パケットを生成してGW200に送信し(ステップS132)、GW200からの返信を待つ(ステップS133)。携帯電話100は、GW200からの返信があった場合には(ステップS133;Yes)、以下の処理を行う。携帯電話100は、IPv4アドレス管理テーブル111を参照し、TV5のIPv4アドレスを宛先に設定し、携帯電話100のIPv4アドレスを送信元に設定したIPv4パケットを生成する(ステップS134)。そして、携帯電話100は、生成したIPv4パケットをGW200に送信する(ステップS135)。   On the other hand, when the mobile phone 100 receives a communication request (step S131; Yes), the mobile phone 100 generates an IPv4 packet for confirming connectivity and transmits the packet to the GW 200 (step S132), and waits for a reply from the GW 200. (Step S133). When there is a reply from the GW 200 (step S133; Yes), the mobile phone 100 performs the following processing. The mobile phone 100 refers to the IPv4 address management table 111, and generates an IPv4 packet in which the IPv4 address of the TV 5 is set as the destination and the IPv4 address of the mobile phone 100 is set as the transmission source (step S134). Then, the mobile phone 100 transmits the generated IPv4 packet to the GW 200 (step S135).

携帯電話100は、GW200からの返信がなかった場合には(ステップS133;No)、以下の処理を行う。携帯電話100は、IPv4アドレス管理テーブル111及びIPv6アドレス管理テーブル112を参照する。そして、携帯電話100は、携帯電話100のIPv6プレフィックスを送信元に設定し、携帯電話100及びTV5のIPv4アドレスを含むIPv6パケットを生成する(ステップS136)。そして、携帯電話100は、生成したIPv6パケットをWAN10を介してGW200に送信する(ステップS137)。   When there is no reply from the GW 200 (step S133; No), the mobile phone 100 performs the following processing. The mobile phone 100 refers to the IPv4 address management table 111 and the IPv6 address management table 112. Then, the mobile phone 100 sets the IPv6 prefix of the mobile phone 100 as a transmission source, and generates an IPv6 packet including the IPv4 addresses of the mobile phone 100 and the TV 5 (step S136). Then, the cellular phone 100 transmits the generated IPv6 packet to the GW 200 via the WAN 10 (step S137).

図11の例では、携帯電話100がGW200と接続可能な範囲に存在する。このため、携帯電話100は、図13の例において、TV5のIPv4アドレスを宛先に設定したIPv4パケットを生成してGW200に送信する(ステップS133;Yes、S134、S135)。   In the example of FIG. 11, the mobile phone 100 exists in a range that can be connected to the GW 200. Therefore, the mobile phone 100 generates an IPv4 packet in which the IPv4 address of the TV 5 is set as the destination in the example of FIG. 13 and transmits it to the GW 200 (step S133; Yes, S134, S135).

図11に戻り、GW200は、携帯電話100から送信されたIPv4パケットを受信する(ステップS107)。GW200は、受信したIPv4パケットをLAN20のTV5に転送する(ステップS108)。TV5は、IPv4パケットを受信し、IPv4パケットに格納されたデータを基にして所定の処理を行う。その後、TV5は、自身のIPv4アドレスを送信元に設定し、携帯電話100のIPv4アドレスを宛先に設定したIPv4パケットを生成してGW200に送信する(ステップS109)。GW200は、TV5から送信されたIPv4パケットを受信して、携帯電話100に転送する(ステップS110)。   Returning to FIG. 11, the GW 200 receives the IPv4 packet transmitted from the mobile phone 100 (step S107). The GW 200 transfers the received IPv4 packet to the TV 5 of the LAN 20 (step S108). The TV 5 receives the IPv4 packet and performs a predetermined process based on the data stored in the IPv4 packet. Thereafter, the TV 5 sets its own IPv4 address as a transmission source, generates an IPv4 packet in which the IPv4 address of the mobile phone 100 is set as a destination, and transmits it to the GW 200 (step S109). The GW 200 receives the IPv4 packet transmitted from the TV 5 and transfers it to the mobile phone 100 (step S110).

次に、実施例1に係る通信システムの携帯電話100がWAN10のエリアネットワーク3と無線により接続し、WAN10及びGW200を介してLAN20のTV5と通信する一連の処理の処理手順について説明する。図14は、実施例1に係る通信システムの携帯電話がWAN及びGWを介してLANのTVと通信する処理の処理手順の一例を示すシーケンス図である。図14の例では、携帯電話100がWAN10のエリアネットワーク3と接続可能な範囲に存在するものとする。   Next, a processing procedure of a series of processes in which the mobile phone 100 of the communication system according to the first embodiment is wirelessly connected to the area network 3 of the WAN 10 and communicates with the TV 5 of the LAN 20 via the WAN 10 and the GW 200 will be described. FIG. 14 is a sequence diagram illustrating an example of a processing procedure of processing in which the mobile phone of the communication system according to the first embodiment communicates with the LAN TV via the WAN and the GW. In the example of FIG. 14, it is assumed that the mobile phone 100 exists in a range that can be connected to the area network 3 of the WAN 10.

図14に示すように、携帯電話100は、WAN10のエリアネットワーク3から通知されるIPv6プレフィックスを受信する(ステップS141)。携帯電話100は、IPv4/IPv6パケット送信処理を実行する(ステップS142)。   As shown in FIG. 14, the mobile phone 100 receives the IPv6 prefix notified from the area network 3 of the WAN 10 (step S141). The cellular phone 100 executes an IPv4 / IPv6 packet transmission process (step S142).

ここで、ステップS142のIPv4/IPv6パケット送信処理について説明する。ステップS142のIPv4/IPv6パケット送信処理は、図13に示したIPv4/IPv6パケット送信処理に対応する。   Here, the IPv4 / IPv6 packet transmission processing in step S142 will be described. The IPv4 / IPv6 packet transmission process in step S142 corresponds to the IPv4 / IPv6 packet transmission process shown in FIG.

図14の例では、携帯電話100がGW200と接続可能な範囲に存在せず、WAN10のエリアネットワーク3と接続可能な範囲に存在する。このため、携帯電話100は、図13の例において、携帯電話100のIPv6プレフィックスを送信元に設定し、携帯電話100及びTV5のIPv4アドレスを含むIPv6パケットを生成する(ステップS133;No、S136)。そして、携帯電話100は、生成したIPv6パケットをWAN10を介してGW200に送信する(ステップS137)。ステップS136によって生成されたIPv6パケットは、例えば、図15に示すものとなる。図15は、IPv6パケットのデータ構造の一例を示す図(その1)である。   In the example of FIG. 14, the mobile phone 100 does not exist in a range that can be connected to the GW 200, but exists in a range that can be connected to the area network 3 of the WAN 10. Therefore, in the example of FIG. 13, the mobile phone 100 sets the IPv6 prefix of the mobile phone 100 as a transmission source, and generates an IPv6 packet including the IPv4 addresses of the mobile phone 100 and the TV 5 (step S133; No, S136). . Then, the cellular phone 100 transmits the generated IPv6 packet to the GW 200 via the WAN 10 (step S137). The IPv6 packet generated in step S136 is, for example, as shown in FIG. FIG. 15 is a diagram (part 1) illustrating an example of a data structure of an IPv6 packet.

図15に示すIPv6パケットは、v6宛先、v6送信元及びペイロードを有する。このうち、v6宛先は、IPv6パケットの宛先アドレスであり、宛先IPv6プレフィックス、コード、v4宛先及びv4送信元を含む。宛先IPv6プレフィックスは、携帯電話100がGW200から通知されたGW200のIPv6プレフィックスを格納する。コードは、携帯電話100がGW200から通知されたコードを格納する。v4宛先は、自携帯電話100にて取得したTV5のIPv4アドレスを格納する。v4送信元は、自携帯電話100にて取得した携帯電話100のIPv4アドレスを格納する。また、v6送信元は、IPv6パケットの送信元アドレスであり、送信元IPv6プレフィックス、コード及びLAN側MACアドレスを含む。送信元IPv6プレフィックスは、携帯電話100がWAN10のエリアネットワーク3から通知された携帯電話100のIPv6プレフィックスを格納する。コードは、携帯電話100がGW200から通知されたコードを格納する。LAN側MACアドレスは、携帯電話100がGW200から通知されたLAN20側のMACアドレスを格納する。ペイロードは、TV5を操作するためのデータを格納する。   The IPv6 packet shown in FIG. 15 has a v6 destination, a v6 transmission source, and a payload. Among these, the v6 destination is a destination address of the IPv6 packet, and includes a destination IPv6 prefix, a code, a v4 destination, and a v4 transmission source. The destination IPv6 prefix stores the IPv6 prefix of the GW 200 notified from the GW 200 by the mobile phone 100. The code stores the code notified from the GW 200 by the mobile phone 100. The v4 destination stores the IPv4 address of the TV 5 acquired by the mobile phone 100. The v4 transmission source stores the IPv4 address of the mobile phone 100 acquired by the mobile phone 100. The v6 transmission source is a transmission source address of an IPv6 packet, and includes a transmission source IPv6 prefix, a code, and a LAN side MAC address. The source IPv6 prefix stores the IPv6 prefix of the mobile phone 100 notified from the area network 3 of the WAN 10 by the mobile phone 100. The code stores the code notified from the GW 200 by the mobile phone 100. The LAN side MAC address stores the MAC address on the LAN 20 side, which is notified from the GW 200 by the mobile phone 100. The payload stores data for operating the TV 5.

図15の例を用いて、携帯電話100がIPv6パケットを生成する処理を説明する。携帯電話100は、GW情報管理テーブル113に含まれるGW200のIPv6プレフィックスをIPv6パケットの宛先IPv6プレフィックスに設定する。携帯電話100は、GW情報管理テーブル113のコードをIPv6パケットのコードに格納する。携帯電話100は、IPv4アドレス管理テーブル111に含まれる携帯電話100のIPv4アドレス及びTV5のIPv4アドレスをIPv6パケットのv4送信元及びv4宛先にそれぞれ格納する。携帯電話100は、IPv6アドレス管理テーブル112に含まれる携帯電話100のIPv6プレフィックスをIPv6パケットの送信元IPv6プレフィックスに設定する。携帯電話100は、GW情報管理テーブル113に含まれるGW200のLAN20側のMACアドレスをIPv6パケットのLAN側MACアドレスに格納する。携帯電話100は、TV5を操作するためのデータをIPv6パケットのペイロードに格納する。これにより、IPv6パケットが生成される。   A process in which the mobile phone 100 generates an IPv6 packet will be described using the example of FIG. The cellular phone 100 sets the IPv6 prefix of the GW 200 included in the GW information management table 113 as the destination IPv6 prefix of the IPv6 packet. The cellular phone 100 stores the code of the GW information management table 113 in the code of the IPv6 packet. The cellular phone 100 stores the IPv4 address of the cellular phone 100 and the IPv4 address of the TV 5 included in the IPv4 address management table 111 in the v4 transmission source and the v4 destination of the IPv6 packet, respectively. The mobile phone 100 sets the IPv6 prefix of the mobile phone 100 included in the IPv6 address management table 112 as the source IPv6 prefix of the IPv6 packet. The mobile phone 100 stores the MAC address on the LAN 20 side of the GW 200 included in the GW information management table 113 in the LAN side MAC address of the IPv6 packet. The cellular phone 100 stores data for operating the TV 5 in the payload of the IPv6 packet. Thereby, an IPv6 packet is generated.

図14に戻り、GW200は、携帯電話100から送信されたIPv6パケットを、WAN10を介して受信する(ステップS143)。なお、携帯電話100から送信されたIPv6パケットのv6宛先にはコードが含まれる。GW200は、IPv4パケット転送処理を実行する(ステップS144)。   Returning to FIG. 14, the GW 200 receives the IPv6 packet transmitted from the mobile phone 100 via the WAN 10 (step S143). A code is included in the v6 destination of the IPv6 packet transmitted from the mobile phone 100. The GW 200 executes an IPv4 packet transfer process (step S144).

ここで、ステップS144のIPv4パケット転送処理について説明する。図16は、実施例1のGWが実行するIPv4パケット転送処理の処理手順を示すフローチャートである。   Here, the IPv4 packet transfer processing in step S144 will be described. FIG. 16 is a flowchart illustrating a processing procedure of IPv4 packet transfer processing executed by the GW according to the first embodiment.

図16に示すように、GW200は、WAN10からIPv6パケットを受信する(ステップS151)。GW200は、IPv6パケットのv6宛先にコードが含まれているか否かを判定する(ステップS152)。GW200は、IPv6パケットのv6宛先にコードが含まれていない場合には(ステップS152;No)、v6宛先が自身の保持するWAN側IPv6アドレスと一致するか否かを判定する(ステップS153)。GW200は、一致する場合には(ステップS153;Yes)、処理をステップS159に進める。一方、GW200は、一致しない場合には(ステップS153;No)、IPv6ルーティングテーブル206を基にして、IPv6パケットをLAN20内のIPv6電子機器に転送する(ステップS154)。   As shown in FIG. 16, the GW 200 receives an IPv6 packet from the WAN 10 (step S151). The GW 200 determines whether a code is included in the v6 destination of the IPv6 packet (step S152). When the code is not included in the v6 destination of the IPv6 packet (step S152; No), the GW 200 determines whether or not the v6 destination matches the WAN-side IPv6 address held by the GW 200 (step S153). When the GW 200 matches (step S153; Yes), the process proceeds to step S159. On the other hand, when they do not match (step S153; No), the GW 200 transfers the IPv6 packet to the IPv6 electronic device in the LAN 20 based on the IPv6 routing table 206 (step S154).

一方、GW200は、IPv6パケットのv6宛先にコードが含まれている場合には(ステップS152;Yes)、コードがWAN10に接続する携帯電話100とLAN20のTV5との間の通信を終了することを示すか否かを判定する(ステップS155)。GW200は、コードが通信終了を示していない場合には(ステップS155;No)、IPv6パケットのv6送信元からLAN側MACアドレスを抽出する(ステップS156)。GW200は、IPv6パケットのLAN側MACアドレスがMACアドレス記憶部208のLAN側MACアドレスと一致するか否かを判定する(ステップS157)。   On the other hand, when the code is included in the v6 destination of the IPv6 packet (step S152; Yes), the GW 200 terminates the communication between the mobile phone 100 connected to the WAN 10 and the TV 5 of the LAN 20. Whether to show or not is determined (step S155). When the code does not indicate the end of communication (step S155; No), the GW 200 extracts the LAN side MAC address from the v6 transmission source of the IPv6 packet (step S156). The GW 200 determines whether or not the LAN side MAC address of the IPv6 packet matches the LAN side MAC address of the MAC address storage unit 208 (step S157).

GW200は、IPv6パケットのLAN側MACアドレスがMACアドレス記憶部208のLAN側MACアドレスと一致しない場合には(ステップS157;No)、認証失敗と判断し、IPv6パケットを破棄する(ステップS158)。   When the LAN side MAC address of the IPv6 packet does not match the LAN side MAC address of the MAC address storage unit 208 (step S157; No), the GW 200 determines that the authentication has failed and discards the IPv6 packet (step S158).

GW200は、IPv6パケットのLAN側MACアドレスがMACアドレス記憶部208のLAN側MACアドレスと一致する場合には(ステップS157;Yes)、認証成功と判断し、以下の処理を行う。すなわち、GW200は、IPv6−IPv4アドレス変換テーブル203を参照し(ステップS159)、IPv6パケットのv6送信元と同一の「IPv6アドレス」のエントリが存在するか否かを判定する(ステップS160)。GW200は、IPv6パケットのv6送信元と同一の「IPv6アドレス」のエントリが存在しない場合には(ステップS160;No)、以下の処理を行う。すなわち、GW200は、IPv6パケットのv4送信元と同一の「IPv4アドレス」のエントリが存在するか否かを判定する(ステップS161)。   When the LAN side MAC address of the IPv6 packet matches the LAN side MAC address of the MAC address storage unit 208 (step S157; Yes), the GW 200 determines that the authentication is successful and performs the following processing. That is, the GW 200 refers to the IPv6-IPv4 address conversion table 203 (step S159), and determines whether there is an entry with the same “IPv6 address” as the v6 transmission source of the IPv6 packet (step S160). When there is no entry of “IPv6 address” that is the same as the v6 transmission source of the IPv6 packet (step S160; No), the GW 200 performs the following processing. That is, the GW 200 determines whether there is an entry with the same “IPv4 address” as the v4 transmission source of the IPv6 packet (step S161).

GW200は、IPv6パケットのv4送信元と同一の「IPv4アドレス」のエントリが存在しない場合には(ステップS161;No)、以下の処理を行う。すなわち、GW200は、IPv6パケットのv6送信元とv4送信元とを対応付けてIPv6−IPv4アドレス変換テーブル203に新規エントリとして格納し、新規エントリのタイマ値をさらに設定する(ステップS162)。なお、GW200は、IPv6パケットにコードが含まれている場合には、IPv6パケットに含まれるコードをIPv6−IPv4アドレス変換テーブル203にさらに格納する。そして、GW200は、IPv6パケットのv4送信元と同一の宛先IPv4アドレスのエントリがIPv4ルーティングテーブル205に存在しない場合には(ステップS163;No)、処理をステップS170に進める。GW200は、IPv6パケットのv4送信元と同一の宛先IPv4アドレスのエントリがIPv4ルーティングテーブル205に存在する場合には(ステップS163;Yes)、以下の処理を行う。すなわち、GW200は、同エントリをIPv4ルーティングテーブル205から削除し(ステップS164)、処理をステップS170に進める。   When there is no entry of “IPv4 address” that is the same as the v4 transmission source of the IPv6 packet (step S161; No), the GW 200 performs the following processing. That is, the GW 200 associates the v6 transmission source and the v4 transmission source of the IPv6 packet and stores them as a new entry in the IPv6-IPv4 address translation table 203, and further sets the timer value of the new entry (step S162). Note that the GW 200 further stores the code included in the IPv6 packet in the IPv6-IPv4 address conversion table 203 when the code is included in the IPv6 packet. Then, when there is no entry in the IPv4 routing table 205 having the same destination IPv4 address as the v4 transmission source of the IPv6 packet (step S163; No), the GW 200 advances the process to step S170. When an entry with the same destination IPv4 address as the v4 transmission source of the IPv6 packet exists in the IPv4 routing table 205 (step S163; Yes), the GW 200 performs the following processing. That is, the GW 200 deletes the entry from the IPv4 routing table 205 (step S164), and the process proceeds to step S170.

一方、GW200は、IPv6パケットのv4送信元と同一の「IPv4アドレス」のエントリが存在する場合には(ステップS161;Yes)、以下の処理を行う。すなわち、GW200は、携帯電話100のIPv6プレフィックスが変更されたので、IPv6パケットのv4送信元と同一の「IPv4アドレス」のエントリをIPv6−IPv4アドレス変換テーブル203から削除する(ステップS165)。そして、GW200は、IPv6パケットのv6送信元とv4送信元とを対応付けてIPv6−IPv4アドレス変換テーブル203に新規エントリとして格納し、新規エントリのタイマ値をさらに設定する(ステップS166)。なお、GW200は、IPv6パケットにコードが含まれている場合には、IPv6パケットに含まれるコードをIPv6−IPv4アドレス変換テーブル203にさらに格納する。   On the other hand, when there is an entry with the same “IPv4 address” as the v4 transmission source of the IPv6 packet (step S161; Yes), the GW 200 performs the following processing. That is, since the IPv6 prefix of the mobile phone 100 has been changed, the GW 200 deletes the same “IPv4 address” entry as the v4 transmission source of the IPv6 packet from the IPv6-IPv4 address conversion table 203 (step S165). Then, the GW 200 associates the v6 transmission source and the v4 transmission source of the IPv6 packet and stores them as a new entry in the IPv6-IPv4 address conversion table 203, and further sets a timer value for the new entry (step S166). Note that the GW 200 further stores the code included in the IPv6 packet in the IPv6-IPv4 address conversion table 203 when the code is included in the IPv6 packet.

一方、GW200は、IPv6パケットのv6送信元と同一の「IPv6アドレス」のエントリがIPv6−IPv4アドレス変換テーブル203に存在する場合には(ステップS160;Yes)、以下の処理を行う。すなわち、GW200は、携帯電話100のIPv6アドレスが既に登録済みであるので、IPv6パケットのv6送信元と同一の「IPv6アドレス」のエントリのタイマ値を初期値にリセットし(ステップS167)、処理をステップS170に進める。   On the other hand, when the entry of “IPv6 address” identical to the v6 transmission source of the IPv6 packet exists in the IPv6-IPv4 address conversion table 203 (step S160; Yes), the GW 200 performs the following processing. That is, since the IPv6 address of the mobile phone 100 has already been registered, the GW 200 resets the timer value of the “IPv6 address” entry that is the same as the v6 transmission source of the IPv6 packet to the initial value (step S167), and performs the processing. Proceed to step S170.

GW200は、IPv6パケットのコードが通信終了を示している場合には(ステップS155;Yes)、IPv6−IPv4アドレス変換テーブル203を参照する(ステップS168)。GW200は、IPv6パケットのv6送信元と同一の「IPv6アドレス」のエントリを削除する(ステップS169)。   When the code of the IPv6 packet indicates the end of communication (step S155; Yes), the GW 200 refers to the IPv6-IPv4 address conversion table 203 (step S168). The GW 200 deletes the same “IPv6 address” entry as the v6 transmission source of the IPv6 packet (step S169).

ステップS170では、GW200は、IPv6−IPv4アドレス変換テーブル203を基に、携帯電話100のIPv4アドレスを送信元に設定し、IPv6パケットに含まれるTV5のIPv4アドレスを宛先に設定したIPv4パケットを生成する。そして、GW200は、生成したIPv4パケットをLAN20のTV5に転送する(ステップS171)。ステップS170によって生成されたIPv4パケットは、例えば、図17に示すものとなる。図17は、IPv4パケットのデータ構造の一例(その1)を示す図である。   In step S170, the GW 200 sets the IPv4 address of the mobile phone 100 as the transmission source based on the IPv6-IPv4 address conversion table 203, and generates an IPv4 packet in which the IPv4 address of the TV 5 included in the IPv6 packet is set as the destination. . Then, the GW 200 transfers the generated IPv4 packet to the TV 5 of the LAN 20 (step S171). The IPv4 packet generated in step S170 is, for example, as shown in FIG. FIG. 17 is a diagram illustrating an example (part 1) of the data structure of the IPv4 packet.

図17に示すIPv4パケットは、v4宛先、v4送信元及びペイロードを有する。このうち、v4宛先は、IPv4パケットの宛先アドレスであり、IPv4パケットの転送先となるTV5のIPv4アドレスを格納する。v4送信元は、IPv4パケットの送信元アドレスであり、IPv4パケットの仮の送信元となる携帯電話100のIPv4アドレスを格納する。   The IPv4 packet shown in FIG. 17 has a v4 destination, a v4 transmission source, and a payload. Among these, the v4 destination is the destination address of the IPv4 packet, and stores the IPv4 address of the TV 5 that is the transfer destination of the IPv4 packet. The v4 transmission source is a transmission source address of the IPv4 packet, and stores the IPv4 address of the mobile phone 100 that is a temporary transmission source of the IPv4 packet.

図17の例を用いて、GW200がIPv4パケットを生成する処理を説明する。GW200は、IPv6パケットのv6送信元に対応する携帯電話100のIPv4アドレスをIPv6−IPv4アドレス変換テーブル203から取得する。GW200は、取得した携帯電話100のIPv4アドレスをIPv4パケットのv4送信元に設定する。GW200は、IPv6パケットのv4宛先に格納されたTV5のIPv4アドレスをIPv4パケットのv4宛先に設定する。GW200は、IPv6パケットのペイロードに格納されたデータをIPv4パケットのペイロードに格納する。これにより、IPv4パケットが生成される。   A process in which the GW 200 generates an IPv4 packet will be described using the example of FIG. The GW 200 acquires the IPv4 address of the mobile phone 100 corresponding to the v6 transmission source of the IPv6 packet from the IPv6-IPv4 address conversion table 203. The GW 200 sets the acquired IPv4 address of the mobile phone 100 as the v4 transmission source of the IPv4 packet. The GW 200 sets the IPv4 address of the TV 5 stored in the v4 destination of the IPv6 packet as the v4 destination of the IPv4 packet. The GW 200 stores the data stored in the payload of the IPv6 packet in the payload of the IPv4 packet. Thereby, an IPv4 packet is generated.

図14の例では、携帯電話100から送信されたIPv6パケットのv6宛先にはコードが含まれる。このため、WAN10からIPv6パケットを受信したGW200は、図16の例において、IPv6パケットのv6宛先にコードが含まれていると判定し、コートが通信終了を示していないと判定する(ステップS151、S152;Yes、S155;Yes)。その後、GW200は、IPv6パケットのLAN側MACアドレスがMACアドレス記憶部208のLAN側MACアドレスと一致すると判定し、IPv4パケットを生成してLAN20のTV5に転送する(ステップS157;Yes、S160〜S171)。   In the example of FIG. 14, the code is included in the v6 destination of the IPv6 packet transmitted from the mobile phone 100. Therefore, the GW 200 that has received the IPv6 packet from the WAN 10 determines that the code is included in the v6 destination of the IPv6 packet in the example of FIG. 16, and determines that the code does not indicate the end of communication (step S151, S152; Yes, S155; Yes). Thereafter, the GW 200 determines that the LAN side MAC address of the IPv6 packet matches the LAN side MAC address of the MAC address storage unit 208, generates an IPv4 packet, and transfers the packet to the TV 5 of the LAN 20 (step S157; Yes, S160 to S171). ).

図14に戻り、TV5は、GW200から転送されたIPv4パケットを受信する(ステップS145)。TV5は、IPv4パケットに格納されたデータを基にして所定の処理を行う。その後、TV5は、自身のIPv4アドレスを送信元に設定し、携帯電話100のIPv4アドレスを宛先に設定したIPv4パケットを生成してGW200に返信する(ステップS146)。ステップS146によって返信されたIPv4パケットは、例えば、図18に示すものとなる。図18は、IPv4パケットのデータ構造の一例(その2)を示す図である。   Returning to FIG. 14, the TV 5 receives the IPv4 packet transferred from the GW 200 (step S145). The TV 5 performs a predetermined process based on the data stored in the IPv4 packet. Thereafter, the TV 5 sets its own IPv4 address as a transmission source, generates an IPv4 packet in which the IPv4 address of the mobile phone 100 is set as a destination, and sends it back to the GW 200 (step S146). The IPv4 packet returned in step S146 is, for example, as shown in FIG. FIG. 18 is a diagram illustrating an example (part 2) of the data structure of the IPv4 packet.

図18に示すIPv4パケットは、v4宛先、v4送信元及びペイロードを有する。このうち、v4宛先は、IPv4パケットの宛先アドレスであり、IPv4パケットの仮の返信先となる携帯電話100のIPv4アドレスを格納する。v4送信元は、IPv4パケットの送信元アドレスであり、IPv4パケットの送信元となるTV5のIPv4アドレスを格納する。   The IPv4 packet shown in FIG. 18 has a v4 destination, a v4 transmission source, and a payload. Among these, the v4 destination is the destination address of the IPv4 packet, and stores the IPv4 address of the mobile phone 100 that is a temporary return destination of the IPv4 packet. The v4 transmission source is the transmission source address of the IPv4 packet, and stores the IPv4 address of the TV 5 that is the transmission source of the IPv4 packet.

図14に戻り、GW200は、TV5から返信されたIPv4パケットをLAN20から受信し、IPv6パケット転送処理を実行する(ステップS147)。TV5から返信されたIPv4パケットは、第三のパケットの一例である。   Returning to FIG. 14, the GW 200 receives the IPv4 packet returned from the TV 5 from the LAN 20, and executes the IPv6 packet transfer process (step S 147). The IPv4 packet returned from the TV 5 is an example of a third packet.

ここで、ステップS147のIPv6パケット転送処理について説明する。図19は、実施例1のGWが実行するIPv6パケット転送処理の処理手順を示すフローチャートである。   Here, the IPv6 packet transfer processing in step S147 will be described. FIG. 19 is a flowchart of the IPv6 packet transfer process performed by the GW according to the first embodiment.

図19に示すように、GW200は、LAN20からパケットを受信する(ステップS181)。GW200は、受信したパケットの宛先アドレスがIPv6アドレスである場合には(ステップS182;Yes)、受信したパケットがLAN20内のIPv6電子機器から送信されたIPv6パケットであるため、以下の処理を行う。すなわち、GW200は、IPv6ルーティングテーブル206を基にして、IPv6パケットをLAN20内の他のIPv6電子機器に転送する(ステップS183)。   As shown in FIG. 19, the GW 200 receives a packet from the LAN 20 (step S181). When the destination address of the received packet is an IPv6 address (step S182; Yes), the GW 200 performs the following processing because the received packet is an IPv6 packet transmitted from an IPv6 electronic device in the LAN 20. In other words, the GW 200 transfers the IPv6 packet to another IPv6 electronic device in the LAN 20 based on the IPv6 routing table 206 (step S183).

一方、GW200は、受信したパケットの宛先アドレスがIPv4アドレスである場合には(ステップS182;No)、受信したパケットがIPv4パケットであるため、以下の処理を行う。すなわち、GW200は、IPv4パケットの宛先アドレスと同一の「IPv4アドレス」のエントリをIPv6−IPv4アドレス変換テーブル203から検索する(ステップS184)。GW200は、IPv4パケットの宛先アドレスと同一の「IPv4アドレス」のエントリが存在しない場合には(ステップS185;No)、以下の処理を行う。すなわち、GW200は、IPv4ルーティングテーブル205を基にして、IPv4パケットをLAN20内のIPv4電子機器に転送する(ステップS186)。   On the other hand, when the destination address of the received packet is an IPv4 address (step S182; No), the GW 200 performs the following process because the received packet is an IPv4 packet. That is, the GW 200 searches the IPv6-IPv4 address conversion table 203 for an entry of “IPv4 address” that is the same as the destination address of the IPv4 packet (step S184). When there is no entry of “IPv4 address” that is the same as the destination address of the IPv4 packet (step S185; No), the GW 200 performs the following processing. That is, the GW 200 transfers the IPv4 packet to the IPv4 electronic device in the LAN 20 based on the IPv4 routing table 205 (step S186).

一方、GW200は、IPv4パケットの宛先アドレスと同一の「IPv4アドレス」のエントリがIPv6−IPv4アドレス変換テーブル203に存在する場合には(ステップS185;Yes)、以下の処理を行う。すなわち、GW200は、IPv4パケットの宛先アドレスと同一の「IPv4アドレス」に対応する「IPv6アドレス」を宛先に設定したIPv6パケットを生成する(ステップS187)。そして、GW200は、生成したIPv6パケットをWAN10を介して携帯電話100に転送する(ステップS188)。ステップS187によって生成されたIPv6パケットは、例えば、図20に示すものとなる。図20は、IPv6パケットのデータ構造の一例を示す図(その2)である。   On the other hand, when the entry of “IPv4 address” that is the same as the destination address of the IPv4 packet exists in the IPv6-IPv4 address conversion table 203 (step S185; Yes), the GW 200 performs the following processing. That is, the GW 200 generates an IPv6 packet in which “IPv6 address” corresponding to the same “IPv4 address” as the destination address of the IPv4 packet is set as a destination (step S187). Then, the GW 200 transfers the generated IPv6 packet to the mobile phone 100 via the WAN 10 (step S188). The IPv6 packet generated in step S187 is, for example, as shown in FIG. FIG. 20 is a second diagram illustrating an exemplary data structure of an IPv6 packet.

図20に示すIPv6パケットは、v6宛先、v6送信元及びペイロードを有する。このうち、v6宛先は、IPv6パケットの宛先アドレスであり、宛先IPv6プレフィックス、コード及びLAN側MACアドレスを含む。宛先IPv6プレフィックスは、携帯電話100のIPv6プレフィックスを格納する。コードは、GW200の保持するコードを格納する。LAN側MACアドレスは、GW200のLAN20側のMACアドレスを格納する。また、v6送信元は、IPv6パケットの送信元アドレスであり、送信元IPv6プレフィックス、コード、v4送信元及びv4宛先を含む。送信元IPv6プレフィックスは、GW200のIPv6プレフィックスを格納する。コードは、GW200の保持するコードを格納する。v4送信元は、TV5のIPv4アドレスを格納する。v4宛先は、携帯電話100のIPv4アドレスを格納する。ペイロードは、所定のデータを格納する。   The IPv6 packet shown in FIG. 20 has a v6 destination, a v6 transmission source, and a payload. Among these, the v6 destination is a destination address of the IPv6 packet, and includes a destination IPv6 prefix, a code, and a LAN side MAC address. The destination IPv6 prefix stores the IPv6 prefix of the mobile phone 100. The code stores a code held by the GW 200. The LAN side MAC address stores the MAC address on the LAN 20 side of the GW 200. The v6 transmission source is a transmission source address of the IPv6 packet, and includes a transmission source IPv6 prefix, a code, a v4 transmission source, and a v4 destination. The source IPv6 prefix stores the IPv6 prefix of the GW 200. The code stores a code held by the GW 200. The v4 transmission source stores the IPv4 address of TV5. The v4 destination stores the IPv4 address of the mobile phone 100. The payload stores predetermined data.

図20の例を用いて、GW200がIPv6パケットを生成する処理を説明する。GW200は、IPv6−IPv4アドレス変換テーブル203を参照して、IPv4パケットの宛先アドレスと同一のIPv4アドレスに対応する携帯電話100のIPv6アドレスをIPv6パケットのv6宛先に設定する。GW200は、IPv6アドレス記憶部210のIPv6プレフィックスをIPv6パケットの送信元IPv6プレフィックスに格納する。GW200は、IPv6−IPv4アドレス変換テーブル203を参照して、IPv4パケットの宛先アドレスと同一のIPv4アドレスに対応するコードをIPv6パケットのコードに格納する。GW200は、IPv4パケットのv4宛先及びv4送信元をIPv6パケットのv4宛先及びv4送信元にそれぞれ格納する。これにより、IPv6パケットが生成される。   A process in which the GW 200 generates an IPv6 packet will be described using the example of FIG. The GW 200 refers to the IPv6-IPv4 address conversion table 203 and sets the IPv6 address of the mobile phone 100 corresponding to the same IPv4 address as the destination address of the IPv4 packet as the v6 destination of the IPv6 packet. The GW 200 stores the IPv6 prefix in the IPv6 address storage unit 210 in the source IPv6 prefix of the IPv6 packet. The GW 200 refers to the IPv6-IPv4 address conversion table 203 and stores a code corresponding to the same IPv4 address as the destination address of the IPv4 packet in the code of the IPv6 packet. The GW 200 stores the v4 destination and the v4 transmission source of the IPv4 packet in the v4 destination and the v4 transmission source of the IPv6 packet, respectively. Thereby, an IPv6 packet is generated.

図14の例では、TV5から返信されたIPv4パケットのv4宛先には携帯電話100のIPv4アドレスが含まれる。このため、LAN20からIPv4パケットを受信したGW200は、図19の例において、IPv4パケットの宛先アドレスがIPv4アドレスであることを確認する(ステップS181、S182;No)。その後、GW200は、IPv4パケットの宛先アドレスと同一の「IPv4アドレス」のエントリがIPv6−IPv4アドレス変換テーブル203に存在すると判定する(ステップS184、S185;Yes)。そして、GW200は、同エントリの対応するIPv6アドレスを宛先に設定したIPv6パケットを生成して携帯電話100に転送する(ステップS187、S188)。   In the example of FIG. 14, the IPv4 address of the mobile phone 100 is included in the v4 destination of the IPv4 packet returned from the TV 5. Therefore, the GW 200 that has received the IPv4 packet from the LAN 20 confirms that the destination address of the IPv4 packet is an IPv4 address in the example of FIG. 19 (steps S181 and S182; No). Thereafter, the GW 200 determines that an entry with the same “IPv4 address” as the destination address of the IPv4 packet exists in the IPv6-IPv4 address conversion table 203 (steps S184 and S185; Yes). Then, the GW 200 generates an IPv6 packet in which the corresponding IPv6 address of the entry is set as a destination, and transfers it to the mobile phone 100 (steps S187 and S188).

図14に戻り、携帯電話100は、GW200から転送されたIPv6パケットを受信する(ステップS148)。なお、携帯電話100は、IPv6パケットに含まれるデータを用いて所定の処理を行う。GW200は、所定のタイミングでIPv4−IPv6アドレス削除処理を行う(ステップS149)。   Returning to FIG. 14, the mobile phone 100 receives the IPv6 packet transferred from the GW 200 (step S148). Note that the mobile phone 100 performs predetermined processing using data included in the IPv6 packet. The GW 200 performs an IPv4-IPv6 address deletion process at a predetermined timing (step S149).

ここで、ステップS149のIPv4−IPv6アドレス削除処理について説明する。図21は、実施例1のGWが実行するIPv4−IPv6アドレス削除処理の処理手順を示すフローチャートである。図21に示す処理は、例えば、クロックイベントが発生したことを契機にして実行される。   Here, the IPv4-IPv6 address deletion processing in step S149 will be described. FIG. 21 is a flowchart illustrating the processing procedure of IPv4-IPv6 address deletion processing executed by the GW according to the first embodiment. The process illustrated in FIG. 21 is executed, for example, when a clock event occurs.

図21に示すように、GW200は、クロックイベントがない場合には(ステップS191;No)、処理を終了する。一方、GW200は、クロックイベントがある場合には(ステップS191;Yes)、IPv6−IPv4アドレス変換テーブル203の全エントリのタイマ値をデクリメントする(ステップS192)。   As illustrated in FIG. 21, when there is no clock event (step S191; No), the GW 200 ends the process. On the other hand, when there is a clock event (step S191; Yes), the GW 200 decrements the timer values of all entries in the IPv6-IPv4 address conversion table 203 (step S192).

GW200は、タイマ値=0となったエントリがない場合には(ステップS193;No)、処理を終了する。一方、GW200は、タイマ値=0となったエントリがある場合には(ステップS193;Yes)、同エントリをIPv6−IPv4アドレス変換テーブル203から削除する(ステップS194)。   When there is no entry for which the timer value = 0, the GW 200 ends the process (Step S193; No). On the other hand, when there is an entry with the timer value = 0 (step S193; Yes), the GW 200 deletes the entry from the IPv6-IPv4 address conversion table 203 (step S194).

次に、実施例1に係る通信システムの効果について説明する。通信システムに含まれる携帯電話100は、WAN10に接続した際に、自携帯電話100のIPv6アドレスを送信元に設定し、自携帯電話100及びLAN20のTV5のIPv4アドレスを含めたIPv6パケットをWAN10を介してGW200に送信する。GW200は、WAN10から受信したIPv6パケットの送信元に設定された携帯電話100のIPv6アドレスとIPv6パケットに含まれる携帯電話100のIPv4アドレスとを対応付けてIPv6−IPv4アドレス変換テーブル203に格納する。GW200は、IPv6−IPv4アドレス変換テーブル203の携帯電話100のIPv6アドレスを送信元に設定し、IPv6パケットに含まれるTV5のIPv4アドレスを宛先に設定したIPv4パケットを生成してLAN20のTV5に転送する。このため、本実施例の通信システムでは、ポート番号と転送先のIPv4アドレスとの対応関係をGW200に事前登録することなく、IPv4パケットをLAN20のTV5に転送することができる。結果として、GW200のメモリ規模の増大を抑えつつ、WAN10からLAN20への通信を中継することができる。   Next, effects of the communication system according to the first embodiment will be described. When the mobile phone 100 included in the communication system is connected to the WAN 10, the IPv6 address of the mobile phone 100 is set as a transmission source, and an IPv6 packet including the IPv4 address of the TV 5 of the mobile phone 100 and the LAN 20 is sent to the WAN 10. Via GW200. The GW 200 associates the IPv6 address of the mobile phone 100 set as the transmission source of the IPv6 packet received from the WAN 10 with the IPv4 address of the mobile phone 100 included in the IPv6 packet, and stores them in the IPv6-IPv4 address conversion table 203. The GW 200 sets the IPv6 address of the mobile phone 100 in the IPv6-IPv4 address conversion table 203 as a transmission source, generates an IPv4 packet in which the IPv4 address of the TV5 included in the IPv6 packet is set as a destination, and transfers the IPv4 packet to the TV5 of the LAN 20 . For this reason, in the communication system of the present embodiment, the IPv4 packet can be transferred to the TV 5 of the LAN 20 without pre-registering the correspondence relationship between the port number and the IPv4 address of the transfer destination in the GW 200. As a result, communication from the WAN 10 to the LAN 20 can be relayed while suppressing an increase in the memory size of the GW 200.

また、本実施例におけるGW200は、TV5から返信されたIPv4パケットの宛先に設定された携帯電話100のIPv4アドレスに対応する携帯電話100のIPv6アドレスをIPv6−IPv4アドレス変換テーブル203から検索する。GW200は、検索した携帯電話100のIPv6アドレスを宛先に設定したIPv6パケットをWAN10を介して携帯電話100に転送する。このため、本実施例の通信システムでは、ポート番号と転送先のIPv6アドレスとの対応関係をGW200に事前登録することなく、IPv6パケットをWAN10を介して携帯電話100に転送することができる。結果として、GW200のメモリ規模の増大を抑えつつ、LAN20からWAN10への通信を中継することができる。   Further, the GW 200 in the present embodiment searches the IPv6-IPv4 address conversion table 203 for the IPv6 address of the mobile phone 100 corresponding to the IPv4 address of the mobile phone 100 set as the destination of the IPv4 packet returned from the TV 5. The GW 200 transfers the IPv6 packet in which the searched IPv6 address of the mobile phone 100 is set as the destination to the mobile phone 100 via the WAN 10. Therefore, in the communication system of the present embodiment, it is possible to transfer the IPv6 packet to the mobile phone 100 via the WAN 10 without pre-registering the correspondence relationship between the port number and the IPv6 address of the transfer destination in the GW 200. As a result, communication from the LAN 20 to the WAN 10 can be relayed while suppressing an increase in the memory size of the GW 200.

また、本実施例におけるGW200は、携帯電話100のIPv6アドレスとIPv4アドレスとの対応関係の保持期間を示すタイマ値が満了した場合に、満了したタイマ値に対応するエントリをIPv6−IPv4アドレス変換テーブル203から削除する。このため、本実施例の通信システムでは、所定の期間使用されていない携帯電話100のIPv6アドレスとIPv4アドレスとの対応関係を削除することができ、GW200のメモリを効率的に活用することができる。   In addition, when the timer value indicating the retention period of the correspondence relationship between the IPv6 address and the IPv4 address of the mobile phone 100 has expired, the GW 200 in the present embodiment displays an entry corresponding to the expired timer value in the IPv6-IPv4 address conversion table. Delete from 203. For this reason, in the communication system of the present embodiment, the correspondence relationship between the IPv6 address and the IPv4 address of the mobile phone 100 that has not been used for a predetermined period can be deleted, and the memory of the GW 200 can be used efficiently. .

上記実施例1では、GWが、満了したタイマ値に対応するエントリをIPv6−IPv4アドレス変換テーブルのエントリから削除する例について説明した。しかしながら、GWが、受信したIPv6パケットに通信終了を示す通信終了情報が含まれる場合に、IPv6パケットの送信元を含むエントリをIPv6−IPv4アドレス変換テーブルのエントリから削除するようにしてもよい。実施例2では、GWが受信したIPv6パケットに通信終了を示す通信終了情報が含まれる場合に、IPv6パケットの送信元を含むエントリをIPv6−IPv4アドレス変換テーブルのエントリから削除する例について説明する。   In the first embodiment, the example has been described in which the GW deletes the entry corresponding to the expired timer value from the entry of the IPv6-IPv4 address translation table. However, when the communication end information indicating the communication end is included in the received IPv6 packet, the GW may delete the entry including the source of the IPv6 packet from the entry of the IPv6-IPv4 address conversion table. In the second embodiment, an example in which an entry including an IPv6 packet transmission source is deleted from an entry of an IPv6-IPv4 address translation table when communication end information indicating communication end is included in an IPv6 packet received by the GW will be described.

本実施例の携帯電話100では、パケット送信部105が、通信要求受付部103から通信終了要求を受け付けた際に、WAN10に接続する携帯電話100とLAN20のTV5との間の通信終了を示すコードを含むIPv6パケットを生成する。例えば、パケット送信部105は、通信終了を示すコードとして図6に示した「0xFFFF」を含むIPv6パケットを生成する。通信終了を示すコードは、通信終了情報の一例である。パケット送信部105は、生成したIPv6パケットをWAN10を介してGW200に送信する。   In the mobile phone 100 of the present embodiment, when the packet transmission unit 105 receives a communication end request from the communication request reception unit 103, a code indicating the end of communication between the mobile phone 100 connected to the WAN 10 and the TV 5 of the LAN 20 An IPv6 packet including is generated. For example, the packet transmission unit 105 generates an IPv6 packet including “0xFFFF” illustrated in FIG. 6 as a code indicating the end of communication. The code indicating the end of communication is an example of communication end information. The packet transmission unit 105 transmits the generated IPv6 packet to the GW 200 via the WAN 10.

本実施例のGW200では、IPv6−IPv4アドレス格納部204は、IPv6パケットに通信終了を示すコードが含まれる場合に、以下の処理を行う。すなわち、IPv6−IPv4アドレス格納部204は、IPv6パケットの送信元に設定された携帯電話100のIPv6アドレスに対応するエントリをIPv6−IPv4アドレス変換テーブル203から削除する。   In the GW 200 of the present embodiment, the IPv6-IPv4 address storage unit 204 performs the following processing when a code indicating the end of communication is included in the IPv6 packet. That is, the IPv6-IPv4 address storage unit 204 deletes the entry corresponding to the IPv6 address of the mobile phone 100 set as the source of the IPv6 packet from the IPv6-IPv4 address conversion table 203.

図22は、実施例2に係る通信システムの携帯電話がWAN及びGWを介してLANのTVと通信する処理の処理手順の一例を示すシーケンス図である。図22の例では、携帯電話100がWAN10のエリアネットワーク3と接続可能な範囲に存在するものとする。なお、図22に示すステップS201〜S208は、図14に示したステップS141〜S148に対応するので、ここでは、その詳細な説明を省略する。   FIG. 22 is a sequence diagram illustrating an example of a processing procedure of a process in which the mobile phone of the communication system according to the second embodiment communicates with the LAN TV via the WAN and the GW. In the example of FIG. 22, it is assumed that the mobile phone 100 exists in a range that can be connected to the area network 3 of the WAN 10. Note that steps S201 to S208 illustrated in FIG. 22 correspond to steps S141 to S148 illustrated in FIG. 14, and thus detailed description thereof is omitted here.

図22に示すように、携帯電話100は、例えばユーザから通信終了要求の操作を受け付けた際に、通信終了を示すコードを含めたIPv6パケットをWAN10を介してGW200に送信する(ステップS209)。   As illustrated in FIG. 22, for example, when receiving an operation for a communication end request from a user, the mobile phone 100 transmits an IPv6 packet including a code indicating the end of communication to the GW 200 via the WAN 10 (step S209).

GW200は、携帯電話100から送信されたIPv6パケットを、WAN10を介して受信し、IPv4パケット転送処理を実行する(ステップS210)。   The GW 200 receives the IPv6 packet transmitted from the mobile phone 100 via the WAN 10 and executes an IPv4 packet transfer process (step S210).

ここで、ステップS210のIPv4パケット転送処理について説明する。ステップS210のIPv4パケット転送処理は、図16に示したIPv4パケット転送処理に対応する。   Here, the IPv4 packet transfer processing in step S210 will be described. The IPv4 packet transfer process in step S210 corresponds to the IPv4 packet transfer process shown in FIG.

図22の例では、携帯電話100から送信されたIPv6パケットのコードには通信終了を示すコードが含まれる。このため、WAN10からIPv6パケットを受信したGW200は、図16の例において、IPv6パケットのv6宛先にコードが含まれていると判定し、コードが通信終了を示していると判定する(ステップS151、S152;Yes、S155;Yes)。その後、GW200は、IPv6−IPv4アドレス変換テーブル203を参照し、IPv6パケットのv6送信元と同一の「IPv6アドレス」のエントリを削除する(ステップS168、S169)。   In the example of FIG. 22, the code indicating the end of communication is included in the code of the IPv6 packet transmitted from the mobile phone 100. Therefore, the GW 200 that has received the IPv6 packet from the WAN 10 determines that the code is included in the v6 destination of the IPv6 packet in the example of FIG. 16, and determines that the code indicates the end of communication (step S151, S152; Yes, S155; Yes). After that, the GW 200 refers to the IPv6-IPv4 address conversion table 203 and deletes the “IPv6 address” entry that is the same as the v6 transmission source of the IPv6 packet (steps S168 and S169).

次に、実施例2に係る通信システムの効果について説明する。通信システムに含まれる携帯電話100は、WAN10に接続する携帯電話100とLAN20のTV5との間の通信終了を示すコードを含むIPv6パケットをWAN10を介してGW200に送信する。GW200は、受信したIPv6パケットに通信終了を示すコードが含まれる場合に、IPv6パケットの送信元と同一のIPv6アドレスのエントリをIPv6−IPv4アドレス変換テーブル203から削除する。このため、本実施例の通信システムでは、タイマ値の満了に依存することなく、携帯電話100のIPv6アドレスとIPv4アドレスとの対応関係を自由なタイミングで削除することができ、GW200のメモリをより効率的に活用することができる。   Next, effects of the communication system according to the second embodiment will be described. The mobile phone 100 included in the communication system transmits an IPv6 packet including a code indicating the end of communication between the mobile phone 100 connected to the WAN 10 and the TV 5 of the LAN 20 to the GW 200 via the WAN 10. When the received IPv6 packet includes a code indicating the end of communication, the GW 200 deletes the IPv6 address entry that is the same as the source of the IPv6 packet from the IPv6-IPv4 address conversion table 203. For this reason, in the communication system of the present embodiment, the correspondence relationship between the IPv6 address and the IPv4 address of the mobile phone 100 can be deleted at any timing without depending on the expiration of the timer value, and the memory of the GW 200 can be further saved. It can be used efficiently.

上記実施例1、2では、WANのIPv6ネットワークからGWに通知されるIPv6プレフィックスが48ビットである例について説明した。しかしながら、WANのIPv6ネットワークからGWに通知されるIPv6プレフィックスが64ビットである場合も想定される。そこで、実施例3では、WANのIPv6ネットワークからGWに通知されるIPv6プレフィックスが64ビットである例について説明する。   In the first and second embodiments, the example in which the IPv6 prefix notified from the WAN IPv6 network to the GW is 48 bits has been described. However, it is also assumed that the IPv6 prefix notified from the WAN IPv6 network to the GW is 64 bits. Therefore, in the third embodiment, an example in which the IPv6 prefix notified from the WAN IPv6 network to the GW is 64 bits will be described.

本実施例のGW200では、IPv6アドレス処理部211は、WAN10のIPv6ネットワーク1から64ビットのIPv6プレフィックスを受信し、受信したIPv6プレフィックスをIPv6アドレス記憶部210に格納する。   In the GW 200 of this embodiment, the IPv6 address processing unit 211 receives a 64-bit IPv6 prefix from the IPv6 network 1 of the WAN 10 and stores the received IPv6 prefix in the IPv6 address storage unit 210.

IPv6アドレス処理部211は、WAN側アドレス要求を携帯電話100から受信した場合に、IPv6アドレス記憶部210の64ビットのIPv6プレフィックスに任意の64ビットの値を追加して、128ビットのWAN側IPv6アドレスを生成する。IPv6アドレス処理部211は、生成したWAN側IPv6アドレスをGW200のWAN側アドレスとして携帯電話100に通知する。なお、IPv6アドレス処理部211は、WAN側IPv6アドレスを自身の記憶領域に保持する。   When the IPv6 address processing unit 211 receives a WAN address request from the mobile phone 100, the IPv6 address processing unit 211 adds an arbitrary 64-bit value to the 64-bit IPv6 prefix in the IPv6 address storage unit 210, and the 128-bit WAN-side IPv6. Generate an address. The IPv6 address processing unit 211 notifies the mobile phone 100 of the generated WAN side IPv6 address as the WAN side address of the GW 200. The IPv6 address processing unit 211 holds the WAN-side IPv6 address in its own storage area.

IPv6−IPv4アドレス格納部204は、WAN10に接続する携帯電話100から送信されたIPv6パケットをWAN側インターフェース部201を介して受信する。IPv6−IPv4アドレス格納部204は、IPv6パケットの送信元に設定された携帯電話100のIPv6アドレスとIPv6パケットに含まれる携帯電話100のIPv4アドレスとを対応付けてIPv6−IPv4アドレス変換テーブル203に格納する。なお、本実施例のIPv6−IPv4アドレス格納部204は、IPv6パケットにコードが含まれていないので、IPv6−IPv4アドレス変換テーブル203のコードを空領域とする。   The IPv6-IPv4 address storage unit 204 receives the IPv6 packet transmitted from the mobile phone 100 connected to the WAN 10 via the WAN-side interface unit 201. The IPv6-IPv4 address storage unit 204 associates the IPv6 address of the mobile phone 100 set as the source of the IPv6 packet with the IPv4 address of the mobile phone 100 included in the IPv6 packet and stores it in the IPv6-IPv4 address conversion table 203. To do. Note that the IPv6-IPv4 address storage unit 204 of the present embodiment does not include a code in the IPv6 packet, so the code of the IPv6-IPv4 address conversion table 203 is set as an empty area.

また、IPv6−IPv4アドレス格納部204は、携帯電話100のIPv6アドレスと携帯電話100のIPv4アドレスとの対応関係の保持期間を示すタイマ値をIPv6−IPv4アドレス変換テーブル203にさらに格納する。そして、IPv6−IPv4アドレス格納部204は、例えばクロックイベントが発生する度に、IPv6−IPv4アドレス変換テーブル203のタイマ値をデクリメントする。そして、IPv6−IPv4アドレス格納部204は、タイマ値が示す保持期間が満了した場合に、言い換えると、タイマ値が「0」となった場合に、該タイマ値に対応するエントリをIPv6−IPv4アドレス変換テーブル203から削除する。   Further, the IPv6-IPv4 address storage unit 204 further stores a timer value indicating a holding period of the correspondence relationship between the IPv6 address of the mobile phone 100 and the IPv4 address of the mobile phone 100 in the IPv6-IPv4 address conversion table 203. The IPv6-IPv4 address storage unit 204 decrements the timer value of the IPv6-IPv4 address conversion table 203 every time a clock event occurs, for example. Then, when the holding period indicated by the timer value expires, in other words, when the timer value becomes “0”, the IPv6-IPv4 address storage unit 204 sets the entry corresponding to the timer value to the IPv6-IPv4 address. Delete from the conversion table 203.

パケット転送部212は、WAN10からIPv6パケットを受信した場合に、IPv6−IPv4アドレス変換テーブル203を基にして、IPv4パケットを生成し、生成したIPv4パケットをLAN20のTV5に転送する。なお、パケット転送部212がIPv4パケットを生成する処理は、実施例1と同様である。また、パケット転送部212は、LAN10からIPv4パケットを受信した場合に、IPv6−IPv4アドレス変換テーブル203を基にして、IPv6パケットを生成し、生成したIPv6パケットをWAN10に接続する携帯電話100に転送する。   When receiving an IPv6 packet from the WAN 10, the packet transfer unit 212 generates an IPv4 packet based on the IPv6-IPv4 address conversion table 203, and transfers the generated IPv4 packet to the TV 5 of the LAN 20. Note that the packet transfer unit 212 generates IPv4 packets in the same manner as in the first embodiment. Further, when receiving an IPv4 packet from the LAN 10, the packet transfer unit 212 generates an IPv6 packet based on the IPv6-IPv4 address conversion table 203, and transfers the generated IPv6 packet to the mobile phone 100 connected to the WAN 10. To do.

パケット転送部212がIPv6パケットを生成する処理の一例について説明する。パケット転送部212は、LAN20からIPv4パケットを受信すると、IPv6−IPv4アドレス変換テーブル203を参照して、IPv4パケットの宛先と同一の「IPv4アドレス」のエントリを検索する。パケット転送部212は、IPv4パケットの宛先と同一の「IPv4アドレス」のエントリが存在する場合には、以下の処理を行う。すなわち、パケット転送部212は、同エントリの対応する携帯電話100のIPv6アドレスを宛先に設定したIPv6パケットを生成する。なお、本実施例のパケット転送部212は、IPv6アドレス処理部211により保持されるWAN側IPv6アドレスをIPv6パケットの送信元に設定する。   An example of processing in which the packet transfer unit 212 generates an IPv6 packet will be described. When receiving the IPv4 packet from the LAN 20, the packet transfer unit 212 refers to the IPv6-IPv4 address conversion table 203 and searches for an entry with the same “IPv4 address” as the destination of the IPv4 packet. The packet transfer unit 212 performs the following process when an entry with the same “IPv4 address” as the destination of the IPv4 packet exists. That is, the packet transfer unit 212 generates an IPv6 packet in which the IPv6 address of the corresponding mobile phone 100 of the entry is set as the destination. Note that the packet transfer unit 212 of this embodiment sets the WAN-side IPv6 address held by the IPv6 address processing unit 211 as the source of the IPv6 packet.

本実施例の携帯電話100では、パケット処理部104は、GW200から通知される128ビットのWAN側IPv6アドレスを受け付けてGW情報管理テーブル113に格納する。   In the mobile phone 100 according to the present embodiment, the packet processing unit 104 receives a 128-bit WAN-side IPv6 address notified from the GW 200 and stores it in the GW information management table 113.

また、パケット処理部104は、通信要求受付部103から通信要求を受け付けた場合に、IPv4アドレス管理テーブル111、IPv6アドレス管理テーブル112及びGW情報管理テーブル113を基に、IPv4パケット又はIPv6パケットを生成する。パケット処理部104がIPv4パケットを生成する処理は、実施例1と同様である。   In addition, when receiving a communication request from the communication request receiving unit 103, the packet processing unit 104 generates an IPv4 packet or an IPv6 packet based on the IPv4 address management table 111, the IPv6 address management table 112, and the GW information management table 113. To do. The process in which the packet processing unit 104 generates an IPv4 packet is the same as in the first embodiment.

パケット処理部104がIPv6パケットを生成する処理の一例について説明する。パケット処理部104は、通信要求を受け付けると、接続性の確認のためのIPv4パケットを生成してGW200に送信し、GW200からの返信を待つ。GW200からの返信を受け付けることができなかったパケット処理部104は、携帯電話100がWAN10に接続していることを認識する。パケット処理部104は、IPv4アドレス管理テーブル111及びIPv6アドレス管理テーブル112を参照して、携帯電話100のIPv6プレフィックスを送信元に設定し、携帯電話100及びTV5のIPv4アドレスを含むIPv6パケットを生成する。さらに、パケット処理部104は、GW情報管理テーブル113のWAN側IPv6アドレスをIPv6パケットの宛先に設定する。なお、パケット処理部104によって生成されるIPv6パケットのデータ構造については、後述する。   An example of processing in which the packet processing unit 104 generates an IPv6 packet will be described. When receiving the communication request, the packet processing unit 104 generates an IPv4 packet for confirming connectivity, transmits the packet to the GW 200, and waits for a reply from the GW 200. The packet processing unit 104 that has not received a reply from the GW 200 recognizes that the mobile phone 100 is connected to the WAN 10. The packet processing unit 104 refers to the IPv4 address management table 111 and the IPv6 address management table 112, sets the IPv6 prefix of the mobile phone 100 as a transmission source, and generates an IPv6 packet including the IPv4 addresses of the mobile phone 100 and the TV 5 . Further, the packet processing unit 104 sets the WAN side IPv6 address of the GW information management table 113 as the destination of the IPv6 packet. The data structure of the IPv6 packet generated by the packet processing unit 104 will be described later.

次に、実施例3に係る通信システムの携帯電話100がGW200と無線により接続し、GW200を介してLAN10のTV5と通信する一連の処理の処理手順について説明する。図23は、実施例3に係る通信システムの携帯電話がGWを介してLANのTVと通信する処理の処理手順の一例を示すシーケンス図である。図23の例では、携帯電話100がGW200と接続可能な範囲に存在するものとする。また、図23の例では、WAN10のIPv6ネットワーク1からGW200に通知されるIPv6プレフィックスが、64ビットであるものとする。   Next, a processing procedure of a series of processes in which the mobile phone 100 of the communication system according to the third embodiment is wirelessly connected to the GW 200 and communicates with the TV 5 of the LAN 10 via the GW 200 will be described. FIG. 23 is a sequence diagram illustrating an example of a processing procedure of a process in which the mobile phone of the communication system according to the third embodiment communicates with the LAN TV via the GW. In the example of FIG. 23, it is assumed that the mobile phone 100 exists in a range that can be connected to the GW 200. In the example of FIG. 23, it is assumed that the IPv6 prefix notified from the IPv6 network 1 of the WAN 10 to the GW 200 is 64 bits.

図23に示すように、携帯電話100は、携帯電話100のIPv4アドレスと、TV5のIPv4アドレスとを取得する(ステップS301)。携帯電話100は、取得した携帯電話100のIPv4アドレス及びTV5のIPv4アドレスをIPv4アドレス管理テーブル111に格納する。   As shown in FIG. 23, the mobile phone 100 acquires the IPv4 address of the mobile phone 100 and the IPv4 address of the TV 5 (step S301). The mobile phone 100 stores the acquired IPv4 address of the mobile phone 100 and the IPv4 address of the TV 5 in the IPv4 address management table 111.

GW200は、WAN10のIPv6ネットワーク1から通知される64ビットのIPv6プレフィックスを受信する(ステップS302)。GW200は、受信した64ビットのIPv6プレフィックスをIPv6アドレス記憶部210に格納する。   The GW 200 receives the 64-bit IPv6 prefix notified from the IPv6 network 1 of the WAN 10 (step S302). The GW 200 stores the received 64-bit IPv6 prefix in the IPv6 address storage unit 210.

携帯電話100は、GW200と接続する場合に、GW200に対してWAN側アドレス要求を送信する(ステップS303)。   When connecting to the GW 200, the mobile phone 100 transmits a WAN address request to the GW 200 (step S303).

GW200は、携帯電話100からWAN側アドレス要求を受信すると、WAN側アドレス通知処理を実行する(ステップS304)。   When receiving the WAN address request from the mobile phone 100, the GW 200 executes WAN address notification processing (step S304).

ここで、ステップS304のWAN側アドレス通知処理について説明する。ステップS304のWAN側アドレス通知処理は、図12に示したWAN側アドレス通知処理に対応する。本実施例では、IPv6アドレス記憶部210のIPv6プレフィックスが64ビットである。このため、GW200は、図12の例において、WAN側IPv6アドレスを生成して携帯電話100に通知する(ステップS122;Yes、S124)。   Here, the WAN address notification processing in step S304 will be described. The WAN address notification process in step S304 corresponds to the WAN address notification process shown in FIG. In this embodiment, the IPv6 prefix of the IPv6 address storage unit 210 is 64 bits. For this reason, in the example of FIG. 12, the GW 200 generates a WAN-side IPv6 address and notifies the mobile phone 100 (steps S122; Yes, S124).

図23に戻り、携帯電話100は、GW200から通知されたWAN側IPv6アドレスを受信する(ステップS305)。携帯電話100は、IPv4/IPv6パケット送信処理を実行する(ステップS306)。   Returning to FIG. 23, the mobile phone 100 receives the WAN-side IPv6 address notified from the GW 200 (step S305). The cellular phone 100 executes an IPv4 / IPv6 packet transmission process (step S306).

ここで、ステップS306のIPv4/IPv6パケット送信処理について説明する。ステップS306のIPv4/IPv6パケット送信処理は、図13に示したIPv4/IPv6パケット送信処理に対応する。図23の例では、携帯電話100がGW200と接続可能な範囲に存在する。このため、携帯電話100は、図13の例において、TV5のIPv4アドレスを宛先に設定したIPv4パケットを生成してGW200に送信する(ステップS133;Yes、S134、S135)。   Here, the IPv4 / IPv6 packet transmission processing in step S306 will be described. The IPv4 / IPv6 packet transmission process in step S306 corresponds to the IPv4 / IPv6 packet transmission process shown in FIG. In the example of FIG. 23, the mobile phone 100 exists in a range that can be connected to the GW 200. Therefore, the mobile phone 100 generates an IPv4 packet in which the IPv4 address of the TV 5 is set as the destination in the example of FIG. 13 and transmits it to the GW 200 (step S133; Yes, S134, S135).

図23に戻り、GW200は、携帯電話100から送信されたIPv4パケットを受信する(ステップS307)。GW200は、受信したIPv4パケットをLAN20のTV5に転送する(ステップS308)。TV5は、IPv4パケットを受信し、IPv4パケットに格納されたデータを基にして所定の処理を行う。その後、TV5は、自身のIPv4アドレスを送信元に設定し、携帯電話100のIPv4アドレスを宛先に設定したIPv4パケットを生成してGW200に送信する(ステップS309)。GW200は、TV5から送信されたIPv4パケットを受信して、携帯電話100に転送する(ステップS310)。   Returning to FIG. 23, the GW 200 receives the IPv4 packet transmitted from the mobile phone 100 (step S307). The GW 200 transfers the received IPv4 packet to the TV 5 of the LAN 20 (step S308). The TV 5 receives the IPv4 packet and performs a predetermined process based on the data stored in the IPv4 packet. Thereafter, the TV 5 sets its own IPv4 address as a transmission source, generates an IPv4 packet in which the IPv4 address of the mobile phone 100 is set as a destination, and transmits it to the GW 200 (step S309). The GW 200 receives the IPv4 packet transmitted from the TV 5 and transfers it to the mobile phone 100 (step S310).

次に、実施例3に係る通信システムの携帯電話100がWAN10のエリアネットワーク3と無線により接続し、WAN10及びGW200を介してLAN20のTV5と通信する一連の処理の処理手順について説明する。図24は、実施例3に係る通信システムの携帯電話がWAN及びGWを介してLANのTVと通信する処理の処理手順の一例を示すシーケンス図である。図24の例では、携帯電話100がWAN10のエリアネットワーク3と接続可能な範囲に存在するものとする。   Next, a processing procedure of a series of processes in which the mobile phone 100 of the communication system according to the third embodiment is wirelessly connected to the area network 3 of the WAN 10 and communicates with the TV 5 of the LAN 20 via the WAN 10 and the GW 200 will be described. FIG. 24 is a sequence diagram illustrating an example of a processing procedure of a process in which the mobile phone of the communication system according to the third embodiment communicates with the LAN TV via the WAN and the GW. In the example of FIG. 24, it is assumed that the mobile phone 100 exists in a range that can be connected to the area network 3 of the WAN 10.

図24に示すように、携帯電話100は、WAN10のエリアネットワーク3から通知されるIPv6プレフィックスを受信する(ステップS311)。携帯電話100は、IPv4/IPv6パケット送信処理を実行する(ステップS312)。   As shown in FIG. 24, the mobile phone 100 receives the IPv6 prefix notified from the area network 3 of the WAN 10 (step S311). The cellular phone 100 executes an IPv4 / IPv6 packet transmission process (step S312).

ここで、ステップS312のIPv4/IPv6パケット送信処理について説明する。ステップS312のIPv4/IPv6パケット送信処理は、図13に示したIPv4/IPv6パケット送信処理に対応する。   Here, the IPv4 / IPv6 packet transmission processing in step S312 will be described. The IPv4 / IPv6 packet transmission process in step S312 corresponds to the IPv4 / IPv6 packet transmission process shown in FIG.

図24の例では、携帯電話100がGW200と接続可能な範囲に存在せず、WAN10のエリアネットワーク3と接続可能な範囲に存在する。このため、携帯電話100は、図13の例において、携帯電話100のIPv6プレフィックスを送信元に設定し、携帯電話100及びTV5のIPv4アドレスを含むIPv6パケットを生成する(ステップS133;No、S136)。そして、携帯電話100は、生成したIPv6パケットをWAN10を介してGW200に送信する(ステップS137)。ステップS136によって生成されたIPv6パケットは、例えば、図25に示すものとなる。図25は、IPv6パケットのデータ構造の一例を示す図(その3)である。   In the example of FIG. 24, the mobile phone 100 does not exist in a range that can be connected to the GW 200, but exists in a range that can be connected to the area network 3 of the WAN 10. Therefore, in the example of FIG. 13, the mobile phone 100 sets the IPv6 prefix of the mobile phone 100 as a transmission source, and generates an IPv6 packet including the IPv4 addresses of the mobile phone 100 and the TV 5 (step S133; No, S136). . Then, the cellular phone 100 transmits the generated IPv6 packet to the GW 200 via the WAN 10 (step S137). The IPv6 packet generated in step S136 is, for example, as shown in FIG. FIG. 25 is a third diagram illustrating an exemplary data structure of an IPv6 packet.

図25に示すIPv6パケットは、v6宛先、v6送信元、v4宛先、v4送信元及びペイロードを有する。このうち、v6宛先は、IPv6パケットの宛先アドレスであり、携帯電話100がGW200から通知されたGW200のWAN側IPv6アドレスを格納する。v6送信元は、IPv6パケットの送信元アドレスであり、携帯電話100がWAN10のエリアネットワーク3から通知された携帯電話100のIPv6プレフィックスを格納する。v4宛先は、自携帯電話100にて取得したTV5のIPv4アドレスを格納する。v4送信元は、自携帯電話100にて取得した携帯電話100のIPv4アドレスを格納する。ペイロードは、TV5を操作するためのデータを格納する。   The IPv6 packet shown in FIG. 25 has a v6 destination, a v6 transmission source, a v4 destination, a v4 transmission source, and a payload. Among these, the v6 destination is the destination address of the IPv6 packet, and stores the WAN-side IPv6 address of the GW 200 notified from the GW 200 by the mobile phone 100. The v6 source is a source address of the IPv6 packet, and stores the IPv6 prefix of the mobile phone 100 notified from the area network 3 of the WAN 10 by the mobile phone 100. The v4 destination stores the IPv4 address of the TV 5 acquired by the mobile phone 100. The v4 transmission source stores the IPv4 address of the mobile phone 100 acquired by the mobile phone 100. The payload stores data for operating the TV 5.

図25の例を用いて、携帯電話100がIPv6パケットを生成する処理を説明する。携帯電話100は、GW情報管理テーブル113に含まれるGW200のWAN側IPv6アドレスをIPv6パケットのv6宛先に設定する。携帯電話100は、IPv6アドレス管理テーブル112に含まれる携帯電話100のIPv6プレフィックスをIPv6パケットのv6送信元に設定する。携帯電話100は、IPv4アドレス管理テーブル111に含まれる携帯電話100のIPv4アドレス及びTV5のIPv4アドレスをIPv6パケットのv4送信元及びv4宛先にそれぞれ格納する。携帯電話100は、TV5を操作するためのデータをIPv6パケットのペイロードに格納する。これにより、IPv6パケットが生成される。   A process in which the mobile phone 100 generates an IPv6 packet will be described using the example of FIG. The cellular phone 100 sets the WAN side IPv6 address of the GW 200 included in the GW information management table 113 as the v6 destination of the IPv6 packet. The mobile phone 100 sets the IPv6 prefix of the mobile phone 100 included in the IPv6 address management table 112 as the v6 source of the IPv6 packet. The cellular phone 100 stores the IPv4 address of the cellular phone 100 and the IPv4 address of the TV 5 included in the IPv4 address management table 111 in the v4 transmission source and the v4 destination of the IPv6 packet, respectively. The cellular phone 100 stores data for operating the TV 5 in the payload of the IPv6 packet. Thereby, an IPv6 packet is generated.

図24に戻り、GW200は、携帯電話100から送信されたIPv6パケットを、WAN10を介して受信する(ステップS313)。なお、携帯電話100から送信されたIPv6パケットのv6宛先にはコードが含まれていない。GW200は、IPv4パケット転送処理を実行する(ステップS314)。   Returning to FIG. 24, the GW 200 receives the IPv6 packet transmitted from the mobile phone 100 via the WAN 10 (step S313). Note that the v6 destination of the IPv6 packet transmitted from the mobile phone 100 does not include a code. The GW 200 executes an IPv4 packet transfer process (step S314).

ここで、ステップS314のIPv4パケット転送処理について説明する。ステップS314のIPv4パケット転送処理は、図16に示したIPv4パケット転送処理に対応する。   Here, the IPv4 packet transfer processing in step S314 will be described. The IPv4 packet transfer process in step S314 corresponds to the IPv4 packet transfer process shown in FIG.

図24の例では、携帯電話100から送信されたIPv6パケットのv6宛先にはコードが含まれていない。このため、WAN10からIPv6パケットを受信したGW200は、図16の例において、IPv6パケットのv6宛先にコードが含まれていないと判定する(ステップS151、S152;No)。そして、GW200は、IPv6パケットのv6宛先が自身の保持するWAN側IPv6アドレスと一致すると判定する(ステップS153;Yes)。その後、GW200は、IPv6パケットのv6送信元とv4送信元とを対応付けてIPv6−IPv4アドレス変換テーブル203に新規エントリとして格納し、新規エントリのタイマ値をさらに設定する(ステップS159〜S162)。なお、GW200は、IPv6パケットにコードが含まれていないので、IPv6−IPv4アドレス変換テーブル203のコードを空領域に設定する。コードが空領域に設定されたIPv6−IPv4アドレス変換テーブル203は、例えば、図26に示すものとなる。図26は、IPv6−IPv4アドレス変換テーブルのデータ構造の他の例を示す図である。その後、GW200は、IPv4パケットを生成してLAN20のTV5に転送する(ステップS170、171)。   In the example of FIG. 24, the code is not included in the v6 destination of the IPv6 packet transmitted from the mobile phone 100. For this reason, the GW 200 that has received the IPv6 packet from the WAN 10 determines that the code is not included in the v6 destination of the IPv6 packet in the example of FIG. 16 (steps S151 and S152; No). Then, the GW 200 determines that the v6 destination of the IPv6 packet matches the WAN-side IPv6 address held by the GW 200 (step S153; Yes). After that, the GW 200 associates the v6 transmission source and the v4 transmission source of the IPv6 packet and stores them as a new entry in the IPv6-IPv4 address translation table 203, and further sets the timer value of the new entry (steps S159 to S162). Note that the GW 200 sets the code of the IPv6-IPv4 address conversion table 203 in an empty area because the code is not included in the IPv6 packet. The IPv6-IPv4 address conversion table 203 in which the code is set to an empty area is, for example, as shown in FIG. FIG. 26 is a diagram illustrating another example of the data structure of the IPv6-IPv4 address conversion table. Thereafter, the GW 200 generates an IPv4 packet and transfers it to the TV 5 of the LAN 20 (steps S170 and 171).

図24に戻り、TV5は、GW200から転送されたIPv4パケットを受信する(ステップS315)。TV5は、IPv4パケットに格納されたデータを基にして所定の処理を行う。その後、TV5は、自身のIPv4アドレスを送信元に設定し、携帯電話100のIPv4アドレスを宛先に設定したIPv4パケットを生成してGW200に返信する(ステップS316)。   Returning to FIG. 24, the TV 5 receives the IPv4 packet transferred from the GW 200 (step S315). The TV 5 performs a predetermined process based on the data stored in the IPv4 packet. Thereafter, the TV 5 sets its own IPv4 address as the transmission source, generates an IPv4 packet in which the IPv4 address of the mobile phone 100 is set as the destination, and sends it back to the GW 200 (step S316).

GW200は、TV5から返信されたIPv4パケットをLAN20から受信し、IPv6パケット転送処理を実行する(ステップS317)。TV5から返信されたIPv4パケットは、第三のパケットの一例である。   The GW 200 receives the IPv4 packet returned from the TV 5 from the LAN 20, and executes an IPv6 packet transfer process (step S317). The IPv4 packet returned from the TV 5 is an example of a third packet.

ここで、ステップS317のIPv6パケット転送処理について説明する。ステップS317のIPv6パケット転送処理は、図19に示したIPv6パケット転送処理に対応する。   Here, the IPv6 packet transfer processing in step S317 will be described. The IPv6 packet transfer process in step S317 corresponds to the IPv6 packet transfer process shown in FIG.

図24の例では、TV5から返信されたIPv4パケットのv4宛先には携帯電話100のIPv4アドレスが含まれる。このため、LAN20からIPv4パケットを受信したGW200は、図19の例において、IPv4パケットの宛先アドレスがIPv4アドレスであることを確認する(ステップS181、S182;No)。その後、GW200は、IPv4パケットの宛先アドレスと同一の「IPv4アドレス」のエントリがIPv6−IPv4アドレス変換テーブル203に存在すると判定する(ステップS184、S185;Yes)。そして、GW200は、同エントリの対応するIPv6アドレスを宛先に設定したIPv6パケットを生成して携帯電話100に転送する(ステップS187、S188)。ステップS187によって生成されたIPv6パケットは、例えば、図27に示すものとなる。図27は、IPv6パケットのデータ構造の一例を示す図(その4)である。   In the example of FIG. 24, the IPv4 address of the mobile phone 100 is included in the v4 destination of the IPv4 packet returned from the TV 5. Therefore, the GW 200 that has received the IPv4 packet from the LAN 20 confirms that the destination address of the IPv4 packet is an IPv4 address in the example of FIG. 19 (steps S181 and S182; No). Thereafter, the GW 200 determines that an entry with the same “IPv4 address” as the destination address of the IPv4 packet exists in the IPv6-IPv4 address conversion table 203 (steps S184 and S185; Yes). Then, the GW 200 generates an IPv6 packet in which the corresponding IPv6 address of the entry is set as a destination, and transfers it to the mobile phone 100 (steps S187 and S188). The IPv6 packet generated in step S187 is, for example, as shown in FIG. FIG. 27 is a fourth diagram illustrating an exemplary data structure of an IPv6 packet.

図27に示すIPv6パケットは、v6送信元、v6宛先及びペイロードを有する。このうち、v6宛先は、IPv6パケットの宛先アドレスであり、携帯電話100のIPv6アドレスを格納する。v6送信元は、IPv6パケットの送信元アドレスであり、GW200のWAN側IPv6アドレスを格納する。ペイロードは、所定のデータを格納する。   The IPv6 packet shown in FIG. 27 has a v6 transmission source, a v6 destination, and a payload. Among these, the v6 destination is the destination address of the IPv6 packet, and stores the IPv6 address of the mobile phone 100. The v6 transmission source is the transmission source address of the IPv6 packet, and stores the WAN side IPv6 address of the GW 200. The payload stores predetermined data.

図27の例を用いて、GW200がIPv6パケットを生成する処理を説明する。GW200は、IPv6−IPv4アドレス変換テーブル203を参照して、IPv4パケットの宛先アドレスと同一のIPv4アドレスに対応する携帯電話100のIPv6アドレスをIPv6パケットのv6宛先に設定する。GW200は、自身の保持するWAN側IPv6アドレスをIPv6パケットのv6送信元に格納する。これにより、IPv6パケットが生成される。   The process in which the GW 200 generates an IPv6 packet will be described using the example of FIG. The GW 200 refers to the IPv6-IPv4 address conversion table 203 and sets the IPv6 address of the mobile phone 100 corresponding to the same IPv4 address as the destination address of the IPv4 packet as the v6 destination of the IPv6 packet. The GW 200 stores the WAN-side IPv6 address held by the GW 200 in the v6 transmission source of the IPv6 packet. Thereby, an IPv6 packet is generated.

図24に戻り、携帯電話100は、GW200から転送されたIPv6パケットを受信する(ステップS318)。なお、携帯電話100は、IPv6パケットに含まれるデータを用いて所定の処理を行う。GW200は、所定のタイミングでIPv4−IPv6アドレス削除処理を行う(ステップS319)。なお、ステップS319のIPv4−IPv6アドレス削除処理は、図21に示したIPv4−IPv6アドレス削除処理に対応する。   Returning to FIG. 24, the mobile phone 100 receives the IPv6 packet transferred from the GW 200 (step S318). Note that the mobile phone 100 performs predetermined processing using data included in the IPv6 packet. The GW 200 performs an IPv4-IPv6 address deletion process at a predetermined timing (step S319). Note that the IPv4-IPv6 address deletion process in step S319 corresponds to the IPv4-IPv6 address deletion process shown in FIG.

次に、実施例3に係る通信システムの効果について説明する。本実施例の通信システムでは、WAN10側からGW200に通知されるIPv6プレフィックスが64ビットである場合でも、実施例1と同様にポート番号と転送先のIPv4アドレスとの対応関係をGW200に事前登録することを不要化することが可能である。結果として、GW200のメモリ規模の増大を抑えつつ、WAN10からLAN20への通信を中継することができる。   Next, effects of the communication system according to the third embodiment will be described. In the communication system of the present embodiment, even when the IPv6 prefix notified from the WAN 10 side to the GW 200 is 64 bits, the correspondence between the port number and the IPv4 address of the transfer destination is pre-registered in the GW 200 as in the first embodiment. This can be eliminated. As a result, communication from the WAN 10 to the LAN 20 can be relayed while suppressing an increase in the memory size of the GW 200.

上記実施例1〜3では、携帯電話100がWAN10のエリアネットワーク3と無線により接続する例について説明した。しかしながら、携帯電話100がWAN10内を移動してエリアネットワーク3と異なる他のエリアネットワークと無線により接続する状況も想定される。このような状況では、WAN10のエリアネットワーク3から携帯電話100に通知されるIPv6プレフィックスが、WAN10の他のエリアネットワークから携帯電話100に通知されるIPv6プレフィックスに変更される。そこで、実施例4では、WAN10側から通知されるIPv6プレフィックスが変更された例について説明する。   In the first to third embodiments, the example in which the mobile phone 100 is connected to the area network 3 of the WAN 10 by radio has been described. However, a situation in which the mobile phone 100 moves in the WAN 10 and is wirelessly connected to another area network different from the area network 3 is also assumed. In such a situation, the IPv6 prefix notified from the area network 3 of the WAN 10 to the mobile phone 100 is changed to the IPv6 prefix notified from the other area network of the WAN 10 to the mobile phone 100. In the fourth embodiment, an example in which the IPv6 prefix notified from the WAN 10 side is changed will be described.

図28は、実施例4に係る通信システムの構成を示す図である。図28に示すように、この通信システムは、IPv6ネットワーク1、キャリアネットワーク2、エリアネットワーク3、エリアネットワーク3a、家庭内ネットワーク4、TV5、携帯電話100及びGW200を有する。   FIG. 28 is a diagram illustrating the configuration of the communication system according to the fourth embodiment. As shown in FIG. 28, this communication system includes an IPv6 network 1, a carrier network 2, an area network 3, an area network 3a, a home network 4, a TV 5, a mobile phone 100, and a GW 200.

このうち、IPv6ネットワーク1、キャリアネットワーク2及びエリアネットワーク3は、図1に示したIPv6ネットワーク1、キャリアネットワーク2及びエリアネットワーク3にそれぞれ対応する。また、家庭内ネットワーク4、TV5及びGW200は、図1に示した家庭内ネットワーク4、TV5及びGW200にそれぞれ対応する。   Among these, the IPv6 network 1, the carrier network 2, and the area network 3 correspond to the IPv6 network 1, the carrier network 2, and the area network 3 shown in FIG. The home network 4, TV 5 and GW 200 correspond to the home network 4, TV 5 and GW 200 shown in FIG. 1, respectively.

エリアネットワーク3aは、エリアネットワーク3と異なるIPv6プレフィックスを携帯電話100に通知する。なお、IPv6ネットワーク1、キャリアネットワーク2、エリアネットワーク3及びエリアネットワーク3aは、外部ネットワークの一種であるWAN10を形成する。WAN10は、第一のネットワークの一例である。   The area network 3a notifies the mobile phone 100 of an IPv6 prefix different from that of the area network 3. The IPv6 network 1, the carrier network 2, the area network 3, and the area network 3a form a WAN 10 that is a kind of external network. The WAN 10 is an example of a first network.

携帯電話100は、WAN10のエリアネットワーク3と無線により接続し、WAN10及びGW200を介して、LAN20のTV5を操作する。さらに、携帯電話100は、WAN10内を移動してWAN10のエリアネットワーク3aと無線により接続し、WAN10及びGW200を介して、LAN20のTV5を操作することも可能である。また、携帯電話100は、GW200と無線により接続し、GW200を介して、LAN20のTV5を操作することもできる。   The cellular phone 100 is wirelessly connected to the area network 3 of the WAN 10 and operates the TV 5 of the LAN 20 via the WAN 10 and the GW 200. Furthermore, the mobile phone 100 can move in the WAN 10 and connect to the area network 3a of the WAN 10 by radio, and operate the TV 5 of the LAN 20 via the WAN 10 and the GW 200. The mobile phone 100 can also be connected to the GW 200 wirelessly and operate the TV 5 of the LAN 20 via the GW 200.

次に、実施例4に係る通信システムの携帯電話100がWAN10のエリアネットワーク3、3aと無線により接続し、WAN10及びGW200を介してLAN20のTV5と通信する一連の処理の処理手順について説明する。図29は、実施例4に係る通信システムの携帯電話がWAN及びGWを介してLANのTVと通信する処理の処理手順の一例を示すシーケンス図である。図29の例では、携帯電話100がWAN10のエリアネットワーク3と接続可能な範囲に存在した後に、WAN10のエリアネットワーク3aと接続可能な範囲に移動したものとする。   Next, a processing procedure of a series of processes in which the mobile phone 100 of the communication system according to the fourth embodiment is wirelessly connected to the area networks 3 and 3a of the WAN 10 and communicates with the TV 5 of the LAN 20 via the WAN 10 and the GW 200 will be described. FIG. 29 is a sequence diagram illustrating an example of a processing procedure of processing in which the mobile phone of the communication system according to the fourth embodiment communicates with the LAN TV via the WAN and the GW. In the example of FIG. 29, it is assumed that the mobile phone 100 has moved to a range connectable to the area network 3a of the WAN 10 after being present in a range connectable to the area network 3 of the WAN 10.

図29に示すように、携帯電話100は、WAN10のエリアネットワーク3から通知されるIPv6プレフィックスを受信する(ステップS401)。ステップS401において、WAN10のエリアネットワーク3から携帯電話100に通知されるIPv6プレフィックスをIPv6プレフィックスP1と表記する。携帯電話100は、IPv4/IPv6パケット送信処理を実行する(ステップS402)。   As shown in FIG. 29, the mobile phone 100 receives the IPv6 prefix notified from the area network 3 of the WAN 10 (step S401). In step S401, the IPv6 prefix notified from the area network 3 of the WAN 10 to the mobile phone 100 is denoted as IPv6 prefix P1. The cellular phone 100 executes an IPv4 / IPv6 packet transmission process (step S402).

ここで、ステップS402のIPv4/IPv6パケット送信処理について説明する。ステップS402のIPv4/IPv6パケット送信処理は、図13に示したIPv4/IPv6パケット送信処理に対応する。   Here, the IPv4 / IPv6 packet transmission processing in step S402 will be described. The IPv4 / IPv6 packet transmission process in step S402 corresponds to the IPv4 / IPv6 packet transmission process shown in FIG.

図29の例では、携帯電話100がGW200と接続可能な範囲に存在せず、WAN10のエリアネットワーク3と接続可能な範囲に存在する。このため、携帯電話100は、図13の例において、携帯電話100のIPv6プレフィックスP1を送信元に設定し、携帯電話100及びTV5のIPv4アドレスを含むIPv6パケットを生成する(ステップS133;No、S136)。そして、携帯電話100は、生成したIPv6パケットをWAN10を介してGW200に送信する(ステップS137)。   In the example of FIG. 29, the mobile phone 100 does not exist in a range that can be connected to the GW 200, but exists in a range that can be connected to the area network 3 of the WAN 10. Therefore, in the example of FIG. 13, the mobile phone 100 sets the IPv6 prefix P1 of the mobile phone 100 as a transmission source, and generates an IPv6 packet including the IPv4 addresses of the mobile phone 100 and the TV 5 (step S133; No, S136). ). Then, the cellular phone 100 transmits the generated IPv6 packet to the GW 200 via the WAN 10 (step S137).

図29に戻り、GW200は、携帯電話100から送信されたIPv6パケットを、WAN10を介して受信する(ステップS403)。なお、携帯電話100から送信されたIPv6パケットのv6宛先にはコードが含まれる。GW200は、IPv4パケット転送処理を実行する(ステップS404)。   Returning to FIG. 29, the GW 200 receives the IPv6 packet transmitted from the mobile phone 100 via the WAN 10 (step S403). A code is included in the v6 destination of the IPv6 packet transmitted from the mobile phone 100. The GW 200 executes an IPv4 packet transfer process (step S404).

ここで、ステップS404のIPv4パケット転送処理について説明する。ステップS404のIPv4パケット転送処理は、図16に示したIPv4パケット転送処理に対応する。   Here, the IPv4 packet transfer processing in step S404 will be described. The IPv4 packet transfer process in step S404 corresponds to the IPv4 packet transfer process shown in FIG.

図29の例では、携帯電話100から送信されたIPv6パケットのv6宛先にはコードが含まれる。このため、WAN10からIPv6パケットを受信したGW200は、図16の例において、IPv6パケットのv6宛先にコードが含まれていると判定し、コートが通信終了を示していないと判定する(ステップS151、S152;Yes、S155;Yes)。その後、GW200は、IPv6パケットのLAN側MACアドレスがMACアドレス記憶部208のLAN側MACアドレスと一致すると判定し、IPv4パケットを生成してLAN20のTV5に転送する(ステップS157;Yes、S160〜S171)。   In the example of FIG. 29, the v6 destination of the IPv6 packet transmitted from the mobile phone 100 includes a code. Therefore, the GW 200 that has received the IPv6 packet from the WAN 10 determines that the code is included in the v6 destination of the IPv6 packet in the example of FIG. 16, and determines that the code does not indicate the end of communication (step S151, S152; Yes, S155; Yes). Thereafter, the GW 200 determines that the LAN side MAC address of the IPv6 packet matches the LAN side MAC address of the MAC address storage unit 208, generates an IPv4 packet, and transfers the packet to the TV 5 of the LAN 20 (step S157; Yes, S160 to S171). ).

図29に戻り、TV5は、GW200から転送されたIPv4パケットを受信する(ステップS405)。TV5は、IPv4パケットに格納されたデータを基にして所定の処理を行う。その後、TV5は、自身のIPv4アドレスを送信元に設定し、携帯電話100のIPv4アドレスを宛先に設定したIPv4パケットを生成してGW200に返信する(ステップS406)。   Returning to FIG. 29, the TV 5 receives the IPv4 packet transferred from the GW 200 (step S405). The TV 5 performs a predetermined process based on the data stored in the IPv4 packet. Thereafter, the TV 5 sets its own IPv4 address as the transmission source, generates an IPv4 packet in which the IPv4 address of the mobile phone 100 is set as the destination, and sends it back to the GW 200 (step S406).

GW200は、TV5から返信されたIPv4パケットをLAN20から受信し、IPv6パケット転送処理を実行する(ステップS407)。TV5から返信されたIPv4パケットは、第三のパケットの一例である。   The GW 200 receives the IPv4 packet returned from the TV 5 from the LAN 20, and executes an IPv6 packet transfer process (step S407). The IPv4 packet returned from the TV 5 is an example of a third packet.

ここで、ステップS407のIPv6パケット転送処理について説明する。ステップS407のIPv6パケット転送処理は、図19に示したIPv6パケット転送処理に対応する。   Here, the IPv6 packet transfer processing in step S407 will be described. The IPv6 packet transfer process in step S407 corresponds to the IPv6 packet transfer process shown in FIG.

図29の例では、TV5から返信されたIPv4パケットのv4宛先には携帯電話100のIPv4アドレスが含まれる。このため、LAN20からIPv4パケットを受信したGW200は、図19の例において、IPv4パケットの宛先アドレスがIPv4アドレスであることを確認する(ステップS181、S182;No)。その後、GW200は、IPv4パケットの宛先アドレスと同一の「IPv4アドレス」のエントリがIPv6−IPv4アドレス変換テーブル203に存在すると判定する(ステップS184、S185;Yes)。そして、GW200は、同エントリの対応するIPv6アドレスを宛先に設定したIPv6パケットを生成して携帯電話100に転送する(ステップS187、S188)。   In the example of FIG. 29, the IPv4 address of the mobile phone 100 is included in the v4 destination of the IPv4 packet returned from the TV 5. Therefore, the GW 200 that has received the IPv4 packet from the LAN 20 confirms that the destination address of the IPv4 packet is an IPv4 address in the example of FIG. 19 (steps S181 and S182; No). Thereafter, the GW 200 determines that an entry with the same “IPv4 address” as the destination address of the IPv4 packet exists in the IPv6-IPv4 address conversion table 203 (steps S184 and S185; Yes). Then, the GW 200 generates an IPv6 packet in which the corresponding IPv6 address of the entry is set as a destination, and transfers it to the mobile phone 100 (steps S187 and S188).

図29に戻り、携帯電話100は、GW200から転送されたIPv6パケットを受信する(ステップS408)。なお、携帯電話100は、IPv6パケットに含まれるデータを用いて所定の処理を行う。   Returning to FIG. 29, the mobile phone 100 receives the IPv6 packet transferred from the GW 200 (step S408). Note that the mobile phone 100 performs predetermined processing using data included in the IPv6 packet.

その後、携帯電話100は、WAN10のエリアネットワーク3aと接続可能な範囲に移動し、WAN10のエリアネットワーク3aから通知されるIPv6プレフィックスを受信する(ステップS409)。ステップS409において、WAN10のエリアネットワーク3aから携帯電話100に通知されるIPv6プレフィックスをIPv6プレフィックスP2と表記する。携帯電話100は、IPv4/IPv6パケット送信処理を実行する(ステップS410)。   Thereafter, the mobile phone 100 moves to a range that can be connected to the area network 3a of the WAN 10, and receives the IPv6 prefix notified from the area network 3a of the WAN 10 (step S409). In step S409, the IPv6 prefix notified from the area network 3a of the WAN 10 to the mobile phone 100 is denoted as IPv6 prefix P2. The cellular phone 100 executes an IPv4 / IPv6 packet transmission process (step S410).

ここで、ステップS410のIPv4/IPv6パケット送信処理について説明する。ステップS410のIPv4/IPv6パケット送信処理は、図13に示したIPv4/IPv6パケット送信処理に対応する。   Here, the IPv4 / IPv6 packet transmission processing in step S410 will be described. The IPv4 / IPv6 packet transmission process in step S410 corresponds to the IPv4 / IPv6 packet transmission process shown in FIG.

図29の例では、携帯電話100がGW200と接続可能な範囲に存在せず、WAN10のエリアネットワーク3aと接続可能な範囲に存在する。このため、携帯電話100は、図13の例において、携帯電話100のIPv6プレフィックスP2を送信元に設定し、携帯電話100及びTV5のIPv4アドレスを含むIPv6パケットを生成する(ステップS133;No、S136)。このとき、IPv6パケットの送信元には、IPv6プレフィックスP1と異なるIPv6プレフィックスP2が設定される。そして、携帯電話100は、生成したIPv6パケットをWAN10を介してGW200に送信する(ステップS137)。   In the example of FIG. 29, the mobile phone 100 does not exist in a range that can be connected to the GW 200, but exists in a range that can be connected to the area network 3 a of the WAN 10. Therefore, in the example of FIG. 13, the mobile phone 100 sets the IPv6 prefix P2 of the mobile phone 100 as a transmission source, and generates an IPv6 packet including the IPv4 addresses of the mobile phone 100 and the TV 5 (step S133; No, S136). ). At this time, an IPv6 prefix P2 different from the IPv6 prefix P1 is set as the source of the IPv6 packet. Then, the cellular phone 100 transmits the generated IPv6 packet to the GW 200 via the WAN 10 (step S137).

図29に戻り、GW200は、携帯電話100から送信されたIPv6パケットを、WAN10を介して受信する(ステップS411)。なお、携帯電話100から送信されたIPv6パケットのv6宛先にはコードが含まれる。GW200は、IPv4パケット転送処理を実行する(ステップS412)。   Returning to FIG. 29, the GW 200 receives the IPv6 packet transmitted from the mobile phone 100 via the WAN 10 (step S411). A code is included in the v6 destination of the IPv6 packet transmitted from the mobile phone 100. The GW 200 executes an IPv4 packet transfer process (step S412).

ここで、ステップS412のIPv4パケット転送処理について説明する。ステップS412のIPv4パケット転送処理は、図16に示したIPv4パケット転送処理に対応する。   Here, the IPv4 packet transfer processing in step S412 will be described. The IPv4 packet transfer process in step S412 corresponds to the IPv4 packet transfer process shown in FIG.

図29の例では、携帯電話100から送信されたIPv6パケットのv6宛先にはコードが含まれる。このため、WAN10からIPv6パケットを受信したGW200は、図16の例において、IPv6パケットのv6宛先にコードが含まれていると判定し、コートが通信終了を示していないと判定する(ステップS151、S152;Yes、S155;No)。その後、GW200は、IPv6パケットのLAN側MACアドレスがMACアドレス記憶部208のLAN側MACアドレスと一致すると判定する(ステップS157;Yes)。GW200は、IPv6−IPv4アドレス変換テーブル203を参照する(ステップS159)。GW200は、IPv6パケットのv6送信元と同一の「IPv6アドレス」のエントリが存在せず、IPv6パケットのv4送信元と同一の「IPv4アドレス」のエントリが存在すると判定する(ステップS160;No、S161;Yes)。すると、GW200は、携帯電話100のIPv6プレフィックスが変更されたと判定し、IPv6パケットのv4送信元と同一の「IPv4アドレス」のエントリをIPv6−IPv4アドレス変換テーブル203から削除する(ステップS165)。そして、GW200は、IPv6パケットのv6送信元とv4送信元とを対応付けてIPv6−IPv4アドレス変換テーブル203に新規エントリとして格納し、新規エントリのタイマ値をさらに設定する(ステップS166)。なお、GW200は、IPv6パケットにコードが含まれている場合には、IPv6パケットに含まれるコードをIPv6−IPv4アドレス変換テーブル203にさらに格納する。その後、GW200は、IPv4パケットを生成してLAN20のTV5に転送する(ステップS170、S171)。   In the example of FIG. 29, the v6 destination of the IPv6 packet transmitted from the mobile phone 100 includes a code. Therefore, the GW 200 that has received the IPv6 packet from the WAN 10 determines that the code is included in the v6 destination of the IPv6 packet in the example of FIG. 16, and determines that the code does not indicate the end of communication (step S151, S152; Yes, S155; No). Thereafter, the GW 200 determines that the LAN side MAC address of the IPv6 packet matches the LAN side MAC address of the MAC address storage unit 208 (step S157; Yes). The GW 200 refers to the IPv6-IPv4 address conversion table 203 (step S159). The GW 200 determines that there is no entry with the same “IPv6 address” as the v6 source of the IPv6 packet and there is an entry with the same “IPv4 address” as the v4 source of the IPv6 packet (step S160; No, S161). ; Yes). Then, the GW 200 determines that the IPv6 prefix of the mobile phone 100 has been changed, and deletes the same “IPv4 address” entry as the v4 transmission source of the IPv6 packet from the IPv6-IPv4 address conversion table 203 (step S165). Then, the GW 200 associates the v6 transmission source and the v4 transmission source of the IPv6 packet and stores them as a new entry in the IPv6-IPv4 address conversion table 203, and further sets a timer value for the new entry (step S166). Note that the GW 200 further stores the code included in the IPv6 packet in the IPv6-IPv4 address conversion table 203 when the code is included in the IPv6 packet. Thereafter, the GW 200 generates an IPv4 packet and transfers it to the TV 5 of the LAN 20 (steps S170 and S171).

図29に戻り、TV5は、GW200から転送されたIPv4パケットを受信する(ステップS413)。TV5は、IPv4パケットに格納されたデータを基にして所定の処理を行う。その後、TV5は、自身のIPv4アドレスを送信元に設定し、携帯電話100のIPv4アドレスを宛先に設定したIPv4パケットを生成してGW200に返信する(ステップS414)。   Returning to FIG. 29, the TV 5 receives the IPv4 packet transferred from the GW 200 (step S413). The TV 5 performs a predetermined process based on the data stored in the IPv4 packet. Thereafter, the TV 5 sets its own IPv4 address as the transmission source, generates an IPv4 packet in which the IPv4 address of the mobile phone 100 is set as the destination, and sends it back to the GW 200 (step S414).

GW200は、TV5から返信されたIPv4パケットをLAN20から受信し、IPv6パケット転送処理を実行する(ステップS415)。TV5から返信されたIPv4パケットは、第三のパケットの一例である。   The GW 200 receives the IPv4 packet returned from the TV 5 from the LAN 20, and executes an IPv6 packet transfer process (step S415). The IPv4 packet returned from the TV 5 is an example of a third packet.

ここで、ステップS415のIPv6パケット転送処理について説明する。ステップS415のIPv6パケット転送処理は、図19に示したIPv6パケット転送処理に対応する。   Here, the IPv6 packet transfer processing in step S415 will be described. The IPv6 packet transfer process in step S415 corresponds to the IPv6 packet transfer process shown in FIG.

図29の例では、TV5から返信されたIPv4パケットのv4宛先には携帯電話100のIPv4アドレスが含まれる。このため、LAN20からIPv4パケットを受信したGW200は、図19の例において、IPv4パケットの宛先アドレスがIPv4アドレスであることを確認する(ステップS181、S182;No)。その後、GW200は、IPv4パケットの宛先アドレスと同一の「IPv4アドレス」のエントリがIPv6−IPv4アドレス変換テーブル203に存在すると判定する(ステップS184、S185;Yes)。そして、GW200は、同エントリの対応するIPv6アドレスを宛先に設定したIPv6パケットを生成して携帯電話100に転送する(ステップS187、S188)。   In the example of FIG. 29, the IPv4 address of the mobile phone 100 is included in the v4 destination of the IPv4 packet returned from the TV 5. Therefore, the GW 200 that has received the IPv4 packet from the LAN 20 confirms that the destination address of the IPv4 packet is an IPv4 address in the example of FIG. 19 (steps S181 and S182; No). Thereafter, the GW 200 determines that an entry with the same “IPv4 address” as the destination address of the IPv4 packet exists in the IPv6-IPv4 address conversion table 203 (steps S184 and S185; Yes). Then, the GW 200 generates an IPv6 packet in which the corresponding IPv6 address of the entry is set as a destination, and transfers it to the mobile phone 100 (steps S187 and S188).

図29に戻り、携帯電話100は、GW200から転送されたIPv6パケットを受信する(ステップS416)。なお、携帯電話100は、IPv6パケットに含まれるデータを用いて所定の処理を行う。GW200は、所定のタイミングでIPv4−IPv6アドレス削除処理を行う(ステップS417)。ステップS417のIPv4−IPv6アドレス削除処理は、図21に示したIPv4−IPv6アドレス削除処理に対応する。   Returning to FIG. 29, the mobile phone 100 receives the IPv6 packet transferred from the GW 200 (step S416). Note that the mobile phone 100 performs predetermined processing using data included in the IPv6 packet. The GW 200 performs an IPv4-IPv6 address deletion process at a predetermined timing (step S417). The IPv4-IPv6 address deletion process in step S417 corresponds to the IPv4-IPv6 address deletion process shown in FIG.

次に、実施例4に係る通信システムの効果について説明する。GW200は、WAN10から受信したIPv6パケットのv6送信元がIPv6−IPv4アドレス変換テーブル203に存在せず、かつ、IPv6パケットのv4送信元が存在する場合に、IPv6−IPv4アドレス変換テーブル203のエントリを更新する。このため、本実施例の通信システムでは、WAN側から携帯電話100に通知されるIPv6プレフィックスが変更され、IPv6パケットのv6送信元に格納される携帯電話100のIPv6アドレスが変更された場合でも、実施例1と同様の作用を実現できる。結果として、GW200のメモリ規模の増大を抑えつつ、WAN10からLAN20への通信を中継することができる。   Next, effects of the communication system according to the fourth embodiment will be described. When the v6 transmission source of the IPv6 packet received from the WAN 10 does not exist in the IPv6-IPv4 address translation table 203 and the v4 transmission source of the IPv6 packet exists, the GW 200 adds an entry in the IPv6-IPv4 address translation table 203. Update. Therefore, in the communication system of the present embodiment, even when the IPv6 prefix notified from the WAN side to the mobile phone 100 is changed and the IPv6 address of the mobile phone 100 stored in the v6 source of the IPv6 packet is changed, The same operation as in the first embodiment can be realized. As a result, communication from the WAN 10 to the LAN 20 can be relayed while suppressing an increase in the memory size of the GW 200.

1 IPv6ネットワーク
2 キャリアネットワーク
3、3a エリアネットワーク
4 家庭内ネットワーク
5 TV
10 WAN
20 LAN
100 携帯電話
101 記憶部
102 IPv4アドレス取得部
103 通信要求受付部
104 パケット処理部
105 パケット送信部
106 無線インターフェース部
111 IPv4アドレス管理テーブル
112 IPv6アドレス管理テーブル
113 GW情報管理テーブル
200 GW
201 WAN側インターフェース部
202 LAN側インターフェース部
203 IPv6−IPv4アドレス変換テーブル
204 IPv6−IPv4アドレス格納部
205 IPv4ルーティングテーブル
206 IPv6ルーティングテーブル
207 ルーティング管理部
208 MACアドレス記憶部
209 コード記憶部
210 IPv6アドレス記憶部
211 IPv6アドレス処理部
212 パケット転送部
1 IPv6 network 2 Carrier network 3, 3a Area network 4 Home network 5 TV
10 WAN
20 LAN
DESCRIPTION OF SYMBOLS 100 Cellular phone 101 Memory | storage part 102 IPv4 address acquisition part 103 Communication request reception part 104 Packet processing part 105 Packet transmission part 106 Wireless interface part 111 IPv4 address management table 112 IPv6 address management table 113 GW information management table 200 GW
201 WAN side interface unit 202 LAN side interface unit 203 IPv6-IPv4 address conversion table 204 IPv6-IPv4 address storage unit 205 IPv4 routing table 206 IPv6 routing table 207 Routing management unit 208 MAC address storage unit 209 Code storage unit 210 IPv6 address storage unit 211 IPv6 address processing unit 212 Packet transfer unit

Claims (8)

第一のネットワークプロトコルを用いて通信する第一のネットワークまたは、第二のネットワークプロトコルを用いて通信する第三のネットワークに接続する携帯端末と前記第二のネットワークプロトコルを用いて通信する第二のネットワークに接続する電子機器との通信を中継装置が中継する通信システムであって、
前記携帯端末は、
前記第二のネットワークで前記携帯端末を識別する第二の携帯端末識別情報と、前記第二のネットワークで前記電子機器を識別する電子機器識別情報とを取得する取得部と、
前記第一のネットワークに接続している場合、前記第一のネットワークで前記携帯端末を識別する第一の携帯端末識別情報を送信元に設定するとともに、前記第二の携帯端末識別情報及び前記電子機器識別情報を含む第一のパケットを生成する、または、前記第三のネットワークに接続している場合、前記第二の携帯端末識別情報を送信元に、前記電子機器識別情報を宛先に設定した第二のパケットを生成するパケット処理部と、
前記第一のパケットを前記第一のネットワークを介して前記中継装置に送信する、または、前記第二のパケットを前記第三のネットワークを介して前記中継装置に送信する送信部とを備え、
前記中継装置は、
前記第一のパケットを受信した場合に、前記第一のパケットの送信元に設定された前記第一の携帯端末識別情報と、前記第一のパケットに含まれる前記第二の携帯端末識別情報とを対応付けて変換テーブルに格納する格納部と、
前記第一のパケットを受信した場合に、前記変換テーブルに格納された前記第二の携帯端末識別情報を送信元に設定し、前記第一のパケットに含まれる前記電子機器識別情報を宛先に設定した第三のパケットを、前記第二のネットワークを介して前記電子機器に送信する、または、前記第二のパケットを受信した場合に、前記第二のパケットを前記第二のネットワークに送信する転送部と
を備えたことを特徴とする通信システム。
A second terminal that communicates with the first network that communicates using the first network protocol or a portable terminal that connects to the third network that communicates using the second network protocol . A communication system in which a relay device relays communication with an electronic device connected to a network,
The portable terminal is
An acquisition unit for acquiring second mobile terminal identification information for identifying the mobile terminal in the second network, and electronic device identification information for identifying the electronic device in the second network;
When connected to the first network, the first portable terminal identification information for identifying the portable terminal in the first network is set as a transmission source, and the second portable terminal identification information and the electronic When a first packet including device identification information is generated or connected to the third network, the second mobile terminal identification information is set as a transmission source and the electronic device identification information is set as a destination. A packet processing unit for generating a second packet;
A transmission unit that transmits the first packet to the relay device via the first network , or a transmission unit that transmits the second packet to the relay device via the third network ;
The relay device is
When the first packet is received, the first portable terminal identification information set as the transmission source of the first packet, and the second portable terminal identification information included in the first packet; And a storage unit that associates and stores them in the conversion table;
When the first packet is received, the second mobile terminal identification information stored in the conversion table is set as a transmission source, and the electronic device identification information included in the first packet is set as a destination The third packet is transmitted to the electronic device via the second network , or when the second packet is received, the second packet is transmitted to the second network. And a communication system.
前記転送部は、さらに、前記第三のパケットを受信した前記電子機器から返信された第四のパケットを受信した場合に、前記第四のパケットの宛先に設定された前記第二の携帯端末識別情報に対応する前記第一の携帯端末識別情報を前記変換テーブルから検索し、検索した前記第一の携帯端末識別情報を宛先に設定した第五のパケットを、前記第一のネットワークを介して前記携帯端末に送信することを特徴とする請求項1に記載の通信システム。 The transfer unit further identifies the second portable terminal set as the destination of the fourth packet when receiving the fourth packet returned from the electronic device that has received the third packet. The first portable terminal identification information corresponding to the information is retrieved from the conversion table, and the fifth packet in which the retrieved first portable terminal identification information is set as the destination is transmitted via the first network. The communication system according to claim 1, wherein the communication system transmits to a mobile terminal. 第一のネットワークプロトコルを用いて通信する第一のネットワークまたは、第二のネットワークプロトコルを用いて通信する第二のネットワークに接続し、パケットを送信する携帯端末において、In a mobile terminal that connects to a first network that communicates using a first network protocol or a second network that communicates using a second network protocol and transmits packets,
前記携帯端末を識別する前記第二のネットワークプロトコルである第二の携帯端末識別情報と、宛先を識別する前記第二のネットワークプロトコルである宛先識別情報とを取得する取得部と、An acquisition unit that acquires second mobile terminal identification information that is the second network protocol that identifies the mobile terminal, and destination identification information that is the second network protocol that identifies a destination;
前記第一のネットワークに接続している場合、前記携帯端末を識別する第一のネットワークプロトコルである第一の携帯端末識別情報を送信元に設定するとともに、前記第二の携帯端末識別情報及び宛先情報を含む第一のパケットを生成する、または、前記第二のネットワークに接続している場合、前記第二の携帯端末識別情報を送信元に、前記宛先識別情報を宛先に設定した第二のパケットを生成するパケット処理部と、When connected to the first network, the first mobile terminal identification information, which is a first network protocol for identifying the mobile terminal, is set as a transmission source, and the second mobile terminal identification information and the destination are set. When the first packet including information is generated or connected to the second network, the second mobile terminal identification information is set as the transmission source, and the destination identification information is set as the destination. A packet processing unit for generating a packet;
前記第一のパケットを前記第一のネットワークを介して送信する、または、前記第二のパケットを前記第二のネットワークを介して送信する送信部とA transmission unit for transmitting the first packet via the first network, or transmitting the second packet via the second network;
を備えたことを特徴とする携帯端末。A portable terminal characterized by comprising:
第一のネットワークプロトコルを用いて通信する第一のネットワークまたは、第二のネットワークプロトコルを用いて通信する第三のネットワークからパケットを受信し、受信した前記パケットに応じた転送パケットを前記第二のネットワークプロトコルを用いて通信する第二のネットワークに転送する中継装置において、A packet is received from a first network that communicates using the first network protocol or a third network that communicates using the second network protocol, and a transfer packet corresponding to the received packet is sent to the second network In a relay device that transfers to a second network that communicates using a network protocol,
前記パケットが前記第一のネットワークを介して受信した第一のパケットの場合、前記第一のパケットに含まれる送信元を前記第一のネットワークで識別する第一の識別情報と、前記第一のパケットに含まれる前記第二のネットワークでの前記第一のパケットの送信元を識別する第二の識別情報とを対応付けて変換テーブルに格納する格納部と、When the packet is a first packet received via the first network, first identification information for identifying a transmission source included in the first packet by the first network, and the first packet A storage unit that associates and stores the second identification information that identifies the transmission source of the first packet in the second network included in the packet in the conversion table;
前記パケットが前記第一のネットワークを介して受信した第一のパケットの場合、前記第一のパケットに格納している前記第二のネットワークでの識別情報である宛先識別情報を宛先に、前記第二の識別情報を送信元とした第三のパケットを生成し、前記転送パケットとして送信する、または、前記パケットが前記第三のネットワークを介して受信した第二のパケットの場合、前記受信した第二のパケットを転送パケットとして送信する転送部とWhen the packet is a first packet received via the first network, destination identification information that is identification information in the second network stored in the first packet is set as the destination. Generating a third packet with the second identification information as the transmission source and transmitting it as the forwarding packet, or if the packet is a second packet received via the third network, the received second packet A transfer unit that transmits the second packet as a transfer packet;
を備えたことを特徴とする中継装置。A relay apparatus comprising:
第一のネットワークと第二のネットワークとの間の通信を中継する中継装置であって、A relay device that relays communication between a first network and a second network,
前記第一のネットワークで第一の識別情報を送信元に設定するとともに、前記第二のネットワークで前記送信元を識別する第二の識別情報及び前記第二のネットワークで宛先を識別する第三の識別情報を含む第一のパケットを受信した場合に、前記第一の識別情報と前記第二の識別情報とを対応付けて変換テーブルに格納する格納部と、The first identification information is set as the transmission source in the first network, and the second identification information for identifying the transmission source in the second network and the third identification for identifying the destination in the second network A storage unit that stores the first identification information and the second identification information in association with each other in the conversion table when the first packet including the identification information is received;
前記変換テーブルに格納された前記第二の識別情報を送信元に設定し、前記第三の識別情報を宛先に設定した第二のパケットを、前記第二のネットワークに転送する転送部とA transfer unit configured to set the second identification information stored in the conversion table as a transmission source and transfer the second packet set with the third identification information as a destination to the second network;
を備え、With
前記格納部は、前記第一の識別情報と前記第二の識別情報との対応関係の保持期間を示す保持期間情報を前記第一の識別情報及び前記第二の識別情報に対応付けて前記変換テーブルにさらに格納し、前記保持期間情報が示す保持期間が満了した場合に、前記保持期間情報に対応する前記第一の識別情報及び前記第二の識別情報を前記変換テーブルから削除することを特徴とする中継装置。The storage unit associates holding period information indicating a holding period of a correspondence relationship between the first identification information and the second identification information with the first identification information and the second identification information, and performs the conversion. Further storing in the table, and when the retention period indicated by the retention period information has expired, deleting the first identification information and the second identification information corresponding to the retention period information from the conversion table, Relay device.
前記格納部は、受信した前記第一のパケットに、前記通信の終了を示す通信終了情報が含まれる場合には、前記第一のパケットの送信元として設定された前記第一の識別情報及び前記第一の識別情報に対応する前記第二の識別情報を前記変換テーブルから削除することを特徴とする請求項4または5に記載の中継装置。When the received first packet includes communication end information indicating the end of the communication, the storage unit includes the first identification information set as a transmission source of the first packet and the first packet The relay device according to claim 4 or 5, wherein the second identification information corresponding to the first identification information is deleted from the conversion table. 前記格納部は、受信した前記第一のパケットの送信元として設定された前記第一の識別情報が前記変換テーブルに格納された前記第一の識別情報と一致せず、  The storage unit does not match the first identification information set as the transmission source of the received first packet with the first identification information stored in the conversion table,
かつ、前記第一のパケットに含まれる前記第二の識別情報が前記変換テーブルに格納された前記第一の識別情報に一致する場合には、前記変換テーブルに格納された前記第一の識別情報と前記第二の識別情報との対応関係を更新することを特In addition, when the second identification information included in the first packet matches the first identification information stored in the conversion table, the first identification information stored in the conversion table And updating the correspondence relationship between the second identification information and the second identification information.
徴とする請求項4〜6のいずれか一つに記載の中継装置。The relay device according to any one of claims 4 to 6.
第一のネットワークプロトコルを用いて通信する第一のネットワークまたは、第二のネットワークプロトコルを用いて通信する第三のネットワークに接続する携帯端末と前記第二のネットワークプロトコルを用いて通信する第二のネットワークに接続する電子機器との通信を中継装置が中継する通信システムによって実行される通信制御方法であって、
前記携帯端末が、
前記第二のネットワークで前記携帯端末を識別する第二の携帯端末識別情報と、前記第二のネットワークで前記電子機器を識別する電子機器識別情報とを取得し、
前記第一のネットワークに接続している場合、前記第一のネットワークで前記携帯端末を識別する第一の携帯端末識別情報を送信元に設定するとともに、前記第二の携帯端末識別情報及び前記電子機器識別情報を含む第一のパケットを生成し、または、前記第三のネットワークに接続している場合、前記第二の携帯端末識別情報を送信元に、前記電子機器識別情報を宛先に設定した第二のパケットを生成し、
前記第一のパケットを前記第一のネットワークを介して前記中継装置に送信し、または、前記第二のパケットを前記第三のネットワークを介して前記中継装置に送信し、
前記中継装置が、
前記携帯端末から送信された前記第一のパケットを受信した場合、前記第一のパケットの送信元に設定された前記第一の携帯端末識別情報と、前記第一のパケットに含まれる前記第二の携帯端末識別情報とを対応付けて変換テーブルに格納し、
前記変換テーブルに格納された前記第二の携帯端末識別情報を送信元に設定し、前記第一のパケットに含まれる前記電子機器識別情報を宛先に設定した第三のパケットを、前記第二のネットワークを介して前記電子機器に送信し、
前記第二のパケットを受信した場合に、前記第二のパケットを前記第二のネットワークに送信する
ことを特徴とする通信制御方法。
A second terminal that communicates with the first network that communicates using the first network protocol or a portable terminal that connects to the third network that communicates using the second network protocol . relay apparatus communication with the electronic devices connected to the network is a communication control method performed by a communication system for relaying,
The mobile terminal is
Obtaining second portable terminal identification information for identifying the portable terminal in the second network, and electronic device identification information for identifying the electronic apparatus in the second network;
When connected to the first network, the first portable terminal identification information for identifying the portable terminal in the first network is set as a transmission source, and the second portable terminal identification information and the electronic When a first packet including device identification information is generated or connected to the third network, the second mobile terminal identification information is set as a transmission source and the electronic device identification information is set as a destination. Generate a second packet,
Transmitting the first packet to the relay device via the first network, or transmitting the second packet to the relay device via the third network;
The relay device is
When the first packet transmitted from the mobile terminal is received, the first mobile terminal identification information set as the transmission source of the first packet and the second packet included in the first packet Is stored in the conversion table in association with the mobile terminal identification information of
The second mobile terminal identification information stored in the conversion table is set as a transmission source, and a third packet in which the electronic device identification information included in the first packet is set as a destination is set as the second packet . Transmitted to the electronic device via a network,
A communication control method , comprising: transmitting the second packet to the second network when the second packet is received .
JP2012070362A 2012-03-26 2012-03-26 COMMUNICATION SYSTEM, PORTABLE TERMINAL, RELAY DEVICE, AND COMMUNICATION CONTROL METHOD Expired - Fee Related JP5874486B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012070362A JP5874486B2 (en) 2012-03-26 2012-03-26 COMMUNICATION SYSTEM, PORTABLE TERMINAL, RELAY DEVICE, AND COMMUNICATION CONTROL METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012070362A JP5874486B2 (en) 2012-03-26 2012-03-26 COMMUNICATION SYSTEM, PORTABLE TERMINAL, RELAY DEVICE, AND COMMUNICATION CONTROL METHOD

Publications (2)

Publication Number Publication Date
JP2013201731A JP2013201731A (en) 2013-10-03
JP5874486B2 true JP5874486B2 (en) 2016-03-02

Family

ID=49521587

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012070362A Expired - Fee Related JP5874486B2 (en) 2012-03-26 2012-03-26 COMMUNICATION SYSTEM, PORTABLE TERMINAL, RELAY DEVICE, AND COMMUNICATION CONTROL METHOD

Country Status (1)

Country Link
JP (1) JP5874486B2 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004221745A (en) * 2003-01-10 2004-08-05 Fujitsu Ltd Address conversion apparatus
JP2005006147A (en) * 2003-06-13 2005-01-06 Yokogawa Electric Corp Network system
JP3900157B2 (en) * 2004-01-05 2007-04-04 株式会社日立製作所 Translator
JP4331638B2 (en) * 2004-03-31 2009-09-16 富士通株式会社 Network control system and network control method
JP2005311829A (en) * 2004-04-23 2005-11-04 Matsushita Electric Ind Co Ltd Communication path setting method, gateway device and communication system
JP4167666B2 (en) * 2005-03-17 2008-10-15 Necビッグローブ株式会社 Remote access system, router and remote access control program
JP4600992B2 (en) * 2005-08-17 2010-12-22 Kddi株式会社 Home appliance remote control system and operation method thereof
JP4742981B2 (en) * 2006-05-19 2011-08-10 株式会社日立製作所 Home gateway device

Also Published As

Publication number Publication date
JP2013201731A (en) 2013-10-03

Similar Documents

Publication Publication Date Title
US7305480B2 (en) Method and system for persistent translation between protocols
JP4231042B2 (en) Communication method, mobile agent device, and home agent device
WO2002073907A1 (en) System for managing mobile node in mobile network
JP2004336208A (en) Router, and address identification information management server
US8432924B2 (en) Routing optimization method and message transmission system based on proxy mobile agent
KR101323629B1 (en) Method, device and system for information synchronization
CN108476374B (en) Communication control device, wireless device, communication control system, communication control method, and computer-readable recording medium
EP3395049B1 (en) Router and method for connecting an ipv4 network and an ipv6 network
TWI549553B (en) Communication methods and communication systems
JP5874486B2 (en) COMMUNICATION SYSTEM, PORTABLE TERMINAL, RELAY DEVICE, AND COMMUNICATION CONTROL METHOD
JP5818272B2 (en) Home gateway apparatus and packet transfer method
JP4319655B2 (en) Terminal mobility for transition between private IPv4 / global IPv6
KR100882353B1 (en) METHOD FOR CREATING TUNNEL NETWORK INTERFACE AND TRANSMITTING/RECEIVING PACKET USING TUNNEL NETWORK INTERFACE IN SERVER OF IPv4 NETWORK
JP2007097073A (en) Agent apparatus, communication system, communication mediation method, and communication mediation program
WO2011041972A1 (en) Method and system for implementing active push of data packets
JP3764810B2 (en) Mobile terminal control method, movement support terminal, and network system for performing movement support
JP6807962B2 (en) Relay device, communication system, and communication method
JP3861885B2 (en) Mobile terminal and packet transmission method
JP6276009B2 (en) Exchange, transfer setting system, and transfer setting method
KR20150144569A (en) Entity identifier based protocol architecture
JP4177383B2 (en) Mobile network system
JP4673253B2 (en) Information transfer device
JP2019216323A (en) Gateway device
JP2009100047A (en) Mobile communication device and method
JP2019121844A (en) Communication apparatus, communication system, and control method for communication apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141204

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150918

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150929

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151130

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160104

R150 Certificate of patent or registration of utility model

Ref document number: 5874486

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees