Lecture 05 - Switching
Lecture 05 - Switching
NETWORKS
https://sites.google.com/a/quest.edu.pk/dr-irfana-memon/lecture-slides
Course Content
NO TOPIC
01 Introduction: Motivations of studying networking
02
03
04
05 Switching
06
07
08
09
10
11
12
Chapter 04
Switching
Chapter 4 : Outline
• Introduction to switching
• Switching modes
• Switching Techniques
Circuit switching
Message switching
Packet switching
Switching
• When a user accesses the internet or another computer
network outside their immediate location, messages are
sent through the network of transmission media. This
technique of transferring the information from one
computer network to another network is known
as switching.
• Switching in a computer network is achieved by using
switches. A switch is a small hardware device which is
used to join multiple computers together with one local
area network (LAN).
• Network switches operate at layer 2 (Data link layer) in
the OSI model.
Switching
• Switching is transparent to the user and does not
require any configuration in the home network.
• Switches are used to forward the packets based on MAC
addresses.
• A Switch is used to transfer the data only to the device
that has been addressed. It verifies the destination
address to route the packet appropriately.
• It is operated in full duplex mode.
• Packet collision is minimum as it directly communicates
between source and destination.
• It does not broadcast the message as it works with
limited bandwidth.
Why Switching Concept required?
Switching concept is developed because of the following
reasons:
• Bandwidth: It is defined as the maximum transfer rate
of a cable. It is a very critical and expensive resource.
Therefore, switching techniques are used for the
effective utilization of the bandwidth of a network.
• Collision: Collision is the effect that occurs when more
than one device transmits the message over the same
physical media, and they collide with each other. To
overcome this problem, switching technology is
implemented so that packets do not collide with each
other.
Advantages Of Switching
• Switch increases the bandwidth of the network.
• It reduces the workload on individual PCs as it sends
the information to only that device which has been
addressed.
• It increases the overall performance of the network by
reducing the traffic on the network.
• There will be less frame collision as switch creates the
collision domain for each connection.
Disadvantages Of Switching
Store-and-forward Switching is a technique that Cut-through Switching is a technique that checks the
waits until the entire frame is received. first 6 bytes following the preamble to identify the
destination address.
It performs error checking functionality. If any error It does not perform any error checking. The frame
is found in the frame, the frame will be discarded with or without errors will be forwarded.
otherwise forwarded to the next node.
It has high latency rate as it waits for the entire It has low latency rate as it checks only six bytes of
frame to be received before forwarding to the next the frame to determine the destination address.
node.
It has a high wait time as it waits for the entire It has low wait time as cut-through switches do not
frame to be received before taking any forwarding store the whole frame or packets.
decisions.
Switching Techniques
• In large networks, there can be multiple paths from
sender to receiver. The switching technique will
decide the best route for data transmission.
• Switching technique is used to connect the systems
for making one-to-one communication.
Classification of Switching
Techniques
Circuit Switching
• Circuit switching is a switching technique that establishes a dedicated
path between sender and receiver.
• In the Circuit Switching Technique, once the connection is established
then the dedicated path will remain to exist until the connection is
terminated.
• Circuit switching in a network operates in a similar way as the
telephone works.
• A complete end-to-end path must exist before the communication takes
place.
• In case of circuit switching technique, when any user wants to send the
data, voice, video, a request signal is sent to the receiver then the
receiver sends back the acknowledgment to ensure the availability of
the dedicated path. After receiving the acknowledgment, dedicated path
transfers the data.
• Circuit switching is used in public telephone network. It is used for voice
transmission.
• Fixed data can be transferred at a time in circuit switching technology.
Communication through Circuit
Switching
Communication through circuit switching has 3 phases:
• Circuit establishment
• Data transfer
• Circuit Disconnect
Message Switching
• Message Switching is a switching technique in which a message is
transferred as a complete unit and routed through intermediate
nodes at which it is stored and forwarded.
• In Message Switching technique, there is no establishment of a
dedicated path between the sender and receiver.
• The destination address is appended to the message. Message
Switching provides a dynamic routing as the message is routed
through the intermediate nodes based on the information
available in the message.
• Message switches are programmed in such a way so that they can
provide the most efficient routes.
• Each and every node stores the entire message and then forward
it to the next node. This type of network is known as store and
forward network.
• Message switching treats each message as an independent entity.
Message Switching
Advantages of Message Switching
Node takes routing decisions to Node does not take any routing
forward the packets. decision.
Congestion cannot occur as all the Congestion can occur when the
packets travel in different node is busy, and it does not allow
directions. other packets to pass through.