Avnu / tsn-doc

Documentation on TSN Linux components, interfaces and usage
BSD 3-Clause "New" or "Revised" License
37 stars 21 forks source link

pcm aaf address #23

Closed elabbing closed 3 years ago

elabbing commented 3 years ago

Hello, just a tip, please. Setting /etc/asound.conf

 pcm.aaf0 {
        type aaf
        ifname enp1s0.5
        addr 01:AA:AA:AA:AA:AA
...

which is correct value for addr about Talker host?

phy MAC address enp1s0 ether ... or any address is allowed?

Then, how must it set-up in Listeners host? Many thanks

edersondisouza commented 3 years ago

The address there is usually the Ethernet Multicast address being used by the application/stream. So, in a typical TSN environment, applications join the multicast address and send/receive data via it. Of course, if there's only one Listener, the Talker could use Listener MAC address as destination. In this case, Listener will listen on its interface, so it would also use its own MAC address.

craiggunther commented 3 years ago

Be careful about using unicast stream destination addresses. When a reservation is removed the multicast address is removed from the forwarding tables; if the switch removes the unicast destination address when a reservation is torn down you could completely lose contact with the listener.

On 3/4/2021 12:12 PM, Ederson de Souza wrote:

The address there is usually the Ethernet Multicast https://en.wikipedia.org/wiki/Multicast_address#Ethernet address being used by the application. So, in a typical TSN environment, applications join the multicast address and send/receive data via it. Of course, if there's only one Listener, the Talker could use Listener MAC address as destination. In this case, Listener will listen on its interface, so it would also use its own MAC address.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Avnu/tsn-doc/issues/23#issuecomment-790860219, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFQPPYR36KHPJIYMKAFQ4LTB7LRHANCNFSM4YTLINXA.

-- This email has been checked for viruses by AVG. https://www.avg.com

elabbing commented 3 years ago

Ok, clear , thanks. Then, given a TSN-AVB network with one talker and a bunch of listeners, I could define more than a single multicast MAC address to create a logical partition of network, i.e.


 pcm.aaf0 {
        type aaf
        ifname enp1s0.5
                         addr 01:AA:AA:AA:AA:AA
...

 pcm.aaf1 {
        type aaf
        ifname enp1s0.5
                         addr 01:BB:BB:BB:BB:BB
...

 pcm.aaf2 {
        type aaf
        ifname enp1s0.5
                         addr 01:CC:CC:CC:CC:CC
...

Any possible drawback?

edersondisouza commented 3 years ago

I'm not sure I understood your question. Is there one talker sending several streams, and each listener listen to a subset of them? If so, I guess that yes, you could define this logical partition of the network.

elabbing commented 3 years ago

Yes, my question was about the chance to reserve some streams for a limited subset of listeners. In principle, it could be need for management reason of network. At least in my mind... :) Thanks a lot!