Jump to content
IGNORED

Roon Switches From UDP to TCP


Recommended Posts

I spent 5 hours listening last night and felt there was an improved sound.  Depth layering was more distinct, width was wider and layers (front to back) had more presence and transparency at each level.  Changing protocol could make that type of difference?  Kind of like when I went from a OS SSD with TLC memory to one with SLC memory.  I use HQP with roon and upsample to DSD512, win10 pro standalone PC.

Link to comment

I use an sMS-200ultra endpoint, and did not notice any difference in SQ. However, I cannot tell if TCP is engaged as soon as you use Core v 1.3 build 234, or if there is an upgrade needed on the Roon Ready code version of the endpoint. The sMS-200 v0.3.8 firmware runs Roon Ready v1.1.19.

 

If I am reading correctly, there should be very minimal dependence on the Roon Ready version, because as stated, the design of RAAT is to deliver the protocol code to the endpoint "just in time" from the core, rather than baking it into the firmware. This would suggest protocol changes like this should kick in immediately.

 

If I were motivated, I could do some packet captures and look for the presence of absence of UDP datagrams on the wire, but honestly, I'm not really motivated. As long as SQ does not degrade... I also hope this reduces the incidence of drop outs, pauses, and other glitches that can plague a UDP-based scheme.

Link to comment

I was a bit surprised at the switch too and this quote caught my eye,

"We found that using TCP reduces CPU load on the audio device and in the core--primarily by reducing the context switching overhead associated with “waking up” for each packet. Using TCP also allows us to offload work associated with re-assembling the packetized audio stream from RAAT to the operating system kernel on the audio device, where it can be implemented more efficiently and simply.

We also found that TCP is a lot "friendlier" to poor networks and routers"

And listening Wednesday, i kept telling myself i was just hearing things but song after song I could not deny that the layered depth was more defined and images more palpable, edge to edge was wider as well. It does appear from their wording that once the core is updated then nothing else needs to be done so @austinpop should not have to do anything with his SMS toys to get the benefit.  I run a more direct USB chain than his heavily modified ethernet/usb chain and that may have some effect on the results.  I go from PC via a dac-up usb port-AQ jitterbug- 2m USB- regen-custom 6" silver usb cable and I power regen from a DIYinHK low noise linear PSU that has small transformers right after the ac input.  Hopefully next week i will get the isoregen.

 

I accidentally made one other change that night before i knew the roon would update, I raised my CPU speed and cpu voltage a touch going from a conservative 4 gHz and 1.26v to 4.4 gHz and 1.30 v.  (i7-6700k), that possibly could of had an effect as well, but logic tells me more speed and voltage equals more noise on ground plane which should have reduced SQ not improved.  More listening tonight and more learning.  There is so much we do not understand in streaming digital.

Link to comment

@Quadman - yes I agree. In fact, reading the build notes confirms it:

 

This change rolls out as part of the update to your Roon Core--which will use the new protocol when speaking to all RAAT-based zones. Aside from updating the core, no firmware or software updates are required on any of your devices.

 

It does make sense that if TCP processing can be done more efficiently, with lower CPU and memory utilization, this should improve SQ. Looking back, I just didn't get a chance to do a careful before and after comparison, which is why it's impossible for me to tell if there was an improvement in SQ.

Link to comment
3 hours ago, Quadman said:

And listening Wednesday, i kept telling myself i was just hearing things but song after song I could not deny that the layered depth was more defined and images more palpable, edge to edge was wider as well.

 

This is what I thought I heard as well - along with a bit more "pop" too.

Digital:  Sonore opticalModule > Uptone EtherRegen > Shunyata Sigma Ethernet > Antipodes K30 > Shunyata Omega USB > Gustard X26pro DAC < Mutec REF10 SE120

Amp & Speakers:  Spectral DMA-150mk2 > Aerial 10T

Foundation: Stillpoints Ultra, Shunyata Denali v1 and Typhon x1 power conditioners, Shunyata Delta v2 and QSA Lanedri Gamma Revelation and Infinity power cords, QSA Lanedri Gamma Revelation XLR interconnect, Shunyata Sigma Ethernet, MIT Matrix HD 60 speaker cables, GIK bass traps, ASC Isothermal tube traps, Stillpoints Aperture panels, Quadraspire SVT rack, PGGB 256

Link to comment
1 hour ago, austinpop said:

It does make sense that if TCP processing can be done more efficiently, with lower CPU and memory utilization, this should improve SQ.

I don't understand how a much simpler protocol (UDP) can require more CPU/memory utilisation! I'm genuinely interested why Roon has done this, I don't believe "TCP processing can be done more efficiently" is the reason.

Link to comment

I can confirm I'm seeing significant processing efficiency improvement on some of our hardware, based on a preliminary test.

 

As for SQ, could this be the start of SQ debate of TCP vs UDP, along the lines of PCM vs DSD, WAV vs FLAC, effect of computer digital EMI/RFI noise, audiophile (interconnect / speaker / network) cable, etc.? :)

