LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-23-2021, 11:31 AM   #1
strewberry
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.
============================Old=============================
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,
Berry.

Last edited by strewberry; 02-23-2021 at 11:36 AM.
 
  


Reply

Tags
broadcast, multicast, network, programming



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 12:45 AM
IPv6 multicast address used with VLC and multicast address routing merrittr Linux - Networking 2 01-28-2015 01:26 PM
Broadcast and Multicast Ip Addresses- Where do they exist? sree_ec Linux - Networking 8 10-30-2013 02:11 PM
Why host can't get broadcast or multicast messages from Linux when using wireless e3399 Programming 0 05-14-2012 08:35 AM
IPv6 multicast listener on a Linux box acting as multicast router maxtux Linux - Networking 0 04-01-2012 09:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:51 AM.

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