Some notes from when I was still learning the basics of networking and the IP structure. Maybe these could be of some use to anyone.
IP Address -> 2 parts (Network + Host)
192.168.0.1 -> Public Address
255.255.255.0 -> SUbnet Mask (Used to determine network portion)
Binary Scale = 128 — 64 — 32 — 16 — 8 — 4 — 2 — 1
Andding Process
Works with binary
[ Octect ]
– IP in Binary = 4x8bits = 32 bits
[192.168.0.1] 1 1 0 0 0 0 0 0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 1
- Subnet Mask in Binary = 4x8bits = 32 bits
[255.255.255.0] 1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 0 0 0 0 0 0 0 0
- Network Portion (IP) = 4x8bits = 32 bits [Replaces Host part of IP]
[192.168.0.0] 1 1 0 0 0 0 0 0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
Example
– IP [192.168.241.38]
– Subnet [255.255.224.0] 224 (Binary) = 1 1 1 0 0 0 0 0
[Last digit 1 in the binary is equal to 32]
.0
.32
.64
.96
.128
.160
.192
.224
.256 [Invalid it passes 255]
8bits 8bits 8bits
Class A [Network . Host . Host . Host]
^- 0–126 (127)
Always Starts [Binary] = 0 _ _ _ _ _ _ _
Number of useable host 2^power(n) — 2 [n = # of bits]
2^power(24) = 16,777,214 Host
Default Subnet: 255.0.0.0
Network Portion: 8bits
Host Portion: 24bits
8bits 8bits
Class B [Network . Network . Host . Host]
^- 128–191 [Range]
Always Starts [Binary] = 1 0 _ _ _ _ _ _
Default Subnet: 255.2550.0.0
Network Portion: 16bits
Host Portion: 16bits
8bits
Class C [Network . Network . Network . Host]
^ — 192–223 [Range]
Always Starts [Binary] = 1 1 0 _ _ _ _ _
Default Subnet: 255.2550.255.0
Network Portion: 24bits
Host Portion: 8bits
Class D
^ — 224–239 [Range] [Multicast Channel]
Always Starts [Binary] = 1 1 1 0 _ _ _ _
Class E
^ — 240–247 [Range] [Experimental Channel]
Always Starts [Binary] = 1 1 1 1 0 _ _ _
NAT– Network Address Translator
Wire Address = First number in the class range
Broadcast Address = Last Number in the class range
Example Class A
– 0 = Wire Address
– 127 = Broadcast Address [Loopback]
Breakpoints = Class starting binary — 255
Example Class A = 0 _ _ _ _ _ _ _
0 1 1 1 1 1 1 1 -> 255 — 128 = 127
Binary Decimal Total
[1] -> 1 1 1 1 1 1 1 1 = 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255
[5] -> 1 1 0 1 1 1 0 1 = 128 + 64 + 16 + 8 + 4 + 1 = 221
[2] -> 0 0 1 1 0 1 0 1 = 32 + 16 + 4 + 1 = 53
[3] -> 1 1 1 0 0 1 0 0 = 128 + 64 + 32 + 4 = 228
[4] -> 1 1 1 0 1 1 1 1 = 128 + 64 + 32 + 8 + 4 + 2 + 1 = 239
5 -> 1 0 1 0 1 0 1 0 = 128 + 32 + 8 + 2 = 170
192.168.2.1/24 -> 24 = Number of network bits or subnet mask bits
24/8 = 3 Octects = 3 Networks and 1 Host
N N N H [N = Network, H = Host]
192 . 168 . 2 . 1
Possible Subnets /24
/16
/8
/30
[32 bits = total bits in an IP Address]
Number of possible host -> /24 -> 32 — 24 = 8 bits 2^8 — 2 = 254 Possible Host
Private Network Address’s [Not allowed to access the internet]
Class A [10.0.0.0] /8 Subnet Mask
Class B [172.16.0.0 <-> 172.31.0.0] /16 Subnet Mask
Class C [192.168.0.0] /24 Subnet Mask
Local Area Netork [Private Address] -> NAT (Network Address Translation) -> Internet
Private IP Public IP
Unicast Source Destination 202.18.1.4/24 Network-[202.18.1.0] Host-[4]
IP Multicast Source Destination 168.21.1.14/16 Network-[168.21.0.0] Host-[14]
Broadcast Source Destination 168.21.1.14/16 Network-[168.21.0.0] Host-[14]
168.21.1.14 = 1 0 1 0 1 0 0 0 . 0 0 0 1 0 1 0 1 . 0 0 0 0 0 0 0 1 . 0 0 0 0 1 1 1 0
Subnet = 1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
ANND = 1 0 1 0 1 0 0 0 . 0 0 0 1 0 1 0 1 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
IP Host = 168 . 21 . 0 . 0
Wire Address (Network Address) 192.168.0.0 Never assigned to a computer, the 0.0 presents the wire address.
. 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 1 [First usable host]
. 1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 [Broadcast Address]
124.10.11.2/28
255.255.255.240
124.10.11.0 (network use ANNDING to find it)
1 1 1 1 0 0 0 0 0 = 240 1 1 0 1 1 1 1 1 = 224 [IP]
0 0 0 0 0 0 0 1 0 = 2 1 1 1 1 0 0 0 0 = 240 [Subnet]
0 0 0 0 0 0 0 0 0 = 0 1 1 0 1 0 0 0 0 = 208
124.0.11.0 1 14 15 Broadcast
.16 2
.32 3
.48 4
.64 5
.80 6
.96 7
.112 8
.128 9
.144 10
.160 11
.176 12
.192 13
.208 14
.224 15
.240 16
.256 -> Broadcast
10.10.21.38/9 What is the wire Address?
What is the subnet mask?
13 bits for network /13 _ _ _ _ _ _ _ _ | _ _ _ _ _ [Last digit in binary string = the amount of steps.
Multicast — Group of host MAC (GET THIS INFO)
Broadcast — All MAC FFFF FFFF FFFF
255.255.255.255
IP Address Systems
– Static [Manually Assigned]
– Assigned manually
IP Address
Subnet Mask
Default Gateway
– Dynamic [Automaticly assigned by software — DHCP Sever]
– Assigned Automaticly
IP Address
Subnet Mask
Default Gateway
These notes are property of Bryse Meijer