SlideShare a Scribd company logo
INTRODUCTION TO
COMPUTER NETWORKING
Amit Saha
IIT Gandhinagar
13th, 14th March 2015
Ground Rules
β€’ There are no β€œsilly” questions. Focus on β€œwhy”
β€’ Slides with have fundamental concepts
β€’ Search on the web for anything you don’t understand
β€’ Almost everything is explained reasonably well on the web
β€’ You can send questions to amsaha+iitgn15s@gmail.com
Books – not mandatory
β€’ Data and Computer Communications
- William Stallings
β€’ Internetworking with TCP/IP Volume 1 Principles, Protocols,
and Architecture
- Douglas E. Comer
What is Networking?
β€’ networking – the exchange of information or services among
individuals, groups, or institutions
β€’ computer networking – the exchange of information or services
among computers
A Brief History
β€’ http://visual.ly/brief-history-computer-network-technology
Schematic of a Computer Network
The first hop – wired
The first hop – wireless
Wireless First Hop - Possibilities
β€’ WLAN/WiFi
β€’ Cellular
Layering – Lets Break up the Problem
TheoreticalPractical
Wireless First Hop – WiFi
β€’ IEEE 802.11 (a/b/g/n/…) standards
β€’ Infrastructure mode (common) or Ad hoc mode
Ethernet Token Ring
New 802.11n
Connecting to a WiFi Access Point
β€’ Scanning
β€’ Joining
β€’ Authentication
β€’ Association
β€’ The station feels as if it is β€œplugged” into a wired network
Communicating with a WiFi AP
β€’ Wireless is a half duplex channel – either speak or listen
β€’ Signal strength is inversely proportion to square of distance
β€’ Carrier Sense Multiple Access / Collision Avoidance (CSMA/CA)
β€’ Fancy name for how humans talk 
β€’ This is generally true of all wireless systems (including humans)
WiFi Equipments
Wireless First Hop – Cellular
β€’ Not covered in this course
Wired First Hop - Ethernet
β€’ IEEE 802.3 standard
β€’ If two ends of the Ethernet cable (e.g., RJ45) is electrically up,
connection is up.
β€’ Some authentication steps are usually there but we will skip those
CSMA/CD
β€’ Carrier Sense Multiple Access / Collision Detect
Ethernet Equipments
Now what?
Getting an IP address
β€’ DHCP – DHCP clients get IP addresses and networking
parameters from DHCP server
β€’ Based on BOOTP
β€’ DHCPv6 (for IPv6) is also available
DHCP Packets
β€’ Discovery
β€’ Offer (possibly multiple)
β€’ Request
β€’ Acknowledge
β€’ Renew
β€’ Release
Why do we need an IP address?
IP Packet Format
IPv4 Header Format
UDP Header Format
5-Tuple/Flow
Got an IP! Hurray!
β€’ But now what? How do I β€œgo to” some website?
β€’ IP is just an identity
β€’ Still need to β€œroute” to somewhere
DNS – Domain Name Service
β€’ We almost always try to reach a human readable name
β€’ But machines route based on IP addresses
β€’ There must be a mapping from names to IP addresses
β€’ But who is going to do this translation?
Default Gateway
β€’ If host does not know how to route, who does it ask?
β€’ There must be a β€œgoto” guy in the network
Routing table – Host
ubuntu@ubuntu-VirtualBox:~/Projects/OpenStack/New/cinder$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
10.0.2.0 * 255.255.255.0 U 1 0 0 eth0
β€’ Routing table becomes very interesting in a core router
β€’ 50,000 to 1,00,000 routes (entries like the above table)
β€’ We will get to it later
Who could …
β€’ Be a host’s Domain Name Server
β€’ Be a host’s Default Gateway
Are we ready to send?
ARP – Address Resolution Protocol
β€’ What is the MAC address for a given IP?
β€’ ARP resolves network layer address to link layer address
β€’ Remember network layer is the same as routing layer. This is also known
as Layer 3(L3)
β€’ Link Layer is Layer 2 (L2)
Ethernet – IEEE 802.3b
β€’ Broadcast medium
β€’ These days mostly switched Ethernet (point-to-point)
β€’ These days mostly Ethernet II
β€’ No LLC
Finally!
β€’ We can now send
Ethernet Header
An Example
β€’ Wireshark – Download it, install it and then play around with it
β€’ Instructions are there on the web itself
β€’ Will give you a lot of detail about packets and layering
DNS – Domain Name Service
β€’ Hierarchical way of managing name space
β€’ Managed by Internet Assigned Numbers Authority (IANA)
β€’ http://www.iana.org/domains/root/db
Introduction to Computer Networking
DNS – Root Servers
β€’ <a-m>.root-servers.net – 13 hostnames, around 500 instances
β€’ Use anycast to reach β€œnearest” instance – BGP supports this
β€’ 12 of the 13 root servers A-M exist in multiple locations
β€’ 11 on multiple continents
β€’ Root server β€˜h’ exists in two U.S. locations.
β€’ Root server β€˜b’ exists in a single location in the Los Angeles Area
β€’ http://www.root-servers.org/
Subnetting
β€’ Routing to each individual hosts does not scale
β€’ Addresses grouped into different classes
CIDR
β€’ Any β€œclass system” is bad 
β€’ IPv4 was running out of unique IP addresses
β€’ Hence IPv6 but…
β€’ Classless Inter Domain Routing
β€’ Network portion can be of any size
β€’ Addresses need to specify subnet mask as well
Longest Prefix Match
NAT – Network Address Translation
NAT – Send
NAT – Receive
Routing Hierarchy
β€’ Internet is divided into Autonomous Systems (AS)
β€’ Managed by a single administrator
β€’ 16 bit AS Number (ASN)
Autonomous Systems
Intra-Domain Routing
β€’ Typically uses UDP
β€’ Distance Vector
β€’ RIP – Bellman – Ford Algorithm
β€’ Link State
β€’ OSPF – Dijkstra’s shortest path
β€’ ISIS – Dijkstra’s shortest path
β€’ Note: The fundamental concept here is Distance Vector and
Link State as two types of algorithms, not that they are used for
intra-domain routing
Inter-Domain Routing
β€’ Border Gateway Protocol (BGP) – BGP version 4
β€’ Path – vector routing
β€’ Uses TCP
β€’ External BGP – eBGP
β€’ Internal BGP – iBGP
β€’ Not to be confused with intra-domain routing (though iBGP could do that )
β€’ Used to send information from one β€œside” of network to another
β€’ Policy engineering
Inter – Domain Routing
iBGP and eBGP
Some Numbers
β€’ http://www.cidr-report.org/as2.0/
Introduction to Computer Networking
Transport Layer
β€’ Provides end-to-end connection
β€’ On top of the routing layer
β€’ Two types of transmissions
β€’ Unreliable – User Datagram Protocol (UDP)
β€’ Reliable – Transmission Control Protocol (TCP)
UDP
β€’ Best effort, connection-less
β€’ Just send as fast as possible
β€’ When is it okay?
β€’ Phone calls, gaming, etc.
β€’ Simple stuff like DNS
TCP
β€’ Connection oriented
β€’ Setup/teardown connection
β€’ Sends stream of bytes, not messages
β€’ Reliable and in-order delivery
β€’ Flow Control
β€’ Congestion Control
β€’ Analogous to how humans communicate
Basics of Reliable Connection
β€’ How do you make a transmission reliable?
β€’ What do you need to protect against?
Basics of Reliable Connection
Data
Ack
Sender Receiver
time
Speed it Up
TCP – Connection Setup
β€’ Three-Way Handshake
TCP Sliding Window
β€’ http://www2.rad.com/networks/2004/sliding_window/
TCP – Being a Good Citizen
β€’ Congestion Control
β€’ MaxWindow = min(Congestion Window, Receiver Window)
β€’ Congestion Window start at 1
β€’ Original TCP: Additive Increase, Multiplicative Decrease
Congestion Avoidance Behavior
Time
Congestion
Window
Packet loss
+ Timeout
Grabbing
back
Bandwidth
Cut
Congestion
Window
and Rate
Evolution of TCP
1975 1980 1985 1990
1982
TCP & IP
RFC 793 & 791
1974
TCP described by
Vint Cerf and Bob Kahn
In IEEE Trans Comm
1983
BSD Unix 4.2
supports TCP/IP
1984
Nagel’s algorithm
to reduce overhead
of small packets;
predicts congestion
collapse
1987
Karn’s algorithm
to better estimate
round-trip time
1986
Congestion collapse
observed
1988
Van Jacobson’s algorithms
congestion avoidance and
congestion control
(most implemented in
4.3BSD Tahoe)
1990
4.3BSD Reno
fast retransmit
delayed ACK’s
1975
Three-way handshake
Raymond Tomlinson
In SIGCOMM 75
Taken from Aditya Akella’s slides, Dept. of Computer Science, University of Wisconsin - Madison
TCP Through the 1990s
1993 1994 1996
1994
ECN
(Floyd)
Explicit
Congestion
Notification
1993
TCP Vegas
(Brakmo et al)
real congestion
avoidance
1994
T/TCP
(Braden)
Transaction
TCP
1996
SACK TCP
(Floyd et al)
Selective
Acknowledgement
1996
Hoe
Improving TCP
startup
1996
FACK TCP
(Mathis et al)
extension to SACK
Taken from Aditya Akella’s slides, Dept. of Computer Science, University of Wisconsin - Madison
TCP Header
Ethernet
β€’ Original Ethernet used hub – shared ethernet
β€’ These days – switched ethernet
Switched Ethernet
β€’ CSMA / CD
β€’ What is collision now? How is it handled?
Switching Types
β€’ Store and forward
β€’ Cut through
Switched Ethernet – Arbitrary Topology
β€’ Can cause loops
β€’ Unlike IP header, no TTL
to prevent looping
STP – Spanning Tree Protocol
β€’ Creates a β€œtree” that β€œspans” entire graph
β€’ Distributed implementation
STP – Root Bridge
STP – Root Ports
STP – Designated Ports
STP – Blocked Ports
STP – Link Failure
Virtual LAN
VLAN
IEEE 802.1q
IEEE 802.1q
STP Variants
β€’ Rapid STP – Converges faster than STP
β€’ VLAN STP – Each VLAN can have a different STP tree
Data Centers
β€’ Cloud computing – Making computing elastic
β€’ Software Defined Networking (SDN)
β€’ Universities are using data centers for compute resources
β€’ Pay-as-you-go pricing model
β€’ Power and Cooling most important 
Data Centers – Network Properties
β€’ Large number of ports
β€’ Large number of L2 end points
β€’ Multiple VMs per port
β€’ Relatively fewer L3 end points
β€’ Prime importance - manageability
Introduction to Computer Networking
Introduction to Computer Networking
Example Equipment – Pictures/Prices
β€’ Go to websites such as www.cisco.com and www.juniper.net
and look at their product portfolio
β€’ www.cisco.com has interactive 3D models
β€’ Search for prices on the web
Industry Expectations
Industry Expectations
β€’ Average loss $5600/minute  $300K/hour
β€’ Zero planned downtime is fast becoming the norm
β€’ Can you think of anything similar?
The Future of Computer Networks
β€’ Manageability
β€’ Monitoring
β€’ Trouble shooting
β€’ Automated Healing
β€’ More bandwidth
β€’ Energy efficiency
β€’ Faster way of implementing something –
algorithms/algorithmics
β€’ OpenSource based – cheaper and β€œbetter”
β€’ Broadband access will become a fundamental right
Introduction to Computer Networking

