Optimal Network Performance for EC2 Instances in VPC Peering

Maximize Network Performance for EC2 Instances in VPC Peering

Prev Question Next Question

Question

You have a set of EC2 instances in a VPC located at US-East-1

You need to have optimal network performance on these instances.

These instances will talk to instances in another VPC located at US-East-2 via VPC Peering.

Which of the following should be carried out to ensure maximum network performance? Choose 2 answers from the options given below.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - A and C.

Option B is incorrect since the MTU of 9001 will not work in VPC peering.

The maximum that is allowable in VPC peering is 1500.

For placement groups to work, the instances must be placed in the same availability zone.

The AWS Documentation mentions the following.

Enhanced networking uses single root I/O virtualization (SR-IOV) to provide high-performance networking capabilities on supported instance types.

SR-IOV is a method of device virtualization that provides higher I/O performance and lower CPU utilization when compared to traditional virtualized network interfaces.

Enhanced networking provides higher bandwidth, higher packet per second (PPS) performance, and consistently lower inter-instance latencies.

For more information on Enhanced Networking, please refer to the below URL.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking.html

When we implement intra-region VPC peering jumbo frames provide MTU of 9001 provided that both the instances do support Jumbo frames.

When we implement inter-region VPC Peering, the maximum MTU that we receive with Jumbo frames is 1500.

To ensure maximum network performance between the EC2 instances in the primary VPC and the instances in the secondary VPC located in US-East-2, the following steps should be taken:

  1. Enable Enhanced Networking on the Instances: Enhanced Networking is a feature that provides higher packet per second (PPS) performance, lower network jitter, and lower latencies. It allows for greater network throughput and reduces the load on the CPU, which improves overall performance. To enable Enhanced Networking, the instance type should support it and an appropriate driver should be installed.

  2. Set the MTU on the Instances to 9001: The maximum transmission unit (MTU) is the largest packet size that can be transmitted over the network. Increasing the MTU can improve network performance by reducing the number of packets required to transmit a given amount of data. Setting the MTU to 9001 is recommended as it enables the use of jumbo frames, which can improve network performance.

  3. Ensure the operating system supports Enhanced networking: Before enabling enhanced networking, it is important to ensure that the operating system on the instances supports it. For example, certain older versions of Linux may not support enhanced networking.

  4. Create 2 availability zones for the instances in the primary VPC and place them in a placement group: To improve network performance, it is recommended to distribute instances across multiple availability zones and place them in a placement group. This can improve network performance by reducing network latency and increasing network throughput.

Out of the options given in the question, the correct answers are A and B. Option A recommends enabling Enhanced Networking on the instances, which can improve network performance. Option B suggests setting the MTU on the instances to 9001, which can also improve network performance. Option C is a prerequisite for enabling Enhanced Networking and option D may improve network performance but is not directly related to network optimization between the two VPCs.