SlideShare a Scribd company logo
8.1
Chapter 8
Switching
Modified by Allam AbuMwais
8.2
Introduction
Whenever we have multiple devices, we have the
problem of how to connect them to make one-to-one
communication possible.
Mesh network (point-point) and Star network (to
central device) connection. But these impractical in large
networks.
A better solution is switching. A switched network
consists of a series of interlinked nodes, called switches.
Switches are devices capable of creating temporary
connections between two or more devices linked to the
switch.
8.3
Figure 8.1 Switched network
8.4
Figure 8.2 Taxonomy of switched networks
8.5
8-1 CIRCUIT-SWITCHED NETWORKS
A circuit-switched network consists of a set of
switches connected by physical links. A connection
between two stations is a dedicated path made of one
or more links. However, each connection uses only
one dedicated channel on each link. Each link is
normally divided into n channels by using FDM or
TDM.
Three Phases
Efficiency
Delay
Circuit-Switched Technology in Telephone Networks
Topics discussed in this section:
8.6
A circuit-switched network is made of a
set of switches connected by physical
links, in which each link is
divided into n channels.
Note
8.7
Figure 8.3 A trivial circuit-switched network
circuit-switched network with four switches
and four links. Each link is divided into n=3.
8.8
Figure 8.3 A trivial circuit-switched network
When end system A needs to communicate with end
system M:
1. the setup phase: system A needs to request a
connection to M that must be accepted by all switches
as well as by M itself.
2. A dedicated path: a circuit (channel) is reserved on
each link, and the combination of circuits or channels.
3. Data transfer can take place. After all data have been
transferred.
8.9
Figure 8.3 A trivial circuit-switched network
1. Circuit switching takes place at the physical layer.
2. The stations must make a reservation for the resources
to be used during the communication.
3. Data transferred between the two stations are not
packetized.
4. There is no addressing involved during data transfer.
The switches route the data based on their occupied
band (FDM) or time slot (TDM).
8.10
In circuit switching, the resources need
to be reserved during the setup phase;
the resources remain dedicated for the
entire duration of data transfer until the
teardown phase.
Note
8.11
As a trivial example, let us use a circuit-switched
network to connect eight telephones in a small area.
Communication is through 4-kHz voice channels. We
assume that each link uses FDM to connect a maximum
of two voice channels. The bandwidth of each link is
then 8 kHz. Figure 8.4 shows the situation.
Telephone 1 is connected to telephone 7; 2 to 5; 3 to 8;
and 4 to 6. Of course the situation may change when
new connections are made. The switch controls the
connections.
Example 8.1
8.12
Figure 8.4 Circuit-switched network used in Example 8.1
8.13
As another example, consider a circuit-switched
network that connects computers in two remote offices
of a private company. The offices are connected using a
T-1 line leased from a communication service provider.
There are two 4 × 8 (4 inputs and 8 outputs) switches in
this network. For each switch, four output ports are
folded into the input ports to allow communication
between computers in the same office. Four other
output ports allow communication between the two
offices. Figure 8.5 shows the situation.
Example 8.2
8.14
Figure 8.5 Circuit-switched network used in Example 8.2
8.15
3 phases:
1. Setup Phase
2. Data Transfer Phase
3. Teardown Phase
Note
8.16
Efficiency
It can be argued that circuit-switched
networks are not as efficient as the other
two types of networks because resources
are allocated during the entire duration of
the connection.
8.17
Delay
Figure 8.6 Delay in a circuit-switched network
the delay in this type of network is minimal. The total delay is due to the
time needed to create the connection, transfer data, and disconnect the
circuit
8.18
Switching at the physical layer in the
traditional telephone network uses
the circuit-switching approach.
Note
8.19
8-2 DATAGRAM NETWORKS
1. In data communications, we need to send messages from one
end system to another. If the message is going to pass
through a packet-switched network, it needs to be divided
into packets of fixed or variable size. The size of the packet is
determined by the network and the governing protocol.
2. In a datagram network, each packet is treated independently
of all others.
3. Datagram switching is normally done at the network layer.
Routing Table
Efficiency
Delay
Datagram Networks in the Internet
Topics discussed in this section:
8.20
In a packet-switched network, there
is no resource reservation;
resources are allocated on demand.
Note
8.21
Figure 8.7 A datagram network with four switches (routers)
Figure 8.7 shows how the datagram approach is used to deliver four
packets from station A to station X.
The datagram networks are sometimes referred to as connectionless
networks. The term connectionless here means that the switch (packet
switch) does not keep information about the connection state.
8.22
Figure 8.8 Routing table in a datagram network
If there are no setup or teardown phases,
how are the packets routed to their
destinations in a datagram network?
each switch (or packet switch) has a
routing table which is based on the
destination address.
The routing tables are dynamic and
are updated periodically.
8.23
A switch in a datagram network uses a
routing table that is based on the
destination address.
Note
8.24
The destination address in the header of
a packet in a datagram network remains
the same during the entire journey of the
packet.
Note
8.25
Figure 8.9 Delay in a datagram network
There may be greater delay in a datagram network than in a virtual-
circuit network and delay is not uniform
8.26
Switching in the Internet is done by
using the datagram approach to packet
switching at the network layer.
Note
Datagram Networks in the Internet
8.27
8-3 VIRTUAL-CIRCUIT NETWORKS
A virtual-circuit network is a cross between a circuit-
switched network and a datagram network. It has
some characteristics of both.
1. As in a circuit-switched network, there are setup and teardown
phases in addition to the data transfer phase.
2. Resources can be allocated during the setup phase, as in a
circuit-switched network, or on demand, as in a datagram
network.
3. As in a datagram network, data are packetized and each packet
carries an address in the header.
4. As in a circuit-switched network, all packets follow the same
path established during the connection.
5. virtual-circuit network is normally implemented in the data link
layer,
8.28
8-3 VIRTUAL-CIRCUIT NETWORKS
Addressing
Three Phases
Efficiency
Delay
Circuit-Switched Technology in WANs
Topics discussed in this section:
8.29
Figure 8.10 Virtual-circuit network
8.30
Figure 8.11 Virtual-circuit identifier
Addressing
two types of addressing:
1. Global Address
2. Local (Virtual-circuit identifier): The identifier
that is actually used for data transfer (switch scope)
When a frame arrives at a switch, it has VCI; when it leaves, it has a
different VCl.
8.31
3 phases
setup, data transfer, and teardown.
1. Setup: the source and destination use their global addresses
to help switches make table entries for the connection.
2. the source and destination inform the switches to delete the
corresponding entry.
3. occurs between these two phases.
8.32
Figure 8.12 Switch and tables in a virtual-circuit network
To transfer a frame from a source to its
destination, all switches need to have a
table entry for this virtual circuit. The
table, in its simplest form, has four
columns.
8.33
Figure 8.13 Source A-to-destination Bdata transfer in a virtual-circuit network
8.34
Figure 8.14 Setup request in a virtual-circuit network
In the setup phase, a switch creates an
entry for a virtual circuit. For example,
suppose source A needs to create a
virtual circuit to B. Two steps are
required:
1. the setup request
2. the acknowledgment.
8.35
Figure 8.15 Setup acknowledgment in a virtual-circuit network
8.36
Teardowil Phase: In this phase, source A, after
sending all frames to B, sends a special frame
called a teardown request.
Teardown Phase
8.37
In virtual-circuit switching, all packets
belonging to the same source and
destination travel the same path;
but the packets may arrive at the
destination with different delays
if resource allocation is on demand.
Note
Efficiency
8.38
Figure 8.16 Delay in a virtual-circuit network
8.39
Switching at the data link layer in a
switched WAN is normally implemented
by using virtual-circuit techniques.
Note
8.40
8-4 STRUCTURE OF A SWITCH
We use switches in circuit-switched and packet-
switched networks. In this section, we discuss the
structures of the switches used in each type of
network.
Structure of Circuit Switches
Structure of Packet Switches
Topics discussed in this section:
8.41 Figure 8.17 Crossbar switch with three inputs and four outputs
Structure of Circuit Switches
Circuit switching today can use either of two technologies: the
space-division switch or the time-division switch.
In space-division switching, the paths in the circuit are separated
from one another spatially.
1-crossbar switch
8.42
Figure 8.18 Multistage switch
8.43
In a three-stage switch, the total
number of crosspoints is
2kN + k(N/n)2
which is much smaller than the number of
crosspoints in a single-stage switch (N2).
Note
8.44
Design a three-stage, 200 × 200 switch (N = 200) with
k = 4 and n = 20.
Solution
In the first stage we have N/n or 10 crossbars,
each of size 20 × 4. In the second stage, we have
4 crossbars, each of size 10 × 10. In the third
stage, we have 10 crossbars, each of size 4 × 20.
The total number of crosspoints is 2kN + k(N/n)2,
or 2000 crosspoints. This is 5 percent of the
number of crosspoints in a single-stage switch
(200 × 200 = 40,000).
Example 8.3
8.45
According to the Clos criterion:
n = (N/2)1/2
k > 2n – 1
Crosspoints ≥ 4N [(2N)1/2 – 1]
Note
8.46
Redesign the previous three-stage, 200 × 200 switch,
using the Clos criteria with a minimum number of
crosspoints.
Solution
We let n = (200/2)1/2, or n = 10. We calculate k = 2n
− 1 = 19. In the first stage, we have 200/10, or 20,
crossbars, each with 10 × 19 crosspoints. In the
second stage, we have 19 crossbars, each with 10
× 10 crosspoints. In the third stage, we have 20
crossbars each with 19 × 10 crosspoints. The
total number of crosspoints is 20(10 × 19) + 19(10
× 10) + 20(19 ×10) = 9500.
Example 8.4
8.47 Figure 8.19 Time-slot interchange
Time-Division Switch
Time-division switching uses time-division multiplexing
(TDM) inside a switch. The most popular technology is
called the time-slot interchange (TSI).
8.48
Time-space-time switch
space-division
adv. The advantage of space-division switching is that it
is instantaneous
Dis. the number of cross-points required
Time –division
Adv. No need of cross-points.
Dis. is that processing each connection creates delays.
Each time slot must be stored by the RAM, then
retrieved and passed on.
8.49
Figure 8.20 Time-space-time switch
8.50
Figure 8.21 Packet switch components
a packet switch has four components:
input ports, output ports, the routing processor, and
the switching fabric
8.51
Figure 8.22 Input port
An input port performs the physical and data link functions of
the packet switch. The bits are constructed from the received
signal. The packet is de-capsulated from the frame. Errors are
detected and corrected. The packet is now ready to be routed by
the network
8.52
ROllting Processor
The routing processor performs the functions of the network layer.
The destination address is used to find the address of the next hop
and, at the same time, the output port number from which the
packet is sent out.
Switching "Fabrics
The most difficult task in a packet switch is to move the packet
from the input queue to the output queue. The speed with which
this is done affects the size of the input/output queue and the
overall delay in packet delivery. As crossbar switch and banyan
switch
8.53
Figure 8.23 Output port
The output port performs the same functions
as the input port, but in the reverse order.
First the outgoing packets are queued, then
the packet is encapsulated in a frame, and
finally the physical layer functions are
applied
8.54 Figure 8.24 A banyan switch
banyan switch
A banyan switch is a multistage switch with micro-switches at
each stage that route the packets based on the output port
represented as a binary string. For n inputs and n outputs, we
have log2 n stages with nl2 micro-switches at each stage.
#of stages = Iog2(8) = 3.
8.55
Figure 8.25 Examples of routing in a banyan switch
8.56
Figure 8.26 Batcher-banyan switch
The problem with the banyan switch is the possibility of internal
collision even when two packets are not heading for the same
output port.

