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
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/
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
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

What's hot

Personal Area Network
Personal Area NetworkPersonal Area Network
Personal Area Network
Faizan Rasool
 
Computer network_network devices
Computer network_network devicesComputer network_network devices
Computer network_network devices
Sweta Kumari Barnwal
 
Types of computer networks
Types of computer networksTypes of computer networks
Types of computer networks
Tatheer Fatima
 
Network topology by ananya shukla
Network topology by ananya shuklaNetwork topology by ananya shukla
Network topology by ananya shukla
ananya_shukla
 
Networking Basics
Networking BasicsNetworking Basics
Networking Basics
Mohd. ShahNawab
 
Networking devices
Networking devicesNetworking devices
Networking devices
university of Gujrat, pakistan
 
A Network Of Networks For Slide Share
A Network Of Networks For Slide ShareA Network Of Networks For Slide Share
A Network Of Networks For Slide Share
itsvineeth209
 
Computer Networking
Computer NetworkingComputer Networking
Computer Networking
kieshore
 
Computer network
Computer networkComputer network
Computer network
Ketan Garg
 
Computer networks--networking hardware
Computer networks--networking hardwareComputer networks--networking hardware
Computer networks--networking hardware
Mziaulla
 
Network topologies
Network topologiesNetwork topologies
Network topologies
Norah Saad
 
Networkingconcepts
NetworkingconceptsNetworkingconcepts
Networkingconcepts
vasanthimuniasamy
 
Packet switching
Packet switchingPacket switching
Packet switchingasimnawaz54
 
Wide area network (wan)
Wide area network (wan)Wide area network (wan)
Wide area network (wan)
Bhavesh Goswami
 
WLAN
WLANWLAN
Star topology ppt
Star topology pptStar topology ppt
Star topology ppt
Ananthkumar6965
 
WLAN
WLANWLAN

What's hot (20)

Personal Area Network
Personal Area NetworkPersonal Area Network
Personal Area Network
 
Computer network_network devices
Computer network_network devicesComputer network_network devices
Computer network_network devices
 
Types of computer networks
Types of computer networksTypes of computer networks
Types of computer networks
 
Network topology by ananya shukla
Network topology by ananya shuklaNetwork topology by ananya shukla
Network topology by ananya shukla
 
Networking Basics
Networking BasicsNetworking Basics
Networking Basics
 
Networking devices
Networking devicesNetworking devices
Networking devices
 
A Network Of Networks For Slide Share
A Network Of Networks For Slide ShareA Network Of Networks For Slide Share
A Network Of Networks For Slide Share
 
Computer Networking
Computer NetworkingComputer Networking
Computer Networking
 
Wireless networks ppt
Wireless networks pptWireless networks ppt
Wireless networks ppt
 
Computer network
Computer networkComputer network
Computer network
 
Computer networks--networking hardware
Computer networks--networking hardwareComputer networks--networking hardware
Computer networks--networking hardware
 
Network topologies
Network topologiesNetwork topologies
Network topologies
 
Networkingconcepts
NetworkingconceptsNetworkingconcepts
Networkingconcepts
 
Packet switching
Packet switchingPacket switching
Packet switching
 
Computer Networking
Computer NetworkingComputer Networking
Computer Networking
 
Wide area network (wan)
Wide area network (wan)Wide area network (wan)
Wide area network (wan)
 
WLAN
WLANWLAN
WLAN
 
Star topology ppt
Star topology pptStar topology ppt
Star topology ppt
 
Wireless networks ppt
Wireless networks pptWireless networks ppt
Wireless networks ppt
 
WLAN
WLANWLAN
WLAN
 

Viewers also liked

Chapter 1 computer networking Class 12th
Chapter 1 computer networking Class 12thChapter 1 computer networking Class 12th
Chapter 1 computer networking Class 12th
Harsh Mathur
 
Computer networking (nnm)
Computer networking (nnm)Computer networking (nnm)
Computer networking (nnm)
nnmaurya
 
Computer Networking
Computer NetworkingComputer Networking
Computer Networking
ruledbyrobotics2080
 
Computer Networking
Computer Networking Computer Networking
Computer Networking
Víñodh Alwal
 
Introduction to computer networking
Introduction to computer networkingIntroduction to computer networking
Introduction to computer networking
Sameer Sharma
 
Networking presentation
Networking presentationNetworking presentation
Networking presentationGajan Hai
 
Computer networking
Computer networkingComputer networking
Computer networking
Chinmoy Jena
 
Network ppt
Network pptNetwork ppt
Network ppt
hlalu861
 
Networking
NetworkingNetworking
Networking
Palash Sachan
 
