cs2105 - nus computingooiwt/cs2105/1314s2/lec01... · 2014-01-12 · cs2105 lecture1 1. ooiweitsang...
TRANSCRIPT
CS2105An Awesome Introduction to
Computer Networking
CS2105 Lecture 1 1
Office HourMonday 4-6pm
CS2105 Lecture 1 3
CS2105 Lecture 1 4
CS2105 Lecture 1 5
CS2105 Lecture 1 6
2 programming assignments1 written assignment
9 problem sets4 practical exercises
CS2105 Lecture 1 7
Important DatesMidterm: 10March 2014Final Exam: 30 April 2014
CS2105 Lecture 1 8
Midterm& Final areSemi-Open Book
(one double-sided A4 crib sheetallowed)
CS2105 Lecture 1 9
Slides to be posted 1-2 daysbefore the lecture
CS2105 Lecture 1 10
Slides ̸=Notes
CS2105 Lecture 1 11
You are expected to take notesduring lecture
CS2105 Lecture 1 12
You are expected to read theassigned readings
CS2105 Lecture 1 13
Nomodel answer will beposted
CS2105 Lecture 1 14
..
..
``Nomercy''policy againstplagiarism
CS2105 Lecture 1 17
``Nomercy''policy againstvoilation of naming
convention
CS2105 Lecture 1 18
http://blog.nus.edu.sg/cs2105
CS2105 Lecture 1 19
Check for updates frequentlyand
subscribe via email or RSS
CS2105 Lecture 1 20
Use your real namewhencommenting online
CS2105 Lecture 1 21
Screencast will be posted
CS2105 Lecture 1 22
You need an SoCUNIX account.Get one here:
https://mysoc.nus.edu.sg/~newacct/
CS2105 Lecture 1 23
Questions?
CS2105 Lecture 1 24
CS2105 Lecture 1
Introduction14 January, 2014
CS2105 Lecture 1 25
..
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.
The complexity involved inengineering the Internet willmake your head explode, butthis one incredibly simple trickkeeps the complexitymanageable.
CS2105 Lecture 1 27
What is CS2105about?
CS2105 Lecture 1 28
Concepts andprinciplesbehind computer networking
Introduction to networkedapplication programming
CS2105 Lecture 1 29
The Internet is a network ofconnected computing devices.
CS2105 Lecture 1 30
Hostsorend systems
996,230,757as of July 2013
CS2105 Lecture 1 33
..
996,230,757as of July 2013
Data obtained from Internet SystemsConsortium: http://www.isc.org/solutions/survey/history
The hosts rundistributedapplications
CS2105 Lecture 1 35
Web: browsers, Web serversWoW: clients, game serversSkype: clients, supernodesBitTorrent: peers, trackers
CS2105 Lecture 1 36
Applicationsexchangemessages andcommunicate according to
protocols
CS2105 Lecture 1 37
Protocol: the type andorderofmessages exchanged and theactions taken aftermessages
are sent or received
CS2105 Lecture 1 38
Examples:HTTP, SMTP, FTP, TCP
CS2105 Lecture 1 39
The hosts access the Internetthroughaccess network
CS2105 Lecture 1 40
WiFi, Ethernet, 3G, LTE, DSL,Cable, Fiber, Dial-Up, Satellite
CS2105 Lecture 1 41
..
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.
Hosts can communicate overdifferentphysicalmedia
CS2105 Lecture 1 43
..
twisted pair
coaxial cablefiber optic
fiber optic
Consider two hosts connecteddirectly through a physical medium
CS2105 Lecture 1 45
The hosts communicate by sendinginformation to each other.
CS2105 Lecture 1 46
Information can be represented by asequence of bits -- 0 or 1.
CS2105 Lecture 1 47
Modulation/Demodulation:Conversion between bits and
signals
CS2105 Lecture 1 48
Error Detection/Correction:Ensuring that bits are received
correctly
CS2105 Lecture 1 49
Packetization/Segmentation:Dividing data into chunks(called packets) so that only
errornous packets need to beretransmitted.
CS2105 Lecture 1 50
Considermultiple hosts connectedthrough a shared physical medium
CS2105 Lecture 1 51
Addressing:Identify the source and
destination
CS2105 Lecture 1 52
Mediumaccess control:Regulate who sends
CS2105 Lecture 1 53
Considermultiple hosts connectedthrough intermediate packetswitches, which store and forwardthe packets.
CS2105 Lecture 1 54
..
The Internet is apacketswitchingnetwork
CS2105 Lecture 1 56
Packet switching:Resources used on demand;
best effort services
CS2105 Lecture 1 57
Circuit switching:Resources are reserved,guaranteeing services
CS2105 Lecture 1 58
Packet vs. Circuit Switching:Which ismore efficient?
CS2105 Lecture 1 59
..
Packet vs. Circuit Switching:Which ismore efficient?
Details about packet switching and circuitswitching is explained in Sections 1.3.1 and1.3.2
Who owns the intermediatepacket switches on the
Internet?
CS2105 Lecture 1 61
..
The Internet is a``network-of-networks'',
organized into autonomoussystems (AS), each is owned by
an organization.
CS2105 Lecture 1 63
..
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/
traceroute
CS2105 Lecture 1 65
..
traceroute
You can also try to traceroute from otherlocations on the Internet athttp://www.traceroute.org
Routing: Decidewhichpath/route to take
CS2105 Lecture 1 67
Reliability: Recover frompacket losses
CS2105 Lecture 1 68
Link Rate/Bandwidth:Howmany bits can be
``pushed'' onto a link per unittime.
CS2105 Lecture 1 69
Delay:Time between send and
receive
CS2105 Lecture 1 70
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
End-to-end packet delay consists of:1. transmission delay2. propagation delay3. processing delay4. queueing delay
CS2105 Lecture 1 72
.
CS2105 Lecture 1 73
Throughput:Howmany bits can be
communicated per unit time.
CS2105 Lecture 1 74
Multiple applications can run on eachhost
CS2105 Lecture 1 75
Demultiplexing: Determinewhich packet belongs towhich
application
CS2105 Lecture 1 76
Many issues to consider, to supportdifferent applications running onlarge number of hosts throughdifferent access technology and
physical media.
CS2105 Lecture 1 77
..
Layering:Common CS trick to deal withlarge and complex systems
CS2105 Lecture 1 79
Each layer provides a service;Simple interfaces btwn layers;Hide details from each other.
CS2105 Lecture 1 80
..
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.
..Application.
Transport
.
Network
.
Link
.
Physical
CS2105 Lecture 1 82
Applications (or processes)treat the Internet as ablackbox, sending and receivingmessages through a socket.
CS2105 Lecture 1 83
Transport layerprovides process-to-processmessage delivery services.
CS2105 Lecture 1 84
TCPreliable, in-order delivery, withcongestion and flow control
CS2105 Lecture 1 85
UDPbest-effort delivery
CS2105 Lecture 1 86
Network layerhost-to-host delivery
CS2105 Lecture 1 87
Link layernode-to-node delivery
CS2105 Lecture 1 88
Physical layer``bits over physical media''
CS2105 Lecture 1 89