What is Broadcasting in Computer Network?
Last Updated :
03 Aug, 2023
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.
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.
Every broadcasted signal is stopped at layer-3 network layer of OSI or to be more practical – at the router. A more technical example of Broadcasting would be: The Address-Resolution-Protocol request (ARP-Request) whenever a host needs to resolve an IP address to its corresponding MAC address it will broadcast a signal asking “Who this IP address belongs to?” and this broadcasted signal is received by every single node in a network domain and then an appropriate node will respond accordingly.
Let’s take example of a broadcast message with an IPv4 address, see the below two diagram of two different networks: (All the nodes are represented by green circles in the below diagrams)

Network ‘A’ in the above image has an IPv4 address – 90.0.0.0. This is the network address, now if any host has to send a message that is to be received by all the networks within this network then that host will use the address – 255.255.255.255
.png)
Network ‘B’ in the above image has an IPv4 address – 92.0.0.0. This is the network address now if any host has to send a message that is to be received by all the networks within this network then that host will also use the address – 255.255.255.255
But if any node of Network – ‘A’ has to broadcast a message to Network – ‘B’ (ALL the nodes in Network – ‘B’) then they’ll use the broadcast address of a network – ‘B’ which is – 92.255.255.255. And if the same is to be done from Network – ‘B’ to Network – ‘A’ then the broadcast address would be – 90.255.255.255
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 :
1. Limited Broadcast
It is a simplest broadcasting in which a message is transmitted to every node within a same network (the destination node exists within the same network), the scope of broadcast doesn’t go beyond the local network. And an example IPv4 address would be – 255.255.255.255, and IPv6 : FF02::1
2. Directed Broadcast
In directed Broadcast, the message is sent to a specific group of hosts within a network that can be identified by their subnets. And the host bits of the destination IPv4 address are all set to 1. Example: 192.168.1.255
3. Subnet Broadcast
Subnetting refers to creating a smaller network within a larger network that shares a common network address. Whenever a message is to be broadcasted to a specific subnet within a larger network then its called subnet Broadcast. In this, the message is sent to the broadcast address of a specific subnet and the broadcast address of a subnet is the highest possible address. For example if the subnet address is : 192.168.1.0 & the subnet mask is 255.255.255.0 then the broadcast address would be 192.169.1.255.
How Broadcasting Works?
It works in following steps :
- The sender of the message to be broadcasted will initiate the process by setting the destination address as the broadcast address of the network.
- The message is encapsulated into the network frame with the destination MAC Address set to the broadcast MAC Address.
- The message is then finally broadcasted, and is received by all the devices of the intended network and the devices that receive this message check if the broadcast matches with their own IP Address.
- If its a match, then device proceeds with the message further else it discards it.
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
Difference between Broadcasting and 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.255 IPv6 : (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?
Answer:
It takes place on data link layer as the destination header is added on this layer in the data frame. The data link layer is also responsible for error free transmission of data frames from one node to another.
Q.2: How does a device recognize that a message received is a broadcasted message?
Answer:
The device will check the MAC Address present in the destination header of data frame at the data link layer and if its a broadcast address then it can be sure that this message is intended for everyone.
Q.3: What are some common protocols that utilize broadcasting for network discovery or address resolution?
Answer:
There are number of protocols that does so, some of them are – ARP(Address Resolution Protocol), ICMP (Internet Control Message Protocol), DHCP(Dynamic Host Configuration Protocol) etc.
Q.4: What are the use cases of broadcasting?
Answer:
Broadcasting mechanism can be utilized best when there’s a need to deliver a message to every single node present in the network. Though, it should be used only when we’re very certain of the message to be delivered to everyone, and is not a sensitive one. A real world analogy would be – posting something publicly on social media thats visible and accessible by everyone.
Similar Reads
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 know
9 min read
Computer Network - Cheat Sheet
A computer network is an interconnected computing device that can exchange data and share resources. These connected devices use a set of rules called communication protocols to transfer information over physical or wireless technology. Modern networks offer more than just connectivity. Enterprises
15+ min read
CATA protocol in Computer Network
Collision Avoidance Time Allocation (CATA) Protocol is a Contention Based MAC Protocols with Reservation which is based on dynamic topology dependent transmission scheduling. In this, time is broken into frames, every frame is divided into slots, and each slots is divided into 5 mini-slots. Initial
3 min read
Collision Domain and Broadcast Domain in Computer Network
Prerequisite - Network Devices, Transmission Modes The most common network devices used are routers and switches. But we still hear people talking about hubs, repeaters, and bridges. Do you ever wonder why these former devices are preferred over the latter ones? One reason could be: 'because they ar
5 min read
WiMax in Computer Network
WiMax (Worldwide Interoperability for Microwave Access) is a wireless communication standard designed to provide high-speed internet access over a wide area. It is based on the IEEE 802.16 family of standards and is often referred to as "Wi-Fi on steroids" because it offers higher data rates and bro
4 min read
What are Gateways in Computer Network?
A gateway is a network node or device that connects two networks that use different transmission protocols. Gateways play an important role in connecting two networks. It works as the entry-exit point for a network because all traffic that passes across the networks must pass through the gateway. Wh
6 min read
What is Load Shedding in Computer Networks?
A network consists of various devices or resources. Each resource is assigned to perform a particular task. Sometimes the available resources are more but the task or load to be performed is less whereas sometimes it is completely opposite. In such scenarios when the load is more as compared to the
4 min read
Difference between Unicast, Broadcast and Multicast in Computer Network
The cast term here signifies some data(stream of packets) is being transmitted to the recipient(s) from the client(s) side over the communication channel that helps them to communicate. Let's see some of the "cast" concepts that are prevailing in the computer networks field. What is Unicast?This typ
5 min read
Basics of Computer Networking
A computer network is a collection of interconnected devices that share resources and information. These devices can include computers, servers, printers, and other hardware. Networks allow for the efficient exchange of data, enabling various applications such as email, file sharing, and internet br
14 min read
Socket in Computer Network
A socket is one endpoint of a two way communication link between two programs running on the network. The socket mechanism provides a means of inter-process communication (IPC) by establishing named contact points between which the communication take place. Like 'Pipe' is used to create pipes and so
2 min read