The time required to send a frame is called frame time. Vulnerable time is the time during which no transmission should be done to avoid any collision.
My question is what kind of problem will be created if vulnerable time was equal to frame time?
The time required to send a frame is called frame time. Vulnerable time is the time during which no transmission should be done to avoid any collision.
My question is what kind of problem will be created if vulnerable time was equal to frame time?
This is because in pure ALOHA, even if a bit of a frame collides with a bit of another frame, both the frames get discarded. Also, in pure ALOHA, a station doesn't listen to the medium before transmitting. So, it has no way of knowing that another frame was already underway. If another frame was indeed underway already, then the newly transmitted frame becomes vulnerable. That is why it is called "vulnerable time". It equals twice of the frame time because it counts the time in which the transmission of another frame should start so as to make the current frame vulnerable. This time interval includes:
the frame time because if transmission of another frame were started in the frame time of the current frame, collision would occur.
a time interval (equal to the frame time) before the frame time because if transmission of another frame were started in this time interval, collision would still occur.
My question is what kind of problem will be created if vulnerable time was equal to frame time?
If the vulnerable time were equal to frame time, any frame (say A) transmitted prior to the considered frame (say B) could be transmitted within the frame time of the considered frame (B), resulting in a collision.
Suppose a sender X starts transmitting at time instant '0' and finishes at instant 't'. Then any other sender Y should start at or after instant 't' and continue till instant '2t' (because if Y start its transmission even a tiny amount of time before 't', there will be collision). Here, the vulnarable time for the frame transmitted by Y is the sum of its own frame time (i.e. 't' to '2t') and another time duration (i.e. '0' to 't'), effectively being '0' to '2t'. This is the time interval during which no sender should send on the channel to ensure that the frame sent by Y doesn't collide.
If vulnerable time was equal to frame time, there is a chance to collide with a frame as there is no gap. Let me give an example :
If there is a car in road and it maintains a gap of 2 meter from front and back there is less chance to hit with another car on the road, or if each and every car in a road maintains 2 meter gap there will be less hit if some one push brake.
But if vulnerable time was equal to frame time that is, if each car on the road maintains zero distance there is maximum possibility to get hit. I think it's clear now.
The stations participating in aloha don't need to transmit frame starting at the initial time t=0.
But the vulnerable time(T) is added to initial time to create some kind of check points (t, t+T, t+2T,...).
So if a station decides to send a frame somewhere between (t, t+T), the transmission time will cross the t+T point and use some of the time between t+2T.
In order to avoid collision we have to include the next duration (t+T, t+2T) also into vulnerable time because another station might decide to transfer between time period (t+T, t+2T) causing collision
Suppose at time t=0 station A starts sending the frames, then station A takes T(i.e Transmission Delay) unit time to transmit the frame during this interval if any other station sends the frame then the collision will occur. Then the idea comes if after the time T if any station wants to send the frame then there should not be any collision but wait what if any other sender sends the frame at time T-t'(where t'->0 i.e very small) then it will collide with the frame which is sent by station A and after the collision that useless data transmitted till T-t'+T i.e 2T-t' and up to this time if any station sends frame then that will also collide. So the vulnerable time for the transmission of the frame is taken 2*T because t' is very small it tends to zero so we can neglect that.
In aloha vulnerable time is twice frame time. To see why this is, suppose you transmit the msg bit in 10sec(FT) to the receiver. So when you start transmission of msg bit and before completing 10 sec if anyone is transmit another msg bit than there will be collision occur same as 10sec before you transmit the msg bit than less collision occur. So we can say total vulnerable time is twice of frame time.