Networking Flashcards

(30 cards)

1
Q

What are the 7 layers of the OSI model?

A

Application, Presentation, Session, Transport, Network, Data Link, Physical.

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

What are the 4 layers of the TCP/IP model?

A

Application, Transport, Internet, Network Access.

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

What is the purpose of the Transport Layer?

A

Provides reliable or unreliable end-to-end data transfer (TCP/UDP).

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

What does TCP stand for and what are its characteristics?

A

Transmission Control Protocol – reliable, ordered, connection-oriented.

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

What does UDP stand for and what are its characteristics?

A

User Datagram Protocol – connectionless, fast, no guaranteed delivery.

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

Describe the TCP 3-way handshake.

A

SYN → SYN-ACK → ACK establishes a connection.

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

Describe the TCP 4-way teardown.

A

FIN → ACK → FIN → ACK closes a connection gracefully.

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

What port does HTTP use?

A

TCP port 80.

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

What port does HTTPS use?

A

TCP port 443.

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

What protocol is used for diagnostic and error reporting in IP networks?

A

ICMP (Internet Control Message Protocol).

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

What tool sends ICMP echo requests to check connectivity?

A

ping

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

What does traceroute do?

A

Displays the path packets take to a host by incrementing TTL values.

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

What command shows active network connections and ports?

A

netstat -tulnp or ss -tulnp

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

What command displays routing table entries?

A

route -n or ip route show

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

What is a routing table?

A

A list of network paths specifying how packets are forwarded to destinations.

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

What is a default gateway?

A

A router used to send packets to networks not directly reachable.

Used for traffic outside your local subnet. Systems exit door to the internet.

17
Q

What command shows network interfaces and IP addresses?

18
Q

What is ARP used for?

A

Maps IP addresses to MAC addresses on a local network.

19
Q

What is DNS?

A

Domain Name System – resolves domain names to IP addresses.

20
Q

What port does DNS use by default?

A

UDP port 53 (and TCP for large responses).

21
Q

What is TTL in DNS?

A

Time-To-Live – how long DNS records are cached.

22
Q

What is the difference between recursive and iterative DNS queries?

A

Recursive: resolver fetches final answer; Iterative: resolver gets referrals step by step.

Client makes recursive query to resolver (8.8.8.8)

Resolver makes iterative queries from there.

23
Q

What command checks DNS resolution manually?

A

dig or nslookup.

24
Q

What are sockets in networking?

A

Endpoints for bidirectional communication identified by IP and port.

25
What is the difference between blocking and non-blocking sockets?
Blocking waits for data; non-blocking returns immediately if no data is available.
26
What is a connectionless protocol?
One that does not establish or maintain a session (e.g., UDP).
27
What is MTU?
Maximum Transmission Unit – largest packet size that can be sent without fragmentation.
28
What command captures and inspects packets?
tcpdump or wireshark.
29
What part of TCP header does traceroute modify?
TTL field
30
In IPv6 what is A record equivalent?
AAAA record maps hostname to 128-bit IPv6 address