Kloudle
academy

Getting started with AWS ELB - Network Load Balancer

Riyaz Walikar
#aws#cloudsecurity#networkloadbalancer
Feature image

Introduction

AWS Elastic Load Balancer helps to manage and control the flow of inbound requests destined to a group of targets by distributing these requests evenly across the targeted resource group. These targets could be a group of EC2 Instances, Containers, Lambda functions or a range of IP addresses.

Depending on the traffic distribution there are different types of ELBs available within AWS including Application Load Balancer, Network Load Balancer, Gateway Load Balancer, and Classic Load Balancer.

In this article we will focus on Network Load Balancer. Network Load Balancers are used for ultra high performance while at the same time maintaining very low latencies. It operates at the connection level, routing traffic to targets within your VPC. It is capable of handling millions of requests per second. The Network Load Balancer works at layer 4 of the OSI model, which is the Transport layer, enabling you to balance requests purely based on TCP and UDP protocols.

Creating a Network Load Balancer on AWS

Following are the steps to create a Network Load Balancer on AWS:

  1. Login to AWS account by the link https://aws.amazon.com

  2. Navigate to EC2 Console.

  3. On the Left side panel select Load balancers

    EC2 dashboard

  4. Once the Load Balancer console opens select Create Load Balancer

    Create Load Balancer

  5. Select the load balancer type as Network Load Balancer and click on **Create **button

    AWS load balancer type

  6. Enter the name you want to give to the Load balancer under the Basic Configuration section

    Network load balancer Name

  7. Select the **Scheme as required. **When you create a load balancer, you have to choose whether to make it an internal load balancer or an internet-facing load balancer. In internet-facing load balancer nodes have public IP addresses. In internal load balancer nodes have only private IP addresses.

    Network load balancer Scheme

  8. Select the IP Address type

    Choose IPv4 if your clients use IPv4 addresses to communicate with the load balancer, or choose Dualstack if your clients use both IPv4 and IPv6 addresses to communicate with the load balancer.

    Network load balancer IP Address type

  9. For Network Mapping select the VPC and enable at least one Availability Zone, to increase the fault tolerance. Also select the subnet for each zone.

    Network load balancer network mapping

  10. In the Listeners and routing section configure the protocol and port. Traffic received by the listener is then routed per your specification. You can specify multiple rules and multiple certificates per listener after the load balancer is created.

    Network load balancer listeners

  11. Add Tags to your Load Balancer. Though this is a good practice, but this is optional

    Network load balancer Tags

  12. Once done with the configuration of the Load Balancer, check the Summary section and go through all the details you have provided. Then select Create Load Balancer and the load balancer will be created successfully.

Conclusion

This article is a quick walkthrough of how you can create a Network Load Balancer on AWS. It serves as a step by step guide for those who are looking to get started with AWS Network Load Balancers.

You can also check out How to create Application Load Balancer on AWS as covered in our last academy article.

← Back to Academy