IPv4 vs IPv6: Addressing and Network Identifiers

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

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

Questions and Answers

Which characteristic distinguishes IPv6 from IPv4?

  • IPv6 was deployed in 1981, while IPv4 was deployed in 1992.
  • IPv6 has fewer available addresses than IPv4.
  • IPv6 uses hexadecimal notation, while IPv4 uses dotted decimal notation. (correct)
  • IPv6 uses a 32-bit addressing scheme, while IPv4 uses a 128-bit addressing scheme.

What part of the MAC address identifies the manufacturer of the network interface card?

  • Vendor-Assigned section
  • Network ID
  • Host ID
  • Organizational Unique Identifier (OUI) (correct)

Which type of IP address is best suited for hosting a web page or service on the internet and remains constant?

  • Link-Local address
  • Static public IP address (correct)
  • Dynamic public IP address
  • Private IP address

If a computer on a network is assigned an IP address of 192.168.1.100 and the network uses a Class C address, which part of the IP address represents the host ID?

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

Which IPv4 address class is designed for multicasting?

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

An engineer needs to configure a loopback address for testing purposes. Which of the following IPv4 addresses should they use?

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

A network administrator wants to send a message to all hosts on the network. Which IPv4 address should they use?

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

What is the primary function of a subnet mask?

<p>To determine which part of an IP address identifies the network and which part identifies the host. (D)</p>
Signup and view all the answers

If a network has a subnet mask of 255.255.255.0, how many bits are used for the network ID?

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

Which of the following is a valid shorthand representation of the subnet mask 255.255.255.0?

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

What is the purpose of a default gateway?

<p>To specify the address of the nearest routing device for forwarding packets outside the local network. (B)</p>
Signup and view all the answers

Given the binary IP address 10101000.00001010.00001111.11000000, what is its dotted-decimal notation equivalent?

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

In subnet masking, what operation is used to separate the network and host portions of an IP address?

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

A company needs to subnet a Class B network into 45 subnetworks. How many bits are required for the subnet ID?

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

Continuing from the previous question, if a company uses 6 bits for the subnet ID, what is the custom subnet mask in dotted-decimal notation?

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

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

<p>To increase the number of available IP addresses by allowing private networks to use a single public IP address. (A)</p>
Signup and view all the answers

In IPv6, what is the purpose of using a double colon (::) in an address?

<p>To represent one or more consecutive 16-bit segments containing only zeros. (A)</p>
Signup and view all the answers

Which type of IPv6 address identifies a group of network interfaces, typically on different nodes, where a packet is routed to the nearest interface?

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

What is the IPv6 equivalent for IPv4's broadcast address?

<p>IPv6 does not define a broadcast address; multicast is used instead. (D)</p>
Signup and view all the answers

Which IPv6 address is used as the source address for some packets and is represented as ::/128?

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

Flashcards

IPv4 Address Size

IPv4 uses a 32-bit addressing scheme.

IPv6 Address Size

IPv6 uses a 128-bit addressing scheme.

MAC address

A unique identifier assigned to a network interface card by the manufacturer.

Organizationally Unique Identifier (OUI)

The first 24 bits of a MAC address, identifying the manufacturer.

Signup and view all the flashcards

Vendor-Assigned MAC Address

The last 24 bits of the MAC address, uniquely assigned by the vendor to denote the serial number.

Signup and view all the flashcards

IP address

An address assigned to uniquely and universally identify each device on an IP network.

Signup and view all the flashcards

Public IP address

Used by computers to find each other online; assigned by the ISP.

Signup and view all the flashcards

Static public IP address

A fixed IP address primarily used for hosting web pages or services.

Signup and view all the flashcards

Dynamic public IP address

An IP address chosen from a pool, changes each time you connect to the Internet.

Signup and view all the flashcards

Private IP address

Used by computers on a private network to communicate with the router.

Signup and view all the flashcards

Network ID/field

Identifies the host located on the same physical network.

Signup and view all the flashcards

Host ID

Identifies the individual host within a network.

Signup and view all the flashcards

Class A address

This Class uses only the first octet to indicate the network address.

Signup and view all the flashcards

Class B address

This Class uses two octets to indicate the network address.

Signup and view all the flashcards

Class C address

This Class uses three octets to identify the network portion.

