The Network Layer Flashcards

1
Q

Define the network layer

A

The network layer, or OSI Layer 3, provides services to allow end devices to exchange data across networks

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

What are the four basic operations performed by the network layer?

A

1) Addressing end devices
2) Encapsulation
3) Routing
4) De-encapsulation

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

Talk about addressing end devices

A

End devices must be configured with a unique IP address for identification on the network.

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

Talk about encapsulation

A

The network layer encapsulates the protocol data unit (PDU) from the transport layer into a packet. The encapsulation process adds IP header information (source and destination IP address)
The encapsulation process is performed by the source of the IP packet.

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

Talk about routing

A

The network layer provides services to direct the packets to a destination host on another network. To travel to other networks, the packet must be processed by a router. The role of the router is to select the best path and direct packets toward the destination host in a process known as routing. A packet may cross many routers before reaching the destination host. Each router a packet crosses to reach the destination host is called a hop.

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

Talk about De-encapsulation

A

When the packet arrives at the network layer of the destination host, the host checks the IP header of the packet. If the destination IP address within the header matches its own IP address, the IP header is removed from the packet. After the packet is de-encapsulated by the network layer, the resulting Layer 4 PDU is passed up to the appropriate service at the transport layer. The de-encapsulation process is performed by the destination host of the IP packet.

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

What’s the function of network layer communication protocols?

A

IPv4 and IPv6 specify the packet structure and processing used to carry the data from one host to another host. Operating without regard to the data carried in each packet allows the network layer to carry packets for multiple types of communications between multiple hosts.

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

What’s the PDU form for each layer?

A

Application/Session/Presentation: Data
Transport Layer: Segment
Network Layer: Packet
Data link Layer: Frame
Physical Layer: Bits

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

Talk about IP Encapsulation

A

IP encapsulates the transport layer segment or other data by adding an IP header. The IP header is used to deliver the packet to the destination host.
The process of encapsulating data layer by layer enables the services at the different layers to develop and scale without affecting the other layers.
The IP header is examined by Layer 3 devices as it travels across a network to its destination. It is important to note, that the IP addressing information remains the same from the time the packet leaves the source host until it arrives at the destination host

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

What are the characteristics of IP?

A

1) Connection-less
2) Best Effort
3) Media Independent
Note: IP was not designed to track and manage the flow of packets.

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

What do we mean when we say IP is connection-less?

A

No dedicated end-to-end connection is created by IP before data is sent.
IP requires no initial exchange of control information to establish an end-to-end connection before packets are forwarded.

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

What do we mean when we say IP is best effort?

A

IP is inherently unreliable because packet delivery is not guaranteed. (Unreliable means that IP does not have the capability to manage and recover from undelivered or corrupt packets. This is because while IP packets are sent with information about the location of delivery, they do not contain information that can be processed to inform the sender whether the delivery was successful).

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

What’s the function of the IPv4 packet?

A

Used to ensure that this packet is delivered to its next stop on the way to its destination end device. It consists of fields containing important information about the packet. These fields contain binary numbers which are examined by the Layer 3 process.

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

What are the significant fields in the IPv4 packet header?

A

1) Version
2) Differentiated service (DS)
3) Time to Live (TTL)
4) Protocol
5) Header Checksum
6) Source IPv4 address
7) Destination IPv4 address
The whole header is 20 bytes

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

Talk about Version

A

Contains a 4-bit binary value that identifies this as an IPv4 packet

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

Talk about Differentiated service (DS)

A

an 8-bit field used to determine the priority of each packet.

17
Q

Talk about Time to Live

A

an 8-bit binary value that is used to limit the lifetime of a packet. The source device of the IPv4 packet sets the initial TTL value. It is decreased by one each time the packet is processed by a router. If the TTL field decrements to 0, the router discards the packet.

18
Q

Talk about protocol

A

This 8-bit binary value is used to identify the next level protocol.

19
Q

Talk about Header Checksum

A

Used to detect the corruption in the IPv4 header.

20
Q

Talk about the source IPv4 address

A

Contains a 32-bit binary value that represents the source IPv4 address of the packet which is always a uni-cast.

21
Q

Talk about the destination IPv4 address

A

a 32-bit binary value that represents the destination IPv4 address of the packet which can be a uni-cast, multi-cast or broadcast.

22
Q

What’s another role of the network layer?

A

Direct packets between hosts

23
Q

A host can send packets to what?

A

1) Itself - A host can ping itself by sending a packet to a special IPv4 or IPv6 address
2) Local host - This is a destination host that is on the same local network as the sending host. The source and destination hosts share the same network address.
3) Remote host - This is a destination host on a remote network. The source and destination hosts do not share the same network address.

24
Q

Define a Default Gateway

A

The default gateway is the network device that can route traffic to other networks.

25
Q

On a network, a default gateway is usually a router with these features:

A

1) It has a local IP address in the same address range as other hosts on the local network.
2) It can accept data into the local network and forward data out of the local network.
3) It routes traffic to other networks.
Note: A default gateway is required to send traffic outside of the local network. Traffic cannot be forwarded outside the local network if there is no default gateway, the default gateway address is not configured, or the default gateway is down.

26
Q

Talk about when a host routes to the Default Gateway

A

A host routing table will typically include a default gateway. In IPv4, the host receives the IPv4 address of the default gateway either dynamically from Dynamic Host Configuration Protocol (DHCP) or configured manually, in IPv6, the router advertises the default gateway address or the host can be configured manually.
A default route is the route or pathway your computer will take when it tries to contact a remote network.

27
Q

Talk about host routing tables

A

On a Windows host, the route print or netstat -r command can be used to display the host routing table. Both commands generate the same output.
It displays three sections:
1) Interface List
2) IPv4 Route Table
3) IPv6 Route Table

28
Q

What does a host consult when it wants to send a packet to another host?

A

It’s routing table.
If the destination host is on a remote network, the packet is forwarded to the default gateway, which is usually the local router.

29
Q

What happens when a packet arrives on a router interface?

A

The router examines the destination IP address of the packet and searches its routing table to determine where to forward the packet. The routing table contains a list of all known network addresses (prefixes) and where to forward the packet. These entries are known as route entries or routes. The router will forward the packet using the best (longest) matching route entry.

30
Q

What are the three types of route entries that a routing table stores?

A

1) Directly-connected networks
2) Remote networks
3) Default route

31
Q

Talk about Directly-connected networks

A

These network route entries are active router interfaces. Routers add a directly connected route when an interface is configured with an IP address and is activated. Each router interface is connected to a different network segment.

32
Q

Talk about remote networks

A

These network route entries are connected to other routers. Routers learn about remote networks either by being explicitly configured by an administrator or by exchanging route information using a dynamic routing protocol.

33
Q

Talk about Default route

A

Like a host, most routers also include a default route entry, a gateway of last resort. The default route is used when there is no better (longer) match in the IP routing table.

34
Q

A router can learn about remote networks in one of two ways:

A

1) Manually ( Static routing).
2) Dynamically - Remote routes are automatically learned using a dynamic routing protocol.

35
Q

Talk about static routing

A

Static routes are route entries that are manually configured. The static route includes the remote network address and the IP address of the next hop router.
If there is a change in the network topology, the static route is not automatically updated and must be manually reconfigured.

36
Q

Characteristics of static routing:

A

1) A static route must be configured manually.
2) The administrator needs to reconfigure a static route if there is a change in the topology and the static route is no longer viable.
3) A static route is appropriate for a small network and when there are few or no redundant links.

37
Q

What is the command used to view the IPv4 routing table?

A

show IP route privileged EXEC mode command

38
Q

Common route sources (codes) include these:

A

L - Directly connected local interface IP address
C – Directly connected network
S – Static route was manually configured by an administrator
O - OSPF
D - EIGRP