More Related Content

What's hot

Csma cd and csma-ca
Csma cd and csma-caCsma cd and csma-ca
Csma cd and csma-ca
kazim Hussain
 
Packet switching
Packet switchingPacket switching
Packet switching
Sabyasachi Upadhyay
 
Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switching
Dr Rajiv Srivastava
 
Lec1 :- Data communication and network
Lec1 :- Data communication and networkLec1 :- Data communication and network
Lec1 :- Data communication and network
Dhrumil Shah
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer services
Melvin Cabatuan
 
Sonet (synchronous optical networking )
Sonet (synchronous optical networking )Sonet (synchronous optical networking )
Sonet (synchronous optical networking )
Hamza Sajjad
 
Cellular network
Cellular networkCellular network
Cellular networkshreb
 
Analog Transmissions
Analog TransmissionsAnalog Transmissions
Analog TransmissionsTechiNerd
 
Circuit and packet_switching
Circuit and packet_switchingCircuit and packet_switching
Circuit and packet_switching
hoanv
 
switching techniques in data communication and networking
switching techniques in data communication and networkingswitching techniques in data communication and networking
switching techniques in data communication and networking
Harshita Yadav
 
5. protocol layering
5. protocol layering5. protocol layering
5. protocol layering
JAIGANESH SEKAR
 
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
ArunChokkalingam
 
