CSci4211: Introduction 1
Chapter 1: Introduction
What is a Network? What is Internet?
Compared with postal service & telephone system
“Nuts and Bolts” description
Services provided
Chapter 1: Introduction What is a Network? What is Internet? - - PowerPoint PPT Presentation
Chapter 1: Introduction What is a Network? What is Internet? Compared with postal service & telephone system Nuts and Bolts description Services provided Packet Switching vs. Circuit Switching Fundamental Issues
CSci4211: Introduction 1
Compared with postal service & telephone system
“Nuts and Bolts” description
Services provided
– use Internet as example
CSci4211: Introduction 2
CSci4211: Introduction 3
– two or more nodes connected by a link, or
two or more networks
connected by two or more nodes
CSci4211: Introduction 4
csci4211 Introduction
6
source: http://www.internetworldstats.com/stats.htm
csci4211 Introduction
7
High-tier Low-tier High Mobility Low Mobility Wide Area Local Area
mobile computing location services
etc., soon fridges, … everything
CSci4211: Introduction 8
IoT & Smart Cities
1: Introduction
9
CPU CPU
Memory
Controller
PCI Bridge
Memory
PCI Bus SCSI
Ethernet
FC
SAN LAN
Disk Disk Disk
1: Introduction
10
– deliver all kinds of information, news, music, video, shopping – web, spotify, iTune, youtube, Netflix, Hulu, …
– keep in touch with friends and strangers – email, facebook, twitter, …
– mobile, cloud computing and services
CSci4211: Introduction 11
CSci4211: Introduction 12
CSci4211: Introduction 13
There are many types of networks! Key Features of Networks
used by many users, often concurrently
two “end points” cannot directly reach each other need other nodes/entities to relay
CSci4211: Introduction 14
– Interconnected ISPs
– e.g., TCP, IP, HTTP, Skype, 802.11
– RFC: Request for comments – IETF: Internet Engineering Task Force
mobile network global ISP regional ISP home network institutional network
CSci4211: Introduction 13
– Web, VoIP, email, games, e- commerce, social nets, …
– hooks that allow sending and receiving app programs to “connect” to Internet – provides service options, analogous to postal service
mobile network global ISP regional ISP home network institutional network
CSci4211: Introduction 14
CSci4211: Introduction 17
Postal:
Mailboxes
Local/Branch Postal Offices, Regional, Central Postal Offices
Mail Sorting Machines
Postmen, Delivery Trucks/Trains/Planes, Roads, … Telephone:
Phones
Local Switching Office, Central Switching Offices, …
Telephone Switches
Wires Internet ?
CSci4211: Introduction 18
– Hosts (or end systems): servers, PCs, laptops, mobile devices, smart meters, …… – Switches: routers, switches, …
– point-to-point – multiple access
CSci4211: Introduction 19
– two or more nodes connected by a link, or – two or more networks connected by two or more nodes
1: Introduction
20
– signals propagate in solid media: copper, fiber
– signals propagate freelye.g., radio
– Category 3: traditional phone wires, 10 Mbps ethernet – Category 5 TP: 100Mbps ethernet
1: Introduction
21
– baseband: single channel
– broadband: multiple channel on cable
100Mbps Ethernet high-speed point-to-point
transmission (e.g., 5 Gps) low error rate
1: Introduction
22
– reflection – obstruction by objects – interference
e.g. up to 45 Mbps channels
2Mbps, 11Mbps
e.g. CDPD, 10’s Kbps
up to 50Mbps channel (or
multiple smaller channels)
270 Msec end-end delay geosynchronous versus
LEOS
CSci4211: Introduction 23
First class, express mail, bulk rate, certified, registered, …
You may get a busy dial tone
Once connected, consistently good quality, unless using cell phones
Reliable connection-oriented or unreliably connectionless services!
You never get a busy dial tone, but things can be very slow!
You can’t ask for express delivery (not at the moment at least!)
CSci4211: Introduction 24
– Provide services for many people at same time – Carry bits/information for many people at same time
– How to share resources among multiple users, and transfer data from one node to another node
– How to find name/address of the party (or parties) you would like to communicate with – Address: byte-string that identifies a node
– Routing: process of determining how to send packets towards the destination based on its address
– transfer data from source to destination “hop-by-hop”
CSci4211: Introduction 25
– enables statistical multiplexing
– better utilization of network resources for transfer of
“bursty” data traffic
CSci4211: Introduction 26
– Provide services for many people at same time – Carry bits/information for many people at same time
– Switching: how to deliver information from point A to point B? – Multiplexing: how to share resources among many users Think about postal service and telephone system!
CSci4211: Introduction 27
– set up a dedicated route (“circuit”) first – carry all bits of a “conversation” on one circuit
– divide information into small chunks (“packets”) – each packet delivered independently – “store-and-forward” packets
(also Postal Service, but they don’t tear your mail into pieces first!)
CSci4211: Introduction 28
CSci4211: Introduction 29
frequency division time division code division
CSci4211: Introduction 30
CSci4211: Introduction 31
– All links are 1.536 Mbps – Each link uses TDM with 24 slots/sec – 500 msec to establish end-to-end circuit
CSci4211: Introduction 32
CSci4211: Introduction 33
CSci4211: Introduction 34
– Example: telephone network – Call blocking when all resources are used
Node receives complete
packet before forwarding
Packets may suffer delay or
losses!
Bandwidth division into “pieces” Dedicated allocation Resource reservation
35 CSci4211: Introduction
CSci4211: Introduction 36
100 Mb/s Ethernet 1.5 Mb/s
statistical multiplexing
queue of packets waiting for output link
37 CSci4211: Introduction
R R R L more on delay later …
CSci4211: Introduction 38
– 100 kb/s when “active” – active 10% of time
– 10 users
– with 35 users, probability > 10 active less than .0004
Q: how did we get value 0.0004?
M N n n M n
1
CSci4211: Introduction 39
CSci4211: Introduction 40
Item Circuit-switched Packet-switched
Dedicated “copper” path Yes No Bandwidth available Fixed Dynamic Potentially wasted bandwidth Yes No (not really!) Store-and-forward transmission No Yes Each packet/bit always follows the same route Yes Not necessarily Call setup Required Not Needed When can congestion occur At setup time On every packet Effect of congestion Call blocking Queuing delay
– resource sharing – simpler, no call setup
– protocols needed for reliable data transfer, congestion control
– bandwidth guarantees needed for audio/video apps – still an unsolved problem (chapter 7)
Q: human analogies of reserved resources (circuit switching) versus on-demand allocation (packet-switching)?
CSci4211: Introduction 41
CSci4211: Introduction 42
– enables statistical multiplexing
– better utilization of network resources for transfer of
“bursty” data traffic
– architecture: functional division & function placement – hourglass Internet architecture: enables diverse
applications and accommodates evolving technologies
– “dumb” network (core): simple packet-switched, store-
forward, connectionless “datagram” service, with core functions: global addressing, routing & forwarding
– “smart” end systems/edges: servers, PCs, mobile devices, …;
diverse and ever-emerging new applications!
CSci4211: Introduction 43
WiFi, Bluetooth, Docsis, gMPLS, DWDM/fiber, …, 3G/4G cellular, …. p2p file sharing, skype, YouTube, Netflix, Cloud Computing bitTorrent, DHT, SIP, DASH, ….
enabling diverse applications & new types of end devices accommodating evolving & new technologies network core network edge/end hosts
44
– Lower three layers are implemented everywhere – Top two layers are implemented only at hosts Network Datalink Physical Network Datalink Physical Network Datalink Physical Physical medium Application Transport
Host A
Application Transport
Host B Router
CSci4211: Introduction
– routers – network of networks
CSci4211: Introduction 45
– fiber, copper, radio, satellite – transmission rate = bandwidth
local ISP company network regional ISP router workstation server mobile
46 CSci4211: Introduction
– run application programs – e.g. Web, email – at “edge of network”
– client host requests, receives service from always-on server – e.g. Web browser/server; email client/server
– minimal (or no) use of dedicated servers – e.g. Skype, BitTorrent, KaZaA
CSci4211: Introduction 47
– run application programs – e.g. Web, email – at “edge of network”
– client host requests, receives service from always-on server – e.g. Web browser/server; email client/server
– minimal (or no) use of dedicated servers – e.g. Skype, BitTorrent, KaZaA cloud computing
CSci4211: Introduction 48
– Hello, hello back human protocol – set up “state” in two communicating hosts
– Internet’s connection-
– loss: acknowledgements and retransmissions
– sender won’t overwhelm receiver
– senders “slow down sending rate” when network congested
CSci4211: Introduction 49
– same as before!
– connectionless – unreliable data transfer – no flow control – no congestion control
CSci4211: Introduction 50
– how network is shared – how to find the other party (person, website, …) you want – how is data transferred through net?
CSci4211: Introduction 51
home users banking & e-commerce dumb & smart phones POTS VoIP music streaming games surveillance & security
video streaming & IPTV
web
stationary) users
smart devices & appliances
speed connection
connectivity with varying bandwidth
and services
technologies
smart pads & e-readers
social networks sensors & smart home
CSci4211: Introduction 52
providers) with large geographical span
ISPs
huge data centers
rich topology
storage capacities to support cloud, mobile computing/services
CSci4211: Introduction 53
CSci4211: Introduction 54
– hosts – routers – links of various media – hardware, software – applications – protocols – …..
CSci4211: Introduction 55
ticket (purchase) baggage (check) gates (load) runway takeoff airplane routing ticket (complain) baggage (claim) gates (unload) runway landing airplane routing airplane routing
CSci4211: Introduction 56
ticket (purchase) baggage (check) gates (load) runway (takeoff) airplane routing
departure airport arrival airport intermediate air-traffic control centers
airplane routing airplane routing ticket (complain) baggage (claim gates (unload) runway (land) airplane routing
ticket baggage gate takeoff/landing airplane routing
– via its own internal-layer actions – relying on services provided by layer below
CSci4211: Introduction 57
– layered reference model for discussion
– change of implementation of layer’s service transparent to rest of system – e.g., change in gate procedure doesn’t affect rest of system
CSci4211: Introduction 58
– FTP, SMTP, HTTP, DASH, …
– TCP, UDP
– IP, routing protocols
– PPP, Ethernet
CSci4211: Introduction 59
CSci4211: Introduction 60
complex system
N-1 to provide a service to layer N+1
independent of its implementation – Layer N change doesn’t affect
– Information/complexity hiding – Similar to object oriented methodology
CSci4211: Introduction 61
– Peering entities in layer N provide service by communicating with each other using the service provided by layer N-1
CSci4211: Introduction 62
Make sure Bob is awake Bob can speak English Bob can understand English Bob is willing to talk
– Format. – Order of msgs sent and received among network entities (two or more) – Actions taken on msg transmission, receipt
Got the time?
Q: What are the purposes of first hi-hi exchange
CSci4211: Introduction 63
Got the time?
TCP connection request TCP connection response
Get http://www.cnn.com
CSci4211: Introduction 64
CSci4211: Introduction 65
– The format and the meaning of messages exchanged
– Examples: traffic control, open round-table discussion etc
CSci4211: Introduction 66
– packets exchanged between peer entities
– packets handed to a layer by an upper layer
– Envelope within envelope: PDU = SDU + (optional) header or trailer
application transport network link physical
Ht Hn M
segment
Ht
datagram
destination
application transport network link physical
Ht Hn Hl M Ht Hn M Ht M M
network link physical link physical
Ht Hn Hl M Ht Hn M Ht Hn M Ht Hn Hl M
router switch
message
M Ht M Hn
frame
CSci4211: Introduction 67
CSci4211: Introduction 68
CSci4211: Introduction 69
– process-to-process communication – all layers exist to support this layer
– conversion of data to common format
– multimedia streaming presentation (e.g., mpeg-dash)
– session setup (and authentication) – recovery from failure (broken session)
CSci4211: Introduction 70
– connection-oriented (TCP) or connection-less (UDP) services – error control, flow/congestion control, …
– (global) naming and addressing, routing (build routing tables) – forwarding packets hop-by-hop across networks – avoidance of congested/failed links, traffic engineering, …
elements – Examples: Ethernet, 802.11 WiFi, PPP – framing and error/flow control – media access control
– encoding/decoding information (bits) into physical media – modulating & transmitting raw bits (0/1) over wire
CSci4211: Introduction 71
– modularization eases maintenance and updating – hide lower layer complexity/implementation details from higher layers
CSci4211: Introduction 72
applicatio n
SMTP
telnet, ssh
NFS/RPC
FTP, SCP
RealAudio RealVideo
802.11 WiFi
Flash DASH SOAP
VoIP IPTV
2.5G/3G/4G (GPRS,UMTS, WiMAX, LTE, …) Cellular Radio Networks DWDM MPLS/gMPLS
DSL or DOCSIS PPP
ICMP, OSPF, RIP, BGP, …
P2P
CSci4211: Introduction 73
CSci4211: Introduction 74
LANs International lines
Regional or local ISP
local ISPs
company university
National or tier-1 ISP National or tier-1 ISP IXPs
Regional ISPs
company
access via WiFi hotspots
Home users
Internet eXcange Points
Home users
– treat each other as equals
Tier-1 providers interconnect (peer) privately
IXP
Tier-1 providers also interconnect at Internet Exchange Point
CSci4211: Introduction 75
to/from customers peering to/from backbone
POP: point-of-presence
CSci4211: Introduction 76
– Connect to one or more tier-1 ISPs, possibly other tier-2 ISPs
IXP
Tier-2 ISP Tier-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 of tier-1 provider Tier-2 ISPs also peer privately with each other, interconnect at IXP
CSci4211: Introduction 77
– last hop (“access”) network (closest to end systems)
IXP
Tier-2 ISP Tier-2 ISP Tier-2 ISP Tier-2 ISP Tier-2 ISP local ISP local ISP local ISP local ISP local ISP Tier 3 ISP local ISP local ISP local ISP Local and tier- 3 ISPs are customers of higher tier ISPs connecting them to rest
CSci4211: Introduction 78
IXP
Tier-2 ISP Tier-2 ISP Tier-2 ISP Tier-2 ISP Tier-2 ISP local ISP local ISP local ISP local ISP local ISP Tier 3 ISP local ISP local ISP local ISP
CSci4211: Introduction 79
Routing & forwarding: how do packets go from A to B?
CSci4211: Introduction 81
CSci4211: Introduction 82
propagation transmission nodal processing queueing
for transmission
CSci4211: Introduction 83
CSci4211: Introduction 84
propagation transmission nodal processing queueing
– typically a few microsecs or less
– depends on congestion
– = L/R, significant for low-speed links
– a few microsecs to hundreds of msecs
prop trans queue proc nodal
CSci4211: Introduction 85
CSci4211: Introduction 86
10 Mbs Ethernet 1.5 Mbs 45 Mbs
statistical multiplexing
queue of packets waiting for output link
CSci4211: Introduction 87
CSci4211: Introduction 88
– sends three packets that will reach router i on path towards destination – router i will return packets to sender – sender times interval between transmission and reply.
3 probes 3 probes 3 probes
CSci4211: Introduction 89
CSci4211: Introduction 90
– instantaneous: rate at given point in time – average: rate over longer period of time server, with file of F bits to send to client link capacity Rs bits/sec link capacity Rc bits/sec pipe that can carry fluid at rate Rs bits/sec) pipe that can carry fluid at rate Rc bits/sec) server sends bits (fluid) into pipe
CSci4211: Introduction 91
Rs bits/sec Rc bits/sec
Rs bits/sec Rc bits/sec
CSci4211: Introduction 92
10 connections (fairly) share backbone bottleneck link R bits/sec Rs Rs Rs Rc Rc Rc R
CSci4211: Introduction 93
– e.g., TCP, IP, HTTP, FTP, PPP
– loosely hierarchical – public Internet versus private intranet
– RFC: Request for comments – IETF: Internet Engineering Task Force – IEEE local ISP company network regional ISP router workstation server mobile
CSci4211: Introduction 94
CSci4211: Introduction 95
– Provide services for many people at same time – Carry bits/information for many people at same time
– How to share resources among multiple users, and transfer data from one node to another node
– How to find name/address of the party (or parties) you would like to communicate with – Address: byte-string that identifies a node
– process of determining how to send packets towards the destination based on its address: finding out neighbors, building routing tables – transferring data from source to destination
CSci4211: Introduction 96
CSci4211: Introduction 97
CSci4211: Introduction 98
routing table
Routing protocols
IP protocol
ICMP protocol
Transport layer: TCP, UDP Data Link layer (Ethernet, WiFi, PPP, …) Physical Layer (fiber optics, radio, …)
CSci4211: Introduction 99
CSci4211: Introduction 100
– Key notions: protocols, services and interfaces
– Networks of networks! – Shared, distributed and complex system in global scale – No centralized authority
– addressing/naming – routing/forwarding – error/flow/congestion control, media access control
CSci4211: Introduction 101
– Read the supplementary notes that follow these one if you have time
– Learn how web works – Learn how email works – Understand what Domain Name System does for us – P2P File Sharing – Glance through Chapter 7: sections 7.1-7.2
CSci4211: Introduction 102
CSci4211: Introduction 98
– signals propagate in solid media: copper, fiber, coax
– signals propagate freely, e.g., radio
Gbps Ethernet
CSci4211: Introduction 99
host sending function:
known as packets, of length L bits
access network at transmission rate R
aka link capacity, aka link bandwidth
R: link transmission rate
host
1 2
two packets, L bits each packet transmission delay time needed to transmit L-bit packet into link
CSci4211: Introduction 100
transmission (e.g., 10’s-100’s Gbps transmission rate)
noise
CSci4211: Introduction 101
CSci4211: Introduction 107
– reflection –
– interference
– e.g. up to 45 Mbps channels
– 2Mbps, 11Mbps
– e.g. CDPD, 10’s Kbps
– up to 50Mbps channel (or multiple smaller channels) – 270 Msec end-end delay – geosynchronous versus LEOS
1: Introduction
108
1: Introduction
109
1: Introduction
110
1: Introduction
111
1: Introduction
112
1: Introduction
113
1: Introduction
114
centers
mobile network global ISP regional ISP home network institutional network
CSci4211: Introduction 103
telephone network Internet home dial-up modem ISP modem (e.g., AOL) home PC central
Uses existing telephony infrastructure Home is connected to central office up to 56Kbps direct access to router (often less) Can’t surf and phone at same time: not “always on”
CSci4211: Introduction 116
ISP
central office telephone network DSLAM voice, data transmitted at different frequencies over dedicated line to central office
DSL modem splitter
DSL access multiplexer
CSci4211: Introduction 105
Diagram: http://www.cabledatacomnews.com/cmic/diagram.html 118 CSci4211: Introduction
cable modem splitter
cable headend Channels
V I D E O V I D E O V I D E O V I D E O V I D E O V I D E O D A T A D A T A C O N T R O L 1 2 3 4 5 6 7 8 9
CSci4211: Introduction 107
ISP
data, TV transmitted at different frequencies over shared cable distribution network
cable modem splitter
cable headend CMTS cable modem termination system
CSci4211: Introduction 108
to/from headend or central office
cable or DSL modem router, firewall, NAT wired Ethernet (1 Gbps) wireless access point (54 Mbps)
wireless devices
in single box
CSci4211: Introduction 109
Ethernet switch institutional mail, web servers institutional router institutional link to ISP (Internet)
CSci4211: Introduction 110
– via base station aka “access point”
Mbps transmission rate
to Internet to Internet
CSci4211: Introduction 111
– forward packets from one router to the next, across links on path from source to destination – each packet transmitted at full link capacity
CSci4211: Introduction 112
CSci4211: Introduction 125
CSci4211: Introduction 126
Non-electrical (source: wikipedia)
Electrical:
theory shows effectiveness of packet- switching
switching in military nets
by Advanced Research Projects Agency
– ARPAnet public demonstration – NCP (Network Control Protocol) first host-host protocol – first e-mail program – ARPAnet has 15 nodes
CSci4211: Introduction 127
network in Hawaii
architecture for interconnecting networks
PARC
architectures: DECnet, SNA, XNA
length packets (ATM precursor)
Cerf and Kahn’s internetworking principles: – minimalism, autonomy - no internal changes required to interconnect networks – best effort service model – stateless routers – decentralized control define today’s Internet architecture
CSci4211: Introduction 128
CSci4211: Introduction 129
decommissioned
commercial use of NSFnet (decommissioned, 1995)
– hypertext [Bush 1945, Nelson 1960’s] – HTML, HTTP: Berners-Lee – 1994: Mosaic, later Netscape – late 1990’s: commercialization of the Web
messaging, P2P file sharing
million+ users
Gbps
Now to the future:
CSci4211: Introduction 130
CSci4211: Introduction 131
CSci4211: Introduction 132
– raise funds for IAB, IETF& IESG, elect IAB
– a body of several thousands or more volunteers –
– meet three times a year + email
– architectural oversight, elected by ISOC
– Internet standards, subset of RFC
– most are not standards, also
CSci4211: Introduction 133
– coordinate IPv4 & IPv6 address spaces, keep track of numbers (e.g., protocol identifiers), delegates Internet address assignment to regional Internet registries – manage top-level domain names & operations of root name servers – designate authority for each top-level domain; create new TLDs
– manage the allocation and registration of Internet number resources
– e.g., hand out blocks of addresses to ISPs; assign AS numbers – maintain WHOIS registries – ….
– how bad guys can attack computer networks – how we can defend networks against attacks – how to design architectures that are immune to attacks
– original vision: “a group of mutually trusting users attached to a transparent network” – Internet protocol designers playing “catch-up” – security considerations in all layers!
134
– virus: self-replicating infection by receiving/executing
– worm: self-replicating infection by passively receiving
135
target
136
(e.g., including passwords!) passing by
src:B dest:A payload
137
src:B dest:A payload
138