Virtual Circuit and Datagram Networks
Virtual Circuit and Datagram Networks
1 3
2
VC number
interface
forwarding table in number
northwest router:
Incoming interface Incoming VC # Outgoing interface Outgoing VC #
1 12 3 22
2 63 1 18
3 7 2 17
1 97 3 87
… … … …
application
6. receive data application
transport 5. data flow begins transport
network 4. call connected 3. accept call
network
data link 1. initiate call 2. incoming call
data link
physical physical
Datagram Networks
• No call setup at network layer
• Routers: no state about end-to-end
connections
No network-level concept of “connection”
• Packets forwarded using destination host
application
address
transport
application
transport
network 1. send datagrams 2. receive datagrams network
data link data link
physical physical
Datagram forwarding table
4 billion IP
routing algorithm addresses, so rather
than list individual
local forwarding table
destination address
dest address output list range of
address-range 1 3 link
addresses
address-range 2 2 (aggregate table
address-range 3
address-range 4
2
1
entries)
IP destination address in
arriving packet’s header
1
3 2
Datagram forwarding table
Destination Address Range Link Interface
otherwise 3
Longest prefix matching
longest prefix matching
when looking for forwarding table entry
for given destination address, use longest
address prefix that matches destination
address.
Destination Address Range Link interface
11001000 00010111 00010*** ********* 0
11001000 00010111 00011000 ********* 1
11001000 00010111 00011*** ********* 2
otherwise 3
examples:
DA: 11001000 00010111 00010110 10100001 which interface?
DA: 11001000 00010111 00011000 10101010 which interface?
Datagram or VC network: why?
Internet (datagram) ATM (VC)
• data exchange among • evolved from telephony
computers • human conversation:
– strict timing, reliability
– “elastic” service, no strict timing
requirements
req. – need for guaranteed
• many link types service
– different characteristics
• “dumb” end systems
– telephones
– uniform service difficult – complexity inside network
• “smart” end systems
(computers)
– can adapt, perform control, error
recovery
– simple inside network,
complexity at “edge”