SlideShare a Scribd company logo
Switching
Majid Asadpoor
Ref: Data Communication and Networking
by Behrouz A. Forouzan
Index
• Circuit Switching
• Packet switching (datagram switching)
• Packet switching (virtual-circuit switching)
• Structure of switch
Switching
• how to connect Whenever we have multiple devices?
– make a point-to-point connection between each pair of devices (a mesh
topology) ?
– make a connection between a central device and every other device (a star
topology)?
• impractical and wasteful when applied to very large networks.
– The number and length of the links require too much infrastructure to be
cost-efficient
– the majority of those links would be idle most of the time.
• A better solution is switching.
• A switched network consists of a series of interlinked nodes, called
switches creating temporary connections between two or more
devices linked to the switch.
Switched Network
The end systems (communicating devices) are labeled A, B, C, D, and so on,
switches are labeled I, II, III, IV, and V
Switching Methods
Today the tendency in packet switching is to combine datagram networks and
virtualcircuit networks.
Networks route the first packet based on the datagram addressing idea, but then create
a virtual-circuit network for the rest of the packets coming from the same source and
going to the same destination.
CIRCUIT-SWITCHED NETWORKS
• each connection uses only one dedicated
channel on each link. Each link is normally
divided into n channels by using FDM or TDM
CIRCUIT-SWITCHED NETWORKS
• Circuit switching takes place at the physical layer
• Before starting communication, make a reservation for the
resources ( Setup Phase )
• resources, such as channels (bandwidth in FDM and time slots
in TDM), switch buffers, switch processing time, …
• Data transferred between the two stations are not packetized
(physical layer transfer of the signal).
• There is no addressing involved during data transfer. The
switches route the data based on their occupied band (FDM)
or time slot (TDM).
• there is end-to-end addressing used during the setup phase
CIRCUIT-SWITCHED NETWORKS
Example 1
• Telephone 1 is connected to telephone 7; 2 to 5; 3 to 8; and 4 to 6
• The situation may change when new connections are made
CIRCUIT-SWITCHED NETWORKS
Example 2
CIRCUIT-SWITCHED NETWORKS
• Setup Phase
– Before the two parties can communicate, a dedicated circuit needs to be
established.
– connection setup means creating dedicated channels between the switches.
– end-to-end addressing is required for creating a connection between two end
systems. These can be, for example, the addresses of the computers assigned
by the administrator in a TDM network, or telephone numbers in an FDM
network.
• Data Transfer Phase
– After the establishment of the dedicated circuit (channels), the two parties can
transfer data
• Teardown Phase
– When one of the parties needs to disconnect, a signal is sent to each switch to
release the resources
CIRCUIT-SWITCHED NETWORKS
• Efficiency
– are not as efficient as the other two types of
networks because resources are allocated during
the entire duration of the connection and are
unavailable to other connections.
• Delay
– the delay in this type of network is minimal
CIRCUIT-SWITCHED NETWORKS
Delay
• delay caused by the setup is the sum of four parts:
– the propagation time of the source computer request (slope of the first gray
box),
– the request signal transfer time (height of the first gray box),
– the propagation time of the acknowledgment from the destination computer
(slope of the second gray box),
– the signal transfer time of the acknowledgment (height of the second gray
box).
• The delay due to data transfer is the sum of two parts:
– the propagation time (slope of the colored box)
– data transfer time (height of the colored box), which can be very long.
• The third box shows the time needed to tear down the circuit.
– We have shown the case in which the receiver requests disconnection, which
creates the maximum delay.
CIRCUIT-SWITCHED NETWORKS
Delay
Circuit-Switched Technology in Telephone
Networks
• telephone companies usef circuit switched
approach
– the telephone number is used as the global
address
– signaling system (called SS7) is used for the setup
and teardown phases.
DATAGRAM NETWORKS
• messages needs to be divided into packets of fixed or
variable size
• there is no resource allocation for a packet and are
allocated on demand
• The allocation is done on a firstcome, first-served basis
• each packet is treated independently of all others
• Packets in this approach are referred to as datagrams
• Datagram switching is normally done at the network
layer
DATAGRAM NETWORKS
• may travel different paths to reach their
destination
– out of order Transfer
– different delays between the Packets
– Packets may be lost or dropped
– In most protocols, it is the responsibility of an upper-
layer protocol to reorder the datagrams or ask for lost
datagrams before passing them on to the application.
– There are no setup or teardown phases
(connectionless networks )
DATAGRAM NETWORKS
Routing Table
• If there are no setup or teardown phases, how are the
packets routed to their destinations in a datagram
network?
• each switch has a routing table which is based on the
destination address
• The destination addresses and the corresponding
forwarding output ports are recorded in the tables
• In table of a circuit switched network , each entry is
created when the setup phase is completed and
deleted when the teardown phase is over.
Routing Table
• Every packet in a datagram network carries
destination address of the packet.
• the routing table is consulted to find the
corresponding port through which the packet
should be forwarded
• The address remains the same during the
entire journey of the packet opposite in a
virtual-circuit-switched network
Efficiency
• better than that of a circuit-switched network
• resources are allocated only when there are
packets to be transferred
Delay
• May be greater delay in a datagram network
than in a virtual-circuit network
• each packet may experience a wait at a switch
before it is forwarded
• the delay is not uniform for the packets of a
message
Delay
three transmission times (3T),
three propagation delays (slopes 3't of the lines),
two waiting times (WI + w2)
ignore the processing time in each switch.
The total delay is Total delay =3T + 3t + WI + W2
Datagram Networks in the Internet
• Internet has chosen the datagram approach to
switching at the network layer.
• uses the universal addresses defined in the
network layer to route packets from the
source to the destination
VIRTUAL-CIRCUIT NETWORKS
• is a cross between a circuit-switched network and a datagram network
• As in a circuit-switched network, there are setup and teardown phases
• Resources can be allocated during the setup phase, as in a circuit-switched
network, or on demand, as in a datagram network.
• As in a datagram network, data are packetized
• each packet carries an address in the header. the address in the header has
local jurisdiction. HOW?
– The answer will be clear when we discuss virtual-circuit identifiers in the next
section.
• all packets follow the same path established during the connection.
• A virtual-circuit network is normally implemented in the data link layer
– circuit-switched network is implemented in the physical layer
– and a datagram network in the network layer.
– But this may change in the future.
VIRTUAL-CIRCUIT NETWORKS
VIRTUAL-CIRCUIT NETWORKS
• Addressing
– global Addressing
– Local Addressing
• Global Addressing
– A source or a destination needs to have a global address that
can be unique and is used only to create a virtual-circuit
identifier
• Virtual-Circuit Identifier
– The identifier that is actually used for data (VCI)
– VCI does not need to be a large since each switch can use its
own unique set of VCls
VIRTUAL-CIRCUIT Identifier
Three Phases
• Setup phase
– the source and destination use their global
addresses to help switches make table entries for
the connection
• data transfer phase
– We discuss first in the next section
• Teardown phase
– the source and destination inform the switches to
delete the corresponding entry
Data Transfer Phase
• switch holds four pieces of information for
each virtual circuit that is already set up
Data Transfer Phase
Setup Phase
• setup request
a) Source A sends a setup frame to switch 1.
b) Switch 1 receives the setup request frame. It knows that a frame going from A to B
goes out through port 3. How? The switch, in the setup phase, acts as a packet
switch so through routing table .The switch creates an entry in its table for this virtual
circuit, but fill three of the four columns. The switch assigns the incoming port (1)
and chooses an available incoming VCI (14) and the outgoing port (3). It does not yet
know the outgoing VCI, which will be found during the acknowledgment step. The
switch then forwards the frame through port 3 to switch 2.
c) Switch 2 receives the setup request frame. The same events happen here as at switch
1;
d) …
e) Destination B receives the setup frame, and if it is ready to receive frames from A, it
assigns a VCI to the incoming frames that come from A, in this case 77. This VCI lets
the destination know that the frames come from A, and not other sources
acknowledgment
Setup Phase/Request
Setup Phase/Acknowledge
A. The destination sends an acknowledgment to switch 3. The acknowledgment
carries the global source and destination addresses. The frame also carries VCI
77, chosen by the destination as the incoming VCI for frames from A. Switch 3
uses this VCI to complete the outgoing VCI column for this entry. Note that 77 is
the incoming VCI for destination B, but the outgoing VCI for switch 3.
B. Switch 3 sends an acknowledgment to switch 2 that contains its incoming VCI in
the table, chosen in the previous step. Switch 2 uses this as the outgoing VCI in
the table.
C. Switch 2 sends an acknowledgment to switch 1 that contains its incoming VCI in
the table, chosen in the previous step. Switch 1 uses this as the outgoing VCI in
the table.
D. Finally switch 1 sends an acknowledgment to source A that contains its incoming
VCI in the table, chosen in the previous step.
E. The source uses this as the outgoing VCI for the data frames to be sent to
destination B.
Setup Phase/Acknowledge
Teardown Phase
A. source A, after sending all frames to B, sends
a special frame called a teardown request
B. Destination B responds with a teardown
confirmation frame
C. switches delete the corresponding entry from
their tables
Efficiency
• resource reservation in a virtual-circuit
network can be made during the setup or on-
demand during the data transfer phase
– In first case, the delay for each packet is the same
– in second case, each packet may encounter
different delays
• big advantage: even if resource allocation is
on demand, The source can check the
availability of the resources
Delay in Virtual-Circuit Networks
• one-time delay for setup (in two direction)
• one-time delay for teardown (in one direction)
• If resources are allocated during setup phase,
there is no wait time for individual packets.
Total delay =
3T+ 3t + setup delay + teardown delay
ignore the processing time in each switch
Virtual Circuit-Switched Technology in WANs
• Frame Relay and ATM networks
• Implemented in data link layer
Structure of Circuit Switches
• space-division switch
– Crossbar Switch
– Multistage Switch
• time-division switch
– Time-Division Switch
– Time- and Space-Division Switch Combinations
Space-Division Switch
• the paths in the circuit are separated from one
another spatially
• used in both analog and digital networks
Circuit Switch
• A crossbar switch connects n inputs to m
outputs in a grid, using electronic
microswitches (transistors) at each crosspoint
• The major limitation of this design is the
number of crosspoints required
• inefficient because statistics show that, in
practice, fewer than 25 percent of the
crosspoints are in use at any given time.
Circuit Switch
Multistage Switch
• combines crossbar switches in several (normally
three) stages
• N*N crosspoint in a single crossbar, but at a time
one row or column is active for any connection
• First stage: N/n crossbar each n * k crosspoint
• Second stage: k crossbar each N/n * N/n
crosspoint
• Third stage: N/n crossbars, each k x n crosspoint
Multistage Switch
Total Number of crosspoint = N/n(n*k) + k(N/n * N/n) + N/n(k*n) = 2kn + k(N/n)^2 << N^2
Multistage Switch/ Example1
• Design a three-stage, 200 x 200 switch , k =4 and n =20
• First stage:
– N/n or 10 crossbars, each of size 20 x 4.
• Second Stage:
– 4 crossbars, each of size 10 x 10.
• Third Stage:
– 10 crossbars, each of size 4 x 20.
• The total number of crosspoints:
– 2000 crosspoints. This is 5 percent of the number of
crosspoints in a single-stage switch (200 x 200 = 40,000).
Blocking in multiStage Switch
• The multistage switch has one drawback:
– blocking during periods
• multistage switching is to share the crosspoints in the middle-stage
crossbars
• In a single-stage switch, there is always a path
• only 4 of the second 20 inputs can use the switch at a time (every n
user can just have k simultaneous connection)
• The small number of crossbars at the middle
• stage creates blocking.
• In large systems, the number of stages can be increased to cut
down on the number of crosspoints required. As the number of
stages increases, possible blocking increases as well
multiStage non-blocking Switch
• Clos rule: In a nonblocking switch, (k>> 2n-1)
• number of crosspoints is still smaller than that
in a single-stage switch
• minimize the number of crosspoints with a
fixed N by using the Clos criteria. We can take
the derivative of the equation with respect to
n (the only variable) and find the value of n
that makes the result zero
Multistage Switch/ Example2
• Redesign the previous three-stage, 200 x 200 switch, using
the Clos criteria with a minimum number of crosspoints
– n = (200/2)1/2, or n = 10.
– k = 2n - 1 = 19.
– total number of crosspoints is 20(10 X 19) + 19(10 X 10) + 20(19
XlO) = 9500. 24 percent that of a single-stage switch
– single-stage switch, we need 200 X 200 =40,000 crosspoints
• Close non-blocking rule: if a telephone company needs to
provide a switch to connect 100,000 telephones in a city, it
needs 200 million crosspoints!!!!!!!!!
• So we accept blocking
Time-Division Switch
• Today, telephone companies use time-division
switching or a combination of space- and
time-division switches
• Time-division switching uses time-division
multiplexing (TDM) inside a switch
– most popular technology is called the time-slot
interchange (TSI).
Time-Division Switch
Time- and Space-Division Switch
Combinations
• Space-division
– Advantage: it is instantaneous
– Disadvantage: is blocking
• time-division switching
– Advantage: it needs no crosspoints
• Disadvantage: in the case of TSI, Each time slot must be
stored by the RAM, then retrieved and passed on. Creates
Delay
• combine space and time-division technologies
– switches that are optimized both physically (the number of
crosspoints) and temporally (the amount of delay).
Time- and Space-Division Switch
Combinations
• two time stages and one space stage and has
12 inputs and 12 outputs.
• The result is , average delay is one-third
• The middle stage is a spacedivision switch
Structure of Packet Switches
• Input Ports
• Output Ports
• Routing Processor
• Switching Fabric
Input Port
• performs the physical and data link functions
of the packet switch
– The packet is decapsulated from the frame.
– Errors are detected and corrected
• the input port has buffers to hold the packet
before it is directed to the switching fabric
Output Port
• outgoing packets are queued, then the packet
is encapsulated in a frame
• physical layer functions are applied to the
frame to create the signal
ROuting Processor
• performs the functions of the network layer
• The destination address is used to find the
address of the next hop and the output port
based on Routing Table
• In the newer packet switches, this function of
the routing processor is being moved to the
input ports to facilitate and expedite the
process.
Switching Fabrics
• Crossbar Switch with
• Banyan Switch
• Batcher-Banyan Switch
Banyan Switch
• Banyan Switch is a multistage switch with
microswitches at each stage that route the
packets based on the output port represented as
a binary string
– For n inputs and n outputs, have (log n based 2) stages
with n/2 microswitches at each stage
– The first stage routes the packet based on the high-
order bit of the binary string.
– The second stage routes the packet based on the
second high-order bit, and so on
Banyan Switch
Batcher-Banyan Switch
• The problem in banyan switch is the possibility of internal
collision even when two packets are not heading for the
same output port.
• solve this problem by sorting the arriving packets based on
their destination port
• trap is added between the Batcher switch and the banyan
switch
• The trap module prevents packets with the same output
destination from passing to the banyan switch
simultaneously
• if there is more than one, they wait for the next tick
Batcher-Banyan Switch
Ad

