Lecture 01 - 05 Introduction-final
Lecture 01 - 05 Introduction-final
Introduction: 1-3
Introduction: 1-4
Introduction and overview: Internet?, Network edge: Client Server Programs;
Access Networks and Physical Media; Network Core: Circuit Switching vs. Packet
switching; Protocol layers and their service models: Layered Architecture,
Messages, Segments, Datagrams and Frames
Application Layer: HTTP, FTP, DNS, P2P file distribution
Transport Layer: Transport Layer Services, Multiplexing, De-multiplexing; UDP:
segment structure, Checksum; Connection Oriented TCP: Connection, segment
structure, RTT estimation and timeout
Network Layer: Virtual Circuits and datagram networks; IP protocol: Datagram
format; Routing algorithms: Distance Vector and Link state routing protocols
Link Layer: Link layer services; Error detection techniques; Multiple access
protocols; Random Access Protocols; link layer addressing (ARP); link layer
switches
Physical Layer: Analog and Digital Data; Transmission Impairments; Wireless and
Mobile Networks
Mobility management principles and Security in Computer Networks
Text Book:
Computer Networking: A Top Down Approach, Kurose, J.F. &Ross, K.W., 7 th Edition (2017),
Addison Wesley.
Reference Books:
Computer Networks and Internets, Comer, D.E., 6 th Edition (2014), Addison Wesley.
Networking: A Beginner's Guide, Hallberg, B., 6th Edition (2013), McGraw Hill.
Computer Networks, Tannenbaum, 5th Edition (2010), Andrew S. Tenanbaum, David
J.Wetherall
Theory (100 %) Lab (100 %)
Terminal (1) 50 %
Note: Strick policy for the cheating in any of the artifact especially assignments.
8
1. Describe the basic network components, services,
technologies and layered network architecture
2. Demonstrate the functionality of each layer using
networking tools.
3. Develop simple network applications.
4. Describe the basic issues in Mobile Networks and
Network Security.
9
Chapter 1: Introduction, Computer Networking: A Top-Down Approach,
8th edition, Jim Kurose, Keith Ross, Pearson, 2020
What is the Internet?
What is a protocol?
Network edge: hosts, access network, physical media
Network core: packet/circuit switching, internet structure
Performance: loss, delay, throughput
Security
Protocol layers, service models
History
The Internet: a “nuts and bolts” view
Billions of connected mobile network
computing devices: national or global ISP
hosts = end systems
running network apps at
Internet’s “edge”
• Interconnected ISPs
Protocols: IP
Streaming
Skype video
set of rules that determine
• how data is transmitted between different devices
in the same network. local or
regional ISP
• control sending, receiving of messages
• e.g., HTTP (Web), streaming video, Skype, TCP, IP,
WiFi, 4G, Ethernet home network content
provider
Internet standards HTTP network datacenter
network
• a technology or methodology applicable to Ethernet
the Internet.
• Internet Standards are created and published TCP
by the Internet Engineering Task Force (IETF). enterprise
network
• RFC: Request for Comments
WiFi
Introduction: 1-13
What’s a protocol?
Human protocols: Network protocols:
“what’s the time?” computers (devices) rather than humans
“I have a question” all communication activity in Internet
introductions governed by protocols
Introduction: 1-14
What’s a protocol?
A human protocol and a computer network protocol:
Hi TCP connection
request
Hi TCP connection
response
Got the
time? GET http://gaia.cs.umass.edu/kurose_ross
2:00
<file>
time
refers to endpoints
personal computers (PCs),
adapters, modems, and the devices local or
regional ISP
that connect to them.
home network
hosts: clients and servers content
provider
network datacenter
servers often in data centers network
enterprise
network
Introduction: 1-17
A closer look at Internet structure
mobile network
enterprise
network
Introduction: 1-18
A closer look at Internet structure
mobile network
Introduction: 1-19
Access networks and physical media
Q: How to connect end systems to edge router?
enterprise access networks, mobile network
a local area network ( LAN ) is used to national or global ISP
connect an end system to an edge router
residential access nets
institutional access networks (school, company)
mobile access networks (WiFi, 4G/5G)
What do you use an edge router for?
local or
An edge router is a specialized router regional ISP
• located at a network boundary
• that enables an internal network to connect to home network content
external networks. provider
network datacenter
network
enterprise
network
Introduction: 1-20
Access networks and physical media
What to look for: mobile network
to Internet
Introduction: 1-24
Wireless access networks
Shared wireless access network connects end system to router
via base station aka “access point”
Introduction: 1-25
Types of Transmission Media
Guided Media:
It is also referred to as Wired or
Bounded transmission media.
Features:
•High Speed
•Secure
•Used for comparatively shorter
distances
Unguided Media:
It is also referred to as Wireless or Unbounded
transmission media.
No physical medium is required for the transmission of
electromagnetic signals.
Features:
•The signal is broadcasted through air
•Less Secure
•Used for larger distances Introduction: 1-26
Links: physical media
Introduction: 1-28
Links: physical media
Wireless radio Radio link types:
signal carried in terrestrial microwave
electromagnetic spectrum • up to 45 Mbps channels
no physical “wire” Wireless LAN (WiFi)
broadcast and “half-duplex” • Up to 100’s Mbps
(sender to receiver) wide-area (e.g., cellular)
propagation environment • 4G cellular: ~ 10’s Mbps
effects:
satellite
• reflection
• up to 45 Mbps per channel
• obstruction by objects
• 270 msec end-end delay
• interference
Introduction: 1-29
Chapter 1: Introduction, Computer Networking: A Top-Down Approach,
8th edition, Jim Kurose, Keith Ross, Pearson, 2020
Figure 1.3: Types of connection
1.31
NETWORKS TYPES
1.33
Figure 1.8: An Isolated LAN in the past and today
1.34
1.3.2 Wide Area Network
A wide area network (WAN) is also an connection of
devices capable of communication.
However, there are some differences between a LAN and
a WAN.
LAN WAN
A LAN is normally limited in size a WAN has a wider geographical
span, spanning a town, a state, a
country, or even the world
A LAN interconnects hosts a WAN interconnects connecting
devices such as switches, routers,
or modems
A LAN is normally privately a WAN is normally created and
owned by the organization that run by communication companies
uses it and leased by an organization that
uses it.
1.35
1.3.3 Metropolitan Area Network (MAN)
1.36
Classification by Scale
1.37
Figure 1.9: A Point-to-Point WAN
1.38
Figure 1.10: A Switched WAN
1.39
Figure 1.11: An internetwork made of two LANs and one WAN
WAN
1.40
Figure 1.12: A heterogeneous network made of WANs and LANs
1.41
1.3.4 The Internet
1.42
Figure 1.15: The Internet today
1.43
Topics from shared video
Five components of data communication
Data Flow
Topologies
Introduction: 1-44
Network Topology
49
Bus Topology
Advantages
• Since there is a single communication line, means the same medium is shared.
Therefore, the major advantage of using this topology is its simplicity.
• Easy to setup and extend.
• Less costly. Less cabling needs.
Disadvantages
• On the other hand, having a single communication line for data transmission makes
it easier for collision to occur, which is seen as a disadvantage of using this network
topology.
• If the single network cable has a problem or disconnection, the whole network
breaks.
• Difficult to identify a problem.
• All devices receive all signals from every other host. This is not efficient.
50
STAR Topology
63
HYBRID Topology
Chapter 1: roadmap
What is the Internet?
What is a protocol?
Network edge: hosts, access network,
physical media
Network core: packet/circuit
switching, internet structure
Performance: loss, delay, throughput
Security
Protocol layers, service models
History
Introduction: 1-65
Switching techniques
In large networks,
• multiple paths from sender to
receiver.
• The switching technique will
decide the best route for data
transmission.
Switching technique is used
• to connect the systems for making
one-to-one communication.
Introduction: 1-66
Packet switching
connectionless network Header Part:
switching technique • contains the addressing
information of the packet
hosts break application-layer
• used by the intermediate routers
messages into packets to direct it towards its destination.
Each packet in a packet The
switching technique has two Payload Part:
parts: a header and a payload. • carries the actual data.
Introduction: 1-67
18.2.1 Datagram Approach
18.68
Packet Switching & Circuit Switching
18.69
Figure 18.3: A connectionless packet-switched network
18.70
Introduction: 1-71
Packet switching
The packet switching is a switching technique in which the message is sent in one go,
but it is divided into smaller pieces, and they are sent individually.
The message splits into smaller pieces known as packets and packets are given a
unique number to identify their order at the receiving end.
Every packet contains some information in its headers such as source address,
destination address and sequence number.
Packets will travel across the network, taking the shortest path as possible.
All the packets are reassembled at the receiving end in correct order.
If any packet is missing or corrupted, then the message will be sent to resend the
message.
If the correct order of the packets is reached, then the acknowledgment message will
be sent.
Introduction: 1-72
Figure 18.4: Forwarding process in a router when used in a
connectionless network
SA DA Data SA DA Data
18.73
A connectionless packet-switched network
18.74
18.2.2 Virtual-Circuit Approach
18.76
Figure 18.6: Forwarding process in a router when used in a virtual
circuit network
18.77
Figure 18.7: Sending request packet in a virtual-circuit network
A to B
A to B
A to B A to B
18.78
Figure 18.8: Sending acknowledgments in a virtual-circuit network
18.79
Figure 18.9: Flow of one packet in an established virtual circuit
18.80
18.2.2 Virtual-Circuit Approach
18.81
Packet-switching: store-and-forward
L bits
per packet
3 2 1
source destination
R bps R bps
D
B R = 1.5 Mb/s
E
queue of packets
waiting for output link
Packet queuing and loss: if arrival rate (in bps) to link exceeds
transmission rate (bps) of link for a period of time:
packets will queue, waiting to be transmitted on output link
packets can be dropped (lost) if memory (buffer) in router fills
up
Introduction: 1-83
Two key network-core functions
frequency
divided into (narrow) frequency
bands
each call allocated its own band, can
transmit at max rate of that narrow
band time
Time Division Multiplexing (TDM)
frequency
time divided into slots
each call allocated periodic slot(s), can
transmit at maximum rate of (wider)
frequency band, but only during its time
time slot(s)
Introduction: 1-87
Internet structure: a “network of networks”
Hosts connect to Internet via access Internet Service
Providers (ISPs)
• residential, enterprise (company, university, commercial) ISPs
Access ISPs in turn must be interconnected
• so that any two hosts can send packets to each other
Resulting network of networks is very complex
• evolution was driven by economics and national policies
Let’s take a stepwise approach to describe current
Internet structure
Introduction: 1-88
Internet structure: a “network of networks”
Question: given millions of access ISPs, how to connect them together?
access access
net net
access
net
access
access net
net
access
access net
net
access access
net net
access
net
access
net
access
net
access
net
access access
net access net
net
Introduction: 1-89
Internet structure: a “network of networks”
Question: given millions of access ISPs, how to connect them together?
access access
net net
access
net
access
access net
net
access
access net
net
access
net
access
net
access
net
access
net
access access
net access net
net
Introduction: 1-90
Internet structure: a “network of networks”
Option: connect each access ISP to one global transit ISP?
Customer and provider ISPs have economic agreement.
access access
net net
access
net
access
access net
net
access
access net
net
global
access
net
ISP access
net
access
net
access
net
access
net
access
net
access access
net access net
net
Introduction: 1-91
Internet structure: a “network of networks”
But if one global ISP is viable business, there will be competitors ….
access access
net net
access
net
access
access net
net
access
access net
net ISP A
access
net ISP B access
net
access ISP C
net
access
net
access
net
access
net
access access
net access net
net
Introduction: 1-92
Internet structure: a “network of networks”
But if one global ISP is viable business, there will be competitors …. who will
want to be connected
Internet exchange point
access access
net net
access
net
access
access net
net
IXP access
access net
net ISP A
access
net
IXP ISP B access
net
access ISP C
net
access
net
access
net
peering link
access
net
access access
net access net
net
Introduction: 1-93
Internet structure: a “network of networks”
… and regional networks may arise to connect access nets to ISPs
access access
net net
access
net
access
access net
net
IXP access
access net
net ISP A
access
net
IXP ISP B access
net
access ISP C
net
access
net
access
net
regional ISP access
net
access access
net access net
net
Introduction: 1-94
Internet structure: a “network of networks”
… and content provider networks (e.g., Google, Microsoft, Akamai) may
run their own network, to bring services, content close to end users
access access
net net
access
net
access
access net
net
IXP access
access net
net ISP A
access ISP C
net
access
net
access
net
regional ISP access
net
access access
net access net
net
Introduction: 1-95
Internet structure: a “network of networks”
Tier 1 ISP Tier 1 ISP Google
Introduction: 1-99
Example: organization of air travel
Introduction: 1-102
Internet protocol stack
application: supporting network applications
• IMAP, SMTP, HTTP
application
transport: process-process data transfer
• TCP, UDP transport
network: routing of datagrams from source to
destination network
• IP, routing protocols
link
link: data transfer between neighboring
network elements physical
• Ethernet, 802.11 (WiFi), PPP
physical: bits “on the wire”
Introduction: 1-103
source
message M application Encapsulation
segment Ht M transport
datagram Hn Ht M network
frame Hl Hn Ht M link
physical
link
physical
switch
destination Hn Ht M network
M application Hl Hn Ht M link Hn Ht M
Ht M transport physical
Hn Ht M network
Hl Hn Ht M link router
physical
Introduction: 1-104
Chapter 1: roadmap
What is the Internet?
What is a protocol?
Network edge: hosts, access network,
physical media
Network core: packet/circuit
switching, internet structure
Performance: loss, delay, throughput
Security
Protocol layers, service models
History
Introduction: 1-105
Internet history
1961-1972: Early packet-switching principles
1961: Kleinrock - queueing 1972:
theory shows effectiveness of • ARPAnet public demo
packet-switching • NCP (Network Control Protocol)
1964: Baran - packet-switching first host-host protocol
in military nets • first e-mail program
1967: ARPAnet conceived by • ARPAnet has 15 nodes
Advanced Research Projects
Agency
1969: first ARPAnet node
operational
Introduction: 1-106
Internet history
1972-1980: Internetworking, new and proprietary nets
1970: ALOHAnet satellite network
in Hawaii Cerf and Kahn’s internetworking
principles:
1974: Cerf and Kahn - architecture minimalism, autonomy - no
for interconnecting networks internal changes required to
1976: Ethernet at Xerox PARC interconnect networks
best-effort service model
late70’s: proprietary architectures:
DECnet, SNA, XNA stateless routing
decentralized control
late 70’s: switching fixed length
packets (ATM precursor) define today’s Internet architecture
Introduction: 1-108
Internet history
1990, 2000s: commercialization, the Web, new applications
early 1990s: ARPAnet late 1990s – 2000s:
decommissioned more killer apps: instant
1991: NSF lifts restrictions on messaging, P2P file sharing
commercial use of NSFnet network security to forefront
(decommissioned, 1995)
est. 50 million host, 100 million+
early 1990s: Web users
• hypertext [Bush 1945, Nelson 1960’s]
• HTML, HTTP: Berners-Lee
backbone links running at Gbps
• 1994: Mosaic, later Netscape
• late 1990s: commercialization of the
Web
Introduction: 1-109
Internet history
2005-present: more new applications, Internet is “everywhere”
~18B devices attached to Internet (2017)
• rise of smartphones (iPhone: 2007)
aggressive deployment of broadband access
increasing ubiquity of high-speed wireless access: 4G/5G, WiFi
emergence of online social networks:
• Facebook: ~ 2.5 billion users
service providers (Google, FB, Microsoft) create their own networks
• bypass commercial Internet to connect “close” to end user, providing
“instantaneous” access to search, video content, …
enterprises run their services in “cloud” (e.g., Amazon Web Services,
Microsoft Azure)
Introduction: 1-110
Chapter 1: summary
We’ve covered a “ton” of material!
Internet overview
what’s a protocol? You now have:
network edge, access network, core context, overview,
• packet-switching versus circuit-
switching vocabulary, “feel”
• Internet structure of networking
performance: loss, delay, throughput more depth,
layering, service models detail, and fun to
security follow!
history
Introduction: 1-111