Gprs architecture ppt
Gprs architecture pptGprs architecture ppt
Gprs architecture ppt
Arpita Sanghani
 
6lowpan
6lowpan6lowpan
Mobile computing : Indirect TCP
Mobile computing : Indirect TCPMobile computing : Indirect TCP
Mobile computing : Indirect TCP
Sushant Kushwaha
 
2.6 ethernet ieee 802.3
2.6 ethernet   ieee 802.32.6 ethernet   ieee 802.3
2.6 ethernet ieee 802.3
JAIGANESH SEKAR
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
Manoj Kumar
 
Media Access Control
Media Access ControlMedia Access Control
Media Access Control
VijayaLakshmi514
 

What's hot (20)

Csma cd and csma-ca
Csma cd and csma-caCsma cd and csma-ca
Csma cd and csma-ca
 
Packet switching
Packet switchingPacket switching
Packet switching
 
Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switching
 
Lec1 :- Data communication and network
Lec1 :- Data communication and networkLec1 :- Data communication and network
Lec1 :- Data communication and network
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer services
 
Sonet (synchronous optical networking )
Sonet (synchronous optical networking )Sonet (synchronous optical networking )
Sonet (synchronous optical networking )
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Cellular network
Cellular networkCellular network
Cellular network
 
Analog Transmissions
Analog TransmissionsAnalog Transmissions
Analog Transmissions
 
Circuit and packet_switching
Circuit and packet_switchingCircuit and packet_switching
Circuit and packet_switching
 
switching techniques in data communication and networking
switching techniques in data communication and networkingswitching techniques in data communication and networking
switching techniques in data communication and networking
 
5. protocol layering
5. protocol layering5. protocol layering
5. protocol layering
 
Hub vs-switch
Hub vs-switchHub vs-switch
Hub vs-switch
 
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
 
Gprs architecture ppt
Gprs architecture pptGprs architecture ppt
Gprs architecture ppt
 
6lowpan
6lowpan6lowpan
6lowpan
 
Mobile computing : Indirect TCP
Mobile computing : Indirect TCPMobile computing : Indirect TCP
Mobile computing : Indirect TCP
 
2.6 ethernet ieee 802.3
2.6 ethernet   ieee 802.32.6 ethernet   ieee 802.3
2.6 ethernet ieee 802.3
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
 
Media Access Control
Media Access ControlMedia Access Control
Media Access Control
 

Viewers also liked

Ch 4 software engineering
Ch 4 software engineeringCh 4 software engineering
Ch 4 software engineering
Mohammed Romi
 
Ch7
Ch7Ch7
Swe notes
Swe notesSwe notes
Swe notes
Mohammed Romi
 
Ai 03 solving_problems_by_searching
Ai 03 solving_problems_by_searchingAi 03 solving_problems_by_searching
Ai 03 solving_problems_by_searching
Mohammed Romi
 
Ai 01 introduction
Ai 01 introductionAi 01 introduction
Ai 01 introduction
Mohammed Romi
 
Ai 02 intelligent_agents(1)
Ai 02 intelligent_agents(1)Ai 02 intelligent_agents(1)
Ai 02 intelligent_agents(1)
Mohammed Romi
 
Ian Sommerville, Software Engineering, 9th Edition Ch2
Ian Sommerville,  Software Engineering, 9th Edition Ch2Ian Sommerville,  Software Engineering, 9th Edition Ch2
Ian Sommerville, Software Engineering, 9th Edition Ch2
Mohammed Romi
 
Ch 6
Ch 6Ch 6
Ian Sommerville, Software Engineering, 9th EditionCh 8
Ian Sommerville,  Software Engineering, 9th EditionCh 8Ian Sommerville,  Software Engineering, 9th EditionCh 8
Ian Sommerville, Software Engineering, 9th EditionCh 8
Mohammed Romi
 
Ian Sommerville, Software Engineering, 9th Edition Ch 4
Ian Sommerville,  Software Engineering, 9th Edition Ch 4Ian Sommerville,  Software Engineering, 9th Edition Ch 4
Ian Sommerville, Software Engineering, 9th Edition Ch 4
Mohammed Romi
 

Viewers also liked (10)

Ch 4 software engineering
Ch 4 software engineeringCh 4 software engineering
Ch 4 software engineering
 
Ch7
Ch7Ch7
Ch7
 
Swe notes
Swe notesSwe notes
Swe notes
 
Ai 03 solving_problems_by_searching
Ai 03 solving_problems_by_searchingAi 03 solving_problems_by_searching
Ai 03 solving_problems_by_searching
 
Ai 01 introduction
Ai 01 introductionAi 01 introduction
Ai 01 introduction
 
Ai 02 intelligent_agents(1)
Ai 02 intelligent_agents(1)Ai 02 intelligent_agents(1)
Ai 02 intelligent_agents(1)
 
Ian Sommerville, Software Engineering, 9th Edition Ch2
Ian Sommerville,  Software Engineering, 9th Edition Ch2Ian Sommerville,  Software Engineering, 9th Edition Ch2
Ian Sommerville, Software Engineering, 9th Edition Ch2
 
Ch 6
Ch 6Ch 6
Ch 6
 
Ian Sommerville, Software Engineering, 9th EditionCh 8
Ian Sommerville,  Software Engineering, 9th EditionCh 8Ian Sommerville,  Software Engineering, 9th EditionCh 8
Ian Sommerville, Software Engineering, 9th EditionCh 8
 
