Lecture CH 01 Introduction
Lecture CH 01 Introduction
Knowledge
Software
Research
Hard ware After
skills
skills
Presentation
skills
Logistics
▪ Textbook:
• “Computer Networking: A Top-Down Approach”, by Jim Kurose and Keith Ross, 8th edition, Pearson, 2020.
▪ Slides:
• Adapted from the slides by the textbook authors.
▪ Office hours:
• Right after the lecture time or by appointment.
7
Chapter 1: introduction
• Interconnected ISPs
Streaming
IP
Skype video
local or
▪ protocols are everywhere regional ISP
TCP
enterprise
network
WiFi 12
1
1
What’s a Protocol?
human protocols:
protocols define: network protocols:
❖ introductions
❖ machines rather than
1) syntax, semantics and
❖ “I have a question”
humans
synchronization of
❖ “what's the time?”
❖ all communication
messages sent/received.
activity in Internet
… specific msgs sent 2) Actions on transmission
… specific actions taken when msgs governed by protocols
received, or other events & reception of messages
Protocol.
A protocol is a set of rules that govern data communications. It represents an agreement between the
communicating devices. Without a protocol, two devices may be connected but not communicating, just as a
person speaking French cannot be understood by a person who speaks only Japanese.
• Interconnected ISPs
Streaming
IP
Skype video
▪ protocols are everywhere local or
• control sending, receiving of messages regional ISP
▪ Internet standards
TCP
enterprise
network
• IETF: Internet Engineering Task WiFi
Force 12
bikes
Gaming devices
Others?
Internet phones diapers
Introduction: 1-16
Chapter 1: roadmap
local or
regional ISP
enterprise
network
Introduction: 1-19
Physical Topology:
Mesh topology:
❖A mesh topology is the one where every node is connected to every other node.
Mesh topology:
❖Advantages of mesh topology: ❖Disadvantages of mesh topology:
■Can handle high amounts of traffic, ■The cost to implement is higher than
because multiple devices can transmit other network topologies, making it a
data simultaneously. less desirable option.
■A failure of one device does not cause ■Building and maintaining the topology
a break in the network or transmission is difficult and time consuming.
of data. ■The chance of redundant connections
■Adding additional devices does not is high, which adds to the high costs
disrupt data transmission between and potential for reduced efficiency.
other devices.
Star topology:
❖A star network, star topology is one of the most common network setups. In this
configuration, every node connects to a central network device, like a hub, switch, or
computer.
Star topology
❖Advantages of star topology: ❖Disadvantages of star topology:
■Centralized management of the network, ■Can have a higher cost to implement,
through the use of the central computer, hub, especially when using a switch or
or switch. router as the central network device.
■Easy to add another computer to the network. ■The central network device determines
■If one computer on the network fails, the rest the performance and number of nodes
of the network continues to function normally. the network can handle.
■The star topology is used in local-area ■If the central computer, hub, or switch
networks (LANs), High-speed LANs often use fails, the entire network goes down and
a star topology with a central hub. all computers are disconnected from
the network
Bus topology:
❖A line topology, a bus topology is a network setup in which each computer and network
device are connected to a single cable or backbone.
Bus topology
❖Advantages of bus topology: ❖Disadvantages of bus topology:
■It works well when you have a small ■It can be difficult to identify the problems if the
network. whole network goes down.
■It's the easiest network topology for ■It can be hard to troubleshoot individual device
connecting computers or peripherals issues.
in a linear fashion. ■Bus topology is not great for large networks.
■It requires less cable length than a ■Terminators are required for both ends of the
star topology. main cable.
■Additional devices slow the network down.
■If a main cable is damaged, the network fails
or splits into two.
Ring topology:
❖A ring topology is a network configuration in which device connections create a circular
data path. In a ring network, packets of data travel from one device to the next until they
reach their destination.
Ring topology
❖Advantages of ring topology: ❖Disadvantages of ring topology:
■All data flows in one direction, reducing ■All data being transferred over the
the chance of packet collisions. network must pass through each
■A network server is not needed to ■workstation on the network, which can
control network connectivity between make it slower than a star topology.
each workstation. ■The entire network will be impacted if one
■Data can transfer between workstations workstation shuts down.
at high speeds. ■The hardware needed to connect each
■Additional workstations can be added workstation to the network is more
without impacting performance of the expensive than Ethernet cards and
network. hubs/switches.
Types of Network based on size
❖ The types of network are classified based upon the size, the area it covers and its
physical architecture. The three primary network categories are LAN, WAN and MAN.
Each network differs in their characteristics such as distance, transmission speed, cables
and cost.
❖Two or more pc's can from a LAN to share files, folders, printers, applications and other
devices.
❖Connecting number of LANs to form larger network, so that resources can be shared.
❖Data transfer rate depends upon the ISP provider and varies over the location.
enterprise
network
Introduction: 1-33
Type of Connection
A network is two or more devices connected through links. A link is a communications pathway
that transfers data from one device to another.
Point-to-Point
A point-to-point connection provides a dedicated link between two devices. The entire capacity of the link is
reserved for transmission between those two devices. Most point-to-point connections use an actual length of
wire or cable to connect the two ends, but other options, such as microwave or satellite links, are also possible
When you change television channels by infrared remote control, you are establishing a point-to-point
connection between the remote control and the television's control system.
Multipoint
A multipoint (also called multi-drop) connection is one in which more than two specific devices share a single link
In a multipoint environment, the capacity of the channel is shared, either spatially or temporally.
If several devices can use the link simultaneously, it is a spatially shared connection. If users must take turns, it is
a timeshared connection.
▪ interconnected routers
▪ network of networks enterprise
network
Introduction: 1-39
Access networks and physical media
enterprise
network
Introduction: 1-40
Access networks: digital subscriber line (DSL)
central office telephone
network
DSL splitter
modem DSLAM
to/from headend or
central office
often combined
in single box
to Internet
to Internet
Introduction: 1-43
Access networks: enterprise networks
Enterprise link to
ISP (Internet)
institutional router
Ethernet institutional mail,
switch web servers
Introduction: 1-46
Links: physical media
Coaxial cable: Fiber optic cable:
▪ two concentric copper conductors ▪ glass fiber carrying light pulses, each
pulse a bit
▪ bidirectional
▪ high-speed operation:
▪ broadband: • high-speed point-to-point
• multiple frequency channels on cable transmission (10’s-100’s Gbps)
• 100’s Mbps per channel ▪ low error rate:
• repeaters spaced far apart
• immune to electromagnetic noise
Introduction: 1-47
Links: physical media
Wireless radio Radio link types:
▪ signal carried in various ▪ Wireless LAN (WiFi)
“bands” in electromagnetic • 10-100’s Mbps; 10’s of meters
spectrum ▪ wide-area (e.g., 4G/5G cellular)
▪ no physical “wire” • 10’s Mbps (4G) over ~10 Km
▪ broadcast, “half-duplex” ▪ Bluetooth: cable replacement
(sender to receiver)
• short distances, limited rates
▪ propagation environment
effects: ▪ terrestrial microwave
• reflection • point-to-point; 45 Mbps channels
• obstruction by objects ▪ satellite
• Interference/noise • up to < 100 Mbps (Starlink) downlink
• 270 msec end-end delay (geostationary)
Introduction: 1-48
Chapter 1: roadmap
enterprise
network
Introduction: 1-50
Two key network-core functions
arriving packets
0111
1001
2
1 taken by packets
from router’s ▪ routing algorithms
input link to 1
appropriate router
output link 3 2
Introduction: 1-52
Packet-switching: store-and-forward
L bits
per packet
3 2 1
source destination
R bps R bps
Introduction: 1-53
Packet-switching: queueing
R = 100 Mb/s
A C
D
B R = 1.5 Mb/s
E
queue of packets
waiting for transmission
over output link
Introduction: 1-54
Packet-switching: queueing
R = 100 Mb/s
A C
D
B R = 1.5 Mb/s
E
queue of packets
waiting for transmission
over output link
Packet queuing and loss: if arrival rate (in bps) to link exceeds
transmission rate (bps) of link for some 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-55
Alternative to packet switching: circuit switching
end-end resources allocated to,
reserved for “call” between source
and destination
• in diagram, each link has four circuits.
• call gets 2nd circuit in top link and 1st
circuit in right link.
• dedicated resources: no sharing
• circuit-like (guaranteed) performance
• circuit segment idle if not used by call (no
sharing)
▪ commonly used in traditional telephone networks
* Check out the online interactive exercises for more examples: http://gaia.cs.umass.edu/kurose_ross/interactive
Introduction: 1-56
Alternative to packet switching: circuit switching
end-end resources allocated to,
reserved for “call” between source
and destination
• in diagram, each link has four circuits.
• call gets 2nd circuit in top link and 1st
circuit in right link.
• dedicated resources: no sharing
• circuit-like (guaranteed) performance
• circuit segment idle if not used by call (no
sharing)
▪ commonly used in traditional telephone networks
* Check out the online interactive exercises for more examples: http://gaia.cs.umass.edu/kurose_ross/interactive
Introduction: 1-57
Circuit switching: FDM and TDM
Frequency Division Multiplexing
(FDM) 4 users
frequency
• optical, electromagnetic frequencies
divided into (narrow) frequency bands
frequency
▪ time divided into slots
▪ each call allocated periodic slot(s), can
transmit at maximum rate of (wider) time
frequency band (only) during its time
slot(s) Introduction: 1-58
Packet switching versus circuit switching
example:
▪ 1 Gb/s link
N
▪ each user: users 1 Gbps link
• 100 Mb/s when “active”
• active 10% of time
Q: how many users can use this network under circuit-switching and packet switching?
▪ circuit-switching: 10 users
▪ packet switching: with 35 users,
probability > 10 active at same time
is less than .0004
Introduction: 1-59
Packet switching versus circuit switching
Is packet switching a “slam dunk winner”?
▪ great for “bursty” data – sometimes has data to send, but at other times not
• resource sharing
• simpler, no call setup
▪ excessive congestion possible: packet delay and loss due to buffer overflow
• protocols needed for reliable data transfer, congestion control
▪ Q: How to provide circuit-like behavior with packet-switching?
• “It’s complicated.” We’ll study various techniques that try to make packet
switching as “circuit-like” as possible.