Jump to Content
Networking

Proactively manage your subnet IP address allocation with Network Analyzer

August 2, 2023
Aurélien Legrand

Strategic Cloud Engineer

Mary Colley

Product Manager

Effectively managing your network’s IP addresses is essential to efficiently operating your enterprise. As a network administrator, observing the usage and growth of your IP address space is essential for capacity planning and proactively avoiding costly downtime. It is also key to identify where IP address allocation is non-optimal and could be resized for better resource utilization.

In order to efficiently manage your network’s IP addresses resources, you should monitor: 

1) The current allocation of IP addresses distributed across your subnetworks

2) High subnet IP Utilization to avoid resource exhaustion

Network Intelligence Center Network Analyzer automatically monitors your VPC configurations to surface network and services issues. Network Analyzer proactively powers subnet IP address management workflows through 2 key insights:

1) IP address utilization summary
Streamlines identifying where IP addresses are nearing depletion, and which IP addresses are being inefficiently under-utilized.

2) High IP address utilization of a subnet range
Enables proactive monitoring of subnet ranges nearing IP exhaustion

Get a Bird's Eye View of your Network’s Subnet IP allocations with the new IP Utilization Summary Insight

Our new Network Analyzer insight IP utilization summary is designed to help Network Administrators better understand their IP address utilization in Google Cloud. It enables you to observe IP address utilization of all the VPCs and subnet ranges in your Google Cloud project, empowering the identification of subnets that:

1) Are reaching full IP address utilization in the future 

2) May be oversized and underused

Using the new IP Utilization Summary Insight

Select a Google Cloud project with a VPC network configured, and record the project ID. Replace the <PROJECT_ID> referenced below with the ID of your Google Cloud project.

1) Enabling the recommender.googleapis.com API in this project

Loading...

2) Getting the IP utilization information for this project

Loading...

Example of output:

Loading...

The attribute allocationRatio represents the percentage of used IP addresses compared to the available IP addresses in your subnet range (identified by the subnetRangePrefix and subnetUri). The allocationRatio will contain a value between 0 and 1, with 1 representing 100% of IP utilization. For example, an allocationRatio of 0.5 represents 50% IP utilization by that subnet. Subnet ranges with 0% IP utilization are excluded from this insight.

This insight takes into account the 4 reserved IP addresses by Google in IPv4 subnets.

Notice that you can see the last refresh date in the “lastRefreshTime” field. Network Analyzer will automatically refresh the IP utilization information every day. You can also trigger a manual refresh of the Network Analyzer insight information. To trigger a manual refresh, navigate to Network Analyzer in the Google Cloud Console and click the “UPDATE” button:

https://storage.googleapis.com/gweb-cloudblog-publish/images/1_-_update_y0hgVnN.max-2000x2000.jpg

Every time this IP utilization information is updated (whether automatically, or manually), a log entry will be created. You can use the following query to navigate to such logs:
jsonPayload.causeCode="IP_UTILIZATION_IP_ALLOCATION_SUMMARY"

https://storage.googleapis.com/gweb-cloudblog-publish/images/2_-_log_view.max-2200x2200.png

You can also use this logging query to understand the historical IP utilization of your subnets at a prior point in time.

Considerations

The IP Utilization Summary insight is accessible programmatically, via the Recommender API, and/or Network Analyzer logs. In the future, this insight is planned to be integrated into the Network Analyzer UI. 

This IP utilization summary insight supports both subnet primary range and secondary ranges. If you are using secondary ranges, the insight will allow you to monitor how many IP addresses are allocated in the secondary range. For example, if you use GKE, you will see how much of the secondary range for pods is allocated with your current GKE nodes.

Learn more

To monitor GKE IP utilization, please take a look at additional Network Analyzer insights documentation.


A special thank you to Network Analyzer Engineering Lead Hongkun Yang for his contributions to this blog post.

Posted in