You are on page 1of 3

Mohammad Karam

Assignment 2 solution
Page 74 problem 7
a. Given transmissions rate of 3 Mbps
Minimum transmissions rate is 150 Kbps
Each node needs static allocation of the bandwidth
! !"#$
!""" !"#$
# Of users supported is
=
= 20
!"# !"#$

!"# !"#

b. 10% of time each user is transmitting


!
With the assumption that packet switching is used; Probability P = = 0.1
!"
c. Given that # of users; U = 120
Using binomial distribution the # of users transmitting simultaneously is X
=

!!!

, = 0,1,2,3, ,

120
0.1 ! 1 0.1 !"#!! , = 0,1,2,3, ,120

d. Probability of 21 or more users transmitting simultaneously


21 = 1 20
=

!"

=1

( = )
!!!

!"

= 1
!!!

120

0.1 ! (1 0.1)!"#!!

= 1 0.9921 = 0.0079
Page 422 R13
Using a binary converter:
223 = 11011111
1 = 00000001
3 = 00000011
27 = 00011011
So, 223.1.3.27 in base two binary is 11011111. 00000001. 00000011. 00011011
Page 426 P 6
Transport layer is an end-to-end layer; from Source Destination. A program on the
source computer will carry on the conversation with similar program on destination computer.
The service, however, is a type of service that is used to deliver messages is determined when the
connection between the two computers is established. So, transport layer is called a connection
oriented service.
On the other hand, the network layer is a connection service because it is a layer where
actual connections are established and packets are transferred from source to destination by use of
routers.

Page 427 P9
a. Forwarding table:
Prefix match
Link interface
11100000.00
0
11100001.01000000
1
11100000.01000001
2
11100001.01111111
2
Otherwise
3
Link interface 0 has a of 10 bits, interface 1 has 16 bit match; interface 2 has 10 bits match.
b. The forwarding table
Address
11001000.10010001.01010001.01010101
11100001.01000000.11000011.00111100
11100001.10000000.00010001.01110111
Page 427 P10
Prefix
00
010
011
10
11

Minimum
00000000 = 0
01000000 =64
01100000 =96
10000000 =128
11000000 =192

Maximum
00111111 = 63
01011111 = 95
01111111 = 127
10111111 =191
11111111 =255

Link interface
3
1
2
Range= Address
2! = 64
2! = 32
2! = 32
2! = 64
2! = 64

Interface
0
1
2
2
3

Page 429 P17


Max size of date field per fragment = 700-20=680 (20 byte header)
!"##!!"
# Required fragments =
= 3.5 4
!""!!"
So if we have 4 fragments, the values of fields in the IP datagram generated related to
fragmentations:
Fragment
Bits
ID
Offset
Flag
1st
700
422
0
1
2nd
700
422
85
1
3rd
700
422
170
1
th
4
360
422
255
0

Page 429 P19


a. The addresses to al interface in the home network:
1. 192.168.1.1
2. 192.168.1.2
3. 192.168.1.3
b. The six corresponding entries in the NAT translation table: Using any address from
192.168.0.0 to 192.168.168.255.255
WAN
LAN
128.119.40.86,5001
192.168.1.1, 3345
128.119.40.86, 5002
192.168.1.1, 3354
128.119.40.86, 5003
192.168.1.2, 3325
128.119.40.86, 5004
192.168.1.2, 3356
128.119.40.86, 5005
192.168.1.3, 3345
128.119.40.86, 5006
192.168.1.3, 3357

You might also like