Subnetting (Solved Problem 6)

Neso Academy
5 Aug 202206:45

Summary

TLDRThis educational video script explains how to determine the limited broadcast address in a subnet using two methods. First, it introduces the reverse engineering method, starting with a Class B subnet mask of 255.255.0.0, and identifying the network and broadcast addresses for the subnet. The second method involves a bitwise OR operation after taking the one's complement of the subnet mask. The script uses the example of an IP address 25.34.12.56 with a /16 subnet mask to demonstrate the process, resulting in a broadcast address of 25.34.255.255. The lecture concludes with a homework question involving an IP address range and asks viewers to find the broadcast address.

Takeaways

  • 😀 The video script discusses subnetting, specifically finding the broadcast address in a block of addresses.
  • 🔍 The example uses an IP address of 25.34.12.56 with a subnet mask represented in slash notation as /16.
  • 📚 The subnet mask /16 is equivalent to 255.255.0.0 in decimal, which is a Class B subnet mask.
  • 👉 The reverse engineering method starts with the subnet mask and involves converting it into binary to find the network range.
  • 💡 The first subnet range is calculated to be from 25.34.0.0 to 25.34.255.255, using the subnet mask.
  • 🎯 The given IP address falls within the first subnet, and the last address of this subnet is the broadcast address.
  • 🛠️ For finding the broadcast address, a bitwise OR operation is used after taking the one's complement of the subnet mask.
  • 📝 The process involves converting the IP address and the inverted subnet mask into binary and performing the OR operation.
  • 🔢 The result of the OR operation gives the broadcast address in binary, which is then converted back to decimal to find 25.34.255.255.
  • 📚 The video also mentions a homework question asking to find the broadcast address for an IP block with an address range of 182.44.82.16-26.
  • 👏 The lecture concludes with a recap of the process and an encouragement for viewers to apply the knowledge to solve the homework question.

Q & A

  • What is the IP address given in the script?

    -The IP address given in the script is 25.34.12.56.

  • What is the subnet mask notation used in the script?

    -The subnet mask notation used in the script is slash 16, which is equivalent to 255.255.0.0 in decimal.

  • What is the reverse engineering method mentioned in the script?

    -The reverse engineering method starts with the subnet mask and involves converting it to binary, identifying the subnet generator, and determining the network ranges.

  • What is the subnet generator in the given subnet mask?

    -The subnet generator in the given subnet mask is 1, and it is located in the second octet.

  • How is the first subnet range determined in the script?

    -The first subnet range is determined by using the network address 25.34.0.0 and the broadcast address 25.34.255.255.

  • What is the difference between finding the network address and the broadcast address in terms of bitwise operations?

    -For finding the network address, a bitwise AND operation is used, whereas for finding the broadcast address, a bitwise OR operation is used after performing the subnet mask complement.

  • Why is the subnet mask complement necessary before finding the broadcast address?

    -The subnet mask complement is necessary to convert all ones to zeros and all zeros to ones in the subnet mask, which is then used in the bitwise OR operation to determine the broadcast address.

  • What is the broadcast address of the subnet where the given IP address resides?

    -The broadcast address of the subnet where the given IP address 25.34.12.56 resides is 25.34.255.255.

  • How does the bitwise OR operation work in determining the broadcast address?

    -The bitwise OR operation sets an output bit to 1 if at least one of the input bits is 1, resulting in the broadcast address when applied to the IP address and the complemented subnet mask.

  • What is the homework question presented in the script?

    -The homework question asks to find the last address, which is the limited broadcast address, in a block of addresses where the IP address of one host is 182.44.82.16-26.

Outlines

00:00

🔍 Reverse Engineering to Find Broadcast Address

The video script begins with an exploration of subnetting, specifically focusing on identifying the broadcast address for a given IP address and subnet mask. The IP address provided is 25.34.12.56, and the subnet mask is represented in slash notation as /16, which translates to 255.255.0.0 in decimal. The method used to find the broadcast address involves reverse engineering, starting with the subnet mask and converting it into binary to determine the network's range. The first subnet is identified as 25.34.0.0 to 25.34.255.255. The script explains that the last address in this range, 25.34.255.255, is the broadcast address for the subnet. Additionally, a formal method is introduced, which involves using a bitwise OR operation after taking the one's complement of the subnet mask. This process is crucial for understanding how to calculate the broadcast address in networking.

