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

Chapter 14 Teredo

343

Initial Communication from a Teredo Client to a Teredo Host-Specific Relay

Initial communication from a Teredo client to a Teredo host-specific relay depends on whether the Teredo client is behind a cone NAT or restricted NAT.

Cone NAT

Figure 14-16 shows the initial communication from a Teredo client to a Teredo host-specific relay when the Teredo client is located behind a cone NAT.

Teredo Server

Cone

NAT

 

2

IPv4 Internet

IPv6 Internet

1

4

Teredo Client

Teredo

Host-Specific Relay

3

1.Echo Request to the Teredo Server

2.Forwarded Echo Request to the Teredo Host-Specific Relay

3.Echo Reply to the Teredo Client

4.Initial Packet to Teredo Host-Specific Relay

IPv6 Tunneled As an IPv4 UDP Message

Native IPv6 Traffic or IPv6 over IPv4 Traffic

Figure 14-16 Initial communication from a Teredo client to a Teredo host-specific relay with a cone NAT

To send an initial communication packet from the Teredo client to the Teredo host-specific relay, the following process is used:

1.Teredo Client A sends an ICMPv6 Echo Request message to the Teredo host-specific relay via its own Teredo server.

2.The Teredo server receives the ICMPv6 Echo Request message and forwards it to the Teredo host-specific relay over the IPv6 Internet or tunneled over the IPv4 Internet.

3.The Teredo host-specific relay responds with an ICMPv6 Echo Reply message sent to Teredo Client A’s Teredo address. Because the Teredo host-specific relay has a Teredo route (2001::/32) and a Teredo tunneling interface, the Teredo host-specific relay sends the packet directly to Teredo Client A.

4.After receiving the Echo Reply from the Teredo host-specific relay, the Teredo client sends an initial communication packet to the IPv4 address and UDP port of the Teredo host-specific relay.

344 Understanding IPv6, Second Edition

All subsequent packets between the Teredo client and the Teredo host-specific relay are sent directly.

Restricted NAT

Figure 14-17 shows the initial communication from a Teredo client to a Teredo host-specific relay when the Teredo client is located behind a restricted NAT.

Teredo Server

Restricted

NAT

 

4

2

IPv4 Internet

IPv6 Internet

 

 

3

 

 

Teredo

 

 

Host-Specific Relay

 

6

 

1

 

 

5

1.

Echo Request via the Teredo Server

 

2.

Forwarded Echo Request to Teredo Host-Specific Relay

 

3.

Bubble Packet to the Teredo Server

7

4.

Bubble Packet with Origin Indicator to the Teredo Client

 

5.

Bubble Packet to Teredo Host-Specific Relay

 

6.

Echo Reply to the Teredo Client

Teredo Client

7.

Initial Packet to the Teredo Host-Specific Relay

 

 

 

 

IPv6 Tunneled As an IPv4 UDP Message

 

 

Native IPv6 Traffic or IPv6 over IPv4 Traffic

Figure 14-17 Initial communication from a Teredo client to a Teredo host-specific relay with a restricted NAT

To send an initial communication packet from the Teredo client to the Teredo host-specific relay, the following process is used:

1.The Teredo client sends an ICMPv6 Echo Request message to the Teredo host-specific relay via its own Teredo server.

2.The Teredo server receives the ICMPv6 Echo Request message and forwards it to the Teredo host-specific relay over the IPv6 Internet or tunneled over the IPv4 Internet.

3.The Teredo host-specific relay determines that the Teredo client is behind a restricted NAT. If the Teredo relay were to send the ICMPv6 Echo Request message to the Teredo client, the NAT would silently discard it because there is no source-specific mapping for Teredo traffic from the Teredo host-specific relay. Therefore, the Teredo hostspecific relay sends a bubble packet to the Teredo client via the Teredo server over the IPv4 Internet.

Chapter 14 Teredo

345

4.The Teredo server receives the bubble packet from the Teredo host-specific relay. The Teredo server forwards the bubble packet to the Teredo client, with an Origin indicator that contains the IPv4 address and UDP port number of the Teredo host-specific relay. Because a source-specific mapping for Teredo traffic from the Teredo server exists in the NAT, the bubble packet is forwarded to the Teredo client.

5.The Teredo client determines the IPv4 address and UDP port of the Teredo host-specific relay from the Origin indicator of the received bubble packet. To establish a sourcespecific mapping for Teredo traffic from the Teredo host-specific relay, the Teredo client sends a bubble packet to the Teredo host-specific relay.

6.Based on the receipt of the bubble packet from the Teredo client that corresponds to a packet that is queued for forwarding (the ICMPv6 Echo Reply message), the Teredo host-specific relay determines that a source-specific NAT mapping now exists in the restricted NAT of the Teredo client. The Teredo host-specific relay forwards the ICMPv6 Echo Reply message to the Teredo client.

7.An initial communication packet is sent from the Teredo client to the IPv4 address and UDP port of the Teredo host-specific relay.

All subsequent packets between the Teredo client and the Teredo host-specific relay are sent directly.

Initial Communication from a Teredo Host-Specific Relay to a Teredo Client

Initial communication from a Teredo host-specific relay to a Teredo client depends on whether the Teredo client is behind a cone NAT or restricted NAT.

Cone NAT

Figure 14-18 shows the initial communication from a Teredo host-specific relay to a Teredo client when the Teredo client is located behind a cone NAT.

To send an initial communication packet from the Teredo host-specific relay to the Teredo client, the Teredo host-specific relay determines that the Teredo client is behind a cone NAT. Therefore, it sends the initial communication packet directly to the Teredo client.

To ensure that the IPv6 address of the initial communication packet has not been spoofed and corresponds to the Teredo host-specific relay, the Teredo client performs an ICMPv6 Echo Request/Echo Reply message exchange with the Teredo host-specific relay using steps 1 through 3 of the “Initial Communication from a Teredo Client to a Teredo Host-Specific Relay” (for a cone NAT) section of this chapter. After this exchange is complete, the Teredo client sends the response to the initial communication packet to the Teredo host-specific relay.

346 Understanding IPv6, Second Edition

Teredo Server

IPv4 Internet

IPv6 Internet

Teredo

Cone Host-Specific Relay

NAT

1 1. Initial Packet to the Teredo Client

Teredo Client

Figure 14-18 Initial communication from a Teredo host-specific relay to a Teredo client with a cone NAT

Restricted NAT

Figure 14-19 shows the initial communication from a Teredo host-specific relay to a Teredo client when the Teredo client is located behind a restricted NAT.

Teredo Server

Restricted

NAT

IPv4 Internet

2

IPv6 Internet

 

 

 

1

Teredo

Host-Specific Relay

4

1.Bubble Packet via the Teredo Server

2.Bubble Packet with Origin Indicator to the Teredo Client

3

3.

Bubble Packet to Teredo Host-Specific Relay

4.

Initial Packet to Teredo Client

 

IPv6 Tunneled As an IPv4 UDP Message

Teredo Client

Figure 14-19 Initial communication from a Teredo host-specific relay to a Teredo client with a restricted NAT

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