Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should...

116
Computer Networks Sándor Laki ELTE-Ericsson Communication Networks Laboratory ELTE FI – Department Of Information Systems [email protected] http://lakis.web.elte.hu Based on the slides of Laurent Vanbever. Further inspiration: Scott Shenker & Jennifer Rexford & Phillipa Gill

Transcript of Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should...

Page 1: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Computer NetworksSándor Laki

ELTE-Ericsson Communication Networks Laboratory

ELTE FI – Department Of Information Systems

[email protected]

http://lakis.web.elte.hu

Based on the slides of Laurent Vanbever.Further inspiration: Scott Shenker & Jennifer Rexford & Phillipa Gill

Page 2: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Hello!

2

• Welcome to Computer Networks• Are you in the right classroom?

• Okay, good.

• Who am I?• Sándor Laki, PhD

• Assistant Professor at Dept. Of Information Systems

[email protected]

• Office: Southern Building, Room 2.506

• Office Hours: 10-11 Thursday, in room 2.506

Page 3: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Why Take This Course?

3

• How many of you have checked your e-mail, FB, text…• Today?

• In the past hour?

• Since I started talking?

Page 4: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Computer networks are ubiquitous

4

• Networks touch every part of our daily life• Web search

• Social networking

• Watching movies

• Ordering merchandise

• Wasting time

Page 5: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Computer networks are ubiquitous

5

• Networking is one of the most critical topics in CS• There would be no…

• Big Data

• Cloud

• Apps or Mobile Computing

• … without networks

Page 6: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

The Interneta really exciting place

Page 7: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

17.1 billion

Page 8: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

17.1 billionnumber of devices connected to Internet in 2016 (estimation*)

* Cisco Visual Networking Index 2016—2021

Page 9: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

27.1 billionnumber of devices connected to Internet in 2021 (estimation*)

* Cisco Visual Networking Index 2016—2021

Page 10: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

~3 exabytethe daily total Internet traffic in 2016 (estimation*)

[1EB = 1018 Bytes = 1 000 000 000 000 000 000 Bytes]

* Cisco Visual Networking Index 2017

Page 11: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

If = 1 Gigabyte

Page 12: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

~ 1 exabyte

Page 13: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

~9 exabytethe daily total Internet traffic in 2021 (estimation*)

* Cisco Visual Networking Index 2017

Page 14: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

~55%video traffic of the total Internet traffic in 2016 (estimation*)

* Sandvine 2016 Global Internet Phenomena

Page 15: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

