Week 6 Topic 3: Layer 3 protocols

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Which layer of the OSI model is responsible for host addressing and routing packets between networks?

  • Layer 4
  • Layer 3 (correct)
  • Layer 2
  • Layer 7

Which organization manages IP address assignments globally?

  • ICANN (correct)
  • ISO
  • IETF
  • IEEE

What is the maximum decimal value an octet in an IPv4 address can have?

  • 256
  • 127
  • 254
  • 255 (correct)

What is the primary function of a router in a network?

<p>Make forwarding decisions based on IP addresses (D)</p> Signup and view all the answers

Why are MAC addresses only useful within a network segment?

<p>Routers do not forward broadcasts, which ARP depends on (D)</p> Signup and view all the answers

What is a 'default gateway' in the context of network routing?

<p>The router used when no other route is specified for a destination network (A)</p> Signup and view all the answers

What is a broadcast domain?

<p>The area over which a broadcast message can be propagated (D)</p> Signup and view all the answers

What operation is used to calculate the network address from an IP address and subnet mask?

<p>Bitwise AND (B)</p> Signup and view all the answers

What is the purpose of a subnet mask?

<p>To identify the network segment of an IP address (A)</p> Signup and view all the answers

What is the result of a bitwise AND operation between 1101 (13 in decimal) and 1011 (11 in decimal)?

<p>1001 (A)</p> Signup and view all the answers

What layer 2 protocol is responsible for finding a host's MAC address when only its IP address is known?

<p>ARP (B)</p> Signup and view all the answers

What is the term for a network attack that involves sending out falsified ARP messages?

<p>ARP poisoning (B)</p> Signup and view all the answers

Given the IP address 192.168.1.10 and a subnet mask of 255.255.255.0, what is the network address?

<p>192.168.1.0 (B)</p> Signup and view all the answers

Using the IP address 10.0.0.50 and a subnet mask of 255.255.255.0, calculate the broadcast address.

<p>10.0.0.255 (A)</p> Signup and view all the answers

If a network is using a /24 subnet mask, how many usable host addresses are available?

<p>254 (A)</p> Signup and view all the answers

A host with IP address 172.16.5.25 and subnet mask 255.255.0.0 needs to communicate with a host at 172.16.10.5. Does the traffic need to be routed through a router?

<p>No, because the hosts are on the same network segment. (A)</p> Signup and view all the answers

What is the result of a bitwise OR operation between 1100 (12 in decimal) and 1010 (10 in decimal)?

<p>1110 (B)</p> Signup and view all the answers

Consider the IP address 192.168.5.20 with a subnet mask of 255.255.255.192. What is the maximum number of usable host addresses in this network?

<p>30 (B)</p> Signup and view all the answers

A router receives a packet with a destination IP address of 10.1.2.5. Its routing table has two entries: 10.1.1.0/24 and 10.1.2.0/24. Which interface will the router use to forward the packet?

<p>The interface associated with 10.1.2.0/24 (B)</p> Signup and view all the answers

Given the IP address 172.16.3.15 and subnet mask 255.255.240.0, what is the broadcast address for this network?

<p>172.16.15.255 (A)</p> Signup and view all the answers

What is the decimal equivalent of the binary number 00001111 after applying a bitwise NOT operation?

<p>240 (A)</p> Signup and view all the answers

A network administrator configures a router with a default gateway of 192.168.1.1. The router receives a packet destined for 8.8.8.8, but the routing table has no specific route for this network. What will the router do?

<p>Forward the packet to the default gateway. (D)</p> Signup and view all the answers

A network is using the IP address range 192.168.10.0/23. How many usable host addresses are available in this network?

<p>510 (D)</p> Signup and view all the answers

Given a host IP address of 10.1.15.66 and a subnet mask of 255.255.255.240, determine the network's valid host IP range.

<p>10.1.15.65 - 10.1.15.78 (D)</p> Signup and view all the answers

How do routers mitigate the issue of excessive broadcasts in a large network?

<p>By isolating broadcast domains (C)</p> Signup and view all the answers

What is the significance of the network address and broadcast address in an IPv4 network?

<p>They are reserved addresses and cannot be assigned to hosts. (D)</p> Signup and view all the answers

In a routing table, what happens if a router cannot find a specific route to a destination IP address and a 'gateway of last resort' (default gateway) is not configured?

<p>The router discards the packet. (C)</p> Signup and view all the answers

Which of the following describes the operation of a bitwise NOT?

<p>Inverts each bit of the operand. (A)</p> Signup and view all the answers

If a packet with a destination IP of 192.168.2.5 arrives at a router, and the routing table contains the entry 192.168.2.0/24, what is the result of the bitwise AND operation between the destination IP and the subnet mask used to determine the route?

<p>192.168.2.0 (C)</p> Signup and view all the answers

Assume a network with an IP address of 192.168.4.0 and a subnet mask of 255.255.255.224. How many hosts would be required to exhaust half of the available assignable IP addresses?

<p>15 (B)</p> Signup and view all the answers

A network engineer has assigned an IP address of 172.16.31.255 with a subnet mask of 255.255.240.0 to a server. Upon attempting to connect to this server, other hosts on the 172.16.0.0/16 network report intermittent connectivity issues. What is the most likely cause of this problem?

<p>The IP address configured is a broadcast address, leading to conflicts. (A)</p> Signup and view all the answers

In a complex network, a router receives a packet with a destination IP of 10.45.12.17. Its routing table contains the following entries:

  1. 10.45.0.0/16, next hop: 192.168.1.1
  2. 10.45.12.0/22, next hop: 192.168.2.1
  3. 0.0.0.0/0, next hop: 192.168.3.1