Basic concepts of computer Networking
Basic concepts of computer NetworkingBasic concepts of computer Networking
Basic concepts of computer NetworkingHj Habib
 
Networking ppt
Networking ppt Networking ppt
Networking ppt
Shovan Mandal
 
BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS Kak Yong
 
IDeACOM CEO roundtable presentation 2001
IDeACOM CEO roundtable presentation 2001IDeACOM CEO roundtable presentation 2001
IDeACOM CEO roundtable presentation 2001
m.schultz
 
Ethernet
EthernetEthernet
Ethernetfadocs
 
WHPL Internet and Searching Basics
WHPL Internet and Searching BasicsWHPL Internet and Searching Basics
WHPL Internet and Searching Basics
West Haven Public Library
 
Computer networking
Computer networkingComputer networking
Computer networkingjlunceford12
 
Networking
NetworkingNetworking
Networking
raj123singh
 

Viewers also liked (20)

Chapter 1 computer networking Class 12th
Chapter 1 computer networking Class 12thChapter 1 computer networking Class 12th
Chapter 1 computer networking Class 12th
 
Computer networking (nnm)
Computer networking (nnm)Computer networking (nnm)
Computer networking (nnm)
 
Computer Networking
Computer NetworkingComputer Networking
Computer Networking
 
Computer Networking
Computer Networking Computer Networking
Computer Networking
 
Introduction to computer networking
Introduction to computer networkingIntroduction to computer networking
Introduction to computer networking
 
Networking presentation
Networking presentationNetworking presentation
Networking presentation
 
Computer networking
Computer networkingComputer networking
Computer networking
 
Computer network ppt
Computer network pptComputer network ppt
Computer network ppt
 
Network ppt
Network pptNetwork ppt
Network ppt
 
Networking
NetworkingNetworking
Networking
 
Basic concepts of computer Networking
Basic concepts of computer NetworkingBasic concepts of computer Networking
Basic concepts of computer Networking
 
Networking ppt
Networking ppt Networking ppt
Networking ppt
 
BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS
 
Cct203 lesson 10
Cct203 lesson 10Cct203 lesson 10
Cct203 lesson 10
 
3c ethernet
3c ethernet3c ethernet
3c ethernet
 
IDeACOM CEO roundtable presentation 2001
IDeACOM CEO roundtable presentation 2001IDeACOM CEO roundtable presentation 2001
IDeACOM CEO roundtable presentation 2001
 
Ethernet
EthernetEthernet
Ethernet
 
WHPL Internet and Searching Basics
WHPL Internet and Searching BasicsWHPL Internet and Searching Basics
WHPL Internet and Searching Basics
 
Computer networking
Computer networkingComputer networking
Computer networking
 
Networking
NetworkingNetworking
Networking
 

Similar to Introduction to Computer Networking

IP Signal Distribution
IP Signal DistributionIP Signal Distribution
IP Signal Distribution
rAVe [PUBS]
 
Networking Hardware Concepts
Networking Hardware ConceptsNetworking Hardware Concepts
Networking Hardware Concepts
Amir Villas
 
LAN Fundamentals
LAN FundamentalsLAN Fundamentals
LAN Fundamentals
Steven Baule
 
TCP/IP Protocol Suite model Transmission Control Protocol
TCP/IP Protocol Suite model  Transmission Control ProtocolTCP/IP Protocol Suite model  Transmission Control Protocol
TCP/IP Protocol Suite model Transmission Control Protocol
27230106
 
Networks la ns and design
Networks la ns and designNetworks la ns and design
Networks la ns and designsbmiller87
 
HowTheInternetWorks.ppt
HowTheInternetWorks.pptHowTheInternetWorks.ppt
HowTheInternetWorks.ppt
Prakhar Pandey
 
CISSP Prep: Ch 5. Communication and Network Security (Part 1)
CISSP Prep: Ch 5. Communication and Network Security (Part 1)CISSP Prep: Ch 5. Communication and Network Security (Part 1)
CISSP Prep: Ch 5. Communication and Network Security (Part 1)
Sam Bowne
 
Computer Networking 101
Computer Networking 101Computer Networking 101
Computer Networking 101
Sameer Mahajan
 
4. Communication and Network Security
4. Communication and Network Security4. Communication and Network Security
4. Communication and Network Security
Sam Bowne
 
Intternetworking With TCP/IP
Intternetworking With TCP/IPIntternetworking With TCP/IP
Intternetworking With TCP/IP
BIT DURG
 
From Device to Data Center to Insights: Architectural Considerations for the ...
From Device to Data Center to Insights: Architectural Considerations for the ...From Device to Data Center to Insights: Architectural Considerations for the ...
From Device to Data Center to Insights: Architectural Considerations for the ...
P. Taylor Goetz
 
