summaryrefslogtreecommitdiff
path: root/Wireless_Communications_by_T._L._Singal/CHAPTER8.ipynb
blob: 8429c7fb0d02630ac52d4d824eb3f7354fb8edea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
{
 "metadata": {
  "name": "",
  "signature": "sha256:b380d0b5ef5988f7e443e226b65a3140dbdac6a491db60a3303ae9eccfb37838"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "CHAPTER 8 - Multiple Access Techniques"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 8.1 - PG NO.253"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page no. 253\n",
      "import math\n",
      "Y=2.#prpogation path-loss exponent\n",
      "r2=10.**3.\n",
      "r1=10.\n",
      "delPr=20.*math.log10(r2/r1)**2.#log(r2/r1)*20dB/decade\n",
      "print '%s %d %s' %('difference between the recieved signal strength is =',delPr,'dB')\n",
      "imp=delPr+20#impact\n",
      "print '%s %d %s' %('effect of shadow fading causes difference between the recieved signal strength to exceed to',imp,'dB')\n",
      "outrad=40#out of bound radiations\n",
      "print '%s %d %s' %('IMPACT is out-of-bound radiations exceeds the desired signal strength by',imp-outrad,'dB')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "difference between the recieved signal strength is = 80 dB\n",
        "effect of shadow fading causes difference between the recieved signal strength to exceed to 100 dB\n",
        "IMPACT is out-of-bound radiations exceeds the desired signal strength by 60 dB\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 8.3 - PG NO.255"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page no.255\n",
      "Bt=12.5*10.**6.\n",
      "Bg=10.**3.\n",
      "Bc=30.*10.**3.\n",
      "N=(Bt-2.*Bg)/Bc#no. of channels\n",
      "print'%s %d %s' %('no. of channels available in an FDMA system is',N,'channels')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "no. of channels available in an FDMA system is 416 channels\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 8.4 - PG NO.256"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page no. 256\n",
      "TS=5.*10.**6.#total spectrum\n",
      "CBW=25000.#bandwidth (channel)\n",
      "ns=TS/CBW\n",
      "nspd=2.\n",
      "nd=ns/nspd#Number of simultaneous calls\n",
      "print'%s %d %s' %('Number of simultaneous calls=',nd,'calls')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Number of simultaneous calls= 100 calls\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 8.5 - PG NO.259"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page no. 259\n",
      "Bt=25.*10.**6.#allocated spectrum\n",
      "Bc=200.*10.**3.#channel bandwidth\n",
      "Bg=0.#no guard band\n",
      "m=8.#no. of speech channels\n",
      "N=m*(Bt-2.*Bg)/Bc\n",
      "print'%s %d' %('no. of simultaneous subscribers a GSM system can accommodate is =',N )\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "no. of simultaneous subscribers a GSM system can accommodate is = 1000\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 8.7 - PG NO.263"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page no. 263\n",
      "N=156.25#total bits\n",
      "nov=40.25#overhead bits\n",
      "FReff=(1.-nov/N)*100.#frame efficiency\n",
      "print'%s %.1f %s' %('the frame efficiency is',FReff,'%')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "the frame efficiency is 74.2 %\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 8.11 - PG NO.285"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page no. 285\n",
      "import math\n",
      "TDR=1.*10.**6.\n",
      "G=0.5\n",
      "SmaxALOHA=G*math.e**(-2.*G)*TDR# throughput\n",
      "print'%s %d %s' %('max. throughput of ALOHA with large no.of subscibers with transmission rate of 1Mbps is =',round(SmaxALOHA*10**(-3)),'kbps')\n",
      "\n",
      "Stdma=100/100*TDR\n",
      "print'%s %.f %s' %('throughput of a TDMA network with transmission rate of 1Mbps is =',Stdma*10**(-6),'Mbps')\n",
      "\n",
      "Saloha=TDR\n",
      "print'%s %.f %s' %('throughput of ALOHA with 1 subsciber with transmission rate of 1Mbps =',Saloha*10**(-6),'Mbps')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "max. throughput of ALOHA with large no.of subscibers with transmission rate of 1Mbps is = 184 kbps\n",
        "throughput of a TDMA network with transmission rate of 1Mbps is = 1 Mbps\n",
        "throughput of ALOHA with 1 subsciber with transmission rate of 1Mbps = 1 Mbps\n"
       ]
      }
     ],
     "prompt_number": 6
    }
   ],
   "metadata": {}
  }
 ]
}