COMP 361: “Network Part I”
Transcript of COMP 361: “Network Part I”
![Page 1: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/1.jpg)
Introduction 1-1
COMP 361: “Network Part I”
Qian ZhangFall 2006HKUST
![Page 2: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/2.jpg)
Introduction 1-2
Course Info
Instructor: Qian Zhang www.cs.ust.hk/~qianzhCourse web sitehttp://www.cse.ust.hk/~qianzh/comp361/index.htmlcontains all notes, announcements, etc. Check it regularly!
Lecture scheduleTuesday/Thursday 10:30-11:50 Rm 2504
Tutorial/Lab schedulesWed, 11:00-11:50, 12:00-12:50 in Rm 4214Attend lab is highly recommended
![Page 3: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/3.jpg)
Introduction 1-3
Course Info
Textbook: James Kurose and Keith RossComputer Networks: A Top Down Approach Featuring The Internet, 3rd ed. Addison Wesley, 2004http://wps.aw.com/aw_kurose_network_3 with useful resource material, e.g., illustrative appletsThe online materials contains self-study quizzes and additional examplesThis course covers contents from Chapters 1-4 and selected materials from Chapter 5
![Page 4: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/4.jpg)
Introduction 1-4
Course Info
Tutorials start at the 3rd weekReview material and time to work on projectYou will be given homework questions to practice on. They will not be markedAttendance is highly recommended
Projects – up to two students per groupProgramming assignment written in Java Please see the tutorial/lab section of the web site under Week 1 for refreshing the knowledge of JavaTopics to be announced in October. Will take one month
![Page 5: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/5.jpg)
Introduction 1-5
Course Info
Weekly summary – instructor cornerGrading scheme
Homework (3) 15 pointsProject (1) 15 pointsMidterm Exam 30 pointsFinal Exam 40 points
Midterm exam around the 8th week (after chapter 3)Homework and project account for 30 of the grades
![Page 6: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/6.jpg)
Introduction 1-6
Philosophical Quandary: Top Down or Bottom Up?
Bottom Up: Start with Physical (e.g., wires) layer and move up to Applications (e.g., mail, web browsers) layer explaining how functions are implemented
Top Down : Start with Application layer and move down to Physical layer, explaining what expectations from applications, and how such services are implemented
ApplicationApplication
TransportTransport
NetworkNetwork
LinkLink
PhysicalPhysical
![Page 7: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/7.jpg)
Introduction 1-7
Course Schedule
Introduction of computer networking3 classes and 1 tutorial
Application layer4 classes and 1.5 tutorial (1 homework assignment)Class project related to this chapter2 labs for project related knowledge
Transport layer7 classes and 3.5 tutorials (1 homework assignment)
Mid-term basically covers the first 3 chapters, may not include the content from TCP
![Page 8: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/8.jpg)
Introduction 1-8
Course Schedule (cont.)
Networking layer7 classes and 2 tutorials (1 homework assignment)
Link layer5 classes and 1 tutorials (including IEEE 802.11)
Final exam only covers the part that has not been included in mid-term1 lab for Q&A related to mid-termProject need to be demoed to TA
![Page 9: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/9.jpg)
Introduction 1-9
Chapter 1Introduction
A note on the use of these ppt slides:The notes used in this course are substantially based on powerpoint slides developed and copyrighted by J.F. Kurose and K.W. Ross, 1996-2004
Computer Networking: A Top Down Approach Featuring the Internet, 3rd edition. Jim Kurose, Keith RossAddison-Wesley, July 2004.
![Page 10: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/10.jpg)
Introduction 1-10
Chapter 1: IntroductionOur goal: Overview:
Get “feel” and terminologyMore depth, detail later in courseApproach:
use Internet as example
What’s the InternetWhat’s a protocol?Network edgeNetwork coreAccess net, physical mediaInternet/ISP structurePerformance: loss, delayProtocol layers, service modelsNetwork modeling
![Page 11: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/11.jpg)
Introduction 1-11
Chapter 1: Roadmap
1.1 What is the Internet?1.2 Network edge1.3 Network core1.4 Network access and physical media1.5 Internet structure and ISPs1.6 Delay & loss in packet-switched networks1.7 Protocol layers, service models1.8 History
![Page 12: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/12.jpg)
Introduction 1-12
What’s the Internet: “Nuts and Bolts” View
router workstationserver
mobile
Millions of connected computing devices: hosts = end systems
PCs, workstations, serversPDAs, phones, toasters
running network appsCommunication links
Fiber, copper, radio, satelliteTransmission rate = bandwidth
Routers and switches:forward packets (chunks of data)
![Page 13: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/13.jpg)
Introduction 1-13
“Cool” Internet Appliances
World’s smallest web serverhttp://www-ccs.cs.umass.edu/~shri/iPic.html
IP picture framehttp://www.ceiva.com/
Web-enabled toaster +weather forecaster
Internet phones
![Page 14: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/14.jpg)
Introduction 1-14
What’s the Internet: “Nuts and Bolts” View
Protocols control sending, receiving of msgs
e.g., TCP, IP, HTTP, FTP, PPP
Internet: “network of networks”
Loosely hierarchicalPublic Internet versus private intranet
Internet standardsRFC: Request for commentsIETF: Internet Engineering Task Force
router workstationserver
mobile
regional ISP
local ISP
companynetwork
![Page 15: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/15.jpg)
Introduction 1-15
What’s the Internet: A Service ViewCommunication infrastructure enables distributed applications:
Web, email, games, e-commerce, file sharing
Communication services provided to apps:
Connectionless unreliableConnection-oriented reliable
No service guaranteedNo delay bound for a transmission
![Page 16: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/16.jpg)
Introduction 1-16
Who owns the Internet? ---- Internet Community
IAB (Internet Architecture Board): the overall policy board for technical aspects of the Internet
ISOC (Internet Society): Formally the parent body of the IAB
IETF (Internet Engineering Task Force): The body that specifies Internet protocols and produces other related documents
IESG (Internet Engineering Steering Group): The managing body for the IETF, consisting mostly of IETF Area chairsArea: IETF working groups are grouped by technical subject matter into Areas for convenience of managementWG (Working Group): A group of people who voluntarily participate in the specification of a protocol or of a document
IRTF (Internet Research Task Force): Some areas of technical interest to Internet participants are not yet ready for specification. Some of these are handled by the IRTF
IRSG (Internet Research Steering Group): The managing body for the IRTF, consisting mostly of IRSG working group chairs
![Page 17: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/17.jpg)
Introduction 1-17
What’s a Protocol?A human protocol and a computer network protocol:
Hi
HiTCP connectionrequest
TCP connectionresponse
Get http://www.awl.com/kurose-ross
Got thetime?
2:00<file>time
Q: Other human protocols?
![Page 18: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/18.jpg)
Introduction 1-18
What’s a Protocol?Network protocols:Human protocols:
“What’s the time?”“I have a question”Introductions
… specific msgs sent… specific actions taken
when msgs received, or other events
Machines rather than humansAll 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 19: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/19.jpg)
Introduction 1-19
What’s a Protocol?Communication protocols are complex so they are structured in layers
Each protocol layer makes uses of the services provided by the layer below and provides a service to the layer above
Sending a message to the server involves
Preparing the dataFormatting the messageFinding the address of the serverFinding a path through the Internet to the serverConnecting to the server …Finally sending the message to the server
![Page 20: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/20.jpg)
Introduction 1-20
Chapter 1: Roadmap
1.1 What is the Internet?1.2 Network edge1.3 Network core1.4 Network access and physical media1.5 Internet structure and ISPs1.6 Delay & loss in packet-switched networks1.7 Protocol layers, service models1.8 History
![Page 21: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/21.jpg)
Introduction 1-21
A closer look at Network Structure:
Network edge:applications and hostsNetwork core:
RoutersNetwork of networks
Access networks, physical media:communication links
![Page 22: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/22.jpg)
Introduction 1-22
The Network Edge:End systems (hosts):
Run application programse.g. Web, emailAt “edge of network”
Client/server modelClient host requests, receives service from always-on serverE.g. Web browser/server; email client/server
Peer-to-peer modelMinimal (or no) use of dedicated serversE.g. Skype, BitTorrent, KaZaA
![Page 23: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/23.jpg)
Introduction 1-23
Network Edge: Connection-Oriented Service
Goal: data transfer between end systemsHandshaking: setup (prepare for) data transfer ahead of time
Hello, hello back human protocolSet 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 24: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/24.jpg)
Introduction 1-24
Network Edge: Connectionless Service
Goal: App’s using TCP:data transfer between end systems
Same as before!UDP - User Datagram Protocol [RFC 768]:
Connectionless Unreliable data transferNo flow controlNo congestion control
HTTP (Web), FTP (file transfer), Telnet (remote login), SMTP (email)
App’s using UDP:Streaming media, teleconferencing, DNS, Internet telephony
![Page 25: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/25.jpg)
Introduction 1-25
Chapter 1: Roadmap
1.1 What is the Internet?1.2 Network edge1.3 Network core1.4 Network access and physical media1.5 Internet structure and ISPs1.6 Delay & loss in packet-switched networks1.7 Protocol layers, service models1.8 History
![Page 26: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/26.jpg)
Introduction 1-26
The Network CoreMesh of interconnected routers
The fundamental question: how is data transferred through net?
Circuit-switching:dedicated circuit per call: telephone netPacket-switching: data sent thru net in discrete “chunks”
![Page 27: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/27.jpg)
Introduction 1-27
Network Core: Circuit Switching
End-end resources reserved for “call”Link bandwidth, switch capacityDedicated resources: no sharingCircuit-like (guaranteed) performanceCall setup required
![Page 28: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/28.jpg)
Introduction 1-28
Network Core: Circuit SwitchingNetwork resources
(e.g., bandwidth) divided into “pieces”Pieces allocated to callsResource piece idle if not used by owning call (no sharing)
Dividing link bandwidth into “pieces”
Frequency divisionTime division
![Page 29: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/29.jpg)
Introduction 1-29
Circuit Switching: FDM and TDM
FDM
frequency
timeTDM
frequency
time
4 usersExample:
![Page 30: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/30.jpg)
Introduction 1-30
Numerical Example
How long does it take to send a file of 640,000 bits from host A to host B over a circuit-switched network?
All links are 1.536 MbpsEach link uses TDM with 24 slots/sec500 msec to establish end-to-end circuit
Work it out!
![Page 31: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/31.jpg)
Introduction 1-31
Network Core: Packet SwitchingEach end-end data stream
divided into packetsUser A, B packets sharenetwork resourcesEach packet uses full link bandwidth Resources used as needed
Resource contention:Aggregate resource demand can exceed amount availableCongestion: packets queue, wait for link useStore and forward: packets move one hop at a time
Node receives complete packet before forwarding
Bandwidth division into “pieces”Dedicated allocationResource reservation
![Page 32: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/32.jpg)
Introduction 1-32
Packet Switching: Statistical Multiplexing100 Mb/sEthernet CA
B
statistical multiplexing
1.5 Mb/s
D
queue of packetswaiting for output
link
E
Sequence of A & B packets does not have fixed pattern, shared on demand statistical multiplexing
TDM: each host gets same slot in revolving TDM frame
![Page 33: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/33.jpg)
Introduction 1-33
Packet Switching versus Circuit Switching
Packet switching allows more users to use network!
1 Mb/s linkEach 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
N users1 Mbps link
Q: how did we get value 0.0004?
![Page 34: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/34.jpg)
Introduction 1-34
Packet Switching versus Circuit Switching
Probability that a user is active p=0.1Probability that a user is inactive q=1-pWe want to find N such that
∑=
− <−⎟⎟⎠
⎞⎜⎜⎝
⎛
<><>
N
i
iNi ppiN
kandactiveareNofoutkMbpsinputAggregate
11001.0)1(
001.0}10 Pr{001.0}1 Pr{
![Page 35: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/35.jpg)
Introduction 1-35
Packet Switching versus Circuit Switching
Is packet switching a “slam dunk winner?”
Great for bursty dataResource sharingSimpler, no call setup
Excessive congestion: packet delay and lossProtocols needed for reliable data transfer, congestion control
Q: How to provide circuit-like behavior?Bandwidth guarantees needed for audio/video appsStill an unsolved problem (chapter 7)
![Page 36: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/36.jpg)
Introduction 1-36
Packet-Switching: Store-and-Forward
R R RL
Example:Takes L/R seconds to transmit (push out) packet of L bits on to link or R bpsEntire packet must arrive at router before it can be transmitted on next link: store and forwardDelay = 3L/R (assuming zero propagation delay)
L = 7.5 MbitsR = 1.5 Mbpsdelay = 15 sec
more on delay shortly …
![Page 37: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/37.jpg)
Introduction 1-37
Packet-Switched Networks: Forwarding
Goal: move packets through routers from source to destination
We’ll study several path selection (i.e. routing) algorithms (chapter 4)
Datagram network:Destination address in packet determines next hopRoutes may change during sessionAnalogy: driving, asking directions
Virtual circuit network:Each packet carries tag (virtual circuit ID), tag determines next hopFixed path determined at call setup time, remains fixed thru callRouters maintain per-call state
![Page 38: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/38.jpg)
Introduction 1-38
ClarificationSwitching Paradigm
Circuit Switching vs. Packet Switching (or Message Switching) occurs at the physical switching layerCircuit Switching is the system usually used by telephone networks but is not used in the Internet (except, e.g., when you dial up to an ISP using a modem)
Network Layer (Assuming Packet Switching)Datagram and Virtual Circuits are network service models at the Network LayerCurrent Internet architecture only provides a Datagram service
![Page 39: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/39.jpg)
Introduction 1-39
Network TaxonomyTelecommunication
networks
Circuit-switchednetworks
FDM TDM
Packet-switchednetworks
Networkswith VCs
DatagramNetworks
Datagram network is not, a-priori, forced to be connection-oriented or connectionlessInternet is a Datagram Network. Provides both connection-oriented (TCP) and connectionless services (UDP) to apps
![Page 40: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/40.jpg)
Introduction 1-40
Chapter 1: Roadmap
1.1 What is the Internet?1.2 Network edge1.3 Network core1.4 Network access and physical media1.5 Internet structure and ISPs1.6 Delay & loss in packet-switched networks1.7 Protocol layers, service models1.8 History
![Page 41: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/41.jpg)
Introduction 1-41
Access Networks and Physical Media
Q: How to connect end systems to edge router?Residential access netsInstitutional access networks (school, company)Mobile access networks
Keep in mind: Bandwidth (bits per second) of access network?Shared or dedicated?
![Page 42: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/42.jpg)
Introduction 1-42
Residential Access: Point to Point Access
Dialup via modemUp to 56Kbps direct access to router (often less)Can’t surf and phone at same time: can’t be “always on”
ADSL: asymmetric digital subscriber lineUp to 1 Mbps upstream (today typically < 256 kbps)Up to 8 Mbps downstream (today typically < 1 Mbps)FDM: 50 kHz - 1 MHz for downstream
4 kHz - 50 kHz for upstream0 kHz - 4 kHz for ordinary telephone
![Page 43: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/43.jpg)
Introduction 1-43
Residential Access: Cable Modems
HFC: hybrid fiber coaxAsymmetric: up to 30Mbps downstream, 2 Mbps upstreamIs shared broadcast medium
Network of cable and fiber attaches homes to ISP router
Homes share access to router Deployment: available via cable TV companies
![Page 44: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/44.jpg)
Introduction 1-44
Residential Access: Cable Modems
Diagram: http://www.cabledatacomnews.com/cmic/diagram.html
![Page 45: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/45.jpg)
Introduction 1-45
Cable Network Architecture: Overview
Typically 500 to 5,000 homes
cable headend
cable distributionnetwork (simplified) home
![Page 46: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/46.jpg)
Introduction 1-46
Cable Network Architecture: Overview
cable headend
cable distributionnetwork home
![Page 47: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/47.jpg)
Introduction 1-47
Cable Network Architecture: Overview
cable headend
cable distributionnetwork home
Home Environment
Splitter
Set-Top Box
Coax Coax
Cable Modem
10Mbps Ethernet
PC
![Page 48: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/48.jpg)
Introduction 1-48
Cable Network Architecture: Overview
cable headend
cable distributionnetwork home
Channels
VIDEO
VIDEO
VIDEO
VIDEO
VIDEO
VIDEO
DATA
DATA
CONTROL
1 2 3 4 5 6 7 8 9
FDM:
![Page 49: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/49.jpg)
Introduction 1-49
Company Access: Local Area Networks
Company/Univ. local area network (LAN) connects end system to edge routerEthernet:
Shared or dedicated link connects end system and router10 Mbs, 100Mbps, Gigabit Ethernet
LANs: chapter 5
![Page 50: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/50.jpg)
Introduction 1-50
Wireless Access NetworksShared wireless access network connects end system to router
Via base station aka “access point”
Wireless LANs:IEEE 802.11a/b/g (WiFi): 11 or 54 Mbps
Wider-area wireless accessProvided by telco operator3G ~ 384 kbps
• Will it happen widely??GPRS in Europe/USWiMAX (802.16e)
basestation
mobilehosts
router
![Page 51: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/51.jpg)
Introduction 1-51
Wireless Technologies
WWAN (3G,4G?)
WLAN (Wi-Fi)
WPAN
WMAN (Wi-Max)
BluetoothUWBRFID
coverage
![Page 52: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/52.jpg)
Introduction 1-52
Home NetworksTypical home network components:
ADSL or cable modemRouter/firewall/NATEthernetWireless access point
wirelessaccess point
router/firewall
Ethernet
wirelesslaptops
to/fromcable
headend
cablemodem
![Page 53: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/53.jpg)
Introduction 1-53
Physical MediaTwisted Pair (TP)
Bit: propagates betweentransmitter/rcvr pairsPhysical link: what lies between transmitter & receiverGuided media:
Signals propagate in solid media: copper, fiber, coax
Unguided media:Signals propagate freely, e.g., radio
Least expensive and most commonly usedTwo insulated copper wires
Category 3: traditional phone wires, 10 Mbps EthernetCategory 5: 100Mbps Ethernet
![Page 54: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/54.jpg)
Introduction 1-54
Physical Media: Coax, Fiber
Coaxial cable:Two concentric copper conductorsBidirectionalCommon in cable televisionBaseband:
Single channel on cableLegacy Ethernet
Broadband:Multiple channels on cableHFC (Hybrid Fiber Coaxial)
Fiber optic cable:Glass fiber carrying light pulses, each pulse a bitHigh-speed operation:
High-speed point-to-point transmission (e.g., 10’s-100’s Gps)
Low error rate: repeaters spaced far apart; immune to electromagnetic noiseLong-haul: overseas link
![Page 55: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/55.jpg)
Introduction 1-55
Physical Media: Radio
Signal carried in electromagnetic spectrumNo physical “wire”BidirectionalPropagation environment effects:
Reflection Obstruction by objectsInterference
Multipath propagation
Signal at Sender
Signal at Receiver
![Page 56: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/56.jpg)
Introduction 1-56
Physical Media: Radio
Radio link types:Terrestrial microwave
e.g. up to 45 Mbps channelsLAN (e.g., Wifi)
11Mbps, 54 MbpsWide-area (e.g., cellular)
e.g. 3G: hundreds of kbpsSatellite
Kbps to 45Mbps channel (or multiple smaller channels)270 msec end-end delayGeosynchronous versus low altitude
![Page 57: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/57.jpg)
Introduction 1-57
Chapter 1: roadmap
1.1 What is the Internet?1.2 Network edge1.3 Network core1.4 Network access and physical media1.5 Internet structure and ISPs1.6 Delay & loss in packet-switched networks1.7 Protocol layers, service models1.8 History
![Page 58: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/58.jpg)
Introduction 1-58
Internet Structure: Network of Networks
Roughly hierarchicalAt center: “tier-1” ISPs (e.g., MCI, Sprint, AT&T, Cable and Wireless), 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 59: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/59.jpg)
Introduction 1-59
Tier-1 ISP: e.g., SprintSprint US backbone network
Seattle
Atlanta
Chicago
Roachdale
Stockton
San Jose
Anaheim
Fort Worth
Orlando
Kansas City
CheyenneNew York
PennsaukenRelayWash. DC
Tacoma
DS3 (45 Mbps)OC3 (155 Mbps)OC12 (622 Mbps)OC48 (2.4 Gbps)
![Page 60: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/60.jpg)
Introduction 1-60
Internet Structure: Network of Networks
“Tier-2” ISPs: smaller (often regional) ISPsConnect to one or more tier-1 ISPs, possibly other tier-2 ISPs
Tier 1 ISP
Tier 1 ISP
Tier 1 ISP
NAP
Tier-2 ISPTier-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 oftier-1 provider
Tier-2 ISPs also peer privately with each other, interconnect at NAP
![Page 61: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/61.jpg)
Introduction 1-61
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
NAP
Tier-2 ISPTier-2 ISP
Tier-2 ISP Tier-2 ISP
Tier-2 ISP
localISPlocal
ISPlocalISP
localISP
localISP Tier 3
ISP
localISP
localISP
localISP
Local and tier- 3 ISPs are customersof higher tier ISPs
Connecting them to rest of Internet
![Page 62: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/62.jpg)
Introduction 1-62
Internet Structure: Network of Networks
A packet passes through many networks!
Tier 1 ISP
Tier 1 ISP
Tier 1 ISP
NAP
Tier-2 ISPTier-2 ISP
Tier-2 ISP Tier-2 ISP
Tier-2 ISP
localISPlocal
ISPlocalISP
localISP
localISP Tier 3
ISP
localISP
localISP
localISP
![Page 63: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/63.jpg)
Introduction 1-63
Chapter 1: Roadmap
1.1 What is the Internet?1.2 Network edge1.3 Network core1.4 Network access and physical media1.5 Internet structure and ISPs1.6 Delay & loss in packet-switched networks1.7 Protocol layers, service models1.8 History
![Page 64: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/64.jpg)
Introduction 1-64
How do Loss and Delay Occur?Packets queue in router buffers
Packet arrival rate to link exceeds output link capacityPackets queue, wait for turn
A
B
packet being transmitted (delay)
packets queueing (delay)
free (available) buffers: arriving packets dropped (loss) if no free buffers
![Page 65: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/65.jpg)
Introduction 1-65
Four Sources of Packet Delay
1. Nodal processing:Check bit errorsDetermine output link
2. QueueingTime waiting at output link for transmission Depends on congestion level of router
A
Bnodal
processing queueing
![Page 66: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/66.jpg)
Introduction 1-66
Delay in packet-switched networks3. Transmission delay:
R=link bandwidth (bps)L=packet length (bits)Time to send bits into link = L/R
4. Propagation delay:d = length of physical links = propagation speed in medium (~2x108 m/sec)propagation delay = d/s
propagation
transmission
Note: s and R are very different quantities!
A
Bnodal
processing queueing
![Page 67: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/67.jpg)
Introduction 1-67
Caravan Analogy
Cars “propagate” at 100 km/hrToll booth takes 12 sec to service a car (transmission time)car~bit; caravan ~ packetQ: How long until caravan is lined up before 2nd toll booth?
Time to “push” entire caravan through toll booth onto highway = 12*10 = 120 secTime for last car to propagate from 1st to 2nd toll both: 100km/(100km/hr)= 1 hrA: 62 minutes
toll booth
toll booth
ten-car caravan
100 km 100 km
![Page 68: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/68.jpg)
Introduction 1-68
Caravan Analogy (more)
Cars now “propagate” at 1000 km/hrToll booth now takes 1 min to service a carQ: Will cars arrive to 2nd booth before all cars serviced at 1st booth?
Yes! After 7 min, 1st car at 2nd booth and 3 cars still at 1st booth.1st bit of packet can arrive at 2nd router before packet is fully transmitted at 1st router!
See Ethernet applet at AWL Web site
toll booth
toll booth
ten-car caravan
100 km 100 km
![Page 69: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/69.jpg)
Introduction 1-69
Nodal Delay
proptransqueueprocnodal ddddd +++=
dproc = processing delayTypically a few microsecs or less
dqueue = queuing delayDepends on congestion level in the router
dtrans = transmission delay= L/R, significant for low-speed links
dprop = propagation delayA few microsecs to hundreds of msecs
![Page 70: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/70.jpg)
Introduction 1-70
Queueing Delay (revisited)
R=link bandwidth (bps)L=packet length (bits)a=average packet arrival rate
traffic intensity = La/R
La/R ~ 0: average queueing delay smallLa/R -> 1: delays become largeLa/R > 1: more “work” arriving than can be serviced, average delay infinite!
![Page 71: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/71.jpg)
Introduction 1-71
“Real” Internet Delays and Routes
What do “real” Internet delay & loss look like? Traceroute program: provides delay measurement from source to router along end-end Internet path towards destination. For all i:
Sends three packets that will reach router i on path towards destinationRouter i will return packets to senderSender times interval between transmission and reply
3 probes
3 probes
3 probes
![Page 72: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/72.jpg)
Introduction 1-72
“Real” Internet Delays and Routestraceroute: gaia.cs.umass.edu to www.eurecom.fr
1 cs-gw (128.119.240.254) 1 ms 1 ms 2 ms2 border1-rt-fa5-1-0.gw.umass.edu (128.119.3.145) 1 ms 1 ms 2 ms3 cht-vbns.gw.umass.edu (128.119.3.130) 6 ms 5 ms 5 ms4 jn1-at1-0-0-19.wor.vbns.net (204.147.132.129) 16 ms 11 ms 13 ms 5 jn1-so7-0-0-0.wae.vbns.net (204.147.136.136) 21 ms 18 ms 18 ms 6 abilene-vbns.abilene.ucaid.edu (198.32.11.9) 22 ms 18 ms 22 ms7 nycm-wash.abilene.ucaid.edu (198.32.8.46) 22 ms 22 ms 22 ms8 62.40.103.253 (62.40.103.253) 104 ms 109 ms 106 ms9 de2-1.de1.de.geant.net (62.40.96.129) 109 ms 102 ms 104 ms10 de.fr1.fr.geant.net (62.40.96.50) 113 ms 121 ms 114 ms11 renater-gw.fr1.fr.geant.net (62.40.103.54) 112 ms 114 ms 112 ms12 nio-n2.cssi.renater.fr (193.51.206.13) 111 ms 114 ms 116 ms13 nice.cssi.renater.fr (195.220.98.102) 123 ms 125 ms 124 ms14 r3t2-nice.cssi.renater.fr (195.220.98.110) 126 ms 126 ms 124 ms15 eurecom-valbonne.r3t2.ft.net (193.48.50.54) 135 ms 128 ms 133 ms16 194.214.211.25 (194.214.211.25) 126 ms 128 ms 126 ms17 * * *18 * * *19 fantasia.eurecom.fr (193.55.113.142) 132 ms 128 ms 136 ms
Three delay measurements from gaia.cs.umass.edu to cs-gw.cs.umass.edu
* means no response (probe lost, router not replying)
trans-oceaniclink
![Page 73: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/73.jpg)
Introduction 1-73
Packet Loss
Queue (aka buffer) preceding link in buffer has finite capacityWhen packet arrives to full queue, packet is dropped (aka lost)Lost packet may be retransmitted by previous node, by source end system, or not retransmitted at all
![Page 74: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/74.jpg)
Introduction 1-74
Chapter 1: Roadmap
1.1 What is the Internet?1.2 Network edge1.3 Network core1.4 Network access and physical media1.5 Internet structure and ISPs1.6 Delay & loss in packet-switched networks1.7 Protocol layers, service models1.8 History
![Page 75: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/75.jpg)
Introduction 1-75
Protocol “Layers”Networks are complex!
Many “pieces”:HostsRoutersLinks of various mediaApplicationsProtocolsHardware and software
Question:Is there any hope of organizing structure of
network?
Or at least our discussion of networks?
![Page 76: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/76.jpg)
Introduction 1-76
Organization of Air Travel
A series of steps
ticket (purchase)
baggage (check)
gates (load)
runway takeoff
airplane routing
ticket (complain)
baggage (claim)
gates (unload)
runway landing
airplane routing
airplane routing
![Page 77: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/77.jpg)
Introduction 1-77
Layering of Airline Functionality
ticket (purchase)
baggage (check)
gates (load)
runway (takeoff)
airplane routing airplane routing airplane routing
ticket (complain)
baggage (claim)
gates (unload)
runway (land)
airplane routing
ticket
baggage
gate
takeoff/landing
airplane routing
departureairport
intermediate air-trafficcontrol centers
arrivalairport
Layers: each layer implements a serviceVia its own internal-layer actionsRelying on services provided by layer below
![Page 78: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/78.jpg)
Introduction 1-78
Why Layering?Dealing with complex systems:
Explicit structure allows identification, relationship of complex system’s pieces
Layered reference model for discussionModularization eases maintenance, updating of system
Change of implementation of layer’s service transparent to rest of systemE.g., change in gate procedure doesn’t affect rest of system
Layering considered harmful?
![Page 79: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/79.jpg)
Introduction 1-79
Internet Protocol StackApplication: supporting network applications
FTP, SMTP, HTTPTransport: process-process data transfer
TCP, UDPNetwork: routing of datagrams from source to destination
IP, routing protocolsLink: data transfer between neighboring network elements
PPP, EthernetPhysical: bits “on the wire”
application
transport
network
link
physical
![Page 80: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/80.jpg)
sourceapplicationtransportnetwork
linkphysical
HtHn M
segment Ht
datagram
destinationapplicationtransportnetwork
linkphysical
HtHnHl MHtHn M
Ht MM
networklink
physical
linkphysical
HtHnHl MHtHn M
HtHn M
HtHnHl M
switch
router
Encapsulationmessage M
Ht M
Hnframe
Introduction 1-80
![Page 81: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/81.jpg)
Introduction 1-81
Chapter 1: Roadmap
1.1 What is the Internet?1.2 Network edge1.3 Network core1.4 Network access and physical media1.5 Internet structure and ISPs1.6 Delay & loss in packet-switched networks1.7 Protocol layers, service models1.8 History
![Page 82: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/82.jpg)
Introduction 1-82
Internet History
1961: Kleinrock -queueing theory shows effectiveness of packet-switching1964: Baran - packet-switching in military nets1967: ARPAnet conceived by Advanced Research Projects Agency1969: first ARPAnet node operational
1961-1972: Early packet-switching principles
The first link in theInternet backbone
UCLA
SRI
crash
The first message: LO!
What was the first message ever sent on the Internet? (LOGIN)
We sent an “L” - did you get the “L”? YEP!We sent an “O” - did you get the “O”? YEP!We sent a “G” - did you get the “G”?
![Page 83: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/83.jpg)
Introduction 1-83
Internet History1961-1972: Early packet-switching principles
1972:ARPAnet public demonstrationNCP (Network Control Protocol) first host-host protocol First e-mail programARPAnet has 15 nodes
The Internet is Born!at UCLA on October 29, 1969What it looked like at the end of 1969
![Page 84: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/84.jpg)
Introduction 1-84
Internet History1972-1980: Internetworking, new and proprietary nets1970: ALOHAnet satellite network in Hawaii1974: Cerf and Kahn -architecture for interconnecting networks1976: Ethernet at Xerox PARCate70’s: proprietary architectures: DECnet, SNA, XNAlate 70’s: switching fixed length packets (ATM precursor)1979: ARPAnet has 200 nodes
Cerf and Kahn’s internetworking principles:
minimalism, autonomy -no internal changes required to interconnect networksbest effort service modelstateless routersdecentralized control
define today’s Internet architecture
![Page 85: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/85.jpg)
Introduction 1-85
Internet History1980-1990: new protocols, a proliferation of networks
1983: deployment of TCP/IP1982: SMTP e-mail protocol defined 1983: DNS defined for name-to-IP-address translation1985: FTP protocol defined1988: TCP congestion control
New national networks: Csnet, BITnet, NSFnet, Minitel100,000 hosts connected to confederation of networks
![Page 86: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/86.jpg)
Introduction 1-86
Internet History1990, 2000’s: commercialization, the Web, new apps
Early 1990’s: ARPAnet decommissioned1991: NSF lifts restrictions on commercial use of NSFnet (decommissioned, 1995)Early 1990s: Web
Hypertext [Bush 1945, Nelson 1960’s]HTML, HTTP: Berners-Lee1994: Mosaic, later NetscapeLate 1990’s: commercialization of the Web
Late 1990’s – 2000’s:More killer apps: instant messaging, P2P file sharingNetwork security to forefrontEst. 50 million host, 100 million+ usersBackbone links running at Gbps
![Page 87: COMP 361: “Network Part I”](https://reader034.fdocuments.in/reader034/viewer/2022050612/6273a21a59665558fe7b7739/html5/thumbnails/87.jpg)
Introduction 1-87
Introduction: SummaryCovered a “ton” of material! You now have:
Internet overviewWhat’s a protocol?Network edge, core, access network
Packet-switching versus circuit-switching
Internet/ISP structurePerformance: loss, delayLayering and service modelsHistory
Context, overview, “feel” of networkingMore depth, detail to follow!