Week 2 - Lec 1
Week 2 - Lec 1
Week 2 - Lec 1
Introduction
Week 2-Lecture 1
Introduction 1-1
Today’s lecture: Basic questions
• Tremendous scale
• 51% of world population
• 1.24 trillion unique web pages
• Every second, approximately
• > 2 million emails
• > 40000 Google search queries
• > 6000 Tweets
1970 Today
Bandwidth 50 kbps 100+ Gbps
home
access networks, network
regional ISP
physical media: wired,
wireless communication
links
network core:
interconnected routers
network of networks institutional
network
Introduction 1-14
Chapter 1: roadmap
1.1 what is the Internet?
1.2 network edge
end systems, access networks, links
1.3 network core
packet switching, circuit switching, network structure
1.4 delay, loss, throughput in networks
1.5 protocol layers, service models
1.6 networks under attack: security
1.7 history
Introduction 1-15
The network core
• mesh of interconnected
routers
• packet-switching: hosts
break application-layer
messages into packets
• forward packets from one
router to the next, across
links on path from source
to destination
• each packet transmitted at
full link capacity
Introduction 1-16
Many mechanisms: What do we mean by …
Source Path
Path
Source
Destination
Destination
1. What does network sharing mean?
2. What are the performance metrics?
3. What are the various mechanisms for sharing networks?
What does network sharing mean?
The problem of sharing networks
• Fundamental question:
• Hardware Bandwidth
• Network traffic conditions
Time taken is Propagation delay: Time for one bit to move through the link
(seconds)
• Depends on
Hardware
•
• Network traffic conditions Propagation
Delay
• How large is the unit?
• Each bit is a pulse of some width.
• For example, each bit on a
• 1-Mbps link is 1 µs wide
• 2-Mbps link is 0.5 µs wide,
• The narrower each bit can become, the higher the bandwidth.
• This means more bits can get inside the tunnel
• So MORE DATA CAN FLOW WITHIN A TIME
Bandwidth-delay product (BDP)
Number of bits “in flight” at any point of time (bits)
• Bits sent, but not received
Propagation
• Same city over a slow link Delay
• Bandwidth: ~100Mbps
• propagation delay: ~0.1ms
• BDP = 10,000 bits (1.25KBytes)
• Between cities over fast link:
• Bandwidth: ~10Gbps
• propagation delay: ~10ms
• BDP = 100,000,000 bits (12.5MBytes)
What are the various mechanisms for sharing networks?
How would you design a sharing mechanism?
Hint:
Think about sharing any
resource (say, a computer)
Two approaches to sharing networks
• Reservations
• On demand
Two approaches to sharing networks
• First: Reservations
• Reserve bandwidth needed in advance
• Set up circuits and send data over that circuit
• No need for packets
• Must reserve for peak bandwidth
• Peak bandwidth?
• Applications may generate data at rate varying over time
• 100MB in first second
• 10MB in second second …
• Reservations must be made for “peak”
Circuit switching: Implementing reservations since …
Telephone networks
• Mechanism:
• Source sends a reservation request for peak demand to destination
• Switches/routers establish a “circuit”
• Source sends data
• Source sends a “teardown circuit”
message
Circuit switching
end-end resources allocated to,
reserved for “call” between
source & dest:
• In diagram, each link has four circuits.
• call gets 2nd circuit in top link and
1st circuit in right link.
• dedicated resources: no sharing
• circuit-like (guaranteed)
performance
• circuit segment idle if not used by call
(no sharing)
• Commonly used in traditional
telephone networks
Introduction 1-34
Challenges with Circuit switching (reservation)
• Handling failures
• Resource underutilization
• Blocked connections
• Connection set up overheads
Fun Quiz
Google celebrates its birthday on September 27, although no one really knows the exact date when it was founded. Started
by two Stanford college friends, Larry Page and Sergey Brin, in 1998, it is a multi-billion dollar enterprise now. The name
comes from a simple misunderstanding when they were searching for another, actual, word that existed in academia and
meant a particular number. What word is that and what number does it denote?
Gmail was launched by Google on April 1, 2004, which led many to believe it was an April Fool’s joke. Before this service
the term ‘G-mail’ already existed from as early as 1998. This was used online by fans of a certain fictional obese cat, and
the original G-mail was known as “e-mail with cattitude”. What does the G stand for in the original G-mail?
Garfield
When Page and Brin built the first server rack for Google at Stanford, they were looking for a cabinet to house it that
was easy to assemble and disassemble. The server contained ten 4GB hard disks and two cooling fans. What colourful
and bountifully found system did they use to build the server stack?
Lego bricks
Vincent Cerf
Solution: Packet switching
• Goods:
• 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: Deep dive into one link: packet delay/latency