Networking Flashcards

1
Q

What is the OSI model?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 7 layers of the OSI model?

A

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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the application layer do?

A

Interprets the messages in HTTP protocol and renders HTML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Does AWS allow multicast?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is unicast?

A

one on one conversation between servers

like a phone call

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is multicast?

A

When a network card/server sends messages to everyone on a network- layer 2 (MAC)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the 3 main communication protocols used in AWS networking?

A

1) TCP (layer 4)
2) UDP (layer 4)
3) ICMP (layer 3)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the characteristics of TCP and its common uses?

A

A connection-based stateful communication protocol that acknowledges receipt

e.g. web, email or file transfer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the characteristics of UDP and its common uses?

A

Connectionless stateless with no transmission delays

e.g. streaming media, DNS (why… it’s simple)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the characteristics of ICMP and its common uses?

A

Used by network devices to exchange information

e.g. Traceroute, ping

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an ephemeral port?

A

A short-lived transport protocol port used in IP communication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What port ranges are used for ephemeral ports?

A

Suggested range = 49152 to 65535

linux generally use 32568 to 61000
windows default from 1025

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Who defines the ephemeral port number during TCP communication?

A

The client! e.g. Dial on port 80 (HTTP) and use port 56784 to respond…

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which protocols use ephemeral ports to transfer data?

A

1) TCP

2) UDP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why use UDP instead of TCP for large streaming data?

A

Because there is no acknowledgement. Acknowledging every receipt during streaming would be burdensome

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How many IP addresses are reserved in an AWS VPC and what are they? and what are they used for?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Are the reserved IP addresses tied to a specific IP addresses (or numbers)?

A

No, the IP number doesn’t matter, it is the position in the address that matters!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What consideration do you need to make when creating a VPC?

A

Ensure that you have enough IP addresses available

e. g. 10.0.0.0/16 ~
10. 0.0.0/32

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

How many IP addresses will be available for the CIDR block 10.0.0.0/28?

A

16

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

How many IP addresses will be available for the CIDR block 10.0.0.0/16?

A

65536

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What are the 8 methods of connecting on-prem network with a VPC?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What, when, pros and cons of…. AWS managed VPN

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What are the 5 steps to set up a AWS managed VPN?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What, when, pros and cons of…. AWS managed VPN- redundant

A

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?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What, when, pros and cons of…. AWS Direct connect

A

What- Dedicated network connection over PRIVATE lines straight into AWS backbone
when- When you require a “big pipe” into AWS, lots of resources or services being provided on AWS to your corporate users
Pros- More predictable network performance up to 10Gbps connections, supports BGP peering and routing
cons- may require additional telecom and hosting provider relationships and or new network circuits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

How do you set up AWS Direct Connect?

A

Work with your existing provider, create a virtual interface (VIF) to connect a VPC (private VIF) or to other AWS services like S3 (public VIF)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

How would you increase the redundancy of a direct connect connection?

A

You would need to set up a second direct connect connection, ideally using a different provider

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

What, when, pros and cons of…. Direct connect plus VPN

A

what- IPSEC VPN connection over private lines
when- Want added security of an encrypted tunnel over direct connect
pros- More secure (in theory) than direct connect alone
cons- more complexity by adding a VPN layer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

How would you set up a Direct Connect plus VPN connection?

A

Organise this through your existing data networking provider

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

What, when, pros and cons of…. AWS VPN CloudHub

A

what-Connect locations in a hub and spoke manner using AWS’s virtual private gateway
when- If you wanted to link remote offices for back-up or primary WAN access to AWS resources and each other
pros- Uses existing internet connection, iPSEC VPN connection, support BGP routes to direct traffic e.g. uses MPLS first then Cloud Hub VPN as a backup
cons- Dependent on internet connection; no inherent redundancy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

How would you set up a AWS VPN CloudHub

A

1) create single virtual private gateway
2) create multiple customer gateways, each with the public IP address of the gateway. You must use unique BGP ASNs for each customer gateway
3) Create dynamically routed site-to-site VPN connection from each customer gateway to the common virtual gateway
4) configure the customer gateway devices to advertise a site-specific pre-fix (e.g. 10.0.0.0/24, 10.0.1.0) to the virtual private gateway. These routing advertisements are received and re-advertised to each BGP peer, enabling each site to send data to and receive data from the other sites
5) configure the routes in your subnet route table to enable instances in your VPC to communicate with your sites

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