Which next hop will the router choose for this packet?

<p>192.168.2.1 (B)</p> Signup and view all the answers

An engineer needs to subnet a /24 network into multiple subnets, each capable of hosting exactly 6 usable hosts. What subnet mask is the SMALLEST which meets this?

<p>255.255.255.248 (D)</p> Signup and view all the answers

Flashcards

Internet Protocol Version 4 (IPv4)

Layer 3 protocol providing global addressing for data transmission between hosts on different networks.

Router

A network device that forwards data packets between different networks.

Broadcast Domain

The area over which a broadcast message can be propagated in a network.

Routing Table

A table containing a list of all known networks.

Signup and view all the flashcards

Subnet Mask

Used to idenfity the network segment an IP address belongs to.

Signup and view all the flashcards

Bitwise AND

Calculates if the IP address is within a particular network segment.

Signup and view all the flashcards

Bitwise OR

Returns 1 if either or both bits being compared are 1.

Signup and view all the flashcards

Bitwise NOT

Inverts the bits of the operand.

Signup and view all the flashcards

Network Address

This is the first IP address of the network, reserved and unassignable to hosts.

Signup and view all the flashcards

Broadcast Address

The highest IP address in a network; reserved for broadcasting.

Signup and view all the flashcards

IP Range

The IP addresses available for assignment to hosts within a network.

Signup and view all the flashcards

Gateway

A node providing access to another network.

Signup and view all the flashcards

Route Table Rules

Router configurations that dictate where packets are sent.

Signup and view all the flashcards

Gateway of Last Resort

The router used when no specific route is found.

Signup and view all the flashcards

Study Notes

  • Layer 3 protocols handle host addressing and packet routing between networks in the OSI model.
  • Internet Protocol version 4 (IPv4) and Address Resolution Protocol (ARP) are layer 3 protocols.

Internet Protocol Version 4 (IPv4)

  • IPv4 is a popular layer 3 protocol that facilitates global addressing, allowing hosts to send data across the world.
  • IPv4 addresses are represented in dotted decimal notation (e.g., 192.168.0.1), with each number being an octet (8-bit byte) that does not exceed 255.
  • The Internet Corporation for Assigned Names and Numbers (ICANN) manages IP address assignments.
  • IPv4 operates within layer 2 protocols like Ethernet, with layer 3 packets being the ‘data’ within the frame.

Router

  • Routers prevent the issues of having all hosts in a single network broadcast, like ARP poisoning which is when hackers impersonate servers and collect confidential data, and the waste of network capacity.
  • Routers are networking devices that have different MAC and IP addresses on each port.
  • Routers make complex networking decisions based on IP addresses and enforce security rules.
  • Routers have fewer ports than switches and do not forward broadcasts or ARP messages.
  • Routers operate in network segments and have configurable ports with unique MAC and IP addresses.
  • Routers direct packets based on the destination IP address.

Broadcast Domain

  • A broadcast domain is the area where a broadcast message propagates, similar to the collision domain concept.
  • Routers break up broadcast domains, preventing messages from crossing between segments.
  • MAC addresses are only functional within a network segment.
  • Routers handle ARP by receiving messages, determining the appropriate port, and performing ARP in the destination segment.
  • Hosts determine if a packet needs to be sent via a router, relying on a routing table.

Networks With Multiple Routers

  • If the target host is in the same segment, it can be sent directly but If not, it needs to go via the router.
  • Routing tables contain a list of known networks and their corresponding routers, including a default gateway for unknown routes.

Subnet Masks

  • Subnet masks indicate if an IP address is within a specific network segment.
  • Subnet masks define IP address ranges using bitwise OR, AND, and NOT functions.
  • Bitwise AND compares bits and returns 1 if both are 1, otherwise 0.
  • Bitwise OR returns 1 if either or both bits are 1, otherwise 0.
  • Bitwise NOT inverts bits (1 becomes 0, and 0 becomes 1).
  • The network address, which is the first IP address of the network, is calculated by performing a bitwise AND of the IP address and the mask.
  • Subnet masks are often represented with a slash followed by the number of 1s (e.g., /24).

Broadcast Address Calculation

  • The broadcast address, which is the highest IP address in a network, is reserved and sends data to all hosts.
  • To calculate the broadcast address, invert the subnet mask bits and perform a bitwise OR with the IP address.

IP Range

  • For an IP address of 192.168.0.11 with a mask of 255.255.255.0 (/24):
    • The highest IP address (broadcast address) is 192.168.0.255.
    • The lowest IP address (network address) is 192.168.0.0.
    • The maximum number of IP addresses is 256 – You can have 254 hosts in the network because the first and last IP addresses are reserved.
  • The number of addresses = 2^(32-MaskBits)

Network Configuration

  • Hosts and routers are configured with IP addresses, subnet masks, and default gateways.
  • Routers use routing tables to make decisions on where to send packets.
  • If no match is found, the packet is sent to the gateway of last resort (the default gateway). If the gateway of last resort is not set, the packet is discarded.
  • Routers read every rule in its route table until it finds a match.
  • Use bitwise AND with the target IP address to check if the first rule matches the destination IP address.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Like This

Static Routes in Networking
14 questions

Static Routes in Networking

ThrillingPinkTourmaline avatar
ThrillingPinkTourmaline
Static Routes and Host Configurations
42 questions
Use Quizgecko on...
Browser
Browser