Peter Lie

LUMIN Firmware Lead

Link to comment
On 6/8/2017 at 4:03 PM, austinpop said:

If I were motivated, I could do some packet captures and look for the presence of absence of UDP datagrams on the wire, but honestly, I'm not really motivated. As long as SQ does not degrade... I also hope this reduces the incidence of drop outs, pauses, and other glitches that can plague a UDP-based scheme.

 

With UDP, packets can arrive in the wrong order if they are routed through different network paths having different latencies.  Obviously, the audio will be distorted if the sample values are scrambled in time.

 

TCP specifies the order of the packets as well as requesting retransmission of dropped packets.

 

I'm surprised the shortcomings of UDP for hi-res audio haven’t been discussed before.

HQPlayer (on 3.8 GHz 8-core i7 iMac 2020) > NAA (on 2012 Mac Mini i7) > RME ADI-2 v2 > Benchmark AHB-2 > Thiel 3.7

Link to comment

It is likely that there would be another SQ gain if the Roon/Hqplayer link recognized that they were on the same host, and used a faster mechanism then TCP/IP for inter-process communication.  I believe that Microsoft enabled such a mechanism in Windows 8 at the OS level.

 

I remember moving from localhost TCP/IP connections on Oracle to a shared memory pipe for local connections and getting orders of magnitude size throughput improvement.

Pareto Audio aka nuckleheadaudio

Link to comment
On 6/11/2017 at 2:19 AM, Bob Stern said:

 

With UDP, packets can arrive in the wrong order if they are routed through different network paths having different latencies.  Obviously, the audio will be distorted if the sample values are scrambled in time.

 

TCP specifies the order of the packets as well as requesting retransmission of dropped packets.

 

I'm surprised the shortcomings of UDP for hi-res audio haven’t been discussed before.

Thanks Bob, I thought this was the case

Regards,

Dave

 

Audio system

Link to comment
On 6/11/2017 at 4:02 PM, lmitche said:

It is likely that there would be another SQ gain if the Roon/Hqplayer link recognized that they were on the same host, and used a faster mechanism then TCP/IP for inter-process communication.  I believe that Microsoft enabled such a mechanism in Windows 8 at the OS level.

 

I remember moving from localhost TCP/IP connections on Oracle to a shared memory pipe for local connections and getting orders of magnitude size throughput improvement.

 

On Linux/Mac it would be easy to use local (Unix domain) sockets instead. Windows is strange animal in that respect (too). In fact Linux pretty much does that automatically for localhost anyway. Not sure if Windows is clever enough to use faster mechanism for localhost.

 

But overall, given the low data rate going between Roon and HQPlayer, it is not much concern which way is used...

 

Signalyst - Developer of HQPlayer

Pulse & Fidelity - Software Defined Amplifiers

Link to comment
4 hours ago, Miska said:

 

On Linux/Mac it would be easy to use local (Unix domain) sockets instead. Windows is strange animal in that respect (too). In fact Linux pretty much does that automatically for localhost anyway. Not sure if Windows is clever enough to use faster mechanism for localhost.

 

But overall, given the low data rate going between Roon and HQPlayer, it is not much concern which way is used...

 

Thanks for your thoughts, You are probably right, no need to fuss at these data rates.  Nevertheless, I think Windows 8 brought a new capability here.  Let me take a look and get back to you.

Pareto Audio aka nuckleheadaudio

Link to comment
On 6/8/2017 at 5:52 PM, Quadman said:

I spent 5 hours listening last night and felt there was an improved sound.  Depth layering was more distinct, width was wider and layers (front to back) had more presence and transparency at each level.  Changing protocol could make that type of difference?  Kind of like when I went from a OS SSD with TLC memory to one with SLC memory.  I use HQP with roon and upsample to DSD512, win10 pro standalone PC.

I just switched to Roon from HQP and this thread explains why I am hearing what I am hearing. Harry Pearson used to describe it as 'grain structure' but I am hearing no grain structure on Roon. Just like reality. In my opinion Roon is a significant sq opportunity over HQP. Way to go  Roon!

Link to comment
3 hours ago, Theobetley said:

I just switched to Roon from HQP and this thread explains why I am hearing what I am hearing. Harry Pearson used to describe it as 'grain structure' but I am hearing no grain structure on Roon. Just like reality. In my opinion Roon is a significant sq opportunity over HQP. Way to go  Roon!

 

I wonder what on earth this has to do with HQPlayer!? What is the relation? :D

 

Signalyst - Developer of HQPlayer

Pulse & Fidelity - Software Defined Amplifiers

Link to comment
14 hours ago, Miska said:

 

I wonder what on earth this has to do with HQPlayer!? What is the relation? :D

 

A bit like the apparent fanboy lack of concern for the original design decision that eventually brought about the U-turn, for something so universally obvious. I wonder what other hidden 'gems' remain?

We are far more united and have far more in common with each other than things that divide us.

-- Jo Cox

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...