More Related Content

Similar to switching multiple access control data communication (20)

chapter 5.2.pptx
chapter 5.2.pptxchapter 5.2.pptx
chapter 5.2.pptx
MelkamtseganewTigabi1
 
Ch08
Ch08Ch08
Ch08
Waleed Awny
 
Switching concepts Data communication and networks
Switching concepts Data communication and networksSwitching concepts Data communication and networks
Switching concepts Data communication and networks
Nt Arvind
 
Switch networking
Switch networking Switch networking
Switch networking
MohikaJamadari
 
Chapter 2 Switches in network.ppt
Chapter 2 Switches in network.pptChapter 2 Switches in network.ppt
Chapter 2 Switches in network.ppt
monikarawat57
 
2b switching in networks
2b switching in networks2b switching in networks
2b switching in networks
kavish dani
 
Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switching
Dr Rajiv Srivastava
 
DCN-321-Chiwaya_Lesson7_DataElements_Switching.pdf
DCN-321-Chiwaya_Lesson7_DataElements_Switching.pdfDCN-321-Chiwaya_Lesson7_DataElements_Switching.pdf
DCN-321-Chiwaya_Lesson7_DataElements_Switching.pdf
OscarKelvinNsitu
 
ch08.pptkkkkkklllllllllllloooooooplllllooojkkkkk
ch08.pptkkkkkklllllllllllloooooooplllllooojkkkkkch08.pptkkkkkklllllllllllloooooooplllllooojkkkkk
ch08.pptkkkkkklllllllllllloooooooplllllooojkkkkk
vijaykumar9346565338
 
