Documente Academic
Documente Profesional
Documente Cultură
Version 4 and 6
IP Addressing
Routing
deny or permit ( access-list )
NAT
TCP/IP: TCP, IP, DNS, DHCP, Telnet, FTP, http, https, SMTP, SNMP, POP3,
Tftp, Syslog, NTP, ICMP, ARP, UDP...
1
101 |101 101 101 101...........110
101
------
0 101
110
101
......
001
cables:
Co-axial
UTP connector ( RJ 45 )
Router or Switch
console( Roll over) local login for the first time,
to enter and access the router or Switch.
Notes:
Ethernet connectivity, we are going to use straight &
crossover cable.
1. pc and Router always transmits data over cable 1 and 2
2. hub and switch always transmits data over cable 3 and 6
Number systems:
binary ( 2 ) 0 and 1
octal ( 8 ) 0 to 7
decimal( 10 ) 0 to 9
Hexa decimal(16) 0 to 9 and A to F
-5v = 0, +5v = 1
a = 65 -> 0 1 0 0 0 0 0 1
conversion:
100.200.250.150
128 64 32 16 8 4 2 1
0 1 1 0 0 1 0 0
100 = ? 7 6 5 4 3 2 1 0
10 2 2 2 2 2 2 2 2 2
36
4
0
128 64 32 16 8 4 2 1
1 1 0 0 1 0 0 0
200 = ? 7 6 5 4 3 2 1 0
10 2 2 2 2 2 2 2 2 2
250 1 1 1 1 1 0 1 0
128 16 4 2
150 1 0 0 1 0 1 1 0
128 32 2 32 16 2 1 64 32 16 8 16 4 1
ipv4: 1 0 1 0 0010 . 001 1 001 1. 01 1 1 1000. 0001 0101
162 . 51 . 120 . 21
ip version 6:
IETF
RIPE
AFRINIC
1.0.0.0
2.0.0.0
3.0.0.0
4.0.0.0
8.0.0.0 8.8.4.4. and 8.8.8.8
10.0.0.0 private
223.0.0.0
26.12.2017
hub:
1. layer 1 device
2. PDU: signal
3. CSMA/CD carrier sense multiple access/collision detection
Switch
1. layer 2 device
2. successor to bridge
3.
data communication:
CRC
1 1 1 1 1 1...............1
101 |101 101 101 101 101 101............110
101
..........
101
.....................................
110
101
.....................................
001
duplex:
ethernet family
duplex:
simplex -> always one direction
half duplex -> either sending or receiving at a time.
full duplex -> both sending and receiving is possible
simultaneously.
basic functionality of switch:
Router functionality
1. path selection
2. packet forwarding
3. packet filtering
4. internetwork communication
27.12.2017
Network topologies
1.Bus
2.Mesh
3.Ring
4.Star
5.Tree
6.Hybrid
pc1.....pc2.......pc3
pc1
/ \
pc2- pc3
pc1
/ \pC2
PC4 /
\pc3
pc1
|
-----
Sw
-----
| \
PC2 PC3
IP Address
TCP/IP protocols
28.12.2017
IP Addressing
Ip v4 and V6
429 crores 340, 0000 0000 0000, 0000 0000 0000, 0000 0000 0000
ip version:4
Definition:
32 bit binary number (0 and 1)
X Portion
/ \
Nework Host
X logical address
classification
Class A (0 to 127) 0|000 0000 . 0000 0000. 0000 0000. 0000 0000
0|000 0000 . 0000 0000. 0000 0000. 0000 0001
128
Class B( 128 to 191) 10|00 0000. 0000 0000. 0000 0000. 0000 0000
Class E Reserved
( 240 to 255)
private:
IETF>
128 64 32 16
A:0 - 127
B:128 - 191
C:192 - 223
D:224 - 239
E:240 - 255
10.
172.16....172.31.0.0
192.168.0... 192.168.255.0
subnetting:
General definition
Technical definition
why subnet?
Airtel 10.128.0.0 ( -)
1
cbe -> 10.0.0.0 ...........
tpr -> 172.16.0.0
mumbai -> 172.17.0.0
10.0.0.0
255.0.0.0
10. 0 . 0 . 0
10.0|000 0000. 0000 0000. 0000 0000 ( subnet add)
1|000 0000. 0000 0000. 0000 0001 ( first ip add)
10. 0
Refinement >
8
class c: 254 ip addresses ( 2 - 2 = 256 -2 =254 )
16
class B: 65354 ip addresses ( 2 - 2 = 65536 -2 = 65534 )
( 0 to 127 )
(128 to 191 ) 172.16.0.0 to 172.31.0.0 ->
(192 to 223 ) 255.255.0.0
method : 1
172.16.0.0
255.255.0.0
Network|subnet | host |
2
172.16. 0000 000|0 . 0000 0000 ( subnet add)
0000 001|0 . 0000 0001 ( first ip add)
0000 010|
0000 011
0000 100
0000 101
ping 172.16.2.1
172.16.0.1 to 172.16.1.254
79 x 50 = 3950
172.18.0.0 1. class : B
255.255.0.0 2. Fixed: 2 blocks
Number of subnets: 79 3. n = 7
4. L-> R
step :1 5. Block size:
n n 6. Nsnm: 255.255.254.0
2 = number of subnets, 2 = 79, n = 7
step:2
2
172.18.0000 000|0. 0000 0000
Airtel:
1000 LAN + 999 WaN = 1999 subnets
10.0.0.0
255.0.0.0
Number of subnets : 1999 1. class A
step:1 2. fixed: 1 block
n n 3. n = 11
2 = Number of subnets, 2 = 1999, 4. L-> R
0 5. Block size : 32
2 = 1 6. NsNM: 255.255.224.0
1
2 = 2
2
2 = 4
3
2 = 8
4
2 = 16
5
2 = 32
6
2 = 64
7
2 = 128
8
2 = 256
9
2 = 512
10
2 = 1024
11
2 = 2048
12
2 = 4096
13
2 = 8192
14
2 = 16384
15
2 = 32768
16
2 = 65536
17
2 = 1,31,072
18
2 = 2,62,144
19
2 = 5,24,288
20
2 = 10,48,576
21
2 = 20,97,152
22
2 = 41,94,304
23
2 = 83,88,608
24
2 = 1,67,77,216
32
10. 0000 0000. 000|0 0000. 0000 0000
SBI:
FLSM >
1. subnet based
2. host based
VLSM:
1. host based.
subnet based:
step: 1
n n
2 = Number of subnets, 2 = 199, n = 8
Notes:
step:2 < net> < subnet > < host >
21
172.16.0000 0000| .0000 0000 1. Class: B
0000 0001| 0000 0001
0000 0010 2. Fixed: 2
1111 1110 3. n = 8
1111 1111| 1111 1111 4. L -> R
5. Block size: 1
6. NSNM:255.255.255.0
50 branches x 100
fixed 50 branches:
172.17.254.0
XYZ Ltd:
172.18.0.0
255.255.0.0
step:1 n
2 - 2 = Number of hosts
n
2 - 2 = 250, n = 8 1. class: B
2. fixed: 2
3. n = 8
4. R -> L
step:2
172.18.0.0
172.18.1.0
172.18.2.0
172.18.255.0
192.168.1.0
255.255.255.0
number of hosts: 10
16
192.168.1.0000| 0000
0001
0010
1111
192.168.1.0
192.168.1.16
192.168.1.32
192.168.1.240
1. 172.19.0.0
255.255.0.0
2. 192.168.2.0
255.255.255.0
VLSM
255.0.0.0 = /8
128 6432 16 8 4 2 1
1 1 1 1 1 1 1 1.
255.128.0.0 = /9
255.192.0.0 = /10
255.224.0.0 = /11
255.240.0.0 = /12
255.248.0.0 = /13
255.252.0.0 = /14
255.254.0.0 = /15
255.255.0.0 = /16
255.255.128.0 = /17
255.255.192.0 = /18
255.255.224.0 = /19
255.255.240.0 = /20
255.255.248.0 = /21
255.255.252.0 = /22
255.255.254.0 = /23
255.255.255.0 = /24
255.255.255.128 = /25
255.255.255.192 = /26
255.255.255.224 = /27
255.255.255.240 = /28
255.255.255.248 = /29
255.255.255.252 = /30
192.168.0.0
255.255.255.0
host based
172.20.0.0
255.255.0.0
Number of hosts = 100
128
172.16.0000 0000 . 0|000 0000
172.16.0.0
172.16.0.128
172.16.1.0
172.16.1.128
VLSM
192.168.0.0
255.255.255.0
192.168.0.0/25
192.168.0.128/27
192.168.0.160/30
192.168.0.164
192.168.0.0
255.255.255.0
number of hosts: 20
n
2 - 2 = 20, n = 5
32
192.168.0.000|0 0000
192.168.0.0
255.255.255.0
number of hosts: 2
n
2 - 2 = 2, n = 2
4
192.168.0.0000 00|00
HO.....2 users..........BO1
. .
. .
200 users 60 users
172.21.0.0
255.255.0.0
64
172.21.0000 0000. 00|00 0000
4
172.21.0000 0000. 0000 00|00
172.22.0.0
255.255.0.0
2 users
HO.............Bo1
. .
. .
500 250 users
skyline /25 32 - 25 = 7
2 - 2 = 128 -2 =126
/28 32 - 28 = 4
2 - 2 = 16 -2 =14
192.168.1.0/28
192.168.1.16
192.168.1.32
192.168.1.96/28
97 - 110
192.168.1.112
ip valid:
192.168.1.7
255.255.255.248
192.168.2.239
255.255.255.252
cable Crimping
1. cable UTP ( RJ 45 )
1 1 ( 1->3, 2->6 ) 2 2
UTP cross over cable x X
3 3 6 6
Notes:
1. UTP straight and cross over cable can be used in ethernet connectivity.
10.2.2018
Open standard ( Any vendor router, ex; cisco, juniper, HP, Huawei, ZTE,etc..
fast convergence
Neighbor discovery:
7
metric: 256 x ((10/ minimum bandwidth in kbits ) + (Total-delay/10))
K1 k2 K3 k4 k5
Bandwidth K1 and K3
Reliability
Delay
Loading
Maximum Transmission Unit ( mtu)
Dual algorithm ( Diffusing Update ALgorithm )
D:
client D R ( D O R A )
Server O A
Dhcp client