SlideShare una empresa de Scribd logo
1 de 54
Descargar para leer sin conexión
Basic	
  Concepts	
  (part	
  2):	
  
packet	
  delays	
  and	
  layering
CS168,	
  Fall	
  2014	
  
Sylvia	
  Ratnasamy	
  
hCp://inst.eecs.berkeley.edu/~cs168/fa14/	
  
Administrivia	
  
‣ Discussion	
  secLons	
  start	
  Monday,	
  Sep	
  15	
  
‣ Homework#1	
  out	
  tonight	
  
-­‐ announce	
  homework	
  logis1cs	
  	
  
2	
  
Plan	
  of	
  aCack	
  
‣ What	
  is	
  a	
  network	
  made	
  of?	
  
‣ How	
  is	
  it	
  shared?	
  
‣ How	
  do	
  we	
  evaluate	
  a	
  network?	
  
‣ How	
  is	
  communicaLon	
  organized?	
  
3	
  
4	
  
end-­‐system	
   switch	
  
link	
  
Internet	
  Service	
  Provider	
  
5	
  
phone	
  company	
  
6	
  
home	
  PC	
   switch	
  
DSL	
  modem	
   DSLAM	
  
central	
  
office	
  
phone	
  line	
  
telephone	
  
telephone	
  
network	
  
...	
  
Two	
  approaches	
  to	
  sharing	
  
‣ ReservaLons	
  à	
  circuit	
  switching	
  
‣ On	
  demand	
  à	
  packet	
  switching	
  
	
  
7	
  
Circuit	
  vs.	
  Packets	
  
‣ Circuits	
  
-­‐ predictable	
  performance	
  	
  
-­‐ inefficient	
  use	
  of	
  network	
  resources	
  
-­‐ complex	
  (state	
  in	
  the	
  network)	
  
	
  
‣ Packets	
  
-­‐ unpredictable	
  performance	
  	
  
-­‐ efficient	
  use	
  of	
  network	
  resources	
  
-­‐ simple	
  (no	
  state	
  in	
  the	
  network)	
  
‣ What	
  physical	
  infrastructure	
  is	
  already	
  
available?	
  
	
  
‣ 	
  Reserve	
  or	
  on-­‐demand?	
  
9	
  
Today	
  
‣ What	
  is	
  a	
  network	
  made	
  of?	
  
‣ How	
  is	
  it	
  shared?	
  
‣ How	
  do	
  we	
  evaluate	
  a	
  network?	
  
‣ How	
  is	
  communicaLon	
  organized?	
  
10	
  
Performance	
  Metrics	
  
‣ Delay	
  
‣ Loss	
  	
  
‣ Throughput	
  
	
   	
  	
  
Delay	
  
‣ How	
  long	
  does	
  it	
  take	
  to	
  send	
  a	
  packet	
  
from	
  its	
  source	
  to	
  des1na1on?	
  
	
  	
  
Delay	
  
‣ Consists	
  of	
  four	
  components	
  
-­‐ transmission	
  delay	
  
-­‐ propaga1on	
  delay	
  
-­‐ queuing	
  delay	
  
-­‐ processing	
  delay	
  
due	
  to	
  link	
  proper1es	
  
due	
  to	
  traffic	
  mix	
  and	
  	
  
switch	
  internals	
  
A	
  network	
  link
	
  
l Link	
  bandwidth	
  	
  	
  
l number	
  of	
  bits	
  sent/received	
  per	
  unit	
  Lme	
  (bits/sec	
  or	
  bps)	
  
l PropagaLon	
  delay	
  	
  
l Lme	
  for	
  one	
  bit	
  to	
  move	
  through	
  the	
  link	
  (seconds)	
  
l Bandwidth-­‐Delay	
  Product	
  (BDP)	
  	
  
l number	
  of	
  bits	
  “in	
  flight”	
  at	
  any	
  Lme	
  