05:00

📚 Step-by-Step Guide to Calculate Broadcast Address

The second paragraph of the script provides a step-by-step guide on how to calculate the broadcast address using the bitwise OR operation. It starts with taking the given IP address, converting it into binary, and then bringing in the subnet mask, which is /16 or 255.255.0.0. The key step introduced here is the one's complement of the subnet mask, which involves inverting all bits (changing 1s to 0s and vice versa). This complemented subnet mask is then used in the bitwise OR operation with the binary representation of the IP address to find the broadcast address. The operation is explained with examples, demonstrating how the presence of a '1' in either input results in a '1' in the output. The final result of this operation for the given IP address is 25.34.255.255, confirming the broadcast address. The script concludes with a homework question that asks the viewer to find the broadcast address for a different IP address range, 182.44.82.16-26, encouraging practical application of the concepts learned.

Mindmap

Keywords

💡Subnetting

Subnetting is the process of dividing a network into smaller sub-networks. It is a key concept in network design that allows for efficient allocation of IP addresses and better management of network traffic. In the video's context, subnetting is used to determine the range of IP addresses available within a specific network block, which is essential for understanding the network's structure and capacity.

💡IP Address

An IP address is a unique numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. In the video, the IP address '25.34.12.56' is provided as an example to demonstrate how to find the broadcast address within a subnet. The IP address is crucial for identifying and locating devices within a network.

💡Subnet Mask

A subnet mask is a 32-bit number used in networking to divide the IP address into network and host portions. It helps in identifying the subnet to which a device belongs. In the script, the subnet mask is represented in slash notation as '/16', which translates to '255.255.0.0' in decimal. This mask is fundamental in determining the network and broadcast addresses.

💡Slash Notation

Slash notation, often represented as /x, where x is a number, is a shorthand used to denote the subnet mask in CIDR (Classless Inter-Domain Routing) format. In the video, 'slash 16' is used to denote that the first 16 bits of the IP address are used for the network part, and the remaining bits are for host addresses. This notation simplifies the representation of subnet masks.

💡Broadcast Address

The broadcast address is a special IP address used to send data to all hosts within a specific subnet. It is the last address in the range of addresses for a subnet. In the video, the task is to find the broadcast address for the subnet, which is essential for understanding how data is transmitted to all devices within a network segment.

💡Reverse Engineering Method

The reverse engineering method mentioned in the video is a technique used to determine network parameters by starting with known values such as the subnet mask and working backward to find other related network details. This method is applied to find the network and broadcast addresses, providing a practical approach to understanding subnetting.

💡Class B Subnet Mask

A Class B subnet mask is a type of subnet mask that is used in Class B networks, which are a category of IP addresses that start with the first two octets ranging from 128.0.0.0 to 191.255.0.0. In the script, '255.255.0.0' is identified as a Class B subnet mask, indicating that the first two octets define the network portion of the IP address.

💡Bitwise AND Operation

The bitwise AND operation is a fundamental operation in computer science that performs a logical AND on each bit of two binary numbers. In the context of the video, the bitwise AND operation is used to find the network address by combining the IP address and the subnet mask. This operation is crucial for determining the network part of an IP address.

💡Bitwise OR Operation

The bitwise OR operation is another fundamental operation that performs a logical OR on each bit of two binary numbers. In the video, the bitwise OR operation is used to find the broadcast address after taking the one's complement of the subnet mask. This operation helps in determining the broadcast address for a subnet.

💡One's Complement

One's complement is a binary operation where each bit of a number is inverted, turning 1s into 0s and 0s into 1s. In the script, the subnet mask is inverted (one's complement) before performing the bitwise OR operation to find the broadcast address. This step is essential for understanding how the broadcast address is calculated.

💡Homework Question

The homework question provided in the video script is an exercise for the viewers to apply the concepts learned in the lecture. It asks to find the broadcast address for a given IP address range, which tests the understanding of subnetting, IP addressing, and the use of subnet masks. This question reinforces the practical application of the concepts discussed in the video.

Highlights

The lecture discusses finding the limited broadcast address in a subnet using the reverse engineering method.

