OSI - Layer 3: IP Addressing

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

What is the primary purpose of the network address in an IPv4 address?

  • To facilitate communication between different networks
  • To define the subnet mask of the address
  • To route data packets to the correct network (correct)
  • To identify the specific device within the network

Which of the following IPv4 addresses falls within Class B range?

  • 130.14.4.5 (correct)
  • 10.0.0.1
  • 192.168.1.1
  • 224.0.0.1

What format is used to represent an IPv4 address?

  • Hexadecimal digits separated by colons
  • Four decimal numbers separated by dots (correct)
  • A combination of binary and decimal numbers
  • Single 128-bit binary number

Which of the following best describes a private IP address?

<p>An address reserved for internal network use only (D)</p> Signup and view all the answers

CIDR notation is primarily used for what purpose?

<p>To define subnets and their associated masks (A)</p> Signup and view all the answers

Which class of IP address is suitable for small networks with a limited number of hosts?

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

What is a characteristic of public IP addresses?

<p>They are assigned by the IANA and are globally unique. (B)</p> Signup and view all the answers

Which of the following statements correctly describes private IP addresses?

<p>They allow for the creation of internal networks without using public addresses. (B)</p> Signup and view all the answers

What is the primary purpose of Class A IP addresses?

<p>To support very large networks with a significant host portion. (B)</p> Signup and view all the answers

Which of the following IP address ranges is reserved for private networks?

<p>10.0.0.0 to 10.255.255.255 (B)</p> Signup and view all the answers

What does the CIDR notation '10.80.96.11/22' indicate about the network?

<p>The first 22 bits are reserved for the network. (A)</p> Signup and view all the answers

How many usable IP addresses can be obtained from a network with a CIDR notation of /22?

<p>1022 usable IP addresses. (B)</p> Signup and view all the answers

What is the purpose of Network Address Translation (NAT)?

<p>To convert private IP addresses into public IP addresses (D)</p> Signup and view all the answers

In the formula 𝑆 ≤ 2𝑛 for subnetting, what does 'n' represent?

<p>The number of borrowed bits from the host portion. (A)</p> Signup and view all the answers

Which type of NAT allows multiple private IP addresses to use the same public IP address?

<p>Port Address Translation (PAT) (A)</p> Signup and view all the answers

What is the primary purpose of subnetting a network?

<p>To optimize the use of IP addresses and manage traffic. (D)</p> Signup and view all the answers

What is the subnet mask of the IP address 192.168.50.112 if it belongs to a Class C network?

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

What is the result when performing a logical AND operation between an IP address and its subnet mask?

<p>The network address of the IP (B)</p> Signup and view all the answers

If you want to divide a network with CIDR notation of /24 into 6 subnets, which condition must be satisfied?

<p>3 bits must be borrowed from the host portion. (C)</p> Signup and view all the answers

In CIDR notation, how should a binary subnet mask be structured?

<p>All 1s on the left followed by all 0s on the right (B)</p> Signup and view all the answers

Flashcards

Private IP Addresses

A range of IP addresses reserved for internal networks, where devices communicate with each other without using public addresses.

What is a Private IP Address?

An IP address used to identify devices within a local area network (LAN).

Public IP Address

A globally unique address assigned by organizations like IANA, enabling devices to connect to the internet.

Network Address Translation (NAT)

A mechanism that translates private IP addresses to public IP addresses, allowing devices within a private network to communicate with the internet.

Signup and view all the flashcards

IP Address Classes

A method of dividing the IPv4 address space into segments with different sizes for the network and host parts.

Signup and view all the flashcards

What is an IPv4 address?

A unique identifier used to distinguish each device connected to an IPv4 network.

Signup and view all the flashcards

How is an IPv4 address structured?

A 32-bit address consisting of four decimal numbers (0-255) separated by dots (e.g., 192.168.0.1).

Signup and view all the flashcards

What is the Network Address in an IPv4 address?

Specifies which network a device belongs to. It guides routers in directing data packets to the right network.

Signup and view all the flashcards

What is the Host Address in an IPv4 address?

Identifies a specific device or host within a network. It helps distinguish individual devices on the same network.

Signup and view all the flashcards

What is an IP address class?

A division of IPv4 addresses based on the first bits of the address. Class A, B, and C are used for public networks. Each class has a specific range and purpose.

Signup and view all the flashcards

What is NAT?

NAT (Network Address Translation) allows private IP addresses within a local network to communicate with the outside world by translating them to public IP addresses.

Signup and view all the flashcards

What is Static NAT?

A static NAT establishes a one-to-one mapping between a private IP address and a public IP address.

Signup and view all the flashcards

What is Dynamic NAT?

Dynamic NAT assigns available public IP addresses to private IP addresses on-demand.

Signup and view all the flashcards

What is PAT?

PAT (Port Address Translation), also known as overloaded NAT, allows multiple private IP addresses to share the same public IP address by using unique port numbers.

Signup and view all the flashcards

What is a Subnet Mask?

A subnet mask separates the network part of an IP address (identifying the network) from the host part (identifying a specific device within the network). It's typically represented as a binary string with '1's for network bits and '0's for host bits.

