×

APIPA: Automatic Private IP Addressing

What is APIPA?

APIPA stands for Automatic Private IP Addressing. It is a word used by Microsoft to describe address auto configuration, which enables a Local Area Network (LAN) computer to assign itself a distinctive IP address when Dynamic Host Configuration Protocol (DHCP) is not available. Employing the network management protocol known as DHCP, businesses can dynamically allocate IP addresses and other network settings to devices or nodes on their networks. The necessity to manually assign IP addresses to the controlled devices is removed by DHCP-based services, which automatically manage client network configurations from a central server.

Small businesses to large enterprises all can use DHCP to support their various network sizes. When DHCP servers are down, DHCP clients can still get IP addresses thanks to APIPA. Except for Windows NT, APIPA is present in all current versions of Windows. Unless the Registry of the computer is changed to disable it, it is enabled on all Windows DHCP clients. Additionally, network adapters can be configured to support APIPA. It is also known as Auto-IP, Auto-Net, or DHCP failover method (for local networks).

Since Windows 98 and Windows ME, Dynamic Host Configuration Protocol clients have had access to Automatic Private IP Addressing (APIPA), which allows them to dynamically assign IP addresses to themselves in the absence of a DHCP server. APIPA facilitates the configuration and maintenance of small LANs and acts as a DHCP server failover mechanism.

History of APIPA

Initially, the IPv4 address block 169.254.0.0/16 (169.254.0.0 - 169.254.255.255) has been set aside by the Internet Engineering Task Force (IETF) for link-local addressing. Traffic overload increases because of the simultaneous use of IPv4 addresses with various scopes. The link-local addresses are assigned to interfaces and are stateless in nature, allowing for the establishment of connection even in the absence of a response from the DHCP server. The address autoconfiguration technique is thus referred to by Microsoft as "Automatic Private IP Addressing (APIPA)".

How does APIPA work?

A DHCP client computer tries to contact a DHCP server whenever it connects to the network. If a server is available, it will give the DHCP client an IP address and other network information. A DHCP server might not be available in some circumstances. For instance, the server can be momentarily unavailable, or the network might not have any DHCP servers.

When this happens and APIPA is turned on, the client computer chooses an IP address from a list of predetermined addresses (ranging from 169.254.0.0 to 169.254.255.255) and assigns it to itself automatically. To avoid conflicts with DHCP routable addresses, the Internet Assigned Numbers Authority (IANA) allocates these addresses expressly for APIPA use cases.

The DHCP client employs the Address Resolution Protocol (ARP) as part of the APIPA assignment procedure to make sure the selected address isn't already in use by another network computer. Once the client has issued itself an IP address, it can communicate with other computers on the LAN using TCP/IP with a subnet mask of 255.255.0.0 that are either manually configured for APIPA or with the correct address range.

Advantages of APIPA

  • Even if the DCHP client has previously got an IP address from the DHCP server, using the APIPA service can be advantageous.
  • This is accurate even if the lease at that address has already run out.
  • A DHCP client usually notifies the user when it switches between DHCP and APIPA addressing.
  • In some circumstances, depending on the OS and how the DHCP client is set up, APIPA can be disabled even though it is enabled by default.
  • Because APIPA may allocate IP addresses to networking hosts if DHCP fails, it can be used as a backup for DHCP.
  • Inappropriate broadcasting is stopped.
  • ARP (Address Resolution Protocol) is used to verify that the address isn't already in use.

Disadvantages of APIPA

  • The network can be slowed down by APIPA IP addresses.
  • Unlike DHCP, APIPA does not have a network gateway.
  • Use of APIPA addresses in local area networks is restricted.
  • Devices with APIPA configuration adhere to the peer-to-peer communication rule.
  • It adheres to the peer-to-peer communication norm and only allows usage of the addresses within the local area network.

Characteristics of APIPA

  • In the event of a DHCP server failure, APIPA establishes correct connectivity.
  • The primary DHCP server's response and status are controlled by APIPA for a predetermined amount of time.

Related Topics

TCP Ports

