Professional Documents
Culture Documents
Communication Networks: Technical
Communication Networks: Technical
Communication Networks: Technical
Communication Networks
Vilas S. Bagad
M.E. (E&TC), Microwaves
M.M.S.(Information systems)
Faculty, Institute of Telecommunication Management
Ex-Faculty, Sinhgad College of Engineering,
Pune.
Iresh A. Dhotre
M.E. (Information Technology)
Ex-Faculty, Sinhgad College of Engineering,
Pune.
® ®
TECHNICAL
PUBLICATIONS
SINCE 1993 An Up-Thrust for Knowledge
(i)
Communication Networks
Subject Code : EC8551
Published by :
® ®
Amit Residency, Office No.1, 412, Shaniwar Peth,
TECHNICAL Pune - 411030, M.S. INDIA, Ph.: +91-020-24495496/97
PUBLICATIONS
SINCE 1993 An Up-Thrust for Knowledge Email : sales@technicalpublications.org Website : www.technicalpublications.org
Printer :
Yogiraj Printers & Binders
Sr.No. 10/1A,
Ghule Industrial Estate, Nanded Village Road,
Tal. - Haveli, Dist. - Pune - 411041.
ISBN 978-93-332-0232-9
9 789333 202329 AU 17
Medium of transmission
Sender Receiver
CPU
Monitor
Direction of data
Data flow (t1)
Data flow
Work station - 2
Common link
Server
Bus
Node Node
Node
Server Node
Switch
Node
Server
Node Node
Node Node
Node
Server
Bus
Node Node
Node Node
Node
Hosts
LAN 3 Router
Subnet
LAN 1
LAN 2
LAN 4
Tinterface
ISP
ISP
Regional Regional
ISP
ISP ISP
ISP
Router
National
ISP
Access point
Country 1
Country 2
National
ISP
Regional Regional
ISP ISP
ISP
ISP ISP
ISP
HOST A HOST B
Layer 5 protocol
Layer 5 Layer 5
Physical medium
Layer N + 1
IDU
ICI
PCI SDU
PDU ICI
Layer N
IDU
Layer N – 1
SDU
ICI
Etc.
Transmitting Receiving
Header 1 Data Header 1 Data
Transmission medium
Connectionless Idle - No connection Connection-oriented Idle - No connection
Connection release
Idle - No connection
End host End host
Protocol
APDU 7 Application Application
Protocol
PPDU 6 Presentation Presentation
Protocol
SPDU 5 Session Session
Protocol
TPDU 4 Transport Transport
Internal protocol
From data link layer To data link layer
Node - 1 Node - 2
Physical
Physical Bit stream Bit stream Physical
layer medium layer
From network layer To network layer
Frame Frame
Data link Header 2 Data Trailer Header 2 Data Trailer Data link
layer layer
Node 1 Node 2
Packet Packet
Header 3 Data Network Header 3 Data
layer
Node-1 Node-2
From application layer To application layer
Segments Segments
Data Data
DLL DLL
Data L7 Data L7
Presentation
layer
Data L6 Data L6
t
Time
t
Value
Time
t
( )
Digital Free
D/A A/D
converter space converter
source input
Analog
propagation Analog
radio radio Digital
output
Analog Analog
Digital
Digital Digital Digital
terminal terminal output
intput
Interface Interface
T
Non-periodic signal
t
0
t
Data from upper layer
Extra 2
bytes
Unstuffed
Data to upper
Flag ESC
layer
Data 0 1 1 0 - 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0
Stuffed bits
10 6
10 9
7-bit data
D7 D6 D5 D4 D3 D2 D1 D0
Parity bit
Encoder Decoder
User User
Data Data
Correct or discard
0 0 1 1
+ 0 + 1 + 0 + 1
__ __ __ __
0 1 1 0
Subtraction
0 0 1 1
– 0 – 1 – 0 – 1
__ __ __ __
0 0 1 0
(a) Datawords
(b) Codewords
User data Original data
Encoder Decoder
Dataword K bits Dataword K bits
Extract
Codeword Codeword
generator checker Discard
n bits
Codeword Codeword n bits
Encoder Decoder
Dataword K bits Dataword K bits
Correct
Codeword Codeword
generator checker
n bits
Codeword Codeword n bits
Sender Receiver
Physical medium
2H M H 1
m 1 m 2 m 3 m 4 m5 m 6 m7 m 8
2n
P1 P2 P 3 P4
m 1 m 2 m 3 m 4 m5 m 6 m7 m 8
P1 P2 m1 P3 m2 m3 m4 P4 m5 m6 m7 m8
b4 b 3 b2 b1
bi 0 Pi
bi 1
P1
P2
P3
P4
XN XN 1 ... X 2 X 1 X 0
X7 X4 X 3 X0 X0 1
Xn k n k
Xn k [G (X)]
Xn k [G (X)] C (X)
B x R x
Q x
G x G x
1 0 0 1 0 1 0 Quotient
1 1 0 0 1) 1 1 0 1 0 1 1 0 0 0 0 Dividend
Divisor 1 1 0 0 1
0 0 1 1 1
0 0 0 0 0
0 1 1 1 1
0 0 0 0 0
1 1 1 1 0
1 1 0 0 1
0 1 1 1 0
0 0 0 0 0
1 1 1 0 0
1 1 0 0 1
0 1 0 1 0
0 0 0 0 0
1 0 1 0 Remainder
b n– 1 x n– 1 b n– 2 x n– 2 b n– 3 x n– 3 ... b 2 x2 b 1x b0
x 10 x7 x5 x3 x2 x1
x 10 x9 x7 x5 x4
6 3
x +x +x
4
x +x +1
3
)x 10 9
+x +
7
x
5
+x +x
4
10 9 6
x +x +x
7 6 5 4
x +x +x +x
7 6 3
x +x +x
5 4 3
x +x +x
5 4
x +x +x
3
+x +x
Received codeword c(x) e(x)
g(x) g(x) g(x)
x8 x2 x 1
x10 x9 x5 x4 x2 1
x16 x12 x5 1
g ( x) x4 x2 1
T(X)/G(X)
T (X)
(x 9 x8 x6 x4 x 2 1)
G (X) x4 x2 1
G (X) x4 x2 1 4
T (X)
1 0 0 0 01
11 0 01 11 0 011 0 0 0 0
11 0 01
11 0 01
0 0 0 0 01 0 0 0 0
11 0 01
01 0 01 Remainder
11 01 0 011
1 0 01 11 0 01 0 010 0 0
11 0 0
1 0 01
1 011
1 0 01
1000
1 0 01
11 0 0
1 0 01
1 01 0
1 0 01
011 Remainder
Message transmit 11 0 01 0 01 0 0 0
0 11
11 0 01 0 01 0 11 Codeword
Sender Receiver
Deliver
Network Get data
data
Data
link
A B
Request
Frame 1
Arrival
Request
Frame 2
Arrival
Request
Frame 3
Arrival
Time Time
t out
Sender Receiver
Deliver
Network Get data data Network
Data Data
link link
ACK
frame
Sender Receiver
A B
Request
Frame
Arrival
Arrival ACK
Request
Frame
Arrival
Arrival ACK
Time Time
Frames already Window of frames that may
transmitted be transmitted
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6
Last frame
acknowledged
Window shrinks as Window expands as
frames are received acknowledgements are
sent
Sn Next frame Rn Next frame
to send to receive
0 1 0 1 0 0 1 0 1 0
Sender Receiver
Data frame
Deliver
Network Get data data Network
seqNo ackNo
Data link Data link
Frame 0
ACK 1
Frame 1
ACK 0
Time Time
Sender Receiver
Frame 0
ACK 1
Frame 1
Lost
frame Lost frame
Frame 1
Retransmitted ACK 0
frame
Time Time
Sender Receiver
Frame 0
ACK 1
Frame 1
ACK 0
Lost ACK Lost ACK
Frame 1
Retransmitted ACK 0
frame
Time Time
Sender Receiver
Frame 0
ACK 1 Delayed ACK 1
Frame 0 Discared frame
Frame
1
ACK 0
Discard ACK
Frame 1
ACK 0
Time Time
2k 1
23 1
Window
Before
sliding 6 7 0 1 2 3 4 5 6 7 0 1
Window
After
sliding 6 7 0 1 2 3 4 5 6 7 0 1
one frame
Window size = 7
6 7 0 1 2 3 4 5 6 7 0
6 7 0 1 2 3 4 5 6 7 0
SF
SL
SL SF 1
7 0 1 8
S F , S, S L
Sender Receiver
SF SL Frame 0
0 1 2 3 0 1 2 3
ACK 1 0 1 2 3 0 1 2 3
S
R
Frame 1
0 1 2 3 0 1 2 3
ACK 0 0 1 2 3 0 1 2 3
S
R
0 1 2 3 0 1 2 3
Frame 2 0 1 2 3 0 1 2 3
S
R
Time Time
Sender Receiver
0 1 2 3 0 1 2 Frame 2 lost
0 1 2 3 0 1 2
S R
0 1 2 3 0 1 2 3 0 Frame 3
0 1 2 3 0 1 2 3
S R
Frame 2 retransmitted Frame 3 will be discarded
0 1 2 3 0 1 2 3 since frame 2 is not recieved
S 0 1 2 3 0 1 2 3
2
ACK R
Frame 3 retransmitted
0 1 2 3 0 1 2
0 1 2 3 0 1 2 3
S
R
Time Time
2k
RF RL
0 1 2 3 0 1 2 3 0 1 2 3 0 1 2
S, SF SL RF RL
Sender Receiver
0 1 2 3 0 1 2
Frame 0
S
0 1 2 3 0 1 2
ACK 0
0 1 2 3 0 1 2 3 Frame 1
S
ACK 1 0 1 2 3 0 1 2
0 1 2 3 0 1 2 Frame 2 lost
S
Frame 0 1 2 3 0 1 2 3
0 1 2 3 0 1 2 3 3
S NAK- 2 0 1 2 3 0 1
0 1 2 3 0 1 2 3 Frame 3
retransm
S itted
0 1 2 3 0 1 2
Time Time
2k
2k
2k
1
1 2a
t prop
t frame
1000
10 6
1 1
1 2a 1 2 270
W
2a 1
W 7
2a 1 541
W
2a 1
W 127
2a 1 541
W
2a 1
W W
2a 1 2a 1
1
4000
Frame size
Bit rate
1
(2a 1)
1 0.5 1 a 0. 5
t prop t frame t prop t frame t frame 2t prop
t frame bit_ duration
2t prop / bit_ duration 2 20 ms / 0.25 ms 160
Primary Secondary
station station
Commands
Responses
Primary
station
Commands
Responses Responses
Secondary Secondary
station station
Command
Response
Command
Response Response
Combined
Combined
Command/Response
Command/Response
Flag Address Control User Flag
FCS
information
(a) I-frame
(b) S-frame
(c) U-frame
0 P/F
N(S) N(R)
1 0 P/F
Code N(R)
1 1 P/F
Code Code
2 108
User-4
User-3
User-5
Shared
multiple access
medium
User-2
User-6
User-1
Multidrop cable
Time
Node 2
hp
Time
Node 3
hp
Time
Node 4
Frame 4.1 Frame 4.2
hp
Frame 4.3
Time
Collision Collision
duration duration
Start
Initialise counter
(K = 0)
Select random
number in between
Wait time = 2 TP K
0 and 2 – 1
No
Ack No Check
K=K+1 K > Kmax
received
Yes Yes
Packet B Packet C
tp tp
Packet A
Time
to to + tp to + 2tp to + 3tp
Start of End of
packet A packet B
transmission transmission
Vulnerable period
of pure ALOHA
(t o t p) (t o 2t p )
G e –2 G
pk
Gk e G
pk
k!
G po
po
po e 2G
G e 2G
G 0.5
1
0.184
2e
Transmission time
Successfully sent
packets
Station 1 t
Random retransmission delay
Station 2 t
Station 3 t
Station 4 t
G e G
G 1
1
0.368
e
2 * 0.75
0.75 * e
e G
e G
G
e
G 2.3
G 1
G 1
A B C D
hp hp hp hp
B senses C senses
here here D senses
here
t1
Vulnerable time
=
Propagation time
Frame propagation
Time Time
Sense
Sense Sense and transmit
Wait Wait
Time
Busy
(a)
Wait
randomly
Check Busy
channel
Idle
(b)
Sense
Station and transmit data Physical medium
Continuously sense
Time
Busy
(a)
Check
channel
condition Busy
Idle
Check
channel
condition Busy
Idle
Idle
Check >p
Wait a Probability
channel
slot outcome?
condition
Busy <p
May collision occurred Station can send data
(b)
p
q 1 p
p q
i) t0
A B C D
ii) t1
A B C D
iii) t2
A B C D
iv) t3
A B C D
v) t4
A B C D
vi) t5
A B C D
Persistence
strategy
Back off No
limit
Yes
Abort
Found Size:
idle binary exponential
Continuously sense
IFS
Set backoff
to zero
Persistence
strategy
Wait DIFS
Send RTS
Set a timer
Wait backoff
time No CTS received
before timeout?
Yes
Wait SIFS
Set a timer
No
A B C D
Radio range
A B C D
Destination Source Length
Preamble SFD Data and padding CRC
address address or type
Physical layer
header
A Packet almost at B at T – B
A B
Collision at time T
A B
Noise burst gets back
to A at 2T
936 10 3
1 1 0 0 0 1 0 1
Binary 1
+V
Binary 0
–V
1 0 1 0 1 1 1 0 0
23 1
i th 2e 1
P
P 2 /A
1
1 2 B Le / cF
hp hp hp hp hp hp hp hp hp
hp hp hp hp hp hp hp hp hp
hp hp hp hp hp hp hp hp hp hp
hp hp hp hp hp
Domain Domain
hp hp
hp hp hp
Bridge
Switch
Domain
hp
Domain
hp
hp
hp
hp
Domain Domain
Domain
Switch
Transmit Transmit
hp
hp
Receive Receive
Tr
it
an
sm
sm
R
an
ve
ec
it
Tr
ei
ei
ec
ve
R
hp
hp
hp hp
(a) Point-to-point
Switch / Hub
hp hp hp hp
(b) Star
Fast Ethernet (100 Mbps)
100BASE - X 100BASE - T4
100BASE - TX 100BASE - FX
hp hp
Switch
hp hp hp hp
Switch Switch
hp hp hp hp hp hp
AP AP
Laptop Laptop
PC
hp
PC
hp
Laptop
BSS BSS hp
PC
hp
ESS
hp
PC
PC
Station Station Station
Station
hp hp hp hp
Station Station
hp hp hp hp
AP
Station Station Station Station
hp hp hp hp
Server
hp
AP AP
hp hp
hp hp
hp
BSS BSS
IEEE 802.11
(LLC sublayer)
Contention-free
service
Data Contention
link layer service
Point co-ordination function
(MAC sublayer)
DIFS
Requ
es
send t to
SIFS
r to
Clea
send NAV
(No carrier
SIFS sensing)
Data Time
SIFS
ACK
Time Time
2 bytes 2 bytes 6 bytes 6 bytes 6 bytes 2 bytes 6 bytes 0 to 2312 bytes 4 bytes
Frame control
2 bits 2 bits 4 bits 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit
Bytes 2 2 6 6 4
Frame
D Address 1 Address 2 FCS
control
(a) RTS
2 bytes 2 bytes 6 bytes 4 bytes
Frame
D Address 1 FCS
control
hp hp
BSS-ID
B A
Addr Addr Addr Addr
1 2 3 4
B A
Distribution system
AP
A r
Add
hp
AP
hp
ddr 4
B
d d r A 3
r A 2
Add
1
B A
BSS BSS
Distribution system
AP
AP
A
Add
r A B
hp
1 ddr hp
2 A ddr
3 Add
r
4
B A
BSS BSS
B A
BSS BSS
FHSS
Pseudo random
sequence
Frequency
synthesizer
Barker sequence
BPSK / QPSK
Analog signal
(11 MHz)
Digital data
(2 Mbps)
Encoder
4 to 16
Modulator
PPM
Analog signal
(11 MHz)
Master Slave - 1 Master Slave - 3
Slave Slave - 2
(a) Single-slave piconet (b) Multi-slave piconet
Master Master
Slave Slave
Applications
Profiles
Control
Audio
a
t
a
L2CAP Layer
Baseband layer
Radio layer
625 μs
366 μs
Hop Hop
Master
Time
Hop Hop
Slave
f0 f1 f2 f3 Time
Master Hop Hop
Time
Hop
Slave 1
Time
Slave 2
Hop
Time
f0 f1 f2 f3
0 - 2744
Bits : 72 54
3 4 1 1 1 8
Higher layers and Higher layers and
applications applications
Data Data
Audio Control Audio Control
L2CAP L2CAP
Link manager
Radio Radio
A wants to send to B but B wants to send to C but
cannot hear that mistakenly thinks the
B is busy transmission will fall
Range of Range of
C’s radio A’s radio
A B C A B C
C is transmitting A is transmitting
Application
Network Presentation
Data Link
Application Session
Physical
Presentation Network Transport
Network Data Link
Session Network
Data Link Physical
Transport Data Link
Physical
Network Physical
Data Link Network
Physical Data Link
Physical
Station (Host)
t0 t1
Network
Messages Messages
Network Network
service service
End Data link Data link Data link Data link End
system layer layer layer layer system
Physical Physical Physical Physical
layer layer layer layer
Packet 1
Station 2
hp Packet 1 destination
hp
Packet 2
Station 1
source
Packet 2
Packet 2
Station 2
Station 1
(Destination)
(Source) c ket
Pa
hp
hp
Input ports
Routing Switching
fabric Output
engine
ports
(Processor)
Scheduler
Input
Output
port
port
2 2
Switching office
Message 2 Store Message 2 Store Message 1
and and
forward forward
Message 2
1
ssage
Me
Pkt 1
Pkt 2 Pkt 1
Pkt 3 Pkt 2 Pkt 1
Pkt 3 Pkt 2
User data Pkt 3
Pkt 1
Pkt 2 Pkt 1
Pkt 3 Pkt 2 Pkt 1
Acknowledgement
Pkt 3 Pkt 2
Link Link Link Pkt 3
1 2 3 4
Nodes :
packet
1 2 3 4
Acknowledgement
signal 1 2 3 4
Class A Class B Class C
network network network
Leading bit
Leading bit is always Leading bit
is always 0 1&0 is always 1, 1, 0
Router
Router only has to
read the first bit to
know which of it's 3
Packet routes to forward it on.
From To
Class A 0.0.0.0 127.255.255.255
Netid Hostid Netid Hostid
1 0
Class B Net ID Host ID
1 1 0
Class C Net ID Host ID
1 1 1 0
Class D Multicast address
1 1 1 1
Class E Reserved for future use
Application
SMTP FTP TFTP DNS BOOTP layer
Transport
SCTP TCP UDP layer
IGMP ICMP
Network
IPv4 layer
ARP RARP
Data link
layer
Underlying LAN OR
WAN technology
Physical
layer
IP datagram
DATA
(1500 bytes)
LEN = 3499
OFFSET = 0 LEN = 1500
DF = 0, MF = 0 OFFSET = 1500
DF = 0, MF = 1
MTU = 1500
DATA DATA
(3500 bytes) (1500 bytes)
LEN = 499
OFFSET = 3000
DF = 0, MF = 0
DATA
(499 bytes)
The Internet
R Router
H1 128.10.1.1
Network 128.10.2.0
H4
H2 128.10.1.2
128.10.2.2
Network 128.10.1.0
1111 1111. 1111 1111 1111 1111. 0000 0000
Network address positions Subnet positions Host positions
2x
23
2y
25 2
2x 23
2y 2 25 2
R1
R2
LAN Packet
1 before
translation
2
10.0.0.1 198.60.42.12
3
4 ISP
Router Router
Leased line
5 NAT
box
6 PC
7 Server
Boundary of
company premises
2x
1111 2
61 10 111101 2
Application layer
Transport layer
Internet layer
Host to network
Application layer
Telnet FTP SMTP DNS
IP Internet layer
IP IP
header data
Frame
Frame data Trailer
header
0 8 16 31
10.1.1.1
3
R1 R2
172.16.1.100 E0 E0 172.16.1.200
1 2 4
hp
Host H 172.16.1.1/24
Default GW = 172.16.1.100
8 : Echo request
0 : Echo reply
Optional data
Sent by the request message : Repeated by the reply message
13 : Request
14 : Reply
Original timestamp
Receive timestamp
Transmit timestamp
17 : Request
18 : Reply
Address mask
Type : 9 Code : 0 Checksum
Router address 1
Address preference 1
Router address 2
Address preference 2
Mobile node
visiting foreign Mobile node
network at home
Internet
Foreign Home
network Foreign Home network
agent agent
Foreign
network Foreign
agent
Home agent Foreign agent Mobile host
hp
Registration request
(relay) Registration request
Registration reply
Registration reply (relay)
Mobile Remote
host host
Home Home
Internet
agent agent
Mobile
host
PR SFD DA SA L DATA PAD FCS
s
2 108m / s
s
2000 m
t3 t1 s
2 10 8 m / s
t3 10 s t 1 10 s
2000
t4 t2 10 s
2 10 8 m / s
t4 10 s+ t 2 13 s
0 8 16 31
Type Code Checksum
Data
A B C D
r1 r2
r2 r1
r1 r2
B B
A
A E C
D E C
D
F J
G J
F I
I G
L H N
H N
K
K L
M O
M
O
(a) Subnet (b) Sink tree for router B
Routing protocols
Interdomain Intradomain
R1
R2
AS
AS R3
R4
A B C D
F G
E H
I J K L
A
1
Routing table for A
B
B C D
1 1 2 3
C
1
D
New estimated
delay from J
To A I H K Line
A 0 24 20 21 8 A
B 12 36 31 28 20 A
C 25 18 19 36 28 I
D 40 27 8 24 20 H
E 14 7 30 22 17 I
F 23 20 19 40 30 I
G 18 31 6 31 18 H
H 17 20 0 19 12 H
I 21 0 14 22 10 I
J 9 11 7 10 0 –
K 24 22 22 0 6 K
L 29 33 9 9 15 K
A
1 B C D
3 2 3
B
B C D
1 3 4 3
C
1 B C D
5 4 5
D
2 1
A B E
5 2 3
D C F
2 3
W X Y
A D B
C
Command Version Reserved
Family All 0s
Network address
Repeated
All 0s
All 0s
Distance
Com : 1 Version Reserved
Family All 0s
Network address
Repeated
All 0s
All 0s
All 0s
Family
All 0s
All 0s
All 0s
All 0s
Network address
Repeated
Subnet mask
Next-hop address
Distance
Command Version Reserved
Authentication data
16 bytes
3
B C
2 5
A 3 H
1 2
D E
1
3
B C
2 5
A H
1 2
D E
1
(2,A)
B C
2
A H
1
D E
(1, A)
(2, A)
B C
A H
E
D (1, A)
B (2,A) C (3,D)
A H
D (1,A) E (1,D)
B (2, A) C (3, D)
A H
D (1, A) E (1, D)
B C
A H (1, E)
D (1, A) E (1, D)
B C
A H
D E
B C d(AC) = 4
3
A H
1
1
d(AD) = 1 E d(AE) = 2
d(AE) d(AC)
d(AE)
B C
A H
D E
R 1 , R 2 and R7
R 3 , R6 , R8 R 3 , R 4 , R5 , R 6 , R 8
R4
To another AS
N4 R2
N3 R3
R6 N6 R7 N8
N2 R1 R4 R5
N7
N1
R8 Area
193.0.0.0 Area
Area 193.0.0.1
193.0.0.2
N5
Area
193.0.0.3
0 8 16 31
Router ID
Area ID
Authentication
Authentication
Data
AS2
iBGP
R2 R3
R4 R1 AS1
AS4 eBGP
R5 iBGP R6
0 8 16 24 31
Marker
Length Type
Octets Octets
Marker Marker
16 16
2 Length 2 Length
1 Type 1 Type
1 Error subcode
Variable Data
(b) Notification
Octets
Octets
16 Marker
16 Marker
2 Length
2 Length
1 Type
1 Type
1 Version Unfeasible
2 routes length
2 My AS
Withdrawn
2 Hold time Variable routes
1B 2A 2B
1A 1C
2C 2D
4C 5C
5B 5D
3A 3B 4A 4B 5A 5E
S1 D1
S1 D1
D1
hp
S1 D1 S1 D1 S1 D1
hp
S1 G1 S1 G1 S1 G1 S1 G1 hp
S1 G1
S1 G1
S1 G1
S1 G1 S1 G1 S1 G1 hp
hp
S1 G1
S1 G1 S1 G1
hp
Active branch
Prune message
Pruned branch
Group member
R R Router
R R R
R R
R1 is the parent of Net 1 and Net 2
R2 is the parent of Net 3
R1
R2
Join
R1 R2 R3
R6 R8 R5
40 bytes Upto 65535 bytes
Base Payload
header
Extension
Data packet from
headers
upper layer
(optional)
4 bits 4 bits 8 bits 8 bits 8 bits
Source address
Destination address
IPv4 IPv6
Underlying
LAN or WAN
technology
To IPv4 To IPv6
system system
IPv4 header
IPv6 header
IPv6 Host Payload IPv6 Host
hp hp
IPv4 Region
IPv6 Host IPv6 header IPv4 Host
hp hp
Payload
IPv6 Region
Header translation
C
10
4
A 1
3 B
2 2
E D
1 st
Process Process
Process to process delivery
hp hp
ntrenet
Services provided to
transport layer
Transport Transport
TPDU
entity entity
Interface
Network layer Network layer
Frame payload
Packet payload
Passive Active
establishment establishment
pending pending
hp hp
Host
Server Server
computer computer
Close
FIN wait
wait
Receive SYN
Receive ACK
Host A Host B
SYN (SEQ=x)
SYN (SEQ=y)
Receive FIN
Receive ACK
Receive ACK
Host A Host B
Send DR + DR
start timer
Send DR + start timer
DR
Release
connection
Host A Host B
Send DR + DR
start timer
Send DR + start timer
DR
Release
connection
Send DR + DR
start timer
Host A Host B
Send DR +
start timer DR
Send DR + start timer
Layer
To router
4 Network
address
3
Layer
To router
IP datagram
UDP datagram
IP UDP
UDP data
header header
20 bytes 8 bytes
Data (optional)
0 31
CLIENT SERVER
Server
Client Stub Server
stub
Lower Lower
layer layer
Multimedia application
User
space
RTP
Socket interface
UDP
IP
OS
Kernel
Ethernet
Ethernet payload
IP payload
UDP payload
Ethernet IP UDP RTP
Header RTP payload
Header Header header
32-bits
0 31
Payload
(2-bits) P X CC M Sequence number
type
version (1-bit) (1-bit) (4-bits) (1-bit) (16-bits)
(7-bits)
18 27 Data 18 27 Data
Destination
address Source
address
IP datagram
IP TCP
TCP data
header header
20 bytes 20 bytes
TCP segment
Source port number Destination port
(16 bits) number (16 bits)
20 Bytes
32 bit Acknowledgment number
Options (optional)
Data (optional)
Bits 0 31
2 32 1
Host 1 Host 2 Host 1 Host 2
)
+ 1) x+1
Time
, ACK
=x CK =
EQ = y = y, A
SYN (S (SEQ
SYN
SY
N(
SE
Q=
x, A
CK
=y
+1
(SEQ = x )
+ 1, ACK =
y + 1)
(a) TCP connection establishment in the normal case (b) Call collision
Client Server
hp hp
Segment 1 : FIN
Seq = 20 ack = –
Segment 2 : ACK
Seq = 50 ack = 21
Segment : FIN
Seq = 51 ack = 21
Segment : ACK
Seq = 21 ack = 52
Time Time
CONNECT/SYN
CLOSED
Start
state
CLOSE/–
LISTEN/– CLOSE/–
SYN SYN
RCVD SENT
SYN/SYN + ACK (Simultaneous open)
AC
K
(Data transfer )
Connection
ESTABLISHED
state SYN + ACK/ACK
CLOSE/FIN (Step 3 of the three-way handshake)
CLOSE/FIN FIN/ACK
(Active close) (Passive close)
FIN/ACK
FIN CLOSING CLOSE
WAIT 1 state WAIT
(Timeout/) /–
K
AC
CLOSED
state
= 2048
20 48 WIN
ACK =
Request
for 4K 4K S
EQ =
write 2 048
Buffer full
Sender
is
IN = 0
blocked 4096 W
ACK =
2048 Reads 4K
96 WIN =
ACK = 40
4K
Send
upto 4K 2K S
EQ =
4 096
2K 4K
Receiver's buffer is full
R
E rr M A
A g E rr
D h (| E rr | D)
A 4D
E rr
44 u ts
Timeo
40
36
32
Congestion window
28 Threshold
24 hold
Thres
20
16
12
08
04
2 4 6 8 10 12 14 16 18 20 22 24
Transmission number
Window
1 2 3 4 5 6 7 8 9 10 11 12
(a)
Sent and
ACKed
Not yet sent
Window
1 2 3 4 5 6 7 8 9 10 11 12
(b)
Window
1 2 3 4 5 6 7 8 9 10 11 12
(c)
1 st
2 nd
3 rd
4 th
5 th
5 th
6 th
7 th
8 th
9 th
10 th
ACK
Sender Receiver
Original tr
ansmissio
n
ACK
Sample RTT Retr
ansm
issio
n
f
r
u
B
Destination
Source
Destination
Source
Slow start Congestion
avoidance
Uncontrolled
traffic
Offered load
(Packets sent)
Random early detection
Filling direction
Output queue
Maximum threshold
Minimum threshold
Unregulated
packet flow
Leaky
bucket
(Host computer)
Regulated flow
Output to Network
(Fixed rate)
Arrival of a packet
at time ta
Y
X' < 0 ?
N
X' = 0
Nonconforming
X'> L?
packet
X = X' + I
LCT = ta
Conforming packet
T
T
Regulated flow
Output to network
(Fixed rate)
C
M
C
M
C
S
M
8
S
6 1
S
S
Data flow
Sender
Router
Bandwidth Bandwidth
reservation reservation
Router Router
Receivers
Packets Packet
arriving Classifier Marker
forward
Packet flow
Source Destination
Source Destination
Feedback information
B C
A D
E F
B C
A D
oke
Ch
E F
B C
A D
Choke
E F
B C
A D
C
ho
ke
E F
B C
A D
Reduced
flow
E F
B C
A D
Flow is still
maximum
E F
B C
A D
Flow is
reduced
E F
B C
A D
Heavy
flow
E F
B C
A D
ke
ho
C
E F
B C
A D
Choke
Reduced
E F flow
B C
C
A ho D
ke
E F
B C
A D
E F
Land research Ram
Application
Ram
hp
Transport
Network
Logical connection
R1 R2
R3 R4
R5
R6 R7
WAN switch
Sham
Point to point WAN
Sham Application
LAN switch
hp
Transport
Router
Network
Scientific book
Host or Host or
server server
Controlled Controlled
by application Process Process by application
developer developer
Socket Socket
hp
Client Server
process process
Application Application
layer Request Response Response Request layer
Socket Socket
Logical connection
32 bits 16 bits
Socket address
Client Site A Site B
hp
I II III
1 Request 1
Response 2 4
5 Request 3
Response 3
Bold tag End bold
Request line
Header
information
Blank line
Optional
body part
Space
Method ://Host:Port/Path
Headers
information
A blank line
Body
(optional)
Space
Server
Client
hp
Initiate
TCP connection
RTT
Request
file
RTT Time to
transmit file
Entire file
received
User
interface
Control
Control Control connection process
process
Data connection
Client
FTP FTP
client server
hp
TCP control connection port 21 hp
Root level
stes
sinhgad
ae fr in zw
Root level
arpa
in-
addr
132
35
50
120
Root
vtu
Root server
hp
hp hp hp
hp hp hp hp hp hp
edu Zone
Stes
Domain
Zone and
domain
edu
2 3
5 4
it.edu Stes.edu
1
6
hp
Client
edu
3 4
it.edu
2
hp Stes.edu
6
Client
Header Header
information information
Bits 0 1516 31
Identification Flags
Bit 1 4 1 1 1 1 3 4
cs.yale.edu Yale cs name server
4 5
3 6
2 7
1 8
flits.cs.vu.nl Originator
User agent Mail server
User agent
Mail server
User
interface
Mailboxes Server
for TCP connection
(to accept
User reads mail incoming mail) for outgoing mail
mail
1
User 2 Mail 4 Mail 6 User
agent server server agent Bob
3 5
Alice
Commands
MTA MTA
client Responses server
User User
Non-ASCII Non-ASCII
code code
MIME MIME
7-bit 7-bit
ASCII ASCII
7 bit ASCII
SMTP SMTP
User computer Mail server
POP3 POP3
client server
Login name
Ok
Password
Password verified. Ok
List of emails
Email numbers with sizes
Download 1
New email
Download N
New email
Status line HTTP / 1.1 300 ok
Date : Wed , 8 Oct 2014 13:00:13 GMT
General headers
Connection : close
Server : Apache / 1.3.27
Accept-range : bytes
Entity headers Content-type : text / html
Content-length : 200
Last-modified : 2 Oct 2014 13:00:13 GMT
Blank line
<html>
<head>
Message body <title> Welcome to the India <title>
<head>
<body>
No connection
se
lea
re
TCP connection
ec
Pre-authentication
ur
establish
so
Re
Not Authentication
Authenticated
authenticated Successful
ox n
lb
tio
ai
lec
M ox
ils
lb
ut
se
ai
n fa
d
go
M clo se
t lo
tio
Selected
ien
tica
Cl
hen
nt
t
ie
ou
Aut
Cl
log
Logout
Secure
Integrity
Availability
Opponent Read content of
message from sender
to receiver
nternet
Sender Receiver
hp
nternet
Sender
Receiver
hp
nternet
Sender Receiver
hp
nternet
Sender Receiver
hp
Opponent modifies
Opponent message from sender
to receiver
hp hp
nternet
Sender Receiver
hp
Disrupts service
provided by server
hp hp
nternet
Source Server
system
hp
Target
system
K
Secure channel
Key
source
Suresh Tomy
Alice
Alice Alice
public private
key key
Transmitted
ciphertext
Bob's
Bob's public
private key key
Transmitted
ciphertext
<
KRb
Message X Y X
Encrypt Decrypt Destination
source
KVb KRb
Source side X1 Destination side Y1
Key-pair
source
X (X 1 , X 2 , Xm )
KU b
KR b
Y1
KU b X1
Y1 , Y2 , Y 3 .... Yn
E KU b (X)
D KR b (Y)
KU b
KR b
(PU b )
PR b
(PU b )
p q
Me 27
Cd 128 343
hp hp
To Internet
hp hp hp
Firewall
Corporate network
Packet
filtering
Internet router Private
network
Protected zone
Application level gateway
hp hp
TELNET
Outside Inside
connection FTP connection
SMTP
Outside host Inside host
HTTP
P Application gateway P
hp
packet packet hp
HTTP
SMTP
FTP
TELNET
Outer Inner
firewall firewall
hp
DMZ
Untrusted Trusted
semi-trusted
zone zone
zone
hp
Firewall Firewall
hp
hp
hp
VPN
Tunnel
hp
hp
Network - 1 Network - 2
Bastion
host
hp hp
nternet
Packet
filtering
router hp hp
Private
Information network
server hosts
Bastion
host
hp hp
nternet
Packet
filtering
router hp hp
Private
Information network
server hosts
Bastion
host
hp
Private
nternet
network
Outside nside
router router
Information
server
Modem
Semester - V (ECE) - Regulation 2017