l BDP	
  =	
  bandwidth	
  ×	
  propagaLon	
  delay	
  
bandwidth	
  
PropagaLon	
  delay	
  
delay	
  x	
  bandwidth	
  
Examples
	
  
l Same	
  city	
  over	
  a	
  slow	
  link:	
  	
  
l bandwidth:	
  ~100Mbps	
  
l propagaLon	
  delay:	
  ~0.1msec	
  
l BDP:	
  10,000bits	
  (1.25KBytes)	
  
	
  
l Cross-­‐country	
  over	
  fast	
  link:	
  
l bandwidth:	
  ~10Gbps	
  
l propagaLon	
  delay:	
  ~10msec	
  
l BDP:	
  108bits	
  (12.5MBytes)	
  
time=0
A B
100Byte packet
Time
1Mbps, 1ms
Time to transmit
one bit = 1/106s
Time to transmit
800 bits=800x1/106s
Time when that
bit reaches B
= 1/106+1/103s
The last bit
reaches B at
(800x1/106)+1/103s
= 1.8ms
Packet	
  Delay
	
  
Sending	
  100B	
  packets	
  from	
  A	
  to	
  B?
	
  
Packet	
  Delay
	
  
Sending	
  100B	
  packets	
  from	
  A	
  to	
  B?
	
  
A B
100Byte packet
Time
1Mbps, 1ms
1Gbps, 1ms?
The last bit
reaches B at
(800x1/106)+1/103s
= 1.8ms
1GB file in 100B packets
The last bit
reaches B at
(800x1/109)+1/103s
= 1.0008ms
The last bit in the file
reaches B at
(107x800x1/109)+1/103s
= 8001ms
107 x 100B packets
A B
100Byte packet
Time
1Mbps, 10ms
100Byte packet
100Byte packet
time à
BW
à
pkt tx
time
Packet	
  Delay:	
  The	
  “pipe”	
  view
	
  
Sending	
  100B	
  packets	
  from	
  A	
  to	
  B?
	
  
Packet	
  Delay:	
  The	
  “pipe”	
  view
	
  
Sending	
  100B	
  packets	
  from	
  A	
  to	
  B?
	
  
1Mbps, 10ms (BDP=10,000)
time à
BW
à
10Mbps, 1ms (BDP=10,000)
time à
BW
à
1Mbps, 5ms (BDP=5,000)
time à
BW
à
Packet	
  Delay:	
  The	
  “pipe”	
  view
	
  
Sending	
  100B	
  packets	
  from	
  A	
  to	
  B?
	
  
1Mbps, 10ms (BDP=10,000)
time à
BW
à
200B?
1Mbps, 10ms (BDP=10,000)
time à
BW
à
Computer	
  Networks,	
  Fall	
  2013	
  
1.	
  Transmission	
  delay	
  
‣ How	
  long	
  does	
  it	
  take	
  to	
  push	
  all	
  the	
  bits	
  	
  	
  	
  	
  
of	
  a	
  packet	
  into	
  a	
  link?	
  
‣ Packet	
  size	
  /	
  Link	
  bandwidth	
  
-­‐ e.g.	
  1000	
  bits	
  /	
  100	
  Mbits	
  per	
  sec	
  =	
  10	
  -­‐5	
  sec	
  
21	
  
Computer	
  Networks,	
  Fall	
  2013	
  
2.	
  PropagaLon	
  delay	
  
‣ How	
  long	
  does	
  it	
  take	
  to	
  move	
  one	
  bit	
  	
  	
  	
  	
  	
  	
  	
  
from	
  one	
  end	
  of	
  a	
  link	
  to	
  the	
  other?	
  
‣ Link	
  length	
  /	
  Link	
  propagaLon	
  delay	
  	
  
-­‐ E.g.	
  30	
  kilometers	
  /	
  3	
  108	
  meters	
  per	
  sec	
  =	
  10-­‐4	
  sec	
  