What is TCP? TCP is a transport layer protocol that helps to establish connections. TCP means Transmission Control Protocol. It guarantees secure data transmission between two network-connected devices. The data can...

5 minutes read.

Classes of Routing Protocols

In this tutorial, we will discuss about the classes of the routing protocols. Routing: What is it? Routing in computer networks is a procedure in which the layer 3 or network layer...

7 minutes read.

Computer Network Switching

Switching Many numbers of connected devices are called the network. Whenever a company has multiple devices, there has a problem of how to connected them to make the one to one...

5 minutes read.

What is Framing in a Computer Network?

In the stream of bits, the data is stored by transmitting the bit by the connection of two devices through cable. This type of connection for data transmission is called...

6 minutes read.

Session Layer and Presentation Layer

Session Layer and Presentation Layer Session Layer The fifth layer is the Session layer in the OSI model, which controls connections between many computers. It manages, establishes, and terminates the session connection...

2 minutes read.

Two Port Network in Computer Networks

A Two Port Network is a four-terminal electric network or circuit with 2 terminals on both sides, each connecting with more circuits or devices. Two terminals together make a port, one...

5 minutes read.

Fixed and Flooding Routing Algorithms

Introduction Before going to study fixed and flooding routing algorithms, we have to take a look back to revisit the topic of routing. Routing can be defined as Routing: What is it? Routing...

3 minutes read.

Advantages and Disadvantages of WAN

Before we move to advantages and disadvantages of WAN, first we discuss about what is WAN and what are its features. A wide area network is a vast network of information...

4 minutes read.

E-mail in Computer Network

E-mail E-mail stands for electronic mail. E-mail is an application layer service in which a user can transfer the messages and information with another user. E-mail is the most popular service...

2 minutes read.

Supernetting in Network Layer

Introduction Supernetting is one of the main topics in data communication networks or computer networks. The network aggregation goes by many names, such as supernetting, route aggregation, summarization, and so on....

6 minutes read.

Computer Network Topology: Bus, Star, Ring, Tree and Hybrid

Network Topology: The Computer network topology refers to the layout of connected devices on a network. The network topology is the combination by which computer or network devices interconnected to...

4 minutes read.

Hamming Code Example

What is Hamming Code? Hamming code is an error-detecting and error-correcting code used in computer data storage and transmission to detect and correct errors caused by noise, interference, or data corruption....

4 minutes read.

Integrated Services Digital Network (ISDN)

Integrated Services Digital Network (ISDN): ISDN means Integrated Services Digital Network. ISDN was developed by ITU-T in the 1980s. These are digital telephony and data transport services offered by regional...

3 minutes read.

Cryptography in Computer Network

Cryptography: Cryptography is derived from the Greek word, which means "Hidden Secrets." In other words, it is an art in which we can protect our data and information. Through cryptography,...

2 minutes read.

Define Framing in Computer Network

Framing is a function of the data link layer, which provides a way for a sender to transmit a set of bits that should be meaningful to the user. The...

7 minutes read.

Domain Name System in Computer Network

Domain Name System Domain Name System is also called DNS. DNS was introduced by Paul Mockapetris and Jon Postel in 1983. DNS is an internet service that converts Domain names to...

2 minutes read.

IPv4 vs IPv6

What is an IP? The process or protocol used to transmit data from one computer to another over the internet is known as Internet Protocol (IP). Every computer connected to the...

5 minutes read.

Data Link Control

Data Link Control Data-link control is the main function of the data link layer. It deals with the configuration and coordination for connection between two neighboring nodes: node-to-node communication. The task...

10 minutes read.

Data Link Layer Protocols

 Data Link Layer Protocols Bluetooth Low EnergyZ-WaveZigBee Smart EnergyLoRaWANWirelessHARTLTE-A  1. Bluetooth Low Energy Bluetooth Low Energy or Bluetooth is a short-range communication protocol with the physical layer and medium access control layer. It is widely used in IoT...

3 minutes read.

Transmission Media

Transmission Media: The physical layer directly controls transmission media. A transmission medium is a way which transmits the data from one place to another. It carries the data from source...

5 minutes read.