From Device to Data Center to Insights
From Device to Data Center to InsightsFrom Device to Data Center to Insights
From Device to Data Center to Insights
DataWorks Summit/Hadoop Summit
 
4. Communication and Network Security
4. Communication and Network Security4. Communication and Network Security
4. Communication and Network Security
Sam Bowne
 
Networking.ppt
Networking.pptNetworking.ppt
Networking.ppt
MayurJagtap53
 
Slides internet technology
Slides internet technologySlides internet technology
Slides internet technology
Inexk Pedrero
 
IEEE and Lower Level LAN Protocols.ppt
IEEE and Lower Level LAN Protocols.pptIEEE and Lower Level LAN Protocols.ppt
IEEE and Lower Level LAN Protocols.ppt
HODElex
 
WIFI MODEM Part-22
WIFI MODEM Part-22WIFI MODEM Part-22
WIFI MODEM Part-22
Techvilla
 
Packet Analysis - Course Technology Computing Conference
Packet Analysis - Course Technology Computing ConferencePacket Analysis - Course Technology Computing Conference
Packet Analysis - Course Technology Computing Conference
Cengage Learning
 
L6 6 lowpan
L6 6 lowpanL6 6 lowpan
L6 6 lowpan
bimal2638
 

Similar to Introduction to Computer Networking (20)

IP Signal Distribution
IP Signal DistributionIP Signal Distribution
IP Signal Distribution
 
Networking Hardware Concepts
Networking Hardware ConceptsNetworking Hardware Concepts
Networking Hardware Concepts
 
LAN Fundamentals
LAN FundamentalsLAN Fundamentals
LAN Fundamentals
 
TCP/IP Protocol Suite model Transmission Control Protocol
TCP/IP Protocol Suite model  Transmission Control ProtocolTCP/IP Protocol Suite model  Transmission Control Protocol
TCP/IP Protocol Suite model Transmission Control Protocol
 
Networks la ns and design
Networks la ns and designNetworks la ns and design
Networks la ns and design
 
HowTheInternetWorks.ppt
HowTheInternetWorks.pptHowTheInternetWorks.ppt
HowTheInternetWorks.ppt
 
CISSP Prep: Ch 5. Communication and Network Security (Part 1)
CISSP Prep: Ch 5. Communication and Network Security (Part 1)CISSP Prep: Ch 5. Communication and Network Security (Part 1)
CISSP Prep: Ch 5. Communication and Network Security (Part 1)
 
Computer Networking 101
Computer Networking 101Computer Networking 101
Computer Networking 101
 
4. Communication and Network Security
4. Communication and Network Security4. Communication and Network Security
4. Communication and Network Security
 
Intternetworking With TCP/IP
Intternetworking With TCP/IPIntternetworking With TCP/IP
Intternetworking With TCP/IP
 
IPv6 on the Interop Network
IPv6 on the Interop NetworkIPv6 on the Interop Network
IPv6 on the Interop Network
 
From Device to Data Center to Insights: Architectural Considerations for the ...
From Device to Data Center to Insights: Architectural Considerations for the ...From Device to Data Center to Insights: Architectural Considerations for the ...
From Device to Data Center to Insights: Architectural Considerations for the ...
 
From Device to Data Center to Insights
From Device to Data Center to InsightsFrom Device to Data Center to Insights
From Device to Data Center to Insights
 
4. Communication and Network Security
4. Communication and Network Security4. Communication and Network Security
4. Communication and Network Security
 
Networking.ppt
Networking.pptNetworking.ppt
Networking.ppt
 
Slides internet technology
Slides internet technologySlides internet technology
Slides internet technology
 
IEEE and Lower Level LAN Protocols.ppt
IEEE and Lower Level LAN Protocols.pptIEEE and Lower Level LAN Protocols.ppt
IEEE and Lower Level LAN Protocols.ppt
 
WIFI MODEM Part-22
WIFI MODEM Part-22WIFI MODEM Part-22
WIFI MODEM Part-22
 
Packet Analysis - Course Technology Computing Conference
Packet Analysis - Course Technology Computing ConferencePacket Analysis - Course Technology Computing Conference
Packet Analysis - Course Technology Computing Conference
 
L6 6 lowpan
L6 6 lowpanL6 6 lowpan
L6 6 lowpan
 

Recently uploaded

Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
TristanJasperRamos
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
Himani415946
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
ShahulHameed54211
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 

Recently uploaded (16)

Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 

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
  • 38.
  • 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
  • 50. Inter – Domain Routing
  • 53.
  • 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
  • 73. STP – Root Ports
  • 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
  • 84.
  • 85.
  • 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