There are three types of communication process used for sending a data over networks. In all cases, the IPv4 address of the originating host is placed in the packet header as the source address. All three communication process is following:-
- Unicast– The process of sending a data packet from one host to an individual host.
- Broadcast– The process of sending a data packet from one host to all hosts in the network.
- Multicast– The process of sending a packet from one host to a group of hosts, not to all hosts, possibly in different networks
Unicast is the term used to describe communication process between host-to-host over a network. the unicast packets used the destination device address as a destination address and can be routed through an internetwork. In unicast transmission, there is just one sender, and one receiver.
In an IPv4 network, for unicast communication, the addresses assigned to the two end devices are used as the source address and destination address.The source host encapsulates its own IPv4 address as source host address and the IPv4 address of the destination host as the destination address during the encapsulation process. Remember that the source address of any packet is always the unicast address of the originating host.
The range of IPv4 unicast addresses is from 0.0.0.0 to 220.127.116.11. but; inside this range, many addresses are reserved for special purposes. These special purpose addresses will be discussed coming articles.
The broadcast is the term used to describe communication where a packet is sent from one host to all other hosts over the network. In this case, there is just one sender, but the information is sent to all connected receivers.
The broadcast is used a broadcast address to send packets to all hosts in the network. With a broadcast, the packet header contains a destination IPv4 address with all ones (1s) in the host portion. This means that all hosts on that local network will receive the packet. Many network protocols used to broadcast, such as DHCP. When a host receives a packet sent to the network broadcast address, the host processes this packet as it would a packet received to its unicast address.
There are two types of a broadcast first is directed and the other is limited. A directed broadcast is sent to all hosts on a particular network. For example, a host on the 172.16.16.0/24 network sends a packet to 172.16.16.255. This address is routable, so a router would forward it to the end destination gateway if the router is configured to do so But a limited broadcast is sent to 255.255.255.255. The traffic sent to that address will be sent to all the hosts on the local network; it is not a routable address, so a router would not route it anywhere. By default, routers do not forward broadcasts.
A broadcast packet uses resources on the network and every host on the network must process the packet. So that affects the efficiency of the network and its devices. Therefore, broadcast traffic should be limited so that it does not affect the performance of the network or devices. Because routers separate broadcast domains, subdividing of networks can also improve the performance of the network.
Multicast is the term used to describe communication where a data packet is sent from one or more host to a group of other hosts. In this case, there is may be one or more senders; and the information is distributed to a group of receivers. Multicast transmission reduces the traffic by allowing a host to send a single packet to a selected set of hosts that subscribe to a multicast group.
IPv4 has reserved the address range of 18.104.22.168 to 22.214.171.124 for multicasting. The IPv4 multicast addresses 126.96.36.199 to 188.8.131.52 are reserved for multicasting on the local network only. A router connected to the local network know that these packets are addressed to a local network multicast group and never forwards them further. A typical use of reserved local network multicast address is in routing protocols using the multicast transmission to exchange routing information. For example, 184.108.40.206 is the multicast address used by RIP version 2 to communicate with other RIP version 2 routers.
The multicast client can receive multicast data by using client program services. The client program is used to subscribe to the multicast group. Each multicast group is its own IPv4 multicast destination address. When host subscribes to a multicast group, the host processes packets addressed to this multicast address, and packets addressed to its uniquely allocated unicast address.