6to4

6to4

6to4 (sometimes written 6 to 4) is a system that allows IPv6 packets to be transmitted over an IPv4 network (generally the IPv4 internet) without the need to configure explicit tunnels. Routing conventions are also in place that allow 6to4 hosts to communicate with hosts on the IPv6 internet. It is typically used when an end site or end user wants to connect to the IPv6 internet using their existing IPv4 connection.

Since IPv6 is not required to be configured or supported on any nearby networking devices relative to the host, 6to4 is especially relevant during the initial phases of deployment to full, native IPv6 connectivity. However, it is intended only as transition mechanism and is not meant to be used permanently.

6to4 may be used by an individual host, or by a local IPv6 network. When used by an individual host, that host must have IPv4 connectivity and a global IPv4 address, and the host is responsible for encapsulation of outgoing IPv6 packets and decapsulation of incoming 6to4 packets. Many host operating systems implement this encapsulation and decapsulation via a 6to4 pseudo-interface.

When 6to4 is used by a local network, the entire local network needs only a single IPv4 address. Within that network, hosts learn their IPv6 addresses and routing using ordinary router discovery protocols, just as on a native IPv6 network.

6to4 "does not" facilitate interoperation between IPv4-only hosts and IPv6-only hosts.

How 6to4 works

6to4 performs three functions:

# Assigns a block of IPv6 address space to any host or network that has a global IPv4 address.
# Encapsulates IPv6 packets inside IPv4 packets for transmission over an IPv4 network using 6in4.
# Routes traffic between 6to4 and "native" IPv6 networks.

Address block allocation

For any 32-bit global IPv4 address that is assigned to a host, a 48-bit 6to4 IPv6 prefix can be constructed for use by that host (and if applicable the network behind it) by prepending 2002 (hex) to the IPv4 address. IPv4 addresses use dot-decimal notation while IPv6 addresses use hexadecimal notation. Thus for the global IPv4 address 192.0.2.42, the corresponding 6to4 prefix would be 2002:c000:022a::/48. This gives a prefix length of 48 bits, which leaves room for a 16-bit subnet field and a 64 bit host address within the subnet.

Any IPv6 address that begins with the 2002::/16 prefix is known of as a 6to4 address, as opposed to a "native IPv6 address" which does not use that prefix.

Encapsulation and transmission

6to4 embeds an IPv6 packet in the payload portion of an IPv4 packet with protocol type 41. To send an IPv6 packet over an IPv4 network to a 6to4 destination address, an IPv4 header with protocol type 41 is prepended to the IPv6 packet. The IPv4 destination address for the prepended packet header is derived from the IPv6 destination address of the inner packet, by extracting the 32 bits immediately following the IPv6 destination address's 2002:: prefix. The IPv4 source address in the prepended packet header is the IPv4 address of the host or router which is sending the packet over IPv4. The resulting IPv4 packet is then routed to its IPv4 destination address just like any other IPv4 packet.

Routing between 6to4 and native IPv6

To allow hosts and networks using 6to4 addresses to exchange traffic with hosts using "native" IPv6 addresses, "relay routers" have been established. A relay router connects to an IPv4 network and an IPv6 network. 6to4 packets arriving on an IPv4 interface will have their IPv6 payloads routed to the IPv6 network, while packets arriving on the IPv6 interface with a destination address prefix of 2002::/16 will be encapsulated and forwarded over the IPv4 network.

To allow a 6to4 router to communicate with the native IPv6 Internet, it must have its IPv6 default gateway set to a 6to4 address which contains the IPv4 address of a 6to4 relay router. To avoid the need for users to set this up manually, the 6to4 relay anycast address of 192.88.99.1 (which when wrapped in 6to4 with the subnet and hosts fields zero becomes 2002:c058:6301::, but as of July 2008 6to4 users still must access this gateway by the address ::192.88.99.1 from the deprecated prefix ::/96 - contrary to RFC ) has been allocated for the purpose of sending packets to a relay router. For routing reasons the whole of 192.88.99.0/24 has been allocated for routes pointed at 6to4 relay routers that use the anycast IP. Providers willing to provide 6to4 service to their clients or peers should advertise the anycast prefix like any other IP prefix, and route the prefix to their 6to4 relay.

Packets from the IPv6 Internet to 6to4 systems must be sent to a 6to4 relay router by normal IPv6 routing methods. The specification states that such relay routers must only advertise 2002::/16 and not subdivisions of it to prevent IPv4 routes polluting the routing tables of IPv6 routers. From here they can then be sent over the IPv4 Internet to the destination.

Reverse DNS delegation