Dc ch10 : circuit switching and packet switching
Dc ch10 : circuit switching and packet switchingDc ch10 : circuit switching and packet switching
Dc ch10 : circuit switching and packet switching
Syaiful Ahdan
 
11 circuit-packet
11 circuit-packet11 circuit-packet
11 circuit-packet
Hattori Sidek
 
data communication and networkig fibre optical cable and non fibre cable
data communication and networkig fibre optical cable and  non fibre cabledata communication and networkig fibre optical cable and  non fibre cable
data communication and networkig fibre optical cable and non fibre cable
SanthanalakshmiSelva2
 
Unit_I - 5
Unit_I - 5Unit_I - 5
Unit_I - 5
Angayarkanni Annamalai
 
Data Communication and SWITCHING In Networks
Data Communication and SWITCHING In NetworksData Communication and SWITCHING In Networks
Data Communication and SWITCHING In Networks
naveen rathee
 
CN Unit 2 PPT.pptx
CN Unit 2 PPT.pptxCN Unit 2 PPT.pptx
CN Unit 2 PPT.pptx
ifetananth06
 
chapter no 8 of database management system Switching.ppt
chapter no 8 of database management system Switching.pptchapter no 8 of database management system Switching.ppt
chapter no 8 of database management system Switching.ppt
sknn98885
 