Signup and view all the flashcards

What is CIDR notation?

CIDR notation is a method to specify how many bits of an IP address are reserved for the network, and how many are used for host addressing. It's represented as an IP address followed by a slash and a number, e.g., 192.168.1.0/24. The number after the slash indicates the number of bits allocated for the network.

Signup and view all the flashcards

How do you find the total number of IPs in a network?

To calculate the total number of IP addresses in a network, count the number of bits allocated to the host portion. 2 raised to the power of that number gives the total number of addresses. For example, if the host portion has 10 bits, then 2^10 = 1024 IP addresses are available.

Signup and view all the flashcards

How do you find the number of usable IP addresses in a network?

The number of usable IP addresses in a network is calculated by subtracting 2 from the total number of addresses. These 2 addresses are the network address and the broadcast address.

Signup and view all the flashcards

What is subnetting?

Subnetting involves dividing a larger network into smaller subnetworks by adjusting the subnet mask. This enables better management of IP addresses, security, and traffic flow.

Signup and view all the flashcards

How do you calculate the number of subnets?

The formula S ≤ 2ⁿ is used to determine the number of subnets you can create. Here, 'S' is the desired number of subnets and 'n' is the number of bits borrowed from the host portion to create the subnets. The value of 'n' should be a positive integer.

Signup and view all the flashcards

Study Notes

OSI - Layer 3: IP Addressing

  • IP addressing is fundamental for devices to communicate on a network
  • Every connected device has a unique IP address
  • Two main versions of IP addresses exist:
    • IPv4: 32-bit address, represented as four decimal numbers separated by dots (e.g., 192.168.0.1)
    • IPv6: 128-bit address, represented as groups of hexadecimal digits separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334)

Learning Objectives

  • Understand the structure and components of an IPv4 address
  • Master IPv4 address classes
  • Differentiate between public and private IP addresses
  • Use CIDR notation to define subnets
  • Apply subnetting to divide a network

Introduction

  • IPv4 addresses identify every machine connected to a computer network
  • IPv4 addresses consist of four octets, each with a decimal value between 0 and 255, separated by dots
  • Example: 172.16.254.1

IPv4 Addresses

  • A 32 bit address (4 bytes)
  • Example: 172.16.254.1
  • IPv4 addresses structure is divided into two parts:
    • Network address: Identifies the network. Used to route data packets to the correct network
    • Host address: Identifies the specific device on that network.

IP Address Classes

  • IPv4 addresses are divided into classes (A, B, C, D, E)
  • Classes A, B, and C are used for public networks
  • Class A:
    • Address range: 0.0.0.0 to 127.255.255.255
    • Use: Large organizations with many hosts on few networks
    • Example address: 10.0.0.1 (network 10.0.0.0)
  • Class B:
    • Address range: 128.0.0.0 to 191.255.255.255
    • Use: Medium-sized organizations with moderate number of hosts
    • Example address: 172.16.0.1 (network 172.16.0.0)
  • Class C:
    • Address range: 192.0.0.0 to 223.255.255.255
    • Use: Small networks with limited number of hosts
    • Example address: 192.168.1.1 (network 192.168.1.0)

IP Address Classes (Advanced)

  • Classes D (multicast), and E (reserved)
  • Special Addresses:
    • 127.0.0.1: Loopback address (localhost)
    • 255.255.255.255: Limited broadcast address
  • APIPA (Automatic Private IP Addressing): used when a DHCP server is unavailable

Subnet Mask

  • Isolates bits that belong to the network part of an IP address
  • Typically done using binary representation of the IP address and the subnet mask, performing a logical AND operation
  • Determines the network and host portions

CIDR Notation

  • Used to specify how many bits are reserved for the network part of an IP address
  • Example: 10.80.96.11/22

Number of hosts in a Network

  • Calculate the number of bits allocated for the host portion
  • Calculates the number of usable IP addresses
  • Calculate the usable IP addresses, Hosts IP range

Subnetting

  • Dividing a network into smaller subnetworks by adjusting the subnet mask
  • Optimizes the use of IP addresses
  • Logically segments networks to manage traffic and security

IPv6 Addresses

  • 128-bit address space
  • Written in hexadecimal notation, separated by colons
  • Example: 2001:0db8:00f4:0845:ea82:0627:e202:24fe
  • Three types
    • Unicast
    • Multicast
    • Anycast
  • Various addressing schemes for private use
  • Techniques to support coexistence between IPv4 and IPv6:
    • Dual Stack
    • Tunneling
    • Address Translation (NAT64)

Conclusion

  • IPv4 and IPv6, public vs private addresses, and subnetting are crucial for network administration

Studying That Suits You

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

Quiz Team

Related Documents

More Like This

IPv4 & IPv6 Flashcards
35 questions
Networking - IP Addressing Flashcards
17 questions
IP Addressing - IPv4/IPv6 Quiz
31 questions

IP Addressing - IPv4/IPv6 Quiz

SolicitousOklahomaCity avatar
SolicitousOklahomaCity
Use Quizgecko on...
Browser
Browser