chapter 1 introduction - university of nevada, reno

54
Introduction 1-1 Chapter 1 Introduction Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these ppt slides: Were making these slides freely available to all (faculty, students, readers). Theyre in PowerPoint form so you see the animations; and can add, modify, and delete slides (including this one) and slide content to suit your needs. They obviously represent a lot of work on our part. In return for use, we only ask the following: If you use these slides (e.g., in a class) that you mention their source (after all, wed like people to use our book!) If you post any slides on a www site, that you note that they are adapted from (or perhaps identical to) our slides, and note our copyright of this material. Thanks and enjoy! JFK/KWR All material copyright 1996-2012 J.F Kurose and K.W. Ross, All Rights Reserved

Upload: others

Post on 08-Nov-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 1 Introduction - University of Nevada, Reno

Introduction 1-1

Chapter 1Introduction

Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith RossAddison-WesleyMarch 2012

A note on the use of these ppt slides:We’re making these slides freely available to all (faculty, students, readers). They’re in PowerPoint form so you see the animations; and can add, modify, and delete slides (including this one) and slide content to suit your needs. They obviously represent a lot of work on our part. In return for use, we only ask the following: If you use these slides (e.g., in a class) that you mention their source

(after all, we’d like people to use our book!) If you post any slides on a www site, that you note that they are adapted

from (or perhaps identical to) our slides, and note our copyright of this material.

Thanks and enjoy! JFK/KWR

All material copyright 1996-2012J.F Kurose and K.W. Ross, All Rights Reserved

Page 2: Chapter 1 Introduction - University of Nevada, Reno

Introduction 1-2

Lecture 2

University of Nevada – RenoComputer Science & Engineering Department

Fall 2015

CPE 400 / 600Computer Communication Networks

Prof. Shamik SenguptaOffice SEM 204

[email protected]://www.cse.unr.edu/~shamik/

Page 3: Chapter 1 Introduction - University of Nevada, Reno

Chapter 1: Computer Networks and the Internet

Page 4: Chapter 1 Introduction - University of Nevada, Reno

What is computer network: “nuts and bolts” view

1. Numerous connected computing devices: hosts = end systems running network apps

Home network

Institutional network

Mobile networkGlobal ISP

Regional ISP

router

PC

server

wirelesslaptopcellular handheld

wiredlinks

access points

2. communication links fiber, copper,

radio, satellite transmission rate

= bandwidth3. routers: forward

packets (chunks of data)

1-4

Page 5: Chapter 1 Introduction - University of Nevada, Reno

Categorization of Computer Networks

• Business Networks• Home Networks • Mobile Networks

1-5

Page 6: Chapter 1 Introduction - University of Nevada, Reno

Example Network Applications (1)

A network with two clients and one server(typical client-server connection)

1-6

Page 7: Chapter 1 Introduction - University of Nevada, Reno

Example Network Applications (2)

The client-server model involves requests and replies over the public/private network

Page 8: Chapter 1 Introduction - University of Nevada, Reno

Example Network Applications (3)

Peer-to-peer networking: no fixed clients and servers

Page 9: Chapter 1 Introduction - University of Nevada, Reno

6-9

Example wireless network (4)

network infrastructure

wireless hosts laptop, PDA, IP phone run applications may be stationary (non-

mobile) or mobile wireless does not always

mean mobility

Page 10: Chapter 1 Introduction - University of Nevada, Reno

Categorization of networks by coverage scale

• Personal area networks (PAN)• Local area networks (LAN)• Metropolitan area networks (MAN)• Wide are networks (WAN)• The Internet (Global network)

1-10

Page 11: Chapter 1 Introduction - University of Nevada, Reno

Personal Area Network (PAN)

Bluetooth PAN configuration

Page 12: Chapter 1 Introduction - University of Nevada, Reno

Local Area Networks (LAN)

Wireless and wired LANs. (a) 802.11. (b) Switched Ethernet.

Page 13: Chapter 1 Introduction - University of Nevada, Reno

Metropolitan Area Networks (MAN)

A metropolitan area network

Page 14: Chapter 1 Introduction - University of Nevada, Reno

Wide Area Networks (WAN)

WAN that connects three branch offices in Australia

Page 15: Chapter 1 Introduction - University of Nevada, Reno

Coverage scale (contd.)

Classification of interconnected processors by scale

Page 16: Chapter 1 Introduction - University of Nevada, Reno

A different categorization of networks

In terms of communication technology

• Unicasting• Broadcasting• Multicasting

Page 17: Chapter 1 Introduction - University of Nevada, Reno

What is computer networking: an operational view

Any communication is all about protocol

networking protocol

Hi

HiGot thetime?2:00

Connection req.

Connectionreply.

Get http://www.cnn.com/slide.ppt

<file>time

human protocol

1-17

Page 18: Chapter 1 Introduction - University of Nevada, Reno

human protocols:

… specific msgs sent… specific actions taken

when msgs received, or other events

network protocols: machines rather than

humans all communication activity

governed by protocols

protocols define format, order of msgs sent and received among network

entities, and actions taken on msg

transmission, receipt

What is computer networking: an operational view

1-18

Page 19: Chapter 1 Introduction - University of Nevada, Reno

1-19

Protocol “Layers”Networks are complex! It is not just two machines communicating!

Millions of components: hosts routers Access networks Physical links

Numerous functionalities

Question:How to manage such vast

amount of components?

Soln: Divide functionalities among multiple layers.

Page 20: Chapter 1 Introduction - University of Nevada, Reno

1-20

ticket (purchase)

baggage (check)

gates (load)

runway (takeoff)

airplane routing

departureairport

arrivalairport

intermediate air-trafficcontrol centers

airplane routing airplane routing

ticket (complain)