22	
  
Computer	
  Networks,	
  Fall	
  2013	
  
3.	
  Queuing	
  delay	
  
‣ How	
  long	
  does	
  a	
  packet	
  have	
  to	
  sit	
  in	
  a	
  buffer	
  
before	
  it	
  is	
  processed?	
  
23	
  
Queuing	
  delay:	
  “pipe”	
  view
	
  
No	
  queuing	
  delay!	
  	
  
Queuing	
  delay:	
  “pipe”	
  view
	
  
Transient	
  Overload	
  
Not	
  a	
  rare	
  event!	
  
Queue
Queuing	
  delay:	
  “pipe”	
  view
	
  
Queue
Queuing	
  delay:	
  “pipe”	
  view
	
  
Queue
Queuing	
  delay:	
  “pipe”	
  view
	
  
Queue
Queuing	
  delay:	
  “pipe”	
  view
	
  
Queue
Queuing	
  delay:	
  “pipe”	
  view
	
  
Queue
Queuing	
  delay:	
  “pipe”	
  view
	
  
Queues	
  absorb	
  transient	
  bursts	
  but	
  introduce	
  queuing	
  delay	
  
What	
  about	
  persistent	
  overload?	
  
Will	
  eventually	
  drop	
  packets	
  (“loss”)	
  
Queuing	
  delay:	
  “pipe”	
  view
	
  
Computer	
  Networks,	
  Fall	
  2013	
  
Queuing	
  delay	
  
‣ If	
  arrival	
  rate	
  >	
  departure	
  rate	
  
-­‐ approaches	
  infinity	
  (assuming	
  an	
  infinite	
  buffer)	
  
	
  
33	
  
Computer	
  Networks,	
  Fall	
  2013	
  
34	
  
arrival	
  rate	
  /departure	
  rate	
   1	
  
Average	
  
q
ueuing	
  
d
elay	
  
Computer	
  Networks,	
  Fall	
  2013	
  
Queuing	
  delay	
  
‣ If	
  arrival	
  rate	
  >	
  departure	
  rate	
  
-­‐ approaches	
  infinity	
  (assuming	
  an	
  infinite	
  buffer)	
  
-­‐ in	
  prac1ce,	
  finite	
  buffer	
  à	
  loss	
  	
  
‣ If	
  arrival	
  rate	
  <	
  departure	
  rate	
  	
  
35	
  
e.g.,	
  arrival	
  rate	
  <	
  departure	
  rate	
  	
  
Queue
Computer	
  Networks,	
  Fall	
  2013	
  
Queuing	
  delay	
  
‣ If	
  arrival	
  rate	
  >	
  departure	
  rate	
  
-­‐ approaches	
  infinity	
  (assuming	
  an	
  infinite	
  buffer)	
  
-­‐ in	
  prac1ce,	
  finite	
  buffer	
  à	
  loss	
  	
  
‣ If	
  arrival	
  rate	
  <	
  departure	
  rate	
  	
  
-­‐ depends	
  on	
  burst	
  size	
  
37	
  
Queuing	
  Delay
	
  
l How	
  long	
  does	
  a	
  packet	
  have	
  to	
  sit	
  in	
  a	
  buffer	
  
before	
  it	
  is	
  processed?	
  
	
  
l Depends	
  on	
  traffic	
  paCern	
  
Queuing	
  Delay
	
  
l How	
  long	
  does	
  a	
  packet	
  have	
  to	
  sit	
  in	
  a	
  buffer	
  
before	
  it	
  is	
  processed?	
  
	
  
l Depends	
  on	
  traffic	
  paCern	
  
l Characterized	
  with	
  staLsLcal	
  measures	
  
l average	
  queuing	
  delay	
  
l average	
  arrival	
  rate	
  
l average	
  departure	
  rate	
  
	
  
Basic	
  Queuing	
  Theory	
  Terminology
	
  
