Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 34

NETWORKING CONCEPTS

SWITCHING NETWORKS

DR.K.MURUGAN

ASSISTANT PROFESSOR

VIT
SUMMARY OF TOPICS

Taxonomy of switching networks


Principles of circuit and packet switching
Multiplexing techniques: FDM, TDM, statistical multiplexing
Datagram and Virtual-circuit packet networks
Packet forwarding in datagram and VC packet networks
COMMUNICATION NETWORKS

Problem: Connect end systems that want to exchange information


(Device = telephone, computer, terminals, etc.)

Simple Solution: Connect each pair of end system by a dedicated point-to-point link
 The simple solution is sufficient if the number of end systems is small
COMMUNICATION NETWORKS

With a large number of end systems it is not practical to connect each pair
COMMUNICATION NETWORKS

A communication network provides a scalable solution to connect a large number of end


systems

Principles:
 There are two types of devices: end systems and nodes
 Each node is connected to at least one node
 Network nodes carry the information from a source to a destination end system
 Note: Network nodes do not generate information
COMMUNICATION NETWORKS

A generic communication network:

end system

Communication
Node Network

Other names for “end system”: station, host, terminal


Other names for “node”: switch, router, gateway
EXAMPLE NETWORKS
Evolution of the UUNet Network 1996-2000

UVA Backbone Network


TAXONOMY OF NETWORKS

Communication networks can be classified based on the way in which the nodes
exchange information:

Communication
Network

Circuit-Switched Packet-Switched
Network Network

Datagram Virtual Circuit


Frequency Time Division Network Network
Division Multiplexing
Multiplexing
Wavelength
Division
Multiplexing
CIRCUIT SWITCHING

In a circuit-switched network, a dedicated communication path (“circuit”) is established


between two stations through the nodes of the network

The dedicated path is called a circuit-switched connection or circuit

A circuit occupies a fixed capacity of each link for the entire lifetime of the connection.
Capacity unused by the circuit cannot be used by other circuits

Data is not delayed at the switches


CIRCUIT SWITCHING

Circuit-switched communication involves three phases:


1. Circuit Establishment
2. Data Transfer
3. Circuit Release
“Busy Signal” if capacity for a circuit not available

Most important circuit-switching networks:


 Telephone networks
 ISDN (Integrated Services Digital Networks)
CIRCUIT SWITCHING

C
circuit 2
B D
1 2
3

A circuit 1 7 6 E
IMPLEMENTATION OF CIRCUIT-SWITCHING
There are two ways to implement circuits
 Frequency Division Multiplexing (FDM)
 Time Division Multiplexing (TDM)
 Wavelength Division Multiplexing (WDM)

Example: Voicein (analog) telephone network:


Needed bandwidth: 3000 Hz
Allocated bandwidth: 4000 Hz
Therefore, a channel with 64 kHz can carry 16 voice
conversations
FREQUENCY DIVISION MULTIPLEXING (FDM)

 Approach: Divide the frequency spectrum into logical


channels and assign each information flow one logical
channel

Source 1 Channel 1 (f1)


1
Source 2 Channel 2 (f2)
2
S S
Source 3 w Channel 3 (f3) w 3
i i
Source 4 t t
Channel 4 (f4) 4
c c
h h
Source 5 5
Channel 5 (f5)

Source 6 6
Channel 6 (f6)
FREQUENCY DIVISION MULTIPLEXING (FDM)

End- End-
system system

Circuit Circuit
Switch Switch

End- End-
system system

A circuit switch bundles (multiplexes) multiple voice calls on a high-bandwidth


link
Frequency-Division-Multiplexing (FDM): Each circuit receives a fixed
bandwidth. The frequency of each call is shifted, so that multiple calls do not
interfere
TIME DIVISION MULTIPLEXING (TDM)

 Approach: Multiple signals can be carried on a single transmission medium by


interleaving portions of each signal in time

Source 1
1
Source 2
2
M M
Source 3 3
U 1 2 3 4 5 6 1 2 U
Source 4 4
Source 5 X X
5
Source 6 6
TIME DIVISION MULTIPLEXING (TDM)

end- end-
system
slots system

Circuit Circuit
Switch Switch

end- end-
system frames system

Time is divided into frames of fixed length


Each frame has a fixed number of constant-sized “slots”
Each circuit obtains one or more “slots” per frame
CIRCUIT SWITCH

switch
fabric

memory

•A circuit switch relays a circuit from an input to an output link


•A switch may reassign frequencies (FDM) or time slot allocation (TDM)
•No queuing delays are experienced
PACKET SWITCHING
Data are sent as formatted bit-sequences, so-called packets
Packets have the following structure:

 Header and Trailer carry control information


Header Data Trailer

Each packet is passed through the network from node to node along some path
(Forwarding/Routing)
At each node the entire packet is received, stored briefly, and then forwarded to
the next node (Store-and-Forward Networks)
Packet transmission is never interrupted (no preemption)
No capacity is allocated for packets
A PACKET SWITCH

input output
queues queues

switch
fabric

memory
STATISTICAL MULTIPLEXING
Packet transmission on a link is referred to as statistical multiplexing
 There is no fixed allocation of packet transmissions
 Packets are multiplexed as they arrive

Packets from different


streams
Transmission
1
line
2 1 N 2 1

