Академический Документы
Профессиональный Документы
Культура Документы
WORKBOOK
Detailed Explanations of
Introduction
T1 : Solution
(c)
IP belongs to network layer.
T2 : Solution
(a)
Security layer is not a layer in the ISO-OSI model.
T3 : Solution
(c)
All the statements I, II and III are true. Because the service that is provided by the upper and lower layer
matters and it does not matter as to how they are implemented.
T4 : Solution
(d)
Manchester encoding, Differential manchester encoding and Return to zero are self clocking encoding
mechanism.
T5 : Solution
(b)
The technique of merging inputs of many links onto one link is called multiplexing.
www.madeeasypublications.org
Copyright
Workbook
T6 : Solution
(a)
Data link layer : Ensure reliable transport of data over a physical point to point link.
Network layer : Routes data from one network node to the next.
Transpor
ransportt layer : Allow end to end communication between 2 processes.
T7 : Solution
(800)
9600
= 800 characters
(1 + 2 + 1)
Note: Number of stop bits = 2 is missing in the given data.
T8 : Solution
(a)
Protocols are agreements on how communication components and DTEs are to communicate.
T9 : Solution
(b)
Session layer : Provides organised means to exchange data between users.
Transpor
ransportt layer : Provides end to end connectivity.
Application layer : Supports an end user process and perform required file transfer.
MDI (Medium Dependent Interface) : Connects DCE into physical channel.
Copyright
www.madeeasypublications.org
IP Addressing
T1 : Solution
(b)
Packet A: The source IP contain direct broad cast address and we never use direct broadcast address in
source IP. It is always used in destination IP. Hence packet A never exists.
Packet B: If destination IP address contain all 1s then it broadcasts within same network (Limited
Broadcasting).
Packet C: It is a unicast packet within the same network as network ID 24.0.0.0 is same for both source
and destination IP.
T2 : Solution
(d)
I.P
205.18.136.187
Mask
255.255.255.240
205.18.136.176
1 011 0000
4 Subnet bits
It is 11th subnet
For direct broadcast address. All host bits must be ones. 1011 1111
205.18.136.191 is direct broadcast address.
www.madeeasypublications.org
Copyright
Workbook
T3 : Solution
(a)
We use the concept of the longest matching subnet mask.
Perform and operation with the mask and selecte the network Id that matches longest with the given IP. If
the network Id obtained by performing AND operation does not matche with the given network Ids then
default path is choosen.
Hence the following are the paths choosen by given IPs.
128.96.171.92 : Interface 0
128.96.167.151 : R2
128.96.163.121 : R4
128.96.165.121 : R3
T4 : Solution
(d)
The mask 255.255.255.224 gives different Network Id for the 10.105.1.113 and 10.105.1.9, when AND
operations is performed. All the remaining masks gives same Network Id for both IP addresses.
Hence 255.255.255.224 cannot be used.
T5 : Solution
(c)
We have three identification bits for class C IP addresses. Hence effectively we have 21 bits which results
in 221 usable networks.
T6 : Solution
(a)
(i) Half of 4096 host addresses must be given to A we can set 21st bit to 1 (for network part)
So valid allocation for A is : 245.248.136.0/21
(ii) For organisation B, set 21st bit from to 0 and 22nd bit to 0 (for network part)
So valid allocation for B is : 245.248.128.0/22
11110101 , 11111000 , 1000
245
248
1A
00 B
20
Copyright
www.madeeasypublications.org
T7 : Solution
(1)
131.23.151.76
23 : 00010111
31.16.0.0/12
31.28.0.0/14
131.19.0.0/16
131.22.0.0/15
0001 0000
000111 00
00010011
0001011 0
3
5
2
1
:
:
:
:
:
0 126
128 191
192 223
224 239
242 255
www.madeeasypublications.org
Copyright
T1 : Solution
(8)
d = 8000 km.
Band width = 500 106 bps
Propagation delay Pd =
8000 103
= 2 sec
4 106
Transmission delay td =
100
N
=
100
1 + 2a
a =
Pd
2
sec = 100
=
td
1/ 50
100
N
=
100
201
N = 201
Number of packets = 201
8 bits are required for sequence number.
Copyright
www.madeeasypublications.org
T2 : Solution
(12)
1
1 + 2a
1
0.25 =
1 + 2a
p
a = d , td = 8 ms
td
0.25 =
1
1+ 2
pd = 12 ms
pd
8 ms
T3 : Solution
(4)
3-bit sequence number
Initially
....
6 7
....
Senders windows
Window size shrinks
from trailing edge
as frames are sent
Window expands
from leading edge
as ACK are required
After 3-Frames
sent but zero
ACK received
0 1
Senders
window = 5
After 1st
ACK received
3 4
5 6
Senders
windows = 6
(Grown by 1 after 1 ACK is received)
Copyright
Workbook
T4 : Solution
(0.2)
In 1 sec 1000 106 bits
In RTT time 250 sec 1000 106 = 250000 bits.
Number of frames that can be transmitted in RTT =
250000
= 500 frames
500
But in Stop and Wait ARQ we can send only 1 frame in RTT
Utilization =
1
100 = 0.2%
500
T5 : Solution
(31)
In R.T.T time only 4 (window size) frames can be transmitted in sliding window protocol.
SELECTIVE REPEAT
GBN
0
1
2
3
0
1
3
4
2
3
Ack- 4
5
6
7
8
5
6
7
4
5
6
7
NAK 4
9
10
4
8
9
11
NAK 8
12
4
5
9
10
11
12
13
14
15
16
4
5
6
7
NAK 5
5
6
7
8
NAK 7
12 transmission
17
18
19
7
8
9
19 transmissions overall
x = 12, y = 19 x+y = 31
Copyright
www.madeeasypublications.org
10
T6 : Solution
(b)
The given CRC polynomial is 1001 (x3 + 1).
000 with1001.
The given message 11001001 is appended with the remainder obtained by dividing 11001001000
The remainder after the division is 011 which is appended to message before transmission.
011
Hence the transmitted message is 11001001011
011.
T7 : Solution
(c)
The condition that should be satisfied by G(x) to detect odd number of bits of error is : (x+1) should be
factor of G(x).
T8 : Solution
(b)
The delimiter 01111110 is used for framing. Hence whenever five consecutive 1s occur in message we
stuff 0 to differentiate from the delimiter. When the reciever recieve the frame he remove 0s that occur after
5 consecutive 1s (those were stuffed by sender).
Hence the input bit string is 0111110101 is correct.
www.madeeasypublications.org
Copyright
MAC-Sublayer
T1 : Solution
(42.91)
Total data to be transmitted in effect = 1600 1200 3 8 bits
Given bandwidth = 1 Gbps = 230 bps
Transmission time =
1600 1200 3 8
230
= 42.91 ms
T2 : Solution
(528)
Transmission time of A for putting packet on to the ethernet,
1500 8
= 120 s
108
120 +12
120 +12
120 +12
120 +12
B
Switch1
Switch2
Switch3
The time needed for last bit of packet to propagate to the first switch is 12 s. The time needed for first
switch to transmit the packet to second switch is (120 + 12) s and the same happens for remaining
switches, each segment introduces a 120 s Tdelay, 12 s Pdelay.
Thus, total latency = (120 + 12) + (120 + 12) + (120 + 12) + (120 + 12) = 528 s.
Copyright
www.madeeasypublications.org
12
T3 : Solution
(0.3456)
P (of 2 stations)
= 5C2 P(transmitting)2 P(not transmitting)3
= 5C2 (0.4)2 (0.6)3
= 10 0.16 0.216
= 0.3456
T4 : Solution
(1)
Transmission time = 2 Propagation delay
1000
2L
=
6
100 10
2 105 103
L = 1000 m
L = 1 km
T5 : Solution
(4000)
Data rate = 4 Mbps
token holding time = 10 m sec
Frame length = 4 106 10 103
= 40000 bits
T6 : Solution
(500)
100 base 5 cable means length of the cable is 500 m and bandwidth is 100 Mbps.
According to CSMA/CD Transmission delay = 2 Propagation delay (Pd)
Pd =
500m
d
=
= 2.5 sec.
2 108 m / s
v
d
Frame size( x)
= 2
v
Bandwidth
www.madeeasypublications.org
Copyright
Network Layer
T1 : Solution
(d)
Only flooding is a STATIC algorithm and rest all are Dynamic algorithms.
Distance vector, Path vector and Link state are Dynamic Routing Protocols.
T2 : Solution
(d)
Intra Domain Routing Protocols:
(a) RIP: Routing Information Protocol (D.V.R. Algorithm)
(b) OSPF: Open Shortest Path First (Link State Routing Algorithm)
Inter domain protocols:
(a) BGP: Border Gateway Protocol (Path Vector Routing Algorithm)
T3 : Solution
(a)
A
6)
10
13
17)
11)
A B C D E F
0 4 6 5 7 6
Copyright
B C D B B
www.madeeasypublications.org
14
T4 : Solution
(b)
S1 is wrong because. If LSP with less recent data than the data stored in database is received, then new
LSP is updated with database data and is sent back only over the link from which the first LSP was
received.
T5 : Solution
(b)
Circuit switching is not a store and forward technique and path is predefined and router need not apply
any routing algorithm until which packet would have to be stored at router. But packet switching is a
store and forward technique.
Packet switching is faster because it has only 1 phase (data transfer), where as circuit switching is
slower because it is having 3 phases (connection establishment, data transfer and connection release).
T6 : Solution
(945.3)
Transmission delay for 1 packet =
1100
11
=
64000
640
Total time = Transmission delay for 1 packet + 9 (5 + 1) transmission delay for 1 packet.
=
11 54 11
+
= 945.3 m sec
640
640
T7 : Solution
(d)
(d) is false because in source routing the path of the packet is predetermined.
T8 : Solution
(260)
MTU for network B is 80
We break (180 + 20 bytes TCP header) into chunks of 80 bytes i.e. 80, 80 and 40
Now we append 20 bytes IP header to each of the chunk before sending to network C.
Total bytes recieved = (80+20) + (80+20) + (40+20) = 260 bytes.
T9 : Solution
(354.5)
The rate at which the application sends the data is nothing but the effective bandwidth.
i.e. effective bandwidth = bandwidth (the least value of bandwidth along the path will be used to
calculate effective bandwidth) = (180 / 260) 512 kbps = 354.5 kbps.
www.madeeasypublications.org
Copyright
Network Layer-InterNetworking
T1 : Solution
(b)
Persistent timer: It is designed to prevent dead lock. The receiver sends an acknowledgment with a
window size of 0, telling the sender to wait. Later the receiver updates the window, but the packet with
update is lost. Hence both are waiting and are in dead lock.
TIME W
WAIT
AIT:: After this timer goes off the system will check if other side system is still there.
AIT
RTO: If ACK failed to arrive before the timer goes off, then segment is retransmitted.
Keep alive time: It runs for twice the maximum packet life time to make sure all packets are died off when
connection is closed.
T2 : Solution
(1575)
20 sec
20 sec
Link 1
Link 2
10000
= 2 packet
5000
Copyright
www.madeeasypublications.org
16
At t = 1000
1000, last bit of packet 2 is placed on link 1 by A.
At t = 1020
1020, last bit of packet 2 reaches switch.
Note: pkt 2 need to wait upto 1055 sec before switch transfers it.
Last bit of packet1 will be placed on link 2 by switch at 1055 sec.
Hence No additional delay for packet 2.
At t = 1055 packet two first bit is placed on link 2.
At t = 1575 last bit of packet 2 reaches B.
1575 sec is required.
T3 : Solution
(b)
Bridge doesnt understand IP address. It usually recognizes and consideres the MAC address which is
usually an ethernet address.
T4 : Solution
(9)
Let S denotes the source station and D denotes the destination station. x and y are two intermediate nodes
between S and D.
www.madeeasypublications.org
Copyright
Transport Layer
T1 : Solution
(c)
Maximum windows size is the amount of data that can be transmitted in an RTT.
RTT =
65535 8
= 500 ms
1048560 bps
1
= W + W
W
= W+1
T3 : Solution
(12)
Window size [WS = 1] initially
Copyright
www.madeeasypublications.org
18
Now,
2x 1 = 3999
2x = 4000
x = log2 (4000)
x = 12 RTT's
T4 : Solution
(240)
In full duplex the communication can take place in both directions.
Total data that can be transmitted is 30 512 kb and number of packet is (30 512) / 64 = 240
T5 : Solution
(29.25)
Smoothed Round trip time proposed by Jacobsons is given as
ERTT = IRTT + (1 ) NRTT
Where
2nd
www.madeeasypublications.org
Copyright
Workbook
19
T8 : Solution
(7)
Threshold = 8 MSS
Window size for
1st transmission = 2 MSS
Window size for
2nd transmission = 4 MSS
Windows size for
3rd transmission = 8 MSS
Slow start
10
= 5MSS
2
Copyright
www.madeeasypublications.org
Network Security
T1 : Solution
(10)
If there are n users the number of keys required is
n(n 1)
2
54
= 10 symmetric keys are required.
2
T2 : Solution
(d)
DES is a block cipher (operates on a fixed block of bits). It encrypts a 64-bit of plain text using a 64-bit key.
But only 56 bits used as last bit of every byte is a parity bit. DES uses 112 or 168 bits.
T3 : Solution
(14)
Given N = 23, G = 7
R1 = Gx mod N
= 73 mod 23 = 21
K = (R1)y mod N
R2 = Gy mod N
= 75 mod 23 = 17
K = (R2)x mod N
= (21)5 mod 23
= (17)3 mod 23
= 4084101 mod 23
= 4913 mod 23
= 14
= 14
K = 14
Copyright
Workbook
21
T4 : Solution
(119)
Given p = 5, q = 17, d = 13
n
z
Here
d
Now,
(e d) mod 64
=
=
=
=
=
85
(5 1) (17 1) = 64
13 is relatively prime to z
1
5
P
I
I
T
P mod n
Cipher Character
9 mod 85
5
9 mod 85
5
20 mod 85
59
59
1
Copyright
www.madeeasypublications.org