CHAPTER 14 - Emerging Wireless Network Technologies

EXAMPLE 14.3 - PG NO. 569

In [1]:
#page no. 569
TDR=2000.#transmission data rate
Size=20.*8.
dtt=Size/TDR#data transfer time
print'%s %d %s' %('data transfer time =',dtt*10.**3.,'ms')
data transfer time = 80 ms

EXAMPLE 14.4 - PG NO. 569

In [2]:
#page no. 569
TDR=2.
dtt=16.#data transfer time
Size=TDR*dtt#size
size=Size/8
print'%s %d %s %s %d %s' %('size of a file transferred is =',Size,'Mb', 'or',size,'MB(Mega Bytes)')
 
size of a file transferred is = 32 Mb or 4 MB(Mega Bytes)

EXAMPLE 14.5 - PG NO. 571

In [3]:
#page no. 571
import math
tn=52.#no.of subcarriers
np=4.#no.of subcarriers used as pilot subcarriers
nd=tn-np#no.of data subcarriers
FECcr=3./4.#forward error correction code rate
m=math.log10(64.)/math.log10(2.)#bits per symbol
ndpos=m*FECcr*nd#no. of data bits transmitted per ofdm symbol
odsd=4.*10.**-6.#data symbol duration
TDR=ndpos/odsd
print'%s %d %s' %('transmission data rate =',TDR*10**(-6),'Mbps')
transmission data rate = 54 Mbps

EXAMPLE 14.10 - PG NO. 594

In [4]:
#page no. 594
N=100.
c=4.
MNw=N*c
TNw=MNw/2.#no. of wireless links
print'%s %d' %('total no. of wireless links in the network is =',TNw)
total no. of wireless links in the network is = 200