A technique of internetworking called Tunneling is used when source and destination networks of same type are to be connected through a network of different type. For example, let us consider an Ethernet to be connected to another Ethernet through a WAN as:
The task is sent on an IP packet from host A of Ethernet-1 to the host B of ethernet-2 via a WAN.
Sequence of events:
- Host A construct a packet which contains the IP address of Host B.
- It then inserts this IP packet into an Ethernet frame and this frame is addressed to the multiprotocol router M1
- Host A then puts this frame on Ethernet.
- When M1 receives this frame, it removes the IP packet, inserts it in the payload packet of the WAN network layer packet and addresses the WAN packet to M2. The multiprotocol router M2 removes the IP packet and send it to host B in an Ethernet frame.
Why is this Technique called Tunneling?
In this particular example, the IP packet does not have to deal with WAN. the host A and B also do not have to deal with the WAN. The multiprotocol routers M1 and M2 will have to understand about IP and WAN packets. Therefore, the WAN can be imagined to be equivalent to a big tunnel extending between multiprotocol routers M1 and M2 and the technique is called Tunneling.
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Difference between UDP and RTP
- Difference between XSS and CSRF
- SDN Controllers (Ryu and ODL)
- Difference between Texting and Messaging
- Cyber Security - Attacking through Command and Control
- Payload in Computer Networks
- Fiber Optics Broadband Connection
- Difference between Broadband and DSL
- Types of Cyber Attacks
- Gigabit Passive Optical Networks (GPON) Fundamentals
- Difference between Checksum and CRC
- Difference between VRC and LRC
- Difference between Rest API and Web Socket API
- Differences between Flutter and Xamarin
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.