I tried UDP multicast for the first time in C!
Автор: eszotec
Загружено: 2025-09-07
Просмотров: 166
Hi all!
Hope you all are doing great.
Lets say you want to send some data to a few selected hosts in a given network. How would you do that?
Well of course one way to do that would be to iteratively send the data to each of the selected hosts. But that would essentially mean that you are wasting bandwidth because you are sending the same data multiple times. So is there a better way?
Of course there is and the answer is udp multicasting. With multicasting, the sender/transmitter sends the datagrams to a multicast group IP only once and all the receiver hosts that have subscribed to that multicast group receive the datagram. This is slightly different from UDP broadcasting where all the hosts in the network will get the broadcasted message. Multicasting on the other hand provides every host an option to be a member of one or more multicast group and receive only those messages which are meant for those subscribed groups.
In this video I will be discussing about mutlicasting in depth, how it works, and we will also see it in action using C on Linux!
I hope you all enjoy this video.
Timestamps:
00:00 Introduction
07:10 Unicast
10:36 Broadcast
14:50 Why do we need multicast'
17:36 Multicast
21:44 Why we need multicast routing
24:29 Multicast socket options
34:35 IGMP
35:18 IGMP Snooping
39:13 Sending and receiving UDP multicast datagrams using C
Resource:
Thumbnail Image by manuelwagner0 from Pixabay
References:
https://tldp.org/HOWTO/Multicast-HOWT...
#computernetworks #linux #networking #sockets #udp #multicast #broadcast #cprogramming #linuxnetworking #programming #systems #networkprotocols
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: