57
Chapter 1 Computer Networks and the Internet

Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Chapter 1

Computer Networks and the Internet

Page 2: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Internet traffic

Page 3: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Introduction 1-3

What’s the Internet? (hardware)

millions of connected

computing devices:

hosts = end systems

running network

apps Home network

Institutional network

Mobile network

Global ISP

Regional ISP

router

PC

server

wireless laptop

cellular handheld

wired links

access points

communication links

fiber, copper, radio, satellite

transmission rate = bandwidth

routers: forward packets (chunks of data)

Page 4: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Internet appliances

Page 5: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Your work

Find me very interesting an Internet

appliance

Present me with picture and description

If your friends buy it, you get a point

You can invent a new one also whether it is not for real

Page 6: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

What’s the Internet? (software)

communication infrastructure enables distributed

applications:

Web, VoIP, email, games, e-commerce, file

sharing

communication services provided to apps:

reliable data delivery from source to destination

“best effort” (unreliable) data delivery

Page 7: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Too many types of computing devices!

How to make networks which allow different

devices to communicate?

Analogous to human languages

Need speak the same language

Page 8: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Network protocol

Q: Other human protocols?

Hi

Hi

Got the time?

2:00

TCP connection request

TCP connection response

<file>

time

Page 9: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Who make network protocols?

Internet Engineering Task Force (IETF)

Internet standards

Request for Comments (RFCs)

Page 10: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Introduction 1-10

A closer look at network structure:

Network edge: applications and hosts

Access networks, physical media: wired, wireless communication links

Network core: interconnected routers

network of networks

Page 11: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Introduction 1-11

The network edge:

End systems (hosts): run application programs

e.g. Web, email

at “edge of network”

client/server

peer-peer

Client/server model client host requests, receives

service from always-on server

e.g. Web browser/server; email client/server

Peer-to-Peer model: minimal (or no) use of

dedicated servers

e.g. Skype, BitTorrent

Page 12: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Introduction 1-12

Access networks

Home network

Institutional network

Mobile network

Global ISP

Regional ISP

Three categories:

Residential access

Company access

Wireless access Help me identify them

Page 13: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Physical media

Guided media:

signals propagate in solid media: copper, fiber, coax

Unguided media:

signals propagate freely, e.g., radio

Page 14: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Twisted-pair copper wire (crosstalk reduced) Unshielded twisted pair (UTP)

Shield twisted pair (STP)

Guided media

Page 15: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Coaxial cable Guided media

Page 16: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Fiber optics

Guided media

Page 17: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Radio links

Microwave

WiFi

3G

Satellite

Unguided media

Page 18: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Network core (review slide 10)

The fundamental question: how is data transferred

through net?

circuit switching: dedicated circuit per call:

telephone net

packet-switching: data sent thru net in discrete

“chunks”

Page 19: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

19

Circuit switching (telephone system)

Page 20: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Packet switching (store-and-forward)

Page 21: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Introduction 1-21

Packet-switching: store-and-forward

takes L/R seconds to transmit (push out) packet of L bits on to link at R bps

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

delay = 3L/R (assuming zero propagation delay)

Example:

L = 7.5 Mbits

R = 1.5 Mbps

transmission delay = 15 sec

R R R

L

Page 22: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Introduction 1-22

Packet switching versus Circuit switching

1 Mb/s link

each user:

100 kb/s when “active”

circuit-switching:

10 users

packet switching:

>> 10 users

Packet switching allows more users to use network!

N users

1 Mbps link

Page 23: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Packet switching versus Circuit switching Packet

Shared resources

No call setup

Long delay when traffic

is high

N users supported

Low cost

Circuit

Reserved resources

Call setup needed

Delay is known

s

< N users supported

High cost

Page 24: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

1-24

How do loss and delay occur?

packets queue in router buffers

packet arrival rate to link 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

Page 25: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Introduction 1-25

Four sources of packet delay

1. nodal processing:

check bit errors

determine output link

A

B

propagation

transmission

nodal processing queueing

2. Queuing:

time waiting at output link for transmission

depends on congestion level of router

Page 26: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Introduction 1-26

Delay in packet-switched networks

3. Transmission delay:

R=link bandwidth (bps)

L=packet length (bits)

time to send bits into

link = L/R

4. Propagation delay:

d = length of physical link

s = propagation speed in

medium (~2x108 m/sec)

propagation delay = d/s

A

B

propagation

transmission

nodal processing queueing

Note: s and R are very different quantities!

Page 27: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Introduction 1-27

Caravan analogy

cars “propagate” at

100 km/hr

toll booth takes 12 sec to

service car (transmission

time)

car~bit; caravan ~ packet

Q: How long until caravan

is lined up before 2nd toll

booth?

Time to “push” entire

caravan through toll booth

onto highway = 12*10 =

120 sec

Time for last car to

propagate from 1st to 2nd

toll both:

100km/(100km/hr)= 1 hr

A: 62 minutes

toll booth

toll booth

ten-car caravan

100 km 100 km

Page 28: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Introduction 1-28

Caravan analogy (more)

Cars now “propagate” at

1000 km/hr

Toll booth now takes 1

min to service a car

Q: Will cars arrive to 2nd

booth before all cars

serviced at 1st booth?

Yes! After 7 min, 1st car at

2nd booth and 3 cars still at

1st booth.

1st bit of packet can arrive

at 2nd router before packet

is fully transmitted at 1st

router!

See Ethernet applet at AWL

Web site

toll booth

toll booth

ten-car caravan

100 km 100 km

Page 29: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Introduction 1-29

Nodal delay

dproc = processing delay

typically a few microsecs or less

dqueue = queuing delay

depends on congestion

dtrans = transmission delay

= L/R, significant for low-speed links

dprop = propagation delay

a few microsecs to hundreds of msecs

proptransqueueprocnodal ddddd

Page 30: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Introduction 1-30

Queueing delay (revisited)

R=link bandwidth (bps)

L=packet length (bits)

a=average packet

arrival rate

traffic intensity = La/R

La/R ~ 0: average queueing delay small

La/R -> 1: delays become large

La/R > 1: more “work” arriving than can be serviced, average delay infinite!

Page 31: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Experiment delay

Traceroute (XP)

Tracert (Linux)

Provide delay measurement from source

to router along end-end Internet path towards destination.

Page 32: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

1-32

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 to full buffer is lost

buffer (waiting area)

See applet examples

Page 33: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

1-33

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, with file of F bits

to send to client

link capacity Rs bits/sec

link capacity Rc bits/sec

pipe that can carry fluid at rate Rs bits/sec)

pipe that can carry fluid at rate Rc bits/sec)

server sends bits (fluid) into pipe

Page 34: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

1-34

Throughput (more)

Rs < Rc What is average end-end throughput?

Rs bits/sec Rc bits/sec

Rs > Rc What is average end-end throughput?

Rs bits/sec Rc bits/sec

link on end-end path that constrains end-end throughput

bottleneck link

Page 35: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

1-35

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

Rs is often

bottleneck

Page 36: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Layered architecture

Layered architecture is our day life

Why layer?

Things are too complex

Computer networking is too complex

Page 37: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Sending a mail

Encapsulation

Decapsulation

Page 38: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

In-class assignment

Please spend a few minutes to find other

example of a layered system

Show me to get a point

Page 39: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

ISO issues OSI (7-layer architecture)

The International Standards Organization

(ISO)

Open Systems Interconnection (OSI) model

Page 40: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Seven layers of the OSI model

Page 41: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

The interaction between layers in the OSI model

Page 42: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

An exchange using the OSI model

Page 43: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Physical layer

The physical layer is responsible for

movements of individual bits from one hop

(node) to the next

Page 44: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Data link layer

The data link layer is responsible for

moving frames from one hop (node) to the

next

Page 45: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Hop by hop delivery

Page 46: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Network layer

The network layer is responsible for the

delivery of individual packets from the

source host to the destination host

Page 47: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Source to destination delivery

Page 48: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Transport layer

The transport layer is responsible for the

delivery of a message from one process to

another

Page 49: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Reliable process-to-process delivery of a message

Page 50: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Session layer

The session layer is responsible for dialog

control and synchronization

Page 51: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Presentation layer

The presentation layer is responsible for translation, compression, and encryption

Page 52: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Presentation layer

The application layer is responsible for providing services to the user

Page 53: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Summery

Page 54: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Introduction 1-54

Internet protocol stack

application: supporting network

applications

FTP, SMTP, HTTP

transport: process-process data

transfer

TCP, UDP

network: routing of datagrams from

source to destination

IP, routing protocols

link: data transfer between

neighboring network elements

PPP, Ethernet

physical: bits “on the wire”

application

transport

network

link

physical

Page 55: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Internet protocol stack and OSI

Page 56: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Homework Assignment

Chapter 1 problems:

P2

P4

P5

P6

P9

P12

P13

Page 57: Computer Networks and the Internettulip.bu.ac.th/~thirapon.w/gim/ICN_files/ch1.pdf · 2012-11-09 · Delay in packet-switched networks 3. Transmission delay: R=link bandwidth (bps)

Discussion Questions

Make a group of two persons and choose

one question from the list below

D1

D7

D11