diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3446/CH21/EX21.7 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3446/CH21/EX21.7')
-rw-r--r-- | 3446/CH21/EX21.7/Ex21_7.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/3446/CH21/EX21.7/Ex21_7.sce b/3446/CH21/EX21.7/Ex21_7.sce new file mode 100644 index 000000000..48dd93d8e --- /dev/null +++ b/3446/CH21/EX21.7/Ex21_7.sce @@ -0,0 +1,20 @@ +// Exa 21.7
+// To determine the PER(Packet error rate) for FH(Frequency Hopping packet) and DS(Direct spread packet).
+
+clc;
+clear all;
+
+D=1000*8; //packet size in bits
+R=2*10^6; //transmission rate in bps
+L=3; //msec(Dwell time)
+H=0.625; //msec(Duration of BT packet)
+
+//solution
+Tw=10^3*D/R; //the packet duration of IEEE 802.11 in msec
+H_L=1;
+G=(H_L)*L-Tw-H;
+Gm=abs(G);
+PER_FH=1-((1-Gm/L)*(78/79)^(H_L)+Gm/L*(78/79)^((H_L)-G/Gm));
+PER_DS=1-((1-Gm/L)*(57/79)^(H_L)+Gm/L*(57/79)^((H_L)-G/Gm));
+printf('The PER for FH packet and PER for DS packet are %d percent & %.2f percent respectively',round(PER_FH*100),PER_DS*100);
+disp("The collision probability with 802.11 DS is much higher than with 802.11 FH.")
|