WO2012114684A1 - ルータ装置、プレフィクス管理にもとづくパケット制御方法およびプログラム - Google Patents

ルータ装置、プレフィクス管理にもとづくパケット制御方法およびプログラム Download PDF

Info

Publication number
WO2012114684A1
WO2012114684A1 PCT/JP2012/001028 JP2012001028W WO2012114684A1 WO 2012114684 A1 WO2012114684 A1 WO 2012114684A1 JP 2012001028 W JP2012001028 W JP 2012001028W WO 2012114684 A1 WO2012114684 A1 WO 2012114684A1
Authority
WO
WIPO (PCT)
Prior art keywords
prefix
packet
unit
node
filter
Prior art date
Application number
PCT/JP2012/001028
Other languages
English (en)
French (fr)
Inventor
敦 青島
Original Assignee
Necアクセステクニカ株式会社
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 Necアクセステクニカ株式会社 filed Critical Necアクセステクニカ株式会社
Priority to SG2013063581A priority Critical patent/SG192893A1/en
Priority to EP12749022.5A priority patent/EP2680511B1/en
Priority to US13/992,905 priority patent/US10291435B2/en
Publication of WO2012114684A1 publication Critical patent/WO2012114684A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/54Store-and-forward switching systems 
    • H04L12/56Packet switching systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/72Routing based on the source address
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5092Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • H04L63/0236Filtering by address, protocol, port number or service, e.g. IP-address or URL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Definitions

  • the present invention relates to a router device to which a prefix of an IP address is distributed by prefix delegation, and a packet control method and program based on prefix management in the router device.
  • IPV6 Internet Protocol Version 6
  • DHCPv6 Dynamic Host Configuration Protocol Version 6
  • a method of distributing addresses using DHCPv6 a method in which an upper router having a DHCP server or a DHCP function distributes an IP address prefix (Prefix) to a router device using RA (Router Advertisement) is used.
  • Prefix IP address prefix
  • RA Router Advertisement
  • the router device to which the prefix has been distributed redistributes the prefix to the nodes using, for example, RA.
  • the node communicates with the upper router using the IP address including the distributed prefix.
  • the upper router is connected to the Internet, for example.
  • FIG. 13 is a block diagram illustrating an example of a communication system including a home gateway (HGW) as a router device.
  • An upper router (hereinafter referred to as a router) 200 is installed in, for example, an Internet service provider (ISP) and can be connected to the Internet 400.
  • the HGW 100 is set in a home or the like and can communicate with the router 200 via a WAN (Wide Area Network) 21.
  • the WAN 21 is, for example, a subscriber line network.
  • the HGW 100 can communicate with one or more nodes 300 via the LAN 11 and relays communication between the node 300 and the router 200.
  • the node 300 is a personal computer as an example.
  • Router 200 distributes a prefix to HGW 100 based on a DHCP-PD (PrefixPreDelegation) function periodically or in response to a request from HGW 100.
  • the HGW 100 redistributes the prefix to the node 300.
  • the node 300 generates an IP address by combining the prefix and the link local address of the local station.
  • the node 300 performs communication using the generated IP address.
  • the prefix 110 is held as a prefix until the valid period (life time) elapses. Under such circumstances, the node 300 cannot perform communication with the router 200 or communication via the Internet 400.
  • the HGW 100 transfers an IP address including the prefix 110 transmitted from the node 300. That is, there is a possibility that an incorrect prefix is advertised.
  • a router apparatus is a router apparatus that redistributes a prefix distributed from a prefix distribution apparatus to a node and performs packet routing based on an IPv6 address, and the prefix distributed from the prefix distribution apparatus And a prefix management unit that creates a filter condition including a condition for passing or blocking a packet from the node based on a prefix at the source IP address received from the node, and a filter condition created by the prefix management unit And a filter unit for passing or blocking a packet from the node.
  • the packet control method based on prefix management is used for prefix management executed by a router device that redistributes a prefix distributed from a prefix distribution device to a node and performs packet routing based on an IPv6 address.
  • a packet control method based on a filter condition including a condition for passing or blocking a packet from a node based on a prefix distributed from a prefix distribution apparatus and a prefix in a source IP address received from the node And the packet from the node is allowed to pass or blocked according to the created filter condition.
  • the packet control program based on prefix management is a program installed in a router device that redistributes a prefix distributed from a prefix distribution device to a node and performs packet routing based on an IPv6 address. Based on the prefix delivered from the prefix delivery device to the computer in the router device and the prefix at the source IP address received from the node, filter conditions including conditions for passing or blocking packets from the node are set. It is characterized in that a process to create and a process to pass or block a packet from a node according to the created filter condition are executed.
  • FIG. FIG. 1 is a block diagram showing a first embodiment of a router device according to the present invention.
  • FIG. 1 shows an HGW 101 as an example of a router device.
  • the configuration of the communication system including the HGW 101 may be the same as the example shown in FIG.
  • the HGW 101 includes a LAN interface unit 110 connected to the LAN 11, an IPv6 unit (LAN side IPv6 unit) 111 that transmits and receives IPv6 packets via the LAN 11, and an IPv6 unit (WAN side IPv6 unit) 112 that transmits and receives IPv6 packets via the WAN 21.
  • LAN side IPv6 unit IPv6 unit
  • WAN side IPv6 unit IPv6 unit
  • IPv6 routing unit 120 that controls the routing of IPv6 packets, filter unit 130 that controls the passage / blocking of data, DHCPv6 client unit 140 that has a DHCPv6 client function, and IPv6 host unit that has an IPv6 function such as DNS (Domain Name System) 150, a prefix management unit 160 that manages prefixes, a prefix storage unit 170 that stores prefix information, and a WAN interface unit 180 connected to the WAN 21.
  • DNS Domain Name System
  • the HGW 101 may include an IPv4 function for realizing communication based on IPv4 in addition to the IPv6 function.
  • the LAN interface unit 110 is connected to a home network (LAN 11), and receives a packet having a layer 2 header address on the LAN 11 side or a multicast address via the LAN 11.
  • the LAN interface unit 110 transmits the packet output from the IPv6 unit 111 to the LAN 11.
  • the WAN interface unit 180 is connected to the router 200 (see FIG. 13) via a subscriber line network (WAN 21).
  • the WAN interface unit 180 receives, via the WAN 21, a packet whose layer 2 header address is the LAN 11 side address or multicast address. Further, the WAN interface unit 180 transmits the packet output from the IPv6 unit 112 to the WAN 21.
  • the IPv6 unit 111 outputs the packet received by the LAN interface unit 110 to the IPv6 routing unit 120.
  • the IPv6 unit 111 outputs the packet output from the IPv6 routing unit 120 to the LAN interface unit 110.
  • the IPv6 unit 112 outputs the IPv6 packet received by the WAN interface unit 180 to the filter unit 130.
  • the IPv6 unit 112 outputs the packet output from the filter unit 130 to the WAN interface unit 180.
  • the IPv6 routing unit 120 receives packets from the IPv6 unit 111, the filter unit 130, the IPv6 host unit 150, and the DHCPv6 client unit 140.
  • the IPv6 routing unit 120 specifies a block in the HGW 101 that should process the input packet based on the destination IPv6 address, port number, and reception interface information of the packet.
  • the IPv6 routing unit 120 outputs the packet to the identified block.
  • the DHCPv6 client unit 140 has a DHCPv6 client function.
  • the DHCPv6 client unit 140 transmits and receives DHCPv6 messages to and from the router 200 (see FIG. 13) via the IPv6 routing unit 120 and the WAN 21.
  • the DHCPv6 client unit 140 extracts prefix information included in the DHCP-PD option in the DHCP approval response (Reply) message, and outputs the prefix information to the prefix management unit 160.
  • the prefix management unit 160 determines the prefix information to be notified to the LAN 11 side based on the prefix information input from the DHCPv6 client unit 140. The prefix management unit 160 outputs the determined prefix information to the prefix storage unit 170.
  • the prefix storage unit 170 stores prefix information. Further, the prefix storage unit 170 stores the deletion flag notified from the prefix management unit 160 together with the prefix information.
  • the deletion flag indicates prefix information to be deleted. For example, the deletion flag “1” indicates prefix information to be deleted.
  • the deletion flag “0” indicates usable prefix information.
  • the prefix storage unit 170 supplies the stored prefix information and deletion flag pair to the IPv6 host unit 150.
  • the process for the prefix management unit 160 to determine prefix information to be notified to the LAN 11 side is, for example, as follows.
  • the HGW 101 multicasts a solicitation message to the router 200 (see FIG. 13).
  • the router 200 transmits an advertisement (Advertise) message to the HGW 101.
  • the HGW 101 receives the Advertise message
  • the HGW 101 transmits a request (Request) message to the router 200.
  • the router 200 transmits a Reply message to the HGW 101.
  • the DHCPv6 client unit 140 obtains “Prefix”, “Preferred life time”, and “valid life time” from the information set in “Identity Association for Prefixleg Delegation” which is an option of the DHCP ⁇ ⁇ ⁇ ⁇ ⁇ Reply message.
  • the DHCPv6 client unit 140 supplies the information to the prefix management unit 160.
  • the prefix management unit 160 determines prefix information to be notified to the LAN 11 side based on such information.
  • the prefix management unit 160 determines the prefix information to be notified to the LAN 11 side when the contents of the option of the DHCP Reply message change, that is, when the prefix information changes, and the prefix information thus determined
  • the data is output to the fixture storage unit 170.
  • the prefix management unit 160 sends information indicating the prefix included in the source address to the prefix storage unit 170. Output.
  • the prefix length is 64 bits.
  • the prefix management unit 160 includes a prefix control unit 161.
  • the prefix control unit 161 determines the value (0 or 1) of the deletion flag corresponding to the prefix information determined by the prefix management unit 160.
  • the prefix management unit 160 outputs the prefix information to the prefix storage unit 170, the prefix management unit 160 also outputs a deletion flag corresponding to the prefix information.
  • the prefix control unit 161 creates a filter condition based on the prefix information determined by the prefix management unit 160.
  • the prefix management unit 160 outputs the filter condition created by the prefix control unit 161 to the filter unit 130.
  • the filter unit 130 stores filter conditions. When the LAN interface unit 110 receives a packet, the filter unit 130 executes processing according to the filter condition. Specifically, the filter unit 130 outputs a packet that does not satisfy the filter condition to the IPv6 unit 112. In addition, the filter unit 130 discards packets that satisfy the filter condition. At that time, the filter unit 130 outputs the source address of the discarded packet to the prefix management unit 160. The filter unit 130 does not execute processing according to the filter condition for the packet from the WAN 21 side.
  • the IPv6 host unit 150 includes an ICMPv6 unit 151 that realizes ICMP (Internet Control Message Protocol) v6 which is a part of IPv6.
  • the ICMPv6 unit 151 executes generation of an ICMPv6 packet, transmission / reception of the ICMPv6 packet, and processing related to the ICMPv6 packet. In FIG. 1, a part for realizing IPv6 other than ICMP is omitted.
  • the ICMPv6 unit 151 receives the ICMPv6 packet from the IPv6 routing unit 120, executes processing according to the option specified in the ICMPv6 packet, and then returns the ICMPv6 packet to the IPv6 routing unit 120.
  • the ICMPv6 unit 151 periodically acquires the prefix information stored in the prefix storage unit 170.
  • the ICMPv6 unit 151 creates option information (option) from the prefix information.
  • the ICMPv6 unit 151 adds the created option to the RA of the ICMPv6 packet.
  • the ICMPv6 unit 151 outputs the ICMPv6 packet to which the option is added to the IPv6 routing unit 120.
  • the ICMPv6 unit 151 notifies the prefix storage unit 170 of the prefix deletion when the option indicating the deletion of the prefix that should not be transferred is added to the RA of the ICMPv6 packet.
  • FIG. 2 is an explanatory diagram illustrating an example of a relationship between an event that has occurred and information stored in a prefix storage unit.
  • FIG. 3 is an explanatory diagram illustrating an example of the filter condition.
  • FIG. 4 is an explanatory diagram showing an RA option format.
  • the node is an apparatus corresponding to the node 300 shown in FIG. 13 although not shown in FIG.
  • the router 200 (see FIG. 13) on the WAN 21 side transmits the prefix information, the next hop address, and the DNS address to the HGW 101.
  • the HGW 101 transmits the received prefix information to a node connected to the LAN 11.
  • the router 200 uses DHCPv6 when distributing the prefix information to the HGW 101.
  • the HGW 101 uses DHCPv6 when transmitting prefix information to the node.
  • the DHCPv6 client unit 140 outputs the prefix information notified by DHCPv6-PD to the prefix management unit 160. It is assumed that the prefix specified by the information notified by DHCPv6-PD is “Prefix110”.
  • the prefix management unit 160 outputs “Prefix110” based on the received prefix information and the deletion flag set to “0” to the prefix storage unit 170. As shown in the row “Prefix 110 ⁇ has been notified from the router on the WAN side” in FIG. 2, the prefix storage unit 170 stores “Prefix110” and a deletion flag whose value is “0”.
  • the prefix control unit 161 creates a filter condition (see FIG. 3) when prefix information is input.
  • the prefix management unit 160 outputs the created filter condition to the filter unit 130.
  • the filter unit 130 stores filter conditions.
  • the prefix control unit 161 creates a filter condition and a deletion flag corresponding to each piece of prefix information.
  • the prefix management unit 160 outputs the created plurality of filter conditions and the deletion flag to the filter unit 130.
  • the ICMPv6 unit 151 periodically acquires the prefix information stored in the prefix storage unit 170.
  • the ICMPv6 unit 151 adds “Prefix110” to the option of the RA packet.
  • the ICMPv6 unit 151 outputs the RA packet to which the option is added to the IPv6 routing unit 120.
  • the IPv6 routing unit 120 outputs the RA packet to the IPv6 unit 111.
  • the RA packet is transmitted to the node via the LAN interface unit 110 and the LAN 11.
  • the node After that, the node generates an IP address by executing a stateless address automatic generation process using “Prefix110” added to the option of the received RA packet.
  • the node communicates with other devices via the node 200 (see FIG. 13) and the Internet 400 using the generated IP address.
  • a prefix (this is a prefix of the source address (SrcIP address) distributed to the node for IPv6 packets directed from the LAN 11 side to the WAN 21 side (this)
  • the IPv6 packet is discarded.
  • information indicating that the transmission source address is notified to the prefix management unit 160 when the packet is discarded is added to the filter condition.
  • the destination address (DstIPDaddress) is not a problem in the filter condition.
  • the router 200 changes the prefix from “Prefix110” to “Prefix111”.
  • the router 200 notifies the HGW 101 of a new prefix “Prefix111” using DHCPv6-PD.
  • the DHCPv6 client unit 140 outputs the prefix information notified by DHCPv6-PD to the prefix management unit 160.
  • the prefix specified by the information notified by DHCPv6-PD is “Prefix111”.
  • the prefix control unit 161 gives an instruction to set the value of the deletion flag corresponding to “Prefix110fix”, which is the prefix before being changed to “Prefix111Pre”, to “1”. Output to.
  • the prefix control unit 161 outputs “Prefix111” based on the received prefix information and the deletion flag set to “0” to the prefix storage unit 170.
  • the prefix storage unit 170 sets the value of the deletion flag corresponding to “Prefix110” to “1” and “Prefix111” "And the deletion flag whose value is” 0 "are stored.
  • the prefix control unit 161 creates a filter condition when the prefix information “Prefix111” is received.
  • the prefix management unit 160 issues a filter condition deletion command to the filter unit 130.
  • the target of the deletion command is a filter condition related to “Prefix110”.
  • the prefix management unit 160 outputs the created new filter condition to the filter unit 130.
  • the filter unit 130 stores new filter conditions.
  • the filter condition stored in the filter unit 130 is represented by the filter condition illustrated in FIG. 3. At this stage, “IP address including a prefix not distributed to the node by the HGW 101” is other than “Prefix111”. IP address including the prefix.
  • the ICMPv6 unit 151 periodically acquires the prefix information stored in the prefix storage unit 170.
  • the prefix storage unit 170 stores “Prefix110” and “Prefix111” as prefix information. .
  • the value of the deletion flag corresponding to “Prefix111” is “0”, but the value of the deletion flag corresponding to “Prefix110” is “1”. Therefore, the ICMPv6 unit 151 adds data indicating the deletion of “Prefix110” and data indicating the distribution of “Prefix111” to the option of the RA packet.
  • the ICMPv6 unit 151 outputs the RA packet to which the option is added to the IPv6 routing unit 120.
  • the IPv6 routing unit 120 outputs the RA packet to the IPv6 unit 111.
  • the RA packet is transmitted to the node via the LAN interface unit 110 and the LAN 11.
  • the ICMPv6 unit 151 notifies the prefix storage unit 170 that the RA packet to which the data indicating the deletion of “Prefix 110” and the data indicating the distribution of “Prefix 111” are transmitted.
  • the prefix storage unit 170 Upon receiving the notification, the prefix storage unit 170 deletes the information related to “Prefix110”. Therefore, as shown in the “after RA transmission” line in FIG. 2, only “Prefix111” is stored as the prefix information.
  • the node may not be able to receive a packet including an option indicating the deletion of “Prefix 110”.
  • the node continues to hold “Prefix110” as a prefix. Therefore, the node communicates with the HGW 101, the router 200, and the Internet 400 using "Prefix 110" that should not be used.
  • the node recognizes that the prefix is “Prefix110” and the HGW 101 recognizes that the prefix is “Prefix111”. That is, the prefix storage unit 170 holds “Prefix111” and a deletion flag “0” corresponding thereto.
  • the HGW 101 receives a packet transmitted from the node via the LAN 11.
  • the packet passes through the LAN interface unit 110, the IPv6 unit 111, and the IPv6 routing unit 120.
  • the filter unit 130 inputs the packet.
  • the prefix of the source address set in the packet is “Prefix110”.
  • the filter unit 130 stores a filter condition that “Prefix111” is a prefix distributed by the HGW 101. Since the prefix of the source address is different from “Prefix111”, the filter condition is satisfied.
  • the filter unit 130 discards the input packet. In addition, the filter unit 130 notifies the prefix management unit 160 of the source address set in the packet.
  • the prefix management unit 160 can acquire the prefix from the transmission source address. In this embodiment, since the prefix length is 64 bits, the prefix management unit 160 extracts the first 64-bit data of the transmission source address, and recognizes the extracted data as a prefix.
  • the source address set in the packet is “Prefix110”. Since “Prefix110” is a prefix that should not be used, the prefix control unit 161 creates a deletion flag whose value is “1”. The prefix management unit 160 outputs “Prefix110” and the deletion flag created by the prefix control unit 161 to the prefix storage unit 170. The prefix storage unit 170 stores “Prefix110” and a deletion flag whose value is “1”.
  • the prefix storage unit 170 sets the value of the deletion flag corresponding to “Prefix110 ⁇ ”to“ 1 ”, as shown in the row“ WAN side router has changed the prefix ”in FIG.
  • “Prefix111” and a deletion flag whose value is “0” are stored as prefix information.
  • the ICMPv6 unit 151 periodically acquires the prefix information stored in the prefix storage unit 170.
  • the ICMPv6 unit 151 creates an option from the prefix information.
  • the ICMPv6 unit 151 adds the created option to the RA of the ICMPv6 packet.
  • FIG. 4 is an explanatory diagram showing an RA option format.
  • the ICMPv6 unit 151 sets “3” to “type” in option, sets “4” to “data length”, and sets “64 bits” to “prefix length”. “L” is the same link flag, and “A” is an address setting flag.
  • the ICMPv6 unit 151 sets “0” in the “valid lifetime” and “0” in the “preferred lifetime”.
  • the ICMPv6 unit 151 sets a prefix to be deleted (in this example, “Prefix110”) in “prefix”.
  • the router device periodically transmits an RA packet in which a valid time is set to the “valid lifetime” and “preferred lifetime” of the distributed prefix to the node, thereby Update the validity period.
  • the ICMPv6 unit 151 can easily determine whether or not the prefix stored in the prefix storage unit 170 is usable. .
  • the ICMPv6 unit 151 periodically acquires the prefix information stored in the prefix storage unit 170.
  • the ICMPv6 unit 151 creates an RA packet based on the acquired prefix information and transmits it to the node.
  • the HGW 101 performs prefix distribution and prefix update (specifically, deletion) by using a confirmation operation using a periodically transmitted RA packet.
  • the ICMPv6 unit 151 creates an option for deleting “Prefix110” to be deleted, and creates an option for distributing “Prefix111”.
  • the IPv6 host unit 150 outputs the RA packet to which the option created by the ICMPv6 unit 151 is added to the IPv6 routing unit 120.
  • the RA packet is routed by the IPv6 routing unit 120 and transmitted to the node via the IPv6 unit 111, the LAN interface unit 110, and the LAN 11. Based on the received RA packet, the node recognizes that “Prefix110” cannot be used and “Prefix111fix” should be used.
  • the node After that, the node generates an IP address by executing a stateless address automatic generation process using “Prefix111” added to the option of the received RA packet.
  • the node communicates via the node 200 (see FIG. 13) and the Internet 400 using the generated IP address.
  • the node can invalidate the “Prefix110” that was held. That is, the node that has received the RA packet including the option information that can specify the prefix to be deleted (unusable prefix) deletes the specified prefix.
  • the HGW 101 can invalidate a prefix that should not be transmitted to a node by using an option of the RA packet. Specifically, the HGW 101 transmits an RA packet in which “valid life time” and “preferred life time” in the option are set to “0” regarding “Prefix 110” although it should not be transmitted.
  • the HGW 101 discards the packet from the node including the prefix not notified from the router 200 (see FIG. 13), the packet including the common transmission source address is transmitted to the router 200 from the plurality of nodes. The occurrence of is avoided.
  • the router 200 can distribute a new prefix (for example, “Prefix 111”) to the HGW 101 based on the DHCP-PD function, and then distribute the old prefix (for example, “Prefix 110”) to other router devices. After distributing the old prefix to other router devices, if a node connected to the HGW 101 via the LAN 11 uses the old prefix, a packet including a common source address is transmitted to the router 200 from a plurality of nodes. Become.
  • a new prefix for example, “Prefix 111”
  • Prefix 110 for example, “Prefix 110”
  • the HGW 101 of this embodiment when used, it is possible to avoid a situation in which a packet including a common transmission source address is transmitted from a plurality of nodes to the router 200.
  • the HGW 101 compares the source IP address included in the packet received from the node with the prefix transmitted from the higher-level router 200, so that the packet received from the node is to be transferred. It is determined whether or not. When the HGW 101 determines that the packet received from the node is a packet that should not be transferred, the HGW 101 discards the packet. Therefore, a packet including a transmission source IP address based on an unusable prefix is prevented from being transmitted to the Internet.
  • the HGW 101 transmits an RA packet including option information indicating an instruction to delete an unusable prefix and a new prefix notified from the node 200 to the node.
  • a node that has received such an RA packet can delete a prefix that cannot be used, and can quickly shift to a state where it can communicate with the router 200 and a device via the Internet using the new prefix.
  • FIG. FIG. 5 is a block diagram showing a second embodiment of the router device according to the present invention.
  • FIG. 5 shows an HGW 102 as an example of a router device.
  • the configuration of the communication system including the HGW 102 may be the same as the example shown in FIG.
  • the filter unit 130 is arranged between the IPv6 routing unit 120 and the IPv6 unit 112. In the present embodiment, as shown in FIG. 5, the filter unit 130 is disposed between the IPv6 unit 111 and the IPv6 routing unit 120.
  • the processing executed by each block in the HGW 102 is the same as the processing executed by each block in the HGW 101.
  • FIG. 6 is an explanatory diagram showing an example of the filter condition.
  • the node 200 (see FIG. 13) distributes “Prefix 110” to the HGW 102 and then changes the prefix to “Prefix 111” based on the DHCP-PD function. Therefore, the ICMPv6 unit 151 notifies the prefix storage unit 170 that the RA packet to which the data indicating the deletion of “Prefix110” and the data indicating the distribution of “Prefix111” are added has been transmitted.
  • the prefix storage unit 170 stores prefix information in which “Prefix110” is deleted and only “Prefix111fix” is set, as shown in the “after RA transmission” line in FIG. 2.
  • the HGW 102 recognizes that the prefix is “Prefix111”, the node cannot receive the packet including the option indicating the deletion of “Prefix110”, and therefore the prefix is “Prefix110”. Take the case of recognizing
  • the prefix from the IPv6 routing unit 120 to the IPv6 unit 112 is restricted.
  • the prefix from the IPv6 routing unit 120 to the IPv6 unit 112 is restricted.
  • a packet transmitted from the node via the LAN 11 is input to the filter unit 130 via the LAN interface unit 110 and the IPv6 unit 111.
  • the packet is input from the IPv6 unit 111 to the IPv6 routing unit 120.
  • the filter process is executed before the routing process.
  • the prefix in the IP address from the node is “Prefix110”. Therefore, the filter condition is satisfied. Therefore, the filter unit 130 discards the packet. In addition, the filter unit 130 notifies the prefix management unit 160 of the source address set in the packet.
  • the prefix management unit 160 analyzes the transmission source address.
  • the prefix management unit 160 recognizes “Prefix110” from the transmission source address. Since “Prefix110” is a prefix that should not be used, the prefix control unit 161 creates a deletion flag having a value of “1”, as in the case of the first embodiment.
  • the prefix management unit 160 outputs “Prefix110” and the deletion flag created by the prefix control unit 161 to the prefix storage unit 170.
  • the prefix storage unit 170 stores “Prefix110” and a deletion flag whose value is “1”.
  • the ICMPv6 unit 151 periodically acquires the prefix information stored in the prefix storage unit 170.
  • the ICMPv6 unit 151 creates option information (option) from the prefix information.
  • the ICMPv6 unit 151 adds the created option to the RA of the ICMPv6 packet.
  • the RA packet is routed by the IPv6 routing unit 120 and transmitted to the node via the filter unit 130, the IPv6 unit 111, the LAN interface unit 110, and the LAN 11. Based on the received RA packet, the node recognizes that “Prefix110” cannot be used and “Prefix111fix” should be used.
  • the filter unit 130 since the filter unit 130 is arranged at the subsequent stage (WAN side) of the IPv6 routing unit 120, the packet input from the node is routed once. Then, the filter unit 130 performs a filtering process only on packets that are directed to the WAN side. In the present embodiment, since the filter unit 130 is arranged in the preceding stage of the IPv6 routing unit 120, the filter process is executed before the routing process. Therefore, the filter unit 130 can perform a filtering process on a packet routed within the LAN. That is, in this embodiment, in addition to the effects of the first embodiment, packet forwarding can be prohibited and RA packets for prefix update can be transmitted based on packets routed within the LAN. An effect is obtained.
  • FIG. 7 is a block diagram showing a third embodiment of the router device according to the present invention.
  • FIG. 7 shows an HGW 103 as an example of a router device.
  • the configuration of the communication system including the HGW 103 may be the same as the example shown in FIG.
  • the processing executed by each block in the HGW 103 is the same as the processing executed by each block in the HGWs 101 and 102.
  • the ICMPv6 unit 151 in the IPv6 host unit 150 periodically acquires the prefix information stored in the prefix storage unit 170. Then, the ICMPv6 unit 151 creates an RA packet based on the acquired prefix information and transmits it to the node. That is, the HGWs 101 and 102 perform prefix distribution and prefix update (specifically, deletion) using a confirmation operation using RA packets that are periodically transmitted.
  • the IPv6 host unit 150 performs processing for causing a node to delete a prefix immediately when a prefix deletion notification is received from the node 200 (see FIG. 13).
  • the node 200 changes the prefix to “Prefix 111”. Therefore, the ICMPv6 unit 151 notifies the prefix storage unit 170 that the RA packet to which the data indicating the deletion of “Prefix110” and the data indicating the distribution of “Prefix111” are added has been transmitted.
  • the prefix storage unit 170 stores prefix information in which “Prefix110” is deleted and only “Prefix111fix” is set, as shown in the “after RA transmission” line in FIG. 2.
  • the HGW 103 recognizes that the prefix is “Prefix111”, the node cannot receive the packet including the option indicating the deletion of “Prefix110”, and therefore the prefix is “Prefix110”. Take the case of recognizing
  • the prefix in the IP address from the node is “Prefix110”. Therefore, the filter condition is satisfied. Therefore, the filter unit 130 discards the packet. In addition, the filter unit 130 notifies the prefix management unit 160 of the source address set in the packet.
  • the prefix management unit 160 analyzes the transmission source address.
  • the prefix management unit 160 recognizes “Prefix110” from the transmission source address.
  • the prefix control unit 161 creates a filter condition when “Prefix110” is recognized from the transmission source address.
  • the prefix management unit 160 outputs the created filter condition to the filter unit 130.
  • the filter unit 130 stores filter conditions.
  • FIG. 8 is an explanatory diagram showing an example of filter conditions in the present embodiment.
  • the prefix management unit 160 as shown in FIG. 8, is a filter to which a condition related to a prefix (in this example, “Prefix 110”) included in the packet discarded by the filter unit 130 is added. A condition is created (see the second line in FIG. 8).
  • the filter unit 130 executes a filter process according to the filter condition.
  • the filter unit 130 discards the packet. Further, the filter unit 130 notifies the prefix management unit 160 that the packet has been discarded.
  • the prefix control unit 161 creates a deletion flag whose value is “1”.
  • the prefix management unit 160 outputs “Prefix110” and the deletion flag created by the prefix control unit 161 to the prefix storage unit 170.
  • the prefix storage unit 170 stores “Prefix110” and a deletion flag whose value is “1”. That is, the prefix storage unit 170 sets the value of the deletion flag corresponding to “Prefix110” to “1”, as shown in the row “The router on the WAN side has changed the prefix” in FIG. Save the deletion flag whose value is “0” with “Prefix111”.
  • the prefix management unit 160 outputs a delete command to the ICMPv6 unit 151 when notified that the packet is discarded.
  • the ICMPv6 unit 151 acquires the prefix information stored in the prefix storage unit 170 as soon as the delete command is input.
  • the ICMPv6 unit 151 creates option information (option) from the prefix information. Specifically, the ICMPv6 unit 151 sets a prefix (in this example, “Prefix110”) corresponding to the deletion flag whose value is “1” in the prefix information as an RA option.
  • the ICMPv6 unit 151 adds the created option to the RA of the ICMPv6 packet.
  • the RA packet is routed by the IPv6 routing unit 120 and transmitted to the node via the IPv6 unit 111, the LAN interface unit 110, and the LAN 11. Based on the received RA packet, the node recognizes that “Prefix 110” is unusable.
  • the ICMPv6 unit 151 when the prefix management unit 160 outputs a deletion command, the ICMPv6 unit 151 immediately confirms the prefix information stored in the prefix storage unit 170. Therefore, the unusable prefix is transmitted to the node earlier than when the ICMPv6 unit 151 periodically checks the prefix information stored in the prefix storage unit 170. That is, in this embodiment, in addition to the effect of the first embodiment, it is possible to quickly obtain an effect that the node can be set to a state in which a prefix that cannot be used is not used.
  • the HGW 103 shown in FIG. 7 is configured based on the HGW 101 shown in FIG. 1.
  • the filter unit 130 includes the IPv6 unit 111 and the IPv6 routing unit 120. You may comprise based on HGW102 arrange
  • the functions of blocks other than the LAN interface unit 110 and the WAN interface unit 180 can be realized by a CPU and a memory that perform control according to a program.
  • the HGW is taken as an example of the router device, but the router device to which the present invention is applicable is not limited to the HGW.
  • FIG. 9 is a block diagram showing the main part of the router device according to the present invention.
  • the router device 1 includes the prefix distributed from the prefix distribution device 2 (for example, the router 200 illustrated in FIG. 13) and the node 3 (for example, illustrated in FIG. 13.
  • a prefix management unit 5 that creates a filter condition including a condition for passing or blocking a packet from the node 3 (for example, FIG. 1 and FIG. 5) 7 and the prefix management unit 160 shown in each of FIG. 7 and the filter unit 6 that passes or blocks the packet from the node according to the filter condition created by the prefix management unit 5 (for example, FIG. And a filter section 130) shown in each of FIGS.
  • the filter unit 6 discards the packet when the received packet matches the condition for blocking the packet in the filter condition, and notifies the prefix management unit 5 of the transmission source IP address of the discarded packet And the prefix management unit 5 determines that the prefix included in the notified source IP address is a prefix that should not be used and should be deleted.
  • a prefix storage unit 7 that stores a prefix together with determination data (for example, deletion data) used to determine whether or not the prefix can be used.
  • determination data for example, deletion data
  • a router apparatus including the prefix storage unit 170 illustrated in each of FIGS.
  • a router apparatus comprising an RA transmission unit 8 that generates option information of an RA packet that can specify whether it can be used or cannot be used, and transmits an RA packet including the generated option information to a node.
  • the RA transmitting unit 8 discards the packet, the RA packet including option information that can immediately specify that the prefix included in the transmission source IP address of the packet cannot be used.
  • a router device that transmits to the node 3.
  • the prefix management unit 5 When the prefix management unit 5 distributes a prefix from the prefix distribution device 2, the prefix management unit 5 sets a value indicating that the discrimination data corresponding to the prefix can be used, and newly adds a value from the prefix distribution device 2.
  • a router device that changes discrimination data corresponding to a prefix that has already been distributed to a value that indicates that the prefix is unusable when a correct prefix is distributed.
  • FIG. 12 is a flowchart showing the operation of the router device according to the present invention. That is, it is a flowchart showing processing in the packet control method according to the present invention.
  • the router device sets conditions for passing or blocking packets from the node based on the prefix distributed from the prefix distribution device and the prefix in the source IP address received from the node. It includes a step of creating a filter condition including the step (step S1) and a step of passing or blocking a packet from the node according to the created filter condition (step S2).
  • a packet control method comprising the step of determining a prefix to be deleted as a prefix that is unusable and to be deleted.
  • a packet control method including a step of storing a prefix in a prefix storage unit together with determination data used to determine whether or not the prefix is usable.
  • a packet control method including a step of creating option information of an RA packet and transmitting an RA packet including the created option information to a node.
  • an RA packet including option information that can specify that the prefix included in the source IP address of the packet is unusable is immediately transmitted to the node
  • a packet control method including:
  • the discrimination data corresponding to the prefix is set to a value indicating that it can be used, and a new prefix is distributed from the prefix distribution device
  • a packet control method including a step of changing discrimination data corresponding to a prefix that has already been distributed to a value indicating that the prefix is unusable.
  • the present invention can be suitably used in a general IPv6 Internet connection service environment in which a prefix is distributed from a higher-level router or the like to a router device, and the router device redistributes the prefix to a lower-level node device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

 本来使用してはならないプレフィクスを含むパケットが転送されないようにする。ルータ装置1は、プレフィクス配付装置2から配付されたプレフィクスと、ノード3から受信した送信元IPアドレスにおけるプレフィクスとにもとづいて、ノード3からのパケットの通過または遮断の条件を含むフィルタ条件を作成するプレフィクス管理部5と、プレフィクス管理部5が作成したフィルタ条件に従って、ノードからのパケットを通過させるかまたは遮断するフィルタ部6とを備えている。

Description

ルータ装置、プレフィクス管理にもとづくパケット制御方法およびプログラム
 本発明は、プレフィクス委譲によってIPアドレスのプレフィクスが配付されるルータ装置、ルータ装置におけるプレフィクス管理にもとづくパケット制御方法およびプログラムに関する。
 IPV6(Internet Protocol Version 6 )に従う通信ネットワークにおいて、ノードのIPアドレスを自動設定する方法として、DHCPv6(Dynamic Host Configuration Protocol version 6 )を用いてアドレスを配付する方法がある。
 DHCPv6を用いてアドレスが配付する方法には、DHCPサーバまたはDHCP機能を備えた上位ルータが、ルータ装置に対してRA(Router Advertisement)を利用してIPアドレスのプレフィクス(Prefix)を配付する方法が含まれている(例えば、特許文献1,2参照)。
 プレフィクスが配付されたルータ装置は、例えばRAを用いてノードにプレフィクスを再配布する。ノードは、配付されたプレフィクスを含むIPアドレスを用いて上位ルータと通信する。上位ルータは、例えばインターネットに接続されている。
特開2007-166097号公報 特開2007-251269号公報
 図13は、ルータ装置としてのホームゲートウェイ(HGW)を含む通信システムの一例を示すブロック図である。上位ルータ(以下、ルータという。)200は、例えば、インターネットサービスプロバイダ(ISP)において設置され、インターネット400に接続可能である。HGW100は、宅内等に設定され、ルータ200とWAN(Wide Area Network )21を介して通信可能である。WAN21は、例えば加入者回線網である。HGW100は、LAN11を介して1つ以上のノード300と通信可能であり、ノード300とルータ200との間の通信を中継する。ノード300は、一例としてパーソナルコンピュータである。
 ルータ200は、定期的に、またはHGW100の要求に応じて、DHCP-PD(Prefix Delegation )機能にもとづいてHGW100にプレフィクスを配付する。HGW100は、プレフィクスをノード300に再配布する。ノード300は、プレフィクスと自局のリンクローカルアドレスとを組み合わせて、IPアドレスを生成する。ノード300は、生成したIPアドレスを使用して通信を行う。
 ルータ200に配付されるプレフィクスを変化さない固定方法もあるが、ルータ200に配付されるプレフィクスを時間経過等に起因して変える非固定方法もある。
 ルータ200からHGW100に配付されるプレフィクスが変化したときのHGW100およびノード300の動作を考察する。図13に示すように、Prefix110 であったプレフィクスがPrefix111 に変化したとする。その場合、HGW100は、ノード300に送信されるRAパケットの内容を変更する。すなわち、HGW100は、Prefix110 を削除し、かつ、Prefix111 の配付を示すパケットをノード300に送信する。
 ノード300が、内容変更されたパケットを受信できない場合には、有効期間(life time )が経過するまで、プレフィクスとしてPrefix110 を保持する。そのような状況の下では、ノード300は、ルータ200との通信やインターネット400を介する通信を行うことができない。
 また、HGW100が、ノード300から送信されたPrefix110 を含むIPアドレスを転送する可能性が生ずる。すなわち、誤ったプレフィクスが広告される可能性が生ずる。
 本発明は、本来使用してはならないプレフィクスを含むパケットが転送されないようにすることができるルータ装置、プレフィクス管理にもとづくパケット制御方法およびプログラムを提供することを目的とする。
 本発明によるルータ装置は、プレフィクス配付装置から配付されたプレフィクスをノードに再配付し、IPv6アドレスにもとづいてパケットのルーティングを行うルータ装置であって、プレフィクス配付装置から配付されたプレフィクスと、ノードから受信した送信元IPアドレスにおけるプレフィクスとにもとづいて、ノードからのパケットの通過または遮断の条件を含むフィルタ条件を作成するプレフィクス管理部と、プレフィクス管理部が作成したフィルタ条件に従って、ノードからのパケットを通過させるかまたは遮断するフィルタ部とを備えたことを特徴とする。
 本発明によるプレフィクス管理にもとづくパケット制御方法は、プレフィクス配付装置から配付されたプレフィクスをノードに再配付し、IPv6アドレスにもとづいてパケットのルーティングを行うルータ装置で実行されるプレフィクス管理にもとづくパケット制御方法であって、プレフィクス配付装置から配付されたプレフィクスと、ノードから受信した送信元IPアドレスにおけるプレフィクスとにもとづいて、ノードからのパケットの通過または遮断の条件を含むフィルタ条件を作成し、作成されたフィルタ条件に従って、ノードからのパケットを通過させるかまたは遮断することを特徴とする。
 本発明によるプレフィクス管理にもとづくパケット制御プログラムは、プレフィクス配付装置から配付されたプレフィクスをノードに再配付し、IPv6アドレスにもとづいてパケットのルーティングを行うルータ装置に搭載されるプログラムであって、ルータ装置におけるコンピュータに、プレフィクス配付装置から配付されたプレフィクスと、ノードから受信した送信元IPアドレスにおけるプレフィクスとにもとづいて、ノードからのパケットの通過または遮断の条件を含むフィルタ条件を作成する処理と、作成されたフィルタ条件に従って、ノードからのパケットを通過させるかまたは遮断する処理とを実行させることを特徴とする。
 本発明によれば、本来使用してはならないプレフィクスを含むパケットが転送されないようにすることができる。
本発明によるルータ装置の第1の実施形態を示すブロック図である。 発生した事象とプレフィクス保存部に保存される情報との関係の例を示す説明図である。 フィルタ条件の一例を示す説明図である。 RAのoptionのフォーマットを示す説明図である。 本発明によるルータ装置の第2の実施形態を示すブロック図である。 フィルタ条件の一例を示す説明図である。 本発明によるルータ装置の第3の実施形態を示すブロック図である。 フィルタ条件の一例を示す説明図である。 本発明によるルータ装置の主要部を示すブロック図である。 本発明による他の態様のルータ装置の主要部を示すブロック図である。 本発明によるさらに他の態様のルータ装置の主要部を示すブロック図である。 本発明によるルータ装置の動作を示すフローチャートである。 ルータ装置としてのホームゲートウェイを含む通信システムの一例を示すブロック図である。
 以下、本発明の実施形態を図面を参照して説明する。
実施形態1.
 図1は、本発明によるルータ装置の第1の実施形態を示すブロック図である。図1には、ルータ装置の一例としてHGW101が示されている。HGW101を含む通信システムの構成は、図13に示された例と同じでよい。
 HGW101は、LAN11に接続されるLANインタフェース部110、LAN11を介するIPv6パケットの送受信を行うIPv6部(LAN側IPv6部)111、WAN21を介するIPv6パケットの送受信を行うIPv6部(WAN側IPv6部)112、IPv6パケットのルーティング制御を行うIPv6ルーティング部120、データの通過/遮断を制御するフィルタ部130、DHCPv6クライアント機能を有するDHCPv6クライアント部140、DNS(Domain Name System)等のIPv6機能を有するIPv6ホスト部150、プレフィクスを管理するプレフィクス管理部160、プレフィクス情報を保存するプレフィクス保存部170、およびWAN21に接続されるWANインタフェース部180を含む。
 なお、HGW101は、IPv6機能に加えて、IPv4にもとづく通信を実現するためのIPv4機能を備えていてもよい。
 LANインタフェース部110は、宅内ネットワーク(LAN11)に接続され、レイヤ2ヘッダのアドレスがLAN11側のアドレスまたはマルチキャストアドレスのパケットをLAN11を介して受信する。また、LANインタフェース部110は、IPv6部111が出力したパケットをLAN11に送信する。
 WANインタフェース部180は、加入者回線網(WAN21)を介してルータ200(図13参照)に接続される。WANインタフェース部180は、レイヤ2ヘッダのアドレスがLAN11側のアドレスまたはマルチキャストアドレスのパケットをWAN21を介して受信する。また、WANインタフェース部180は、IPv6部112が出力したパケットをWAN21に送信する。
 IPv6部111は、LANインタフェース部110が受信したパケットをIPv6ルーティング部120に出力する。IPv6部111は、IPv6ルーティング部120が出力したパケットをLANインタフェース部110に出力する。
 IPv6部112は、WANインタフェース部180が受信したIPv6パケットをフィルタ部130に出力する。IPv6部112は、フィルタ部130が出力したパケットをWANインタフェース部180に出力する。
 IPv6ルーティング部120は、IPv6部111、フィルタ部130、IPv6ホスト部150およびDHCPv6クライアント部140からパケットを入力する。IPv6ルーティング部120は、パケットの宛先(destination )IPv6アドレス、ポート番号、受信インタフェース情報を元に、入力したパケットを処理すべきHGW101内のブロックを特定する。IPv6ルーティング部120は、特定したブロックにパケットを出力する。
 DHCPv6クライアント部140は、DHCPv6クライアント機能を有する。DHCPv6クライアント部140は、IPv6ルーティング部120およびWAN21を介して、ルータ200(図13参照)とDHCPv6メッセージの送受信を行う。DHCPv6クライアント部140は、DHCP承認応答(Reply )メッセージにおけるDHCP-PDオプションに含まれるプレフィクス情報を抽出し、プレフィクス情報をプレフィクス管理部160に出力する。
 プレフィクス管理部160は、DHCPv6クライアント部140から入力したプレフィクス情報にもとづいて、LAN11側に通知すべきプレフィクス情報を決定する。プレフィクス管理部160は、決定したプレフィクス情報をプレフィクス保存部170に出力する。
 プレフィクス保存部170は、プレフィクス情報を保存する。また、プレフィクス保存部170は、プレフィクス管理部160から通知される削除フラグをプレフィクス情報とともに保存する。削除フラグは、削除されるべきプレフィクス情報を示す。例えば、「1」である削除フラグは、削除されるべきプレフィクス情報を示す。「0」である削除フラグは、利用可能なプレフィクス情報を示す。プレフィクス保存部170は、IPv6ホスト部150の要求に応じて、保存されているプレフィクス情報と削除フラグとの対をIPv6ホスト部150に供給する。
 プレフィクス管理部160がLAN11側に通知すべきプレフィクス情報を決定するためのプロセスは、例えば、以下のようである。
 まず、HGW101が、ルータ200(図13参照)に対して、要請(Solicit )メッセージをマルチキャスト送信する。ルータ200は、Solicit メッセージを受信すると、広告(Advertise )メッセージをHGW101に送信する。HGW101は、Advertise メッセージを受信すると、ルータ200に対して、要求(Request )メッセージを送信する。ルータ200は、Request メッセージを受信すると、Reply メッセージをHGW101に送信する。
 HGW101において、DHCPv6クライアント部140が、DHCP Replyメッセージのオプションである”Identity Association for Prefix Delegation”に設定されている情報から、”Prefix”、”Preferred lifetime”および”valid lifetime”を得る。DHCPv6クライアント部140は、それらの情報をプレフィクス管理部160に供給する。プレフィクス管理部160は、それらの情報を元に、LAN11側に通知すべきプレフィクス情報を決定する。
 プレフィクス管理部160は、DHCP Replyメッセージのオプションの内容が変化したとき、すなわちプレフィクス情報が変化するときにも、LAN11側に通知すべきプレフィクス情報を決定し、決定したプレフィクス情報をプレフィクス保存部170に出力する。また、プレフィクス管理部160は、廃棄されたパケットの送信元アドレス(source address)がフィルタ部130から出力されたときに、送信元アドレスに含まれるプレフィクスを示す情報をプレフィクス保存部170に出力する。なお、本実施形態では、プレフィクス長は、64ビットであるとする。
 プレフィクス管理部160は、プレフィクス制御部161を含む。プレフィクス制御部161は、プレフィクス管理部160において決定されたプレフィクス情報に対応する削除フラグの値(0または1)を決定する。プレフィクス管理部160は、プレフィクス保存部170にプレフィクス情報を出力するときに、プレフィクス情報に対応する削除フラグも出力する。
 また、プレフィクス制御部161は、プレフィクス管理部160において決定されたプレフィクス情報にもとづいてフィルタ条件を作成する。プレフィクス管理部160は、プレフィクス制御部161が作成したフィルタ条件をフィルタ部130に出力する。
 フィルタ部130は、フィルタ条件を記憶する。フィルタ部130は、LANインタフェース部110がパケットを受信すると、フィルタ条件に従う処理を実行する。具体的には、フィルタ部130は、フィルタ条件を満たさないパケットをIPv6部112に出力する。また、フィルタ部130は、フィルタ条件を満たすパケットを廃棄する。そのとき、フィルタ部130は、廃棄したパケットの送信元アドレスをプレフィクス管理部160に出力する。フィルタ部130は、WAN21側からのパケットについてはフィルタ条件に従う処理を実行しない。
 IPv6ホスト部150は、IPv6の一部であるICMP(Internet Control Message Protocol )v6を実現するICMPv6部151を含む。ICMPv6部151は、ICMPv6パケットの生成、ICMPv6パケットの送受信、ICMPv6パケットに関する処理を実行する。なお、図1では、ICMP以外のIPv6を実現する部分は記載省略されている。
 具体的には、ICMPv6部151は、IPv6ルーティング部120からICMPv6パケットを入力し、ICMPv6パケットにおいて指定されているオプションに応じた処理を実行した後、ICMPv6パケットをIPv6ルーティング部120に返す。また、ICMPv6部151は、プレフィクス保存部170に保存されているプレフィクス情報を定期的に取得する。ICMPv6部151は、そのプレフィクス情報からオプション情報(option)を作成する。ICMPv6部151は、作成したoptionをICMPv6パケットのRAに付加する。ICMPv6部151は、optionが付加されたICMPv6パケットをIPv6ルーティング部120に出力する。ICMPv6部151は、転送すべきでないプレフィクスの削除を示すoptionをICMPv6パケットのRAに付加した場合には、プレフィクス保存部170に、プレフィクスの削除を通知する。
 次に、図2~図4の説明図を参照して第1の実施形態のルータ装置の動作を説明する。図2は、発生した事象とプレフィクス保存部に保存される情報との関係の例を示す説明図である。図3は、フィルタ条件の一例を示す説明図である。図4は、RAのoptionのフォーマットを示す説明図である。
 まず、LAN11に接続されるノードに対してプレフィクスを配付するときの動作を説明する。なお、ノードは、図1において記載省略されているが、図13に示されたノード300に相当する装置である。
 WAN21側のルータ200(図13参照)は、プレフィクス情報、ネクストホップアドレス、およびDNSアドレスをHGW101に送信する。HGW101は、受信したプレフィクス情報を、LAN11に接続されているノードに送信する。
 ルータ200は、プレフィクス情報をHGW101に配付するときに、DHCPv6を使用する。HGW101は、プレフィクス情報をノードに送信するときに、DHCPv6を使用する。
 HGW101において、DHCPv6クライアント部140は、DHCPv6-PDで通知されたプレフィクス情報をプレフィクス管理部160に出力する。DHCPv6-PDで通知された情報で指定されるプレフィクスは、”Prefix110 ”であるとする。
 プレフィクス管理部160は、受信されたプレフィクス情報にもとづく”Prefix110 ”と「0」にセットされた削除フラグとをプレフィクス保存部170に出力する。図2において「WAN側のルータからPrefix110 が通知された」の行に示されるように、プレフィクス保存部170は、”Prefix110 ”と値が「0」である削除フラグとを保存する。
 また、プレフィクス制御部161は、プレフィクス情報を入力したときに、フィルタ条件(図3参照)を作成する。プレフィクス管理部160は、作成されたフィルタ条件をフィルタ部130に出力する。フィルタ部130は、フィルタ条件を記憶する。なお、プレフィクス制御部161は、複数のプレフィクス情報を受信した場合には、それぞれのプレフィクス情報に対応するフィルタ条件と削除フラグとを作成する。プレフィクス管理部160は、作成された複数のフィルタ条件および削除フラグをフィルタ部130に出力する。
 ICMPv6部151は、プレフィクス保存部170に保存されているプレフィクス情報を定期的に取得する。図2に示された例では、プレフィクス保存部170には、プレフィクス情報として”Prefix110 ”のみが保存されている(「WAN側のルータからPrefix110 が通知された」の行を参照)。ICMPv6部151は、RAパケットのoptionに”Prefix110 ”を付加する。ICMPv6部151は、optionが付加されたRAパケットをIPv6ルーティング部120に出力する。IPv6ルーティング部120は、RAパケットをIPv6部111に出力する。RAパケットは、LANインタフェース部110およびLAN11を介してノードに送信される。
 その後、ノードは、受信したRAパケットのoptionに付加されている”Prefix110 ”を利用してステートレスアドレス自動生成処理を実行してIPアドレスを生成する。ノードは、生成したIPアドレスを用いて、ノード200(図13参照)およびインターネット400を介して他の装置と通信を行う。
 図3に例示されるフィルタ条件が使用される場合には、LAN11側からWAN21側に向かうIPv6パケットを対象として、送信元アドレス(SrcIP アドレス)のプレフィクスがノードに配付されているプレフィクス(この例では、”Prefix110 ”)でないときに、当該IPv6パケットが廃棄される。なお、図3に示される例では、フィルタ条件には、パケットが廃棄されたときに、送信元アドレスがプレフィクス管理部160に通知されることを示す情報が付加されている。また、フィルタ条件において、宛先アドレス(DstIP アドレス)は問題にされないことが示されている。
 次に、プレフィクスが変更されたときのルータ装置の動作を説明する。ルータ200が、プレフィクスを、”Prefix110 ”から”Prefix111 ”に変更したとする。その場合、ルータ200は、HGW101に、新たなプレフィクスである”Prefix111 ”をDHCPv6-PDで通知する。
 HGW101において、DHCPv6クライアント部140は、DHCPv6-PDで通知されたプレフィクス情報をプレフィクス管理部160に出力する。DHCPv6-PDで通知された情報で指定されるプレフィクスは、”Prefix111 ”である。
 プレフィクス管理部160において、プレフィクス制御部161は、”Prefix111 ”に変更される前のプレフィクスである”Prefix110 ”に対応する削除フラグの値を「1」にする指示をプレフィクス保存部170に出力する。また、プレフィクス制御部161は、受信されたプレフィクス情報にもとづく”Prefix111 ”と「0」にセットされた削除フラグとをプレフィクス保存部170に出力する。図2において「WAN側のルータがプレフィクスを変更した」の行に示されるように、プレフィクス保存部170は、”Prefix110 ”に対応する削除フラグの値を「1」にし、かつ、”Prefix111 ”と値が「0」である削除フラグを保存する。
 また、プレフィクス制御部161は、”Prefix111 ”のプレフィクス情報が受信されたときに、フィルタ条件を作成する。プレフィクス管理部160は、フィルタ部130に対してフィルタ条件の削除指令を出す。この例では、削除指令の対象は、”Prefix110 ”に関するフィルタ条件である。また、プレフィクス管理部160は、作成された新たなフィルタ条件をフィルタ部130に出力する。フィルタ部130は、新たなフィルタ条件を記憶する。フィルタ部130が記憶するフィルタ条件は、図3に例示されたフィルタ条件で表されるが、この段階では、「HGW101がノードに配付していないプレフィクスを含むIPアドレス」は、”Prefix111 ”以外のプレフィクスを含むIPアドレスである。
 ICMPv6部151は、プレフィクス保存部170に保存されているプレフィクス情報を定期的に取得する。「WAN側のルータからPrefix110 が通知された」の行が有効であるときには(図2参照)、プレフィクス保存部170には、プレフィクス情報として”Prefix110 ”と”Prefix111 ”とが保存されている。”Prefix111 ”に対応する削除フラグの値は「0」であるが、”Prefix110 ”に対応する削除フラグの値は「1」である。そこで、ICMPv6部151は、RAパケットのoptionに”Prefix110 ”の削除を示すデータと、”Prefix111 ”の配付を示すデータとを付加する。ICMPv6部151は、optionが付加されたRAパケットをIPv6ルーティング部120に出力する。IPv6ルーティング部120は、RAパケットをIPv6部111に出力する。RAパケットは、LANインタフェース部110およびLAN11を介してノードに送信される。
 また、ICMPv6部151は、”Prefix110 ”の削除を示すデータと、”Prefix111 ”の配付を示すデータとが付加されたRAパケットが送信されたことを、プレフィクス保存部170に通知する。
 プレフィクス保存部170は、通知を受けると、”Prefix110 ”に関する情報を削除する。よって、図2における「RA送信後」の行に示されるように、プレフィクス情報として”Prefix111 ”のみが保存される。
 LAN11がイーサネット(登録商標)である場合など、パケットの到達性が保証されない場合には、ノードが、”Prefix110 ”の削除を示すoptionを含むパケットを受信できないことがある。ノードは、”Prefix110 ”の削除を示すoptionを含むパケットを受信できない場合には、プレフィクスとして”Prefix110 ”を保持し続ける。よって、ノードは、使用が禁止されるべき”Prefix110 ”を使用して、HGW101、ルータ200およびインターネット400と通信を行う。
 HGW101が再起動された場合にも、ノードが、使用が禁止されるべきプレフィクスを使用して通信を行う状況が発生しうる。HGW101がノードに”Prefix110 ”を配付した後、HGW101が再起動され、再起動された後にルータ200からプレフィクスとして”Prefix111 ”が送信された時点では、ルータ200およびHGW101はプレフィクスは”Prefix111 ”であると認識している。しかし、ノードには”Prefix110 ”が保持されている。その状況では、ノードは、プレフィクスとして、送信すべきでない”Prefix110 ”を送信する。
 次に、ノードが送信すべきでないプレフィクスを送信したときのHGW101の動作を説明する。なお、ノードがプレフィクスは”Prefix110 ”であると認識し、HGW101がプレフィクスは”Prefix111 ”であると認識している場合を例にする。すなわち、プレフィクス保存部170は、”Prefix111 ”とそれに対応する「0」の削除フラグとを保持する。
 HGW101は、LAN11を介して、ノードから送信されたパケットを受信する。HGW101において、パケットは、LANインタフェース部110、IPv6部111およびIPv6ルーティング部120を通過する。そして、フィルタ部130が、パケットを入力する。パケットに設定されている送信元アドレスのプレフィクスは、”Prefix110 ”である。フィルタ部130は、”Prefix111 ”がHGW101によって配付されたプレフィクスであるとするフィルタ条件を記憶している。送信元アドレスのプレフィクスは、”Prefix111 ”とは異なるので、フィルタ条件が満たされる。
 そこで、フィルタ部130は、入力したパケットを廃棄する。また、フィルタ部130は、そのパケットに設定されていた送信元アドレスをプレフィクス管理部160に通知する。
 プレフィクス管理部160は、送信元アドレスからプレフィクスを取得できる。なお、本実施形態では、プレフィクス長は64ビットであるから、プレフィクス管理部160は、送信元アドレスの先頭の64ビットのデータを抜き出し、抜き出したデータをプレフィクスであると認識する。
 この例では、パケットに設定されていた送信元アドレスは、 ”Prefix110 ”である。”Prefix110 ”は使用されるべきではないプレフィクスであるから、プレフィクス制御部161は、値が「1」である削除フラグを作成する。プレフィクス管理部160は、”Prefix110 ”と、プレフィクス制御部161が作成した削除フラグとをプレフィクス保存部170に出力する。プレフィクス保存部170は、”Prefix110 ”と値が「1」である削除フラグとを保存する。
 以上の処理によって、プレフィクス保存部170には、図2において「WAN側のルータがプレフィクスを変更した」の行に示されるように、”Prefix110 ”に対応する削除フラグの値を「1」にし、かつ、”Prefix111 ”と値が「0」である削除フラグとが、プレフィクス情報として保存される。
 ICMPv6部151は、プレフィクス保存部170に保存されているプレフィクス情報を定期的に取得する。ICMPv6部151は、そのプレフィクス情報からoptionを作成する。ICMPv6部151は、作成したoptionをICMPv6パケットのRAに付加する。
 図4は、RAのoptionのフォーマットを示す説明図である。ICMPv6部151は、optionにおける「タイプ」に「3」を設定し、「データ長」に「4」を設定し、「プレフィクス長」に「64ビット」を設定する。なお、「L」は同一リンクフラグ、「A」はアドレス設定フラグである。
 また、ICMPv6部151は、「有効期間(valid lifetime)」に「0」を設定し、「推奨期間(preferred lifetime)」に「0」を設定する。ICMPv6部151は、「プレフィクス(prefix)」に、削除対象であるプレフィクス(この例では、”Prefix110 ”)を設定する。
 なお、ルータ装置は、一般に、ノードに対して、配付したプレフィクスの「valid lifetime」および「preferred lifetime」に有効な時間が設定されたRAパケットを、定期的に送信することによって、プレフィクスの有効期間を更新する。
 本実施形態では、プレフィクス保存部170に削除フラグも保存されているので、ICMPv6部151は、プレフィクス保存部170に保存されているプレフィクスが使用可能であるか否かを容易に判定できる。
 上述したように、ICMPv6部151は、プレフィクス保存部170に保存されているプレフィクス情報を定期的に取得する。ICMPv6部151は、取得したプレフィクス情報にもとづいてRAパケットを作成してノードに送信する。HGW101は、定期的に送信するRAパケットを用いた確認動作を利用して、プレフィクスの配付とプレフィクスの更新(具体的には、削除)とを行う。本実施形態では、具体的には、ICMPv6部151は、削除対象である”Prefix110 ”を削除するためのoptionを作成し、”Prefix111 ”を配付するためのoptionを作成する。そして、IPv6ホスト部150は、ICMPv6部151が作成したoptionが付加されたRAパケットをIPv6ルーティング部120に出力する。
 RAパケットは、IPv6ルーティング部120でルーティングされ、IPv6部111、LANインタフェース部110およびLAN11を介してノードに送信される。ノードは、受信したRAパケットにもとづいて、”Prefix110 ”が使用不可であり、”Prefix111 ”を使用すべきであることを認識する。
 その後、ノードは、受信したRAパケットのoptionに付加されている”Prefix111 ”を利用してステートレスアドレス自動生成処理を実行してIPアドレスを生成する。ノードは、生成したIPアドレスを用いて、ノード200(図13参照)およびインターネット400を介して通信を行う。
 以上のような処理を経て、ノードは、保持していた”Prefix110 ”を無効にすることができる。すなわち、削除対象であるプレフィクス(使用不可のプレフィクス)を特定可能なオプション情報を含むRAパケットを受信したノードは、特定されたプレフィクスを削除する。
 以上に説明されたように、本実施形態では、HGW101が、RAパケットのoptionを利用して、ノードに、送信すべきでないプレフィクスを無効にさせることができる。具体的には、HGW101は、送信すべきでないに”Prefix110 ”関して、optionにおける「valid lifetime」および「preferred lifetime」が「0」に設定されたRAパケットを送信する。
 また、HGW101は、ルータ200(図13参照)から通知されていないプレフィクスを含むノードからのパケットを廃棄するので、共通の送信元アドレスを含むパケットが複数のノードからルータ200に送信される状況の発生は回避される。
 一般に、ルータ200は、DHCP-PD機能にもとづいてHGW101に新たなプレフィクス(例えば、”Prefix111 ”)を配付した後、旧プレフィクス(例えば、”Prefix110 ”)を他のルータ装置に配付できる。旧プレフィクスを他のルータ装置に配付した後、HGW101にLAN11で接続されるノードが旧プレフィクスを使用すると、共通の送信元アドレスを含むパケットが複数のノードからルータ200に送信されることになる。
 しかし、本実施形態のHGW101を使用する場合には、共通の送信元アドレスを含むパケットが複数のノードからルータ200に送信される状況の発生を回避できる。
 本実施形態では、HGW101は、ノードから受信したパケットに含まれる送信元IPアドレスと、上位のルータ200から送信されたプレフィクスとを比較することによって、ノードから受信したパケットが転送されるべきパケットであるか否か判断する。HGW101は、ノードから受信したパケットが転送されるべきではないパケットであると判断した場合に、パケットを廃棄する。よって、使用不可のプレフィクスにもとづく送信元IPアドレスを含むパケットがインターネットに送信されることが防止される。
 また、HGW101は、ノードに、使用できないプレフィクスの削除の指示と、ノード200から通知された新たなプレフィクスとを示すオプション情報を含むRAパケットを送信する。そのようなRAパケットを受信したノードは、使用できないプレフィクスを削除できるとともに、新たなプレフィクスを使用してルータ200およびインターネットを介する装置と通信できる状態に迅速に移行できる。
実施形態2.
 図5は、本発明によるルータ装置の第2の実施形態を示すブロック図である。図5には、ルータ装置の一例としてHGW102が示されている。HGW102を含む通信システムの構成は、図13に示された例と同じでよい。
 図1に示された第1の実施形態では、HGW101において、フィルタ部130は、IPv6ルーティング部120とIPv6部112との間に配置されていた。本実施形態では、図5に示されるように、フィルタ部130は、IPv6部111とIPv6ルーティング部120との間に配置されている。
 なお、HGW102における各ブロックが実行する処理は、HGW101における各ブロックが実行する処理と同じである。
 図6は、フィルタ条件の一例を示す説明図である。本実施形態では、DHCP-PD機能にもとづいてノード200(図13参照)がHGW102に”Prefix110 ”を配付した後、ノード200がプレフィクスを”Prefix111 ”に変更したとする。よって、ICMPv6部151は、”Prefix110 ”の削除を示すデータと、”Prefix111 ”の配付を示すデータとが付加されたRAパケットが送信されたことを、プレフィクス保存部170に通知する。プレフィクス保存部170は、図2における「RA送信後」の行に示されるように、”Prefix110 ”が削除され”Prefix111 ”のみが設定されているプレフィクス情報を保存する。
 また、HGW102がプレフィクスが”Prefix111 ”であると認識しているが、ノードは、”Prefix110 ”の削除を示すoptionを含むパケットを受信できなかったことに起因して、プレフィクスが”Prefix110 ”であると認識している場合を例にする。
 また、図3に示されたように第1の実施形態ではIPv6ルーティング部120からIPv6部112に向かうプレフィクスが規制されたが、本実施形態では、図6に示されるように、IPv6部111からIPv6ルーティング部120に向かうプレフィクスが規制される。
 次に、HGW102の動作を説明する。
 HGW102において、LAN11を介してノードから送信されたパケットは、LANインタフェース部110およびIPv6部111を経由して、フィルタ部130に入力される。第1の実施形態では、パケットはIPv6部111からIPv6ルーティング部120に入力された。本実施形態では、フィルタ部130がIPv6ルーティング部120の前段(LAN側)に配置されているので、ルーティング処理の前にフィルタ処理が実行される。
 この例では、ノードからのIPアドレスにおけるプレフィクスは、”Prefix110 ”である。よって、フィルタ条件が満たされる。そこで、フィルタ部130は、パケットを廃棄する。また、フィルタ部130は、そのパケットに設定されていた送信元アドレスをプレフィクス管理部160に通知する。
 プレフィクス管理部160は、送信元アドレスを解析する。プレフィクス管理部160は、送信元アドレスから”Prefix110 ”を認識する。”Prefix110 ”は使用されるべきではないプレフィクスであるから、第1の実施形態の場合と同様に、プレフィクス制御部161は、値が「1」である削除フラグを作成する。プレフィクス管理部160は、”Prefix110 ”と、プレフィクス制御部161が作成した削除フラグとをプレフィクス保存部170に出力する。プレフィクス保存部170は、”Prefix110 ”と値が「1」である削除フラグとを保存する。
 ICMPv6部151は、プレフィクス保存部170に保存されているプレフィクス情報を定期的に取得する。ICMPv6部151は、そのプレフィクス情報からオプション情報(option)を作成する。ICMPv6部151は、作成したoptionをICMPv6パケットのRAに付加する。
 RAパケットは、IPv6ルーティング部120でルーティングされ、フィルタ部130、IPv6部111、LANインタフェース部110およびLAN11を介してノードに送信される。ノードは、受信したRAパケットにもとづいて、”Prefix110 ”が使用不可であり、”Prefix111 ”を使用すべきであることを認識する。
 第1の実施形態では、IPv6ルーティング部120の後段(WAN側)にフィルタ部130が配置されているので、ノードから入力したパケットは一度ルーティングされる。そして、フィルタ部130は、WAN側に向かうパケットのみを対象にしてフィルタ処理を実行する。本実施形態では、フィルタ部130がIPv6ルーティング部120の前段に配置されているので、ルーティング処理の前にフィルタ処理が実行される。よって、フィルタ部130は、LAN内でルーティングされるパケットに対してもフィルタ処理を実行できる。すなわち、本実施形態では、第1の実施形態による効果に加えて、LAN内でルーティングされるパケットにもとづいて、パケットの転送を禁止でき、かつ、プレフィクス更新のためのRAパケットを送信できるという効果が得られる。
実施形態3.
 図7は、本発明によるルータ装置の第3の実施形態を示すブロック図である。図7には、ルータ装置の一例としてHGW103が示されている。HGW103を含む通信システムの構成は、図13に示された例と同じでよい。
 HGW103における各ブロックが実行する処理は、HGW101,102における各ブロックが実行する処理と同じである。
 第1の実施形態および第2の実施形態では、HGW101,102において、IPv6ホスト部150におけるICMPv6部151が、プレフィクス保存部170に保存されているプレフィクス情報を定期的に取得する。そして、ICMPv6部151が、取得したプレフィクス情報にもとづいてRAパケットを作成してノードに送信する。すなわち、HGW101,102は、定期的に送信するRAパケットを用いた確認動作を利用して、プレフィクスの配付とプレフィクスの更新(具体的には、削除)とを行う。
 本実施形態では、IPv6ホスト部150は、ノード200(図13参照)からプレフィクスの削除通知が受信されたときに、直ちに、ノードに対してプレフィクスの削除を実行させるための処理を行う。
 以下、HGW103の動作を説明する。
 本実施形態では、DHCP-PD機能にもとづいてノード200(図13参照)がHGW103に”Prefix110 ”を配付した後、ノード200がプレフィクスを”Prefix111 ”に変更したとする。よって、ICMPv6部151は、”Prefix110 ”の削除を示すデータと、”Prefix111 ”の配付を示すデータとが付加されたRAパケットが送信されたことを、プレフィクス保存部170に通知する。プレフィクス保存部170は、図2における「RA送信後」の行に示されるように、”Prefix110 ”が削除され”Prefix111 ”のみが設定されているプレフィクス情報を保存する。
 また、HGW103がプレフィクスが”Prefix111 ”であると認識しているが、ノードは、”Prefix110 ”の削除を示すoptionを含むパケットを受信できなかったことに起因して、プレフィクスが”Prefix110 ”であると認識している場合を例にする。
 ノードからのIPアドレスにおけるプレフィクスは、”Prefix110 ”である。よって、フィルタ条件が満たされる。そこで、フィルタ部130は、パケットを廃棄する。また、フィルタ部130は、そのパケットに設定されていた送信元アドレスをプレフィクス管理部160に通知する。
 プレフィクス管理部160は、送信元アドレスを解析する。プレフィクス管理部160は、送信元アドレスから”Prefix110 ”を認識する。プレフィクス制御部161は、送信元アドレスから”Prefix110 ”が認識されたときに、フィルタ条件を作成する。プレフィクス管理部160は、作成されたフィルタ条件をフィルタ部130に出力する。フィルタ部130は、フィルタ条件を記憶する。
 図8は、本実施形態におけるフィルタ条件の一例を示す説明図である。本実施形態では、プレフィクス管理部160は、図8に示されるように、フィルタ部130が廃棄したパケットに含まれていたプレフィクス(この例では、”Prefix110 ”)に関する条件が付加されたフィルタ条件を作成する(図8における2行目参照)。
 その後、フィルタ部130は、フィルタ条件に従ってフィルタ処理を実行する。フィルタ部130は、図8の2行目に設定されている条件に合致するパケットが受信されると、パケットを廃棄する。また、フィルタ部130は、パケットを廃棄したことをプレフィクス管理部160に通知する。
 プレフィクス管理部160において、プレフィクス制御部161は、値が「1」である削除フラグを作成する。プレフィクス管理部160は、”Prefix110 ”と、プレフィクス制御部161が作成した削除フラグとをプレフィクス保存部170に出力する。プレフィクス保存部170は、”Prefix110 ”と値が「1」である削除フラグとを保存する。すなわち、プレフィクス保存部170は、図2において「WAN側のルータがプレフィクスを変更した」の行に示されるように、”Prefix110 ”に対応する削除フラグの値を「1」にし、かつ、”Prefix111 ”と値が「0」である削除フラグを保存する。
 また、プレフィクス管理部160は、パケットを廃棄したことが通知されたときに、ICMPv6部151に削除命令を出力する。
 ICMPv6部151は、削除命令を入力すると、直ちに、プレフィクス保存部170に保存されているプレフィクス情報を取得する。ICMPv6部151は、そのプレフィクス情報からオプション情報(option)を作成する。具体的には、ICMPv6部151は、プレフィクス情報において値が「1」である削除フラグに対応するプレフィクス(この例では、”Prefix110 ”)を、RAのoptionに設定する。ICMPv6部151は、作成したoptionをICMPv6パケットのRAに付加する。
 RAパケットは、IPv6ルーティング部120でルーティングされ、IPv6部111、LANインタフェース部110およびLAN11を介してノードに送信される。ノードは、受信したRAパケットにもとづいて、”Prefix110 ”が使用不可であることを認識する。
 本実施形態では、プレフィクス管理部160が削除命令を出力すると、ICMPv6部151は、直ちに、プレフィクス保存部170に保存されているプレフィクス情報を確認する。よって、ICMPv6部151が定期的にプレフィクス保存部170に保存されているプレフィクス情報を確認する場合に比べて、より早く、ノードに使用不可のプレフィクスが伝達される。すなわち、本実施形態では、第1の実施形態による効果に加えて、速やかに、ノードを、使用不可であるプレフィクスを使用しない状態に設定できるという効果を得ることができる。
 なお、図7に示されたHGW103は、図1に示されたHGW101を基本にして構成されているが、図5に示されたようにフィルタ部130がIPv6部111とIPv6ルーティング部120との間に配置されているHGW102を基本にして構成されてもよい。
 また、HGW101,102,103において、LANインタフェース部110およびWANインタフェース部180以外のブロックの機能は、プログラムに従って制御を行うCPUとメモリとで実現可能である。
 また、上記の各実施形態では、ルータ装置としてHGWが例にされたが、本発明を適用可能なルータ装置は、HGWに限られない。
 図9は、本発明によるルータ装置の主要部を示すブロック図である。図9に示すように、ルータ装置1は、プレフィクス配付装置2(一例として、図13に示されたルータ200)から配付されたプレフィクスと、ノード3(一例として、図13に示されたノード300)から受信した送信元IPアドレスにおけるプレフィクスとにもとづいて、ノード3からのパケットの通過または遮断の条件を含むフィルタ条件を作成するプレフィクス管理部5(一例として、図1、図5および図7のそれぞれに示されたプレフィクス管理部160)と、プレフィクス管理部5が作成したフィルタ条件に従って、ノードからのパケットを通過させるかまたは遮断するフィルタ部6(一例として、図1、図5および図7のそれぞれに示されたフィルタ部130)とを備えている。
 上記の各実施形態には、以下のようなルータ装置も開示されている。
(1)フィルタ部6が、受信されたパケットがフィルタ条件におけるパケットを遮断する条件に合致した場合に当該パケットを廃棄し、かつ、廃棄したパケットの送信元IPアドレスをプレフィクス管理部5に通知し、プレフィクス管理部5が、通知された送信元IPアドレスに含まれるプレフィクスが、使用不能であって削除されるべきプレフィクスであると決定するルータ装置。
(2)図10に示すように、プレフィクスを、当該プレフィクスが使用可能であるか否かを判別するために用いられる判別データ(一例として、削除データ)とともに保存するプレフィクス保存部7(一例として、図1、図5および図7のそれぞれに示されたプレフィクス保存部170)を備えたルータ装置。
(3)図11に示すように、プレフィクス保存部7に保存されている内容を定期的に確認し、プレフィクス保存部7に保存されているプレフィクスと判別データとを元にプレフィクスの使用可または使用不可を特定可能なRAパケットのオプション情報を作成し、作成したオプション情報を含むRAパケットをノードに送信するRA送信部8を備えたルータ装置。
(4)RA送信部8が、フィルタ部6がパケットを廃棄したときに、直ちに、当該パケットの送信元IPアドレスに含まれるプレフィクスが使用不可であることを特定可能なオプション情報を含むRAパケットをノード3に送信するルータ装置。
(5)プレフィクス管理部5が、プレフィクス配付装置2からプレフィクスが配付されたときに当該プレフィクスに対応する判別データを使用可能であることを示す値にし、プレフィクス配付装置2から新たなプレフィクスが配付されたときに、既に配付されていたプレフィクスに対応する判別データを使用不可であることを示す値に変更するルータ装置。
 図12は、本発明によるルータ装置の動作を示すフローチャートである。すなわち、本発明によるパケット制御方法における処理を示すフローチャートである。図12に示すように、ルータ装置は、プレフィクス配付装置から配付されたプレフィクスと、ノードから受信した送信元IPアドレスにおけるプレフィクスとにもとづいて、ノードからのパケットの通過または遮断の条件を含むフィルタ条件を作成する工程(ステップS1)と、作成されたフィルタ条件に従って、ノードからのパケットを通過させるかまたは遮断する工程(ステップS2)とを含むことを特徴とする。
 上記の各実施形態には、以下のようなパケット制御方法も開示されている。
(6)パケットを通過させるかまたは遮断する工程に、受信されたパケットがフィルタ条件におけるパケットを遮断する条件に合致した場合に当該パケットを廃棄し、かつ、廃棄したパケットの送信元IPアドレスに含まれるプレフィクスを、使用不能であって削除されるべきプレフィクスであると決定する工程が含まれるパケット制御方法。
(7)プレフィクスを、当該プレフィクスが使用可能であるか否かを判別するために用いられる判別データとともにプレフィクス保存部に保存する工程を含むパケット制御方法。
(8)プレフィクス保存部に保存されている内容を定期的に確認し、プレフィクス保存部に保存されているプレフィクスと判別データとを元にプレフィクスの使用可または使用不可を特定可能なRAパケットのオプション情報を作成し、作成したオプション情報を含むRAパケットをノードに送信する工程を含むパケット制御方法。
(9)ノードから受信したパケットを廃棄したときに、直ちに、当該パケットの送信元IPアドレスに含まれるプレフィクスが使用不可であることを特定可能なオプション情報を含むRAパケットをノードに送信する工程を含むパケット制御方法。
(10)プレフィクス配付装置からプレフィクスが配付されたときに当該プレフィクスに対応する判別データを使用可能であることを示す値にし、プレフィクス配付装置から新たなプレフィクスが配付されたときに、既に配付されていたプレフィクスに対応する判別データを使用不可であることを示す値に変更する工程を含むパケット制御方法。
 以上、実施形態及び実施例を参照して本願発明を説明したが、本願発明は上記実施形態および実施例に限定されるものではない。本願発明の構成や詳細には、本願発明のスコープ内で当業者が理解し得る様々な変更をすることができる。
 この出願は、2011年2月24日に出願された日本特許出願2011-38873を基礎とする優先権を主張し、その開示の全てをここに取り込む。
 本発明は、上位のルータ等からルータ装置にプレフィクスが配付され、ルータ装置が下位のノード装置にプレフィクスを再配布する、一般的なIPv6インターネット接続サービス環境において、好適に使用可能である。
 1   ルータ装置
 2   プレフィクス配付装置
 3   ノード
 5   プレフィクス管理部
 6   フィルタ部
 7   プレフィクス保存部
 8   RA送信部
 11  LAN
 21  WAN
 101,102,103 ホームゲートウェイ(HGW)
 110 LANインタフェース部
 111,112 IPv6部
 120 IPv6ルーティング部
 130 フィルタ部
 140 DHCPv6クライアント部
 150 IPv6ホスト部
 151 ICMPv6部
 160 プレフィクス管理部
 161 プレフィクス制御部
 170 プレフィクス保存部
 180 WANインタフェース部

Claims (10)

  1.  プレフィクス配付装置から配付されたプレフィクスをノードに再配付し、IPv6アドレスにもとづいてパケットのルーティングを行うルータ装置であって、
     前記プレフィクス配付装置から配付されたプレフィクスと、前記ノードから受信した送信元IPアドレスにおけるプレフィクスとにもとづいて、前記ノードからのパケットの通過または遮断の条件を含むフィルタ条件を作成するプレフィクス管理部と、
     前記プレフィクス管理部が作成したフィルタ条件に従って、前記ノードからのパケットを通過させるかまたは遮断するフィルタ部とを備えた
     ことを特徴とするルータ装置。
  2.  フィルタ部は、受信されたパケットがフィルタ条件におけるパケットを遮断する条件に合致した場合に当該パケットを廃棄し、かつ、廃棄したパケットの送信元IPアドレスをプレフィクス管理部に通知し、
     前記プレフィクス管理部は、通知された送信元IPアドレスに含まれるプレフィクスが、使用不能であって削除されるべきプレフィクスであると決定する
     請求項1記載のルータ装置。
  3.  プレフィクスを、当該プレフィクスが使用可能であるか否かを判別するために用いられる判別データとともに保存するプレフィクス保存部を備えた
     請求項1または請求項2記載のルータ装置。
  4.  プレフィクス保存部に保存されている内容を定期的に確認し、前記プレフィクス保存部に保存されているプレフィクスと判別データとを元にプレフィクスの使用可または使用不可を特定可能なRAパケットのオプション情報を作成し、作成したオプション情報を含むRAパケットをノードに送信するRA送信部を備えた
     請求項3記載のルータ装置。
  5.  RA送信部は、フィルタ部がパケットを廃棄したときに、直ちに、当該パケットの送信元IPアドレスに含まれるプレフィクスが使用不可であることを特定可能なオプション情報を含むRAパケットをノードに送信する
     請求項4記載のルータ装置。
  6.  プレフィクス管理部は、プレフィクス配付装置からプレフィクスが配付されたときに当該プレフィクスに対応する判別データを使用可能であることを示す値にし、前記プレフィクス配付装置から新たなプレフィクスが配付されたときに、既に配付されていたプレフィクスに対応する判別データを使用不可であることを示す値に変更する
     請求項3から請求項5のうちのいずれか1項に記載のルータ装置。
  7.  プレフィクス配付装置から配付されたプレフィクスをノードに再配付し、IPv6アドレスにもとづいてパケットのルーティングを行うルータ装置で実行されるプレフィクス管理にもとづくパケット制御方法であって、
     前記プレフィクス配付装置から配付されたプレフィクスと、前記ノードから受信した送信元IPアドレスにおけるプレフィクスとにもとづいて、前記ノードからのパケットの通過または遮断の条件を含むフィルタ条件を作成し、
     作成されたフィルタ条件に従って、前記ノードからのパケットを通過させるかまたは遮断する
     ことを特徴とするプレフィクス管理にもとづくパケット制御方法。
  8.  受信されたパケットがフィルタ条件におけるパケットを遮断する条件に合致した場合に当該パケットを廃棄し、かつ、廃棄したパケットの送信元IPアドレスに含まれるプレフィクスを、使用不能であって削除されるべきプレフィクスであると決定する
     請求項7記載のプレフィクス管理にもとづくパケット制御方法。
  9.  プレフィクス配付装置から配付されたプレフィクスをノードに再配付し、IPv6アドレスにもとづいてパケットのルーティングを行うルータ装置に搭載されるプレフィクス管理にもとづくパケット制御プログラムであって、
     前記ルータ装置におけるコンピュータに、
     前記プレフィクス配付装置から配付されたプレフィクスと、前記ノードから受信した送信元IPアドレスにおけるプレフィクスとにもとづいて、前記ノードからのパケットの通過または遮断の条件を含むフィルタ条件を作成する処理と、
     作成されたフィルタ条件に従って、前記ノードからのパケットを通過させるかまたは遮断する処理と
     を実行させるためのプレフィクス管理にもとづくパケット制御プログラム。
  10.  コンピュータに、
     受信されたパケットがフィルタ条件におけるパケットを遮断する条件に合致した場合に当該パケットを廃棄し、かつ、廃棄したパケットの送信元IPアドレスに含まれるプレフィクスを、使用不能であって削除されるべきプレフィクスであると決定する処理を実行させるための請求項9記載のプレフィクス管理にもとづくパケット制御プログラム。
PCT/JP2012/001028 2011-02-24 2012-02-16 ルータ装置、プレフィクス管理にもとづくパケット制御方法およびプログラム WO2012114684A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
SG2013063581A SG192893A1 (en) 2011-02-24 2012-02-16 Router device, packet control method based on prefix management, and program
EP12749022.5A EP2680511B1 (en) 2011-02-24 2012-02-16 Router device, packet control method based on prefix management, and program
US13/992,905 US10291435B2 (en) 2011-02-24 2012-02-16 Router device, packet control method based on prefix management, and program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2011-038873 2011-02-24
JP2011038873A JP5105124B2 (ja) 2011-02-24 2011-02-24 ルータ装置、プレフィクス管理にもとづくパケット制御方法およびプログラム

Publications (1)

Publication Number Publication Date
WO2012114684A1 true WO2012114684A1 (ja) 2012-08-30

Family

ID=46720480

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/001028 WO2012114684A1 (ja) 2011-02-24 2012-02-16 ルータ装置、プレフィクス管理にもとづくパケット制御方法およびプログラム

Country Status (6)

Country Link
US (1) US10291435B2 (ja)
EP (1) EP2680511B1 (ja)
JP (1) JP5105124B2 (ja)
AR (1) AR085393A1 (ja)
SG (1) SG192893A1 (ja)
WO (1) WO2012114684A1 (ja)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9680741B2 (en) * 2012-09-04 2017-06-13 Telefonaktiebolaget Lm Ericsson (Publ) Method of operating a switch or access node in a network and a processing apparatus configured to implement the same
US10684877B2 (en) * 2015-12-30 2020-06-16 Incognito Software Systems Inc. Virtualized customer premises equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002158701A (ja) * 2000-11-20 2002-05-31 Fujitsu Ltd ケーブルモデム装置
JP2006303810A (ja) * 2005-04-19 2006-11-02 Ntt Communications Kk ルータおよびルータプログラム
JP2007166097A (ja) 2005-12-12 2007-06-28 Toshiba Corp ブリッジ装置、ブリッジ装置の制御方法および制御プログラム
JP2007251269A (ja) 2006-03-13 2007-09-27 Ricoh Co Ltd ネットワーク機器
JP2011038873A (ja) 2009-08-10 2011-02-24 Nikon Corp 照明装置、および分光分布演算プログラム

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6073178A (en) 1996-12-09 2000-06-06 Sun Microsystems, Inc. Method and apparatus for assignment of IP addresses
US6240464B1 (en) 1998-02-04 2001-05-29 3Com Corporation Method and system for managing addresses for network host interfaces in a data-over-cable system
JP3665622B2 (ja) 2002-03-29 2005-06-29 株式会社東芝 ソースアドレス選択システム、ルータ装置、通信ノード及びソースアドレス選択方法
US20040111529A1 (en) * 2002-12-10 2004-06-10 Intel Corporation (A Delaware Corporation) Dynamic host based load balancing of a multihomed network
JP4040045B2 (ja) * 2003-01-24 2008-01-30 富士通株式会社 データ転送装置
US20050041671A1 (en) * 2003-07-28 2005-02-24 Naoya Ikeda Network system and an interworking apparatus
JP2005072685A (ja) * 2003-08-27 2005-03-17 Ntt Docomo Inc ルータ装置及びその装置における経路情報の配布方法並びに通信システム
US8688834B2 (en) * 2004-07-09 2014-04-01 Toshiba America Research, Inc. Dynamic host configuration and network access authentication
KR20060011533A (ko) * 2004-07-30 2006-02-03 엘지전자 주식회사 랜상의 아이피브이6 서브넷 관리방법
US7894433B2 (en) * 2005-08-08 2011-02-22 Cisco Technology, Inc. Default gateway router supplying IP address prefixes ordered for source address selection by host device
JP4630225B2 (ja) * 2006-05-15 2011-02-09 富士通株式会社 通信制御システム
CN101662423A (zh) 2008-08-29 2010-03-03 中兴通讯股份有限公司 单一地址反向传输路径转发的实现方法及装置
US20120063428A1 (en) * 2008-10-08 2012-03-15 Panasonic Corporation Interface Switching System, Mobile Node, Proxy Node, and Mobile Management Node
CN102577275B (zh) * 2009-09-10 2016-05-04 日本电气株式会社 中继控制设备、中继控制系统、中继控制方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002158701A (ja) * 2000-11-20 2002-05-31 Fujitsu Ltd ケーブルモデム装置
JP2006303810A (ja) * 2005-04-19 2006-11-02 Ntt Communications Kk ルータおよびルータプログラム
JP2007166097A (ja) 2005-12-12 2007-06-28 Toshiba Corp ブリッジ装置、ブリッジ装置の制御方法および制御プログラム
JP2007251269A (ja) 2006-03-13 2007-09-27 Ricoh Co Ltd ネットワーク機器
JP2011038873A (ja) 2009-08-10 2011-02-24 Nikon Corp 照明装置、および分光分布演算プログラム

Also Published As

Publication number Publication date
US20130259061A1 (en) 2013-10-03
AR085393A1 (es) 2013-09-25
JP5105124B2 (ja) 2012-12-19
EP2680511A4 (en) 2017-10-25
SG192893A1 (en) 2013-09-30
EP2680511B1 (en) 2019-01-09
JP2012175676A (ja) 2012-09-10
EP2680511A1 (en) 2014-01-01
US10291435B2 (en) 2019-05-14

Similar Documents

Publication Publication Date Title
US10284466B2 (en) Service processing method, device, and system
EP1994666B1 (en) A method and apparatus for distributing labels in a label distribution protocol multicast network
US20100313265A1 (en) Method and Apparatus for Preventing Spoofed Packet Attacks
KR100908320B1 (ko) IPv6 네트워크 내 호스트 차단 및 탐색방법
US10693976B2 (en) Method and system for dynamic discovery of service functions
CN110798403B (zh) 通信方法、通信设备和通信系统
US10021030B2 (en) Method and system for forwarding information in distributed network
JP2003298635A (ja) ソースアドレス選択システム、ルータ装置、通信ノード及びソースアドレス選択方法
EP3420687B1 (en) Addressing for customer premises lan expansion
US20120182994A1 (en) Address compatibility in a network device reload
Thaler Evolution of the IP Model
JP5241957B2 (ja) 加入者装置をIPv6対応のアグリゲーションネットワークに接続するための方法および装置
KR20150046041A (ko) Dhcp 클라이언트를 구성하는 방법 및 장치
US9755939B2 (en) Network wide source group tag binding propagation
CN113938427A (zh) 通信方法及系统、路由节点
US20190089675A1 (en) Network address translation device, setting requesting device, communication system, communication method and storage medium storing program
JP2010050719A (ja) 通信システム、制御ノード、通信方法、およびプログラム
JP5105124B2 (ja) ルータ装置、プレフィクス管理にもとづくパケット制御方法およびプログラム
JP4895793B2 (ja) ネットワーク監視装置及びネットワーク監視方法
JP4599429B2 (ja) 通信システム及び通信方法
US20220150167A1 (en) Bier packet processing method, network device, and system
CN105723687A (zh) Ip网络的配置及管理方法、相对应设备及计算机程序
WO2021073312A1 (zh) 用于IPv6网络的路由通告方法、装置、存储介质和系统
WO2020244372A1 (zh) 一种实现组播的方法和装置
WO2015039563A1 (zh) 实现三层虚拟专用网的方法和设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12749022

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 13992905

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 2012749022

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 12013501711

Country of ref document: PH

NENP Non-entry into the national phase

Ref country code: DE