Ian Sommerville, Software Engineering, 9th Edition Ch 4
Ian Sommerville,  Software Engineering, 9th Edition Ch 4Ian Sommerville,  Software Engineering, 9th Edition Ch 4
Ian Sommerville, Software Engineering, 9th Edition Ch 4
 

Similar to Swiching

Lecture-8 Data Communication ~www.fida.com.bd
Lecture-8 Data Communication ~www.fida.com.bdLecture-8 Data Communication ~www.fida.com.bd
Lecture-8 Data Communication ~www.fida.com.bd
QUT (Queensland University of Technology)
 
Data Communication and Computer Networks
Data Communication and Computer NetworksData Communication and Computer Networks
Data Communication and Computer Networks
ssusere481c4
 
Ch8 Switching.pdf
Ch8 Switching.pdfCh8 Switching.pdf
Ch8 Switching.pdf
sujanshrestha884
 
Chapter 8: Switching
Chapter 8: SwitchingChapter 8: Switching
Chapter 8: Switching
Shafaan Khaliq Bhatti
 
Chapter 8 switching -computer_network
Chapter 8   switching -computer_networkChapter 8   switching -computer_network
Chapter 8 switching -computer_network
Dhairya Joshi
 
08 Switching
08 Switching08 Switching
08 Switching
Ahmar Hashmi
 
heloo mzdnvnjbszdjgfjkhadsgvbxczvznxbvmcxv
heloo mzdnvnjbszdjgfjkhadsgvbxczvznxbvmcxvheloo mzdnvnjbszdjgfjkhadsgvbxczvznxbvmcxv
heloo mzdnvnjbszdjgfjkhadsgvbxczvznxbvmcxv
JOHN35307
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
Faisal Mehmood
 
Network switching
Network switchingNetwork switching
Network switching
PREMAL GAJJAR
 
2b switching in networks
2b switching in networks2b switching in networks
2b switching in networkskavish dani
 
08-Switching.ppt
08-Switching.ppt08-Switching.ppt
08-Switching.ppt
SanaMateen7
 
Switching
SwitchingSwitching
Switching
Hala Kamal
 
Unit_I - 5
Unit_I - 5Unit_I - 5

Similar to Swiching (20)

Ch08
Ch08Ch08
Ch08
 
Lecture-8 Data Communication ~www.fida.com.bd
Lecture-8 Data Communication ~www.fida.com.bdLecture-8 Data Communication ~www.fida.com.bd
Lecture-8 Data Communication ~www.fida.com.bd
 
Data Communication and Computer Networks
Data Communication and Computer NetworksData Communication and Computer Networks
Data Communication and Computer Networks
 
Ppt 01 10
Ppt 01 10Ppt 01 10
Ppt 01 10
 
Ch8 Switching.pdf
Ch8 Switching.pdfCh8 Switching.pdf
Ch8 Switching.pdf
 
Chapter 8: Switching
Chapter 8: SwitchingChapter 8: Switching
Chapter 8: Switching
 
Ch08
Ch08Ch08
Ch08
 
Ch08
Ch08Ch08
Ch08
 
Chapter 8 switching -computer_network
Chapter 8   switching -computer_networkChapter 8   switching -computer_network
Chapter 8 switching -computer_network
 
08 Switching
08 Switching08 Switching
08 Switching
 
heloo mzdnvnjbszdjgfjkhadsgvbxczvznxbvmcxv
heloo mzdnvnjbszdjgfjkhadsgvbxczvznxbvmcxvheloo mzdnvnjbszdjgfjkhadsgvbxczvznxbvmcxv
heloo mzdnvnjbszdjgfjkhadsgvbxczvznxbvmcxv
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
 
Ch08
Ch08Ch08
Ch08
 
Network switching
Network switchingNetwork switching
Network switching
 
Ch08
Ch08Ch08
Ch08
 
2b switching in networks
2b switching in networks2b switching in networks
2b switching in networks
 
Ch08
Ch08Ch08
Ch08
 
08-Switching.ppt
08-Switching.ppt08-Switching.ppt
08-Switching.ppt
 
Switching
SwitchingSwitching
Switching
 
Unit_I - 5
Unit_I - 5Unit_I - 5
Unit_I - 5
 

More from Mohammed Romi

Ch2020
Ch2020Ch2020
Ch8
Ch8Ch8
Ch19 network layer-logical add
Ch19 network layer-logical addCh19 network layer-logical add
Ch19 network layer-logical add
Mohammed Romi
 
Ch12
Ch12Ch12
Ir 09
Ir   09Ir   09
Ir 08
Ir   08Ir   08
Ir 03
Ir   03Ir   03
Ir 02
Ir   02Ir   02
Ir 01
Ir   01Ir   01
Angel6 e05
Angel6 e05Angel6 e05
Angel6 e05
Mohammed Romi
 