What, when, pros and cons of…. software VPN

A

What- You provide your own VPN endpoints and software
when- When you must manage both ends of the VPN connection for compliance reasons you want to use a VPN option not supported by AWS e.g. openVPN
Pros- Ultimate flexibility and manageability
cons- You must design for any needed redundancy across the whole chain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

How would you go about setting up a software VPN?

A

Install the VPN software via a market place appliance or on an EC2 instance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

What, when, pros and cons of…. Transit VPC?

A

What- common strategy for connecting geographically disperse VPCs and locations in order to create a global network transit center
when- locations and VPC-deployed assets across multiple regions that need to communicate with one another
pros- ultimate flexibility and manageability but also AWS-managed VPN hub and spokes between VPCs, good for one VPC as a pass through and to deploy across different cloud providers
cons- You must design for any redundancy across the whole chain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

How do you set up a transit VPC?

A

Contact provider such as cisco that link their equipment with an AWS VPC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

What are the two types of VPC to VPC connections?

A

1) VPC peering

2) AWS private link

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

What, when, pros and cons of….VPC peering

A

What- AWS provided network connectivity between 2 VPCs
when- When you have multiple VPCs that need to communicate or access each others resources
pros- Uses AWS’s backbone without touching the internet
cons- Does not support transitive peering

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

How do you set up VPC peering?

A

You make a VPC peering request, acceptor accepts!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

What, when, pros and cons of…. AWS private link?

A

What- AWS provided network connectivity between VPCs and or AWS services using interface endpoints
when- When you want to keep private subnets truely private by using the AWS backbone to reach the services rather than the public internet.
Pros- Redundant as it uses AWS backbone
cons- cost? time to set up manually?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

How do you create an AWS private link?

A

Create endpoints for needed AWS or marketplace services in all needed subnet, access these via the provided DNS hostname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

What are the 2 types of endpoints in AWS?

A

1) Interface endpoint

2) Gateway endpoint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

The What, How, What products and security of… Interface endpoints and e.g….

A

What- Elastic network interface with a priave IP
How- uses DNS entries to redirect traffic
What products- API-Gateway, Cloud front, Cloudwatch
Security- Security groups

e.g. Routing call to S3 from within S3

43
Q

The What, How, What products and security of… Gateway endpoints and e.g….

A

What- A gateway that is a target for a specific route
How- Uses prefix lists in the route table to re-direct traffic
What products- DynamoDB or S3
Security- VPC endpoint policies

e.g. control access to S3 or DynamoDB where you can only access item when traffic comes through an endpoint

44
Q

What are the two ways of providing internet access to VPCs?

A

1) Internet gateway

2) Egress-only internet gateway

45
Q

What are the 2 main purposes of the internet gateway?

A

1) provides route table targets for internet-bound traffic

2) Performs NAT for instances WITH public IP addresses- Not for instances with private IP addresses

46
Q

Are IPv6 addresses global?

A

Yes, so are public by default.

47
Q

What are the 2 roles of the Egress-only gateway?

A

1) Provides outbound internet access to for IPv6 addressed instances
2) Prevents inbound access to IPv6 instances

48
Q

Is the Egress-only gateway stateful or stateless?

A

Stateful

49
Q

What is a NAT instance? and what is it’s role?

A

Amazon created AMI EC2 instance.

Role is to translate traffic from many private IP instances to a single public IP address and back

50
Q

What does a NAT instance NOT allow?

A

Public internet initiated connections into private instances

51
Q

Does the NAT instance support IPv6?

A

Nope, use Egress only gate way for NAT

52
Q

What must private instances have to access the internet?

A

A route to the NAT instance in the public subnet. The traffic will then be directed to the internet gateway bia the NAT instance.

53
Q

What is the NAT gateway?

A

AWS managed NAT service that replaces the need for a NAT instance on EC2. Uses an elastic IP.

54
Q

What is the default route and target for a NAT gateway? Entered in your private route table.

A

Destination, enter 0.0.0.0/0. For Target, select the ID of your NAT gateway.

