当前位置:网站首页>AWS VPC
AWS VPC
2022-07-03 04:25:00 【Blue summer】
1 VPC
VPC(Virtual Private Cloud), Virtual private cloud , It is a logically independent data center , Public cloud service providers are based on overlay The Internet ( such as VXLAN and GRE), Divide the network into independent individuals , To different tenants . Tenants can deploy their own applications and resources in this independent network without interference from other users . At the same time, with some encryption and tunneling protocols , Ensure user data and communication security , This is the virtual network provided by cloud service providers .
2 Amazon VPC
aws Of VPC There are two types of ,default VPC and nondefault VPC,
- default VPC, default VPC(172.31.0.0/16), No need to create , In the VPC Created EC2 Will bring its own public network ip
- nondefault VPC, That is, the user creates and sets it himself VPC, It can be set according to actual needs ip Network segment and other properties , In the VPC Created EC Private network is used by default ip
3 Amazon VPC Network segment
- The network segment size can only be between /16 and /28 Between , That is to say 16-65,536 individual ip Address
- After the network segment is set, it cannot be modified , Neither expanding nor shrinking , You can delete, rebuild or add another network segment
- The same VPC There can be multiple network segments , But there are certain limitations , For example, it cannot overlap with the original , You can't cross A,B,C Class address , Like it turns out to be 10. Private network address of network segment , The new network segment cannot be 172.16 perhaps 192.168
4 Amazon VPC DNS
- VPC Internal default DNS The address is network segment +2, For example, the network segment is 10.0.0.0/16, So this one VPC Of dns The address is 10.0.0.2, If there are multiple network segments , Subject to the main network segment
- DNS Query has a rate limit , Each network interface can send at most 1024 Query message , The limit cannot be adjusted , After exceeding the limit , The query request will be rejected
5 Amazon VPC Access restrictions
There are two main ways ,security groups and network ACLs, The main differences are as follows ,
| Security group | Network ACL |
|---|---|
| Applicable to instance level | Applicable to network segment level |
| Only support allow The rules | Support allow and deny The rules |
| A stateful , For example, the return flow is automatically released | No state , Two way traffic must be explicitly released |
| Decide whether to release the flow after considering all the rules | Match in regular order , When the match is reached, execute , and iptables The rules are similar |
| It must be explicitly associated to a specific instance to take effect | Automatically applied to the associated instances in the subnet |
however , These two are for the following AWS Home Service access is not restricted ( Self built services will still be limited ),
- AWS DNS service
- AWS DHCP service
- AWS EC2 Instance metadata
- AWS Windows Certificate activation
- AWS Time synchronization service
- default VPC router Reservations IP Address
6 Amazon VPC signal communication
6.1 Connect to the public network
- If VPC The internal instance has a public network ip, Can be directly related to Internet gateway, You can access the public network
- For private networks ip, It's possible to relate Elastic IP To use the public network ip, So as to access the public network , But this requires manual Correlation , And only one instance can use this Elastic IP. In order to improve efficiency , have access to NAT gateway.
6.2 Connect to other VPC
- VPC peering, adopt peering, You can use private ip And others VPC, And different accounts VPC, Even other region Of VPC signal communication , But these two VPC Of ip Segments cannot overlap
VPC peering Not one gateway Neither VPN Connect , Independent of other separate hardware , At the same time, it has no single point of failure and bandwidth limitations . But it needs to save the opposite end VPC Routing information for , So when VPC Many times , Maintenance will be troublesome , Consider using transit gateway
- Transit Gateway, It can be regarded as a three-layer routing device , In more than one VPC Can act as a central router , It can also be used as isolation .
6.3 Connect to the local network
- Transit Gateway, adopt transit gateway You can put the local SD-WAN The network is connected to AWS, To achieve the purpose of expansion . It also supports routing VPN Connection and AWS Direct Connect gateways. Can connect multiple VPC
- AWS VPN, Include AWS Site-to-Site VPN,AWS Client VPN,AWS VPN CloudHub And other third parties VPN Software , Can only be connected to a single VPC
6.4 Use AWS PrivateLink Connect AWS service
In addition to the above , You can also use AWS PrivateLink The way , Give Way VPC Instances in can be connected to other AWS service ,AWS PrivateLink By way of VPC The application or service in is configured as endpoint, So that the opposite end VPC Be able to connect .
Service providers ( It can be a local service ) In their own region Create a endpoint service, At the same time, you need to create a load balancer Services are used to receive and route requests .
Service consumers need to be in their own region Create a VPC endpoint, Then you can connect to the service , That is to say endpoint service. By default endpoint service Cannot be accessed by external users , You need to open the corresponding permission .
about VPC endpoint, There are three types ,
- Interface, interface endpoint adopt NLB To distribute traffic , The destination address is via DNS analysis , Only support TCP Traffic , Support AWS Direct Connect Private connection , Therefore, local services can also connect to AWS VPC Services within , The service itself needs to be charged .
- GatewayLoadBalancer, Service consumers route traffic to it ,Gateway Load Balancer Distribute traffic to use private ip Virtual network devices for , It can be expanded on demand
- Gateway, A special , Don't use AWS PrivateLink, And can only be used to connect S3 and DynamoDB, The service itself is free
S3 Support at the same time gateway endpoints and interface endpoints, However, there are the following differences ,
- gateway Way to use S3 The public ip,interface The private network address is used , But the traffic is AWS Inside
- gateway Mode does not allow local traffic
- gateway The method cannot cross region Connect ,interface Can pass VPC peering perhaps AWS Transit Gateway Secondary connection
- gateway The method is free ,interface You need to charge for your own opening
most AWS Services are supported through AWS PrivateLink visit , The specific support list can be viewed https://docs.aws.amazon.com/vpc/latest/privatelink/aws-services-privatelink-support.html
Reference documents :
- https://docs.aws.amazon.com/vpc/latest/userguide/how-it-works.html
- https://docs.aws.amazon.com/vpc/latest/userguide/configure-your-vpc.html#add-cidr-block-restrictions
- https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html
- https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Security.html#VPC_Security_Comparison
- https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html
- https://docs.aws.amazon.com/vpc/latest/privatelink/create-interface-endpoint.html
- https://aws.amazon.com/privatelink/features/
- https://docs.aws.amazon.com/vpc/latest/privatelink/aws-services-privatelink-support.html
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html#types-of-vpc-endpoints-for-s3
10.https://docs.aws.amazon.com/vpn/latest/s2svpn/how_it_works.html
边栏推荐
- [set theory] set concept and relationship (set represents | number set | set relationship | contains | equality | set relationship property)
- When using the benchmarksql tool to preheat data for kingbasees, execute: select sys_ Prewarm ('ndx_oorder_2 ') error
- [Thesis Writing] how to write the overall design of JSP tourism network
- Dive into deep learning - 2.1 data operation & Exercise
- Deep dive kotlin synergy (19): flow overview
- 金仓数据库KingbaseES 插件kdb_database_link
- vulnhub HA: Natraj
- Interface in TS
- 【毕业季·进击的技术er】职场人的自白
- Writing skills of multi plate rotation strategy -- strategy writing learning materials
猜你喜欢