Chapter02 graphics-programming
Chapter02 graphics-programmingChapter02 graphics-programming
Chapter02 graphics-programming
Mohammed Romi
 
Ian Sommerville, Software Engineering, 9th Edition Ch1
Ian Sommerville,  Software Engineering, 9th Edition Ch1Ian Sommerville,  Software Engineering, 9th Edition Ch1
Ian Sommerville, Software Engineering, 9th Edition Ch1
Mohammed Romi
 
Ian Sommerville, Software Engineering, 9th Edition Ch 23
Ian Sommerville,  Software Engineering, 9th Edition Ch 23Ian Sommerville,  Software Engineering, 9th Edition Ch 23
Ian Sommerville, Software Engineering, 9th Edition Ch 23
Mohammed Romi
 

More from Mohammed Romi (13)

Ch2020
Ch2020Ch2020
Ch2020
 
Ch8
Ch8Ch8
Ch8
 
Ch19 network layer-logical add
Ch19 network layer-logical addCh19 network layer-logical add
Ch19 network layer-logical add
 
Ch12
Ch12Ch12
Ch12
 
Ir 09
Ir   09Ir   09
Ir 09
 
Ir 08
Ir   08Ir   08
Ir 08
 
Ir 03
Ir   03Ir   03
Ir 03
 
Ir 02
Ir   02Ir   02
Ir 02
 
Ir 01
Ir   01Ir   01
Ir 01
 
Angel6 e05
Angel6 e05Angel6 e05
Angel6 e05
 
Chapter02 graphics-programming
Chapter02 graphics-programmingChapter02 graphics-programming
Chapter02 graphics-programming
 
Ian Sommerville, Software Engineering, 9th Edition Ch1
Ian Sommerville,  Software Engineering, 9th Edition Ch1Ian Sommerville,  Software Engineering, 9th Edition Ch1
Ian Sommerville, Software Engineering, 9th Edition Ch1
 
Ian Sommerville, Software Engineering, 9th Edition Ch 23
Ian Sommerville,  Software Engineering, 9th Edition Ch 23Ian Sommerville,  Software Engineering, 9th Edition Ch 23
Ian Sommerville, Software Engineering, 9th Edition Ch 23
 

Recently uploaded

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 

Recently uploaded (20)

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 