More Related Content

PPTX
Transmission media
PPT
Networking Basics
PDF
Optical Transport Network (OTN) Tutorial
PDF
Data communication assignment 1
PPT
Security of software defined networking (sdn) and cognitive radio network (crn)
PPT
Networking (2)
PPSX
Multiple access control protocol
PPTX
Guided And Unguided Media
Transmission media
Networking Basics
Optical Transport Network (OTN) Tutorial
Data communication assignment 1
Security of software defined networking (sdn) and cognitive radio network (crn)
Networking (2)
Multiple access control protocol
Guided And Unguided Media

What's hot (20)

PPT
Lan technologies
PPTX
PDF
Unit II -Mobile telecommunication systems
PDF
PPTX
Multiprotocol label switching
DOCX
Layer 2 & layer 3 switching
PPTX
CCNA RS_ITN - Chapter 5
PPTX
Schedule Based MAC Protocol
PPT
Integrated services digital network (isdn)
PDF
Network layer logical addressing
PPTX
Routing Protocols.pptx
PPTX
FTTH Solutions For Today And Tomorrow
Β 
PDF
Errors, Error Detection, and Error Control
PPTX
CCNA ppt Day 1
PPT
Net essentials6e ch1
Β 
PPTX
iP Address ,
PPTX
Media Access Control
PPTX
Gsm architecture
PPTX
Mpls technology
PPTX
Tdm and fdm
Lan technologies
Unit II -Mobile telecommunication systems
Multiprotocol label switching
Layer 2 & layer 3 switching
CCNA RS_ITN - Chapter 5
Schedule Based MAC Protocol
Integrated services digital network (isdn)
Network layer logical addressing
Routing Protocols.pptx
FTTH Solutions For Today And Tomorrow
Β 
Errors, Error Detection, and Error Control
CCNA ppt Day 1
Net essentials6e ch1
Β 
iP Address ,
Media Access Control
Gsm architecture
Mpls technology
Tdm and fdm
Ad

Viewers also liked (20)

PPTX
Chapter 1 computer networking Class 12th
PPTX
Computer networking devices
PDF
Computer networking (nnm)
PPT
Computer Networking
PPT
Computer Networking
PPT
Introduction to computer networking
PPTX
Networking presentation
PPTX
Computer networking
PPT
Computer network ppt
PPS
Network ppt
PPTX
Networking
PPT
Basic concepts of computer Networking
PPT
Networking ppt
PPT
BASIC CONCEPTS OF COMPUTER NETWORKS
PPT
Cct203 lesson 10
PPT
3c ethernet
PPT
IDeACOM CEO roundtable presentation 2001
PPT
Ethernet
Β 
PPT
WHPL Internet and Searching Basics
PPTX
Computer networking
Chapter 1 computer networking Class 12th
Computer networking devices
Computer networking (nnm)
Computer Networking
Computer Networking
Introduction to computer networking
Networking presentation
Computer networking
Computer network ppt
Network ppt
Networking
Basic concepts of computer Networking
Networking ppt
BASIC CONCEPTS OF COMPUTER NETWORKS
Cct203 lesson 10
3c ethernet
IDeACOM CEO roundtable presentation 2001
Ethernet
Β 
WHPL Internet and Searching Basics
Computer networking
Ad