55
Q

How would you increase the redundancy of your NAT gateway architecture?

A

Create a NAT gateway in each AZ with routes for private subnets to use the local gateway- Multi-AZ redundancy

56
Q

Both the NAT gateway and NAT instances use elastic IP addresses, but only one can be detached, which is it?

A

NAT instance- detach Elastic IP

NAT Gateway- Cannot detach

57
Q

Can you associate a security group with a NAT gateway?

A

Nope, but you can with a NAT instance

58
Q

How can you control routing at the VPC level?

A

you can control routing via:

1) Route tables
2) BGP

59
Q

How can you control routing at the Route53 level?

A

You can apply routing policies

60
Q

How can you control routing at the ELB level?

A

Request routing

61
Q

What is a route table? (3 points)

A

1) Each VPC has an implicit router and main routing table
2) Each route table contains a local route for the CIDR block
3) The most specific route for an address wins

62
Q

What is the BGP?

A

Border Gateway Protocol

Allows dynamic routing, the method of choosing different paths depending on the availability and weighting

Weighting is local to the router and higher weight is the preferred path for outbound traffic

63
Q

Which ports need to be open for BGP?

A

179 and Ephermeral ports

64
Q

What is ASN?

A

Autonomous System Number (ASN)…. a unique endpoint identifier

65
Q

What would you do if you needed very high performing network if you had lots and lots of data?

A

Can use Single Root I/O virtualisation (SRIOV)

Higher performance options than normal virtualised interfaces

may need to install a specific adapter/interface e.g. Intel 82599 VF interface

66
Q

What is a placement group?

A

Relevant for networking performance…

Gives you control over where physical servers are provisioned.

67
Q

What are the3 types of placement groups?

A

1) Clustered
2) spread
3) Partition

68
Q

What, when, pros and cons of… Clustered placement group? Same rack or separate?

A

what- Instances are placed into a low-latency group within a singe AZ
When- When you need low network latency and/or high network throughput
pros- Get the most out of enhanced networking instances
cons- Finite capacity

Same rack

69
Q

What, when, pros and cons of… Spread placement group? Same rack or separate?

A

When- Instances are spread across underlying hardware
when- When you want to reduce the risk of simultaneous failure if underlying hardware fails.
pros- can span multiple AZ’s
cons- Max of 7 instances per group per AZ

Separate racks

70
Q

What, when, pros and cons of… partition placement group? Same or separate rack?

A

what- Instances are group into partitions and spread across racks
when- You want to reduce the risk of correlated hardware failures for multi-instance workloads
pros- Better for large DISTRIBUTED or REPLICATED instance workloads than spread. Increases tolerance when one VM goes offline
cons- Not supported for dedicated hosts

Separate racks

71
Q

Name and describe 7 routing policies available in Route53…

A

1) simple- Heres the destination for that name
2) Failover- Normally I would route you to there, but based on health checks I will route you this backup.
3) Geolocation- Looks like you are in Europe I will route you to a resource that is closer to you in that region
4) Geoproximity- Your user is closer to US-EAST1 than US-WEST-2. So I will route you to US-EAST1
5) Latency- Let me see which resources has the lowest latency then I will direct you that way
6) Multivalue answer- I will return several IP addresses as a sort of basic load balancer (round-robin based on health checks)
7) Weighted- You can set up multiple resources and I’ll route you according to the percentage of weight you assign to each

72
Q

What does bias mean in the context of geoproximity routing?

A

Balances resources based on population

Assign a value between -99 and +99

73
Q

How does weighted routing work?

A

You apply a weight number between 0-255 and calculate the weight of each route as a percentage.

If you apply 0, then this will disable traffic.

74
Q

What is CloudFront?

A

A distributed content delivery service for simple static asset caching up to 4K

75
Q

What service is CloudFront integrated with?

A

CloudFront is integrated with Amazon certification manager and supports SNI

76
Q

What is the function of an SSL certificate? and how do they work?

A

Main function is to ensure websites are legitimate. Does this by checking the domain name matches the name of the certificate

77
Q

How do you get around the SSL certificate error when using CloudFront to serve content over HTTPS? (2 points)

A

