Data:
File size = 1000 bytes
Length of packet = L = 500 bytes = 500 × 8 bit
Number of packets = 2
Bandwidth = BW = 107 b/s
Distance = d1= 50 km
Distance = d2 = 50 km
Propagation speed = v = 2 × 108 m/s = 2 × 105 km/s
Transmission delay = Tt
Propagation delay = Tr = 0.1 ms
Processing time at switch = 0.1 millisecond
Formula:
\({T_t} = \frac{L}{{BW}}\)
\({T_p} = \frac{d}{v}\)
Calculation:
Packet 1:
Link 1:
\({T_{t1}} = \frac{{500 \times 8}}{{{{10}^7}}} = 0.4\;ms\)
\({T_{p1}} = \frac{{50}}{{2 \times {{10}^5}}} = 0.25\;ms\)
Tr = 0.1 ms
Link 2:
\({T_{t2}} = \frac{{500 \times 8}}{{{{10}^7}}} = 0.4\;ms\)
\({T_{p1}} = \frac{{50}}{{2 \times {{10}^5}}} = 0.25\;ms\)
Delay for packet 1:
T1 = 0.4 + 0.25 + 0.1 + 0.4 + 0.25 = 1.4 ms
Packet 2:
Transmission is started at 0.4 ms (after the transmission of 1st packet)
Link 1:
\({T_{t1}} = \frac{{500 \times 8}}{{{{10}^7}}} = 0.4\;ms\)
\({T_{p1}} = \frac{{50}}{{2 \times {{10}^5}}} = 0.25\;ms\)
Tr = 0.1 ms
Link 2:
\({T_{t2}} = \frac{{500 \times 8}}{{{{10}^7}}} = 0.4\;ms\)
\({T_{p1}} = \frac{{50}}{{2 \times {{10}^5}}} = 0.25\;ms\)
T2 = 0.4 + 0.25 + 0.1 + 0.4 + 0.25 = 1.4 ms
Total delay to transmit data = 0.4 + T2 = 0.4 + 1.4 = 1.8 ms
the time elapsed between the transmission of the first bit of data and the reception of the last bit of the data in millisecond is 1.8 ms