l Arrival	
  process:	
  how	
  packets	
  arrive	
  
l Average	
  rate	
  A	
  
	
  
l W:	
  average	
  Lme	
  packets	
  wait	
  in	
  the	
  queue	
  
l W	
  for	
  “waiLng	
  Lme”	
  
l L:	
  average	
  number	
  of	
  packets	
  waiLng	
  in	
  the	
  queue	
  
l L	
  for	
  “length	
  of	
  queue”	
  
LiCle’s	
  Law	
  (1961)
	
  
	
  L	
  =	
  A	
  x	
  W	
  
l Compute	
  L:	
  count	
  packets	
  in	
  queue	
  every	
  second	
  
l How	
  ooen	
  does	
  a	
  single	
  packet	
  get	
  counted?	
  W	
  Lmes	
  
	
  
l Why	
  do	
  you	
  care?	
  
l Easy	
  to	
  compute	
  L,	
  harder	
  to	
  compute	
  W	
  
Computer	
  Networks,	
  Fall	
  2013	
  
4.	
  Processing	
  Delay	
  
‣ How	
  long	
  does	
  the	
  switch	
  take	
  to	
  process	
  a	
  	
  packet?	
  
42	
  
• typically	
  assume	
  this	
  is	
  negligible	
  	
  
Delay	
  
‣ Consists	
  of	
  four	
  components	
  
-­‐ transmission	
  delay	
  
-­‐ propaga1on	
  delay	
  
-­‐ queuing	
  delay	
  
-­‐ processing	
  delay	
  
due	
  to	
  link	
  proper1es	
  
due	
  to	
  traffic	
  mix	
  and	
  	
  
switch	
  internals	
  
transmission	
  
	
  
	
  
44	
  
End-­‐to-­‐end	
  delay	
  	
  
propagaLon	
  	
  
queuing	
  
processing	
  
transmission	
  
	
  
	
   propagaLon	
  	
  
queuing	
  
processing	
  
transmission	
  
	
  
	
   propagaLon	
  	
  
Loss	
  
‣ What	
  frac1on	
  of	
  the	
  packets	
  sent	
  to	
  a	
  
des1na1on	
  are	
  dropped?	
  
Throughput	
  
‣ At	
  what	
  rate	
  is	
  the	
  des1na1on	
  receiving	
  
data	
  from	
  the	
  source	
  
-­‐ Data	
  size	
  /	
  transfer	
  Lme	
  
F/R	
  	
  +	
  propagaLon	
  delay	
  
47	
  
transmission	
  rate	
  R	
  bits/sec	
  
Average	
  throughput	
  =	
  	
  
Transfer	
  Lme	
  =	
  
file	
  of	
  size	
  F	
  bits	
  
R	
  
packets	
  of	
  size	
  L	
  bits	
  
48	
  
transmission	
  rate	
  R’	
  >	
  R	
  
transmission	
  rate	
  R	
  
file	
  of	
  size	
  F	
  bits	
  
packets	
  of	
  size	
  L	
  bits	
  
F/R	
  +	
  propagaLon	
  delay	
  +	
   L/R’	
  
49	
  
bo@leneck	
  link	
  
min	
  {	
  R,	
  R’	
  }	
  =	
  R	
  
transmission	
  rate	
  R’	
  >	
  R	
  
transmission	
  rate	
  R	
  
file	
  of	
  size	
  F	
  bits	
  
Average	
  throughput	
  =	
  	
  
Transfer	
  Lme	
  =	
  
packets	
  of	
  size	
  L	
  bits	
  
50	
  
bo@leneck	
  link	
  
min	
  {	
  R,	
  R’	
  }	
  =	
  R	
  
transmission	
  rate	
  R’	
  >	
  R	
  
transmission	
  rate	
  R	
  
file	
  of	
  size	
  F	
  bits	
  
Average	
  throughput	
  =	
  	
  
