Getting netjack working

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
tavasti
Established Member
Posts: 2047
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 369 times
Been thanked: 208 times
Contact:

Getting netjack working

Post by tavasti »

I am trying to setup netjack between my linux machine jack, and VM running windows.
In master( Ubuntu 18.04), running 'jack_load netmanager '. I have 2 network interfaces, and one bridge where VM networking is running.

In VM, starting jack with qjackctl, with net backend. Windows firewall is disabled.

I can see that windows is sending stuff:

Code: Select all

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on br0, link-type EN10MB (Ethernet), capture size 262144 bytes
00:51:40.754978 IP 192.168.8.112.19000 > 225.3.19.154.19000: UDP, length 644
And I can see that master is listening that port:

Code: Select all

root@hermo:~# netstat -lnp | grep 19000
udp        0      0 0.0.0.0:19000           0.0.0.0:*                           17199/jackdbus      
But still, nothing works :-(

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Re: Getting netjack working

Post by bluebell »

tavasti wrote: Fri Sep 11, 2020 9:53 pm I am trying to setup netjack between my linux machine jack, and VM running windows.
In master( Ubuntu 18.04), running 'jack_load netmanager '. I have 2 network interfaces, and one bridge where VM networking is running.

In VM, starting jack with qjackctl, with net backend. Windows firewall is disabled.

I can see that windows is sending stuff:

Code: Select all

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on br0, link-type EN10MB (Ethernet), capture size 262144 bytes
00:51:40.754978 IP 192.168.8.112.19000 > 225.3.19.154.19000: UDP, length 644
And I can see that master is listening that port:

Code: Select all

root@hermo:~# netstat -lnp | grep 19000
udp        0      0 0.0.0.0:19000           0.0.0.0:*                           17199/jackdbus      
But still, nothing works :-(
There are 2 netjacks. One with multicast and one with point-to-point connections. You are using the multicast version.

Maybe your windows doesn't react to multicast or you are using a switch that tries to manage IGMP and fails. I had a TP Link switch with builtin IGMP management and it broke my OSPF at home which uses multicast.


When playing with netjack I use the point-to-point version:

Machine without audio interface:
jackd -R -d netone

Machine with audio interface:
jack_netsource -H <Machine without audio interface>

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

tavasti
Established Member
Posts: 2047
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Has thanked: 369 times
Been thanked: 208 times
Contact:

Re: Getting netjack working

Post by tavasti »

bluebell wrote: Sat Sep 12, 2020 7:55 am There are 2 netjacks. One with multicast and one with point-to-point connections. You are using the multicast version.

Maybe your windows doesn't react to multicast or you are using a switch that tries to manage IGMP and fails. I had a TP Link switch with builtin IGMP management and it broke my OSPF at home which uses multicast.


When playing with netjack I use the point-to-point version:

Machine without audio interface:
jackd -R -d netone

Machine with audio interface:
jack_netsource -H <Machine without audio interface>
Oh, that is great info!

Do I need to do load netmanager before running jack_netsource, or is it ment to run alone?

Linux veteran & Novice musician

Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM

User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Re: Getting netjack working

Post by bluebell »

tavasti wrote: Sat Sep 12, 2020 9:17 pm
bluebell wrote: Sat Sep 12, 2020 7:55 am There are 2 netjacks. One with multicast and one with point-to-point connections. You are using the multicast version.

Maybe your windows doesn't react to multicast or you are using a switch that tries to manage IGMP and fails. I had a TP Link switch with builtin IGMP management and it broke my OSPF at home which uses multicast.


When playing with netjack I use the point-to-point version:

Machine without audio interface:
jackd -R -d netone

Machine with audio interface:
jack_netsource -H <Machine without audio interface>
Oh, that is great info!

Do I need to do load netmanager before running jack_netsource, or is it ment to run alone?
I don't load netmanager.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Re: Getting netjack working

Post by bluebell »

tavasti wrote: Fri Sep 11, 2020 9:53 pm I am trying to setup netjack between my linux machine jack, and VM running windows.
In master( Ubuntu 18.04), running 'jack_load netmanager '. I have 2 network interfaces, and one bridge where VM networking is running.

In VM, starting jack with qjackctl, with net backend. Windows firewall is disabled.

I can see that windows is sending stuff:

Code: Select all

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on br0, link-type EN10MB (Ethernet), capture size 262144 bytes
00:51:40.754978 IP 192.168.8.112.19000 > 225.3.19.154.19000: UDP, length 644
And I can see that master is listening that port:

Code: Select all

root@hermo:~# netstat -lnp | grep 19000
udp        0      0 0.0.0.0:19000           0.0.0.0:*                           17199/jackdbus      
But still, nothing works :-(
I tried the same with a Windows 10 VM on a Linux host. Doesn't work. Seems both net and netone are broken in Windows jackd. Netone shows an initialization errror, net doesn't. It sends packets but the master side doesn't seem to understand them.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

bosurus
Posts: 1
Joined: Mon Jun 07, 2021 6:15 pm
Been thanked: 1 time

Re: Getting netjack working

Post by bosurus »

I managed to run jack2 backend -net on Linux (Parrot Home =Debian Buster rolling) and jack2 -net in Windows 7 VM (Qemu/KVM) together.

I suppose that Linux jack with jack_load netmanager seems to listen for multicast only on device eth0, but not on VM device virbr0.

I found a workaround with installing smcroute (static multicast router daemon), configured to mirror multicasts from virbr0 to eth0:
my /etc/smcroute.conf:
phyint eth0 enable
phyint virbr0 enable
mgroup from virbr0 source 192.168.122.105 group 225.3.19.154
mroute from virbr0 source 192.168.122.105 group 225.3.19.154 to eth0

where .105 is the VM IP and .154 the default jack multicast IP
Now the Linux jack recognizes the VM jack and connect to it automatically.

So I can use VM MIDI and audio ports and play Windows VST plugins, with MIDI-input from Linux host and VM audio-outs back to Linux host, and low-latency (with option -l1). Nice! :D

I still have a problem with jack transport. Jack on Windows says "Netdriver started in async mode without Master's transport sync".
So when I start transport (= playing) from Linux DAW or qjackctl, with the VM running, I get a delay about 5sec until Linux transport/playing is really starting. Windows transport is not starting anyway.
Seems that the Linux master transport is waiting for sync with VM jack until timeout. If the VM is not running, no delay happens. Asked about it in JackAudio mailing list (May 2021), but no answer so far.

I tried backend -netone, but got initializing error "netjack_poll not implemented ... initing net driver fails" with Windows jack. so the Linux master could not connect. Happens with Windows version jack 1.9.11 and jack2 1.9.17/18, seems to be a known problem.
User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Re: Getting netjack working

Post by bluebell »

See also viewtopic.php?f=27&t=23229

That works as well.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

Post Reply