Signup and view all the flashcards

Class D address

Enables multicasting using an IP address, directing packets to predefined groups.

Signup and view all the flashcards

Class E address

Reserved by the Internet Engineering Task Force (IETF) for its own research.

Signup and view all the flashcards

Subnet mask

Determines which portion of an IP address identifies the network and the host.

Signup and view all the flashcards

Default Gateway

The address of the nearest routing device that the host uses to forward packets.

Signup and view all the flashcards

Subnetting

A process of borrowing bits from the host ID field to create new subnet ID fields.

Signup and view all the flashcards

Study Notes

  • IP has undergone several version changes
  • There are two IP versions, IPv4 and IPv6

IP version 4 (IPv4)

  • Deployed in 1981
  • Uses a 32-bit (4 bytes) addressing scheme
  • Address format is Dotted Decimal Notation, like 192.149.252.76
  • Prefix Notation example: 192.149.0.0/24
  • Has approximately 4,294,967,296 addresses

IP version 6 (IPv6)

  • Deployed in 1992
  • Uses a 128-bit (16 bytes) addressing scheme
  • Address format is Hexadecimal Notation, like 3FFE:F200:0234:AB00:0123:4567:8901:ABCD
  • 3FFE:F200:0234::/48 is a Prefix Notation example
  • IPv6 has ~340,282,366,920,938,463,374,607,431,768,211,456 addresses

Network Identifiers via TCP/IP

  • MAC address is the unique physical address of computers
  • MAC addresses are assigned by the manufacturer of the network interface card
  • OUI (Organizational Unique Identifier) is the first 24 bits of the MAC address
  • The OUI is vendor-specific, identifying the company that made the device
  • Vendor-Assigned refers to the remaining 24 bits of the MAC address
  • The Vendor-Assigned uniquely identifies the serial number of the individual device and assigned by the specific vendor

IP Addresses

  • An IP address uniquely identifies each device on an IP network
  • It is commonly assigned by the network administrator or internet service provider
  • Public IP address enables computers to find each other online
  • Public IP addresses are assigned by the ISP upon connection to the Internet gateway
    • Static public IP addresses are fixed and used for hosting web pages or internet services
    • Dynamic public IP address is chosen from a pool and changes each time one connects to the internet
  • Private IP addresses are used by computers on a network to communicate with the router
  • Private IP addresses can change each time they connect

Parts of an IP Address

  • The network ID/field indicates the host is on the same physical network
  • The host ID identifies the individual host within a network

Classes of IPv4 Addresses

  • Class A addresses uses the first octet to indicate the network address
  • Class A addresses range from 1.0.0.0 to 127.0.0.0
  • The format for Class A addresses is Network.Host.Host.Host
  • Class A addresses use 24 bits for the host
  • Class A networks have a maximum of 16,777,214 hosts
  • Class B addresses uses the first two octets to indicate the network address
  • Class B addresses range from 128.0.0.0 to 191.255.255.255
  • The format for Class B addresses is Network.Network.Host.Host
  • Class B addresses use 16 bits for the host
  • Class B networks have a maximum of 65,534 hosts
  • Class C addresses uses the first three octets to identify the network
  • Class C addresses range from 192.0.0.0 to 233.255.255.255
  • The format for Class C addresses is Network.Network.Network.Host
  • Class C addresses use 8 bits for the host
  • Class C networks have a maximum of 254 hosts
  • Class D addresses are created to enable multicasting using an IP address
  • Class D addresses range from 224.0.0.0 to 239.255.255.255 and are in Host.Host.Host.Host format
  • The first four bits of Class D addresses must be 1110
  • This makes the first octet range from 224 to 239
  • Class E addresses are reserved by the IETF for research
  • Class E addresses range from 240.0.0.0 to 255.255.255.255
  • The first four bits of Class E is set to "1111"
  • The resultant octet range is 240 to 255

IANA IPv4 Special-Purpose Addresses

  • Loopback/Localhost Addresses (127.0.0.0 – 127.255.255.255) are used for testing and debugging
  • Default Network (0.0.0.0) is used for routing internet datagram (TCP)
  • Network Broadcast (255.255.255.255) is used for broadcasting messages
  • Private-use addresses are preconfigured for extending IPv4 spaces
    • Private-use addresses include 10.0.0.0 – 10.254.254.254, 172.16.0.0 – 172.16.254.254 and 192.168.0.0 – 192.168.254.254
  • Link-Local Addresses (169.254.0.0 – 169.254.254.254) are selected and configured if DHCP is not present

