cs2105 - nus computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · cs2105 lecture1 1. ooiweitsang...

89
CS2105 An Awesome Introduction to Computer Networking CS2105 Lecture 1 1

Upload: others

Post on 27-Jun-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

CS2105An Awesome Introduction to

Computer Networking

CS2105 Lecture 1 1

Page 2: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

OoiWei TsangAS6 05-14

[email protected]

CS2105 Lecture 1 2

Page 3: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Office HourMonday 4-6pm

CS2105 Lecture 1 3

Page 4: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

CS2105 Lecture 1 4

Page 5: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

CS2105 Lecture 1 5

Page 6: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

CS2105 Lecture 1 6

Page 7: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

2 programming assignments1 written assignment

9 problem sets4 practical exercises

CS2105 Lecture 1 7

Page 8: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Important DatesMidterm: 10March 2014Final Exam: 30 April 2014

CS2105 Lecture 1 8

Page 9: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Midterm& Final areSemi-Open Book

(one double-sided A4 crib sheetallowed)

CS2105 Lecture 1 9

Page 10: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Slides to be posted 1-2 daysbefore the lecture

CS2105 Lecture 1 10

Page 11: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Slides ̸=Notes

CS2105 Lecture 1 11

Page 12: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

You are expected to take notesduring lecture

CS2105 Lecture 1 12

Page 13: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

You are expected to read theassigned readings

CS2105 Lecture 1 13

Page 14: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Nomodel answer will beposted

CS2105 Lecture 1 14

Page 15: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

..

Page 16: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

..

Page 17: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

``Nomercy''policy againstplagiarism

CS2105 Lecture 1 17

Page 18: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

``Nomercy''policy againstvoilation of naming

convention

CS2105 Lecture 1 18

Page 19: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

http://blog.nus.edu.sg/cs2105

CS2105 Lecture 1 19

Page 20: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Check for updates frequentlyand

subscribe via email or RSS

CS2105 Lecture 1 20

Page 21: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Use your real namewhencommenting online

CS2105 Lecture 1 21

Page 22: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Screencast will be posted

CS2105 Lecture 1 22

Page 23: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

You need an SoCUNIX account.Get one here:

https://mysoc.nus.edu.sg/~newacct/

CS2105 Lecture 1 23

Page 24: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Questions?

CS2105 Lecture 1 24

Page 25: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

CS2105 Lecture 1

Introduction14 January, 2014

CS2105 Lecture 1 25

Page 26: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

..

CS2105 Lecture 1

Introduction14 January, 2014

After this class, you are expected to:

• understand the basic terms, including host, packet, protocol,throughput, bottleneck link, store-and-forward, and autonomoussystem.

• know about the logical (the five layers) and physical architecture (as anetwork of ASes) of the Internet.

• know about the pros and cons of packet switching versus circuitswitching.

• understand the different components of end-to-end delay and theirrelations to bandwidth, packet size, distance, propagation speed, andqueue size.

Page 27: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

The complexity involved inengineering the Internet willmake your head explode, butthis one incredibly simple trickkeeps the complexitymanageable.

CS2105 Lecture 1 27

Page 28: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

What is CS2105about?

CS2105 Lecture 1 28

Page 29: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Concepts andprinciplesbehind computer networking

Introduction to networkedapplication programming

CS2105 Lecture 1 29

Page 30: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

The Internet is a network ofconnected computing devices.

CS2105 Lecture 1 30

Page 31: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Hostsorend systems

Page 32: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105
Page 33: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

996,230,757as of July 2013

CS2105 Lecture 1 33

Page 34: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

..

996,230,757as of July 2013

Data obtained from Internet SystemsConsortium: http://www.isc.org/solutions/survey/history

Page 35: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

The hosts rundistributedapplications

CS2105 Lecture 1 35

Page 36: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Web: browsers, Web serversWoW: clients, game serversSkype: clients, supernodesBitTorrent: peers, trackers

CS2105 Lecture 1 36

Page 37: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Applicationsexchangemessages andcommunicate according to

protocols

CS2105 Lecture 1 37

Page 38: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Protocol: the type andorderofmessages exchanged and theactions taken aftermessages

are sent or received

CS2105 Lecture 1 38

Page 39: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Examples:HTTP, SMTP, FTP, TCP

CS2105 Lecture 1 39

Page 40: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

The hosts access the Internetthroughaccess network

CS2105 Lecture 1 40

Page 41: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

WiFi, Ethernet, 3G, LTE, DSL,Cable, Fiber, Dial-Up, Satellite

CS2105 Lecture 1 41

Page 42: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

..

WiFi, Ethernet, 3G, LTE, DSL,Cable, Fiber, Dial-Up, Satellite

You can read upmore about these differentaccess network technologies in Section 1.2.1.Wewill cover Ethernet andWiFi inmoredetails in CS2105.

Page 43: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Hosts can communicate overdifferentphysicalmedia

CS2105 Lecture 1 43

Page 44: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

..

twisted pair

coaxial cablefiber optic

fiber optic

Page 45: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Consider two hosts connecteddirectly through a physical medium

CS2105 Lecture 1 45

