Unterschied zwischen TCP und IP-Tunneling?

3935
William

Kann jemand bitte in Bezug auf die OSI (oder TCP / IP) -Schichten erklären, was ist der Unterschied zu dem, was passiert, wenn Sie IP oder TCP tunneln, über das ICMP-Protokoll sagen (obwohl letzteres wirklich nicht das letztere ist, denke ich nicht)?

1

1 Antwort auf die Frage

2
daya

Tunneling is the process in which one layer is encapsulated in the payload of another layer. In the OSI model.

IP Tunneling: Suppose you tunnel an ip packet inside another ip packet. On the left you can see the packet to be encapsulated and on the right this packet is added as payload to another IP packet.

enter image description here

On the receiving end the process is reversed and the payload packet is sent to the higher layers of stack.

IP tunneling can be of many types ip over ip, ip6 over ip, ip over ip6.

In TCP tunneling the same process is done at TCP level.

TCP tunneling is generally used for port forwarding because traffic can be selectively forwarded based on destination port.

Here are some nice articles:

IP Tunneling. http://www.linuxfoundation.org/collaborate/workgroups/networking/tunneling

TCP Port Forwarding: http://www.cyberciti.biz/faq/linux-unix-tcp-port-forwarding/