Subnet Mask

  • Subnet masks determine the network and host portions of an IP address
  • Subnet masks are represented by four octets
  • Network bits are represented by 1s, and node bits by 0s

Default Mask

  • Class A default mask: 255.0.0.0 (/8)
  • Class B default mask: 255.255.0.0 (/16)
  • Class C default mask: 255.255.255.0 (/24)
  • Class D & E are used for Multicast and Research purposes
  • Default Gateway is to specify the address of the nearest routing device

Dotted-Binary to Dotted-Decimal Conversion

  • An IP address of 117.149.29.2 is written in dotted-decimal notation

Subnet Masking

  • To determine where to break the IP address, the IP address must be "ANDed" with its default mask in binary

Converting IPv4 Addresses

  • Convert IPv4 address from decimal into binary
    • Divide the given decimal number by 2 and note down the remainder (Step A)
    • Divide the obtained quotient by 2, and note the remainder again (Step B)
    • Repeat the above steps until you get 0 as the quotient (Step C)
    • Write the remainders in reverse order (Step D)

Determining the network portion

  • The Least Significant Bit (LSB) of the binary number is at the top and the Most Significant Bit (MSB) is at the bottom

Subnetting

  • Subnetting is borrowing bits from the host ID field to form a new subnet ID field

Steps for Determining the Class and Subnet Mask

  • Determine the class and the default mask of the IP address
  • Identify the number of subnets required
  • Determine how many bits are required to support the total number of subnets
  • Determine the custom subnet mask for our network by masking.

Calculating Valid Network IDs

  • Determine the valid network IDs by using the smallest bit of the custom subnet mask
  • List each subnet address starting with the incremental value
  • Total number of subnets = 2s – 2
  • Total number of hosts = 26 – 2 = 62

###Determining Host Addresses

  • Count the remaining bits (zero's) to the right-hand side of the custom subnet mask
  • Total number of hosts = 2h- 2

IPv6 Addresses and Notation

  • The scale of Internet expansion was unforeseen
  • IETF launched NAT and CIDR to delay IPv4 exhaustion
  • IANA announced final IPv4 allocation on February 3, 2011
  • The last batch of /22 IPv4 allocation was created November 25, 2019
  • IPv6 became a Draft Standard December 1998, ratified July 14, 2017
  • IPv6, or IP Next Generation (IPng), is an upgraded version of IPv4
  • IPv6 addresses are 128 bits long and divided into eight segments using colons
  • Each segment contains 16 bits, and is expressed in hexadecimal notation

IPv6 Address Formats

  • An IPv6 address is expressed using IPv6 address/mask length format
    • Example: 2001:0DB8:2345:CD30:1230:4567:89AB:CDEF/64
      • IPv6 address: 2001:0DB8:2345:CD30:1230:4567:89AB:CDEF
      • Subnet number: 2001:0DB8:2345:CD30::/64

IPv6 Abbreviation Specifications

  • The leading 0s in each 16-bit segment can be omitted
  • If all bits in a 16-bit segment are 0s, at least one 0 must be reserved
  • A double colon (::) represents consecutive 16-bit segments containing only 0s
  • Only one :: is allowed in an entire IPv6 address
  • Abbreviated IPv6 addresses with two double colons (::) cannot be restored to the original.

IPv6 Address Classification

  • Unicast address identifies an interface, sending packets to the interface having that address
    • Unspecified address: 0:0:0:0:0:0:0:0/128, or ::/128, used as the source address of some packets
    • Loopback address: 0:0:0:0:0:0:0:1/128, or ::1/128, used for local loopback tests
  • Multicast address identifies multiple interfaces, sending packets to all interfaces in the multicast group
    • Only interfaces in a multicast group listen to packets for that group
    • IPv6 does not define any broadcast address, with IPv6 multicast serving all broadcast application scenarios
  • Anycast address identifies a group of network interfaces, routing packets to the nearest interface having that address

Studying That Suits You

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

Quiz Team

Related Documents

More Like This

Use Quizgecko on...
Browser
Browser