Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
51
Добавлен:
11.04.2015
Размер:
22.9 Mб
Скачать

332 Understanding IPv6, Second Edition

The Origin indicator contains the following fields:

Indicator Type This two-byte field specifies the type of indicator. For the Origin indicator, it is set to 0. The Teredo client can distinguish the Origin indicator from the first two bytes of an IPv6 packet because the four high-order bits of an IPv6 packet are set to 0110 (6), which correspond to the Version field of the IPv6 header.

Obscured Origin Port Number This two-byte field contains the obscured (XORed with 0xFFFF) external port corresponding to the Teredo traffic of a Teredo client, Teredo relay, or Teredo host-specific relay. To obtain the original port number, the receiver XORs the value of the Obscured Origin Port Number field with 0xFFFF.

Obscured Origin Address This four-byte field contains the obscured (XORed with 0xFFFFFFFF) external IPv4 address corresponding to the Teredo traffic of a Teredo client, Teredo relay, or Teredo host-specific relay. To obtain the original address, the receiver XORs the value of the Obscured Origin Address field with 0xFFFFFFFF.

Figure 14-9 shows the three different types of packets that contain the Origin and Authentication indicators for the Windows-based Teredo client.

UDP

IPv4 Header Auth Router Solicitation Message

Header

IPv4 Header

UDP

Auth

Origin

Router Advertisement Message

Header

 

 

 

 

 

 

 

 

 

UDP

IPv4 Header Origin Teredo Bubble

Header

Figure 14-9 Types of packets containing the Authentication or Origin indicators

Teredo Routing

Figure 14-10 shows the routes that exist to enable reachability between Teredo hosts, Teredo servers, Teredo relays, Teredo host-specific relays, and IPv6-only hosts.

On the IPv6 Internet, 2001::/32 routes in the routing infrastructure are used to forward packets using the Teredo prefix to the nearest Teredo relay. Teredo servers, Teredo relays, and Teredo host-specific relays have a 2001::/32 route, which considers all addresses using the prefix as on-link using the Teredo tunneling interface. The Teredo tunneling interface is a logical interface that performs automatic IPv4 and UDP encapsulation for forwarded packets. Teredo servers, Teredo relays, and Teredo host-specific relays also have a default route (::/0) that points to the IPv6 Internet. Typically, this default route contains a next-hop IPv6 address of a neighboring router on the IPv6 Internet using a physical interface that is connected to the IPv6 Internet.

Chapter 14 Teredo

333

Routes:

Teredo Server

 

::/0 On-Link Using Teredo Interface

 

Teredo

Client

Figure 14-10

 

IPv6 Internet

IPv4 Internet

Routes:

 

 

2001::/32 to

 

Teredo Relay

NAT

Teredo Relay

NAT

Teredo Host-Specific

Relay

Teredo Client

Routes:

::/0 On-Link Using

Teredo Interface

Teredo routes

Routes:

2001::/32 On-Link Using Teredo Interface ::/0 to IPv6 Internet

Routing for the Teredo Client in Windows

The Teredo client in Windows Server 2008, Windows Vista, Windows XP with SP2, Windows XP with SP1 with the Advanced Networking Pack for Windows XP, and Windows Server 2003 with Service Pack 1 has an on-link default route (::/0) that uses the Teredo tunneling interface. When this default route is used, IPv6 sets the next-hop address to the destination address in the IPv6 packet and the next-hop interface to the Teredo tunneling interface.

When the Teredo tunneling interface forwards the packet, it distinguishes the following three cases:

1.The destination is a Teredo client on the same IPv4 link.

2.The destination is a Teredo client that is in another site.

3.The destination is a node on the IPv6 Internet.

On-Link Teredo Client Destinations

For packets destined for another Teredo client on the same link, the Teredo tunneling interface uses an exchange of bubble packets as the substitute for the address resolution process of Neighbor Discovery. The exchange of bubble packets assures Teredo clients that they can begin sending packets directly to each other. For more information, see the “Initial Communication Between Teredo Clients on the Same Link” section later in this chapter.

Соседние файлы в папке Lecture 2_10