An example IP address 25.34.12.56 and subnet mask in slash notation /16 is used to illustrate the process.

The subnet mask is a Class B subnet mask, represented as 255.255.0.0 in decimal.

Binary conversion of the subnet mask reveals all ones in the first two octets and all zeros in the last two.

The subnet generator is identified as 1 in the second octet, with a decimal place of one.

Network ranges are created using the subnet generator and octet position, with the first subnet being from 25.34.0.0 to 25.34.255.255.

The given IP address falls within the first subnet, with the first address being the network address and the last being the broadcast address.

The broadcast address for the subnet is determined to be 25.34.255.255.

A formal method for finding the broadcast address involves using the bitwise OR operation.

Before the OR operation, the subnet mask must be inverted (ones complement) to find the broadcast address.

The bitwise OR operation is explained, where an output of one is produced if at least one input is one.

The process of converting the binary result back to decimal to find the broadcast address is demonstrated.

The importance of the subnet mask complement step before the OR operation is emphasized.

A homework question is presented, asking to find the broadcast address for an IP block with a given host IP address.

The lecture concludes with a summary of the steps and a reminder of the importance of the subnet mask complement.

The lecture includes a musical and applause segment, indicating the end of the presentation.

Transcripts

play00:00

foreign

play00:06

number six in subnetting

play00:10

in a block of addresses we know the IP

play00:13

address of one host is

play00:16

25.34.12.56 and the subnet mask is

play00:19

represented in a slash notation which is

play00:21

slash 16. what is the last address that

play00:24

is the limited broadcast address in this

play00:27

block we have already solved this in the

play00:29

previous lecture but in the previous

play00:31

lecture we had intended to find the

play00:33

network address but we are required to

play00:36

find the broadcast address in this

play00:38

lecture let's solve this first with the

play00:40

reverse engineering method which we had

play00:42

dealt in the previous case the reverse

play00:44

engineering method starts with the

play00:45

subnet mask we know the subnet mask is a

play00:48

Class B subnet mask which is

play00:50

255.255.0.0 when we convert this subnet

play00:53

mask into binary we will be getting all

play00:55

ones in the first two octets and all

play00:58

zeros in the next two octets then where

play01:00

is the first one we are encountering the

play01:02

first one we are encountering in the

play01:04

second octet right so in the second

play01:06

octet the first one is here and what is

play01:09

the decimal place of this first one when

play01:11

we move from right to left the decimal

play01:13

place of this one is exactly one so the

play01:17

subnet generator is 1 and the octet

play01:19

position is 2 right because this subnet

play01:21

generator is in the second octet so the

play01:24

subnet generator is equal to 1 and the

play01:26

octet position is equal to 2 and we have

play01:29

already created this network ranges I

play01:31

had just copied from the previous

play01:32

problem and I will paste it here we know

play01:35

the first Subnet will be from 25 or

play01:37

34.0.0 to

play01:40

25.34.255.255 if you want to know how I

play01:42

have generated this I request you to

play01:44

watch the previous problem that is

play01:46

solved problem number five now the IP

play01:49

address which is mentioned in the

play01:50

question is falling in the first Subnet

play01:52

we know the first address is the network

play01:54

address and the last address of the

play01:56

subnet is the broadcast address so

play01:57

obviously 25 or

play02:00

34.255.255 is the broadcast address of

play02:03

this subnet the IP address of one of the

play02:05

hosts is given in the question and we

play02:07

found out the broadcast address of this

play02:09

entire net work right this is one way of

play02:12

solving this and this way of solving the

play02:14

problem is the reverse engineering

play02:15

approach now we will solve this in a

play02:18

formal way in the previous lecture we

play02:20

have found the network address by using

play02:22

a simple and operation that is the

play02:24

bitwise and operation but for finding

play02:27

the broadcast address in this problem we

play02:29

are going to use the bitwise or

play02:31

operation just see how I am going to do

play02:33

this so first we need to take the IP

play02:36

address which is given in the question

play02:37

right the IP address which is given in

play02:39

the question is 25 or

play02:42

34.12.56 as usual we need to convert

play02:45

this IP address into binary and we

play02:47

converted this into binary now we need

play02:50

to bring in the subnet mask and what is

