summaryrefslogtreecommitdiff
path: root/Satellite_Communications/Chapter_14.ipynb
blob: 1688a7bb7e11b3719235a38ec21e59f9a55e5dd4 (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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
{
 "metadata": {
  "name": "",
  "signature": "sha256:d9b4ccf4f2a187fd084eba547fc42fa3dd2f9e48328d5cbf1ac129f9eacc40d0"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 14: Satellite Access"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 14.1, Page 381"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#Variable Declaration\n",
      "\n",
      "Btr=36  #Transponder Bandwidth(MHz)\n",
      "B=3    #Carrier Bandwidth(MHz)\n",
      "EIRP=27  #saturated EIRP(dBW)\n",
      "BO=6   #Back off loss(dB)\n",
      "LOSSES=196  #Combined losses(dB)\n",
      "GTR=30   #Earth station G/T ratio(dB)\n",
      "k=228.6  #Value of k(dB)\n",
      "#Calculation\n",
      "\n",
      "Btr1=10*math.log10(Btr*10**6)  #Converting transponder Bandwidth into decibels\n",
      "B1=10*math.log10(B*10**6)  #Converting carrier Bandwidth into decibels\n",
      "\n",
      "CNR=EIRP+GTR-LOSSES+k-Btr1 #Carrier to noise ratio for single carrier operation(dB)\n",
      "CNR=round(CNR)\n",
      "alpha=-BO\n",
      "K=alpha+Btr1-B1  #Fraction of Bandwidth actually occupied(dB)\n",
      "K=10**(K/10)  #Converting decibels to ratio\n",
      "K=round(K)\n",
      "\n",
      "#Results\n",
      "\n",
      "print \"The downlink carrier to noise ratio is\",CNR,\"dB\"\n",
      "print \"Fraction of Bandwidth actually occupied is\",K\n",
      "print \"No. of carriers that would be accommodated without backoff is\",Btr/B\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The downlink carrier to noise ratio is 14.0 dB\n",
        "Fraction of Bandwidth actually occupied is 3.0\n",
        "No. of carriers that would be accommodated without backoff is 12\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 14.2, Page 396"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Variable decalration\n",
      "\n",
      "N=40     #No.of bits\n",
      "E=5      #Maximum number of errors allowed\n",
      "p=10**-3 #Average probability of error in transmission\n",
      "\n",
      "#Calculation\n",
      "\n",
      "Pmiss=0\n",
      "for i in range(E+1,N):\n",
      "  Pmiss=Pmiss+(math.factorial(N)/float((math.factorial(i)*math.factorial(N-i))))*(p**i)*((1-p)**(N-i))\n",
      "\n",
      "Pmiss=Pmiss*10**12\n",
      "Pmiss=round(Pmiss,1)\n",
      "\n",
      "#Result\n",
      "\n",
      "print \"The probability of miss is\",Pmiss,\"*10^-12\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The probability of miss is 3.7 *10^-12\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 14.3, Page 397"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Variable decalration\n",
      "\n",
      "N=40     #No.of bits\n",
      "E=5      #Maximum number of errors allowed\n",
      "\n",
      "#Calculation\n",
      "\n",
      "Pfalse=0\n",
      "for i in range(0,E+1):\n",
      "  Pfalse=Pfalse+(math.factorial(N)*2**-N)/float((math.factorial(i)*math.factorial(N-i)))\n",
      "\n",
      "\n",
      "\n",
      "Pfalse=Pfalse*10**7\n",
      "Pfalse=round(Pfalse,1)\n",
      "\n",
      "#Result\n",
      "\n",
      "print \"The probability of miss is\",Pfalse,\"*10^-7\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The probability of miss is 6.9 *10^-7\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 14.4, Page 399"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Variable ecalration\n",
      "Lf=120832     #Total frame length\n",
      "Tb=14         #Traffic burts per frame\n",
      "Rb=2          #Reference bursts per frame\n",
      "T=103         #Guard interval(symbols)\n",
      "P=280         #Preamble Symbols\n",
      "R=P+8         #Reference channel symbols with addition of CDC\n",
      "#Calculation\n",
      "\n",
      "OH=2*(T+R)+Tb*(T+P)   #Overhead Symbols\n",
      "\n",
      "nF=1-(OH/float(Lf))   #Frame Efficiency\n",
      "nF=round(nF,3)\n",
      "\n",
      "#Result\n",
      "\n",
      "print \"Hence the frame efficiency of INTELSAT frame is\",nF"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Hence the frame efficiency of INTELSAT frame is 0.949\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 14.5, Page 400"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Variable Declaration\n",
      "\n",
      "Lf=120832   #Number of symbols per frame\n",
      "Tf=2        #Frame period(ms)\n",
      "nF=0.949    #INTELSAT fram efficiency from Example 14.4\n",
      "#Calculation\n",
      "\n",
      "Rs=(Lf/float(Tf))*10**-3  #Symbol rate(megasymbol/s)\n",
      "Rt=Rs*2     #Transmission Rate\n",
      "n=nF*Rt*10**3/64   #Voice channel capacity\n",
      "n=round(n)\n",
      "#Result\n",
      "\n",
      "print \" The voice channel capacity for the INTELSAT frame is\",n,\"Channels\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " The voice channel capacity for the INTELSAT frame is 1792.0 Channels\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 14.6, Page 408"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Variable Declaration\n",
      "\n",
      "CNR=87.3   #Downlink Carrier to noise ratio(dBHz)\n",
      "BER=10**-5  #Bit Error Rate Required\n",
      "R=0.2   #Roll off factor\n",
      "EbN0R=9.5   #Eb/N0 ratio(dB)\n",
      "\n",
      "#Calculation\n",
      "Rb=CNR-EbN0R  #Maximum Transmission Rate(dBb/s)\n",
      "Rb1=10**(Rb/10) #Maximum Transmission Rate(b/s)\n",
      "BIF=Rb1*1.2*10**-6/2  #IF Bandwith required\n",
      "BIF=round(BIF,2)\n",
      "#Result\n",
      "\n",
      "print \"The Maximum Transmission rate is\",Rb,\"dBb/s\"\n",
      "print \"The IF bandwidth required is\",BIF,\"MHz\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The Maximum Transmission rate is 77.8 dBb/s\n",
        "The IF bandwidth required is 36.15 MHz\n"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 14.7, Page 410"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Variable Declaration\n",
      "\n",
      "T1=1.544  #Bit rate from sec.10.4(Mb/s)\n",
      "R=62     #Bit rate from sec.10.4(dBMb/s)\n",
      "EbN0R=12 #Required Eb/N0 ratio for uplink(dB)\n",
      "LOSSES=212 #Transmission losses of uplink(dB)\n",
      "GTR=10   #G/T ratio for earth station(dB/K)\n",
      "G1=46   #Uplink antenna gain(dB)\n",
      "Rd=74   #Downlink Transmission Rate(dBb/s)\n",
      "#Calculation\n",
      "CNR=EbN0R+R  #Carrier to noise ratio for uplink(dB)\n",
      "EIRP=CNR-GTR+LOSSES-228.6 #EIRP of earth station antenna\n",
      "P=EIRP-G1   #Transmitted Power Required(dBW)\n",
      "P=10**(P/float(10))   #Transmitted Power Required(Watts)\n",
      "P=round(P,2)\n",
      "\n",
      "Ri=Rd-R   #Rate increase with TDMA operation(dB)\n",
      "P1=1.4+Ri  #Uplink power increase required for TDMA operation(Watts)\n",
      "P2=10**(P1/float(10))\n",
      "P2=round(P2,1)\n",
      "#Results\n",
      "\n",
      "print \"Earth station transmission power required for transmission of T1 baseband signal is\",P,\"Watts\"\n",
      "\n",
      "print \"Uplink power increase required for TDMA operation is\",P1,\"dBWatts or\",P2,\"Watts\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Earth station transmission power required for transmission of T1 baseband signal is 1.38 Watts\n",
        "Uplink power increase required for TDMA operation is 13.4 dBWatts or 21.9 Watts\n"
       ]
      }
     ],
     "prompt_number": 7
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 14.8, Page 429"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#Variable Declaration\n",
      "\n",
      "BIF=36   #Bandwidth of channel over which carriers are spread(MHz)\n",
      "R=0.4  #Rolloff factor for filtering\n",
      "Rb=64   #Information bit rate(kb/s)\n",
      "BER=10**-5  #Bit error rate required\n",
      "EbN0R=9.6 #Eb/N0 ratio for BER given from Fig.10.18\n",
      "\n",
      "#Calculation\n",
      "\n",
      "Rch=BIF*10**6/(1+R) #Rate of unspreaded signal(chips/s)\n",
      "Gp=Rch/(Rb*10**3)     #Processing gain\n",
      "Gp1=round(10*math.log10(Gp))  #Processing gain(dB)\n",
      "EbN0R1=10**(EbN0R/float(10))  #Converting Eb/N0 into ratio\n",
      "K=1+(1.4*Gp/EbN0R1)  #Number of channels\n",
      "K=math.floor(K)\n",
      "\n",
      "#Result\n",
      "print \"The Processing Gain is\",Gp1,\"dB\"\n",
      "print \"An estimate of maximum number of channels that can access the system is\",K\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The Processing Gain is 26.0 dB\n",
        "An estimate of maximum number of channels that can access the system is 62.0\n"
       ]
      }
     ],
     "prompt_number": 8
    }
   ],
   "metadata": {}
  }
 ]
}