Multiple RTT/InstanceName values returned from RemoteFX Network perf data queries?

%3CLINGO-SUB%20id%3D%22lingo-sub-1823460%22%20slang%3D%22en-US%22%3EMultiple%20RTT%2FInstanceName%20values%20returned%20from%20RemoteFX%20Network%20perf%20data%20queries%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1823460%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20create%20a%20WVD%20Dashboard%20chart%20showing%20all%20my%20hosts%2Fusers%20RTT%20values%20and%20have%20noticed%20that%20the%20data%20in%20the%20resulting%20chart%20is%20wrong.%20On%20further%20investigation%20I%20can%20see%20for%20each%20given%20time%20step%20where%20the%20performance%20data%20is%20gathered%20for%20each%20host%2C%20there%20are%20multiple%20RTT%20values%20(and%20each%20one%20has%20a%20different%20%22InstanceName%22)%2C%20not%20all%20but%20a%20lot%20of%20the%20hosts%20have%20multiple%20values.%20What%20the%20chart%20query%20is%20doing%2C%20is%20then%20averaging%20all%20these%20values%20and%20coming%20up%20with%20a%20wrong(%3F)%20value%20for%20the%20chart%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22QueryResults.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F229541i4C49D7B0A8436E4D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22QueryResults.png%22%20alt%3D%22QueryResults.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20with%20one%20user%20connecting%20to%20the%20machine%2C%20why%20am%20I%20seeing%20multiple%20RTT%20values%20-%20each%20one%20with%20a%20different%20InstanceName%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%2C%20how%20do%20I%20derive%20the%20%22correct%22%20RTT%20value%20from%20that%20list%20for%20the%20active%20user%20for%20display%20on%20the%20chart%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20advice%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGary%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1826958%22%20slang%3D%22en-US%22%3ERe%3A%20Multiple%20RTT%2FInstanceName%20values%20returned%20from%20RemoteFX%20Network%20perf%20data%20queries%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1826958%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20taken%20a%20guess%20that%20the%20highest%20InstanceName%20(Session%20ID)%20must%20be%20the%20currently%20active%20users%20session%20RTT%20(but%20what%20are%20all%20the%20others%20and%20where%20to%20they%20come%20from%20as%20they%20all%20have%20different%20RTT's%3F)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20created%20a%20query%20that%20should%20return%20the%20highest%20InstanceName's%20RTT%20value%20for%20each%20WVD%20Session%20Host%20at%20each%20time%20step%20-%20any%20ideas%20if%20my%20guess%20is%20right%20and%20does%20the%20code%20below%20do%20what%20I%20think%20it%20should%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EPerf%0A%7C%20where%20ObjectName%20%3D%3D%20%22RemoteFX%20Network%22%20and%20CounterName%20%3D%3D%20%22Current%20TCP%20RTT%22%0A%7C%20where%20Computer%20contains%20%22AZUCAD%22%0A%7C%20extend%20Multi%3Dsplit(InstanceName%2C%22%20%22)%0A%7C%20project%20TimeGenerated%2C%20Computer%2C%20CounterValue%2C%20SessionNumber%3Dtoint(Multi%5B1%5D)%0A%7C%20summarize%20MaxSession%3Darg_max(SessionNumber%2C*)%20by%20bin(TimeGenerated%2C%2010m)%2C%20Computer%0A%7C%20project-away%20MaxSession%2C%20TimeGenerated1%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

 

I am trying to create a WVD Dashboard chart showing all my hosts/users RTT values and have noticed that the data in the resulting chart is wrong. On further investigation I can see for each given time step where the performance data is gathered for each host, there are multiple RTT values (and each one has a different "InstanceName"), not all but a lot of the hosts have multiple values. What the chart query is doing, is then averaging all these values and coming up with a wrong(?) value for the chart:

 

QueryResults.png

 

So, with one user connecting to the machine, why am I seeing multiple RTT values - each one with a different InstanceName?

 

And, how do I derive the "correct" RTT value from that list for the active user for display on the chart?

 

Any advice appreciated.

 

Gary

1 Reply

 

I have taken a guess that the highest InstanceName (Session ID) must be the currently active users session RTT (but what are all the others and where to they come from as they all have different RTT's?)

 

I have created a query that should return the highest InstanceName's RTT value for each WVD Session Host at each time step - any ideas if my guess is right and does the code below do what I think it should?

 

Perf
| where ObjectName == "RemoteFX Network" and CounterName == "Current TCP RTT"
| where Computer contains "AZUCAD"
| extend Multi=split(InstanceName," ")
| project TimeGenerated, Computer, CounterValue, SessionNumber=toint(Multi[1])
| summarize MaxSession=arg_max(SessionNumber,*) by bin(TimeGenerated, 10m), Computer
| project-away MaxSession, TimeGenerated1