csir-net-gate-mathematical-sciences-number-theory-handwritten-notes
csir-net-gate-mathematical-sciences-number-theory-handwritten-notes
Channel allocation problem can be solved by two schemes: Static Channel Allocation in
LANs and MANs, and Dynamic Channel Allocation.
T = 1/(U*C-L)
T(FDM) = N*T(1/U(C/N)-L/N)
Where,
T = mean time delay,
C = capacity of channel,
L = arrival rate of frames,
1/U = bits/frame,
N = number of sub channels,
T(FDM) = Frequency Division Multiplexing Time
Thus, protocols are required for sharing data on non dedicated channels. Multiple access
protocols can be subdivided further as
ALOHA
It was designed for wireless LAN but is also applicable for shared medium. In this, multiple
stations can transmit data at the same time and can hence lead to collision and data being
garbled.
Types of Aloha
Pure ALOHA
When a station sends data it waits for an acknowledgement. If the acknowledgement doesn’t
come within the allotted time then the station waits for a random amount of time called back-
off time (Tb) and re-sends the data. Since different stations wait for different amount of time,
the probability of further collision decreases.
CSMA
Carrier Sense Multiple Access ensures fewer collisions as the station is required to first sense
the medium (for idle or busy) before transmitting data. If it is idle then it sends data,
otherwise it waits till the channel becomes idle. However there is still chance of collision in
CSMA due to propagation delay. For example, if station A wants to send data, it will first
sense the medium.If it finds the channel idle, it will start sending data. However, by the time
the first bit of data is transmitted (delayed due to propagation delay) from station A, if station
B requests to send data and senses the medium it will also find it idle and will also send data.
CSMA/CD is one such technique where different stations that follow this protocol agree on
some terms and collision detection measures for effective transmission. This protocol decides
which station will transmit when so that data reaches the destination without corruption.
Carrier Sense: Before transmitting data, a device listens to the network to check if
the transmission medium is free. If the medium is busy, the device waits until it
becomes free before transmitting data.
Multiple Access: In a CSMA/CD network, multiple devices share the same
transmission medium. Each device has equal access to the medium, and any device
can transmit data when the medium is free.
Collision Detection: If two or more devices transmit data simultaneously, a collision
occurs. When a device detects a collision, it immediately stops transmitting and sends
a jam signal to inform all other devices on the network of the collision. The devices
then wait for a random time before attempting to transmit again, to reduce the chances
of another collision.
Minimum Frame Size: CSMA/CD requires a minimum frame size to ensure that all
devices have enough time to detect a collision before the transmission ends. If a frame
is too short, a device may not detect a collision and continue transmitting, leading to
data corruption on the network.
Advantages of CSMA/CD
Simple and widely used: CSMA/CD is a widely used protocol for Ethernet
networks, and its simplicity makes it easy to implement and use.
Fairness: In a CSMA/CD network, all devices have equal access to the
transmission medium, which ensures fairness in data transmission.
Efficiency: CSMA/CD allows for efficient use of the transmission medium by
preventing unnecessary collisions and reducing network congestion.
Disadvantages of CSMA/CD
Limited Scalability: CSMA/CD has limitations in terms of scalability, and it may not
be suitable for large networks with a high number of devices.
Inefficient Use of Bandwidth: CSMA/CD uses a random backoff algorithm that can
result in inefficient use of network bandwidth if a device continually experiences
collisions.
CSMA/CA
Carrier sense multiple access with collision avoidance. The process of collisions detection
involves sender receiving acknowledgement signals. If there is just one signal(its own) then
the data is successfully sent but if there are two signals(its own and the one with which it has
collided) then it means a collision has occurred. To distinguish between these two cases,
collision must have a lot of impact on received signal. However it is not so in wired
networks, so CSMA/CA is used in this case.
Interframe Space: Station waits for medium to become idle and if found idle it does not
immediately send data (to avoid collision due to propagation delay) rather it waits for a
period of time called Interframe space or IFS. After this time it again checks the medium for
being idle. The IFS duration depends on the priority of station.
Contention Window: It is the amount of time divided into slots. If the sender is ready to
send data, it chooses a random number of slots as wait time which doubles every time
medium is not found idle. If the medium is found busy it does not restart the entire process,
rather it restarts the timer when the channel is found idle again.
1. Reservation
In the reservation method, a station needs to make a reservation before sending data.
The timeline has two kinds of periods:
Reservation interval of fixed time length
Data transmission period of variable frames.
If there are M stations, the reservation interval is divided into M slots, and each station has
one slot.
Suppose if station 1 has a frame to send, it transmits 1 bit during the slot 1. No other station is
allowed to transmit during this slot.
In general, i th station may announce that it has a frame to send by inserting a 1 bit into i th
slot. After all N slots have been checked, each station knows which stations wish to transmit.
The stations which have reserved their slots transfer their frames in that order.
After data transmission period, next reservation interval begins.
Since everyone agrees on who goes next, there will never be any collisions.
The following figure shows a situation with five stations and a five-slot reservation frame. In
the first interval, only stations 1, 3, and 4 have made reservations. In the second interval, only
station 1 has made a reservation.Reservation
Advantages of Reservation
The main advantage of reservation is high rates and low rates of data accessing time
of the respective channel can be predicated easily. Here time and rates are fixed.
Priorities can be set to provide speedier access from secondary.
Reservation-based access methods can provide predictable network performance,
which is important in applications where latency and jitter must be minimized, such as
in real-time video or audio streaming.
Reservation-based access methods can reduce contention for network resources, as
access to the network is pre-allocated based on reservation requests. This can improve
network efficiency and reduce packet loss.
Reservation-based access methods can support QoS requirements, by providing
different reservation types for different types of traffic, such as voice, video, or data.
This can ensure that high-priority traffic is given preferential treatment over lower-
priority traffic.
Reservation-based access methods can enable more efficient use of available
bandwidth, as they allow for time and frequency multiplexing of different reservation
requests on the same channel.
Reservation-based access methods are well-suited to support multimedia applications
that require guaranteed network resources, such as bandwidth and latency, to ensure
high-quality performance.
Disadvantages of Reservation
Highly trust on controlled dependability.
Decrease in capacity and channel data rate under light loads; increase in turn-around
time.
2. Polling
Polling process is similar to the roll-call performed in class. Just like the teacher, a
controller sends a message to each node in turn.
In this, one acts as a primary station(controller) and the others are secondary stations.
All data exchanges must be made through the controller.
The message sent by the controller contains the address of the node being selected for
granting access.
Although all nodes receive the message the addressed one responds to it and sends
data if any. If there is no data, usually a “poll reject”(NAK) message is sent back.
Problems include high overhead of the polling messages and high dependence on the
reliability of the controller.
Advantages of Polling
The maximum and minimum access time and data rates on the channel are fixed
predictable.
It has maximum efficiency.
It has maximum bandwidth.
No slot is wasted in polling.
There is assignment of priority to ensure faster access from some secondary.
Disadvantages of Polling
It consume more time.
Since every station has an equal chance of winning in every round, link sharing is
biased.
Only some station might run out of data to send.
An increase in the turnaround time leads to a drop in the data rates of the channel
under low loads.
Efficiency Let Tpoll be the time for polling and Tt be the time required for transmission of
data. Then,
3. Token Passing
In token passing scheme, the stations are connected logically to each other in form of
ring and access to stations is governed by tokens.
A token is a special bit pattern or a small message, which circulate from one station to
the next in some predefined order.
In Token ring, token is passed from one station to another adjacent station in the ring
whereas incase of Token bus, each station uses the bus to send the token to the next
station in some predefined order.
In both cases, token represents permission to send. If a station has a frame queued for
transmission when it receives the token, it can send that frame before it passes the
token to the next station. If it has no queued frame, it passes the token simply.
After sending a frame, each station must wait for all N stations (including itself) to
send the token to their neighbours and the other N – 1 stations to send a frame, if they
have one.
There exists problems like duplication of token or token is lost or insertion of new
station, removal of a station, which need be tackled for correct and reliable operation
of this scheme.
Performance of token ring can be concluded by 2 parameters:-
Delay, is a measure of time between when a packet is ready and when it is delivered.
So, the average time (delay) required to send a token to the next station = a/N.
Throughput, which is a measure of successful traffic.
Throughput, S = 1/(1 + a/N) for a<1
and
3. Channelization
In this, the available bandwidth of the link is shared in time, frequency and code to
multiple stations to access channel simultaneously.
Code Division Multiple Access (CDMA) – One channel carries all transmissions
simultaneously. There is neither division of bandwidth nor division of time. For
example, if there are many people in a room all speaking at the same time, then also
perfect reception of data is possible if only two person speak the same language.
Similarly, data from different stations can be transmitted simultaneously in different
code languages.
Advantages of OFDMA
Increase in efficiency
Disadvantages OFDMA
Complex to implement
Spatial Division Multiple Access (SDMA) – SDMA uses multiple antennas at the
transmitter and receiver to separate the signals of multiple users that are located in different
spatial directions. This technique is commonly used in MIMO (Multiple-Input, Multiple-
Output) wireless communication systems.
Advantages SDMA
Disadvantages SDMA
It is complex to implement