Switching types-circuit, packet and message
Switching types-circuit, packet and messageSwitching types-circuit, packet and message
Switching types-circuit, packet and message
JebaRaj26
 
Circuit and Packet Switching Methods Presentation
Circuit and Packet Switching Methods PresentationCircuit and Packet Switching Methods Presentation
Circuit and Packet Switching Methods Presentation
NiharikaDubey17
 
Topic Packet switching
Topic Packet switchingTopic Packet switching
Topic Packet switching
Dr Rajiv Srivastava
 
Ch8 Switching.pdf
Ch8 Switching.pdfCh8 Switching.pdf
Ch8 Switching.pdf
sujanshrestha884
 
Switching concepts Data communication and networks
Switching concepts Data communication and networksSwitching concepts Data communication and networks
Switching concepts Data communication and networks
Nt Arvind
 
Chapter 2 Switches in network.ppt
Chapter 2 Switches in network.pptChapter 2 Switches in network.ppt
Chapter 2 Switches in network.ppt
monikarawat57
 
2b switching in networks
2b switching in networks2b switching in networks
2b switching in networks
kavish dani
 
Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switching
Dr Rajiv Srivastava
 
DCN-321-Chiwaya_Lesson7_DataElements_Switching.pdf
DCN-321-Chiwaya_Lesson7_DataElements_Switching.pdfDCN-321-Chiwaya_Lesson7_DataElements_Switching.pdf
DCN-321-Chiwaya_Lesson7_DataElements_Switching.pdf
OscarKelvinNsitu
 
ch08.pptkkkkkklllllllllllloooooooplllllooojkkkkk
ch08.pptkkkkkklllllllllllloooooooplllllooojkkkkkch08.pptkkkkkklllllllllllloooooooplllllooojkkkkk
ch08.pptkkkkkklllllllllllloooooooplllllooojkkkkk
vijaykumar9346565338
 
Dc ch10 : circuit switching and packet switching
Dc ch10 : circuit switching and packet switchingDc ch10 : circuit switching and packet switching
Dc ch10 : circuit switching and packet switching
Syaiful Ahdan
 
data communication and networkig fibre optical cable and non fibre cable
data communication and networkig fibre optical cable and  non fibre cabledata communication and networkig fibre optical cable and  non fibre cable
data communication and networkig fibre optical cable and non fibre cable
SanthanalakshmiSelva2
 
Data Communication and SWITCHING In Networks
Data Communication and SWITCHING In NetworksData Communication and SWITCHING In Networks
Data Communication and SWITCHING In Networks
naveen rathee
 
CN Unit 2 PPT.pptx
CN Unit 2 PPT.pptxCN Unit 2 PPT.pptx
CN Unit 2 PPT.pptx
ifetananth06
 
chapter no 8 of database management system Switching.ppt
chapter no 8 of database management system Switching.pptchapter no 8 of database management system Switching.ppt
chapter no 8 of database management system Switching.ppt
sknn98885
 
Switching types-circuit, packet and message
Switching types-circuit, packet and messageSwitching types-circuit, packet and message
Switching types-circuit, packet and message
JebaRaj26
 
Circuit and Packet Switching Methods Presentation
Circuit and Packet Switching Methods PresentationCircuit and Packet Switching Methods Presentation
Circuit and Packet Switching Methods Presentation
NiharikaDubey17
 

More from krishnakumararunacha5 (6)

15 NAT - Harmony in Nature.ppt underatstangin g harmony in nature
15 NAT - Harmony in Nature.ppt underatstangin g harmony in nature15 NAT - Harmony in Nature.ppt underatstangin g harmony in nature
15 NAT - Harmony in Nature.ppt underatstangin g harmony in nature
krishnakumararunacha5
 
ch5systemmodeling-150102101848-conversion-gate01.pdf
ch5systemmodeling-150102101848-conversion-gate01.pdfch5systemmodeling-150102101848-conversion-gate01.pdf
ch5systemmodeling-150102101848-conversion-gate01.pdf
krishnakumararunacha5
 
multiple access prtocols and its types
multiple access prtocols and its    typesmultiple access prtocols and its    types
multiple access prtocols and its types
krishnakumararunacha5
 
chap1cpp3rd.ppt
chap1cpp3rd.pptchap1cpp3rd.ppt
chap1cpp3rd.ppt
krishnakumararunacha5
 
ch4.ppt
ch4.pptch4.ppt
ch4.ppt
krishnakumararunacha5
 
3-IA DC (1AH19CS018).pdf
3-IA DC (1AH19CS018).pdf3-IA DC (1AH19CS018).pdf
3-IA DC (1AH19CS018).pdf
krishnakumararunacha5
 
Ad

Recently uploaded (20)

Optimizing Reinforced Concrete Cantilever Retaining Walls Using Gases Brownia...
Optimizing Reinforced Concrete Cantilever Retaining Walls Using Gases Brownia...Optimizing Reinforced Concrete Cantilever Retaining Walls Using Gases Brownia...
Optimizing Reinforced Concrete Cantilever Retaining Walls Using Gases Brownia...
Journal of Soft Computing in Civil Engineering
 
Understand water laser communication using Arduino laser and solar panel
Understand water laser communication using Arduino laser and solar panelUnderstand water laser communication using Arduino laser and solar panel
Understand water laser communication using Arduino laser and solar panel
NaveenBotsa
 
A Study of Bank Line Shifting of the Selected Reach of Jamuna River Using Mul...
A Study of Bank Line Shifting of the Selected Reach of Jamuna River Using Mul...A Study of Bank Line Shifting of the Selected Reach of Jamuna River Using Mul...
A Study of Bank Line Shifting of the Selected Reach of Jamuna River Using Mul...
Journal of Soft Computing in Civil Engineering
 
VISHAL KUMAR SINGH Latest Resume with updated details
VISHAL KUMAR SINGH Latest Resume with updated detailsVISHAL KUMAR SINGH Latest Resume with updated details
VISHAL KUMAR SINGH Latest Resume with updated details
Vishal Kumar Singh
 
Domain1_Security_Principles --(My_Notes)
Domain1_Security_Principles --(My_Notes)Domain1_Security_Principles --(My_Notes)
Domain1_Security_Principles --(My_Notes)
efs14135
 
7- Bearing..pptx 7- Bearing..pptx7- Bearing..pptx
7- Bearing..pptx 7- Bearing..pptx7- Bearing..pptx7- Bearing..pptx 7- Bearing..pptx7- Bearing..pptx
7- Bearing..pptx 7- Bearing..pptx7- Bearing..pptx
abdokhattab2015
 
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdfLittle Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
gori42199
 
Espresso PD Official MP_eng Version.pptx
Espresso PD Official MP_eng Version.pptxEspresso PD Official MP_eng Version.pptx
Espresso PD Official MP_eng Version.pptx
NingChacha1
 
WHITE PAPER-Best Practices in Syngas Plant Optimization.pdf
WHITE PAPER-Best Practices in Syngas Plant Optimization.pdfWHITE PAPER-Best Practices in Syngas Plant Optimization.pdf
WHITE PAPER-Best Practices in Syngas Plant Optimization.pdf
Floyd Burgess
 
GROUP 2 - MANUFACTURE OF LIME, GYPSUM AND CEMENT.pdf
GROUP 2 - MANUFACTURE OF LIME, GYPSUM AND CEMENT.pdfGROUP 2 - MANUFACTURE OF LIME, GYPSUM AND CEMENT.pdf
GROUP 2 - MANUFACTURE OF LIME, GYPSUM AND CEMENT.pdf
kemimafe11
 
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
Guru Nanak Technical Institutions
 
Machine foundation notes for civil engineering students
Machine foundation notes for civil engineering studentsMachine foundation notes for civil engineering students
Machine foundation notes for civil engineering students
DYPCET
 
Hostelmanagementsystemprojectreport..pdf
Hostelmanagementsystemprojectreport..pdfHostelmanagementsystemprojectreport..pdf
Hostelmanagementsystemprojectreport..pdf
RajChouhan43
 
Compressive Strength Estimation of Mesh Embedded Masonry Prism Using Empirica...
Compressive Strength Estimation of Mesh Embedded Masonry Prism Using Empirica...Compressive Strength Estimation of Mesh Embedded Masonry Prism Using Empirica...
Compressive Strength Estimation of Mesh Embedded Masonry Prism Using Empirica...
Journal of Soft Computing in Civil Engineering
 
Health & Safety .........................
Health & Safety .........................Health & Safety .........................
Health & Safety .........................
shadyozq9
 
May 2025 - Top 10 Read Articles in Network Security and Its Applications
May 2025 - Top 10 Read Articles in Network Security and Its ApplicationsMay 2025 - Top 10 Read Articles in Network Security and Its Applications
May 2025 - Top 10 Read Articles in Network Security and Its Applications
IJNSA Journal
 
ldr darkness sensor circuit.pptx for engineers
ldr darkness sensor circuit.pptx for engineersldr darkness sensor circuit.pptx for engineers
ldr darkness sensor circuit.pptx for engineers
PravalikaChidurala
 
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
Pierre Celestin Eyock
 
AI-Powered Data Management and Governance in Retail
AI-Powered Data Management and Governance in RetailAI-Powered Data Management and Governance in Retail
AI-Powered Data Management and Governance in Retail
IJDKP
 
DeFAIMint | 🤖Mint to DeFAI. Vibe Trading as NFT
DeFAIMint | 🤖Mint to DeFAI. Vibe Trading as NFTDeFAIMint | 🤖Mint to DeFAI. Vibe Trading as NFT
DeFAIMint | 🤖Mint to DeFAI. Vibe Trading as NFT
Kyohei Ito
 
Understand water laser communication using Arduino laser and solar panel
Understand water laser communication using Arduino laser and solar panelUnderstand water laser communication using Arduino laser and solar panel
Understand water laser communication using Arduino laser and solar panel
NaveenBotsa
 
VISHAL KUMAR SINGH Latest Resume with updated details
VISHAL KUMAR SINGH Latest Resume with updated detailsVISHAL KUMAR SINGH Latest Resume with updated details
VISHAL KUMAR SINGH Latest Resume with updated details
Vishal Kumar Singh
 
Domain1_Security_Principles --(My_Notes)
Domain1_Security_Principles --(My_Notes)Domain1_Security_Principles --(My_Notes)
Domain1_Security_Principles --(My_Notes)
efs14135
 
7- Bearing..pptx 7- Bearing..pptx7- Bearing..pptx
7- Bearing..pptx 7- Bearing..pptx7- Bearing..pptx7- Bearing..pptx 7- Bearing..pptx7- Bearing..pptx
7- Bearing..pptx 7- Bearing..pptx7- Bearing..pptx
abdokhattab2015
 
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdfLittle Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
gori42199
 
