2.1 Transmission Media
2.1 Transmission Media
UNIT – II
Switching
o Switching is process to forward packets coming in from one port to a port
leading towards the destination. When data comes on a port it is called
ingress, and when data leaves a port or goes out it is called egress.
A communication system may include number of switches and nodes.
o At broad level, switching can be divided into two major categories:
o Connectionless: The data is forwarded on behalf of forwarding tables. No
previous handshaking is required and acknowledgements are optional.
o Connection Oriented: Before switching data to be forwarded to destination,
there is a need to pre-establish circuit along the path between both endpoints.
Data is then forwarded on that circuit. After the transfer is completed, circuits
can be kept for future use or can be turned down immediately.
1. Circuit Switching
2. Message Switching
o This technique was somewhere in middle of circuit switching and
packet switching. In message switching, the whole message is treated
as a data unit and is switching transferred in its entirety.
o A switch working on message switching, first receives the whole
message and buffers it until there are resources available to transfer it
to the next hop. If the next hop is not having enough resource to
accommodate large size message, the message is stored and switch
waits.
Drawbacks:
This can result in inefficient use of resources, as the resources may remain
unused during periods of low or no communication.
Limited scalability: Circuit switching is not well-suited for large-scale
networks with many nodes, as it requires a dedicated communication path
between each pair of nodes. This can result in a high degree of complexity
and difficulty in managing the network.
Vulnerability to failures: Circuit switching relies on a dedicated
communication path, which can make the network vulnerable to failures,
such as cable cuts or switch failures. In the event of a failure, the
communication path must be re-established, which can result in delays or
loss of data.
Delay and latency: Circuit switching requires the establishment of a
dedicated communication path, which can result in delay and latency in
establishing the path and transmitting data. This can impact the real-time
performance of applications, such as voice and video.
High cost: Circuit switching requires the reservation of resources, which can
result in a high cost, particularly in large-scale networks. This can make
circuit switching less practical for some applications.
Lack of flexibility: Circuit switching is not flexible as it only allows one type
of communication at a time, such as voice or data. This can limit the ability of
users to perform multiple tasks simultaneously.
Limited mobility: Circuit switching is not well-suited for mobile devices or
nodes that move frequently, as it requires the establishment of a dedicated
communication path. This can result in communication disruptions or
dropped calls.
Limited capacity: Circuit switching can have limited capacity as it requires
the establishment of a dedicated communication path between two nodes.
This can limit the number of simultaneous communications that can occur.
High setup time: Circuit switching requires a significant setup time to
establish the dedicated communication path between two nodes. This can
result in delays in initiating communication.
No prioritization: Circuit switching does not provide any mechanism for
prioritizing certain types of traffic over others. This can result in delays or
poor performance for time-critical applications, such as voice or video.
Transmission rate = Link Rate or Bit rate / no. of slots = R/h bps
Transmission time = size of file / transmission rate
= x / (R/h) = (x*h)/R second
Total time to send packet to destination =
Transmission time + circuit setup time
Example 1 : How long it takes to send a file of ‘x bits’ from host A to host B over a
circuit switched network that uses TDM with ‘h slots’ and have a bit rate of ‘R
Mbps’, circuit establish time is k seconds.Find total time?
Explanation :
Transmission rate = Link Rate or Bit rate / no. of slots = R/h bps
Transmission time = size of file/ transmission rate = x / (R/h) = (x*h)/R
Total time = transmission time + circuit setup time = (x*h)/R secs + k secs
Example 2 : If a link transmits F frames/sec and each slot has B bits then find the
transmission rate?
Explanation :
Since it is not mention how many slots in each frame we take one frame has one
slot.
The transmission rate is the amount of data sent in 1 second.
Transmission rate = F * B bits/sec