advanced networking Flashcards
network layer
switches routes based on mac address
Datalink layer
MAC address
Network layer
IP address, where we are going to send it to . Where it is begin sent
Transport layer
How it is being sent. is about how it is going to tbe sent. TCP UDP
overhead of tcp
web browzer
TCP,
DDos attacks
Protection at multiple layers
Load balancers protect at
layer 3-4 Ddos attacks
Class A, B , C
8, 16, 24
Unicast only in AWS
no broadcast and multicast
Why create multiple subnet within aws vpc
security isolation
network addres vs host address
10.0 is the network address. . Last address we cannot used
network addres vs host address
10.0 is the network address. . Last address we cannot used for broadcast although there is no broadcast in aws.
range of address in aws
/16 to /28
Can VPC have the same network as subnet
yes
IPVC addresses are automtically assigned by AWS
It is all public. You don’t want to communicate via public?
IPV6 addresses are automtically assigned by AWS
It is all public. You don’t want to communicate via public?
::/0 equivalent to all
link local prefix fe80::/64 not routable( 169.254 on IPV4)
secondary CIDR blocks
You can add additional CIDR block to
You can add 4 additional
Total 5 CIDR.
To extend CIDR what you have
it has to be continuous
DHCP options
EC2 gets gw, ip, Dynamic host configuration protocol.
setup a DNCP option set to get control on the IP and other configuration
security group when created
does not allow anything in and everything is allowed out
security groups is linked to a resource
it is an instance level firewall but is is not the complete descrition. Seucurity groups is attached to the network adapter.. You can have multiple security groups to EIN
When do you use security group
always
NACL when
You use it when you need deny. You have to open up a wide range of ports in outbound
ephemeral ports
1024 and above till 65000.
Every subnet has a route table inside
initial route table comes from the VPC.
Main route table everything
internet gateway
0-1 per vpc.
How do you create a public subnet
create a internet gw, modify the route table to point to intetnet gateway
NAT gateway
resource in private subnet to communicate to internet. NAT GW should be in public subnet. One way door.
How do you create a public subnet
create a internet gw, modify the route table to point to intetnet gateway
VPC peering
done by creating the route. Choose the VPC and owners of the VPC should accept it, modify the route table.
VPC’s can be any region for peering. But inter-region traffic can generate cross-regioon traffic cost.
Requestors DNS vs acceptors DNS.
How does the DNS work in peering.
VPC endpoints
Providing local(non-internet) access to services . Problem with internet performance and security
2 typs of endpoints
gateways end points and interface end points
Gateway endpoint
Amazon S3 and Amazon Db.
Interface( powered by AWS PrivateLink)
Unlike a GW EP
An elastic network interface with a private IP address that serves as an entry point for traffic destines to a supported AWS service
GW EP
Pick S3 or dynamo, link it to VPC and also target specific subnets, GW end point relies on route table.
Just chaging the route. Control the flow of traffic.
How do you secure GW connection. Resource policy
GW also have polices attached. Policy in GW ep comes with no restrictions.
Policies govern what speicic activity do you want to allow like API’s get vs put. Can restrict the resource that you can connect to .
If you are routing
Interface based EP
Kinesis, drops and Network table that .
Use the name for the interface.
Since it is an interface you can secure by attaching a security group
No route table updates are necessary for interface base EP. Private DNS gets automatically craeted.
PrivateLink
it is fronted with a network load balancer
PrivateLink
it is fronted with a network load balancer
An instance can be multihome and attached to two different VPC subnet as long as
the VPC’s is in same AZ
EBS volumes
same AZ
EC2 Networking( optimized for EBS)
Had dedicated throughput. A portion of bandwidth is dedicated. Lots of instances are dedicated
Network performance
25Gig to 10Gig( Note lately it has gone upto 100G)
Enhanced networking( we want better netk performance)
When you enable EN on a instance SR-IOV allows to bypass the hypervisor and gets direct access to the host network adapter.
Elastic Network Adapter(ENA) gives hiher network speeds
Device pass-through
Intel Data Place Development Kit(DPDK)