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
|
{
"metadata": {
"name": "",
"signature": "sha256:70c87938501c80a4a95b89850ad3f0f2a57b63c9811bc118f804b4d657133c5f"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 12 Introduction to Networking and local area networks"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.1 Page no 448"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"N = 20\n",
"\n",
"#Calculation\n",
"L = (N*(N-1))/2.0\n",
"\n",
"#Result\n",
"print\"The number of interconnecting wires required are \",L\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The number of interconnecting wires required are 190.0\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.2 Page no 474"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"block = 1500\n",
"ethernet = 10.0*10**6\n",
"token_ring = 16.0*10**6\n",
"\n",
"#Calculation\n",
"t1_bit = 1/ethernet\n",
"t1_byte = 8*t1_bit\n",
"t1_1526 = 1526 *t1_byte\n",
"t2_bit = 1/token_ring\n",
"t2_byte = 8 * t2_bit\n",
"t2_1521 =1521*t2_byte\n",
"\n",
"#Result\n",
"print\"(a) Time required for 1526 bytes is \",t1_1526*10**6,\"ns\"\n",
"print\"(b) Time required for 1521 bytes is \",t2_1521*10**3,\"ms\"\n",
"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) Time required for 1526 bytes is 1220.8 ns\n",
"(b) Time required for 1521 bytes is 0.7605 ms\n"
]
}
],
"prompt_number": 5
}
],
"metadata": {}
}
]
}
|