DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Related

  • Pilot VPC and Advanced NAT: Securely Connect Overlapping Networks to AWS VPC
  • Mastering BGP Neighborship: Effective Troubleshooting Strategies
  • Automate DNS Records Creation With ExternalDNS on AWS Elastic Kubernetes Service
  • 5 DNS Troubleshooting Tips for Network Teams

Trending

  • Unmasking Entity-Based Data Masking: Best Practices 2025
  • Scaling DevOps With NGINX Caching: Reducing Latency and Backend Load
  • From Zero to Production: Best Practices for Scaling LLMs in the Enterprise
  • Immutable Secrets Management: A Zero-Trust Approach to Sensitive Data in Containers
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Monitoring and Observability
  4. EC2 Network Performance Demystified: m3 and m4

EC2 Network Performance Demystified: m3 and m4

Choosing the right AWS EC2 instance for your network can be a challenge, so here are some benchmarks for m3 and m4 instances to help your decision making.

By 
Andreas Wittig user avatar
Andreas Wittig
·
Dec. 18, 17 · Analysis
Likes (1)
Comment
Save
Tweet
Share
7.4K Views

Join the DZone community and get the full member experience.

Join For Free

AWS offers EC2 instances in different sizes, defined by the instance type. How do you decide which instance type to use? Do you need an m4.large or m4.xlarge instance? At a minimum, the following factors should affect your decision:

  • How much memory does the operating system and application need?
  • Does your application benefit from multiple CPU cores?
  • What is the expected network throughput going in and out your instance?

It’s easy to get the information about the memory and CPU capacity of an instance type at Amazon EC2 Instance Types. For example, an m4.large instance comes with two vCPUs and 8 GiB memory. But which network performance can you expect with an m4.large instance? AWS promises a Moderate network performance without any hint how to translate this vague information into GBit/s.

I’ve been dissatisfied with the lack of information about the actual network performance of EC2 instances for a while. Therefore, I remembered the saying my father told me: “Messen heißt wissen!” which translates to “Measuring means knowledge!”.

Over the last few weeks, I’ve measured the networking performance of EC2 instances in the real world, and I’m happy to share the results with you.

Summary of the benchmarking infrastructure:

  • Benchmarking tool: iperf3
  • Instance type of iperf3 server: m4.16xlarge
  • Regions: eu-west-1 and us-west-2
  • Period: every 3 hours from November 22th, 2017 to November 28, 2017

Expect a detailed blog post explaining my benchmark infrastructure in the future.

m3 Instance Family

The benchmark results within the m3 instance family are very consistent with a minimal variance between different measurements. Expect a network throughput from 0.3 Gbps to 1.0 Gbps with m3 instances.

INSTANCE TYPE TARGET MIN MAX AVG STDDEV
m3.medium Moderate 0.32 0.32 0.32 0.00
m3.large Moderate 0.70 1.22 0.70 0.04
m3.xlarge High 1.01 1.01 1.01 0.00
m3.2xlarge High 1.01 1.01 1.01 0.00


The following chart shows the average networking performance of the different m3 instance types.

Network Performance of m3 Instance Family

m4 Instance Family

The variance is much higher between measurements of the same instance type within the m4 family. AWS specifies the network throughput for the m4.10xlarge and m4.16xlarge instance types in detail: 10 Gbps and 25 Gbps.

INSTANCE TYPE TARGET MIN MAX AVG STDDEV
m4.large Moderate 0.47 4.08 0.49 0.25
m4.xlarge High 0.79 2.85 0.81 0.18
m4.2xlarge High 1.01 1.06 1.01 0.00
m4.4xlarge High 2.03 2.73 2.05 0.12
m4.10xlarge 10 Gbps 5.00 9.86 7.22 2.42
m4.16xlarge 25 Gbps 12.42 24.63 23.93 1.20


The following chart illustrates the networking performance of the m4 instance family. The vertical line shows min/max throughput in seconds. The box indicates the average +/- standard deviation.

Network Performance of m4 Instance Family

Summary

When choosing an instance type, the network performance should be one of the main criteria. Especially, for network-intensive workloads. As AWS is only providing very vague information about the networking performance of each instance types our benchmark helps you to avoid bottlenecks caused by the networking capacity of your instances.

Networking benchmarks of other instance families will follow!

AWS Network performance Network

Published at DZone with permission of Andreas Wittig. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Pilot VPC and Advanced NAT: Securely Connect Overlapping Networks to AWS VPC
  • Mastering BGP Neighborship: Effective Troubleshooting Strategies
  • Automate DNS Records Creation With ExternalDNS on AWS Elastic Kubernetes Service
  • 5 DNS Troubleshooting Tips for Network Teams

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: