Ipv4 over ipv6 tunneling, Implementation – H3C Technologies H3C S12500-X Series Switches User Manual
Page 148
137
Figure 52 IPv4 over IPv4 tunnel
Packets traveling through a tunnel undergo encapsulation and de-encapsulation, as shown in
•
Encapsulation:
a.
Device A receives an IP packet from an IPv4 host and submits it to the IP protocol stack.
b.
The IPv4 protocol stack determines how to forward the packet according to the destination
address in the IP header. If the packet is destined for the IPv4 host connected to Device B,
Device A delivers the packet to the tunnel interface.
c.
The tunnel interface adds a new IPv4 header to the IPv4 packet and submits it to the IP protocol
stack. In the new header, the source IP address specifies the tunnel source, and the destination
IP address specifies the tunnel destination. The IP protocol stack uses the destination IP address
of the new IP header to look up the routing table, and then sends the packet out.
•
De-encapsulation:
a.
After receiving the packet, Device B delivers it to the IP protocol stack.
b.
If the protocol number is 4 (indicating an IPv4 packet is encapsulated within the packet), the IP
protocol stack delivers the packet to the tunnel module for de-encapsulation.
c.
The tunnel module de-encapsulates the IP packet and sends it back to the IP protocol stack.
d.
The protocol stack forwards the de-encapsulated packet.
IPv4 over IPv6 tunneling
Implementation
IPv4 over IPv6 tunneling adds an IPv6 header to IPv4 packets so that IPv4 packets can pass an IPv6
network through a tunnel to realize interworking between isolated IPv4 networks.