Free mock test
IP Addressing, Protocols and Ports

IP Addressing, Protocols and Ports

Networking and Internet · 2 min read

IPv4 and IPv6

IPv4IPv6
Size32 bits128 bits
FormatFour numbers 0 to 255 separated by dots: 192.168.1.10Eight groups of hexadecimal: 2001:0db8:85a3::8a2e:0370:7334
AddressesAbout 4.3 billionPractically unlimited

An IP address is the logical address of a device on a network. A MAC address is the physical 48-bit address burned into the NIC, written in hexadecimal (for example 00:1A:2B:3C:4D:5E).

IPv4 classes

ClassFirst number rangeDefault maskUse
A1 to 126255.0.0.0Very large networks
B128 to 191255.255.0.0Medium networks
C192 to 223255.255.255.0Small networks
D224 to 239NoneMulticasting
E240 to 255NoneExperimental

127.x.x.x is reserved for loopback (127.0.0.1 = "localhost", your own computer). Private ranges (not routable on the Internet): 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255, 192.168.0.0 to 192.168.255.255.

Worked examples. 172.20.5.9 starts with 172, so it is Class B. A /24 network (mask 255.255.255.0) has 2^8 = 256 addresses, of which 254 can be used for hosts (one is the network address, one the broadcast).

Key network protocols

ProtocolFull form and usePort
HTTPHyperText Transfer Protocol: web pages80
HTTPSHTTP Secure (SSL/TLS encryption)443
FTPFile Transfer Protocol21 (control), 20 (data)
SSHSecure Shell: safe remote login22
TelnetRemote login, not secure23
SMTPSimple Mail Transfer Protocol: sends email25
DNSDomain Name System: name to IP address53
DHCPDynamic Host Configuration Protocol: gives IP addresses automatically67 and 68
POP3Post Office Protocol: downloads email110
IMAPInternet Message Access Protocol: reads email on the server, synced across devices143
SNMPNetwork management161
RDPRemote Desktop Protocol3389
ICMPUsed by ping to test reachabilitynone

Other terms: NAT lets many private devices share one public IP. ARP finds a MAC address from an IP address. ping tests a connection; ipconfig (Windows) and ifconfig or ip a (Linux) show the IP settings; tracert shows the route of packets.

Keep practising

Notes are only half the work. Test yourself with questions and discuss doubts with other aspirants.

Prepared for exam revision from standard computer textbooks, Microsoft documentation and official sources. Features differ between Excel and Word versions (2016, 2019, 2021, 365) so check which version your exam follows. Found a mistake? Tell us.