baggage (claim

gates (unload)

runway (land)

airplane routing

ticket

baggage

gate

takeoff/landing

airplane routing

Layering of airline functionality

Layers: each layer implements a service via its own internal-layer actions relying on services provided by layer below and above

Another example: Postal Service!

Page 21: Chapter 1 Introduction - University of Nevada, Reno

What are the adv. of layering?Network is a huge complex system.

Reduce the design complexity Ease of updating the system change of implementation of layer’s service transparent to

rest of system e.g., Postal service (overnight flight or overnight ground)

Page 22: Chapter 1 Introduction - University of Nevada, Reno

1-22

Internet protocol stack

application

transport

network

link

physical

application support host/network applications Email, FTP, HTTP (HTML)

transport process-process data transfer TCP, UDP

network routing of datagrams from src. to destn. IP address, routing protocols

link data transfer between neighboring network elements Ethernet

physical bits “on the wire”

(Compare with the Postal System!)

Page 23: Chapter 1 Introduction - University of Nevada, Reno

The TCP/IP Reference Model

1-23

Page 24: Chapter 1 Introduction - University of Nevada, Reno

Introduction

ISO/OSI reference model

presentation: allow applications to interpret meaning of data, e.g., encryption, compression, machine-specific conventions

session: synchronization, checkpointing, recovery of data exchange

application

presentation

session

transport

network

link

physical

1-24

Page 25: Chapter 1 Introduction - University of Nevada, Reno

1-25

sourceapplicationtransportnetwork

linkphysical

HtHn M

segment Htdatagram

destinationapplicationtransportnetwork

linkphysical

HtHnHl MHtHn MHt M

M

networklink

physical

linkphysical

HtHnHl MHtHn M

HtHn M

HtHnHl M

router

switch

Messages, Segments, Datagrams and Frames

message M

Ht M

Hnframe

Encapsulation

message

Page 26: Chapter 1 Introduction - University of Nevada, Reno

Introduction

Network core packet switching, circuit switching,

Network structure

1-26

Page 27: Chapter 1 Introduction - University of Nevada, Reno

Introduction

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

The network core

1-27

Page 28: Chapter 1 Introduction - University of Nevada, Reno

Introduction

Packet-switching: store-and-forward

takes L/R seconds to transmit (push out) L-bit packet into link at R bps

store and forward: entire packet must arrive at router before it can be transmitted on next link

one-hop numerical example: L = 7.5 Mbits R = 1.5 Mbps one-hop transmission

delay = 5 sec

more on delay shortly …1-28

sourceR bps destination

123

L bitsper packet

R bps

end-end delay = 2L/R(assuming zero propagation delay)

Page 29: Chapter 1 Introduction - University of Nevada, Reno

Introduction

Packet Switching: queueing delay, loss

A

B

CR = 100 Mb/s

R = 1.5 Mb/s D

Equeue of packetswaiting for output link

1-29

queuing and loss: If arrival rate (in bits) to link exceeds transmission rate of

link for a period of time: packets will queue, wait to be transmitted on link packets can be dropped (lost) if memory (buffer) fills up

Page 30: Chapter 1 Introduction - University of Nevada, Reno

Introduction

Alternative core: circuit switchingend-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 networks1-30

Page 31: Chapter 1 Introduction - University of Nevada, Reno

Introduction

Circuit switching: FDM versus TDM

FDM

frequency

timeTDM

frequency

time

4 usersExample:

1-31

Page 32: Chapter 1 Introduction - University of Nevada, Reno

Introduction

Packet switching versus circuit switching

example: 1 Mb/s link each user:

• 100 kb/s when “active”

• active 10% of time

circuit-switching: 10 users

packet switching allows more users to use network!

Nusers

1 Mbps link

1-32

Page 33: Chapter 1 Introduction - University of Nevada, Reno

Introduction

great for bursty data resource sharing simpler, no call setup

excessive congestion possible: packet delay and loss protocols needed for reliable data transfer, congestion

control Q: How to provide circuit-like behavior? bandwidth guarantees needed for audio/video apps still an unsolved problem (will discuss about this more

later…)

is packet switching a “clear winner?”

Packet switching versus circuit switching

1-33

Page 34: Chapter 1 Introduction - University of Nevada, Reno

Internet structure: network of networks

End systems connect to Internet via access ISPs (Internet Service Providers) Residential, company and university ISPs

Access ISPs in turn must be interconnected. So that any two hosts can send packets to each other

Resulting network of networks is very complex Evolution was driven by economics and national policies

Let’s take a stepwise approach to describe current Internet structure

Page 35: Chapter 1 Introduction - University of Nevada, Reno

Internet structure: network of networks

Question: given millions of access ISPs, how to connect them together?

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnetaccess

net

accessnet

Page 36: Chapter 1 Introduction - University of Nevada, Reno

Internet structure: network of networks

Option: connect each access ISP to every other access ISP?

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnetaccess

net

accessnet

connecting each access ISP to each other directly doesn’t

scale: O(N2) connections.

Page 37: Chapter 1 Introduction - University of Nevada, Reno

Internet structure: network of networks

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnetaccess

net

accessnet

Option: connect each access ISP to a global transit ISP? Customerand provider ISPs have economic agreement.

globalISP

Page 38: Chapter 1 Introduction - University of Nevada, Reno

Internet structure: network of networks

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnetaccess

net

accessnet

But if one global ISP is viable business, there will be competitors ….

ISP B

ISP A

ISP C

Page 39: Chapter 1 Introduction - University of Nevada, Reno

Internet structure: network of networks

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnetaccess

net

accessnet

But if one global ISP is viable business, there will be competitors …. which must be interconnected

ISP B

ISP A

ISP C

IXP

IXP

peering link

Internet exchange point

Page 40: Chapter 1 Introduction - University of Nevada, Reno

Internet structure: network of networks

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnet

accessnetaccess

net

accessnet

… and regional networks may arise to connect access nets to ISPS

ISP B

ISP A

ISP C

IXP

IXP

regional net

Page 41: Chapter 1 Introduction - University of Nevada, Reno

1-41

Internet structure: network of networks

roughly hierarchical at center: “tier-1” ISPs (e.g., Verizon, Sprint, AT&T, Cable and

Wireless), national/international coverage treat each other as equals

Tier 1 ISP

Tier 1 ISP

Tier 1 ISP

Page 42: Chapter 1 Introduction - University of Nevada, Reno

1-42

Tier-1 ISP: e.g., Sprint

Page 43: Chapter 1 Introduction - University of Nevada, Reno

1-43

Internet structure: network of networks

“Tier-2” ISPs: smaller (often regional) ISPs Connect to one or more tier-1 ISPs, possibly other tier-2 ISPs

Tier 1 ISP

Tier 1 ISP

Tier 1 ISP

Tier-2 ISPTier-2 ISP

Tier-2 ISP Tier-2 ISPTier-2 ISP

Tier-2 ISP pays tier-1 ISP for connectivity to rest of Internet tier-2 ISP is customer oftier-1 provider

Tier-2 ISPs also peer privately with each other.

Page 44: Chapter 1 Introduction - University of Nevada, Reno

1-44

Internet structure: network of networks

“Tier-3” ISPs and local ISPs last hop (“access”) network (closest to end systems)

Tier 1 ISP

Tier 1 ISP

Tier 1 ISP

Tier-2 ISPTier-2 ISP

Tier-2 ISP Tier-2 ISPTier-2 ISP

localISPlocal

ISPlocalISP

localISP

localISP Tier 3

ISP

localISP

localISP

localISP

Local and tier-3 ISPs are customers ofhigher tier ISPsconnecting them to rest of Internet

Page 45: Chapter 1 Introduction - University of Nevada, Reno

1-45

Internet structure: network of networks

a packet passes through many networks!

Tier 1 ISP

Tier 1 ISP

Tier 1 ISP

Tier-2 ISPTier-2 ISP

Tier-2 ISP Tier-2 ISPTier-2 ISP

localISPlocal

ISPlocalISP

localISP

localISP Tier 3

ISP

localISP

localISP

localISP

Page 46: Chapter 1 Introduction - University of Nevada, Reno

Introduction

Delay, loss, throughput in networks

1-46

Page 47: Chapter 1 Introduction - University of Nevada, Reno

Introduction

How do loss and delay occur?

packets queue in router buffers packet arrival rate to link (temporarily) exceeds output link

capacity packets queue, wait for turn

A

B

packet being transmitted (delay)

packets queueing (delay)

free (available) buffers: arriving packets dropped (loss) if no free buffers

1-47

Page 48: Chapter 1 Introduction - University of Nevada, Reno

Introduction

Four sources of packet delay

dproc: nodal processing check bit errors determine output link typically < msec

A

B

propagation

transmission

nodalprocessing queueing

dqueue: queueing delay time waiting at output link

for transmission depends on congestion

level of router

dnodal = dproc + dqueue + dtrans + dprop

1-48

Page 49: Chapter 1 Introduction - University of Nevada, Reno

Introduction

dtrans: transmission delay: L: packet length (bits) R: link bandwidth (bps) dtrans = L/R

dprop: propagation delay: d: length of physical link s: propagation speed in medium

(~2x108 m/sec) dprop = d/sdtrans and dprop

very different

Four sources of packet delay

propagation

nodalprocessing queueing

dnodal = dproc + dqueue + dtrans + dprop

1-49

A

B

transmission

Page 50: Chapter 1 Introduction - University of Nevada, Reno

Introduction

Packet loss queue (aka buffer) preceding link in buffer has finite

capacity packet arriving to full queue dropped (aka lost) lost packet may be retransmitted by previous node,

by source end system, or not at all

A

B

packet being transmitted

packet arriving tofull buffer is lost

buffer (waiting area)

1-50

Page 51: Chapter 1 Introduction - University of Nevada, Reno

Introduction

Throughput

throughput: rate (bits/time unit) at which bits transferred between sender/receiver instantaneous: rate at given point in time average: rate over longer period of time

server, withfile of F bits

to send to client

link capacityRs bits/sec

link capacityRc bits/sec

server sends bits (fluid) into pipe

pipe that can carryfluid at rateRs bits/sec)

pipe that can carryfluid at rateRc bits/sec)

1-51

Page 52: Chapter 1 Introduction - University of Nevada, Reno

Introduction

Throughput: Internet scenario

10 connections (fairly) share backbone bottleneck link R bits/sec

Rs

Rs

Rs

Rc

Rc

Rc

R

per-connection end-end throughput: min(Rc,Rs,R/10)

in practice: Rc or Rsis often bottleneck

1-52

Page 53: Chapter 1 Introduction - University of Nevada, Reno

Metric Units (1)

The principal metric prefixes1-53

Page 54: Chapter 1 Introduction - University of Nevada, Reno

Metric Units (2)

The principal metric prefixes1-54