Espresso PD Official MP_eng Version.pptx
Espresso PD Official MP_eng Version.pptxEspresso PD Official MP_eng Version.pptx
Espresso PD Official MP_eng Version.pptx
NingChacha1
 
WHITE PAPER-Best Practices in Syngas Plant Optimization.pdf
WHITE PAPER-Best Practices in Syngas Plant Optimization.pdfWHITE PAPER-Best Practices in Syngas Plant Optimization.pdf
WHITE PAPER-Best Practices in Syngas Plant Optimization.pdf
Floyd Burgess
 
GROUP 2 - MANUFACTURE OF LIME, GYPSUM AND CEMENT.pdf
GROUP 2 - MANUFACTURE OF LIME, GYPSUM AND CEMENT.pdfGROUP 2 - MANUFACTURE OF LIME, GYPSUM AND CEMENT.pdf
GROUP 2 - MANUFACTURE OF LIME, GYPSUM AND CEMENT.pdf
kemimafe11
 
Machine foundation notes for civil engineering students
Machine foundation notes for civil engineering studentsMachine foundation notes for civil engineering students
Machine foundation notes for civil engineering students
DYPCET
 
Hostelmanagementsystemprojectreport..pdf
Hostelmanagementsystemprojectreport..pdfHostelmanagementsystemprojectreport..pdf
Hostelmanagementsystemprojectreport..pdf
RajChouhan43
 
Health & Safety .........................
Health & Safety .........................Health & Safety .........................
Health & Safety .........................
shadyozq9
 
May 2025 - Top 10 Read Articles in Network Security and Its Applications
May 2025 - Top 10 Read Articles in Network Security and Its ApplicationsMay 2025 - Top 10 Read Articles in Network Security and Its Applications
May 2025 - Top 10 Read Articles in Network Security and Its Applications
IJNSA Journal
 
ldr darkness sensor circuit.pptx for engineers
ldr darkness sensor circuit.pptx for engineersldr darkness sensor circuit.pptx for engineers
ldr darkness sensor circuit.pptx for engineers
PravalikaChidurala
 
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
Pierre Celestin Eyock
 
AI-Powered Data Management and Governance in Retail
AI-Powered Data Management and Governance in RetailAI-Powered Data Management and Governance in Retail
AI-Powered Data Management and Governance in Retail
IJDKP
 
DeFAIMint | 🤖Mint to DeFAI. Vibe Trading as NFT
DeFAIMint | 🤖Mint to DeFAI. Vibe Trading as NFTDeFAIMint | 🤖Mint to DeFAI. Vibe Trading as NFT
DeFAIMint | 🤖Mint to DeFAI. Vibe Trading as NFT
Kyohei Ito
 
Ad

