
This lectures captures the summary of Amazon VPC and related networking components. This gives a very high level overview of all AWS networking components and relevant use cases. Its important to get the big picture before we deep dive into individual components later in this course.
We have also included good amount of hands on labs in this course however considering the length of the course it's not possible to add labs for all the topics.
Hope you get the most out of this course! All the best !
Let's talk about the section agenda and topics we are going to cover.
For beginners, often it's confusion to visualize the scope of the VPC and how it maps to AWS account, Region and Availability Zone. Before we dive deeper into VPC components let's first put the things in perspective here.
The main components of the VPC are - VPC, CIDR, Subnet, Route tables, Internet gateway, Security group, Network ACL and DNS.
Please note that there is no official definition of core components of the VPC that AWS provides and it need not be categorized as core components but its good to understand the purpose and functionality of these component as they form the base of VPC working.
We will start with basics of Network Private address space. Earlier the network address ranges were defined in the form of Address classes e.g Class A, Class B, Class C etc. The different classes defines how many bits out of 32 bits of IPv4 address are used for network address and how many bits are available for host addressing.
However with CIDR (Classless Interdomain Routing), we can represent all types of IPv4 addresses using IP Prefix. In this lecture, let's understand how Amazon VPC addressing works and how to calculate Classless Inter domain routing (CIDR) for your VPC and subnets.
Route table defines the routing rules which are used to route traffic through different network paths e.g through internet gateway or nat gateway or any other networking component inside VPC.
Let's understand how routing works inside VPC and deep dive into VPC Main route table and custom route tables.
In AWS, you can assign Public or Private or both addresses to EC2 instances. This will depend on your architecture. In this lecture lets understand different types of IP addresses i.e Private, Public and Elastic and also understand IPv4 and IPv6 addresses.
Security group is first level of defense for EC2 instances. These are stateful firewalls and must be configured while setting up EC2 instances. In this lecture, let's understand Security groups, Inbound/outbound rules, statefulness of traffic and more.
Network ACL (NACL) is the 2nd level of defence. These are stateless firewall which works at subnet level. In this lecture, let's understand Network Access Control List, difference between Security group and Network ACL and when to use what depending on the traffic you want to allow or deny.
AWS creates default VPC in every region so that you can start launching EC2 instances right away. Let's understand how the subnets and route tables are configured in default VPC and what it means.
Create VPC and single Public subnet. Launch EC2 instance in this subnet and connect over SSH.
Add private subnet into existing VPC (Created earlier) and see inbound and outbound connectivity for the instance launched inside Private subnet.
Understand the NAT concept and AWS managed NAT Gateway. See how to route the outbound internet traffic from instances inside Private subnet through NAT gateway. Also understand the benefits of NAT gateway.
Add NAT gateway to existing setup (that we created earlier) and route the outbound internet traffic from private subnet via the NAT gateway.
NAT gateways are HA within single AZ. Learn about the architecture for Highly Available NAT Gateway across AZs.
You can also setup NAT on EC2 instance. For this you should use NAT AMI and also you need to disable the Source/Destination check so that NAT EC2 instance can accept traffic from other EC2 instances (in private subnet) and forward the traffic to internet. Also see the benefits and downside of using EC2 based NAT.
Important points to remember for the exam
In this section, we will cover the topics which are somewhere between VPC basics and advance but important for your exam.
You can extend the VPC CIDR by adding secondary CIDRs. However there are certain restrictions while you add secondary CIDR. It's important to know these restrictions for the exam.
Let's revisit the Elastic Network Interface and its features. Its important topic in the exam.
AWS allows you to bring your own IPv4 and IPv6 public IP address ranges. You can assign these IP addresses to EC2, NLB or NAT gateways.
AWS VPC uses the virtual DNS server which runs within VPC at VPC Base address + 2 IP address (e.g 10.0.0.2 for VPC 10.0.0.0/16). This DNS server is responsible for resolving the DNS queries for your VPC. It integrates natively with Amazon Route53 DNS service and also handles the public DNS queries by sending queries to public DNS server.
In this lecture, lets understand how DNS server is configured and used when you create VPC.
Note that we are yet not talking about Amazon Route53 service and it has wider scope beyond the VPC. We will have dedicated session covering Amazon Route53 service.
DHCP option sets are used for the DHCP configurations for the VPC. In this lecture, let's understand how you can change the DHCP Options set for VPC and how the change is propagated for EC2 instances inside VPC. Also we will cover important points with respect to DHCP Options sets that you need to remember for your exam.
We want to have corp.internal domain name for EC2 instances. For this we will configure custom DHCP Options set and Route53 Private Hosted zone. This is a hands on (demo) exercise.
For organizations which operate in hybrid mode where some workloads run on-premises and some in cloud, its important to have seamless DNS resolutions across both sides of the network. For this, AWS provides Route53 Resolver endpoints (inbound & outbound) which can be used to configure the DNS queries to be sent to on-premises to AWS Private hosted zone and from AWS VPC to on-premises DNS server.
Let's recap all the important concepts and features with respect to DNS resolution within the VPC. Note that we are yet not talking about Amazon Route53 service and it has wider scope beyond the VPC. We will have dedicated session covering Amazon Route53 service.
Let's understand the basics of network performance. First we will understand the common terms used while talking about network performance e.g bandwidth, latency, jitter, throughput, PPS, MTU etc and then we understand how MTU (Maximum Transmission Unit) affects the network performance.
In this lecture, we will setup the ground for lectures coming next where we will see various network performance optimization techniques.
When you need to have lowest network latency and highest network bandwidth between EC2 instances its recommended to launch EC2 instances within a cluster placement group. Placement group launches EC2 instances at one go and possible on the same physical hardware in same AZ in same region. This obviously helps reduce multiple network hops and provides the lowest possible latency between EC2 instances. In order to have the dedicated network bandwidth its also recommended to use EBS optimized EC2 instances where EC2 is allocated dedicated bandwidth to access EBS volumes and hence the EC2 uses its full network bandwidth for communication with other hosts.
One of the most important lecture for your exam. AWS provides various ways to further enhance the network performance of EC2 instances. With enhanced networking you can get upto 25 Gbps bandwidth between EC2 instances. There are different ways in which you can enable enhanced networking and that depends on EC2 instance type, AMI and network driver support.
Data plane development kit (DPDK) is a set of libraries using which you can bypass the kernel (OS) while sending the network packets over the network. This improves your Packer per second performance and helps reduce network latency further.
Elastic Frabric Adapter (EFA) is ENA with added networking capabilities. It also provides the functionality to bypass OS there by lowering network latency. EFA is used in case of High Performance computing (HPC) workloads.
For exam, its essential to know all the bandwidth limits when communication happens between various AWS resources inside VPC and outside VPC. In this lecture we will summarize the maximum bandwidth EC2 can get when it communicates with other EC2 instances which are located inside same VPC or across VPC peering or its communicating with on-premise server over VPN or direct connect. We will also cover some more scenarios e.g bandwidth for accessing S3.
Like there are EC2 instances which receives CPU credits for not using allocated CPU for long period of time, there are also EC2 instances which receives Network I/O credits for not using the full bandwidth. These instances are good candidate for the use cases where you want to have higher network bandwidth during small amount of time in a day and otherwise low network bandwidth is required. Make sure that you don't use these EC2 instances for Network performance benchmark testing because they might perform over and above the allocated network bandwidth due to accumulated credits and when deployed in production they might fall back to the base performance causing sub-optimal inconsistent experience.
Let's recap what we learnt about Network performance in AWS and various techniques to improve the performance.
This lecture covers the important points with respect to Network performance and optimization and its good to remember these points for your exam.
Section introduction
- VPC Flow logs
- VPC traffic mirroring
- VPC Reachability Analyzer
- Network Access Analyzer
You can capture the traffic flowing in/out of VPC using VPC Flow logs. These logs can be sent to CloudWatch or S3 or Kinesis Firehose and can be later analyzed using Athena or CloudWatch Insights or 3rd party logs analysis tools. Flow logs are collected at ENI level, Subnet level or VPC level.
VPC Traffic mirroring allows to mirror the traffic from source ENI to destination ENI or NLB without any performance impact on your source network. Traffic mirroring can be used to copy network traffic from an elastic network interface of Amazon EC2 instances. You can then send the traffic to out-of-band security and monitoring appliances for content inspection or threat monitoring. The security and monitoring appliances can be deployed as individual instances, or as a fleet of instances behind a Network Load Balancer with a UDP listener. Traffic Mirroring supports filters and packet truncation, so that you only extract the traffic of interest to monitor by using monitoring tools of your choice.
Next, let's see couple of VPC features which helps you analyze the traffic reachability and compliance using newly launched VPC features such as VPC reachability Analyzer and VPC Network Access Analyzer.
VPC Reachability Analyzer can be used to troubleshoot the network connectivity issues such as you are not able to access EC2 instance or EC2 instance is not able to access internet or traffic is not flowing through the vpc peering connection likewise. It provides you hop-by-hop analysis of the traffic flow and tell what is blocking the traffic.
In this lab, let's troubleshoot the network connectivity issue to our EC2 instance. In this lab we will misconfigure route table, NACL and Security group and see how Reachability Analyzer detects the problem.
In this lecture, let's understand how Network Access Analyzer helps detect the non-compliant network configurations in your AWS account by analyzing all the network components such as Route tables, Security Groups, Network ACL, VPC peering, Transit Gateway etc.
In this lecture, lets see why private connectivity is important and what are some of the ways in which you can establish private connectivity between AWS VPC and other AWS services/components. We will primarily cover VPC peering in this section. Other options like VPC endpoints will be covered in the following section.
Let's understand what is VPC peering and why you should use VPC peering when you want the VPCs to communicate with each other over AWS private network or say AWS backbone network. We will also talk about the pre-requisites and limitations when you want to setup VPC peering connection between VPCs in the same region or VPCs across AWS regions.
Let's setup a VPC peering connection between VPCs across AWS regions and then verify that traffic is actually flowing through the peering connection.
Note: Remember to delete all AWS resources that you create during this exercise.
VPC peering does not support transitive routing and hence you can't access various networking components from peered VPCs. This lectures presents all those scenarios where VPC peering won't allow the traffic to flow through. Its important for your exam to understand where VPC peering connection won't be sufficient to have the required connectivity.
VPC endpoints provides the private connectivity between VPC and AWS services endpoints. With endpoints you don't need to have the Internet gateway or NAT gateway provisioned inside VPC to access AWS services like S3, DynamoDB, SQS, API Gateway or more. VPC endpoint improves the security posture and also provides consistent and robust network connectivity between VPC and AWS services endpoints.
Let's understand VPC Gateway endpoint which provides the private connectivity to access S3 and DynamoDB from your VPC. For using VPC gateway endpoints you need to modify the subnet route table and add a rule so that traffic to S3 or DynamoDB in the same AWS region will flow through the gateway endpoint.
Let's setup VPC and create VPC gateway endpoint to access S3 bucker from EC2 instance. We will check that EC2 can't access internet but it can still reach to S3 endpoint and download/upload data from S3 bucket. This connectivity is established using VPC gateway endpoint.
VPC endpoints provides additional layer of security in the form of IAM policies for endpoints where you can define which S3 bucket can be accessed from given endpoint. This limits the blast radius in case network intrusion happens.
Also, you can restrict access using S3 bucker policy where access can be granted to a specific endpoint using endpoint id.
Because VPC gateway endpoint is actually a gateway managed by AWS its not possible to access gateway endpoint from remote network like via VPC peering connection or Virtual Private Network (VPN) or DirectConnect.
VPC interface endpoint is technically different than VPC gateway endpoint in the sense that it creates an ENI into your Subnet and you access the AWS service endpoint via the ENI. Hence you don't really modify the route table to access the VPC interface endpoint but rather send the traffic to ENI and it will reach the AWS service endpoint for which VPC interface endpoint is created.
In this exercise we will create VPC interface endpoint for SQS service and then put message into the SQS from EC2 instance. The traffic from EC2 to SQS goes over interface endpoint and does not go through internet.
Let's understand some important features of interface endpoints which are good to know for your exam and general best practices for designing right architecture considering high availability and cost.
While VPC interface endpoint can be used to privately access supported AWS services, it can also be used to access the applications hosted in different VPC. For this the service provider VPC should host the application behind the Network Load Balancer and then you should create VPC interface endpoint pointing to that Network Load Balancer. This is called PrivateLink connection to customer service. VPC privatelink is better than exposing your application over the internet or having VPC peering connection with the consumer VPC and then allowing the application access over VPC peering connection. VPC privatelink is much more scalable and secure network architecture to allow access to thousands of consumer VPCs.
In this lecture we will see the architecture for using VPC interface endpoint (PrivateLink) to grant private network access to consumer VPCs.
Here we host the customer service (Test webserver) on EC2 instances in one VPC and attach EC2 instance behind NLB. Both EC2 instance NLB will be created in Private subnets. We will then create VPC interface service in Service provider VPC using NLB and then create VPC interface endpoint in the consumer VPC which points to VPC interface service that we created earlier. In this fashion we can access the Webserver service from consumer VPC privately.
When you create VPC interface endpoint, AWS creates various DNS names for the interface endpoint. There is a regional DNS and zonal DNS. In order to be able to resolve these DNS you must have enableDnsHostnames and enableDnsSupport for your VPC. You can also customize this DNS name by creating Route53 private hosted zone.
In case VPC Gateway endpoint as you know it can not be accessed from remote network like peered VPCs or VPN connection. However as VPC interface endpoint provisions an ENI into your VPC/Subnet you can route the traffic to other networking components which are attached to your VPC. For example, if your VPC is connected to on-premises network using site-to-site VPN connection then you can access VPC interface endpoint from on-premises network. Likewise you can also access VPC interface endpoint from the peered VPC.
The question is - shall we use VPC peering or VPC PrivateLink when we want to access some customer service (hosted in customer VPC) privately? The answer depends on some considerations which more or less related to security and scaling. With VPC PrivateLink you get more scalable architecture and also its considered to more secure as it opens the access for particular service from customer VPC and does not open full bi-directional traffic between two VPCs.
Let's recap everything we talked about Private Connectivity using VPC Peering, VPC endpoints and PrivateLink
For your exam, its important that you understand the details about VPC Peering, peering pre-requisites, limitations, peering invalid scenarios, VPC gateway endpoints, VPC interface endpoints, DNS resolution, access from remote network etc. This lecture captures all those required details.
[꼭 읽어주세요] 한글 AI 자막 강의란?
유데미의 한국어 [자동] AI 자막 서비스로 제공되는 강의입니다.
강의에 대한 질문사항은 Stephane & Chetan 강사님이 확인하실 수 있도록 Q&A 게시판에 영어로 남겨주시기 바랍니다.
AWS Certified Networking Specialty 자격증 시험 ANS-C01 은 Amazon에서 응시할 수 있는 가장 어려운 자격증 시험 중 하나입니다. 이 시험에 합격하면 본인의 AWS 네트워킹에 대한 지식이 아주 깊다는 것을 지원하는 회사에 확실하게 보여줄 수 있습니다. 하지만 숙련된 기술자라도 이 시험은 많은 준비가 필요합니다. 이 강의는 시험에 출제되는 모든 AWS 네트워킹 주제와 그 연관성을 다룸으로써 시험에 합격할 수 있도록 도와줍니다.
베스트셀러 Udemy 강사인 Stéphane Maarek과 AWS 네트워킹 전문가인 Chetan Agrawal이 한 팀을 이루어 가장 포괄적이고 실습 위주의 자격증 준비 과정을 제공합니다.
이 강의는 Stéphane 의 AWS에 대한 깊이 있는 지식과 Chetan 의 AWS 네트워킹 경험을 결합한 강의입니다. Chetan 과 Stéphane 은 시험 응시 단 한번에 합격했습니다.
AWS 네트워킹 의 세계에는 기술과 서비스에 대한 심도 깊은 지식이 포함되어 있습니다. 강의에서 우리가 다룰 몇 가지 개념입니다:
Amazon VPC 로 네트워킹 기본 사항 배우기
VPC 의 고급 기능 알아보기
VPC 의 DNS 및 DHCP 옵션 이해하기
네트워킹 성능 및 최적화에 대해 알아보기
VPC Peering, VPC Gateway 및 인터페이스 엔드포인트 구성하기
Hybrid Networking (온프레미스와 AWS의 네트워킹 결합)에 대해 자세히 알아보기
Site-to-Site VPN, AWS Client VPN, Direct Connect에 대한 심층 구성
AWS Elastic Load Balancers 및 AWS CloudFront 의 네트워킹 측면
Route 53 을 사용한 고급 DNS 구성
Kubernetes 네트워킹 및 Amazon EKS 네트워킹
고급 네트워크 아키텍처
다양한 추가 AWS 네트워킹 기능
강의 내내 실습을 통해 배운 내용을 강화할 수 있는 많은 기회가 주어집니다. 또한 그 과정에서 유용한 시험 응시 팁과 전략도 제공합니다.
AWS 네트워킹은 고급 자격증으로, 이미 AWS에서 associate 수준의 자격증을 취득하고 실제 업계 경험이 있는 분이 응시하는 것이 가장 좋습니다. 이 시험은 AWS 초보자를 위한 시험이 아닙니다.
이 강의를 통해 자신 있게 AWS Certified Networking Specialty 시험에 응시할 수 있습니다. 수강신청 버튼을 눌러 이 강의를 수강하고 최종적으로는 자격증 취득까지 성공하시기 바랍니다!
강의 콘텐츠 업데이트 내역 :
24년 3월 23일: VPC DNS 및 DHCP 섹션 업데이트(새로운 강의는 없습니다. 더 나은 설명을 위해 재녹화했습니다.)
24년 3월 11일: AWS Shied, ACM 에 대한 강의 업데이트 및 AWS 방화벽 관리자 추가
24년 2월 26일: AWS Cloud WAN 에 대한 강의 및 실습 추가
24년 2월 12일: Centralized 아키텍처를 위한 Transit Gateway 강의가 새로워졌습니다. TGW+VPN 강의 추가. Transit 게이트웨이 섹션에 연습 문제 10개를 추가했습니다.
24년 1월 2일: VPC IP 주소 관리자(IPAM), VPC Rechability Analyzer, VPC 네트워크 액세스 Analyzer 강의 추가
24년 1월 1일: 하이브리드 네트워킹 기본 사항 섹션에서 중복되는 내용의 강의 제거
23년 9월 30일: 최신 변경사항/제한 사항 등을 반영하기 위해 대부분의 Direct Connect 강의를 업데이트했습니다. 수강생들의 피드백을 반영했습니다.
23년 4월 5일: "DX 아키텍처 - 종합하기" 강의 추가
곧 추가될 예정 - 여기에 강의를 업데이트할 때까지 AWS 문서나 Re:Invent 동영상 또는 AWS 블로그를 참조하시기 바랍니다:
AWS Transit Gateway Private IP VPN
API Gateway PrivateLink 와 VPC 리소스 통합
AWS VPC Lattice
강사 소개
저는 이 강의의 강사인 Stephane Maarek 입니다. 저는 AWS 자격증 시험에 대해 가르치고 있으며, 항상 수강생들이 AWS에서 전문적인 역량을 향상시킬 수 있도록 돕는 데 중점을 두고 있습니다. 또한 AWS Lambda, AWS CloudFormation 및 AWS EC2 에 대해 가장 높은 평가를 받고 베스트셀러가 된 강의의 강사이기도 합니다.
저는 자격증 과정을 설계하고 강의하는 경력을 통해 이미 1,000,000명 이상의 학생들을 가르쳤고 350,000개 이상의 리뷰를 받았습니다!
그리고 이번 강의의 공동 강사로 Chetan Agrawal 가 합류하게 되어 기쁩니다!
Chetan 은 AWS 네트워킹에 대한 열정을 가지고 있습니다. 그는 6년 이상 클라우드 및 DevOps 아키텍트로서 전문 경력을 쌓으면서 클라우드 네트워킹을 실제로 배웠습니다. 클라우드 플랫폼은 네트워킹 구성을 빠르게 시도하고 실험할 수 있는 기회를 제공하므로 이 강의에는 구현할 수 있는 실습/데모가 포함되어 있습니다. 이를 통해 평생 동안 지식을 유지하고 기술을 쌓을 수 있습니다.
AWS 가 단순한 유행어 이상의 의미를 갖게 되면서, 저는 학생들이 AWS 고급 네트워킹 전문가가 되는 방법을 제대로 배워야 할 때라고 생각했습니다. 그럼 이제 강의를 시작하겠습니다! 여러분은 좋은 강의로 잘 찾아오셨습니다!
이 강의에는 다음과 같은 혜택도 제공됩니다:
향후 모든 업데이트에 대한 평생 액세스
Q&A 섹션에서 응답하는 강사
다운로드 가능한 Udemy 수료증
30일 "묻지도 따지지도 않는" 환불 보장!
AWS Certified Advanced Networking Specialty 자격증에 합격하고 AWS 플랫폼을 마스터하고 싶다면 이 강의에 수강신청해보세요!