output buffer
N
DATAGRAM PACKET SWITCHING
The network nodes process each packet independently
If Host A sends two packets back-to-back to Host B over a
datagram packet network, the network cannot tell that the
packets belong together In fact, the two packets can take
different routes

Packets are called datagrams

Implications of datagram packet switching:


 A sequence of packets can be received in a different order than it was sent
 Each packet header must contain the full address of the destination
VIRTUAL-CIRCUIT PACKET SWITCHING
Virtual-circuit packet switching is a hybrid of circuit switching and packet switching
 All data is transmitted as packets
 Emulates a circuit-switched network

All packets from one packet stream are sent along a pre-established path (=virtual
circuit)
 Guarantees in-sequence delivery of packets
 Note: Packets from different virtual circuits may be interleaved
VIRTUAL-CIRCUIT PACKET SWITCHING
Communication with virtual circuits (VC) takes place in three phases:
1. VC Establishment
2. Data Transfer
3. VC Disconnect

Note: Packet headers don’t need to contain the full destination address of the packet

Circuit-switched and virtual-circuit packet-switched networks are said to provide a


connection-oriented service.
PACKET FORWARDING AND ROUTING
There are two parts to the routing problem:
1. How to pass a packet from an input interface to the output interface of a router
(packet forwarding)?
2. How to calculate routes (routing algorithm)?

Packet forwarding is done differently in datagram and virtual-circuit packet


networks

Route calculation is similar in datagram and virtual-circuit packet networks


DATAGRAM PACKET SWITCHING

C
A.1
C.2 C.1
B C.1 C.2
A.2
A.3
D
1 2
C.1
C.2 3
A.1
A.3 C.2
A.3 A.2
A.1 5
A.2

4 A.2

A A.1 7 A.2 6 E
A.2
A.3
VIRTUAL-CIRCUIT PACKET SWITCHING

C.2
C A.1
C.1
C.1
B VC 2 A.2
C.2 A.3 D
1 2
C.2
C.1 3
A.1 C.1
C.2
A.3 A.2
5
A.1
A.3 A.2
4

A A.1 VC 1 7 6 E
A.2
A.3
PACKET FORWARDING OF DATAGRAMS
Recall: In datagram networks, each packet must carry the full destination address
Each router maintains a routing table which has one row for each possible
destination address
The lookup yields the address of the next hop (next-hop routing)

Routing Table of node v

to via
(next hop)
w v n d

x
d n
PACKET FORWARDING OF DATAGRAMS
When a packet arrives at an incoming link, ...
1. The router looks up the routing table
2. The routing table lookup yields the address of the next node (next hop)
3. The packet is transmitted onto the outgoing link that goes to the next hop

Routing Table of node v

to via
(next hop)
w v n d

x
d n
d d
FORWARDING
To Next
hop
To Next
hop
DATAGRAMS A - A A
B B B -
C C C D
D C D D To Next
E B E E hop
X C X D E A B
E B B
A B E
C B
To Next D B
E
hop E E -
A C
E E
X C D X B
B C
C C To Next To Next
hop hop
D C
A A A B
E C
B - B B
X -
C D C C

D D D -

E D E B

X E X C
PACKET FORWARDING WITH VIRTUAL CIRCUITS
Recall: In VC networks, the route is setup in the connection establishment phase
During the setup, each router assigns a VC number (VC#) to the virtual circuit
The VC# can be different for each hop
VC# is written into the packet headers

Routing Table of node v path of virtual


circuit
from VC# to VC# 2 3
1
w v n d

x
w 2 d 3
PACKET FORWARDING OF VIRTUAL CIRCUITS

When a packet with VCin in header arrives from router nin, ...
1. The router looks up the routing table for an entry with (VC in, nin)
2. The routing table lookup yields (VCout, nout)
3. The router updates the VC# of the header to VC out and transmits the packet to nout

Routing Table of node v path of virtual


circuit
from VC# to VC# 2 3
1
w v n d

2 3 x 1
w 2 d 3
FORWARDING WITH VCS

Part 1: VC setup nin Vin nout Vout

from X to E D 5 E 3

nin Vin nout Vout A B E

- - C 5
nin Vin nout Vout
B 3 - -
X C D

nin Vin nout Vout nin Vin nout Vout


X 5 D 3 C 3 B 5
FORWARDING WITH VCS

Part 2: Forwarding nin Vin nout Vout

the packet D 5 E 2

2
nin Vin nout Vout A B E

- - C 5
nin Vin nout Vout
5
5 3 B 3 - -
X C D

nin Vin nout Vout nin Vin nout Vout


X 5 D 3 C 3 B 5
COMPARISON

Datagram Packet VC Packet


Circuit Switching
Switching Switching
 Dedicated  No dedicated  No dedicated
transmission path transmission path transmission path
 Continuous  Transmission of  Transmission of
transmission packets packets
 Path stays fixed for  Route of each packet  Path stays fixed for
entire connection is independent entire connection
 Call setup delay  No setup delay  Call setup delay

 Transmission delay  Transmission delay
Negligible
for each packet for each packet
transmission delay
 Queueing delays at  Queueing delays at
 No queueing delay switches switches
 Busy signal  Delays increase in  Delays increase in
overloaded network overloaded networks overloaded networks
 Fixed bandwidth for  Bandwidth is shared  Bandwidth is shared
each circuit by all packets by all packets
 No overhead after  Overhead in each  Overhead in each
call setup packet packet

You might also like