Networking Flashcards
What is the OSI model?
A way of thinking about networking operations. If there is an issue with one layer then the message will not get through. Can be used in troubleshooting.
What are the 7 layers of the OSI model?
Please Do Not Throw Sausage Pizza Away
Physical- CAT5, fibre optic cable Data link- MAC Network- IP, ARP Transport- TCP Session- Setup, negotiation Presentation- TLS/SSL, compression Application- Web browser
What does the application layer do?
Interprets the messages in HTTP protocol and renders HTML
Does AWS allow multicast?
No
What is unicast?
one on one conversation between servers
like a phone call
What is multicast?
When a network card/server sends messages to everyone on a network- layer 2 (MAC)
What are the 3 main communication protocols used in AWS networking?
1) TCP (layer 4)
2) UDP (layer 4)
3) ICMP (layer 3)
What are the characteristics of TCP and its common uses?
A connection-based stateful communication protocol that acknowledges receipt
e.g. web, email or file transfer
What are the characteristics of UDP and its common uses?
Connectionless stateless with no transmission delays
e.g. streaming media, DNS (why… it’s simple)
What are the characteristics of ICMP and its common uses?
Used by network devices to exchange information
e.g. Traceroute, ping
What is an ephemeral port?
A short-lived transport protocol port used in IP communication
What port ranges are used for ephemeral ports?
Suggested range = 49152 to 65535
linux generally use 32568 to 61000
windows default from 1025
Who defines the ephemeral port number during TCP communication?
The client! e.g. Dial on port 80 (HTTP) and use port 56784 to respond…
Which protocols use ephemeral ports to transfer data?
1) TCP
2) UDP
Why use UDP instead of TCP for large streaming data?
Because there is no acknowledgement. Acknowledging every receipt during streaming would be burdensome
How many IP addresses are reserved in an AWS VPC and what are they? and what are they used for?
5
1) 10.0.0.0- Network address
2) 10.0.0.1- Reserved for AWS for the VPC router
3) 10.0.0.2- Reserved for Amazon DNS
4) 10.0.0.3- Reserved for future use
5) 10.0.0.255- VPCs do no support broadcast for AWS reserves this
Are the reserved IP addresses tied to a specific IP addresses (or numbers)?
No, the IP number doesn’t matter, it is the position in the address that matters!
What consideration do you need to make when creating a VPC?
Ensure that you have enough IP addresses available
e. g. 10.0.0.0/16 ~
10. 0.0.0/32
How many IP addresses will be available for the CIDR block 10.0.0.0/28?
16
How many IP addresses will be available for the CIDR block 10.0.0.0/16?
65536
What are the 8 methods of connecting on-prem network with a VPC?
1) AWS managed VPN
2) AWS managed VPN-Redundant
3) AWS Direct Connect
4) AWS Direct Connect plus VPN
5) AWS VPN Cloud Hub
6) Software VPN
7) Transit VPC
What, when, pros and cons of…. AWS managed VPN
What- iPsec VPN connection
when- want quick and easy, secure connection to a VPC, can be used as a redundant link for direct connect
Pros- Supports static routes or BGP peering and routing
Cons- Dependent on internet connection
What are the 5 steps to set up a AWS managed VPN?
1) Designate an appliance to act as your customer gateway, this is usually your on-prem router
2) Create the VPN connection in AWS and download the config file for your customer gateway
3) Configure your customer gateway using the information from the config file e.g. IPSEC encryption
4) Generate traffic from your side of the VPN connection to bring up the VPN tunnel
5) Configure BGP routing if required
What, when, pros and cons of…. AWS managed VPN- redundant
what- secondary VPN connection
when- want additional redundancy for your AWS VPN
pros- provides redundant architecture
cons- You will have to manually deal with failover, additional cost?