Arthas watch grabs a field / attribute of the input parameter

Design and implementation of JSP logistics center storage information management system

Preliminary cognition of C language pointer

深潜Kotlin协程(十九):Flow 概述

Joint set search: merge intervals and ask whether two numbers are in the same set

JS realizes the animation effect of text and pictures in the visual area

Which Bluetooth headset is good about 400? Four Bluetooth headsets with strong noise reduction are recommended

Database management tool, querious direct download

Some information about the developer environment in Chengdu

Why should programmers learn microservice architecture if they want to enter a large factory?
随机推荐
拆一辆十万元的比亚迪“元”,快来看看里面的有哪些元器件。
[set theory] set operation (Union | intersection | disjoint | relative complement | symmetric difference | absolute complement | generalized union | generalized intersection | set operation priority)
arthas watch 抓取入参的某个字段/属性
When using the benchmarksql tool to preheat data for kingbasees, execute: select sys_ Prewarm ('ndx_oorder_2 ') error
Drf--- quick start 01
Design and implementation of kubelet garbage collection mechanism to protect nodes from being preempted by containers image GC high threshold
CVPR 2022 | Dalian Institute of technology proposes a self calibration lighting framework for low light level image enhancement of real scenes
Preliminary cognition of C language pointer
[set theory] set identities (idempotent law | exchange law | combination law | distribution rate | De Morgan law | absorption rate | zero law | identity | exclusion law | contradiction law | complemen
Two points -leetcode-540 A single element in an ordered array
Fcpx template: sweet memory electronic photo album photo display animation beautiful memory
How do you use lodash linking function- How do you chain functions using lodash?
MySQL timestampdiff interval
MySQL field userid comma separated save by userid query
Export of zip file
PostgreSQL database high availability Patroni source code learning - etcd class
2022 electrician (Advanced) examination papers and electrician (Advanced) examination skills
[fxcg] market analysis today
[free completion] development of course guidance platform (source code +lunwen)
Competitive product analysis and writing