1) Can use CloudFront allocated dedicated IP addresses at each CloudFront edge location to server your content over HTTPS
2) Use Server Name Indication (SNI) to allows the client to specify which host it is trying to connect to. The server can present multiple certificates on the same IP. The client is asking for the correct certificate and CloudFront is providing it

78
Q

Which security policies are available in CloudFront?

A

SSL or TLS, most recent TLS v1.2

79
Q

What is the function of an Elastic Load Balancer?

A

Enables you to distribute inbound connections to one or many backend endpoints. Essentially how you control the flow of traffic to backend servers.

80
Q

What are the 3 elastic load balancer options?

A

1) Application load balancer (Layer 7)
2) Network load balancer (Layer 3)
3) Classic load balancer (layer 4 or 7)

81
Q

What features do you use to route using a Network Load Balancer? (1 point)

A

1) port numbers

TCP connections to the backend are persisted for the duration of the connection

82
Q

What features do use to route using an Application load balancer? (6 points)

A

1) Host-based routing
2) path-based routing
3) HTTPS header-based routing
4) HTTPS method-based routing
5) Query, string parameter-based routing
6) Source IP address CIDR-based routing

83
Q

When you use a Network load balancer over an application load balancer?

A

When you are interested in RAW SPEED!

84
Q

Which protocols does a application load balancer use to control traffic?

A

HTTP/HTTPS

85
Q

Which protools does a network load balancer use to control traffic?

A

TCP, UDP, and TLS

86
Q

What are sticky sessions?

A

Important feature for web applications, most web applications keep up with clients using sticky session ID

The session ID is used to uniquely identify the client for stuff like shopping carts

87
Q

What does enabling sticky sessions on an application load balancer do?

A

Allows the ELB to keep track of the client and which webserver it handed it off too… increases continuity for the user

88
Q

What is a stateless protocol? provide an example…

A

A communication protocol in which no session information is retained by the receiver. Relevant session data is sent to the receiver by the client. Every packet of information can be understood in isolation.

e.g. HTTPS/HTTP

89
Q

What is the benefit of using a stateless protocol?

A

Improves performance by removing server load caused by retaining session information, but does have an overhead cost as this information must be interpreted by the receiving server.

90
Q

What is a stateful protocol? provide an example…

A

A communication protocol that requires keeping of the internal state on the server. A TCP connection session is stateful because both systems maintain information about the session itself during it’s life.

e.g. FTP

91
Q

What is a connectionless protocol? Provide an example

A

Designed to stream data. no beginning and no end.

e.g. UDP

92
Q

What is a connection-based protocol? provide an example…

A

A communication that requires a logical connection to be established between 2 parties before data is exchanged. The connection must be maintained during the entire communication.

93
Q

How can you allow your VPC instances to resolve using an on-prem DNS?

A

You can configure a DHCP (Dynamic Host Configuration Protocol) which provides a standard for passing configuration information to hosts on a TCP/IP network .

94
Q

What is contained in an options field of a DHCP message?

A

configuration parameters

1) The domain name
2) domain name server
3) netbios node-type

95
Q

what are the 2 purposes of the Egress-only gateway?

A

1) Allows VPC based IPv6 traffic to communicate to the internet
2) prevents IPv6 internet resources initiating a connection into a VPC

96
Q

What networking components will allow an IPv6 data to communicate between a VPC and the internet for inbound and outbound traffic?

A

1) internet gateway (inbound traffic)

2) Egress only (outbound traffic)

97
Q

What could be stopping you from SSHing into an instance from the internet?

A

Need to check NACL to ensure that TCP traffic is allowed for ports between 1025 to 65535.

Ephemeral ports are required to communicate back to the client

98
Q

Does Direct Connect require 802.1Q VLAN support

A

Yes

99
Q

Is Direct Connect HA by default?

A

Nope

100
Q

Does Direct Connect require BGP routing?

A

Yes

101
Q

What must you ensure when using geolocation routing?

A

That you have a default route specified in case that location cannot be used

102
Q

Do Application load balancers support elastic IPs?

A

Nope, but network load balancer do!

103
Q

Does Route53 support a TLSA record? and what are they?

A

Nope, TLSA records are used to specify the keys used in a domain’s TLS servers.