L7 Network Layer 2 Flashcards

1
Q

What are the two main components of the network layer?

A
  • Data plane: router-level functions that forward datagrams
  • Control plane: network-wide logic for routing decisions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the network layer protocol enable?

A
  • Logical communication between hosts
  • Encapsulation and delivery of transport layer segments
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the function of the IPv4 version number field?

A
  • Identifies the IP version (e.g., IPv4 or IPv6)
  • Guides routers on how to interpret the datagram
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why is the IPv4 header length field needed?

A
  • Indicates where the payload begins
  • Accounts for optional header fields
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the purpose of the TTL (Time To Live) field in IPv4?

A
  • Prevents infinite looping of datagrams
  • Decrements at each router; if 0, the datagram is dropped
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the type of service (TOS) field indicate?

A
  • Differentiates between real-time and non-real-time traffic
  • Can prioritize traffic (e.g., low delay, high throughput)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does IPv4 handle datagram fragmentation?

A
  • Splits large datagrams into fragments based on MTU
  • Each fragment has the same ID and includes offset info
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does a receiving host reassemble fragmented IP datagrams?

A
  • Uses identification number and offset field
  • Recognizes the final fragment using the flag bit = 0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens if fragments are lost during transmission?

A
  • IPv4 is unreliable—missing fragments prevent reassembly
  • Entire datagram is dropped if incomplete
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is an IP address technically associated with?

A
  • A network interface, not the host itself
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How are IP addresses formatted?

A
  • 32-bit binary values
  • Written in dotted-decimal notation (e.g., 192.168.1.1)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the /24 in an IP address like 192.168.0.0/24 mean?

A
  • The first 24 bits represent the network portion
  • Also called the subnet mask
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Classless Interdomain Routing (CIDR)?

A
  • Strategy where IP addresses use the format a.b.c.d/x
  • x defines the prefix length (network portion)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Define a subnet in IPv4 addressing.

A
  • A logical grouping of connected devices that can communicate without a router
  • Devices in the same subnet share a common IP prefix
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How are IPv6 addresses different from IPv4?

A
  • 128 bits long
  • Includes new anycast address type
  • Fixed 40-byte header for faster routing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What layers are present in end systems but not routers?

A
  • Application, Transport layers are present in end hosts only
  • Routers only use Network, Data Link, Physical layers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Which layers are found in routers according to the diagram?

A
  • Network
  • Data link
  • Physical
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What does the layering in the diagram imply about packet handling?

A
  • Each router examines only the network layer
  • Hosts encapsulate/decapsulate at all layers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

In the diagram, what component is responsible for packet forwarding?

A
  • The network layer within each router
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is the purpose of showing multiple paths in the diagram?

A
  • Illustrates routing across different routers and networks
21
Q

What layers are involved in wireless communication between host and router?

A
  • Physical, Data Link, and Network layers
22
Q

What difference do you observe between wireless and wired segments in the diagram?

A
  • Wireless hosts connect to routers via wireless access points
  • Wired connections are shown using switches and cables
23
Q

What does the ‘fragment offset’ field represent?

A
  • Position of the fragment within the original datagram
  • Helps in reassembly
24
Q

What is stored in the ‘header checksum’ field?

A
  • A value to detect errors in the IP header
  • Recomputed at each router
25
Which field indicates the next layer's protocol in an IPv4 datagram?
- **Upper layer** field (e.g., TCP = 6, UDP = 17)
26
Why is the total length field important in an IPv4 header?
- Indicates combined size of header and payload
27
What is the function of the TTL field in this diagram?
- Limits the lifespan of the datagram by decreasing at each hop
28
How many bits are reserved for source and destination addresses?
- **32 bits each**
29
What is depicted in the upper and lower halves of this diagram?
- Upper: **Fragmentation** of a large datagram - Lower: **Reassembly** at the destination
30
Why are some links fragmented in the diagram?
- Due to **MTU size limitations** on that link
31
How does the receiver know when it has the complete datagram?
- Final fragment has **flag = 0**, and all **offsets** are used to check continuity
32
What protocol handles fragmentation and reassembly?
- **IPv4**
33
How does the diagram show fragmentation into 3 packets?
- Original: 4000 bytes - First two fragments: 1500 bytes - Third fragment: 1040 bytes
34
What does the offset field value represent?
- Position of the fragment’s data in **8-byte units**
35
Why is the offset of the second fragment 185?
- (1480 bytes / 8 = 185), it starts after the first 1480 bytes
36
Which fragment has the flag bit set to 0?
- The **last fragment**, signaling end of original datagram
37
How is subnetting visualized in this diagram?
- IP addresses are split into **subnet** and **host** bits
38
What does the /23 notation mean for 200.23.16.0/23?
- First 23 bits are **network/subnet bits**, the rest are for hosts
39
What does the host part of an address represent?
- The unique identifier of a device within a subnet
40
How many subnets are shown in the diagram?
- **Three**: 223.1.1.0/24, 223.1.2.0/24, and 223.1.3.0/24
41
What connects the subnets together?
- A **router** with interfaces in each subnet
42
What is the purpose of the subnet mask /24?
- Defines that the **first 24 bits** are the network part
43
What kind of network is depicted here?
- A **multi-router** network connecting several **subnets**
44
What do addresses like 223.1.9.2 represent?
- IP addresses of **router interfaces**
45
How are subnets identified in this diagram?
- Each subnet is visually separated by blue shaded areas with their IP range
46
What is the size of IPv6 source and destination addresses?
- **128 bits** each
47
How does the IPv6 header differ from IPv4?
- IPv6 has a **fixed 40-byte header** - Simpler and faster to process
48
What is the function of the 'next hdr' field in IPv6?
- Indicates the **next header type** (similar to IPv4's upper layer field)