An IP addressing plan is a document usually developed by network/design engineers to show how the IP addresses will be distributed among the network devices based on the network architecture or topology in a way that support the required services.
The IP addressing plan:
Yes, AFRINIC still has a pool of public IPv4 addresses from which it issues to its members based on justified need. For more information, please consult the IPv4 Exhaustion Stats page.
Public IP address: an IP address that is a globally unique routable IP address and usually used to connect to or provide service over Internet.
Private IP address: Specific ranges reserved for private internets and usually used for corporate internal network . These ranges of IP addresses must be converted to public IP addresses through mechanisms like Network Address Translation (NAT) before the users can connect to the Internet (RFC1918, RFC4193)
Classless Inter-Domain Routing “CIDR” : A format used to describe IP address. It constitutes of two parts network part and the host part; for example 172.16.16.0/24. The CIDR notation specifies the IP address(172.16.16.0) and the associated routing prefix(/24).
How to calculate the routing prefix in CIDR notation:
Hosts bits >= log2 (no. of required IPs) [Approximate the next integer]
Network bits = 32 – hosts bits
Prefix size = /”Network bits”
Example: A network constitutes of 12 servers, 100 users in separate VLANs. The IT engineer wants to distribute the prefix 172.16.16.0/24 between the two VLANs. What is the network that will be given to each VLAN?
hosts bits >= log2 12
>= 3.584
≈ 4
hosts bits = 4
network bits = 32 – 4 = 28
prefix size = /28
hosts bits >= log2 100
>= 6.644
≈ 7
hosts bits = 7
network bits = 32 – 7 = 25
prefix size = /25
The networks will be: 172.16.16.0/28 for servers VLAN and 172.16.16.128/25 for users VLAN.
Some of the sections below will refer to private IP addresses. Should these private IP addresses being NATed at your network, you must adjust the public IP addresses needs to cater for that. In fact, the private IP addresses have been mentioned in this document only because they are currently a network reality. It is believed that by eliminating NAT and moving towards IPv6, quality of services will enhance dramatically.
NAT aka Network Address Translation is one of the mechanisms used by network operators to compensate for the scarcity of IPv4 resources. In AFRINIC we discourage usage of NAT because it complicates the services provision, break the end-to-end communication model and hinder services evolution. We always encourage our members to get rid of NAT.
Use the questions below to fill in the table in each section where applicable as per network site.
1. You need to determine the requirements for your core network:
Network nodes based on connection type | Layer-3 connection | Layer-2 connection |
No. of nodes | ||
No. private IP addresses per node | ||
No. public IP addresses per node | ||
Total private IP addresses | ||
Private IP addresses in CIDR | ||
Total public IP addresses | ||
Public IP addresses in CIDR |
2. You need to determine the requirements for your connections with the upstreams:
How many WAN connections do you have?
How many IP addresses are needed per WAN?
Usually WAN IP addresses will be supplied by your provider, is this your case?
Calculate the figures as follows:
In case WAN IP addresses are not given by your provider then:
Public IPs = no. of WAN connections x IPs per WAN
No. of WAN connections | |
IP addresses per WAN | |
Total Public IP addresses | |
Public IP addresses in CIDR |
3. You need to determine the requirements for each service that will be provided:
Service List | Service “1” | ….... | Service “n” |
No. of servers | |||
No. of IP addresses per server | |||
Total private IP addresses | |||
Private IP addresses in CIDR | |||
Is it accessible from Internet | |||
No. of public IP addresses per server | |||
Total public IP addresses | |||
Public IP addresses in CIDR |
4. You need to determine the requirements for your end users (if applicable):
Classify your end users based on the provided services. If the end-user has more than one type of service then count it for each service separately. For each end-user category, answer the following questions.
Category List | Category”1” | …..... | Category “n” |
No. of IP addresses per end user | |||
No. of end uses per category | |||
No. of public IP addresses per end user | |||
Total private IP addresses | |||
Private IP addresses in CIDR | |||
Total public IP addresses | |||
Public IP addresses in CIDR |
5. Go through your network, Is there any IP addresses requirements that doesn't fit in the previous mentioned groups? If yes then list them as follow:
6. Now that you have gathered the information, sum the total for each table and fill in the tables below:
Network Segment | Site “A” | ….... | Site “N” |
Core Network | |||
WAN connections | |||
Services | |||
Customers | |||
Additional requirements | |||
Total required IP addresses | |||
Total IP addresses in CIDR |
Network Segment | Site “A” | ….... | Site “N” |
Core Network | |||
WAN connections | |||
Services | |||
Customers | |||
Additional requirements | |||
Total required IP addresses | |||
Total IP addresses in CIDR |
To comply with AFRINIC policies, you will be required to provide your IP addressing plan for both immediate and future need. The future period is specified in the current IP resources management policies. You can read more about these policies at www.afrinic.net.
For any future plan repeat the same procedure taking into consideration the expected growth in each segment. You should be able to generate the same table to manifest your future requirements. The recommended format is to produce plans that shows immediate (0-3 months), medium term (6 months) and future (12 months). Such plans are more accurate and give better granularity which will be helpful in networks management and provision plans.
Company X is a service provider. It provides services like VPN, ADSL, Mobile broadband and dedicated Internet. The company has a customer base of 30,000 ADSL users, 500,000 mobile users and 1000 corporate users that use VPN. The VPN used private IP addresses only with average of 14 IP per user. At max 30% of the corporate customers have dedicated Internet in addition to VPN service, the average IP addresses assigned is 8. Some of the corporate customers prefer to use the uncommitted Internet services like ADSL and MB. Statistics during the peak hour showed that number of concurrent connected users during peak hours is 15,000 in the BRAS and 350,000 in the GGSN.
The recent market research conducted by company X marketing department shows the following:
- ADSL users are expected to grow in rate of 10% per year for the next 3 years.
- MB users will grow by 10%, 12%, 9% for the next three years respectively.
- Dedicated Internet users will decrease by 2% next year but grow at rate 5% per year after that.
- VPN users will increase at rate 7 - 8% for the coming three years.
The network diagram below shows company X network. They have 3 main sites A, B and C. Each site contains two core routers and one router that serve as distribution layer. Each site contains one BRAS, one GGSN and corporate connections. Moreover, site C is connected to the company corporate network where the publicly accessible mail and web servers are hosted in addition to some internal services. DNS, Mail and website services are available in the Internet. The company use active-standby protection for each service. In addition, DNS service is constituted of 4 different servers.
The company currently using IP addresses from its upstream and implement techniques like PAT and NAT to be able to provide services. As part of a new business continuity strategy, they decided to request IP addresses from AFRINIC. They have been requested to submit IP addressing plan.
Following the procedure above, please find the below solution.
There are 3 sites. Each site contains 3 routers, GGSN and BRAS which totals to 5 network nodes. They are connected using layer-3 and managed through private IP addresses. The 3 sites are symmetric, table below shows the requirements per one site.
Network nodes based on connection type | Layer-3 connection | Layer-2 connection |
No. of nodes | 5 | N/A |
No. private IP addresses per node | 0 | N/A |
No. public IP addresses per node | 4 | N/A |
Total private IP addresses | 0 | N/A |
Private IP addresses in CIDR | 0 | N/A |
Total public IP addresses | 20 | N/A |
Public IP addresses in CIDR | /27 | N/A |
The connections between the 3 sites are considered as WAN connections and will be use IP addresses from the requested prefix.
No. of WAN connections | 3 |
IP addresses per WAN | 4 |
Total Public IP addresses | 20 |
Public IP addresses in CIDR | /27 |
Since active-standby mechanism is used, each server is actually two physical servers. Assuming VRRP is used, each server will need 3 different IP addresses.
Service List | ERP | Web | DNS | |
No. of servers | 2 | 2 | 2 | 8 |
No. of IP addresses per server | 4 | 4 | 4 | 4 |
Total private IP addresses | 8 | 8 | 8 | 32 |
Private IP addresses in CIDR | /29 | /29 | /29 | /27 |
Is it accessible from Internet | no | yes | yes | yes |
No. of public IP addresses per server | 0 | 3 | 3 | 3 |
Total public IP addresses | 0 | 6 | 6 | 24 |
Public IP addresses in CIDR | 0 | /29 | /29 | /27 |
The end-users are categorised based on the service type; VPN, ADSL, Mobile Broadband “MB” and Direct Internet “DI”.
Category List | VPN | ADSL | MB | DI |
No. of IP addresses per end user | 14 | 1 | 1 | 8 |
No. of end uses per category | 1,000 | 30,000 | 500,000 | 300 |
No. of public IP addresses per user | 0 | 1 | 1 | 8 |
Total private IP addresses | 14,000 | 30,000 | 500,000 | 2,400 |
Private IP addresses in CIDR | /18 | /17 | /13 | /20 |
Total public IP addresses | 0 | 30,000 | 500,000 | 2,400 |
Public IP addresses in CIDR | 0 | /17 | /13 | /20 |
Summary:
Network Segment | Private IP addresses | Public IP addresses |
Core Network | 0 | 60 |
WAN connections | 0 | 20 |
Services | 56 | 36 |
Customers | 546,400 | 532,400 |
Additional requirements | 0 | 0 |
Total required IP addresses | 546,456 | 532,516 |
Total IP addresses in CIDR | /13 | /13 |
Network Segment | Private IP addresses | Public IP addresses |
Core Network | 0 | 60 |
WAN connections | 0 | 20 |
Services | 56 | 36 |
Customers | 600,402 | 585,352 |
Additional requirements | 0 | 0 |
Total required IP addresses | 600,458 | 585,468 |
Total IP addresses in CIDR | /12 | /12 |
Following the same principles and based on the expected growth plan, the IP addressing could be adjusted to show both 6-months and 12-months future needs. Considering the 6-months and 12-months periods is advisable because it will give more accurate plans.