* Sandvine 2016 Global Internet Phenomena(https://www.sandvine.com/hubfs/downloads/archive/2016-global-internet-phenomena-report-latin-america-and-north-america.pdf)

Page 16: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

~80%video traffic of the total Internet traffic in 2021 (estimation*)

* Cisco Visual Networking Index 2017

Page 17: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

The other side…

Page 18: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Internet traffic from/to Egypt in January 2011

* http://huff.to/1KxxoZF

Page 19: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Syria - 2013

* aljazeera.com

Page 20: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

* https://www.wired.co.uk/article/over-50-internet-shutdowns-2016

Page 21: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

* http://wapo.st/1UVKamr

Page 22: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

The top-secret PRISM program

* https://www.washingtonpost.com/wp-srv/special/politics/prism-collection-documents/

Page 23: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

• Can the Internet Service Provider (ISP) selectively slow down traffic?

Network Neutrality

* http://nyti.ms/2kZUnDA * http://nyti.ms/2CkTbRR

Page 24: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New
Page 25: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Netflix VS ISPs

The Netflix-Comcast conflict

Who should pay for the Internet connection?

* https://freedom-to-tinker.com/2015/03/25/why-your-netflix-traffic-is-slow-and-why-the-open-internet-order-wont-necessarily-make-it-faster/

Page 26: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New
Page 27: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Netflix VS ISPs

Who should pay for the Internet connection?

Netflix download rate dropped to0.5 Mbps in New York because of the

congestion on Cogent links

* https://arstechnica.com/information-technology/2014/10/study-comcast-and-verizon-connections-to-cogent-dropped-below-0-5mbps/

Page 28: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Netflix VS ISPs

Who should pay for the Internet connection?

Netflix starts paying.

* https://arstechnica.com/information-technology/2014/10/study-comcast-and-verizon-connections-to-cogent-dropped-below-0-5mbps/

Page 29: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

A Fragile place

Page 30: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

* https://dyn.com/blog/widespread-impact-caused-by-level-3-bgp-route-leak/

Page 31: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

• A little outage– for more than 90 mins

• Affected millions of users from the US and world-wide

• Cause: BGP route leaking• A misconfigured router directed Internet traffic

from its intended path to somewhere else.

We have a little problemhere…

Page 32: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

* https://dyn.com/blog/widespread-impact-caused-by-level-3-bgp-route-leak/

Page 33: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

August 2017

* https://www.theregister.co.uk/2017/08/27/google_routing_blunder_sent_japans_internet_dark/

Page 34: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

• People also often mistakenly destroytheir own infrastructure

Human factor

Page 35: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

• People also often mistakenly destroytheir own infrastructure

Human factor

„Human factors are responsiblefor 50% to 80% of network outages.”

Jupiter Networks, What’s Behind Network Downtime?, 2008

Page 36: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Data networks work better during week-ends…☺

Page 37: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Computer Networks Course

Page 38: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

• Understand how and why Internet works…

• Main topics• Addressing

• How to address devices, services and protocols?

• Layering• How to handle complexity?

• Routing• How to go from A to B?

• Reliability• How to communicate reliably over an unreliable mediums?

• Resource sharing• How to divide scare resources among competing parties?

Goals of this course

Page 39: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Skills – that are also essential in Matrix

Trinity from Matrix Reloaded running a port scan, using the tool nmap…

Page 40: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Sources

41

• Slides:• http://lakis.web.elte.hu

• Books

Page 41: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Teaching Style

42

• I am a network researcher• Things make sense to me that may not make sense to you

• If you do not understand something, do not be shy to stop me and ask

• Seriously, ask questions!!!

• Standing up here in silence is very awkward

• I will stand here until you answer my questions

• Help me learn your names• Say your name before each question

Page 42: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Course = Lecture + Practice

43

• Practice• Lecturer: Peter Vörös, Teaching assistant

• Requirements will be announced at the first class

• Lecture• After a successfully passed practical part…

• Final exam at end of the semester• one occasion per week in the exam period

• written exam – tests + essay

Page 43: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Cheating

44

• Do not do it• Seriously, don’t make me say it again

• Cheating is an automatic zero• Will be referred to the university for discipline and possible expulsion

Page 44: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Final Grades

45

• At the end of the semester, all of your grades will sum to 100 points

• Final grades are based on a simple scale:• 5 - >85,

• 4 - 70-85,

• 3 - 60-70,

• 2 - 50-60,

• 1 - 0-50

Page 45: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

After typeing www.google.com into a browser,

and pressing enter…

What happens?

Can you list any technologies, principles,

protocols and applications used…

Page 46: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

OverviewWhat is a network made of?

Page 47: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Three main components

Page 48: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Data sending and receiving end-points

Computer in a car

Pacemaker

Smartphone

Windows PC

iPadSmart Fridge

Smart TV

Linux server

Drone

Page 49: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Data forwarding switches and routersData forwarding towards a destination

switch/router

Page 50: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Home router data center router Internet core

router

~20 cm ~50cm >200 cm

0,5 kg ~ 5 kg ~700 kg

1 Gbps 1,8-6,5 Tbps 12,8 Tbps

(up to 922 Tbps)

Routersdifferent sizes, features and applications

Page 51: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Kbps? Mbps? Tbps?

• BandwidthThe bandwidth is used to measure and quantify the available or usedcommunication resources. It is expressed in bit per second (bps), meaning howmany bits can be transmitted in a second.

8*103 bit/sec 1 KB/s Kilobyte

8*106 bit/sec 1 MB/s Megabyte

8*109 bit/sec 1 GB/s Gigabyte

8*1012 bit/sec 1 TB/s Terrabyte

8*1015 bit/sec 1 PB/s Petabyte

8*1018 bit/sec 1 EB/s Exabyte

SI standard

52

Page 52: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Linksconnect end-points to switches and switches to each other

linkek

Page 53: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Copper cableADSL, RJ-45, Coax

Optic fiber

Wireless

Links – examples

Page 54: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

* https://www.submarinecablemap.com/

Page 55: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Somewhere in ManhattenRené Descart

cable ship

Deepsee cable fixing

Page 56: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Internet = Network of networks

Page 57: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Internet = Network of networks

Phone company

CabelTV company

University net

Enterprise net

Internet Service Providers = ISPs

Page 58: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Internet access over phone network

Phone company

Digital Subscriber Line (DSL)• Providing high bandwidth access to households over

phone lines

?????????????

Page 59: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Internet access over phone network

Phone company

Digital Subscriber Line (DSL)• Providing high bandwidth access to households over

phone lines

• 3 channel• Downstream data channel

• Few hundred Mbps• Upstream data channel

• Few tens Mbps• Two-way phone channel

• Only voice

Why is it asymmetric?

Page 60: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Over Cable TV network

CableTV company

Cable Access Technology (CATV)• Providing high bandwidth access to households over

cable tv network

• Downstream data channel• Few hundred Mbps

• Upstream data channel• Few tens Mbps

• In contrast to ADSL, the medium is shared among households.

Copper coax cable

Page 61: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Ethernet is widely used for Local Area Networks (LAN)

University net

Enterprise net

Twisted pair copperSFP+ Active Optical

1 Gbps, 10 Gbps, 40 Gbps, 100 Gbps, …Symmetric – full-duplex

100 Gbps NIC

Page 62: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

• Cellular – smart phones

• Satellite – long distance communication in areas without infrastructure

• FTTH – households

• Optical cables (fibers, dark fibers) – Internet backbone

• Infiniband – HPC clusters

• …

Further technologies

Page 63: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

OverviewHow to share network resources?

Page 64: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

3 important requirements for the topology

• Fault tolerance• several paths between each source and destination

• Flexible• Possess enough sharing to be feasible & cost-effective

• Number of links should not be too high

• Enough per-node capacity• number of links should not be too small

How does the Internet core look like?

Page 65: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Fully Chain/Ring Busconnected

(Full-mesh)

Let’s see a few special topologyInternet is different...

Advantages

Disadvantages

Page 66: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Switched design

Switched networks providereasonable and flexible compromise

Advantages

Disadvantages

Sharing and per-node capacity can be adapted to fit the network needs

Require smart devices to perform: forwarding, routing, resource allocation

Page 67: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Sharing links and switches

Shared link és switch(network) resources: they are used by multiple flows

in parallel

Network flow: The communication/traffic between two end-points.(different definitions – traffic that somehow belongs together)

Page 68: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Resource handlingTwo different approaches for sharing

Reservation On-demand

Reserve the needed bandwidth in advance

Flow-level multiplexing

Send data when needed

Packet-level multiplexing

Page 69: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

• Assume, each source needs 10 Mbps bandwidth

• What do they get with:• Reservation

• On-demand

Which one is better?

srcs dsts

30 Mbps

Page 70: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Assume the following peak demand and flow duration

Time

src #1

src #2

src #3

10 Mbps

11 Mbps

13 Mbps

Page 71: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Assume the following peak demand and flow duration

Time

src #1

src #2

src #3

10 Mbps

11 Mbps

13 Mbps

What does each source get with reservation and on-demand?

First-come first-servedEqual(10 Mbps)

Page 72: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Each flow has• Peak rate: P

• Average rate: A

Reservation must reserve P• but the level of utilization is A/P

• P=100 Mbps, A=10 Mbps, the level of utilization = 10%

On-demand can usually achieve higher level of utilization• depends on degree of sharing and burstiness of flows

Peak vs average rates

Page 73: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

If P/A is small, reservation makes sense• voice traffic has a ratio of 3 or so

If P/A is big, reservation wastes resources• Data traffic is bursty• The P/A ratios >100 are common

That’s why the phone network used reservations

… and why the Internet does not!

Which one is better?It depends…

Page 74: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

If P/A is small, reservation makes sense• voice traffic has a ratio of 3 or so

If P/A is big, reservation wastes resources• Data traffic is bursty• The P/A ratios >100 are common

That’s why the phone network used reservations

… and why the Internet does not!

Which one is better?It depends…

Page 75: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Implementation

Packets

Packet-switchinge.g. Internet

Circuit-switchinge.g. landline phone networks

Reservation On-demand

Page 76: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Used for reservation management

1. src sends a reservation request for 10Mbps to dst

2. switches “establish a circuit”

3. src starts sending data

4. src sends a “teardown circuit” message

Circuit-switched networks rely onthe Resource Reservation Protocol

10 Mbps?10 Mbps?

10 Mbps?

OK

OK

OK

Page 77: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Data transfer using circuit-switching

switch switch

Time

Circuit establishment

Data transfer

Circuit teardown

Page 78: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Burtsy traffic – Bad performance

switch switch

Time

Circuit establishment

Data transfer

Circuit teardown

The circuit is mostly idle…

Page 79: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Short messages – Bad performance

switch switch

Time

Circuit establishment

Data transfer

Circuit teardown

T1

T2

T3

T1 + T3 > T2

Page 80: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Further problems –it doesn’t route around trouble

Failure

Circuit established

New circuit is needed for restoring the communication

Page 81: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Pros Cons

Predictable performance Low efficiency

Bursty traffic

Short flows

Simple and fast switching Complexity of circuit establ./teard.once circuit established Increased delay

New circuit is needed in case of failures

Pros & Cons

Page 82: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Implementation

Packets

Packet-switchinge.g. Internet

Circuit-switchinge.g. landline phone networks

Reservation On-demand

Page 83: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Data transmission in individual packets

Packet-switching

switch

A: src C: dst

B: src

Each packet carries dst’s address

No global coordinationPackets can conflict

with each other

Buffering is needed for handling bursts.

Page 84: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Buffering to handle temporal overloads

Packet-switching

switch

A: forrás C: célállomás

B: forrás

Page 85: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Buffering to handle temporal overloads

Packet-switching

switch

A: forrás C: célállomás

B: forrás

Page 86: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Failure tolerance

Failure

Forwarding path

After failure, S1 determines the new route.

S1

Page 87: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Pros Cons

Efficient resource management Unpredictable performance

Simple implementation Buffer management and congestion control is needed

Failure tolerance

Pros & Cons

Page 88: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Internet is packet-switched

Page 89: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

OverviewHow to organize the network?

Page 90: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Internet = Network of networks

Phone company

CabelTV company

University net

Enterprise net

Internet Service Providers = ISPs

Page 91: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

What is Internet?

• Network of networks

• Largest Wide Area Network

• Properties

• System independent

• No central control

• Built from LANs

• Global

• Enables services like WEB, file transfer, etc.

Forrás: [1]

92

Page 92: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

ISP – Internet Service Provider

Access ISP

Access ISP

Access ISP

Access ISP

Page 93: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Access ISPAccess ISP

Tier-2 ISP Tier-2 ISP

Tier-1 ISP Tier-1 ISP

Page 94: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Tier-1 has no provider

international

Tier-2 provides transit to Tier-3s átjárást

national Have at least one provider

Tier-3 do not provide any transit

local Have at least one provider

Hierarchical structure of Internetprovider-customer relations

Tier-3 ISP

Tier-2 ISP

customer

provider

Page 95: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Access ISPAccess ISP

Tier-2 ISP Tier-2 ISP

Tier-1 ISP Tier-1 ISP

customer

provider

customer

provider

customer

provider

customer

provider

provider

Page 96: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Tier-1 has no provider

international

Tier-2 provides transit to Tier-3s átjárást

national Have at least one provider

Tier-3 do not provide any transit

local Have at least one provider

Hierarchical structure of Internetprovider-customer relations

~50.000 networks

Few docents

Few thousands

85-90%

Page 97: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Access ISPAccess ISP

Tier-2 ISP Tier-2 ISP

Tier-1 ISP Tier-1 ISP

multihoming

Page 98: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

This is known as “peering”

Some networks have an incentive to connect directly, to reduce their bill with their own provider

Page 99: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Access ISPAccess ISP

Tier-2 ISP Tier-2 ISP

Tier-1 ISP Tier-1 ISPpeer peer

peer peer

peer

peer

Page 100: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Infrastructure/physical costs

of provisioning or renting physical links

Bandwidth costs

a lot of links are not necessarily fully utilized

Human costs

to manage each connection individually

Interconnecting each network to its neighborsone-by-one is not cost effective

Page 101: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Internet eXchange Points (IXPs) solve these problems

by letting many networks connect in one location

Page 102: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Access ISPAccess ISP

Tier-2 ISP Tier-2 ISP

Tier-1 ISP Tier-1 ISP

IXP

Page 103: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Two days of an IXP – DE-CIX Frankfurt

* https://www.de-cix.net/en/locations/germany/frankfurt/statistics

Page 104: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Brief history of Internet

Page 105: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Phone networks = the communication network

fully circuit-switched

People wanted to use networks for other things

defense, computers, etc.

circuit-switching does not fit to these new requirements…

inefficient for bursty loads and not resilient

The Internet history starts in the late 50’s…

Page 106: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

How can we design a more resilient network?

… led to the invention of packet switching

How can we design a more efficient network?

… also led to the invention of packet switching

How can we connect all these networks together?

… the invention of Internet as we know it

Three main questions

Paul Baran RAND

Leonard KleinrockUCLA

Vint Cerf & Bob KahnDARPA

Page 107: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Advanced Research Projects Agency NETwork (ARPANET)

The 60’s was all about packet switching…

UCSB

SRI

UCLA

UTAH

STAN SCD

RAND BBN

ILLINOIS MIT LINCOLN

HARVARD BURROUGHS

CRAN

CASE

1969 december

1970 july

1971 march

Page 108: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

ARPANET

April 1972

109

Page 109: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

ARPANET

September 1972

110

Page 110: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

ARPANET

Page 111: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

29. Oct. 1969 Leonard Kleinrock from UCLA tries to log ina Stanford computer

UCLA

Stanford

The first message over the Internet

We typed the L… Do you see it?Yes! We see the L

We typed the O… Do you see it?Yes! We see the O

We typed the G.… and the system crashed …

* http://ftp.cs.ucla.edu/csd/first_words.html

: „LO”

Page 112: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

1971 Network Control Program (NCP)

Predecessor of TCP/IP

1972 Email and Telnet

1973 Ethernet

1974 TCP/IP

Paper of Vint Cerf and Bob Kahn

The 70’s about Ethernet, TCP/IP and email…

Page 113: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

1983 NCP to TCP/IP

Domain Name Service (DNS)

1985 NSFNet (TCP/IP)

198x First Internet crashes caused by congestion

1986 Van Jacobson saves the Internet

congestion control

80’s when TCP/IP went mainstream

Page 114: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

Van Jacobson

Page 115: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

1989 ARPANET closed

Birth of the WEB

Tim Berners Lee (CERN)

1993 First search engine (Excite)

1995 NSFNet closed

1998 Google reinvents searching

90’s – the Internet going commercial…

Page 116: Computer Networkslakis.web.elte.hu/comnet-eng-bsc/1_overview_eng.pdf · Netflix VS ISPs Who should pay for the Internet connection? Netflix download rate dropped to 0.5 Mbps in New

To be continued…