Internet architecture Ov Over ervie iew Packet switching over - - PowerPoint PPT Presentation

internet architecture ov over ervie iew
SMART_READER_LITE
LIVE PREVIEW

Internet architecture Ov Over ervie iew Packet switching over - - PowerPoint PPT Presentation

Internet architecture Ov Over ervie iew Packet switching over circuit switching End-to-end principle and Hourglass design Layering of functionality Portland State University CS 430P/530 Internet, Web & Cloud Systems Pac


slide-1
SLIDE 1

Internet architecture

slide-2
SLIDE 2

Ov Over ervie iew

 Packet switching over circuit switching  End-to-end principle and “Hourglass” design  Layering of functionality

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-3
SLIDE 3

Pac Packet t swi witch tching ng vs. . ci circuit cuit swi witch tching ng

 Analogy

 Ride sharing vehicles vs. privately owned vehicles

 Zipcar, car2go, Lime/Bird/Skip (packet-switching)

 Many users share a single car or scooter  Large demand causes users to delay usage  Car or scooter more efficiently used

 Privately owned vehicles (circuit-switching)

 Single user  Guaranteed access for user  Vehicle not used as efficiently

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-4
SLIDE 4

What t is th s this? s?

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-5
SLIDE 5

Circuit cuit Swi witchi tching ng

 Example

 Phone network (pre-cellular)

 End-end network resources

divided into “pieces” and reserved for call

 link bandwidth, switch capacity  resource piece idle if not used by

  • wning call

 dedicated resources: no sharing

 Guaranteed performance  Call setup and admission control

required

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-6
SLIDE 6

Pack Packet t Swi witching tching

 Data divided into packets (Kleinrock 1960)

 Packets from users share network resources  Each packet uses full link bandwidth  Packets stored and forwarded one hop at a time  Resources used as needed

 But...congestion possible

 aggregate resource demand can exceed amount available  packets queue, wait for link use

Portland State University CS 430P/530 Internet, Web & Cloud Systems

Bandwidth division into “pieces” Dedicated allocation Resource reservation

slide-7
SLIDE 7

Pac Packet t swi witch tching ng versus sus ci circu cuit t swi witch tching ing

 N users over 1 Mb/s link  Each user:

 100 kb/s when “active”  active 10% of time

 Circuit-switching:

 10 users

 Packet switching:

 with 35 users, probability > 10 active less than .0004  Packet switching allows more users to use network  “Statistical multiplexing gain”

 The basis for the cloud  Amazon with an enormous cluster to handle Christmas season (active < 10% of

the year)

Portland State University CS 430P/530 Internet, Web & Cloud Systems

N users 1 Mbps link

slide-8
SLIDE 8

Pac Packet t swi witch tching ng versus sus ci circu cuit t swi witch tching ing

 Great for bursty data

 resource sharing  simpler, no call setup

 Bad for applications with hard resource requirements

 Excessive congestion: packet delay and loss  Need protocols and applications that can deal with packet

loss/congestion

 Basis for the Internet

Portland State University CS 430P/530 Internet, Web & Cloud Systems

Is packet switching a “slam dunk winner?”

slide-9
SLIDE 9

Ov Over ervie iew

 Packet switching over circuit switching  End-to-end principle and “Hourglass” design  Layering of functionality

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-10
SLIDE 10

En End-to to-end end principle ciple an and Hourgla rglass ss desi sign gn

 One, simple protocol to run it all

"Perfection is achieved not when there is nothing more to add, but when there is nothing left to take away" -- Antoine de Saint-Exupery

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-11
SLIDE 11

En End-to to-end end pr principle nciple

 Where to put the functionality?

 In the network? At the edges?

 End-to-end functions best handled by end-to-end protocols

 Network provides basic service: data transport  Intelligence and applications located in or close to devices at the edge

 Leads to innovation at the edges

 Phone network: dumb edge devices, intelligent network  Internet: dumb network, intelligent edge devices

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-12
SLIDE 12

Lea eads ds to H Hourg urglass lass des esign ign

 Only one protocol at the Internet level

 Minimal required elements at narrowest point

 IP – Internet Protocol (RFC 791 and 1812)

 Unreliable datagram service  Addressing and connectionless connectivity  Like the post office of old!

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-13
SLIDE 13

Hourg urglass lass des esign ign of IP

 Simplicity allowed fast deployment of multi-vendor, multi-provider

public network

 Ease of implementation  Limited hardware requirements (important in 1970s)  Rapid development leads to eventual economies of scale

 Designed independently of hardware

 No link-layer specific functions  Hardware addresses decoupled from IP addresses  IP header contains no data/physical link specific information (e.g. Ethernet,

WiFi, 5G, etc.)

 Allows IP to run over any fabric

 Translation to the cloud

 What technology might allow applications to run on any cloud provider (e.g.

AWS, GCP , Azure)?

 Possible answer later on…

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-14
SLIDE 14

En End-to to-end end principle, ciple, hour urglass glass desi sign gn

 The good

 Basic network functionality allowed for extremely quick adoption and

deployment using simple devices

 The bad

 New network features and functionality are impossible to deploy,

requiring widespread adoption within the network

 IP Multicast, QoS

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-15
SLIDE 15

Ov Over ervie iew

 Packet switching over circuit switching  End-to-end principle and “Hourglass” design  Layering and abstractions

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-16
SLIDE 16

Layering ering

 Modular approach to organizing functionality  Applied to networks

 Set of rules governing communication between elements (applications,

hosts, routers)

 Each layer relies on services from layer below and exports services to

layer above

 Each layer specifies format of messages to peer and actions taken based

  • n messages

 Simplifies complex networked systems making them easier to

maintain and update

 Layer implementations can change without disturbing other layers

(black box)

 But, can come with a performance hit (motivates QUIC)

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-17
SLIDE 17

Layering ering exa xample ple

 Topology and physical configuration hidden by network-layer

 Applications require no knowledge of routes

 e.g. web servers do not need to calculate routes to clients  Abstracts out the network

 New applications deployed without coordination with network

  • perators or operating system vendors compared to phone network

 Layering and abstraction extends all the way up to the machine,

  • perating system, applications, and collections of all of them!

 Found all over Computer Science and the cloud  Basis for modern serverless cloud applications

 Cloud platform abstracts out the physical servers, networks, and CDN!

Portland State University CS 430P/530 Internet, Web & Cloud Systems

Link hardware Host-to-host connectivity Application

slide-18
SLIDE 18

Layering ering: : Interne ernet t pr protocols

  • cols

 Application:

 SMTP

, HTTP

 e.g. URL requests and responses

 Transport: process-process data transfer

 TCP

, UDP

 e.g. how those requests and responses are

broken up into network packets

 Network: routing of datagrams from source

to destination

 IP

 Link: data transfer between neighboring

network elements

 Ethernet, 802.11  e.g. delivery to next hop router

 Physical: bits “on the wire”

Portland State University CS 430P/530 Internet, Web & Cloud Systems

application transport network link physical

Layer 1 Layer 2 Layer 3 Layer 4 Layer 5

slide-19
SLIDE 19

Russi ssian an doll ll an anal alogy

  • gy

 Packets over the Internet

 Innermost doll = Application data (i.e. URL request or web

page)

 Next layer = Transport information (i.e. process address or

packet sequence number)

 Next layer = Network information (i.e. network source and

destination addresses)

 Outermost doll = Data-link layer information (i.e. hardware

source and destination addresses)

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-20
SLIDE 20

Russi ssian an doll ll an anal alogy

  • gy

 US Mail analogy

 Application data (i.e. URL request or web page)

 Contents of a letter

 Transport information (i.e. process address or packet

sequence number)

 Recipient: Person, Dorm room #, Apt. #  Carrier: USPS, UPS, DHL, FedEx

 Network information (i.e. network source and

destination addresses)

 Street address, City, State, Zip code

 Data-link layer information (i.e. hardware source and

destination addresses)

 Vehicle or person transporting the mail

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-21
SLIDE 21

Russi ssian an doll ll an anal alogy

  • gy

 Operation

 End host (web client) creates entire doll (app,

transport, network, data-link) and sends it to “next hop”

 Router pulls off outermost doll (data-link), examines

destination address of “network layer”, and looks up the “next hop” based on it

 Creates another outer, data-link layer doll, places the

packet within it, and sends it to the next hop’s network interface.

 Eventually reaches other end system (web server)

which processes all layers to obtain the request

Portland State University CS 430P/530 Internet, Web & Cloud Systems

slide-22
SLIDE 22

Next xt 2 2 wee eeks ks

 Crash course on Internet protocol stack

 Where computing is coming from  Review if you've taken CS 494/594

Portland State University CS 430P/530 Internet, Web & Cloud Systems