Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-23-2021, 12:31 PM   #1
LQ Newbie
Registered: Aug 2011
Posts: 4

Rep: Reputation: Disabled
Question Question about broadcast and multicast in linux (Network Programming)

I'm sorry, I think I found out the problem.
Dear all, good day. I'm sorry for my English as English is not my native language.

I wrote a broadcast and multicast network programming in Linux - Ubuntu, and I observed something weird and I'm seeking for the answer.

For the broadcast network programming, I have a sender that will send a frame to a broadcast IP address and a port number 1234. In the same OS, I have another two terminal that listening to the broadcast IP address and port number. However, only one of the terminal(named as T.A) received the message while another terminal(named as T.B) did not. When I execute the sender's program again, T.B this time received the broadcast message.

When comes into the multicast, I have a sender that sending a frame to a multicast IP address and a port number 1234. In the same OS, I have another two terminal that listening to the multicast IP address and port number 1234. But this time, both of the terminals received the multicast message, this is different than what is happening in the broadcast.

I understand the different between the broadcast and multicast. But I doesn't understand why for the broadcast, only 1 terminal will received the first message while another terminal will received the second message; but in multicast, both terminals receiving the multicast message at the same time.

Looking forward for the clue to clear my doubt.

Thank you,

Best regards,

Last edited by strewberry; 02-23-2021 at 12:36 PM.


broadcast, multicast, network, programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resident Multicast Sockets on a Multicast Router bryanj4 Linux - Networking 0 03-25-2015 01:45 AM
IPv6 multicast address used with VLC and multicast address routing merrittr Linux - Networking 2 01-28-2015 02:26 PM
Broadcast and Multicast Ip Addresses- Where do they exist? sree_ec Linux - Networking 8 10-30-2013 03:11 PM
Why host can't get broadcast or multicast messages from Linux when using wireless e3399 Programming 0 05-14-2012 09:35 AM
IPv6 multicast listener on a Linux box acting as multicast router maxtux Linux - Networking 0 04-01-2012 10:52 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration