part i: introduction - inet.tu-berlin.de · delay in packet-switched networks packets experience...

42
1 Part 1: Introduction Goal: Review of how the Internet works Overview Get context Get overview, “feel” of the Internet Application layer protocols and addressing Network layer / Routing Link layer / Example

Upload: others

Post on 09-Oct-2019

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

1

Part 1: Introduction

Goal:

Review of how the Internet works

Overview

Get context

Get overview, “feel” of the Internet

Application layer protocols and addressing

Network layer / Routing

Link layer / Example

Page 2: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

2

What’s the Internet: “Nuts and bolts” view

Millions of connected computing devices: hosts, end-systems PC’s workstations, servers

PDA’s, phones, toasters

running network apps

Communication links Fiber, copper, radio, satellite

Routers: forward packets (chunks) of data through network

local ISP

company / access network

regional ISP

router workstation

server mobile

Page 3: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

3

Example access net: Home network

Typical home network components:

ADSL or cable modem

router/firewall

Ethernet

Wireless access points

wireless access point

wireless laptops

router/ firewall

cable modem

to/from cable

headend

Ethernet (switched)

Page 4: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

4

What’s the Internet: “Nuts and bolts” view

Protocols: control sending, receiving of messages

E.g., TCP, IP, HTTP, FTP, PPP

Internet: “network of networks”

Loosely hierarchical

Public Internet versus private intranet

Internet standards

RFC: Request for comments

IETF: Internet Engineering Task Force

local ISP

company network

regional ISP

router workstation

server mobile

Page 5: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

5

What’s the Internet: A service view

Communication infrastructure enables distributed applications:

WWW, email, games, e-commerce, database, voting,

More?

Communication services provided:

Connectionless

Connection-oriented

Cyberspace [Gibson]: “a consensual hallucination

experienced daily by billions of operators, in every nation, ...."

Page 6: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

6

Principles of the Internet

Edge vs. core (end-systems vs. routers)

Dumb network

Intelligence at the end-systems

Different communication paradigms

Connection oriented vs. connection less

Packet vs. circuit switching

Layered system

Network of collaborating networks

Page 7: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

7

A closer look at network structure

Network edge: applications and hosts

Network core: Routers

Network of networks

Access networks, physical media: Communication links

Page 8: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

8

The network edge

End systems (hosts): Run application programs

E.g., WWW, email

At “edge of network”

Client/server model Client host requests, receives

service from server

E.g., WWW client (browser)/ server; email client/server

Peer-2-peer model: Host interaction symmetric

E.g.: File sharing

Page 9: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

9

Network edge: Connection-oriented service

Goal: data transfer between end systems

Handshake: setup (prepare for) data transfer ahead of time Hello, hello back human

protocol

Set up “state” in two communicating hosts

TCP – Transmission Control Protocol Internet’s connection-

oriented service

TCP service [RFC 793]

Reliable, in-order byte-stream data transfer

Loss: acknowledgements and retransmissions

Flow control: Sender won’t overwhelm

receiver

Congestion control: Senders “slow down sending

rate” when network congested

Page 10: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

10

Network edge: Connectionless service

Goal: Data transfer between end systems Same as before!

UDP – User Datagram Protocol [RFC 768]: Internet’s connectionless service

Unreliable data transfer

No flow control

No congestion control

Page 11: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

11

The network core

Mesh of interconnected routers

The fundamental question: How is data transferred through net?

Circuit switching: Dedicated circuit per call: telephone net

Packet switching: Data sent through net in discrete “chunks”

Page 12: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

12

Network core: Circuit switching

End-end resources reserved for “call”

Link bandwidth, switch capacity

Dedicated resources: no sharing

Circuit-like (guaranteed) performance

Call setup required

Page 13: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

13

Network core: Packet switching

Each end-end data stream divided into packets

Users’ A, B packets share network resources

Each packet uses full link bandwidth

Resources used as needed

Page 14: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

14

Network core: Packet switching

Packet-switching versus circuit switching: Human restaurant analogy

A

B

C 1 Gbs Ethernet

100 Mbs

45 Mbs

D E

statistical multiplexing

queue of packets waiting for output

link

Page 15: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

15

Network core: Packet switching

Resource contention:

Aggregate resource demand can exceed amount available

Congestion: Packets queue, wait for link use

Store and forward: Packets move one hop at a time

Transmit over link

Wait turn at next link

Page 16: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

16

Delay in packet-switched networks

Packets experience delay on end-to-end path

Four sources of delay at each hop

Nodal processing Check bit errors

Determine output link

Queueing Time waiting at output

link for transmission

Depends on congestion level at router

A

B

propagation

transmission

nodal processing queueing

Page 17: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

17

Delay in packet-switched networks

Transmission delay:

R=link bandwidth (bps)

L=packet length (bits)

Time to send bits into link = L/R

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 18: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

18

Queueing delay

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 19: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

19

Packet switching vs. circuit switching

Great for bursty data

Resource sharing

No call setup

Excessive congestion: Packet delay and loss

Protocols needed for reliable data transfer, congestion control

Key question: How to provide circuit-like behavior?

Bandwidth guarantees needed for audio/video apps

Is packet switching a “slam dunk winner?”

Page 20: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

20

Packet-switched networks: Routing

Goal: Move packets among routers from source to destination

Datagram network: Destination address determines next hop

Routes may change during session

Analogy: Drive towards dst. and ask for directions

Virtual circuit network: Fixed path determined at call setup time, remains

fixed through call

Each packet carries tag (virtual circuit ID); Tag determines next hop

Routers maintain per-call state

Analogy: Fixed driving instructions

Page 21: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

21

What’s a protocol?

Human protocols:

“what’s the time?”

“I have a question”

… introductions

… specific msgs sent

… specific actions taken when msgs received, or other events

Network protocols:

machines rather than humans

all communication activity in Internet governed by protocols

Protocols define format, order of msgs sent and

received among network entities, and actions taken

on msg transmission, receipt

Page 22: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

22

Protocol “layers”

Networks are complex!

Many “pieces”:

Hosts

Routers

Links of various media

Applications

Protocols

Hardware, software

Question:

Is there any hope of organizing structure of

network?

Or at least in our discussion of networks?

Page 23: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

23

Why layering?

Dealing with complex systems:

Explicit structure allows identification, relationship of complex system’s pieces

Layered reference model for discussion

Modularization eases maintenance, updating of system

Change of implementation of layer’s service transparent to rest of system

E.g., change in gate procedure does not affect rest of system

Layering considered harmful?

Page 24: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

24

Protocol “Layers”

Networks are complex!

many “pieces”:

hosts

routers

links of various media

applications

protocols

hardware, software

Question:

Is there any hope of organizing structure of network?

Or at least our discussion of networks?

Page 25: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

25

Why layering?

Dealing with complex systems:

Explicit structure allows identification, relationship of complex system’s pieces

Layered reference model for discussion

Modularization eases maintenance, updating of system

Change of implementation of layer’s service transparent to rest of system

E.g., change in gate procedure doesn’t affect rest of system

Can layering be considered harmful?

Page 26: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

26

Internet protocol stack

Application: Supporting network applications

Transport: Host-host data transfer

Network: Uniform format of packets, routing of datagrams from source to destination

Link: Data transfer between neighboring network elements

Physical: Bits “on the wire”

application

transport

network

link

physical

Page 27: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

27

Layering: Logical communication

application transport network

link physical

application transport network

link physical

application transport network

link physical

application transport network

link physical

network link

physical

Each layer:

Distributed

“Entities” implement layer functions at each node

Entities perform actions, exchange messages with peers

Page 28: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

28

Layering: Logical communication

application transport network

link physical

application transport network

link physical

application transport network

link physical

application transport network

link physical

network link

physical

data

data

E.g., transport

Take data from application

Add addressing, reliability check info to form “datagram”

Send datagram to peer

Wait for peer to ack receipt

Analogy: post office

data

transport

transport

ack

Page 29: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

29

Layering: Physical communication

application transport network

link physical

application transport network

link physical

application transport network

link physical

application transport network

link physical

network link

physical

data

data

Page 30: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

30

Protocol layering and data

Each layer takes data from above

Adds header information to create new data unit

Passes new data unit to layer below

application transport network

link physical

application transport network

link physical

source destination

M

M

M

M

H t

H t H n

H t H n H l

M

M

M

M

H t

H t H n

H t H n H l

message

segment

datagram

frame

Page 31: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

31

TCP/IP protokol structure

Transport (Hosts)

Netzwerk

Link

Application (Prozesse)

IP

TCP UDP

Telnet FTP

DNS HTTP SMTP

FDDI ATM

Tokenring Ethernet

Page 32: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

32

What makes the Internet so sexy

Applications can be deployed by anybody that is connected to the Internet (Fundamentally different to the Telephone world)

Multi-service network: Everything over the Internet

• Every application protocol over IP

• IP over any network technology

Page 33: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

33

Internet structure: Network of networks

Roughly hierarchical

At center: “tier-1” ISPs (e.g., UUNet, BBN/Genuity, Sprint, AT&T), national/international coverage

Treat each other as equals

Tier 1 ISP

Tier 1 ISP

Tier 1 ISP

Tier-1 providers interconnect (peer) privately

NAP

Tier-1 providers also interconnect at public network access points (NAPs)

Page 34: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

34

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

NAP

Tier-2 ISP Tier-2 ISP

Tier-2 ISP Tier-2 ISP

Tier-2 ISP

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

Tier-2 ISPs also peer privately with each other, interconnect at NAP

Page 35: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

35

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

IXPs

Tier-2 ISP Tier-2 ISP

Tier-2 ISP Tier-2 ISP

Tier-2 ISP

local ISP

local ISP

local ISP

local ISP

local ISP Tier 3

ISP

local ISP

local ISP

local ISP

Local and tier- 3 ISPs are customers of higher tier ISPs connecting them to rest of Internet

Page 36: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

36

Example Tier-1 ISP: Sprint

Page 37: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

37

Internet structure: Network of networks

A packet passes through many networks!

Tier 1 ISP

Tier 1 ISP

Tier 1 ISP

IXP

Tier-2 ISP Tier-2 ISP

Tier-2 ISP Tier-2 ISP

Tier-2 ISP

local ISP

local ISP

local ISP

local ISP

local ISP Tier 3

ISP

local ISP

local ISP

local ISP

Try traceroute!

Page 38: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

38

Internet philosophy

Interconnect networks

Accross multiple different technologies

Requirements on these networks

Minimal assumption about network capabilities => some data should be transmitted from time to time

„Best Effort“ paradigma

High survivability

Mesh

Intermediate nodes do not maintain per host state

=> „End-to-end“ paradigma

Layering with simple application interface

Sockets

Page 39: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

39

Internet design philosophy

In order of importance:

Connect existing networks

Survivability

Support multiple types of service

Must accommodate a variety of networks

Allow distributed management

Allow host attachment with a low level of effort

Be cost effective

Allow resource accountability

Page 40: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

40

Internet terminology

internet Collection of packet switched networks interconnected

by routers running the IP/TCP protocols

The „Internet“ Public Internet (in contrast to Intranets)

End system == host attached to network

Router = gateway = intermediate system Routes packets between its attached networks

Firewall (device placed at network boundaries) Restricts packet flows to improve security

Page 41: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

41

Internet terminology (2.) Name

Identifies an object (e.g., an end system)

Address Identifies where an object is located (here IP address)

Name to address translation (and vice versa) Links names and addresses

• mail.zrz.TU-Berlin.DE 130.149.4.15

Interface Network attachment ( 1 interfaces = multihomed)

Route How to get to an objects location

Network prefix Set of addresses

Page 42: Part I: Introduction - inet.tu-berlin.de · Delay in packet-switched networks Packets experience delay on end-to-end path Four sources of delay at each hop Nodal processing Check

42

Principles of the Internet

Edge vs. core (end-systems vs. routers)

Dumb network

Intelligence at the end-systems

Different communication paradigms

Connection oriented vs. connection less

Packet vs. circuit switching

Layered system

Network of collaborating networks