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
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 23 : Paging and Wireless Data Networking"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 1 : pg 863"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The no of pages transmitted in one min are 887.0\n"
]
}
],
"source": [
" \n",
"# page no 863\n",
"# prob no 23.1\n",
"#calculate the no of pages transmitted\n",
"#given\n",
"bit_rate = 512.;#ib bps\n",
"t=60.;#in sec\n",
"# preamble uses 576 bits\n",
"preamble=576.;\n",
"#calculations\n",
"bits_total = bit_rate * t;\n",
"usable_bits = bits_total - preamble;\n",
"# each batch has one 32-bits synchronizing codeword and sixteen 32-bit address codewords for a total of 17*32=544bits. Therefore\n",
"bits_per_batch= 17.*32;\n",
"batches_per_min = usable_bits / bits_per_batch;\n",
"addr=16;\n",
"addr_per_min = batches_per_min*addr;\n",
"#results\n",
"print 'The no of pages transmitted in one min are',round(addr_per_min)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 2 : pg 864"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The efficiency is 0.256 b/s/Hz\n"
]
}
],
"source": [
" \n",
"# page no 864\n",
"# prob no 23.2\n",
"#given\n",
"#calculate the efficiency\n",
"# For the given FLEX system \n",
"Wc=25*10**3;\n",
"bit_rate = 6400.;#in bps\n",
"#calculations\n",
"efficiency = bit_rate/Wc;\n",
"#results\n",
"print 'The efficiency is',efficiency,'b/s/Hz'"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 3 : pg 871"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The minimum hopping rate is 320.0 Hz\n",
"The maximum hopping rate is 1600.0 Hz\n"
]
}
],
"source": [
" \n",
"# page no 871\n",
"# prob no 23.3\n",
"#calculate the min and max hopping rate\n",
"#given\n",
"# for the Bluetooth system\n",
"fh_max=1/(625*10**-6);\n",
"fh_min=1/(5*625*10**-6);\n",
"#results\n",
"print 'The minimum hopping rate is',fh_min,'Hz'\n",
"print 'The maximum hopping rate is ',fh_max,'Hz'"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.11"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|