Page 46: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

The hosts communicate by sendinginformation to each other.

CS2105 Lecture 1 46

Page 47: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Information can be represented by asequence of bits -- 0 or 1.

CS2105 Lecture 1 47

Page 48: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Modulation/Demodulation:Conversion between bits and

signals

CS2105 Lecture 1 48

Page 49: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Error Detection/Correction:Ensuring that bits are received

correctly

CS2105 Lecture 1 49

Page 50: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Packetization/Segmentation:Dividing data into chunks(called packets) so that only

errornous packets need to beretransmitted.

CS2105 Lecture 1 50

Page 51: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Considermultiple hosts connectedthrough a shared physical medium

CS2105 Lecture 1 51

Page 52: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Addressing:Identify the source and

destination

CS2105 Lecture 1 52

Page 53: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Mediumaccess control:Regulate who sends

CS2105 Lecture 1 53

Page 54: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Considermultiple hosts connectedthrough intermediate packetswitches, which store and forwardthe packets.

CS2105 Lecture 1 54

Page 55: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

..

Page 56: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

The Internet is apacketswitchingnetwork

CS2105 Lecture 1 56

Page 57: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Packet switching:Resources used on demand;

best effort services

CS2105 Lecture 1 57

Page 58: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Circuit switching:Resources are reserved,guaranteeing services

CS2105 Lecture 1 58

Page 59: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Packet vs. Circuit Switching:Which ismore efficient?

CS2105 Lecture 1 59

Page 60: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

..

Packet vs. Circuit Switching:Which ismore efficient?

Details about packet switching and circuitswitching is explained in Sections 1.3.1 and1.3.2

Page 61: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Who owns the intermediatepacket switches on the

Internet?

CS2105 Lecture 1 61

Page 62: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

..

Page 63: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

The Internet is a``network-of-networks'',

organized into autonomoussystems (AS), each is owned by

an organization.

CS2105 Lecture 1 63

Page 64: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

..

The Internet is a``network-of-networks'',

organized into autonomoussystems (AS), each is owned by

an organization.

To learnmore about the architecture of theInternet, read Section 1.3.3. The Internettopology figure is taken fromhttp://www.caida.org/research/topology/as_core_network/

Page 65: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

traceroute

CS2105 Lecture 1 65

Page 66: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

..

traceroute

You can also try to traceroute from otherlocations on the Internet athttp://www.traceroute.org

Page 67: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Routing: Decidewhichpath/route to take

CS2105 Lecture 1 67

Page 68: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Reliability: Recover frompacket losses

CS2105 Lecture 1 68

Page 69: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Link Rate/Bandwidth:Howmany bits can be

``pushed'' onto a link per unittime.

CS2105 Lecture 1 69

Page 70: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Delay:Time between send and

receive

CS2105 Lecture 1 70

Page 71: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

To send a packet in a packet switchnetwork, for each link in the path1. transmit packet onto the link as

bits2. propagate bits to next node3. store and process the packet4. wait to be transmitted

CS2105 Lecture 1 71

Page 72: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

End-to-end packet delay consists of:1. transmission delay2. propagation delay3. processing delay4. queueing delay

CS2105 Lecture 1 72

Page 73: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

.

CS2105 Lecture 1 73

Page 74: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Throughput:Howmany bits can be

communicated per unit time.

CS2105 Lecture 1 74

Page 75: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Multiple applications can run on eachhost

CS2105 Lecture 1 75

Page 76: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Demultiplexing: Determinewhich packet belongs towhich

application

CS2105 Lecture 1 76

Page 77: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Many issues to consider, to supportdifferent applications running onlarge number of hosts throughdifferent access technology and

physical media.

CS2105 Lecture 1 77

Page 78: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

..

Page 79: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Layering:Common CS trick to deal withlarge and complex systems

CS2105 Lecture 1 79

Page 80: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Each layer provides a service;Simple interfaces btwn layers;Hide details from each other.

CS2105 Lecture 1 80

Page 81: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

..

Each layer provides a service;Simple interfaces btwn layers;Hide details from each other.

The five layers of the Internet are described inSection 1.5.

Page 82: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

..Application.

Transport

.

Network

.

Link

.

Physical

CS2105 Lecture 1 82

Page 83: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Applications (or processes)treat the Internet as ablackbox, sending and receivingmessages through a socket.

CS2105 Lecture 1 83

Page 84: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Transport layerprovides process-to-processmessage delivery services.

CS2105 Lecture 1 84

Page 85: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

TCPreliable, in-order delivery, withcongestion and flow control

CS2105 Lecture 1 85

Page 86: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

UDPbest-effort delivery

CS2105 Lecture 1 86

Page 87: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Network layerhost-to-host delivery

CS2105 Lecture 1 87

Page 88: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Link layernode-to-node delivery

CS2105 Lecture 1 88

Page 89: CS2105 - NUS Computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · CS2105 Lecture1 1. OoiWeiTsang AS605-14 ooiwt@comp.nus.edu.sg CS2105 Lecture1 2. OfficeHour Monday4-6pm CS2105

Physical layer``bits over physical media''

CS2105 Lecture 1 89