Module 1
Module 1
References
• 1. An Engineering Approach to Computer Networking by S. Keshav
• 2. The Art of Computer Systems Performance Analysis: Techniques for
Experimental Design, Measurement, Simulation, and Modeling, by Raj Jain
• 3. Network Routing by Deepankar Medhi and Karthikeyan Ramasamy
Evaluation format
• Teaching Mode: Combination of Online live sessions & Recorded
lectures
4
mobile network
The Internet
global
● Millions of connected devices ISP
PC
home
server network
regional
Wireless laptop ISP
smartphone
institutional
network 7
mobile network
A “service view” of the Internet
global
ISP
❖ Infrastructure that provides
services to applications: home
▪ E.g- Web, VoIP, email, network
regional
games, e-commerce, social ISP
networking, etc.
▪ Applications are said to be
distributed
▪ Applications involve multiple
end systems that exchange
data with each other.
institutional
network
8
mobile network
● Internet applications run
on end systems- not in global
the network core. ISP
home
❖ provides programming network
regional
interface to applications ISP
▪ allows sending and
receiving application
programs to “connect” to
Internet
institutional
network
9
mobile network
Network Structure
global
● network edge: ISP
❖ residential access
networks
❖ institutional access
networks (school,
company)
12
The Network Core
❖ mesh of interconnected routers
❖ packet-switching: hosts break
application-layer messages into
packets
▪ forward packets from one
router to the next, across
links on path from source to
destination
▪ each packet transmitted at
full link capacity
13
Introduction 1-13
Host: sends packets of data
host sending function:
❖takes application message
time needed to
packet L (bits)
transmission = transmit L-bit =
delay
packet into link R (bits/sec)
1-14
1-14
Packet Switching: Store-and-forward
L bits
per packet
source 3 2 1
R bps R bps destination
A R = 100 Mb/s C
R = 1.5 Mb/s D
B
queue of packets E
waiting for output link
B
packets queueing (delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
17
Introduction 1-17
Sources of packet delay
transmission
A propagation
B
nodal
processing queueing
dnodal = dproc + dqueue + dtrans + dprop
B
nodal
processing queueing
dnodal = dproc + dqueue + dtrans + dprop
dtrans: transmission delay:
dprop: propagation delay:
▪ L: packet length (bits)
▪ d: length of physical link
▪ R: link bandwidth (bps)
▪ s: propagation speed in medium
▪ dtrans = L/R (~2x108 m/sec)
dtrans and dprop ▪ dprop = d/s
very different
19
Introduction 1-19
Packet loss
❖ queue (aka buffer) preceding link in buffer has finite
capacity
❖ packet arriving to full queue dropped (aka lost)
❖ lost packet may be retransmitted by previous node, by
source end system, or not at all
buffer
packet being transmitted
A (waiting area)
B
packet arriving to full buffer is lost
20
Introduction 1-20
Alternative core: circuit switching
end-end resources allocated to,
reserved for “call” between
source & dest:
❖ In diagram, each link has four
circuits.
▪ call gets 2
nd 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
21
Introduction 1-21
Circuit switching: FDM versus TDM
Example:
FDM
4 users
frequency
time
TDM
frequency
time
Introduction 1-22
Packet Switching
❖Resources are not reserved.
❖Resources are used on demand.
❖Message may have to wait for access to a communication link.
❖Allows more users to use the network.
23
Introduction 1-23
Packet switching versus circuit switching
is packet switching a “winner”?
❖ great for bursty data
▪ resource sharing
▪ simpler, no call setup
❖ excessive congestion possible: packet delay and loss
24
Introduction 1-24
Advantages of Circuit Switching
• Network layer informs the end system on the other side about call
termination.
• Forwarding tables in the path are updated.
Setup requests in a VC network
Setup acknowledgement in a virtual-circuit network
Teardown phase
• Source after sending all frames to destination, sends a special frame
called “teardown request”.
• Destination responds with teardown confirmation frame.
• All the forwarding tables in the path are correspondingly updated.
Features
• Call setup, teardown for each call before data can flow
• Each packet carries VC identifier (not destination host ID)
• Every router on source-destination path maintains “state” for each
passing connection
• transport-layer connection only involved two end systems
• Link, router resources (bandwidth, buffers) may be allocated to VC
• to get circuit-like performance
Virtual Circuit Switching
• Two types:
• Permanent Virtual Circuit (PVC)
• Network administrator configures the state
• Switched Virtual Circuit (SVC)
• Setup and teardown performed by the host
requiring the circuit at the time of use (“on-
demand”)
PVCs
• Administratively configured (manually/dedicated signaling protocol/
piggybacking on routing protocols)
• Last a long time
• Setting up the PVC's in a large network can be overwhelming
SVCs
• Dynamically set up on a “per-call” basis.
• Host A sends a setup message to switch linked to its interface (switch 1)
• Contains the complete destination address of host B
• This message needs to make its way all through the network to host B so that every
switch can update its VC table.
• Switch 1 receives the request
• Updates its VC table
• Sends it to switch 2
• This continues until the request reaches host B
• But how??
• Switches must know enough about network topology
• Host B now sends an ACK back to A
• This behaves the same as the original setup request
• Each switch receives the message
• Updates the VC tables
• Forwards the message on
• Every switch now knows the properties of the VC when the message
reaches host A.
• When A (or B) is done with the connection, it sends a teardown
message to the channel, say to switch 1
• Switch 1 forwards the packet to switch 2 and removes the VC entry
for host A
• Switch 2 does the same, etc.
• When the teardown message has reached host b, the connection has
been removed.
SVC Notes
• Takes 1 full RTT to set up the path
• Buffers are allocated in the switches as the connection is set
up
• Advanced sliding windows keep the remote nodes behaving
• Circuit setup requests are rejected if a node does not have
enough buffers
• Hop-by-hop flow control
Delay in a virtual circuit network
Virtual Circuits In Practice
• ATMs
• MPLS
Asynchronous Transfer Mode: ATM
• Teleco-driven
• Originally envisioned to use in all kinds of services, such as:
• Voice
• IP
• LAN, etc.
• Was designed for a network that must handle both traditional high
throughput data traffic and real time, low latency content such as,
voice and video.
• Used to unify both telephone and data networking
Why ATM?
• Telephone networks support a single QoS and is expensive to
setup
• Packet switched networks support no QoS but is flexible and
cheap
• ATM wants to use best of both, i.e., provides QoS and is
cheap.
Features
• Connection-oriented, uses virtual circuits
• Information is transmitted in small fixed-sized packets called cells
Fixed size because
• makes switch design easier
• Lookups are easy
• makes it scalable to high speed
• Fixed cell size- 53 bytes (48 payload + 5 header)
• Uses asynchronous TDM,i.e., cells are transmitted asynchronously
• Data/cells can be transmitted in any order
• Can carry multiple types of traffic
• Delivery of packets may not be guaranteed
• Uses statistical multiplexing
• Independent of transmission medium
Proposed use cases
• Connectivity in Internet backbones
• Aggregating residential broadband networks (cable, DSL, ISDN)
• Provides carrier infrastructure from the telephone and private line
networks
• Provides variable rate for telephone network backbone
ATM Reference Model
• Control – responsible for generating
and managing signalling request
(connection management)
• User- deals with data transport, flow
control, error correction, and other user
functions
• Layer Management- manages layer-
specific functions (detection of failures
and protocol problems)
• Plane management- manages and
coordinates functions related to the
complete system
ATM Layers
• Reference model for ATM approximately maps to the 3 lowest layers
of OSI reference model:
• Network layer
• Data link layer
• Physical layer
Physical Medium
ATM Adaptation Layer (AAL)
• Enables ATM to accept any type of payload, both data frames and
streams bits
• Fragment them into small and fixed-size cells
• Reassemble cells
• Mapping apps (e.g: voice, data) to ATM cells
• Convergence sublayer – prepares data to ensure their integrity, providing
standard interface. Helps to offer different kinds of services to different
applications
• Segmentation and Reassemble sublayer (SAR)- Segments the payload into 48
byte cells and at the destination, reassembles them to recreate the original
payload.
ATM Layer
• Defines cell layout
• Defines header
• Routing
• Establishment and release VC
• Switching
• Multiplexing
• Congestion Control
ATM Reference Model
Physical Medium Dependent (PMD)- has two functions:
• Synchronizes transmission and reception by sending and receiving a
continuous flow of bits with associated timing information
• Specifies the physical media for the physical medium used, including
connector type and cable.
1. Transmission Path (TP): the physical connection (wire, cable, satellite,…) between
an endpoint and a switch or between two switches
2. Virtual Paths (VPs): provides a connection or a set of connections between two
switches
3. Virtual Circuits (VCs): Cell networks are based on virtual circuits. All cells belonging
to a single message follow the same virtual circuit and remain in their original
order until they reach their destination.
VC must be set up across the ATM network prior to any data transfer.
Advantages
• Transmitted with predictability and uniformity
• Easy to be multiplexed with other cells, and routed through the cell
network
• With high speed of the links, small and fixed-size cells seem to arrive their
respective destinations in an approximation of continuous stream, despite
interleaving. E.g- phone call
• Simple buffer hardware
• Simpler cells scheduling
• Easier to allocate different bandwidths and delays to different VCs
• Easier to implement priority
• Suitable for time-critical information such as, voice or video
• Quicker recovery in case of circuit failure
Disadvantages
• Processing overhead as messages are segmented into cells
• Segmentation mismatch, as the last cell in a fragmented message may not be
fully used. This effect will decrease as the message length increases
• The expense, complexity and lack of interoperability with other technologies have
prevented ATM from becoming more prevalent
• Connection setup latency (ATM’s connection-oriented paradigm)
• Complexity of QoS: The complexity of the specification makes implementation
cumbersome and difficult. Many implementations do not support the full
standard.
• Assumption of Homogeneity: ATM is designed to be a single, universal
networking system. There is minimal provision for interoperating with other
technologies
Multi-Protocol Label
Switching (MPLS)
Overview
• Enhancement to IP packet forwarding
• Combines some of the properties of VCs with the flexibility and
robustness of datagrams
• MPLS enabled routers forward packets by examining relatively short,
fixed-length labels which have local scope, just like in VC network.
• A forwarding scheme designed to speed up IP packet forwarding (RFC
3031)
• Idea: use a fixed length label in the packet header to decide packet
forwarding
• Label carried in an MPLS header between the link layer header and network
layer header
• Support any network layer protocol and link layer protocol
MPLS Basics
• It is between Layer2 and Layer 3
• Is independent of Layer 2 and Layer 3 protocols
• Maps IP addresses to fixed length labels
• Supports ATM, Frame-relay and ethernet
Terminology
• LSR - Routers that support MPLS are called Label Switch Router
• LER - LSR at the edge of the network is called Label Edge Router (a.k.a Edge LSR)
• Ingress LER is responsible for adding labels to unlabeled IP packets.
• Egress LER is responsible for removing the labels.
• Label Switch Path (LSP) – the path defined by the labels through LSRs between two LERs.
• Label Forwarding Information Base (LFIB) – a forwarding table (mapping) between labels to
outgoing interfaces.
• Forward Equivalent Class (FEC) – All IP packets follow the same path on the MPLS network and
receive the same treatment at each node.
• Forwarding Equivalence Class (FEC): A subset of packets that are all treated the same way by an
LSR
• A packet is assigned to an FEC at the ingress of an MPLS domain
Forwarding Equivalence Class
• A packet’s FEC can be determined by one or more of the following:
• Source and/or destination IP address
• Source and/or destination port number
• Protocol ID
• Differentiated services code point
• Incoming interface
• The concept of FECs provides for flexibility, scalability, and traffic
engineering
69
Working
• Incoming packets are assigned a “label” by a “label edge router (LER)”.
• Packets are forwarded along a “label switch path (LSP)” where each
“label switch router (LSR)” makes forwarding decisions based solely
on the contents of the label.
• At each hop, the LSR strips off the existing label and applies a new
label which tells the next hop how to forward the packet.
• Label Switch Paths (LSPs) are established by network operators for a
variety of purposes, such as to guarantee a certain level of
performance, to route around network congestion, or to create IP
tunnels for network-based virtual private networks.
Add label at the remove label at
ingress LER the egress LER
IP Label Label IP
Routing Switching Switching Routing
How it works?
• Packets enter MPLS Network at a “Label Edge Router” (LER)
• LER Affix a label to packet and forwards it to the MPLS network
• Label switches in the network at each hop makes forwarding decision solely
based on label. That decision is made based on a pre-established “Label
Switch Path” (LSP).
• Labels can be integrated with existing L2 info such as DLCI or ATM VCs.
MPLS Operation
Intf Label Intf Label Intf Label Intf
In In Out Out In In Out
3 50 1 40 3 40 1
73
MPLS summary
• forwarding equivalence class
• at ingress of MPLS network, IP packets are classified, tagged, and
routed
• at next router, tag is used to determine destination
• before leaving, tag is removed
MPLS Applications
• Traffic Engineering
• Virtual Private Network
• Quality of Service (QoS)
Traffic Engineering
• Traffic Engineering (TE) is the process of distributing traffic flows
through the network to achieve load balancing
• TE leads to:
• Reduced congestion
• Improved bandwidth utilization
• Two main approaches to adaptation
• Adaptive routing protocols
• Distribute traffic and performance measurements
• Compute paths based on load, and requirements
• At packet level or at circuit level
• Adaptive network-management system
• Collect measurements of traffic and topology
• Optimize the setting of the “static” parameters 76
• Traffic engineering deals with the application of probability and
optimization theories for the analysis and design of service systems.
• Analysis- calculate/estimate performance
• Design- evaluation of which resources to use and how much
• Service systems
• Input-output function with given quality specs, e.g.- protocol, router, server,
etc.
• Internet Traffic Engineering (ITE): deals with the issue of
performance evaluation and performance optimization of operational
IP networks.
• Enhancing the performance of an operational network at both the
traffic and resource levels are major objectives of ITE.
• Traffic oriented performance measures- delay, jitter, packet loss,
throughput, etc.
• Optimization aspects of traffic engineering can be achieved through –
capacity management and traffic management.
• Capacity management
• Capacity planning
• Routing control
• Resource management
• Traffic management
• Regulate traffic flow/flow control
• Queue management
• scheduling
The Telephone Network
A computer network?
• Specialized to carry voice
• Also carries, video, fax, telemetry data
• Internally use digital samples
• Important component of the telephone networking.
• Telephone network offers : switched voice service with small end-to-
end delays and call completion guarantee.
• QoS is achieved by setting up a circuit between two endpoints.
• Circuit- A path from a source to a destination with signals flowing
simultaneously in both directions.
• Network guarantees enough resources to each circuit to ensure that
the service quality is met.
The big picture
PC
home
server network
regional
Wireless laptop ISP
smartphone
routing algorithm