Podcast
Questions and Answers
What is the primary purpose of an IPv4 address?
What is the primary purpose of an IPv4 address?
- To uniquely and universally define the connection of a device to the Internet. (correct)
- To encrypt data transmitted over the Internet.
- To provide a firewall and protect devices from unauthorized access.
- To manage network traffic and prioritize data packets.
Two devices on the Internet can share the same IPv4 address at the same time without any issues.
Two devices on the Internet can share the same IPv4 address at the same time without any issues.
False (B)
Define the term 'address space' in the context of IPv4.
Define the term 'address space' in the context of IPv4.
The total number of addresses used by the protocol.
IPv4 uses ______-bit addresses, providing a theoretical address space of over 4 billion addresses.
IPv4 uses ______-bit addresses, providing a theoretical address space of over 4 billion addresses.
Match the IPv4 address notations with their descriptions:
Match the IPv4 address notations with their descriptions:
In dotted-decimal notation, what is the range of values for each byte (octet)?
In dotted-decimal notation, what is the range of values for each byte (octet)?
Classful addressing is the primary addressing architecture used in modern networks.
Classful addressing is the primary addressing architecture used in modern networks.
In classful addressing, how is the class of an address determined when given in binary notation?
In classful addressing, how is the class of an address determined when given in binary notation?
In classful addressing, the address space is divided into five classes: A, B, C, D, and ______.
In classful addressing, the address space is divided into five classes: A, B, C, D, and ______.
Match each address class with its typical usage scenario:
Match each address class with its typical usage scenario:
What is one of the main problems with classful addressing?
What is one of the main problems with classful addressing?
In classful addressing, the concepts of netid and hostid apply to all address classes (A, B, C, D, and E).
In classful addressing, the concepts of netid and hostid apply to all address classes (A, B, C, D, and E).
Define the purpose of a 'mask' in the context of IP addressing.
Define the purpose of a 'mask' in the context of IP addressing.
The mask for a class A address has eight 1s, which means the first 8 bits define the ______.
The mask for a class A address has eight 1s, which means the first 8 bits define the ______.
Match the Classful IP address to its corresponding CIDR notation
Match the Classful IP address to its corresponding CIDR notation
What is another name for slash notation?
What is another name for slash notation?
Supernetting increases the number of 1s in the mask.
Supernetting increases the number of 1s in the mask.
What addressing method eliminated the need for supernetting?
What addressing method eliminated the need for supernetting?
During the era of classful addressing, ______ was introduced as a solution when an organization was granted a large block.
During the era of classful addressing, ______ was introduced as a solution when an organization was granted a large block.
Match the term with what part of the address that it defines:
Match the term with what part of the address that it defines:
Which of the following best describes the purpose of subnetting?
Which of the following best describes the purpose of subnetting?
When subnetting, the rest of the world sees the entire organization as one entity, even if internally there are multiple subnets.
When subnetting, the rest of the world sees the entire organization as one entity, even if internally there are multiple subnets.
In the context of IP addressing and subnetting, what is the role of a router?
In the context of IP addressing and subnetting, what is the role of a router?
In the example provided for the block 17.12.14.0/26 where subnets of size 32 are required, the new mask would be / ______
In the example provided for the block 17.12.14.0/26 where subnets of size 32 are required, the new mask would be / ______
Match the term with it's bit length required to define a host:
Match the term with it's bit length required to define a host:
What is a key characteristic of classless addressing?
What is a key characteristic of classless addressing?
In classless addressing, the addresses in a block do not need to be contiguous.
In classless addressing, the addresses in a block do not need to be contiguous.
What is the role of the Internet Corporation for Assigned Names and Addresses (ICANN)?
What is the role of the Internet Corporation for Assigned Names and Addresses (ICANN)?
In classless addressing, it is convenient to give just the value of 'n' preceded by a slash, this is called ______ notation.
In classless addressing, it is convenient to give just the value of 'n' preceded by a slash, this is called ______ notation.
Associate the following address blocks with the restriction they adhere to:
Associate the following address blocks with the restriction they adhere to:
When an organization is given a block of addresses, what is the first address in the class typically called?
When an organization is given a block of addresses, what is the first address in the class typically called?
Address allocation is only ever given to individual organizations.
Address allocation is only ever given to individual organizations.
What is the significance of the '/n' notation in IP addressing?
What is the significance of the '/n' notation in IP addressing?
An IP address can define only ______ levels of hierarchy when not subnetted.
An IP address can define only ______ levels of hierarchy when not subnetted.
Match the action to the defintion:
Match the action to the defintion:
What should an ISP keep in mined regarding IP address allocation?
What should an ISP keep in mined regarding IP address allocation?
The first address in a block can be found setting zeros to the 'n' leftmost bits.
The first address in a block can be found setting zeros to the 'n' leftmost bits.
The concept of dividing address blocks into subblocks and smaller subblocks is seen in what type of organziation?
The concept of dividing address blocks into subblocks and smaller subblocks is seen in what type of organziation?
Each address in Class D is usually used to define a group of hosts on the internet, this is known as ______.
Each address in Class D is usually used to define a group of hosts on the internet, this is known as ______.
Match each organization need to the recommended IPv4 class type:
Match each organization need to the recommended IPv4 class type:
Flashcards
IPv4 Address
IPv4 Address
A 32-bit address that uniquely and universally defines the connection of a device to the Internet.
Address Space
Address Space
The total number of addresses that can be used by a protocol.
Binary Notation
Binary Notation
A way to display IPv4 addresses as 32 bits, with each octet as a byte.
Dotted-Decimal Notation
Dotted-Decimal Notation
Signup and view all the flashcards
Classful Addressing
Classful Addressing
Signup and view all the flashcards
Netid
Netid
Signup and view all the flashcards
Hostid
Hostid
Signup and view all the flashcards
Mask (Default Mask)
Mask (Default Mask)
Signup and view all the flashcards
CIDR Notation
CIDR Notation
Signup and view all the flashcards
Subnetting
Subnetting
Signup and view all the flashcards
Supernetting
Supernetting
Signup and view all the flashcards
Classless Addressing
Classless Addressing
Signup and view all the flashcards
Address Block
Address Block
Signup and view all the flashcards
First Address
First Address
Signup and view all the flashcards
Network Address
Network Address
Signup and view all the flashcards
Prefix
Prefix
Signup and view all the flashcards
Suffix
Suffix
Signup and view all the flashcards
Three-Levels of Hierarchy: Subnetting
Three-Levels of Hierarchy: Subnetting
Signup and view all the flashcards
ICANN
ICANN
Signup and view all the flashcards
Address Aggregation
Address Aggregation
Signup and view all the flashcards
Study Notes
- IPv4 addresses are 32-bit addresses
- IPv4 addresses uniquely and universally define a device's Internet connection
- Each IPv4 address defines one, and only one, connection to the Internet
- Two devices on the Internet cannot have the same address simultaneously
- Addresses can be assigned to a device for a time period and then reassigned
Address Space
- Address space is the total number of addresses used by a protocol
- A protocol using N bits to define an address has an address space of 2^N
- IPv4 employs 32-bit addresses, resulting in an address space of 2^32, or 4,294,967,296 (more than 4 billion)
- Theoretically, IPv4 could connect over 4 billion devices to the Internet
Notations
- IPv4 addresses are shown in binary and dotted decimal notations
Binary Notation
- Binary notation displays the IPv4 address as 32 bits
- Each octet is often referred to as a byte
- IPv4 address is often referred to as a 32-bit address or a 4-byte address
Dotted-Decimal Notation
- Dotted-decimal notation represents Internet addresses in decimal form, with bytes separated by dots
- In dotted-decimal notation, each number ranges from 0 to 255 because each byte (octet) is 8 bits
Classful Addressing
- IPv4 addressing originally used classes, known as classful addressing
- Classful addressing divides the address space into five classes: A, B, C, D, and E
- Each class occupies a part of the address space
- The address class can be determined from the first few bits in binary notation
- The address class can be determined from the first byte in dotted-decimal notation
Classes and Blocks
- Classful addressing divides each class into a fixed number of blocks, all having a fixed size
- Organizations were granted addresses in class A, B, or C
- Class A was designed for large organizations
- Class B was designed for midsize organizations
- Class C was designed for small organizations
- Class A blocks were too large for most organizations, leading to wasted addresses
- Class B blocks were also too large for many organizations
- Class C blocks were too small for many organizations
- Class D addresses were intended for multicasting
- Class E addresses were reserved for future use, resulting in wasted addresses
Netid and Hostid
- In classful addressing, IP addresses are divided into netid and hostid
- Netid and hostid lengths vary depending on the address class
- Classes D and E do not fit the netid and hostid concept
- Class A uses one byte for the netid and three bytes for the hostid
- Class B uses two bytes for the netid and two bytes for the hostid
- Class C uses three bytes for the netid and one byte for the hostid
- A mask (or default mask) can also be used, which is a 32-bit number of contiguous 1s, followed by contiguous 0s
- Classes D and E do not fit the mask concept
- A class A address mask starts with eight 1 bits that defines a netid; the next 24 bits defines the hostid
- Slash notation, or Classless Interdomain Routing (CIDR) notation, can also be applied to classful addressing
Subnetting
- During classful addressing, subnetting divides a large class A or B block into smaller networks (subnets)
- Subnetting increases the number of 1s in the mask
Supernetting
- Supernetting emerged when class A and B addresses were depleted and there was a demand for midsize blocks
- Supernetting combines several class C blocks to create a larger address range
- Supernetting decreases the number of 1s in the mask
- Classless addressing eliminated the need for supernetting
Address Depletion
- Flaws in classful addressing and rapid Internet growth led to near address depletion
- The number of devices on the Internet is less than the 2^32 address space
- Class A and B addresses are in short supply, and class C blocks are too small
Classless Addressing
- Classless addressing was designed to address depletion and provide more organizations Internet access
- Classless addressing grants addresses in blocks
- Block sizes vary based on the entity's nature and size
Address Blocks
- In classless addressing, entities are granted address blocks (ranges)
- Block sizes depend on the entity's nature and size
- A household might receive two addresses
- Large organizations might receive thousands of addresses
- An ISP is given thousands or hundreds of thousands of addresses, based on the number of customers it may serve
- To simplify address handling, three restrictions are imposed on classless address blocks
Address Block Restrictions
- Addresses within a block must be contiguous
- The number of addresses in a block must be a power of 2
- The first address must be evenly divisible by the number of addresses
- The address block restrictions apply to [205.16.37.32-205.16.37.47]
- The 16 addresses are contiguous
- Since 16 = 2^4, the address is a power of 2
- The number 3,440,387,360 is divisible by 16
Mask
- A mask combined with any address in the block can define a block of addresses
- A mask is a 32-bit number with n leftmost bits as 1s and 32 – n rightmost bits as 0s
- In classless addressing, the mask for a block can range from 0 to 32
- Using the /n value, also known as CIDR notation, with the address completely defines the block
First Address
- The first address in a block can be found by setting the rightmost 32 - n bits in the binary notation of the address to 0s.
Network Addresses
- A key concept in IP addressing is the network address
- When an organization receives an address block, it can allocate those addresses to devices
- The first address is used as the network address, defining the organization network
- Routers use this address to direct messages to the organization from the outside
- The organization network is connected to the Internet via a router, which has two addresses
- One router address belongs to the granted block, while the other belongs to the external network, that is labeled x.y.z.t/n
- All messages destined for addresses between designated numbers, such as 205.16.37.32 to 205.16.37.47, are sent directly or indirectly to x.y.z.t/n
Two-Level Hierarchy: No Subnetting
- An IP address, without subnetting, can define only two hierarchy levels
- The leftmost bits of the address define the network, while the rightmost bits define the host
Prefixes and Suffixes
- Common prefixes and suffixes are used in the two-level hierarchy system
- The prefix is the part of the address that defines the network
- The suffix is the part of the address that defines the host
Three-Levels of Hierarchy: Subnetting
- An organization with a large address block might create network clusters (subnets) and divide addresses among them
- The organization is still viewed as one entity from the outside, while there are subnets internally
- The router sends all messages to the appropriate subnets
- The organization creates subblocks of addresses, each assigned to specific subnets, and assigns each subnet its own mask
Subnetting Example
-
A mask for an organization given the block 17.12.14.0/26, that contains 64 addresses and splits into three offices requires three subblocks of 32, 16, and 16 addresses to assign to the subnets
-
In subnet 1, to have 32 addresses, 2^(32-n1) must be 32, therefore the mask n1 is 27
-
In subnet 2, to have 16 addresses, 2^(32-n2) must be 16, therefore the mask n2 is 28
-
In subnet 3, to have 16 addresses, 2^(32-n3) must be 16, therefore the mask n3 is 28
-
With an organization mask of 26, there are masks of 27, 28 and 28
-
In subnet 1, the address 17.12.14.29/27 uses the mask/27, resulting in the subnet address of 17.12.14.0
-
Host: 00010001 00001100 00001110 00011101
-
Mask: /27
-
Subnet: 00010001 00001100 00001110 00000000 (17.12.14.0)
-
In subnet 2, the address 17.12.14.45/28 uses the mask/28, resulting in the subnet address of 17.12.14.32
-
Host: 00010001 00001100 00001110 00101101
-
Mask: /28
-
Subnet: 00010001 00001100 00001110 00100000 (17.12.14.32)
-
In subnet 3, the address 17.12.14.50/28 uses the mask/28, resulting in the subnet address of 17.12.14.48
-
Host: 00010001 00001100 00001110 00110010
-
Mask: /28
-
Subnet: 00010001 00001100 00001110 00110000 (17.12.14.48)
Multiple Levels of Hierarchy
- Classless addressing allows unlimited hierarchical levels
- Organizations can divide address blocks into subblocks, which can be further divided
- A national ISP can divide a block into smaller blocks for regional ISPs
- A regional ISP can divide its block for local ISPs
- A local ISP can divide its block for specific organizations
- An organization can divide its block into subnets
Address Allocation
- A key challenge of classless addressing is address allocation
- The Internet Corporation for Assigned Names and Addresses (ICANN) has the ultimate responsibility for address allocation
- ICANN assigns large blocks to ISPs, which then divide them into subblocks, and grants the subblocks to the ISP's customers, or Internet users.
- This is defined as address aggregation, or the combination of several address blocks granted to one ISP
Address Aggregation Example
- To distribute its allocation of the block of addresses starting with 190.100.0.0/16 (65,536 addresses) to three groups of customers that make up an ISPs customer base
- The first group has 64 customers, each needing 256 addresses
- The second group has 128 customers, each needing 128 addresses
- The third group has 128 customers, each needing 64 addresses
Resulting Design
- Group 1 Design: 8 bits (log2 256) are needed to define each host with a prefix length of 32-8 = 24
- 1st Customer: 190.100.0.0/24 to 190.100.0.255/24
- 2nd Customer: 190.100.1.0/24 to 190.100.1.255/24
- 64th Customer: 190.100.63.0/24 to 190.100.63.255/24
- Total = 16,385
- Group 2 Design: 7 bits (log2 128) are needed to define each host with a prefix length of 32-7 = 25
- 1st Customer: 190.100.64.0/25 to 190.100.64.127/25
- 2nd Customer: 190.100.64.128/25 to 190.100.64.255/25
- 128 Customer: 190.100.127.128/25 to 190.100.127.255/25
- Total = 16385
- Group 3: 6 bits (log264) are needed to define each host with a prefix length of 32-6 = 26
- 1st Customer: 190.100.128.0/26 to 190.100.128.63/26
- 2nd Customer: 190.100.128.64/26 to 190.100.128.127/26
- 128 Customer: 190.100.159.192/26 to 190.100.159.255/26
- Total = 8192
- 65,536 addresses granted to the ISP
- 40,960 addresses were allocated by the ISP
- 24,576 addresses were available
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.