Lecture03 Packets Delay Internet
Lecture03 Packets Delay Internet
Lecture03 Packets Delay Internet
Computer Networks:
Architecture and Protocols
Lecture 3
- Packet Delays
- How the Internet works
Rachit Agarwal
Context for and Goals of Today’s Lecture
• Today’s lecture is going to be one of the hardest lectures
• If you understand everything
• There is something wrong!
• Goals:
• Wrap up discussion on transmission and propagation delays
• How does the Internet work?
• An end-to-end view
But, as usual, lets start with:
what we have learnt so far
Recap: What is a computer network?
A set of network elements connected together, that implement a set of
protocols for the purpose of sharing resources at the end hosts
Recap: network can be abstractly represented as a graph
Source Path
Path
Source
Destination
Destination
Recap: Sharing the network
Source Path
Path
Source
Destination
Destination
Recap: Performance metrics in computer networks!
• Bandwidth: Number of bits sent per second (bits per second, or bps)
• Depends on hardware, network traffic conditions, …
Request =
Source 100Mbps
Bandwidth
= 100Mbps
Source
Destination
Destination
Circuit switching: another example (red request succeeds)
Request =
Source 10Mbps
Bandwidth
= 100Mbps
Request =
10Mbps
Source
Destination
Destination
Recap: Circuit switching (reservation-based sharing) summary
• Goods:
• Predictable performance
• Reliable delivery
• Simple forwarding mechanism
• Not-so-goods
• Handling failures
• Resource underutilization
• Blocked connections
• Connection set up overheads
• Per-connection state in switches (scalability problem)
Recap: Solution: Packet switching
• Break data into smaller pieces
• Packets!
• Goods:
• With proper mechanisms in place
• Easier to handle failures
• No resource underutilization
• A source can send more if others don’t use resources
• No blocked connection problem
• No per-connection state
• No set-up cost
• Not-so-goods:
• Unpredictable performance
• High latency
• Packet header overhead
Recap: Two approaches to sharing networks
Both embody statistical multiplexing
• Propagation delay:
• Time taken to move one bit from one end of the link to other
• = Link length / Speed of light
• If length = 30000m: ~100us
• Independent of packet size and bandwidth
Questions?
Group Exercise:
How long does it take for a packet on a link?
Constraints:
• Packet size = 1000Byte
• Bandwidth = 100Mbps
• Length = 30,000m
Solution to Group Exercise:
How long does it take for a packet on a link?
~180us
Why?
Questions?
Today’s lecture: How does the Internet work?
1. Dive into end-to-end: from source to destination
2. First look into switches: routing, queueing, forwarding
3. First look into network stack: sockets, ports, “the stack”
How does the Internet work?
An end-to-end view
Four fundamental problems!
• Naming, addressing: Locating the destination
• Before you can send packets to www.cornell.edu, you must resolve names
into the host’s address
Output queue
Input queue
Header Data
Switch Processing and Queueing delay
• Processing delay
• Easy; each switch/router needs to decide where to put packet
• Requires checking header, etc.
• Queueing delay
• Harder; depends on “how many packets are in front of me”
• Depends on network load
• As load increases, queueing delay increases
• When a packet arrives at a host, what does the host do with it?
• To which process (application) should the packet be sent?
• If the packet header only has the destination address, how does the host
know where to deliver packet?
• There may be multiple applications on that destination
And while we are finishing our story ….
• Who puts the source address, source port, destination address,
destination port in the packet header?
The final piece in the game: End-host stack
Of Sockets and Ports
• Applications:
• Send and receive packets
• Understand content of packet bodies
• The network stack at the source embeds the address and port for both
the source and the destination in packet header
• Each router uses destination address in the packet header to look up the
outgoing link in the routing table
• And when the link is free, forwards the packet