Swiching

  • 2. 8.2 Introduction Whenever we have multiple devices, we have the problem of how to connect them to make one-to-one communication possible. Mesh network (point-point) and Star network (to central device) connection. But these impractical in large networks. A better solution is switching. A switched network consists of a series of interlinked nodes, called switches. Switches are devices capable of creating temporary connections between two or more devices linked to the switch.
  • 4. 8.4 Figure 8.2 Taxonomy of switched networks
  • 5. 8.5 8-1 CIRCUIT-SWITCHED NETWORKS A circuit-switched network consists of a set of switches connected by physical links. A connection between two stations is a dedicated path made of one or more links. However, each connection uses only one dedicated channel on each link. Each link is normally divided into n channels by using FDM or TDM. Three Phases Efficiency Delay Circuit-Switched Technology in Telephone Networks Topics discussed in this section:
  • 6. 8.6 A circuit-switched network is made of a set of switches connected by physical links, in which each link is divided into n channels. Note
  • 7. 8.7 Figure 8.3 A trivial circuit-switched network circuit-switched network with four switches and four links. Each link is divided into n=3.
  • 8. 8.8 Figure 8.3 A trivial circuit-switched network When end system A needs to communicate with end system M: 1. the setup phase: system A needs to request a connection to M that must be accepted by all switches as well as by M itself. 2. A dedicated path: a circuit (channel) is reserved on each link, and the combination of circuits or channels. 3. Data transfer can take place. After all data have been transferred.
  • 9. 8.9 Figure 8.3 A trivial circuit-switched network 1. Circuit switching takes place at the physical layer. 2. The stations must make a reservation for the resources to be used during the communication. 3. Data transferred between the two stations are not packetized. 4. There is no addressing involved during data transfer. The switches route the data based on their occupied band (FDM) or time slot (TDM).
  • 10. 8.10 In circuit switching, the resources need to be reserved during the setup phase; the resources remain dedicated for the entire duration of data transfer until the teardown phase. Note
  • 11. 8.11 As a trivial example, let us use a circuit-switched network to connect eight telephones in a small area. Communication is through 4-kHz voice channels. We assume that each link uses FDM to connect a maximum of two voice channels. The bandwidth of each link is then 8 kHz. Figure 8.4 shows the situation. Telephone 1 is connected to telephone 7; 2 to 5; 3 to 8; and 4 to 6. Of course the situation may change when new connections are made. The switch controls the connections. Example 8.1
  • 12. 8.12 Figure 8.4 Circuit-switched network used in Example 8.1
  • 13. 8.13 As another example, consider a circuit-switched network that connects computers in two remote offices of a private company. The offices are connected using a T-1 line leased from a communication service provider. There are two 4 × 8 (4 inputs and 8 outputs) switches in this network. For each switch, four output ports are folded into the input ports to allow communication between computers in the same office. Four other output ports allow communication between the two offices. Figure 8.5 shows the situation. Example 8.2
  • 14. 8.14 Figure 8.5 Circuit-switched network used in Example 8.2
  • 15. 8.15 3 phases: 1. Setup Phase 2. Data Transfer Phase 3. Teardown Phase Note
  • 16. 8.16 Efficiency It can be argued that circuit-switched networks are not as efficient as the other two types of networks because resources are allocated during the entire duration of the connection.
  • 17. 8.17 Delay Figure 8.6 Delay in a circuit-switched network the delay in this type of network is minimal. The total delay is due to the time needed to create the connection, transfer data, and disconnect the circuit
  • 18. 8.18 Switching at the physical layer in the traditional telephone network uses the circuit-switching approach. Note
  • 19. 8.19 8-2 DATAGRAM NETWORKS 1. In data communications, we need to send messages from one end system to another. If the message is going to pass through a packet-switched network, it needs to be divided into packets of fixed or variable size. The size of the packet is determined by the network and the governing protocol. 2. In a datagram network, each packet is treated independently of all others. 3. Datagram switching is normally done at the network layer. Routing Table Efficiency Delay Datagram Networks in the Internet Topics discussed in this section:
  • 20. 8.20 In a packet-switched network, there is no resource reservation; resources are allocated on demand. Note
  • 21. 8.21 Figure 8.7 A datagram network with four switches (routers) Figure 8.7 shows how the datagram approach is used to deliver four packets from station A to station X. The datagram networks are sometimes referred to as connectionless networks. The term connectionless here means that the switch (packet switch) does not keep information about the connection state.
  • 22. 8.22 Figure 8.8 Routing table in a datagram network If there are no setup or teardown phases, how are the packets routed to their destinations in a datagram network? each switch (or packet switch) has a routing table which is based on the destination address. The routing tables are dynamic and are updated periodically.
  • 23. 8.23 A switch in a datagram network uses a routing table that is based on the destination address. Note
  • 24. 8.24 The destination address in the header of a packet in a datagram network remains the same during the entire journey of the packet. Note
  • 25. 8.25 Figure 8.9 Delay in a datagram network There may be greater delay in a datagram network than in a virtual- circuit network and delay is not uniform
  • 26. 8.26 Switching in the Internet is done by using the datagram approach to packet switching at the network layer. Note Datagram Networks in the Internet
  • 27. 8.27 8-3 VIRTUAL-CIRCUIT NETWORKS A virtual-circuit network is a cross between a circuit- switched network and a datagram network. It has some characteristics of both. 1. As in a circuit-switched network, there are setup and teardown phases in addition to the data transfer phase. 2. Resources can be allocated during the setup phase, as in a circuit-switched network, or on demand, as in a datagram network. 3. As in a datagram network, data are packetized and each packet carries an address in the header. 4. As in a circuit-switched network, all packets follow the same path established during the connection. 5. virtual-circuit network is normally implemented in the data link layer,
  • 28. 8.28 8-3 VIRTUAL-CIRCUIT NETWORKS Addressing Three Phases Efficiency Delay Circuit-Switched Technology in WANs Topics discussed in this section:
  • 30. 8.30 Figure 8.11 Virtual-circuit identifier Addressing two types of addressing: 1. Global Address 2. Local (Virtual-circuit identifier): The identifier that is actually used for data transfer (switch scope) When a frame arrives at a switch, it has VCI; when it leaves, it has a different VCl.
  • 31. 8.31 3 phases setup, data transfer, and teardown. 1. Setup: the source and destination use their global addresses to help switches make table entries for the connection. 2. the source and destination inform the switches to delete the corresponding entry. 3. occurs between these two phases.
  • 32. 8.32 Figure 8.12 Switch and tables in a virtual-circuit network To transfer a frame from a source to its destination, all switches need to have a table entry for this virtual circuit. The table, in its simplest form, has four columns.
  • 33. 8.33 Figure 8.13 Source A-to-destination Bdata transfer in a virtual-circuit network
  • 34. 8.34 Figure 8.14 Setup request in a virtual-circuit network In the setup phase, a switch creates an entry for a virtual circuit. For example, suppose source A needs to create a virtual circuit to B. Two steps are required: 1. the setup request 2. the acknowledgment.
  • 35. 8.35 Figure 8.15 Setup acknowledgment in a virtual-circuit network
  • 36. 8.36 Teardowil Phase: In this phase, source A, after sending all frames to B, sends a special frame called a teardown request. Teardown Phase
  • 37. 8.37 In virtual-circuit switching, all packets belonging to the same source and destination travel the same path; but the packets may arrive at the destination with different delays if resource allocation is on demand. Note Efficiency
  • 38. 8.38 Figure 8.16 Delay in a virtual-circuit network
  • 39. 8.39 Switching at the data link layer in a switched WAN is normally implemented by using virtual-circuit techniques. Note
  • 40. 8.40 8-4 STRUCTURE OF A SWITCH We use switches in circuit-switched and packet- switched networks. In this section, we discuss the structures of the switches used in each type of network. Structure of Circuit Switches Structure of Packet Switches Topics discussed in this section:
  • 41. 8.41 Figure 8.17 Crossbar switch with three inputs and four outputs Structure of Circuit Switches Circuit switching today can use either of two technologies: the space-division switch or the time-division switch. In space-division switching, the paths in the circuit are separated from one another spatially. 1-crossbar switch
  • 43. 8.43 In a three-stage switch, the total number of crosspoints is 2kN + k(N/n)2 which is much smaller than the number of crosspoints in a single-stage switch (N2). Note
  • 44. 8.44 Design a three-stage, 200 × 200 switch (N = 200) with k = 4 and n = 20. Solution In the first stage we have N/n or 10 crossbars, each of size 20 × 4. In the second stage, we have 4 crossbars, each of size 10 × 10. In the third stage, we have 10 crossbars, each of size 4 × 20. The total number of crosspoints is 2kN + k(N/n)2, or 2000 crosspoints. This is 5 percent of the number of crosspoints in a single-stage switch (200 × 200 = 40,000). Example 8.3
  • 45. 8.45 According to the Clos criterion: n = (N/2)1/2 k > 2n – 1 Crosspoints ≥ 4N [(2N)1/2 – 1] Note
  • 46. 8.46 Redesign the previous three-stage, 200 × 200 switch, using the Clos criteria with a minimum number of crosspoints. Solution We let n = (200/2)1/2, or n = 10. We calculate k = 2n − 1 = 19. In the first stage, we have 200/10, or 20, crossbars, each with 10 × 19 crosspoints. In the second stage, we have 19 crossbars, each with 10 × 10 crosspoints. In the third stage, we have 20 crossbars each with 19 × 10 crosspoints. The total number of crosspoints is 20(10 × 19) + 19(10 × 10) + 20(19 ×10) = 9500. Example 8.4
  • 47. 8.47 Figure 8.19 Time-slot interchange Time-Division Switch Time-division switching uses time-division multiplexing (TDM) inside a switch. The most popular technology is called the time-slot interchange (TSI).
  • 48. 8.48 Time-space-time switch space-division adv. The advantage of space-division switching is that it is instantaneous Dis. the number of cross-points required Time –division Adv. No need of cross-points. Dis. is that processing each connection creates delays. Each time slot must be stored by the RAM, then retrieved and passed on.
  • 50. 8.50 Figure 8.21 Packet switch components a packet switch has four components: input ports, output ports, the routing processor, and the switching fabric
  • 51. 8.51 Figure 8.22 Input port An input port performs the physical and data link functions of the packet switch. The bits are constructed from the received signal. The packet is de-capsulated from the frame. Errors are detected and corrected. The packet is now ready to be routed by the network
  • 52. 8.52 ROllting Processor The routing processor performs the functions of the network layer. The destination address is used to find the address of the next hop and, at the same time, the output port number from which the packet is sent out. Switching "Fabrics The most difficult task in a packet switch is to move the packet from the input queue to the output queue. The speed with which this is done affects the size of the input/output queue and the overall delay in packet delivery. As crossbar switch and banyan switch
  • 53. 8.53 Figure 8.23 Output port The output port performs the same functions as the input port, but in the reverse order. First the outgoing packets are queued, then the packet is encapsulated in a frame, and finally the physical layer functions are applied
  • 54. 8.54 Figure 8.24 A banyan switch banyan switch A banyan switch is a multistage switch with micro-switches at each stage that route the packets based on the output port represented as a binary string. For n inputs and n outputs, we have log2 n stages with nl2 micro-switches at each stage. #of stages = Iog2(8) = 3.
  • 55. 8.55 Figure 8.25 Examples of routing in a banyan switch
  • 56. 8.56 Figure 8.26 Batcher-banyan switch The problem with the banyan switch is the possibility of internal collision even when two packets are not heading for the same output port.