How To Calculate Broadcast Address?

Case 1: 

Consider an IP address of class A –  10.20.15.3 and the default subnet mask for class A is 255.0.0.0. In each octet, there are 8 bits. So now at bit-level we’ll perform an OR operation on ‘inverted’ Subnet Mask. See the below diagram :

Final Broadcast Address : 10.255.255.255

Case 2:

Consider an IP address of class C –  192.168.3.33 and the subnet mask given is: 255.255.255.248.

Perform same Bitwise OR operation on the given IP & subnet mask till 3rd octet.

But in the 4th octet as we can see its value is neither 0 nor 255 so we’ll have to take some ADDITIONAL STEPS : 

  • There is a total of 256 values for each octet (0-255). So we’ll subtract 248 from 256. 256-248 = 8.
  • 8 here is called the multiplier. Now we have to determine how many multiples of 8 we need to come up with in order to obtain a value just GREATER than – 33 (4th octet in the given IP – 192.168.3.33).
  • Checking multipliers of 8 (keep adding 8 until you get a number greater than 33) :-
    • 8 + 8 = 16      (16 < 33)
    • 16 + 8 = 24     (24 < 33)
    • 24 + 8 = 32     (32 < 33)   
    • 32 + 8 = 40     (40 > 33)
  •  We got our answer – 40 which is immediate greater than 33 and is the multiplier of 8.
  •  Now, the next step is to subtract 1 from 40. 40-1 = 39. And put 39 in the last octet of our broadcast address and that’s the final broadcast address : 192.168.3.39 
     

What is Broadcasting in Computer Network?

In computer network, there are various ways in which we can transmit data from one node to another node, one node to multiple node, and many node to many nodes. For each type of transmission, there’s a term associated with it.  Let’s see their examples in brief :

  • For node to node: ‘Unicast’ also known as POINT-TO-POINT communication. Example: cell phone conversation.
  • When multiple POINT-TO-POINT communications are made its called – ‘Multicast‘. The message is received by only those hosts who choose to be a part of a multicast group.  Example: Video conferencing, sending a message targeting number of people at at a time.
  • One Node to ALL Nodes – Broadcasting. Today we’ll discuss broadcasting in depth.

Similar Reads

What is Broadcasting?

Broadcasting in computer networks is a type of communication mechanism that allows the message to be received by all the nodes of a network. The term broadcast in general refers to the transmission of signals from radio or televisions....

Key Points on Broadcasting

Data is sent to all the nodes/stations in the network domain. A special broadcast address exist for every network which is used to receive a broadcasted message. Not every device want to receive the broadcasted message. It generates the most network traffic because the broadcasted message is sent to every node in the network. It is less secure. A sensitive message shouldn’t be sent to everyone and hence it should be kept in mind before broadcasting a message. Examples : Address Resolution Protocol (ARP) requests, Dynamic Host Configuration Protocol (DHCP) requests....

Advantages of Broadcasting

Ease of communication: The main advantage of broadcasting is it allows the message to be delivered to every node in a network without establishing a POINT-TO-POINT communication channel which saves a lot of time & process overhead. Network Troubleshooting: One can easily identify the corrupt resource or potential security threats in a large network by sending a broadcast message. Reduced Network Traffic: Unlike unicast, which separately sends a message to each node in a network one by one resulting in high volume of traffic, and multicasting which also requires additional network infrastructure and can be complex to manage. But broadcasting doesn’t require any additional network infrastructure and can simultaneously send data to all the nodes in a network without increasing traffic....

Disadvantages of Broadcasting

Broadcast Storm: At any point of time if all of a sudden, a number of devices in a network choose to respond to a broadcasted message by sending another broadcast simultaneously then it would lead to higher network traffic and ultimately result in network failure. Limited Control & Security issue: When broadcasting a message, we have limited control i.e the data is sent to everyone. So any message before being broadcasted should be made sure that its intended user is everyone in the network. Broadcasting doesn’t support large amount of devices, it also doesn’t allow the message to be customized based on personal preferences....

Types of Broadcasting

There are 3 types of broadcasting mainly :...

How Broadcasting Works?

It works in following steps :...

How To Calculate Broadcast Address?

Case 1:...

Difference between Broadcasting and Multicasting

Parameter Broadcasting Multicasting Definition In this, the sender broadcasters the message to all the nodes present in a network In this, the message is sent only to a group of nodes (intended ones). Network overhead The network overhead is high as in this, the message is sent to all the devices present in the network (Generates a large network  traffic) The network overhead is comparatively low because the message is sent only to the devices who’ve joined the multicast group (generates a moderate level of network traffic) Addressing Uses a broadcast address.Ex IPv4 : 192.168.10.255IPv6 : (FF:FF:FF:FF:FF:FF) Uses a special multicast address Recepients Everyone present in the network Only a group of nodes which wants to receive the message Example Address Resolution protocol (ARP) because in ARP, the message is broadcasted to identify the corresponding MAC address related to the IP address Video streaming or meeting with specific clients & audience....

FAQs On Broadcasting

Q.1: In which layer does broadcasting takes place?...