Virtual Networks and Tunnels
Virtual Networks and Tunnels
Hema A Murthy
Example
N1 R1
Inter Network
R2 N2
Tunnel 10.1.0.1
Forwarding Table R1
1 Interface 0
2 Virtual Interface 0
Default Interface 1
Indian Institute of Technology Madras
Computer Networks Prof. Hema A Murthy
N2 = 2 .x
IP payload
IP payload
IP payload
R1 - Encapsulating router
•sends packet address to R2
•Packet reaches R2 as if a standard internet packet
• at R2 – strip and forward to the destination directly
Indian Institute of Technology Madras
Computer Networks Prof. Hema A Murthy
Interfaces
• Router R1 –
– Two physical interfaces 1 and 2
– one virtual interface packet to R1 destined for
N2.
– Forwarding table – says send on Virtual
interface 0
• Advantages:
• Security: Supplement with encryption
• A private link across a public network
FDDI ring
L1 L2 L3 L4
10.65.0.4 10.65.0.4
10.65.0.0 10.7.0.0
10.6.0.0
EE Ethernet CS Ethernet
Indian Institute of Technology Madras
Computer Networks Prof. Hema A Murthy
6 6 2 2 2 2
0 x 800 for IP
ARP (Example)
• arp - a -- empty cache
• telnet xyz – try to connect to xyz
• DNS resolves xyz to IP address
• To monitor Ethernet packets
• Use tcpdump on unix machines
ARP (Example)
• tcpdump –e
• 0:0.C0:6f:2d:40 ff:ff:ff:ff:ff:ff:ff arp 60
Senders Ethernet broadcast Length of Ethernet
address address
0:0.C0:C2:96:26 0:0:C0:6f:2d:40
Gratitious ARP
• Host sends a request to get its own IP
address
• tcpdump –n option
• 0:0:C0:6f:2d:C0:ff:ff:…….ff arp 60
• arp who has 140.252.13.35 tell
140.252.13.35
– enables host to determine if same IP address is
in use!
ATMARP
• LAN Emulation Procedure
• Part of classical IP over ATM model
– Depends on server to resolve addresses
– ARP server
• Database of IP address and ARP address
• Machines setup VC to ARP server at boot time
• Get address of destination
• Setup VC to destination address
.2
.00
H1 13.0.0.3
11
11.0.0.1 H2
LIS 11 LIS 13 13.0.0.2
ATM Network
Network number 11 Network number 13
ATMARP
• LIS – advantage:
• - Connect large number of routers and hosts to a big ATM
• Network
• ARP Server:
• - Enable nodes on LIS to resolve IP address – w/o broadcast
• LIS
• - Each node in LIS configured with ATM address of ARP
• server
• ARP Server
• - Table of IP and ATM addresses
• Issues:
• h1 cannot talk to h2 directly – must go through router
Host
DHCP
• Automated configuration methods:
• DCHP server
– addresses handed over to hosts on demand
• Issues
– host requires address of DCHP servers
– host sends DCHP discover broadcast message
– DHCP server replies to the host
– Avoid DHCP server on every network
• Use DHCP Relay
DHCP
• DCHP format:
• chaddr – field in which host puts its
hardware address
• yiaddr – your IP address DHCP assigns
address
• Hosts cannot keep IP addresses permanently
• Some mechanism for leasing IP address
• Getting IP address for duration of the call