When a site using 6to4 has a fixed global IPv4 address, its 6to4 IPv6 prefix is also fixed. It is then possible to request reverse DNS delegation for an individual 6to4 48-bits prefix inside the 2.0.0.2.ip6.arpa DNS zone from the Number Resource Organization at [http://6to4.nro.net/] . The process is entirely automatic.

ecurity considerations

According to RFC 3964, 6to4 routers and relays should ensure that:

* either or both the source and destination addresses of any encapsulated packet is within the 6to4 IPv6 prefix 2002::/16,
* if the source IPv6 address is a 6to4 IPv6 address, its corresponding 6to4 router IPv4 address matches the IPv4 source address in the IPv4 encapsulation header,
* similarly, if the destination IPv6 address is a 6to4 IPv6 address, its corresponding 6to4 router IPv4 address matches the IPv4 destination address in the IPv4 encapsulation header,
* any embedded 6to4 router IPv4 address is global unicast.

References

* B. Carpenter & K. Moore. "Connection of IPv6 Domains via IPv4 Clouds". RFC 3056, February 2001.
* R. Gilligan & E. Nordmark. "Transition Mechanisms for IPv6 Hosts and Routers". RFC 2893, August 2000.
* C. Huitema. "An Anycast Prefix for 6to4 Relay Routers". RFC 3068, June 2001.
* P. Savola & C. Patel. "Security Considerations for 6to4". RFC 3964, December 2004.

Known 6to4 relays

Websites & Lists

* [http://www.kfu.com/~nsayer/6to4/ Public 6to4 relay routers] : See [http://www.google.com/search?q=cache:www.kfu.com/~nsayer/6to4/+6to4+public| Google cache]
* [http://www.ipv6tf.org/using/connectivity/6to4.php IPv6 portal] : explanation & listing

Other hosts

* swi6netCE1.switch.ch @ 2001:620:0:c000::1

Known home routers with 6to4 support

* Apple's Airport Extreme base station
* Various Buffalo Technology wireless routers

ee also

* 6over4
* Teredo tunneling

External websites

* [http://www.cisco.com/web/about/ac123/ac147/ac174/ac197/about_cisco_ipj_archive_article09186a00800c830a.html "Routing IPv6 over IPv4" article by Cisco]


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • 6to4 — (parfois écrit « 6 to 4 ») est une méthode transition d IPv4 vers IPv6 qui permet à un réseau IPv6 isolé de communiquer en IPv6 avec un autre réseau IPv6 à travers un réseau IPv4. 6to4 est utile quand deux hôtes souhaitent échanger des… …   Wikipédia en Français

  • 6to4 — это переходный механизм, позволяющий передавать IPv6 пакеты через IPv4 сети, и не требующий создания двусторонних туннелей. Это, как правило, используется, когда конечный пользователь или сайт хотят получить соединение с IPv6 Интернетом, но не… …   Википедия

  • 6to4 — (auch STF oder 6 to 4 genannt) ist ein Tunnelmechanismus im Internet, um IPv6 Pakete über IPv4 transportieren zu können. Bei 6to4 wird auf jede IPv4 Adresse ein /48 großes IPv6 Netz abgebildet. Die IPv6 Adresse setzt sich aus dem Präfix 2002 und… …   Deutsch Wikipedia

  • 6to4 — es un sistema que permite envíar paquetes IPv6 sobre redes IPv4 obviando la necesidad de configurar túneles manualmente. Fue diseñado para permitir conectividad IPv6 sin la cooperación de los proveedores de Internet. Características Este sistema… …   Wikipedia Español

  • 6to4 — ● np. f. ►NET Technique d adressage par encapsulation définie dans la RFC 3056. Elle permet de créer un préfixe d adresse global pour une adresse publique IPv4. Cela donne des adresses du style: 2002:WWXX:YYZZ:[SLA]:[Interface] , où W, X, Y et Z… …   Dictionnaire d'informatique francophone

  • IPv6 — Internet protocol suite Application layer BGP DHCP DNS FTP …   Wikipedia

  • Teredo tunneling — Teredo is a tunneling protocol designed to grant IPv6 connectivity to nodes that are located behind IPv6 unaware NAT devices. It defines a way of encapsulating IPv6 packets within IPv4 UDP datagrams that can be routed through NAT devices and on… …   Wikipedia

  • Duplicate Address Detection — IPv6 im TCP/IP‑Protokollstapel: Anwendung HTTP IMAP SMTP DNS … Transport TCP UDP …   Deutsch Wikipedia

  • Duplicate Address Test — IPv6 im TCP/IP‑Protokollstapel: Anwendung HTTP IMAP SMTP DNS … Transport TCP UDP …   Deutsch Wikipedia

  • IPV6 — im TCP/IP‑Protokollstapel: Anwendung HTTP IMAP SMTP DNS … Transport TCP UDP …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”