play02:52

this update mask that is mentioned in

play02:54

this question

play02:54

class 16 right slash 16 means we need to

play02:58

fill in 16 ones here and then remaining

play03:00

zeros let's fill that so we are bringing

play03:03

in 16 ones here and 16 zeros here

play03:06

because this is the slash 16 subnet mask

play03:08

and the equivalent of slash 16 in

play03:10

decimal is

play03:12

255.255.0.0 in the previous problem we

play03:16

just did and operation with these values

play03:18

right now here one additional step the

play03:21

additional step is before making the or

play03:24

operation we need to do the mass

play03:26

complement so this is the subnet mask we

play03:29

need to do the subnet mask complement

play03:32

complement means it's simple once

play03:34

complement so here we will convert all

play03:36

ones as zeros and all zeros as ones so

play03:39

when we do that we'll be getting the

play03:41

first two octets with full of zeros and

play03:44

the last two octets is full of one

play03:45

please note I am pinning this step here

play03:48

it's a very important step we need to do

play03:51

subnet mask complement before

play03:53

progressing with the or operation in the

play03:55

previous problem when we did a network

play03:57

address calculation we didn't do this

play03:59

complement operation simply we have

play04:01

taken the IP address subnet mask

play04:03

converted that into binary and performed

play04:05

the bitwise and operation but here we

play04:08

need to take the IP address first and

play04:10

then we need to take the subnet mask and

play04:12

then inverse the subnet mask that is

play04:14

make one's complement to the subnet mask

play04:16

so this is a very important step the

play04:19

step is mass complement after we

play04:21

complete this Mass complement as usual

play04:23

we will start proceeding with the

play04:25

operation the operation for finding the

play04:27

broadcast address is the bitwise or

play04:29

operation please note for finding the

play04:32

network address we did and operation for

play04:34

finding the broadcast address we need to

play04:36

perform or operation now we will carry

play04:39

out the bitwise or operation the bitwise

play04:42

or operation is very simple when any one

play04:45

of the inputs is one we will be getting

play04:46

one as the output so if both the inputs

play04:49

are 0 we'll be getting 0 as the output

play04:51

for 0 0 will be getting 0 0 1 1 0 1 1

play04:55

for these combinations will be getting

play04:57

1. in this case we'll be getting this as

play05:00

the result let's check it out now so

play05:02

let's take the first octet and we'll

play05:03

verify it so for 0 0 we'll be getting 0

play05:06

for 0 0 it's zero zero zero it's zero

play05:10

one zero it's one any one of the inputs

play05:13

is high right so 1 0 it is one zero zero

play05:16

it is 0 and 1 0 it is one right we will

play05:20

take the third octet and verify it the

play05:22

third octet we can see at least one of

play05:25

the inputs is one right first four

play05:27

places are zero in the IP address part

play05:29

but fortunately we are having four ones

play05:31

in the Subnet Mask Part the next two

play05:33

bits are one here as well as here and

play05:36

the next two bits are zero in the IP

play05:38

address bar but one in the Subnet Mask

play05:40

Part so at least one input is one in

play05:43

this case

play05:44

so we had just performed the bitwise or

play05:46

operation now let's convert this octet

play05:48

into decimal and when we convert this

play05:50

octet into decimal we'll be getting 25

play05:53

or

play05:54

34.255.255 so this is the broadcast

play05:57

address again I repeat when you are

play06:00

intended to find the broadcast address

play06:01

please ensure this step after converting

play06:04

the subnet mask into binary do one's

play06:06

complement and that's it guys before we

play06:09

conclude let's see the homework question

play06:10

the question is in a block of addresses

play06:13

we know the IP address of one host is

play06:19

182.44.82.16-26 what is the last address

play06:22

that is the limited broadcast address in

play06:25

this block so you are required to find

play06:27

out the broadcast address

play06:29

and that's it guys I hope you enjoyed

play06:31

this lecture and thank you for watching

play06:33

[Music]

play06:34

[Applause]

play06:36

[Music]

Rate This

5.0 / 5 (0 votes)

Related Tags
SubnettingBroadcast AddressIP AddressNetwork AddressReverse EngineeringBitwise ANDBitwise ORSubnet MaskClass B SubnetEducational