Chapter 12 Introduction to Networking and local area networks

Example 12.1 Page no 448

In [1]:
#Given
N = 20

#Calculation
L = (N*(N-1))/2.0

#Result
print"The number of interconnecting wires required are ",L
The number of interconnecting wires required are  190.0

Example 12.2 Page no 474

In [5]:
#Given
block = 1500
ethernet = 10.0*10**6
token_ring = 16.0*10**6

#Calculation
t1_bit = 1/ethernet
t1_byte = 8*t1_bit
t1_1526 = 1526 *t1_byte
t2_bit = 1/token_ring
t2_byte = 8 * t2_bit
t2_1521 =1521*t2_byte

#Result
print"(a) Time required for 1526 bytes is ",t1_1526*10**6,"ns"
print"(b) Time required for 1521 bytes is ",t2_1521*10**3,"ms"
(a) Time required for 1526 bytes is  1220.8 ns
(b) Time required for 1521 bytes is  0.7605 ms