SlideShare a Scribd company logo
How the Internet works
related sections to read
in Networked Life:
10.1-10.2
13.1
14.1
15.1-15.2
17.1
• Take a moment to think about how amazing
the Internet is:
– It’s always on
– It is “free”
– It’s (almost) never noticeably congested (though
individual sites or access points might be)
– you can get messages to anywhere in the world
instantaneously
– you can communicate for free, including voice
and video conferencing
– you can stream music and movies
– it is uncensored (in most places) (of course, this
can be viewed as good or bad)
• This talk focuses on the question of how the
Internet can be so robust
– Is there an “Achilles’ heel”? a single point of
failure that can be attacked?
– How does the network autonomously adapt to
congestion?
• To answer these questions, we will discuss
some of the underlying technologies that
contribute to the robustness of the Internet
– packet switching
– Ethernet
– TCP/IP
– routing protocols
• Evolution of the technologies underlying the
Internet
– the Internet was not designed top-down by a
single company or government organization
– it evolved
• many alternative technologies/protocols were
proposed and tried out
• eventually, the best were identified and adopted (in a
“democratic” way)
• when new people joined, they had to use whatever
protocols everybody was using, until it grew into a
standard
– it is decentralized – no one owns it or controls it
• Compare with the old-style telephone networks
– designed top-down by companies like AT&T, who built
the network of telephone lines, and wanted (and had)
complete control over their use
– good aspect of design:
• old handsets did not need electrical power
• energy for dial-tone and speakers came from phone line
• phones would work even if power knocked out in electrical
strorm
– con: they were circuit-switched (a dedicated path
between caller and receiver had to be established,
and most of that bandwidth was wasted)
• In contrast, given how the Internet “grew”, it is
amazing it works at all (!)
protocol stacks
• layered architecture
drivers,
network card
files
unencrypted
streams
buffers
packets
frames
bytes
bits
each layer is an abstraction
that assumes the functionality
of the layer underneath
Ethernet
• local machines on common wire hear all transmissions
• in cases of packet collisions, use a “back-off” algorithm
• each machine waits a random time (gauged by the amount of
congestion) to re-transmit
IP addresses
• [0-255].[0-255].[0-255].[0.255]
• 128.194.139.1 (associated with a specific MAC)
• <domain>.<domain>.<subnet>.<host>
• IPv4 (current standard, 4 billion IP addresses)
• IPv6 (extended address space: 2128=1039 devices)
• 128.194.139.1 = sun.cs.tamu.edu
• DNS – domain name server
– distributed network of servers that translate hostnames to
IP addresses
– TAMU campus has several DNS servers that
communicate with others worldwide
– nslookup: www.google.com = 74.125.227.145
TCP-IP
• transport layer
• built on top of IP
– assumes can send datagrams to IP addresses
• UDP: User Datagram Protocol
– simple, fast, checksums, no guarantee of
delivery
• TCP-IP: Transmission Control Protocol
– connection-oriented: hand-shaking, requires
message acknowledgements (ACK)
– guarantees all packets delivered uncorrupted
in order
TCP-IP packets
• a file or message is divide up into packets
information:
• source IP address
• destination IP address
• mesg sequence number
• (for acknowledgement)
• payload size
• checksum
payload (e.g. 512 bytes)
Geoff Huston, www.potaroo.net/ispcol
Congestion Control
• TCP/IP senders track the
response time of ACK
messages
• separate latency
(roundtrip) from
throughput (bandwidth)
• adaptively adjust
transmission frequency
Geoff Huston, www.potaroo.net/ispcol
routers and routing
• each router switches
packets among its local
connections
• there are many paths
from source to destination
• ideally, what we want is
to identify the shortest
path (Bellman-Ford
algorithm)
• each router maintains a
router table of IP
addresses sent on out-
going links (plus
congestion information)
http://int.fhsu.edu/kevin/courses/datacom1VC/html/chapter_10.html
router
port 1
port 2:
addresses
128.1.1.1 to
132.255.255.255
port IP address range
1 001.*.*.* to
127.*.*.*
2 128.1.1.1 to
132.255.255.255
3 133.1.1.1 to
191.255.255.255
4 192.1.1.1 to
253.*.*.*
5 254.1.1.1
255.255.255.255
TCP/IP
packet,
dest =
128.19.32.3
• Essentially what routers do is receive packets, extract
destination IP,and switch them to an out-going port.
• Each router has a limited capacity (throughput or
bandwidth, e.g. 10 GB/s).
port 3
port 4
port 5
Router table
Robustness of the Internet
• does the Internet have an “Achilles’ heel”?
• is there a single point of failure (that could
be attacked)?
• or is it designed to be fault tolerant?
• it is hard to know the overall topology
• does the connectivity follow a Poisson
distribution?
– is there an “average” number
of connections, some with more,
some with less?
Modeling the Internet’s Topology
• The connectivity profile likely follows a Power Law
(or Zipf) distribution
– many nodes have few connections (on the edge?)
– few nodes have many connections (in the core?)
– if d is the degree of a node (# connections), then
p(d>x) ≈ kx-a (“scale-free” networks)
– however, this does not necessarily imply that there are
a few highly connected nodes in the core of the Internet
which would become “choke points”
number of connections per node www.crossway.org
proportion
of
nodes
Modeling the Internet with Random
Networks
• Preferential Attachment (PA) model
– new nodes probabilistically connect to popular nodes
• Constrained Optimization (CO) model
– when a cable/router reaches capacity, add another
• both of these generate “scale-free” topologies
• however, CO has much better performance
http://www.nature.com/
nature/journal/v406/n6794
“The Net routes around damage”
the adjacent nodes just
update their router tables
x
What about Internet Congestion?
• the packet-switched design solves this
• packets can take multiple paths to
destination and get re-assembled
• if one router gets overloaded, buffer
overflow messages tell neighbors to route
around it
• also TCP/IP “back-off” algorithm
– monitors throughput of connections and
adjusts transmission frequency adaptively
• thus the Internet is amazingly robust,
adaptive, and fault tolerant by design
Streaming
• Netflix, Pandora
• VOIP (voice-over-IP, Skype)
• video-conferencing
• multi-casting (Olympics)
• dither and jitter
• use lossy compression to adjust
stream to end-to-end bandwidth
• use buffering to smooth out arrival of
packets delayed and out-of-order
• intermediate servers staged for local
distribution (e.g. Akamai)
• quality-of-service guarantees (QoS)
images from: pagetutor.com/
imagecompression
uneven arrival of packets
buffer
even
play-
back
• Access speed is determined by service
provider (bandwidth of connection, e.g.
dialup to T1)
• Internet backbone
– who owns it?
– who controls it? can you tell somebody to stop
streaming or hogging all the bandwidth? (the
cable and phone companies would like to!)
• Net Neutrality
– public policy issue; major economic impact
– service providers cannot discriminate based
on user, content, packet type or destination,
similar to highways
Wireless/Mobile
• replace Ethernet (IEEE 802.3) with 802.11
• transport protocol (TCP/IP) and higher
layers in stack remain the same
• issues
– dynamic IP address assignment (DHCP)
• ask router for temporary unique IP address
– new nodes may join or leave anytime
– roaming – device might change from one
receiver/cell to another, take IP with it?
causes changes in routing tables?
– security – encrypt packets sent over the air

More Related Content

Similar to HowTheInternetWorks.ppt

Unit2.2
Unit2.2Unit2.2
Networking
NetworkingNetworking
Networking
Richa Jain
 
Network architecture
Network architectureNetwork architecture
Network architecture
Online
 
Small office Home office , network setup in details
Small office Home office , network setup in detailsSmall office Home office , network setup in details
Small office Home office , network setup in details
apel7
 
Network protocol
Network protocolNetwork protocol
Network protocol
PriyangaRajaram
 
Networkprotocolstructurescope 130719081246-phpapp01
Networkprotocolstructurescope 130719081246-phpapp01Networkprotocolstructurescope 130719081246-phpapp01
Networkprotocolstructurescope 130719081246-phpapp01
Gaurav Goyal
 
Network protocol structure scope
Network protocol structure scopeNetwork protocol structure scope
Network protocol structure scope
Sanat Maharjan
 
Cct203 lesson 10
Cct203 lesson 10Cct203 lesson 10
Cct203 lesson 10
Justin Carl Oller
 
High performance browser networking ch1,2,3
High performance browser networking ch1,2,3High performance browser networking ch1,2,3
High performance browser networking ch1,2,3
Seung-Bum Lee
 
SOHO Network Setup Tutorial
SOHO Network Setup Tutorial SOHO Network Setup Tutorial
SOHO Network Setup Tutorial
junaidahmedsaba
 
LAN Systems.pptx
LAN Systems.pptxLAN Systems.pptx
LAN Systems.pptx
Roshan86572
 
Presentation On Computer Network
Presentation On Computer NetworkPresentation On Computer Network
Presentation On Computer Network
Avinash Ranjan
 
Ip, the internet & its impact on the maritime industry paul jolley-v1-2012
Ip, the internet & its impact on the maritime industry paul jolley-v1-2012Ip, the internet & its impact on the maritime industry paul jolley-v1-2012
Ip, the internet & its impact on the maritime industry paul jolley-v1-2012
Wire & Ether Communications
 
IP Signal Distribution
IP Signal DistributionIP Signal Distribution
IP Signal Distribution
rAVe [PUBS]
 
Network Protocols
Network ProtocolsNetwork Protocols
Network Protocols
sbmiller87
 
09 Systems Software Programming-Network Programming.pptx
09 Systems Software Programming-Network Programming.pptx09 Systems Software Programming-Network Programming.pptx
09 Systems Software Programming-Network Programming.pptx
KushalSrivastava23
 
Networking
NetworkingNetworking
Networking
Abbas Ali Qureshi
 
Networking
NetworkingNetworking
Networking
Abbas Ali Qureshi
 
Lan
LanLan
Simplified Networking and Troubleshooting for K-12 Teachers
Simplified Networking and Troubleshooting for K-12 TeachersSimplified Networking and Troubleshooting for K-12 Teachers
Simplified Networking and Troubleshooting for K-12 Teachers
webhostingguy
 

Similar to HowTheInternetWorks.ppt (20)

Unit2.2
Unit2.2Unit2.2
Unit2.2
 
Networking
NetworkingNetworking
Networking
 
Network architecture
Network architectureNetwork architecture
Network architecture
 
Small office Home office , network setup in details
Small office Home office , network setup in detailsSmall office Home office , network setup in details
Small office Home office , network setup in details
 
Network protocol
Network protocolNetwork protocol
Network protocol
 
Networkprotocolstructurescope 130719081246-phpapp01
Networkprotocolstructurescope 130719081246-phpapp01Networkprotocolstructurescope 130719081246-phpapp01
Networkprotocolstructurescope 130719081246-phpapp01
 
Network protocol structure scope
Network protocol structure scopeNetwork protocol structure scope
Network protocol structure scope
 
Cct203 lesson 10
Cct203 lesson 10Cct203 lesson 10
Cct203 lesson 10
 
High performance browser networking ch1,2,3
High performance browser networking ch1,2,3High performance browser networking ch1,2,3
High performance browser networking ch1,2,3
 
SOHO Network Setup Tutorial
SOHO Network Setup Tutorial SOHO Network Setup Tutorial
SOHO Network Setup Tutorial
 
LAN Systems.pptx
LAN Systems.pptxLAN Systems.pptx
LAN Systems.pptx
 
Presentation On Computer Network
Presentation On Computer NetworkPresentation On Computer Network
Presentation On Computer Network
 
Ip, the internet & its impact on the maritime industry paul jolley-v1-2012
Ip, the internet & its impact on the maritime industry paul jolley-v1-2012Ip, the internet & its impact on the maritime industry paul jolley-v1-2012
Ip, the internet & its impact on the maritime industry paul jolley-v1-2012
 
IP Signal Distribution
IP Signal DistributionIP Signal Distribution
IP Signal Distribution
 
Network Protocols
Network ProtocolsNetwork Protocols
Network Protocols
 
09 Systems Software Programming-Network Programming.pptx
09 Systems Software Programming-Network Programming.pptx09 Systems Software Programming-Network Programming.pptx
09 Systems Software Programming-Network Programming.pptx
 
Networking
NetworkingNetworking
Networking
 
Networking
NetworkingNetworking
Networking
 
Lan
LanLan
Lan
 
Simplified Networking and Troubleshooting for K-12 Teachers
Simplified Networking and Troubleshooting for K-12 TeachersSimplified Networking and Troubleshooting for K-12 Teachers
Simplified Networking and Troubleshooting for K-12 Teachers
 

Recently uploaded

Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
frank0071
 
Farming systems analysis: what have we learnt?.pptx
Farming systems analysis: what have we learnt?.pptxFarming systems analysis: what have we learnt?.pptx
Farming systems analysis: what have we learnt?.pptx
Frédéric Baudron
 
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
Advanced-Concepts-Team
 
Direct Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart AgricultureDirect Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart Agriculture
International Food Policy Research Institute- South Asia Office
 
HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1
Shashank Shekhar Pandey
 
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
vluwdy49
 
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
Scintica Instrumentation
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
RitabrataSarkar3
 
The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
Sérgio Sacani
 
AJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR NIET GreNo Guava Project File.pdfAJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
by6843629
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
İsa Badur
 
molar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptxmolar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptx
Anagha Prasad
 
Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
MaheshaNanjegowda
 
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdfMending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Selcen Ozturkcan
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
University of Hertfordshire
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
PRIYANKA PATEL
 
23PH301 - Optics - Optical Lenses.pptx
23PH301 - Optics  -  Optical Lenses.pptx23PH301 - Optics  -  Optical Lenses.pptx
23PH301 - Optics - Optical Lenses.pptx
RDhivya6
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
Sérgio Sacani
 
Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.
Aditi Bajpai
 

Recently uploaded (20)

Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
 
Farming systems analysis: what have we learnt?.pptx
Farming systems analysis: what have we learnt?.pptxFarming systems analysis: what have we learnt?.pptx
Farming systems analysis: what have we learnt?.pptx
 
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
 
Direct Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart AgricultureDirect Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart Agriculture
 
HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1
 
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
 
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
 
The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
 
AJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR NIET GreNo Guava Project File.pdfAJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR NIET GreNo Guava Project File.pdf
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
 
molar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptxmolar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptx
 
Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
 
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdfMending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
 
23PH301 - Optics - Optical Lenses.pptx
23PH301 - Optics  -  Optical Lenses.pptx23PH301 - Optics  -  Optical Lenses.pptx
23PH301 - Optics - Optical Lenses.pptx
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
 
Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.
 

HowTheInternetWorks.ppt

  • 1. How the Internet works related sections to read in Networked Life: 10.1-10.2 13.1 14.1 15.1-15.2 17.1
  • 2. • Take a moment to think about how amazing the Internet is: – It’s always on – It is “free” – It’s (almost) never noticeably congested (though individual sites or access points might be) – you can get messages to anywhere in the world instantaneously – you can communicate for free, including voice and video conferencing – you can stream music and movies – it is uncensored (in most places) (of course, this can be viewed as good or bad)
  • 3. • This talk focuses on the question of how the Internet can be so robust – Is there an “Achilles’ heel”? a single point of failure that can be attacked? – How does the network autonomously adapt to congestion? • To answer these questions, we will discuss some of the underlying technologies that contribute to the robustness of the Internet – packet switching – Ethernet – TCP/IP – routing protocols
  • 4. • Evolution of the technologies underlying the Internet – the Internet was not designed top-down by a single company or government organization – it evolved • many alternative technologies/protocols were proposed and tried out • eventually, the best were identified and adopted (in a “democratic” way) • when new people joined, they had to use whatever protocols everybody was using, until it grew into a standard – it is decentralized – no one owns it or controls it
  • 5. • Compare with the old-style telephone networks – designed top-down by companies like AT&T, who built the network of telephone lines, and wanted (and had) complete control over their use – good aspect of design: • old handsets did not need electrical power • energy for dial-tone and speakers came from phone line • phones would work even if power knocked out in electrical strorm – con: they were circuit-switched (a dedicated path between caller and receiver had to be established, and most of that bandwidth was wasted) • In contrast, given how the Internet “grew”, it is amazing it works at all (!)
  • 6. protocol stacks • layered architecture drivers, network card files unencrypted streams buffers packets frames bytes bits each layer is an abstraction that assumes the functionality of the layer underneath
  • 7. Ethernet • local machines on common wire hear all transmissions • in cases of packet collisions, use a “back-off” algorithm • each machine waits a random time (gauged by the amount of congestion) to re-transmit
  • 8. IP addresses • [0-255].[0-255].[0-255].[0.255] • 128.194.139.1 (associated with a specific MAC) • <domain>.<domain>.<subnet>.<host> • IPv4 (current standard, 4 billion IP addresses) • IPv6 (extended address space: 2128=1039 devices) • 128.194.139.1 = sun.cs.tamu.edu • DNS – domain name server – distributed network of servers that translate hostnames to IP addresses – TAMU campus has several DNS servers that communicate with others worldwide – nslookup: www.google.com = 74.125.227.145
  • 9. TCP-IP • transport layer • built on top of IP – assumes can send datagrams to IP addresses • UDP: User Datagram Protocol – simple, fast, checksums, no guarantee of delivery • TCP-IP: Transmission Control Protocol – connection-oriented: hand-shaking, requires message acknowledgements (ACK) – guarantees all packets delivered uncorrupted in order
  • 10. TCP-IP packets • a file or message is divide up into packets information: • source IP address • destination IP address • mesg sequence number • (for acknowledgement) • payload size • checksum payload (e.g. 512 bytes) Geoff Huston, www.potaroo.net/ispcol
  • 11. Congestion Control • TCP/IP senders track the response time of ACK messages • separate latency (roundtrip) from throughput (bandwidth) • adaptively adjust transmission frequency Geoff Huston, www.potaroo.net/ispcol
  • 12. routers and routing • each router switches packets among its local connections • there are many paths from source to destination • ideally, what we want is to identify the shortest path (Bellman-Ford algorithm) • each router maintains a router table of IP addresses sent on out- going links (plus congestion information) http://int.fhsu.edu/kevin/courses/datacom1VC/html/chapter_10.html
  • 13. router port 1 port 2: addresses 128.1.1.1 to 132.255.255.255 port IP address range 1 001.*.*.* to 127.*.*.* 2 128.1.1.1 to 132.255.255.255 3 133.1.1.1 to 191.255.255.255 4 192.1.1.1 to 253.*.*.* 5 254.1.1.1 255.255.255.255 TCP/IP packet, dest = 128.19.32.3 • Essentially what routers do is receive packets, extract destination IP,and switch them to an out-going port. • Each router has a limited capacity (throughput or bandwidth, e.g. 10 GB/s). port 3 port 4 port 5 Router table
  • 14. Robustness of the Internet • does the Internet have an “Achilles’ heel”? • is there a single point of failure (that could be attacked)? • or is it designed to be fault tolerant? • it is hard to know the overall topology • does the connectivity follow a Poisson distribution? – is there an “average” number of connections, some with more, some with less?
  • 15. Modeling the Internet’s Topology • The connectivity profile likely follows a Power Law (or Zipf) distribution – many nodes have few connections (on the edge?) – few nodes have many connections (in the core?) – if d is the degree of a node (# connections), then p(d>x) ≈ kx-a (“scale-free” networks) – however, this does not necessarily imply that there are a few highly connected nodes in the core of the Internet which would become “choke points” number of connections per node www.crossway.org proportion of nodes
  • 16. Modeling the Internet with Random Networks • Preferential Attachment (PA) model – new nodes probabilistically connect to popular nodes • Constrained Optimization (CO) model – when a cable/router reaches capacity, add another • both of these generate “scale-free” topologies • however, CO has much better performance http://www.nature.com/ nature/journal/v406/n6794
  • 17. “The Net routes around damage” the adjacent nodes just update their router tables x
  • 18. What about Internet Congestion? • the packet-switched design solves this • packets can take multiple paths to destination and get re-assembled • if one router gets overloaded, buffer overflow messages tell neighbors to route around it • also TCP/IP “back-off” algorithm – monitors throughput of connections and adjusts transmission frequency adaptively • thus the Internet is amazingly robust, adaptive, and fault tolerant by design
  • 19. Streaming • Netflix, Pandora • VOIP (voice-over-IP, Skype) • video-conferencing • multi-casting (Olympics) • dither and jitter • use lossy compression to adjust stream to end-to-end bandwidth • use buffering to smooth out arrival of packets delayed and out-of-order • intermediate servers staged for local distribution (e.g. Akamai) • quality-of-service guarantees (QoS) images from: pagetutor.com/ imagecompression uneven arrival of packets buffer even play- back
  • 20. • Access speed is determined by service provider (bandwidth of connection, e.g. dialup to T1) • Internet backbone – who owns it? – who controls it? can you tell somebody to stop streaming or hogging all the bandwidth? (the cable and phone companies would like to!) • Net Neutrality – public policy issue; major economic impact – service providers cannot discriminate based on user, content, packet type or destination, similar to highways
  • 21. Wireless/Mobile • replace Ethernet (IEEE 802.3) with 802.11 • transport protocol (TCP/IP) and higher layers in stack remain the same • issues – dynamic IP address assignment (DHCP) • ask router for temporary unique IP address – new nodes may join or leave anytime – roaming – device might change from one receiver/cell to another, take IP with it? causes changes in routing tables? – security – encrypt packets sent over the air