CS - ECE438 Lec2 InternetGoals
CS - ECE438 Lec2 InternetGoals
CS - ECE438 Lec2 InternetGoals
- Why packets?
- Internet Design Goals
Saksham Agarwal
1
ti
Recap: what is a computer network?
A set of network elements connected together, that implements a set of protocols for the purpose of sharing
resources at the end hosts
Switch Router
Link
End hosts
Recap: what do computer networks do?
A computer network delivers data between the end hosts
ti
Recap: what is a computer network?
A set of network elements connected together, that implements a set of protocols for the purpose of sharing
resources at the end hosts
A computer network can be abstractly represented as a graph
Source Path
Source
Des na on Des na on
ti
ti
ti
ti
Sharing the network (graph)
Source Path
Source
Des na on Des na on
ti
ti
ti
ti
The problem of sharing networks
• Must support many “users” and/or “applica ons” at the same me
• Each user/applica on wants the use the network (send and receive data)
• Limited resources
• Network has di erent resources (as we’ll see over the course of this semester)
• Fundamental ques on
• How does the network decide which resource to allocate to which user/applica on at any given point of
me?
ti
ff
ti
ti
ti
ti
ti
Resources relate to performance
What are the performance metrics?
Performance metrics in computer networks!
• Bandwidth: Number of bits sent per second (bits per second, or bps)
• Depends on
• Hardware Bandwidth
• Network tra c condi ons
•… Delay
• On demand
ti
Two approaches to sharing networks
• First: Reserva ons
• Reserve bandwidth needed in advance
• Set up “circuits” and send data over that circuit
• Must reserve for peak bandwidth
• Mechanism
• Source sends a reserva on request for peak demand to des na on
• Switches/routers establish a “circuit”
• Source sends data
• Source sends a “teardown circuit” message
ti
ti
ti
ti
ti
Circuit switching: an example (red request fails)
Request = 100Mbps
Source
Link Bandwidth
= 100Mbps
Request = 100Mbps
Source
Des na on Des na on
ti
ti
ti
ti
Circuit switching: an example (red request succeeds)
Request = 10Mbps
Source
Link Bandwidth
= 100Mbps
Request = 10Mbps
Source
Des na on Des na on
ti
ti
ti
ti
Circuit switching and failures
• Circuit is established
• Not-so-goods
• Resource underu liza on
• Blocked connec ons
• Connec on set up overheads
• Per-connec on state in switches (scalability problem)
ti
ti
ti
ti
ti
Two apparoaches to sharing networks
• Second: On demand (also known as “best e ort”)
• Break data into packets
• Send packets when you have them
• Hope for the best
ff
Packet switching: an example
Source
Link Bandwidth
= 100Mbps
Source
Des na on Des na on
ti
ti
ti
ti
Packet switching: what does a switch look like?
Packet Bu ers
ff
Packets
• Packets carry data (are bag of bits):
• Header: meaningful to network
• Body: meaningful only to applica on
• More discussion in next lecture
• That’s the only way a router/switch can know what to do with the packet
ti
ti
ti
Packet switching summary
• Goods
• No resource underu liza on
• A source can send more if others don’t use resources
• No blocked connec on problem
• No per-connec on state
• No set-up cost
• Not-so-goods
• Unpredictable bandwidth availability
• Unpredictable delay/latency
• Packet header overhead
ti
ti
ti
ti
Circuits vs packets
• Pros for circuits
• Be er applica on performance (reserved bandwidth)
• More predictable and understandable (w/o failures)
ti
ti
Internet Design Goals
• Fundamental goal (#1): connec vity between exis ng interconnected networks
• Performance?
• Security?
• Privacy?
• Availability?