Similar to Introduction to Computer Networking (20)

PPTX
IP Signal Distribution
PPTX
Networking Hardware Concepts
PDF
TCP_IP for Programmers ------ slides.pdf
PPT
LAN Fundamentals
PPT
TCP/IP Protocol Suite model Transmission Control Protocol
PPT
Networks la ns and design
PPTX
B Tech Computer_Networks_BTech_Slides.pptx
PPT
HowTheInternetWorks.ppt
PDF
CISSP Prep: Ch 5. Communication and Network Security (Part 1)
PPTX
Computer Networking 101
PDF
4. Communication and Network Security
PDF
Intternetworking With TCP/IP
PPTX
IPv6 on the Interop Network
PPTX
From Device to Data Center to Insights: Architectural Considerations for the ...
PDF
From Device to Data Center to Insights
PDF
4. Communication and Network Security
PPT
Networking.ppt
PPT
Slides internet technology
PPT
IEEE and Lower Level LAN Protocols.ppt
PPTX
IPv4 & IPv6.pptx FOR COMPUTER NETWORK PRPCPTPS
IP Signal Distribution
Networking Hardware Concepts
TCP_IP for Programmers ------ slides.pdf
LAN Fundamentals
TCP/IP Protocol Suite model Transmission Control Protocol
Networks la ns and design
B Tech Computer_Networks_BTech_Slides.pptx
HowTheInternetWorks.ppt
CISSP Prep: Ch 5. Communication and Network Security (Part 1)
Computer Networking 101
4. Communication and Network Security
Intternetworking With TCP/IP
IPv6 on the Interop Network
From Device to Data Center to Insights: Architectural Considerations for the ...
From Device to Data Center to Insights
4. Communication and Network Security
Networking.ppt
Slides internet technology
IEEE and Lower Level LAN Protocols.ppt
IPv4 & IPv6.pptx FOR COMPUTER NETWORK PRPCPTPS

Recently uploaded (20)

PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PPTX
artificial intelligence overview of it and more
PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PDF
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PPT
tcp ip networks nd ip layering assotred slides
PDF
The Internet -By the Numbers, Sri Lanka Edition
Β 
PDF
WebRTC in SignalWire - troubleshooting media negotiation
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPTX
Digital Literacy And Online Safety on internet
PPTX
Introduction to Information and Communication Technology
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PDF
Introduction to the IoT system, how the IoT system works
PDF
Sims 4 Historia para lo sims 4 para jugar
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
Β 
Introuction about ICD -10 and ICD-11 PPT.pptx
Cloud-Scale Log Monitoring _ Datadog.pdf
INTERNET------BASICS-------UPDATED PPT PRESENTATION
artificial intelligence overview of it and more
introduction about ICD -10 & ICD-11 ppt.pptx
The New Creative Director: How AI Tools for Social Media Content Creation Are...
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
Design_with_Watersergyerge45hrbgre4top (1).ppt
tcp ip networks nd ip layering assotred slides
The Internet -By the Numbers, Sri Lanka Edition
Β 
WebRTC in SignalWire - troubleshooting media negotiation
Slides PDF The World Game (s) Eco Economic Epochs.pdf
Digital Literacy And Online Safety on internet
Introduction to Information and Communication Technology
An introduction to the IFRS (ISSB) Stndards.pdf
Slides PPTX World Game (s) Eco Economic Epochs.pptx
Introduction to the IoT system, how the IoT system works
Sims 4 Historia para lo sims 4 para jugar
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
RPKI Status Update, presented by Makito Lay at IDNOG 10
Β 

