Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

IP Addresses

IP Addresses, or Internet Protocol Addresses, are unique numerical identifiers assigned to devices connected to a network. They play a crucial role in network communication, allowing devices to send and receive data across the Internet or other interconnected networks.

Here are some key points about IP addresses:

Format of IP addresses:

IP addresses are typically represented in either IPv4 or IPv6 format.

  • IPv4: IPv4 addresses are 32-bit numbers written in decimal format, divided into four octets separated by periods (e.g.,
  • IPv6: IPv6 addresses are 128-bit numbers written in hexadecimal format, divided into eight groups of four hexadecimal digits separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334).

Difference between IPv4 and IPv6:

Address Format32-bit decimal format (e.g., hexadecimal format (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334)
Address SpaceLimited address space (4.3 billion addresses)Vast address space (approximately 3.4×10^38 addresses)
Address RepresentationDotted decimal notationHexadecimal notation
Address ConfigurationManual configuration or DHCPAutoconfiguration, stateless or stateful DHCPv6
Address TypesPublic and private addressesGlobal unicast, unique local, link-local, multicast
Address ResolutionARP (Address Resolution Protocol)Neighbor Discovery Protocol (NDP)
Header FormatFixed-length header (20 bytes)Fixed-length base header (40 bytes) with optional extension headers
FragmentationRouters perform fragmentationFragmentation is handled by the source device
SecurityLimited built-in security featuresImproved security features and IPsec integration
Quality of Service (QoS)Limited support for QoSEnhanced support for QoS and flow labeling
MobilityRequires additional protocols (e.g., Mobile IP)Built-in support for mobility through Mobile IPv6
MigrationCoexistence with IPv6 through transition mechanisms (e.g., dual-stack, tunneling)Transition mechanisms to facilitate the migration from IPv4 to IPv6

Differenece between Public and Private IP Addresses:

Public IP AddressPrivate IP Address
AccessibilityRoutable on the public InternetNot routable on the public Internet
UniqueGlobally unique addressNot globally unique, can be reused in different private networks
Assigning AuthorityAssigned by Internet Service Providers (ISPs) or network administratorsAssigned by network administrators within private networks
Internet VisibilityCan be directly accessed from the InternetNot directly accessible from the Internet
NAT TranslationNot typically subjected to Network Address Translation (NAT)Often subjected to NAT when accessing the Internet
Address RangeReserved ranges allocated by Internet Assigned Numbers Authority (IANA)Ranges specified for private use (e.g., –, –
UsageAssigned to devices that require direct Internet connectivity (e.g., servers, routers)Used within private networks for local communication (e.g., home or office networks)
SecurityMay require additional security measures to protect against unauthorized accessOffers some level of inherent security by limiting direct exposure to the Internet
ScalabilityLimited address space, potential for address exhaustionLarger address space, accommodating more devices within private networks
Public ServicesCan host public-facing services accessible over the InternetTypically used for internal services and communication within the private network

Difference between DHCP and Static IP Addresses:

Address AssignmentDynamic assignment of IP addresses by a DHCP serverManual assignment of IP addresses to devices
Configuration EaseAutomates IP address configurationRequires manual configuration on each device
IP Address ManagementCentralized management by DHCP serverIndividual IP address management for each device
Address RenewalIP addresses are leased for a specific time period and can be renewedIP addresses remain the same until manually changed
FlexibilityAllows for easy reconfiguration and reallocation of IP addressesIP addresses are fixed and do not change over time
ScalabilitySuitable for networks with a large number of devicesSuitable for networks with a small number of devices
AdministrationSimplifies administration by automating IP address assignmentsRequires manual tracking and documentation of IP addresses
Network ChangesAutomatically adjusts IP addresses in response to network changesRequires manual reconfiguration when network changes occur
Network ComplexityWell-suited for dynamic network environments with frequent device additions and removalsSuitable for static network environments with minimal changes
TroubleshootingSimplifies troubleshooting as IP addresses are dynamically assignedRequires manual verification and troubleshooting of static IP configurations
IP Address ConflictLess susceptible to IP address conflicts due to dynamic assignmentPossible conflicts if static IP addresses are assigned incorrectly or duplicated

Difference between Subnetting and Subnet Masks:

SubnettingSubnet Masks
DefinitionDividing a network into smaller subnetworksA binary pattern used to determine the network and host portions of an IP address
PurposeEfficient utilization of IP address space, network segmentation, and better network managementIdentifying the network and host portions of an IP address within a subnet
ResultCreation of multiple smaller subnetworks within a larger networkDivision of an IP address into network and host portions
Address AllocationAllocating IP address ranges to subnetsAssigning subnet masks to devices or subnets
Address RangeDetermining the range of IP addresses available within each subnetN/A
Subnet IdentificationAssigning a unique subnet ID to each subnetN/A
Addressing FlexibilityProvides flexibility in allocating IP addresses to different subnetsDetermines the size of the network and host portions within a subnet
RoutingFacilitates routing between different subnetsUsed by routers to determine the network portion for routing decisions
CommunicationDevices within the same subnet can communicate directly without routingCommunication between different subnets requires routing
Network SegmentationEnables logical separation of networks for security, performance, and management purposesN/A
Subnet Mask FormatExpressed in decimal format (e.g., or CIDR notation (e.g., /24)N/A
Subnet Mask UsageApplied to IP addresses using a bitwise AND operation to determine the network and host portionsN/A