Professional Documents
Culture Documents
Networking
Network
Types of Networks
LAN
Local Area Networks are used to connect networking
devices that are in a very close geographic area such as
a floor of a building, a building itself or within a
campus.
MAN
Metropolitan Area Network are used to connect
networking devices that may span around the entire
city.
WAN
Wide Area Networks which connects two or more LANs
present at different geographical locations.
LAN
Banjara
Banjara Hills
Hills
HUB
HUB
LAN
LAN
MAN
Banjara
Banjara Hills
Hills
HUB
HUB
Ameerpet
Ameerpet
LAN
LAN
LAN
LAN
MAN
MAN
SWITCH
SWITCH
WAN
www.cms.com
www.cms.com
vijayawada
vijayawada
Hyderabad
Hyderabad
WAN
WAN
Router
Router
HUB
HUB
LAN
LAN
Router
Router
SWITCH
SWITCH
LAN
LAN
Basic
requirements
network
to
form
Media
Protocols
Media
Media
Guided
UTP
STP
Unguided
Infrared
RF
Media
Co-axial cable
UTP Cable
Fiber optic
Networking devices
The various types of networking devices are:
Repeater
Hub
Bridge
Switch
Router
Hub / Repeater
It is not an Intelligent Device.
It works with bits.
Uses broadcast for communication.
Bandwidth is shared.
Half-duplex communication.
Functions of HUB
HUB
HUB
Data
Data
Functions of HUB
Data
HUB
HUB
Data
Data
Switch
It is an Intelligent device.
It maintains MAC address table (hardware
address).
Each port of the switch has fixed bandwidth.
It works with Flooding and Unicast.
Supports full duplex communication
Functions of a Switch
MAC Address Learning
Forwarding
Functions of Switch
1
2
4 5 6
8
7
Functions of Switch
Source MAC
001C.C01A.0002
S Data
DATA
Destination MAC
001C.C01A.0004
001C-C01A-0002
D
001C-C01A-0004
PORT
1
2
3
4
5
6
7
8
MACADDRESS
001C-C01A-0002
Functions of Switch
PORT
3
4 5 6
8
7
Fa0/1
Fa0/2
Fa0/3
001C-C01A-0002
Fa0/4
Data
Fa0/5
001C-C01A-0004
Fa0/6
MACADDRESS
Fa0/7
Fa0/8
001C-C01A0002
001C-C01A-0004
Switch
Switches are
hardware based
Switches have more
ports
Generally used for
connecting single
topology (Segment)
Router
It is an Intelligent device
It works with Logical Addressing (i.e. IP, IPX,
AppleTalk)
It works with Fixed bandwidth
PC
HUB
Cross
Cable
Straight
Cross
Cable
Straight
Cross
Cable
Straight
Cross
Cable
Straight
Cross
Straight
Bridge
Cross
Cable
Straight
Cross
Cable
Straight
Cross
Cable
Switch
Straight
Cross
Straight
Cross
Cable
Straight
Router
Cross
Cable
Straight
Cross
Cable
Straight
Cross
Cable
PC
HUB
Topology
Topology is a physical layout of the systems connected in
a network.
Different types of topology are:
Bus
Ring
Mesh
Star
Bus Topology
Ring Topology
Mesh Topology
Star Topology
HUB/Switch
HUB/Switch
IP ADDRESS
ASSIGNMENT
IP Address
IP version 4
01010101000001011011111100000001
Second Octet
01010101.
00000001
Third Octet
00000101.
Forth Octet
10111111.
= 255
IP Address Classification
CLASS A
CLASS B
CLASS C
CLASS D
CLASS E
Priority Bit
10
110
1110
1111
Class A Range
Class B Range
Class C Range
Class D Range
Class E Range
Octet Format
CLASS A is written as
N.H.H.H
CLASS B is written as
N.N.H.H
CLASS C is written as
N.N.N.H
Example - Class A
Class A : N.H.H.H
Network Address :
0xxxxxxx.00000000.00000000.00000000
Broadcast Address :
0 x x x x xClass
x x . 1A1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1
10.0.0.0
10.0.0.1
10.0.0.2
10.0.0.3
10.255.255.254
10.255.255.255
Network Address
Valid IP Addresses
Broadcast Address
Example - Class B
Class B : N.N.H.H
Network Address :
10xxxxxx.xxxxxxxx.00000000.00000000
Broadcast Address :
1 0 x x x xClass
x x . xBx x x x x x x . 1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1
172.16.0.0
172.16.0.1
172.16.0.2
172.16.0.3
172.16.255.254
172.16.255.255
Network Address
Valid IP Addresses
Broadcast Address
Example - Class C
Class C : N.N.N.H
Network Address :
110xxxxx.xxxxxxxx.xxxxxxxx.00000000
Class
C
Broadcast
Address
:
1 1 0 x x x192.168.1.0
x x . x x x x x x x x . x x x xNetwork
x x x x . 1Address
1111111
192.168.1.1
192.168.1.2
192.168.1.3
Valid IP Addresses
192.168.1.254
192.168.1.255
Broadcast Address
Private IP Address
Subnet Mask
SUBNETTING
Subnetting
MCSE
192.168.1.1 to
192.168.1.50
CISCO
192.168.1.51 to
192.168.1.100
HUB
HUB
LAN
LAN
192.168.1.60
192.168.1.30
192.168.1.70
HUB
HUB
192.168.1.40
LAN
LAN
192.168.1.80
192.168.1.50
192.168.1.90
192.168.1.100
Scenario (continued)
Administrators Requirement :
Inter-department communication should not be
possible ?
Solution.
Allocate a different Network to each Department
i.e.
MCSE
CISCO
192.168.1.1 to
192.168.1.50
192.168.2.1 to
192.168.2.50
HUB
HUB
LAN
LAN
192.168.2.1
192.168.1.3
192.168.2.2
HUB
HUB
192.168.1.4
LAN
LAN
192.168.2.3
192.168.1.50
192.168.2.4
192.168.2.50
Power table
POWER TABLE
21 = 2
29
= 512
217 = 131072
225 = 33554432
22 = 4
210 = 1024
218 = 262144
226 = 67108864
23 = 8
211 = 2048
219 = 524288
227 = 134217728
24 = 16
212 = 4096
220 = 1048576
228 = 268435456
25 = 32
213 = 8192
221 = 2097152
229 = 536870912
26 = 64
214 = 16384
222 = 4194304
230 = 1073741824
27 = 128
215 = 32768
223 = 8388608
231 = 2147483648
28 = 256
216 = 65536
224 = 16777216
232 = 4294967296
Value
Mask
1 128
10000000
2 192
11000000
3 224
11100000
4 240
11110000
5 248
11111000
6 252
11111100
7 254
11111110
8 255
11111111
Requirement of Networks is 2 ?
Example 1
Class C : N.N.N.H
110xxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx
Class C : 192.168.1.0
No. of Subnet
= 2n 2 Req. of Subnet
= 22 2 2 (-2 is for First & Last Subnet Range)
= 42
= 2 Subnet
No. of Host
= 2h 2 (-2 is for Network ID & Broadcast ID)
= 26 2
= 64 2
= 62 Hosts/Subnet
Example 1 (Continued)
Customized Subnet Mask =
255.
255.
255.
192
Network ID
Broadcast ID
Customized Subnet Mask
192.168.1.0
192.168.1.63
192.168.1.0255.255.255.192
192.168.1.63
192.168.1.127
192.168.1.64
Subnet192.168.1.191
Range
Valid
192.168.1.12
192.168.1.255
192.168.1.64
to 192.168.1.127
MCSE
Subnets
8
192.168.1.192
192.168.1.255 CISCO
192.168.1.128
192.168.1.19to 192.168.1.191
2
EXAMPLE 2 (Continued)
Customized
Subnet
Mask
= Bits to Network Bits
If you
convert
4 Host
255.
255.
240
14
Subnet &255.
14 Hosts/Subnet
12
8
64
32
16
Subnet
Mask
11 1111 1 111Customized
111 1 11 111
11 111
1 000
1.
1. 255.255.255.240
1.
0
Range of Networks
Subnet Range
Network192.168.1.16
ID
Broadcast
ID
to 192.168.1.31
192.168.1.0
192.168.1.32
to 192.168.1.47
192.168.1.15
192.168.1.0
192.168.1.15
192.168.1.48 192.168.1.31
to 192.168.1.63
192.168.1.16
192.168.1.64 192.168.1.47
to 192.168.1.79
192.168.1.32
192.168.1.63
192.168.1.48
192.168.1.240 to 192.168.1.255
192.168.1.240 to 192.168.1.255
Valid
192.168.1.239 Subnets
192.168.1.22
4
192.168.1.24
192.168.1.240
0
192.168.1.255
192.168.1.255
Requirement of Hosts is 40 ?
Example 3
Class C : N.N.N.H
1 10x x xx x .xx x x xx x x .x x xx x xx x .xx x x xx x x
Class C : 192.168.1.0
No. of Host
= 2h 2 Req. of Host
= 26 2 40 (-2 is for Network ID & Broadcast ID)
= 64 2
= 62 Hosts/Subnet
No. of Subnet
= 2n 2 (-2 is for First & Last Subnet Range)
= 22 2
= 42
= 2 Subnet
Example 3 (Continued)
12
8
64
192.168.1.0
192.168.1.0
192.168.1.63
192.168.1.63
Subnet 192.168.1.127
Range
192.168.1.64
Valid
192.168.1.64
to
192.168.1.127
192.168.1.12
192.168.1.191
Subnets
192.168.1.192
8192.168.1.128192.168.1.255
to192.168.1.255
192.168.1.191
192.168.1.19
2
Requirement of Hosts is 2 ?
Example 2
Class C : N.N.N.H
1 10x x xx x .xx x x xx x x .x x xx x xx x . xx x x xx x x
Class C : 192.168.1.0
No. of Host
= 2h 2 Req. of Host
= 22 2 2 (-2 is for Network ID & Broadcast ID)
= 42
= 2 Hosts/Subnet
No. of Subnet
= 2n 2 (-2 is for First & Last Subnet Range)
= 26 2
= 64 2
= 62 Subnet
Example 2 (Continued)
Customized Subnet Mask =
255.
255.
255.
252
Network ID
Broadcast ID
192.168.1.0
192.168.1.0
192.168.1.3
192.168.1.3
192.168.1.7
192.168.1.4
192.168.1.11
192.168.1.8
192.168.1.15
192.168.1.12
Valid
Subnets
192.168.1.24
192.168.1.252
8
192.168.1.25
2
192.168.1.251
192.168.1.255
192.168.1.255
Requirement of Networks is 2 ?
Example 4
Class B : N.N.H.H
1 0x x xx x x.x xx x x xx x . x x x xx x xx .x x xx x xx x
Class B : 172.16.0.0
No. of Subnet
= 2n 2 Req. of Subnet
= 22 2 2 (-2 is for First & Last Subnet Range)
= 42
= 2 Subnet
No. of Host
= 2h 2 (-2 is for Network ID & Broadcast ID)
= 214 2
= 16384 2
= 16382 Hosts/Subnet
Example 4 (Continued)
Customized Subnet Mask =
192.
255.
255.
11 1111 1
1.
11 111 11
1.
11 000 00
0.
12
864
0
000 0000
0
Range of Networks
Network ID
Broadcast ID
172.16.63.255
172.16.0.0
172.16.0.0
172.16.63.255
172.16.64.0
172.16.127.255
Valid
172.16.128.0
172.16.191.255 Subnets
172.16.192.0
172.16.192.0 172.16.255.255
172.16.255.255
Example 2 (Continued)
Customized Subnet Mask =
255.
255.
255.
128
Network ID
Broadcast ID
172.16.0.127
172.16.0.0
172.16.0.127
172.16.0.0
172.16.0.255
172.16.0.128
172.16.1.127
172.16.1.0
172.16.1.255
172.16.1.128
Valid
Subnets
172.16.255.0
172.16.255.128
172.16.255.1
28
172.16.255.127
172.16.255.255
172.16.255.255
VLSM
Scenario
Scenario (continued)
Scenario (continued)
Administrator does not want inter-department
communication in the sub departments ?
Answer : You will use the subnet range to further divide it
into smaller ranges, this time its Subnetting of a Subnet
i.e. VLSM.
Calculation of FLSM
Class C : N.N.N.H
11 0x x xx x .x x x xx x xx .xx x x xx x x . xx x x xx x x
Class C : 192.168.1.0
No. of Subnet
= 2n 2 Req. of Subnet
= 23 2 5 (-2 is for First & Last Subnet Range)
= 82
= 6 Subnet
No. of Host
= 2h 2 (-2 is for Network ID & Broadcast ID)
= 25 2
= 32 2
= 30 Hosts/Subnet
Example 1 (Continued)
Customized Subnet Mask =
255.
255.
255.
224
Network ID
Broadcast ID
192.168.1.0
192.168.1.31
192.168.1.0
192.168.1.31
192.168.1.63
192.168.1.32
192.168.1.95
192.168.1.64
192.168.1.127
192.168.1.96
192.168.1.159Valid
192.168.1.12
192.168.1.191 Subnets
8
192.168.1.223
192.168.1.16
192.168.1.224
192.168.1.255
192.168.1.255
0
192.168.1.19
2
192.168.1.22
VLSM
(Continued)
240
12
648
32
16
Range of Networks
Network ID
Broadcast ID
192.168.1.64
192.168.1.79Valid
192.168.1.80
192.168.1.95 Subnets
Calculation
Dept.
of
VLSM
for
Firewall
Class C : N.N.N.H
11 0x x xx x .x x x xx x xx .xx x x xx x x .xx x x xxx
xxx
0xxxxx.xxxxxxxx.xxxxxxxx.xxxxxx
Class C : 192.168.1.96
No. of Subnet
= 2n Req. of Subnet
= 23 5
= 8
= 8 Subnet
No. of Host
= 2h 2 (-2 is for Network ID & Broadcast ID)
= 22 2
= 42
= 2 Hosts/Subnet
VLSM
(Continued)
255.
255.
252
12
8
64
32
16
8
4
Network ID
Broadcast ID
192.168.1.99
192.168.1.96
192.168.1.103
192.168.1.10
192.168.1.107
0
192.168.1.111Valid
192.168.1.10
192.168.1.115 Subnets
4
192.168.1.119
192.168.1.10
192.168.1.123
8
192.168.1.127
192.168.1.11
2
192.168.1.11
6
VLSM
248
(Continued)
Range of Networks
Network ID
Broadcast ID
192.168.1.128
192.168.1.135
192.168.1.136
192.168.1.143
Valid
192.168.1.144
192.168.1.151
Subnets
192.168.1.152
192.168.1.159
Open System
Interconnect
(OSI)
OSI
Layer
7
Layer
6
Layer
5
Layer
4
Layer
3
Layer
2
Layer
1
Application
Application
Presentation
Presentation
Session
Session
Transport
Transport
User support
Layers
or
Software Layers
Core layer of
the OSI
Network
Network
Data
Data Link
Link
Physical
Physical
Network support
Layers
or
Hardware Layers
Application Layer
Application
Application
Presentation
Presentation
Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical
Port No.
HTTP
80
FTP
21
SMTP
25
TELNET
23
TFTP
69
Application
Application
8
0
2
1
2
5
5
3
6
7
Presentation
Presentation
Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical
6
9
Presentation Layer
Application
Application
Presentation
Presentation
Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical
Presentation Layer It is
responsible for defining a
standard format to the data.
It deals with data presentation.
The major functions described at
this layer are..
Encoding
Decoding
Eg: ASCII, EBCDIC (Text)
JPEG,GIF,TIFF (Graphics)
MIDI,WAV (Voice)
MPEG,DAT,AVI (Video)
Encryption
Decryption
Compression Decompression
Application
Application
Data
Data
Presentation
Presentation
Data
Data
Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical
Session Layer
Application
Application
Presentation
Presentation
Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical
Session Layer
It is responsible for establishing,
maintaining and terminating the
sessions.
Session ID is used to identify a
session or interaction.
Examples :
RPC Remote Procedural Call
SQL Structured Query Language
ASP AppleTalk Session protocol
Application
Application
Data
Data
Presentation
Presentation
Data
Data
Session
Session
Data
Data
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical
Transport Layer
Application
Application
Presentation
Presentation
Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical
Transport Layer
It provides data delivery
mechanism between the
applications in the network.
The major functions described at
the Transport Layer are..
Identifying Service
Multiplexing & De-multiplexing
Segmentation
Sequencing & Reassembling
Error Correction
Flow Control
Identifying a Service
2 2
1 5
5 6 6
3 7 9
Transport
Transport
TCP 6
UDP 17
Network
Network
Data
Data Link
Link
Physical
Physical
TCP
Transmission Control
Protocol
Connection Oriented
Supports Acks
Reliable
communication
Slower data
Transportation
Protocol No is 6
Eg: HTTP, FTP, SMTP
UDP
User Datagram
Protocol
Connection Less
No support for Acks
Unreliable
communication
Faster data
Transportation
Protocol No is 17
Eg: DNS, DHCP, TFTP
Segmentation
HELLO!
HOWHELLO!
ARE YOU?
Data
Data
HOW
ARE
YOU
Sequencing
HELLO!
HOWHELLO!
ARE YOU?
Data
Data
HOW
ARE
YOU
Sequencing
HOW
ARE
HELLO!
YOU
Sequencing
HELLO! HOW
1/5
2/5
Data
Data
ARE
3/5
YOU
4/5
?
5/5
Sequencing
HOW
2/5
?
5/5
ARE
3/5
HELLO!
1/5
YOU
4/5
Application
Application
Data
Data
Presentation
Presentation
Data
Data
Session
Session
Data
Data
Transport
Transport
Segment
TH
Data
Segment
TH
Data
Network
Network
Data
Data Link
Link
Physical
Physical
Network Layer
Application
Application
Presentation
Presentation
Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical
Network Layer
It provides Logical addressing &
Path determination (Routing)
The protocols that work in this
layer are:
Routed Protocols:
IP, IPX, AppleTalk.. Etc
Routed protocols used to carry user
data between hosts.
Routing Protocols:
RIP, OSPF.. Etc
Routing protocols performs Path
determination (Routing).
Application
Application
Data
Data
Presentation
Presentation
Data
Data
Session
Session
Data
Data
Transport
Transport
Segment
TH
Data
Segment
TH
Data
Network
Network
Segme
Segme
Packet
NH
NHPacket
nt
nt
Data
Data Link
Link
Physical
Physical
Datalink Layer
Application
Application
Presentation
Presentation
Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical
Datalink Layer
It has 2 sub layers
MAC (Media Access Control) It
provides reliable transit of data
across a physical link.
It also provides ERROR
DETECTION using CRC (Cyclic
Redundancy Check)
Ex: Ethernet, Token ringetc
LLC (Logical Link Control)
It provides communication with
Network layer.
Application
Application
Data
Data
Presentation
Presentation
Data
Data
Session
Session
Data
Data
Transport
Transport
Segment
TH
Data
Segment
TH
Data
Network
Network
Data
Data Link
Link
Physical
Physical
Segme
Segme
Packet
NH
NHPacket
nt
nt
D
Pack
D Frame
Pack D
D
Frame
H
T
et
H
T
et
Physical Layer
Application
Application
Presentation
Presentation
Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical
Physical Layer
It defines the electrical, Mechanical &
functional specifications for
communication between the Network
devices.
The functions described at this layer
are..
Encoding/decoding:
It is the process of converting the
binary data into signals based on the
type of the media.
Copper media :
Electrical signals of
different voltages
Fiber media: Light pulses of different
wavelengths
Wireless media:
Radio frequency waves
Application
Application
Data
Data
Presentation
Presentation
Data
Data
Session
Session
Data
Data
Transport
Transport
Segment
TH
Data
Segment
TH
Data
Network
Network
Data
Data Link
Link
Physical
Physical
Segme
Segme
Packet
NH
NHPacket
nt
nt
D
Pack
D Frame
Pack D
D
Frame
H
T
et
H
T
et
Bits
Bits
Application
Application
Presentation
Presentation
Application
Application
Session
Session
Transport
Transport
Host
Host to
to Host
Host
Network
Network
Internet
Internet
Data
Data Link
Link
Physical
Physical
Network
Network Access
Access