Introduction to Computer Networking

  • 1. INTRODUCTION TO COMPUTER NETWORKING Amit Saha IIT Gandhinagar 13th, 14th March 2015
  • 2. Ground Rules β€’ There are no β€œsilly” questions. Focus on β€œwhy” β€’ Slides with have fundamental concepts β€’ Search on the web for anything you don’t understand β€’ Almost everything is explained reasonably well on the web β€’ You can send questions to amsaha+iitgn15s@gmail.com
  • 3. Books – not mandatory β€’ Data and Computer Communications - William Stallings β€’ Internetworking with TCP/IP Volume 1 Principles, Protocols, and Architecture - Douglas E. Comer
  • 4. What is Networking? β€’ networking – the exchange of information or services among individuals, groups, or institutions β€’ computer networking – the exchange of information or services among computers
  • 5. A Brief History β€’ http://visual.ly/brief-history-computer-network-technology
  • 6. Schematic of a Computer Network
  • 7. The first hop – wired
  • 8. The first hop – wireless
  • 9. Wireless First Hop - Possibilities β€’ WLAN/WiFi β€’ Cellular
  • 10. Layering – Lets Break up the Problem TheoreticalPractical
  • 11. Wireless First Hop – WiFi β€’ IEEE 802.11 (a/b/g/n/…) standards β€’ Infrastructure mode (common) or Ad hoc mode Ethernet Token Ring New 802.11n
  • 12. Connecting to a WiFi Access Point β€’ Scanning β€’ Joining β€’ Authentication β€’ Association β€’ The station feels as if it is β€œplugged” into a wired network
  • 13. Communicating with a WiFi AP β€’ Wireless is a half duplex channel – either speak or listen β€’ Signal strength is inversely proportion to square of distance β€’ Carrier Sense Multiple Access / Collision Avoidance (CSMA/CA) β€’ Fancy name for how humans talk  β€’ This is generally true of all wireless systems (including humans)
  • 15. Wireless First Hop – Cellular β€’ Not covered in this course
  • 16. Wired First Hop - Ethernet β€’ IEEE 802.3 standard β€’ If two ends of the Ethernet cable (e.g., RJ45) is electrically up, connection is up. β€’ Some authentication steps are usually there but we will skip those
  • 17. CSMA/CD β€’ Carrier Sense Multiple Access / Collision Detect
  • 20. Getting an IP address β€’ DHCP – DHCP clients get IP addresses and networking parameters from DHCP server β€’ Based on BOOTP β€’ DHCPv6 (for IPv6) is also available
  • 21. DHCP Packets β€’ Discovery β€’ Offer (possibly multiple) β€’ Request β€’ Acknowledge β€’ Renew β€’ Release Why do we need an IP address?
  • 26. Got an IP! Hurray! β€’ But now what? How do I β€œgo to” some website? β€’ IP is just an identity β€’ Still need to β€œroute” to somewhere
  • 27. DNS – Domain Name Service β€’ We almost always try to reach a human readable name β€’ But machines route based on IP addresses β€’ There must be a mapping from names to IP addresses β€’ But who is going to do this translation?
  • 28. Default Gateway β€’ If host does not know how to route, who does it ask? β€’ There must be a β€œgoto” guy in the network
  • 29. Routing table – Host ubuntu@ubuntu-VirtualBox:~/Projects/OpenStack/New/cinder$ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 10.0.2.2 0.0.0.0 UG 0 0 0 eth0 10.0.2.0 * 255.255.255.0 U 1 0 0 eth0 β€’ Routing table becomes very interesting in a core router β€’ 50,000 to 1,00,000 routes (entries like the above table) β€’ We will get to it later
  • 30. Who could … β€’ Be a host’s Domain Name Server β€’ Be a host’s Default Gateway
  • 31. Are we ready to send?
  • 32. ARP – Address Resolution Protocol β€’ What is the MAC address for a given IP? β€’ ARP resolves network layer address to link layer address β€’ Remember network layer is the same as routing layer. This is also known as Layer 3(L3) β€’ Link Layer is Layer 2 (L2)
  • 33. Ethernet – IEEE 802.3b β€’ Broadcast medium β€’ These days mostly switched Ethernet (point-to-point) β€’ These days mostly Ethernet II β€’ No LLC
  • 36. An Example β€’ Wireshark – Download it, install it and then play around with it β€’ Instructions are there on the web itself β€’ Will give you a lot of detail about packets and layering
  • 37. DNS – Domain Name Service β€’ Hierarchical way of managing name space β€’ Managed by Internet Assigned Numbers Authority (IANA) β€’ http://www.iana.org/domains/root/db
  • 39. DNS – Root Servers β€’ <a-m>.root-servers.net – 13 hostnames, around 500 instances β€’ Use anycast to reach β€œnearest” instance – BGP supports this β€’ 12 of the 13 root servers A-M exist in multiple locations β€’ 11 on multiple continents β€’ Root server β€˜h’ exists in two U.S. locations. β€’ Root server β€˜b’ exists in a single location in the Los Angeles Area β€’ http://www.root-servers.org/
  • 40. Subnetting β€’ Routing to each individual hosts does not scale β€’ Addresses grouped into different classes
  • 41. CIDR β€’ Any β€œclass system” is bad  β€’ IPv4 was running out of unique IP addresses β€’ Hence IPv6 but… β€’ Classless Inter Domain Routing β€’ Network portion can be of any size β€’ Addresses need to specify subnet mask as well
  • 43. NAT – Network Address Translation
  • 46. Routing Hierarchy β€’ Internet is divided into Autonomous Systems (AS) β€’ Managed by a single administrator β€’ 16 bit AS Number (ASN)
  • 48. Intra-Domain Routing β€’ Typically uses UDP β€’ Distance Vector β€’ RIP – Bellman – Ford Algorithm β€’ Link State β€’ OSPF – Dijkstra’s shortest path β€’ ISIS – Dijkstra’s shortest path β€’ Note: The fundamental concept here is Distance Vector and Link State as two types of algorithms, not that they are used for intra-domain routing
  • 49. Inter-Domain Routing β€’ Border Gateway Protocol (BGP) – BGP version 4 β€’ Path – vector routing β€’ Uses TCP β€’ External BGP – eBGP β€’ Internal BGP – iBGP β€’ Not to be confused with intra-domain routing (though iBGP could do that ) β€’ Used to send information from one β€œside” of network to another β€’ Policy engineering
  • 54. Transport Layer β€’ Provides end-to-end connection β€’ On top of the routing layer β€’ Two types of transmissions β€’ Unreliable – User Datagram Protocol (UDP) β€’ Reliable – Transmission Control Protocol (TCP)
  • 55. UDP β€’ Best effort, connection-less β€’ Just send as fast as possible β€’ When is it okay? β€’ Phone calls, gaming, etc. β€’ Simple stuff like DNS
  • 56. TCP β€’ Connection oriented β€’ Setup/teardown connection β€’ Sends stream of bytes, not messages β€’ Reliable and in-order delivery β€’ Flow Control β€’ Congestion Control β€’ Analogous to how humans communicate
  • 57. Basics of Reliable Connection β€’ How do you make a transmission reliable? β€’ What do you need to protect against?
  • 58. Basics of Reliable Connection Data Ack Sender Receiver time
  • 60. TCP – Connection Setup β€’ Three-Way Handshake
  • 61. TCP Sliding Window β€’ http://www2.rad.com/networks/2004/sliding_window/
  • 62. TCP – Being a Good Citizen β€’ Congestion Control β€’ MaxWindow = min(Congestion Window, Receiver Window) β€’ Congestion Window start at 1 β€’ Original TCP: Additive Increase, Multiplicative Decrease
  • 63. Congestion Avoidance Behavior Time Congestion Window Packet loss + Timeout Grabbing back Bandwidth Cut Congestion Window and Rate
  • 64. Evolution of TCP 1975 1980 1985 1990 1982 TCP & IP RFC 793 & 791 1974 TCP described by Vint Cerf and Bob Kahn In IEEE Trans Comm 1983 BSD Unix 4.2 supports TCP/IP 1984 Nagel’s algorithm to reduce overhead of small packets; predicts congestion collapse 1987 Karn’s algorithm to better estimate round-trip time 1986 Congestion collapse observed 1988 Van Jacobson’s algorithms congestion avoidance and congestion control (most implemented in 4.3BSD Tahoe) 1990 4.3BSD Reno fast retransmit delayed ACK’s 1975 Three-way handshake Raymond Tomlinson In SIGCOMM 75 Taken from Aditya Akella’s slides, Dept. of Computer Science, University of Wisconsin - Madison
  • 65. TCP Through the 1990s 1993 1994 1996 1994 ECN (Floyd) Explicit Congestion Notification 1993 TCP Vegas (Brakmo et al) real congestion avoidance 1994 T/TCP (Braden) Transaction TCP 1996 SACK TCP (Floyd et al) Selective Acknowledgement 1996 Hoe Improving TCP startup 1996 FACK TCP (Mathis et al) extension to SACK Taken from Aditya Akella’s slides, Dept. of Computer Science, University of Wisconsin - Madison
  • 67. Ethernet β€’ Original Ethernet used hub – shared ethernet β€’ These days – switched ethernet
  • 68. Switched Ethernet β€’ CSMA / CD β€’ What is collision now? How is it handled?
  • 69. Switching Types β€’ Store and forward β€’ Cut through
  • 70. Switched Ethernet – Arbitrary Topology β€’ Can cause loops β€’ Unlike IP header, no TTL to prevent looping
  • 71. STP – Spanning Tree Protocol β€’ Creates a β€œtree” that β€œspans” entire graph β€’ Distributed implementation
  • 72. STP – Root Bridge
  • 76. STP – Link Failure
  • 78. VLAN
  • 81. STP Variants β€’ Rapid STP – Converges faster than STP β€’ VLAN STP – Each VLAN can have a different STP tree
  • 82. Data Centers β€’ Cloud computing – Making computing elastic β€’ Software Defined Networking (SDN) β€’ Universities are using data centers for compute resources β€’ Pay-as-you-go pricing model β€’ Power and Cooling most important 
  • 83. Data Centers – Network Properties β€’ Large number of ports β€’ Large number of L2 end points β€’ Multiple VMs per port β€’ Relatively fewer L3 end points β€’ Prime importance - manageability
  • 86. Example Equipment – Pictures/Prices β€’ Go to websites such as www.cisco.com and www.juniper.net and look at their product portfolio β€’ www.cisco.com has interactive 3D models β€’ Search for prices on the web
  • 88. Industry Expectations β€’ Average loss $5600/minute  $300K/hour β€’ Zero planned downtime is fast becoming the norm β€’ Can you think of anything similar?
  • 89. The Future of Computer Networks β€’ Manageability β€’ Monitoring β€’ Trouble shooting β€’ Automated Healing β€’ More bandwidth β€’ Energy efficiency β€’ Faster way of implementing something – algorithms/algorithmics β€’ OpenSource based – cheaper and β€œbetter” β€’ Broadband access will become a fundamental right