Network Layer Flashcards

1
Q

What is the purpose of the Network Layer?

A

It lets computers talk using IP, but doesn’t guarantee delivery, order, speed, or reliability

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

What is the key protocol used in the Network Layer?

A

Internet Protocol (IP)

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

What are the two key functions of a router?

A

Routing picks the path. Forwarding moves packets based on a table

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

What is the difference between routing and forwarding?

A

Routing plans the path (long-term). Forwarding sends packets out quickly (short-term)

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

What happens at a router when a packet arrives?

A

Physical layer gets bits,

Link layer opens the frame,

Network layer checks IP and forwards,

packet might wait (queue), then gets sent out

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

What is a switching fabric?

A

Hardware inside a router that moves packets from input to output

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

Where can packet loss occur in a router?

A

Input buffer stores packets if the router’s fabric is slow.

Output buffer stores packets if sending is slower than receiving

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

What is switching rate?

A

How fast a router can move packets inside, should match or beat line rate × number of ports

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

How are forwarding tables structured?

A

Group IP addresses into ranges instead of listing them one by one

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

What is Longest Prefix Matching?

A

Pick the route that matches the most bits of the IP address

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

What is an IP address?

A

A 32-bit number that identifies each interface on a computer or router

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

What is a subnet?

A

A group of interfaces directly connected, sharing the same IP prefix

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

What is CIDR?

A

Classless Inter-Domain Routing (CIDR) uses a format: a.b.c.d/x, where x is the number of subnet bits

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

How does CIDR help with address management?

A

It gives flexible IP ranges, not stuck with fixed classes like A, B, or C

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

What does DHCP do?

A

It auto-assigns IPs when devices connect, so setup is easy

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

What are the 4 DHCP messages?

A

Discover – Host asks for IP.
Offer – Server gives an IP.
Request – Host asks for the IP.
Ack – Server confirms the IP.

17
Q

What else can DHCP provide besides an IP address?

A

First-hop router address, DNS server address, and subnet mask

18
Q

Why is DHCP useful for mobile or temporary users?

A

IPs are given for a short time, then reused or renewed as needed

19
Q

Who allocates IP address space globally?

A

ICANN – Manages internet names and numbers

20
Q

What is NAT? Network Address Translation

A

Lets many local devices share one public IP using different port numbers

21
Q

Why is NAT used?

A

Saves public IPs

Internal IPs can change without breaking external connections

Adds security

22
Q

How does NAT translation work (example)?

Host sends packet → NAT changes IP and port → Server replies → NAT sends it back to the right host

A

Host 10.0.0.1 sends a packet.
NAT router changes it to 138.76.29.7:5001.
External server replies to 138.76.29.7:5001.
NAT sends back to 10.0.0.1:3345 and delivers the reply