switching multiple access control data communication

  • 1. Switching Majid Asadpoor Ref: Data Communication and Networking by Behrouz A. Forouzan
  • 2. Index • Circuit Switching • Packet switching (datagram switching) • Packet switching (virtual-circuit switching) • Structure of switch
  • 3. Switching • how to connect Whenever we have multiple devices? – make a point-to-point connection between each pair of devices (a mesh topology) ? – make a connection between a central device and every other device (a star topology)? • impractical and wasteful when applied to very large networks. – The number and length of the links require too much infrastructure to be cost-efficient – the majority of those links would be idle most of the time. • A better solution is switching. • A switched network consists of a series of interlinked nodes, called switches creating temporary connections between two or more devices linked to the switch.
  • 4. Switched Network The end systems (communicating devices) are labeled A, B, C, D, and so on, switches are labeled I, II, III, IV, and V
  • 5. Switching Methods Today the tendency in packet switching is to combine datagram networks and virtualcircuit networks. Networks route the first packet based on the datagram addressing idea, but then create a virtual-circuit network for the rest of the packets coming from the same source and going to the same destination.
  • 6. CIRCUIT-SWITCHED NETWORKS • each connection uses only one dedicated channel on each link. Each link is normally divided into n channels by using FDM or TDM
  • 7. CIRCUIT-SWITCHED NETWORKS • Circuit switching takes place at the physical layer • Before starting communication, make a reservation for the resources ( Setup Phase ) • resources, such as channels (bandwidth in FDM and time slots in TDM), switch buffers, switch processing time, … • Data transferred between the two stations are not packetized (physical layer transfer of the signal). • There is no addressing involved during data transfer. The switches route the data based on their occupied band (FDM) or time slot (TDM). • there is end-to-end addressing used during the setup phase
  • 8. CIRCUIT-SWITCHED NETWORKS Example 1 • Telephone 1 is connected to telephone 7; 2 to 5; 3 to 8; and 4 to 6 • The situation may change when new connections are made
  • 10. CIRCUIT-SWITCHED NETWORKS • Setup Phase – Before the two parties can communicate, a dedicated circuit needs to be established. – connection setup means creating dedicated channels between the switches. – end-to-end addressing is required for creating a connection between two end systems. These can be, for example, the addresses of the computers assigned by the administrator in a TDM network, or telephone numbers in an FDM network. • Data Transfer Phase – After the establishment of the dedicated circuit (channels), the two parties can transfer data • Teardown Phase – When one of the parties needs to disconnect, a signal is sent to each switch to release the resources
  • 11. CIRCUIT-SWITCHED NETWORKS • Efficiency – are not as efficient as the other two types of networks because resources are allocated during the entire duration of the connection and are unavailable to other connections. • Delay – the delay in this type of network is minimal
  • 12. CIRCUIT-SWITCHED NETWORKS Delay • delay caused by the setup is the sum of four parts: – the propagation time of the source computer request (slope of the first gray box), – the request signal transfer time (height of the first gray box), – the propagation time of the acknowledgment from the destination computer (slope of the second gray box), – the signal transfer time of the acknowledgment (height of the second gray box). • The delay due to data transfer is the sum of two parts: – the propagation time (slope of the colored box) – data transfer time (height of the colored box), which can be very long. • The third box shows the time needed to tear down the circuit. – We have shown the case in which the receiver requests disconnection, which creates the maximum delay.
  • 14. Circuit-Switched Technology in Telephone Networks • telephone companies usef circuit switched approach – the telephone number is used as the global address – signaling system (called SS7) is used for the setup and teardown phases.
  • 15. DATAGRAM NETWORKS • messages needs to be divided into packets of fixed or variable size • there is no resource allocation for a packet and are allocated on demand • The allocation is done on a firstcome, first-served basis • each packet is treated independently of all others • Packets in this approach are referred to as datagrams • Datagram switching is normally done at the network layer
  • 16. DATAGRAM NETWORKS • may travel different paths to reach their destination – out of order Transfer – different delays between the Packets – Packets may be lost or dropped – In most protocols, it is the responsibility of an upper- layer protocol to reorder the datagrams or ask for lost datagrams before passing them on to the application. – There are no setup or teardown phases (connectionless networks )
  • 18. Routing Table • If there are no setup or teardown phases, how are the packets routed to their destinations in a datagram network? • each switch has a routing table which is based on the destination address • The destination addresses and the corresponding forwarding output ports are recorded in the tables • In table of a circuit switched network , each entry is created when the setup phase is completed and deleted when the teardown phase is over.
  • 19. Routing Table • Every packet in a datagram network carries destination address of the packet. • the routing table is consulted to find the corresponding port through which the packet should be forwarded • The address remains the same during the entire journey of the packet opposite in a virtual-circuit-switched network
  • 20. Efficiency • better than that of a circuit-switched network • resources are allocated only when there are packets to be transferred
  • 21. Delay • May be greater delay in a datagram network than in a virtual-circuit network • each packet may experience a wait at a switch before it is forwarded • the delay is not uniform for the packets of a message
  • 22. Delay three transmission times (3T), three propagation delays (slopes 3't of the lines), two waiting times (WI + w2) ignore the processing time in each switch. The total delay is Total delay =3T + 3t + WI + W2
  • 23. Datagram Networks in the Internet • Internet has chosen the datagram approach to switching at the network layer. • uses the universal addresses defined in the network layer to route packets from the source to the destination
  • 24. VIRTUAL-CIRCUIT NETWORKS • is a cross between a circuit-switched network and a datagram network • As in a circuit-switched network, there are setup and teardown phases • Resources can be allocated during the setup phase, as in a circuit-switched network, or on demand, as in a datagram network. • As in a datagram network, data are packetized • each packet carries an address in the header. the address in the header has local jurisdiction. HOW? – The answer will be clear when we discuss virtual-circuit identifiers in the next section. • all packets follow the same path established during the connection. • A virtual-circuit network is normally implemented in the data link layer – circuit-switched network is implemented in the physical layer – and a datagram network in the network layer. – But this may change in the future.
  • 26. VIRTUAL-CIRCUIT NETWORKS • Addressing – global Addressing – Local Addressing • Global Addressing – A source or a destination needs to have a global address that can be unique and is used only to create a virtual-circuit identifier • Virtual-Circuit Identifier – The identifier that is actually used for data (VCI) – VCI does not need to be a large since each switch can use its own unique set of VCls
  • 28. Three Phases • Setup phase – the source and destination use their global addresses to help switches make table entries for the connection • data transfer phase – We discuss first in the next section • Teardown phase – the source and destination inform the switches to delete the corresponding entry
  • 29. Data Transfer Phase • switch holds four pieces of information for each virtual circuit that is already set up
  • 31. Setup Phase • setup request a) Source A sends a setup frame to switch 1. b) Switch 1 receives the setup request frame. It knows that a frame going from A to B goes out through port 3. How? The switch, in the setup phase, acts as a packet switch so through routing table .The switch creates an entry in its table for this virtual circuit, but fill three of the four columns. The switch assigns the incoming port (1) and chooses an available incoming VCI (14) and the outgoing port (3). It does not yet know the outgoing VCI, which will be found during the acknowledgment step. The switch then forwards the frame through port 3 to switch 2. c) Switch 2 receives the setup request frame. The same events happen here as at switch 1; d) … e) Destination B receives the setup frame, and if it is ready to receive frames from A, it assigns a VCI to the incoming frames that come from A, in this case 77. This VCI lets the destination know that the frames come from A, and not other sources acknowledgment
  • 33. Setup Phase/Acknowledge A. The destination sends an acknowledgment to switch 3. The acknowledgment carries the global source and destination addresses. The frame also carries VCI 77, chosen by the destination as the incoming VCI for frames from A. Switch 3 uses this VCI to complete the outgoing VCI column for this entry. Note that 77 is the incoming VCI for destination B, but the outgoing VCI for switch 3. B. Switch 3 sends an acknowledgment to switch 2 that contains its incoming VCI in the table, chosen in the previous step. Switch 2 uses this as the outgoing VCI in the table. C. Switch 2 sends an acknowledgment to switch 1 that contains its incoming VCI in the table, chosen in the previous step. Switch 1 uses this as the outgoing VCI in the table. D. Finally switch 1 sends an acknowledgment to source A that contains its incoming VCI in the table, chosen in the previous step. E. The source uses this as the outgoing VCI for the data frames to be sent to destination B.
  • 35. Teardown Phase A. source A, after sending all frames to B, sends a special frame called a teardown request B. Destination B responds with a teardown confirmation frame C. switches delete the corresponding entry from their tables
  • 36. Efficiency • resource reservation in a virtual-circuit network can be made during the setup or on- demand during the data transfer phase – In first case, the delay for each packet is the same – in second case, each packet may encounter different delays • big advantage: even if resource allocation is on demand, The source can check the availability of the resources
  • 37. Delay in Virtual-Circuit Networks • one-time delay for setup (in two direction) • one-time delay for teardown (in one direction) • If resources are allocated during setup phase, there is no wait time for individual packets. Total delay = 3T+ 3t + setup delay + teardown delay ignore the processing time in each switch
  • 38. Virtual Circuit-Switched Technology in WANs • Frame Relay and ATM networks • Implemented in data link layer
  • 39. Structure of Circuit Switches • space-division switch – Crossbar Switch – Multistage Switch • time-division switch – Time-Division Switch – Time- and Space-Division Switch Combinations
  • 40. Space-Division Switch • the paths in the circuit are separated from one another spatially • used in both analog and digital networks
  • 41. Circuit Switch • A crossbar switch connects n inputs to m outputs in a grid, using electronic microswitches (transistors) at each crosspoint • The major limitation of this design is the number of crosspoints required • inefficient because statistics show that, in practice, fewer than 25 percent of the crosspoints are in use at any given time.
  • 43. Multistage Switch • combines crossbar switches in several (normally three) stages • N*N crosspoint in a single crossbar, but at a time one row or column is active for any connection • First stage: N/n crossbar each n * k crosspoint • Second stage: k crossbar each N/n * N/n crosspoint • Third stage: N/n crossbars, each k x n crosspoint
  • 44. Multistage Switch Total Number of crosspoint = N/n(n*k) + k(N/n * N/n) + N/n(k*n) = 2kn + k(N/n)^2 << N^2
  • 45. Multistage Switch/ Example1 • Design a three-stage, 200 x 200 switch , k =4 and n =20 • First stage: – N/n or 10 crossbars, each of size 20 x 4. • Second Stage: – 4 crossbars, each of size 10 x 10. • Third Stage: – 10 crossbars, each of size 4 x 20. • The total number of crosspoints: – 2000 crosspoints. This is 5 percent of the number of crosspoints in a single-stage switch (200 x 200 = 40,000).
  • 46. Blocking in multiStage Switch • The multistage switch has one drawback: – blocking during periods • multistage switching is to share the crosspoints in the middle-stage crossbars • In a single-stage switch, there is always a path • only 4 of the second 20 inputs can use the switch at a time (every n user can just have k simultaneous connection) • The small number of crossbars at the middle • stage creates blocking. • In large systems, the number of stages can be increased to cut down on the number of crosspoints required. As the number of stages increases, possible blocking increases as well
  • 47. multiStage non-blocking Switch • Clos rule: In a nonblocking switch, (k>> 2n-1) • number of crosspoints is still smaller than that in a single-stage switch • minimize the number of crosspoints with a fixed N by using the Clos criteria. We can take the derivative of the equation with respect to n (the only variable) and find the value of n that makes the result zero
  • 48. Multistage Switch/ Example2 • Redesign the previous three-stage, 200 x 200 switch, using the Clos criteria with a minimum number of crosspoints – n = (200/2)1/2, or n = 10. – k = 2n - 1 = 19. – total number of crosspoints is 20(10 X 19) + 19(10 X 10) + 20(19 XlO) = 9500. 24 percent that of a single-stage switch – single-stage switch, we need 200 X 200 =40,000 crosspoints • Close non-blocking rule: if a telephone company needs to provide a switch to connect 100,000 telephones in a city, it needs 200 million crosspoints!!!!!!!!! • So we accept blocking
  • 49. Time-Division Switch • Today, telephone companies use time-division switching or a combination of space- and time-division switches • Time-division switching uses time-division multiplexing (TDM) inside a switch – most popular technology is called the time-slot interchange (TSI).
  • 51. Time- and Space-Division Switch Combinations • Space-division – Advantage: it is instantaneous – Disadvantage: is blocking • time-division switching – Advantage: it needs no crosspoints • Disadvantage: in the case of TSI, Each time slot must be stored by the RAM, then retrieved and passed on. Creates Delay • combine space and time-division technologies – switches that are optimized both physically (the number of crosspoints) and temporally (the amount of delay).
  • 52. Time- and Space-Division Switch Combinations • two time stages and one space stage and has 12 inputs and 12 outputs. • The result is , average delay is one-third • The middle stage is a spacedivision switch
  • 53. Structure of Packet Switches • Input Ports • Output Ports • Routing Processor • Switching Fabric
  • 54. Input Port • performs the physical and data link functions of the packet switch – The packet is decapsulated from the frame. – Errors are detected and corrected • the input port has buffers to hold the packet before it is directed to the switching fabric
  • 55. Output Port • outgoing packets are queued, then the packet is encapsulated in a frame • physical layer functions are applied to the frame to create the signal
  • 56. ROuting Processor • performs the functions of the network layer • The destination address is used to find the address of the next hop and the output port based on Routing Table • In the newer packet switches, this function of the routing processor is being moved to the input ports to facilitate and expedite the process.
  • 57. Switching Fabrics • Crossbar Switch with • Banyan Switch • Batcher-Banyan Switch
  • 58. Banyan Switch • Banyan Switch is a multistage switch with microswitches at each stage that route the packets based on the output port represented as a binary string – For n inputs and n outputs, have (log n based 2) stages with n/2 microswitches at each stage – The first stage routes the packet based on the high- order bit of the binary string. – The second stage routes the packet based on the second high-order bit, and so on
  • 60. Batcher-Banyan Switch • The problem in banyan switch is the possibility of internal collision even when two packets are not heading for the same output port. • solve this problem by sorting the arriving packets based on their destination port • trap is added between the Batcher switch and the banyan switch • The trap module prevents packets with the same output destination from passing to the banyan switch simultaneously • if there is more than one, they wait for the next tick