Data Communication Computer Network For MSBTE I
Data Communication Computer Network For MSBTE I
MSBTE - I Scheme
S.Y. Diploma Semester - IV
Computer Engineering Group
(CO / CM / IF / CW)
Data Communication
& Computer Network
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
Virat V. Giri
M-Tech. (Computer Engg.)
Principal, Sanjay Ghodawat Polytechnic Atigare, Kolhapur.
Sachin S. Mahulkar
M.E. (Digital Electronics)
Lecturer in E & Tc,
JSPM's Jayawantrao Sawant Polytechnic, Hadapsar, Pune
®
TECHNICAL
PUBLICATIONS
SINCE 1993 An Up-Thrust for Knowledge
(i)
Data Communication
& Computer Network
Subject Code : 22414
Published by :
®
TECHNICAL Amit Residency, Office No.1, 412, Shaniwar Peth, Pune - 411030, M.S. INDIA
PUBLICATIONS P h . : + 9 1 - 0 2 0 - 2 4 4 9 5 4 9 6 / 9 7 , Te l e f a x : + 9 1 - 0 2 0 - 2 4 4 9 5 4 9 7
An Up-Thrust for Knowledge
SINCE 1993
Email : [email protected] Website : www.technicalpublications.org
ISBN 978-93-332-0058-5
Medium of transmission
Sender Receiver
®
TM
S
BW log 2 1
N
®
TM
Data flow
®
TM
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
®
TM
®
TM
x(t)
Non-periodic signal
T
t
0
t
Time
Bit
interval
®
TM
A
B
Link or branch
®
TM
LAN 1
LAN 2
LAN 4
®
TM
®
TM
hp
hp
hp
hp
Dedicated Printer
print server
®
TM
®
TM
Copper
conductor
Shielding
Plastic
encasement
®
TM
®
TM
®
TM
®
TM
®
TM
Line of sight
Receiving
station
Transmitting
station
®
TM
Receiving
antenna
RF IF
Down Voice
Demodulator Demultiplexer data
converter
video
giga =
®
TM
Satellite
Ground Ground
Satellite station
station
1 Cable Coun
ntry try 2
Cou
Earth
Satellite
®
TM
Multiple Original
input MUX DEMUX input
signals signals
Original data
modulates carriers
of different frequencies
Signal 1 Modulator To single
cable Antenna
Carrier fc1
Single
Signal 2 Modulator communication
channel
Linear
Carrier fc2 mixer
Transmitter
or
summer
Input 3 Modulator
Optional
Carrier fcm
®
TM
Receiver Demodulator
BPF
fc3 Demodulator 3
Demodulator
recover original signals
BPF
fcn Demodulator n
Time
One frame Time
®
TM
®
TM
Switch
tandem
To Switch Switch To
phone 1 Direct path 2 phone
Switch
tandem
X L
Y M
Z N
(a)
Trunk
Switch 1 Switch 2
X Y Z L M N
(b)
®
TM
Packet 1
Packet 2
Station 1
source
Packet 2
Station 2
Packet 2
destination
®
TM
Station 1
(Source)
Station 2
(Destination)
®
TM
Message 2
1
ss age
Me
®
TM
1 2 3 4
Nodes : 1 2 3 4 1 2 3 4
Acknowledgement
signal
®
TM
®
TM
Parity bit
®
TM
Extract
Generator Checker Discard
n bits
Unreliable
Codeword Codeword n bits
transmission
Sender Receiver
Encoder Decoder
Dataword K bits Dataword K bits
®
TM
bi Pi
bi
®
TM
Encoder Decoder
Dataword Dataword
a3 a2 a1 a0 a3 a2 a1 a0
Accept
Discard
Decision
logic
Syndrome S0
Generator Checker
Parity bit
a3 a2 a1 a0 r0 Unreliable
b3 b2 b1 b0 q0
transmission
Codeword Codeword
1 1 0 0 1 1 1 1
1 0 1 1 1 0 1 1
Row parities
0 1 1 1 0 0 1 0
0 1 0 1 0 0 1 1
0 1 0 1 0 1 0 1
Column parities
1 1 0 0 1 1 1 1
1 0 1 1 1 0 1 1
0 1 1 1 0 0 1 0
0 1 0 1 0 0 1 1
0 1 0 1 0 1 0 1
®
TM
1 0 1 1 1 0 1 1
0 1 1 1 0 0 1 0
0 1 0 1 0 0 1 1
0 1 0 1 0 1 0 1
1 1 0 0 1 1 1 1
1 0 1 1 1 0 1 1
0 1 1 1 0 0 1 0
0 1 0 1 0 0 1 1
0 1 0 1 0 1 0 1
1 1 0 0 1 1 1 1
1 0 1 1 1 0 1 1
0 1 1 1 0 0 1 0
0 1 0 1 0 0 1 1
0 1 0 1 0 1 0 1
®
TM
®
TM
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
®
TM
b n– 1 x n– 1 b n– 2 x n– 2 b n– 3 x n– 3 ... b 2 x 2 b 1 x b 0
x 10 x7 x5 x 3 x 2 x 1
x 10 x 9 x7 x5 x 4
6 3
x +x +x
4 3
x +x +1 )x
10 9
+x + x
7 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
®
TM
x8 x2 x 1
x10 x9 x5 x4 x2
x16 x12 x5 1
x32 x26 x23 x22 x16 x12
x11 x10 x8 x7 x5 x4 x2 x
®
TM
Remainder
Codeword
®
TM
®
TM
Hosts
Transceiver
Ethernet cable
Adaptor
Host
®
TM
Physical layer
header
®
TM
90 50 120
400 75
50 75
400
120 90
Number of
octets 1 1 1 2-6 2-6 0-8182 4 1
®
TM
®
TM
SD AC ED
Data frame
No
1 1 1 2/6 2/6 limit 4 1 Bytes
SD AC FC DA SA DATA FCS ED FS
SD : Start delimiter 1
AC : Access control
FC : Frame control
DA : Destination address
SA : Source address
DATA : Data field
FCS : Frame check sequence
ED : End delimiter
FS : Frame status
®
TM
AP
®
TM
Server
AP AP
hp
hp hp
hp
hp hp
BSS BSS
®
TM
Contention-free
Data service
Contention
link service
layer
Point coordination function
MAC
sublayer Distribution coordination function
Physical
layer 802.11 802.11 802.11 802.11a 802.11a 802.11g
FHSS DSSS Infrared DSSS OFDM DSSS
®
TM
DIFS
RTS
SIFS
CTS
NAV
(No carrier
SIFS sensing)
Data
SIFS
ACK
Time Time
®
TM
2 bits 2 bits 4 bits 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit
®
TM
(a) RTS
FC D Address 1 FCS
1 or 2 Mbps 1 MHz
2 Level or 4 level
Digital FSK
Analog
data signal
Pseudorandom Frequency
sequence synthetizer
®
TM
1 or 2 Mbps 4 to 16 Analog
or PPM signal
Digital 2 to 4
data
®
TM
®
TM
Set backoff
to zero
Persistence
strategy
Wait DIFS
Send RTS
A B C D
Set a timer
Wait backoff
time No CTS received
before timeout?
Yes
Wait SIFS
Set a timer
No
A B C D
Radio range
®
TM
Slave Slave - 2
Master Master
Slave Slave
®
TM
Profiles
Control
Audio
a
t
a
L2CAP Layer
Baseband Layer
Radio Layer
®
TM
366 μs
Hop Hop
Master
Time
Hop Hop
Slave
f0 f1 f2 f3 Time
Time
Hop
Slave 1
Time
Hop
Slave 2
f0 f1 f2 f3 Time
®
TM
Bits : 72 54 0 - 2744
3 4 1 1 1 8
®
TM
®
TM
Bus
Node Node
®
TM
Server Node
Switch
Node
Node
Node
Node
Switch
Node
Node
Node
Server
Node Node
Node Node
Node
®
TM
Node Node
Server Node Node
Bus
Node Node
Node Node
Node
®
TM
Switch
®
TM
Computer
hp
Cable
hp
Computer
Computer
hp
Application Application
Gateway
Transport Transport
Bridge /
Data link Data link
2 - layer switch
Passive hub
®
TM
Hub Hub
hp hp hp hp hp hp hp hp
®
TM
Refers
Switching table
®
TM
Station Station
LLC LLC
Bridge
MAC MAC
MAC
PHY PHY PHY PHY
PORT-1 PORT-2
LAN A LAN B
2
hp hp hp hp
1
Bridge
LAN 1 LAN 2
®
TM
8 5
B1 B2
8 4
LAN2 LAN3
10 10 4
B3
B4
3
6
LAN4
LAN5
B1
B 2 and B 3
B4 B2
B 2 and B 3
B2
B1
B3 LAN
B1 B4
B1
B2
®
TM
B3
B1
B1
D D
LAN2 LAN1
D D
LAN4 LAN3
Root path
cost = 9 R
B4
R : Root port D
D : Designated port
LAN5
®
TM
LAN1 LAN2
®
TM
Netware
Gateway
hp hp
®
TM
D
Serial Telco
T Serial interface
interface
interface
circuit
E
Bandpass
Demodulator filter and
circuit postequalizer
Digital
pulses
Receiver Analog
(A/D converter) signal
®
TM
6. Presentation layer
5. Session layer
4. Transport layer
3. Network layer
1. Physical layer
HOST A HOST B
Layer 5 Protocol
Layer 5 Layer 5
Physical medium
®
TM
ICI
PCI SDU
PDU ICI
Layer N
IDU
Layer N – 1
SDU
ICI
Etc
®
TM
Node - 1 Node - 2
Transmission medium
Frame Frame
Data link T2 Data H2 T2 Data H2 Data link
layer layer
®
TM
Packet Packet
Data H3 Network Data H3
layer
®
TM
Data L7 Data L7
Presentation
layer
Data L6 Data L6
®
TM
Transport layer
Internet layer
Host to network
®
TM
IP Internet layer
®
TM
TCP UDP
Transport layer
Transport layer Port
Transport layer TCP, UDP, SCTP
address
IP
Network layer
Internet layer Logical
Network layer IP, ARP
address
Data link layer
Host to network
LAN X.25 Data link layer
Physical layer Physical Physical
Physical layer network address
OSI model TCP/IP model
18 27 Data 18 27 Data
Destination
address Source
address
®
TM
LLC Packet
To network
®
TM
Request
Chp
D
hp
E
hp
158.108.2.3
158.108.2.5
158.108.2.2 158.108.2.4
Me! With
A 0:0:e8:15:CC:1 B
hp hp
Reply
C
hp
D
hp
E
hp
158.108.2.5 158.108.2.3
®
TM
32-bits
®
TM
hp
A hp
B hp
C hp
D
®
TM
2 network_ bits
2 host_ bits 2
®
TM
Class A 0
Host ID: 0.0.0 to 255.255.255 (16M + hosts)
Class B 10
Host ID: 0.0 to 255.255 (65,534 hosts)
Class C 11 0
Host ID: 0 to 255 (254 hosts)
Class D 11 1 0
Class E 11 1 1
®
TM
C 255.255.255.0
11111111 11111111 11111111 00000000
®
TM
®
TM
®
TM
Destination : Destination :
10.1.1.100/8 10.1.1.100 162.105.178.65
211.100.7.34/24
Intranet Internet
(private network) (public network)
NAT table
Packet from host to server Way Before NAT After NAT
Packet from server to host Outgoing 10.1.1.100 162.105.178.65
Incoming 162.105.178.65 10.1.1.100
®
TM
162.105.178.66 Source :
162.105.178.67 162.105.178.65:16384
Destination : ... Server
10.1.1.100/8 10.1.1.100:1025 NAT Destination :
162.105.178.65:16384
Source :
Intranet Internet 162.105.178.65:16400 211.100.7.34/24
Host B Source :
(private (public
10.1.1.200:1028
hp
®
TM
Base Payload
header
Extension
Data packet from
headers
upper layer
(optional)
®
TM
Source address
Destination address
®
TM
TRANSACTION IDENTIFIER
CLIENT IP ADDRESS
YOUR IP ADDRESS
SERVER IP ADDRESS
ROUTER IP ADDRESS
CLIENT HARDWARE ADDRESS (16 OCTETS)
SERVER HOST NAME (64 OCTETS)
BOOT FILE NAME (128 OCTETS)
OPTIONS (VARIABLE)
®
TM
hp hp
ntrenet
®
TM
Services provided to
transport layer
Transport Transport
TPDU
entity entity
Interface
Network layer Network layer
®
TM
Request
Chp
D
hp
E
hp
158.108.2.3
158.108.2.5
158.108.2.2 158.108.2.4
Me! With
A 0:0:e8:15:CC:1 B
hp hp
Reply
C
hp
D
hp
E
hp
158.108.2.5 158.108.2.3
ARP message
®
TM
TM
Technical Publications - An up thrust for knowledge
R
nd rd
First floor 2 floor 3 floor
Second floor
Dept 2
Internet
Dept 3
Main
Firewall switch
Dept 4
Dept 5