Networking

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/60

encourage image

There's no tags or description

Looks like no tags are added yet.

61 Terms

1
New cards

OSI model

7 layers: Physical, Data Link, Network, Transport, Session, Presentation, Application. Interviewers mostly care about 1 (cables), 2 (MAC, switches), 3 (IP, routers), 4 (TCP/UDP) and 7 (HTTP, DNS).

2
New cards

TCP

Connection-based and reliable: guarantees delivery and order, resending lost packets. Used for web, SSH, email, file transfer.

3
New cards

UDP

Connectionless and fast, with no delivery guarantee. Used for DNS lookups, DHCP, streaming, voice and video calls.

4
New cards

TCP three-way handshake

SYN, SYN-ACK, ACK. Sets up the connection before any data is sent.

5
New cards

IP address

A logical address that identifies a device on a network and is used to route traffic between networks (layer 3).

6
New cards

MAC address

A hardware address burned into a network card (layer 2). Used to deliver frames on the local network only.

7
New cards

Subnet mask

Splits an IP address into its network and host parts, so a device knows whether a destination is local or must go through the gateway.

8
New cards

CIDR notation (/24)

The number of bits used for the network. A /24 = mask 255.255.255.0 = 256 addresses, 254 usable.

9
New cards

Usable hosts in a subnet

2^(host bits) minus 2. The first address is the network ID and the last is the broadcast address.

10
New cards

Private IP ranges

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Used inside networks and not routable on the internet.

11
New cards

Public vs private IP

A public IP is reachable on the internet. A private IP only works inside a local network and reaches the internet through NAT.

12
New cards

Default gateway

The router a device sends traffic to when the destination is outside its own subnet. Wrong gateway = local network works, internet doesn't.

13
New cards

Loopback address

127.0.0.1 (localhost) means the device itself. Used to test that the network stack works.

14
New cards

IPv4 vs IPv6

IPv4 is 32-bit (e.g. 192.168.1.10) and ran out of addresses. IPv6 is 128-bit (e.g. 2001:db8::1) with vastly more addresses.

15
New cards

DNS

Translates domain names (google.com) into IP addresses. If DNS breaks, you can reach sites by IP but not by name.

16
New cards

DNS A record

Maps a domain name to an IPv4 address (AAAA = IPv6).

17
New cards

DNS CNAME record

An alias that points one name to another name (e.g. www.example.com to example.com).

18
New cards

DNS MX record

Specifies the mail servers that receive email for a domain.

19
New cards

DNS TTL

How long a DNS answer is cached. Why a DNS change can take time to show up everywhere.

20
New cards

DHCP

Automatically assigns devices an IP address, subnet mask, default gateway and DNS servers.

21
New cards

DHCP process (DORA)

Discover, Offer, Request, Acknowledge.

22
New cards

169.254.x.x address (APIPA)

The device couldn't reach a DHCP server and assigned itself an address. It can't reach the network. Check the cable or Wi-Fi and the DHCP server, then release and renew.

23
New cards

Static IP vs DHCP reservation

Both give a device a fixed address. A static IP is set on the device itself. A reservation is set on the DHCP server, so it's managed centrally. Used for servers and printers.

24
New cards

ARP

Finds the MAC address for an IP address on the local network.

25
New cards

NAT

Translates private IPs to a public IP so many devices can share one internet address. Your home router does this.

26
New cards

Switch vs router

A switch connects devices within the same network using MAC addresses. A router connects different networks using IP addresses.

27
New cards

VLAN

Splits one physical switch into separate logical networks (e.g. staff, guests, phones) for security and less broadcast traffic. Traffic between VLANs needs a router.

28
New cards

Firewall

Allows or blocks traffic based on rules (source, destination, port, protocol).

29
New cards

Stateful vs stateless firewall

Stateful tracks connections and automatically allows return traffic. Stateless checks each packet on its own, so return traffic needs its own rule.

30
New cards

DMZ

A separate network zone for public-facing servers (web, mail), so if one is compromised the internal network is still protected.

31
New cards

VPN

An encrypted tunnel over the internet that connects a remote user or office to a private network.

32
New cards

Split tunneling

Only company traffic goes through the VPN, and everything else goes straight to the internet. Full tunnel sends everything through the VPN.

33
New cards

Load balancer

Spreads incoming traffic across multiple servers and stops sending traffic to servers that fail health checks.

34
New cards

Proxy server

Sits between users and the internet to filter, log or cache web traffic. Bad proxy settings can break browsing while ping still works.

35
New cards

HTTP vs HTTPS

HTTPS is HTTP encrypted with TLS, protecting data in transit and proving the site's identity with a certificate. Ports 80 and 443.

36
New cards

TLS certificate

Proves a server's identity and enables encryption. Common errors: expired, wrong hostname, untrusted issuer.

37
New cards

LAN vs WAN

A LAN covers one site (office, home). A WAN connects sites over long distances. The internet is the largest WAN.

38
New cards

2.4 GHz vs 5 GHz Wi-Fi

2.4 GHz has longer range and goes through walls better but is slower and more crowded. 5 GHz is faster with shorter range.

39
New cards

Latency vs bandwidth

Latency is the delay for data to travel (ms). Bandwidth is how much data a link can carry at once (Mbps). A connection can have high bandwidth and still feel slow from high latency.

40
New cards

Packet loss

Packets that never arrive. Causes slow connections, choppy calls and dropped sessions.

41
New cards

Port

A number that identifies a specific service on a device, so one IP can run many services (e.g. a web server on 443).

42
New cards

Port 22

SSH (secure remote shell, also SFTP).

43
New cards

Port 25

SMTP (sending email).

44
New cards

Port 53

DNS.

45
New cards

Port 67/68

DHCP.

46
New cards

Port 80

HTTP.

47
New cards

Port 443

HTTPS.

48
New cards

Port 389

LDAP (directory lookups, used by Active Directory).

49
New cards

Port 445

SMB (Windows file sharing).

50
New cards

Port 3389

RDP (Windows Remote Desktop).

51
New cards

ping

Sends ICMP echo requests to test whether a host is reachable and how long replies take. No reply doesn't always mean it's down, since firewalls often block ping.

52
New cards

tracert / traceroute

Shows each router hop between you and a destination, to see where traffic slows down or stops.

53
New cards

nslookup

Tests DNS by looking up the IP address for a name.

54
New cards

ipconfig /all

Shows a Windows PC's IP, subnet mask, default gateway, DNS servers, DHCP status and MAC address. The first command for most network tickets.

55
New cards

ipconfig /release and /renew

Drops the current DHCP address and requests a new one.

56
New cards

ipconfig /flushdns

Clears the PC's DNS cache, e.g. after a DNS record changed.

57
New cards

Can ping an IP address but not a website name

Connectivity works but DNS doesn't. Check the DNS server settings and test with nslookup.

58
New cards

Connection refused vs connection timed out

Refused: the host is reachable but nothing is listening on that port. Timed out: no response, usually a firewall dropping traffic or the host is down.

59
New cards

What happens when you type google.com and press Enter

1 DNS resolves google.com to an IP. 2 The browser opens a TCP connection to port 443. 3 TLS handshake verifies the certificate and sets up encryption. 4 The browser sends an HTTP request. 5 The server responds and the browser renders the page.

60
New cards

Security group vs NACL (AWS)

A security group protects instances and is stateful (allow rules only). A NACL protects a subnet and is stateless (allow and deny rules).

61
New cards

Public vs private subnet (AWS)

A public subnet routes to an Internet Gateway. A private subnet doesn't, and reaches the internet outbound through a NAT Gateway.