IPv4 Addressing

Network Address

A host determine its network address by performing AND operation between IPv4 address and subnet mask.

  • The first address is the network address and the last address is the broadcast address.
  • The source device can determine if the detination device belongs to romote network so that it choose to send the data to the local device directly or to the default gateway for forwarding to another network.

Type of addressing

Unicast

Send data to a single address.

Broadcast

  • Directed Broadcast
    • Send data to all devices of a specific network or subnet.
    • Broadcast address is the last address of the network.
    • Send data to another network is allowed by configuring the router

router(config-if)#ip directed-boradcast

By default, IP directed broadcast is disabled by the device due to the security concern

  • Limited Broadcast
    • Send data to all devices on a local network
    • Address is always 255.255.255.255
    • Router will not forward the message
      IPv6 has no broadcast address

Multicast

It reduces the traffic compared to Broadcast by sending data to a set of hosts that subscribe to a multicast group.

  • Class D address is reserved for the multicast
    • 224.0.0.0 ~ 239.255.255.255

NAT (Network Address Translation)

Due to the depletion of IPv4 addresses, many organizations use private IP addresses within their network. These addresses do not need to be unique globally, and they share a public IP address. However, in order to locate devices within the private network, Network Address Translation (NAT) is needed.
NAT translates the private IP address which is not unique globally and used in the local network to the publish IP address. This is usually done by the router connects to the internal network and ISP network.

  • Private IP address
    • 10.0.0.0/8
    • 172.16.0.0/12
    • 192.168.0.0/16

DMZ (Demilitarized Zone)

A physical or logical subnet that seperated the internal and external network. In order to pretect the organization’s assets from the external threats, the DMZ created a addtional layer of security. The devices in the DMZ usaully have public address.

Broadcast Domain

Becasue the router does not propagate the broadcast and it discards the packets so each interface on the router connects to a broadcast domain.

Both IPv4 and IPv6 address are managed by IANA (Internet Assigned Number Authority), IANA managed and allocated the IP addresses to RIRs (Regional Internet Registries) and the RIRs are responsiable to allocate the IP address to the ISPs

Subnet

To make the best use of IP addresses and reduce broadcast traffic, subnets are commonly used. By borrowing bits from the host portion of the address, we can create more subnets with fewer hosts per subnet. This technique is known as subnetting.

VLSM (Variable-Lenghth Subnet Mask)

Normally, subnets are created with an equal number of hosts, but it can be a waste if fewer hosts are needed. VLSM allows for the creation of subnets with different sizes to accommodate varying numbers of hosts. Based on the existing subnet, VLSM can borrow more bits from the host bits to create variable length subnets.

Leave a Comment

Your email address will not be published. Required fields are marked *