packets	
  of	
  size	
  L	
  bits	
  
51	
  
bo@leneck	
  link	
  
transmission	
  rate	
  R1	
   transmission	
  rate	
  R2	
  
52	
  
transmission	
  rate	
  R1	
   transmission	
  rate	
  R2	
  
bo@leneck	
  link	
  
Throughput	
  
‣ At	
  what	
  rate	
  is	
  the	
  desLnaLon	
  receiving	
  
data	
  from	
  the	
  source?	
  
‣ Later	
  in	
  the	
  semester	
  
-­‐ TCP	
  throughput,	
  applica1on-­‐level	
  throughput,	
  etc.	
  
-­‐ throughput	
  vs.	
  “goodput”	
  	
  
53	
  
‣ What	
  physical	
  infrastructure	
  is	
  already	
  
available?	
  
	
  
‣ 	
  Reserve	
  or	
  on-­‐demand?	
  
‣ Where’s	
  my	
  delay	
  coming	
  from?	
  
54	
  

Más contenido relacionado

Destacado

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Destacado (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

lec3a-public.pdf

  • 1. Basic  Concepts  (part  2):   packet  delays  and  layering CS168,  Fall  2014   Sylvia  Ratnasamy   hCp://inst.eecs.berkeley.edu/~cs168/fa14/  
  • 2. Administrivia   ‣ Discussion  secLons  start  Monday,  Sep  15   ‣ Homework#1  out  tonight   -­‐ announce  homework  logis1cs     2  
  • 3. Plan  of  aCack   ‣ What  is  a  network  made  of?   ‣ How  is  it  shared?   ‣ How  do  we  evaluate  a  network?   ‣ How  is  communicaLon  organized?   3  
  • 4. 4   end-­‐system   switch   link   Internet  Service  Provider  
  • 6. 6   home  PC   switch   DSL  modem   DSLAM   central   office   phone  line   telephone   telephone   network   ...  
  • 7. Two  approaches  to  sharing   ‣ ReservaLons  à  circuit  switching   ‣ On  demand  à  packet  switching     7  
  • 8. Circuit  vs.  Packets   ‣ Circuits   -­‐ predictable  performance     -­‐ inefficient  use  of  network  resources   -­‐ complex  (state  in  the  network)     ‣ Packets   -­‐ unpredictable  performance     -­‐ efficient  use  of  network  resources   -­‐ simple  (no  state  in  the  network)  
  • 9. ‣ What  physical  infrastructure  is  already   available?     ‣  Reserve  or  on-­‐demand?   9  
  • 10. Today   ‣ What  is  a  network  made  of?   ‣ How  is  it  shared?   ‣ How  do  we  evaluate  a  network?   ‣ How  is  communicaLon  organized?   10  
  • 11. Performance  Metrics   ‣ Delay   ‣ Loss     ‣ Throughput        
  • 12. Delay   ‣ How  long  does  it  take  to  send  a  packet   from  its  source  to  des1na1on?      
  • 13. Delay   ‣ Consists  of  four  components   -­‐ transmission  delay   -­‐ propaga1on  delay   -­‐ queuing  delay   -­‐ processing  delay   due  to  link  proper1es   due  to  traffic  mix  and     switch  internals  
  • 14. A  network  link   l Link  bandwidth       l number  of  bits  sent/received  per  unit  Lme  (bits/sec  or  bps)   l PropagaLon  delay     l Lme  for  one  bit  to  move  through  the  link  (seconds)   l Bandwidth-­‐Delay  Product  (BDP)     l number  of  bits  “in  flight”  at  any  Lme   l BDP  =  bandwidth  ×  propagaLon  delay   bandwidth   PropagaLon  delay   delay  x  bandwidth  
  • 15. Examples   l Same  city  over  a  slow  link:     l bandwidth:  ~100Mbps   l propagaLon  delay:  ~0.1msec   l BDP:  10,000bits  (1.25KBytes)     l Cross-­‐country  over  fast  link:   l bandwidth:  ~10Gbps   l propagaLon  delay:  ~10msec   l BDP:  108bits  (12.5MBytes)  
  • 16. time=0 A B 100Byte packet Time 1Mbps, 1ms Time to transmit one bit = 1/106s Time to transmit 800 bits=800x1/106s Time when that bit reaches B = 1/106+1/103s The last bit reaches B at (800x1/106)+1/103s = 1.8ms Packet  Delay   Sending  100B  packets  from  A  to  B?  
  • 17. Packet  Delay   Sending  100B  packets  from  A  to  B?   A B 100Byte packet Time 1Mbps, 1ms 1Gbps, 1ms? The last bit reaches B at (800x1/106)+1/103s = 1.8ms 1GB file in 100B packets The last bit reaches B at (800x1/109)+1/103s = 1.0008ms The last bit in the file reaches B at (107x800x1/109)+1/103s = 8001ms 107 x 100B packets
  • 18. A B 100Byte packet Time 1Mbps, 10ms 100Byte packet 100Byte packet time à BW à pkt tx time Packet  Delay:  The  “pipe”  view   Sending  100B  packets  from  A  to  B?  
  • 19. Packet  Delay:  The  “pipe”  view   Sending  100B  packets  from  A  to  B?   1Mbps, 10ms (BDP=10,000) time à BW à 10Mbps, 1ms (BDP=10,000) time à BW à 1Mbps, 5ms (BDP=5,000) time à BW à
  • 20. Packet  Delay:  The  “pipe”  view   Sending  100B  packets  from  A  to  B?   1Mbps, 10ms (BDP=10,000) time à BW à 200B? 1Mbps, 10ms (BDP=10,000) time à BW à
  • 21. Computer  Networks,  Fall  2013   1.  Transmission  delay   ‣ How  long  does  it  take  to  push  all  the  bits           of  a  packet  into  a  link?   ‣ Packet  size  /  Link  bandwidth   -­‐ e.g.  1000  bits  /  100  Mbits  per  sec  =  10  -­‐5  sec   21  
  • 22. Computer  Networks,  Fall  2013   2.  PropagaLon  delay   ‣ How  long  does  it  take  to  move  one  bit                 from  one  end  of  a  link  to  the  other?   ‣ Link  length  /  Link  propagaLon  delay     -­‐ E.g.  30  kilometers  /  3  108  meters  per  sec  =  10-­‐4  sec   22  
  • 23. Computer  Networks,  Fall  2013   3.  Queuing  delay   ‣ How  long  does  a  packet  have  to  sit  in  a  buffer   before  it  is  processed?   23  
  • 25. No  queuing  delay!     Queuing  delay:  “pipe”  view  
  • 26. Transient  Overload   Not  a  rare  event!   Queue Queuing  delay:  “pipe”  view  
  • 31. Queue Queuing  delay:  “pipe”  view   Queues  absorb  transient  bursts  but  introduce  queuing  delay  
  • 32. What  about  persistent  overload?   Will  eventually  drop  packets  (“loss”)   Queuing  delay:  “pipe”  view  
  • 33. Computer  Networks,  Fall  2013   Queuing  delay   ‣ If  arrival  rate  >  departure  rate   -­‐ approaches  infinity  (assuming  an  infinite  buffer)     33  
  • 34. Computer  Networks,  Fall  2013   34   arrival  rate  /departure  rate   1   Average   q ueuing   d elay  
  • 35. Computer  Networks,  Fall  2013   Queuing  delay   ‣ If  arrival  rate  >  departure  rate   -­‐ approaches  infinity  (assuming  an  infinite  buffer)   -­‐ in  prac1ce,  finite  buffer  à  loss     ‣ If  arrival  rate  <  departure  rate     35  
  • 36. e.g.,  arrival  rate  <  departure  rate     Queue
  • 37. Computer  Networks,  Fall  2013   Queuing  delay   ‣ If  arrival  rate  >  departure  rate   -­‐ approaches  infinity  (assuming  an  infinite  buffer)   -­‐ in  prac1ce,  finite  buffer  à  loss     ‣ If  arrival  rate  <  departure  rate     -­‐ depends  on  burst  size   37  
  • 38. Queuing  Delay   l How  long  does  a  packet  have  to  sit  in  a  buffer   before  it  is  processed?     l Depends  on  traffic  paCern  
  • 39. Queuing  Delay   l How  long  does  a  packet  have  to  sit  in  a  buffer   before  it  is  processed?     l Depends  on  traffic  paCern   l Characterized  with  staLsLcal  measures   l average  queuing  delay   l average  arrival  rate   l average  departure  rate    
  • 40. Basic  Queuing  Theory  Terminology   l Arrival  process:  how  packets  arrive   l Average  rate  A     l W:  average  Lme  packets  wait  in  the  queue   l W  for  “waiLng  Lme”   l L:  average  number  of  packets  waiLng  in  the  queue   l L  for  “length  of  queue”  
  • 41. LiCle’s  Law  (1961)    L  =  A  x  W   l Compute  L:  count  packets  in  queue  every  second   l How  ooen  does  a  single  packet  get  counted?  W  Lmes     l Why  do  you  care?   l Easy  to  compute  L,  harder  to  compute  W  
  • 42. Computer  Networks,  Fall  2013   4.  Processing  Delay   ‣ How  long  does  the  switch  take  to  process  a    packet?   42   • typically  assume  this  is  negligible    
  • 43. Delay   ‣ Consists  of  four  components   -­‐ transmission  delay   -­‐ propaga1on  delay   -­‐ queuing  delay   -­‐ processing  delay   due  to  link  proper1es   due  to  traffic  mix  and     switch  internals  
  • 44. transmission       44   End-­‐to-­‐end  delay     propagaLon     queuing   processing   transmission       propagaLon     queuing   processing   transmission       propagaLon    
  • 45. Loss   ‣ What  frac1on  of  the  packets  sent  to  a   des1na1on  are  dropped?  
  • 46. Throughput   ‣ At  what  rate  is  the  des1na1on  receiving   data  from  the  source   -­‐ Data  size  /  transfer  Lme  
  • 47. F/R    +  propagaLon  delay   47   transmission  rate  R  bits/sec   Average  throughput  =     Transfer  Lme  =   file  of  size  F  bits   R   packets  of  size  L  bits  
  • 48. 48   transmission  rate  R’  >  R   transmission  rate  R   file  of  size  F  bits   packets  of  size  L  bits  
  • 49. F/R  +  propagaLon  delay  +   L/R’   49   bo@leneck  link   min  {  R,  R’  }  =  R   transmission  rate  R’  >  R   transmission  rate  R   file  of  size  F  bits   Average  throughput  =     Transfer  Lme  =   packets  of  size  L  bits  
  • 50. 50   bo@leneck  link   min  {  R,  R’  }  =  R   transmission  rate  R’  >  R   transmission  rate  R   file  of  size  F  bits   Average  throughput  =     packets  of  size  L  bits  
  • 51. 51   bo@leneck  link   transmission  rate  R1   transmission  rate  R2  
  • 52. 52   transmission  rate  R1   transmission  rate  R2   bo@leneck  link  
  • 53. Throughput   ‣ At  what  rate  is  the  desLnaLon  receiving   data  from  the  source?   ‣ Later  in  the  semester   -­‐ TCP  throughput,  applica1on-­‐level  throughput,  etc.   -­‐ throughput  vs.  “goodput”     53  
  • 54. ‣ What  physical  infrastructure  is  already   available?     ‣  Reserve  or  on-­‐demand?   ‣ Where’s  my  delay  coming  from?   54