blob: bbc2b365a2c47982e33edcb0d871135b8efe9ca5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Example 6.2, page no-230
clear
clc
t=20 //TDMA frame length in ms
lc=352 //length of carrier and clock recovery frequency in bits
lu1=48 //length of unique word in bits
lo=510 //length of order wire channel in bits
lm= 256 //length of management channel in bits
lt=320 // length of transmit timming channel in bits
ls1=24 // length of service channel in bits
gt=64 // Guard time in bits
rb=2 // reference burst
br=90*10^6 //burst bit rate 90Mbps
bfr=br*t*10^-3
lr=lc+lu1+lo+lm+lt
tb=lc+lu1+lo+ls1
tob=(lr*rb)+(tb*t)+((t+rb)*gt)
feff=(bfr-tob)*100/bfr
feff=ceil(feff*100)/100
printf("Frame efficiency = %.2f%%",feff)
|