I have F5 - LTM with below h/w CPU Status Index Temp(degC) Fan Speed(rpm) 1 33 15913
Platform Name C112 BIOS Revision OBJ-0433-xx Build: 1.12.137.0 10/30/2012 Base MAC 00:23:e9:70:d2:c0
-- in partition called = scms_prod created one Virtual Server = Type Standard for VIP on port 3389 as per the document from F5 http://www.f5.com/pdf/deployment-guides/f5-microsoft-remote-desktop-services-dg.pdf and having two Nodes with SNAT and Persistance Profile is rdp and NO-iRule Method- Round Robin. But connection on Pool are not load balancing . what could be the problem and how to troubleshoot.
output of ..in partition is below show /ltm persistence persist-records mode msrdp all-properties
Sys::Persistent Connections
msrdp - VIP-RDP%2:3389 - NODE-1%2:3389
TMM 2 Mode msrdp Value AVPR-PMPS Age (sec.) 23 Virtual Name /scms_prod/PIM-PSM-MGT_3389_vs Virtual Addr VIP-RDP%2:3389 Node Addr NODE-1%2:3389 Pool Name /scms_prod/PIM-PSM-MGT_3389_pool
msrdp - VIP-RDP%2:3389 - NODE-1%2:3389
TMM 1 Mode msrdp Value AVPR-PMPS Age (sec.) 23 Virtual Name /scms_prod/PIM-PSM-MGT_3389_vs Virtual Addr VIP-RDP%2:3389 Node Addr NODE-1%2:3389 Pool Name /scms_prod/PIM-PSM-MGT_3389_pool
msrdp - VIP-RDP%2:3389 - NODE-1%2:3389
TMM 0 Mode msrdp Value PSMConnec Age (sec.) 2 Virtual Name /scms_prod/PIM-PSM-MGT_3389_vs Virtual Addr VIP-RDP%2:3389 Node Addr NODE-1%2:3389 Pool Name /scms_prod/PIM-PSM-MGT_3389_pool
remaining.
msrdp - VIP-RDP%2:3389 - NODE-1%2:3389
TMM 1 Mode msrdp Value PSMConnec Age (sec.) 5 Virtual Name /scms_prod/PIM-PSM-MGT_3389_vs Virtual Addr VIP-RDP%2:3389 Node Addr NODE-1%2:3389 Pool Name /scms_prod/PIM-PSM-MGT_3389_pool
msrdp - VIP-RDP%2:3389 - NODE-1%2:3389
TMM 3 Mode msrdp Value PSMConnec Age (sec.) 5 Virtual Name /scms_prod/PIM-PSM-MGT_3389_vs Virtual Addr VIP-RDP%2:3389 Node Addr NODE-1%2:3389 Pool Name /scms_prod/PIM-PSM-MGT_3389_pool
msrdp - VIP-RDP%2:3389 - NODE-1%2:3389
TMM 2 Mode msrdp Value PSMConnec Age (sec.) 1 Virtual Name /scms_prod/PIM-PSM-MGT_3389_vs Virtual Addr VIP-RDP%2:3389 Node Addr NODE-1%2:3389 Pool Name /scms_prod/PIM-PSM-MGT_3389_pool
Total records returned: 6
I tried to change it to Least connection also, still it is not working..
Hi Neeraj,
I’m guessing AVPR-PMPS and PSMConnec are your user names? Did both those users have an existing session on node 1 before you started testing? You will need to kill the terminal services session on the Remote Desktop each time before you connect to see if load balancing is working. Once you have a TS session on the server, the msrdp profile will bypass load balancing and send the connection to that server every time.
Mike
Hi mike, appreciate your response over.
I tried to stop all the sessions. when all the connections becomes Zero, I checked again and found that when users started getting connection ratio of connection to be 80:10, sometimes 80:05, but as per round robing every new connection to be sent to different server, however I have tried the least connection as well. here to mention that I captured one more log also where all the users were different - different users.
regards, Neeraj Jagetia
What are AVPR-PMPS and PSMConnec, are those domain names?
Mike, this is the one-App-portal identifier from where the user click to connect some application and RDP is being initiated to open the browser to access resources like other app / putty /etc.. this is cyber arc PIM system.
What I’m getting at is I think there may be a limit to the number of characters the msrdp persistence profile can use for the persistence key. If those 2 values are domain names, that could explain why they aren’t unique.
as you wrote above , to kill the RDP / terminal services sessions. how to do that ?
delete /ltm persistence persist-records mode msrdp virtual PIM-PSM-MGT_3389_vs
hi mike, am I wrote the correct command , which you referring or something different ?
Below output CMP enabled, do you think I should disable it?
show /ltm virtual PIM-PSM-MGT_3389_vs
------------------------------------------------------------------
Ltm::Virtual Server: PIM-PSM-MGT_3389_vs
------------------------------------------------------------------
Status
Availability : available
State : enabled
Reason : The virtual server is available
CMP : enabled
CMP Mode : all-cpus
Destination : VIP%2:3389
Traffic ClientSide Ephemeral General
Bits In 114.0G 0 -
Bits Out 271.1G 0 -
Packets In 67.0M 0 -
Packets Out 89.9M 0 -
Current Connections 7 0 -
Maximum Connections 81 0 -
Total Connections 6.2K 0 -
Min Conn Duration/msec - - 1.2K
Max Conn Duration/msec - - 434.9M
Mean Conn Duration/msec - - 17.7M
Total Requests - - 0
SYN Cookies
Status not-activated
Hardware SYN Cookie Instances 0
Software SYN Cookie Instances 0
Current SYN Cache 0
SYN Cache Overflow 0
Total Software 0
Total Software Accepted 0
Total Software Rejected 520
Total Hardware 0
Total Hardware Accepted 0
CPU Usage Ratio (%)
Last 5 Seconds 0
Last 1 Minute 0
Last 5 Minutes 0
(END)
I am still confused with number connections v/s persistent connection.
when I see the show ltm pool then I see the connections on node-1 = 45 and node-2 = 5,
when I check the show /ltm persistence persist-records mode msrdp then see the only 7 lines.
msrdp AVPR-PMPS VIP%2:3389 Node-1%2:3389 (tmm: 1)
msrdp AVPR-PMPS VIP%2:3389 Node-1%2:3389 (tmm: 3)
msrdp AVPR-PMPS VIP%2:3389 Node-1%2:3389 (tmm: 2)
msrdp PSMConnec VIP%2:3389 Node-2%2:3389 (tmm: 0)
msrdp PSMConnec VIP%2:3389 Node-2%2:3389 (tmm: 1)
msrdp PSMConnec VIP%2:3389 Node-2%2:3389 (tmm: 2)
msrdp PSMConnec VIP%2:3389 Node-2%2:3389 (tmm: 3)
how to check with persistent connection have how many connections ? how to co relate them?
I think you may be running into this: 404 Page not found | BIG-IP Documentation
Can you try testing with the domain name hardcoded into the .rdp file and see if you get more even load balancing?
Hi Neeraj,
the persistence table dump above actually only shows two persistence records for the persistence values of “AVPR-PMPS” and “PSMConnec”.
The seven lines just display the retrieved entries from the different TMM instances (traffic management microkernel; it looks like you are running a system with 4 virtual cores tmm0 - tmm3).
The msrdp persistence profile looks for the client logon name (used to be stored in the MSTSHASH-cookie - if I remember right; you can track it in a tcpdump) and keeps it along with the mapping to one of the real servers selected initially in the persistence table.
Unfortunately the persistence value seems to be limited to eight characters only in your TMOS version and with a domain information as prefix to a logon name you may end up with a very small number of persistence table entries, as the trailing data (beyond the eight characters) is simply ignored for the load balancing / persistence decision .
As a result nearly each new incoming request seems to match an existing persistence records and will be forwarded to the related pool member.
This issue is not new and I would like you to raise a support case and a feature request, please.
Recently I tried to use “least connections” load balancing method with a customer. Unfortunately it seems the connection brokering forced the client to open a direct connection to the selected RDP server and the BIG-IP was bypassed. That´s why no current connections showed up in the pool member statistics and “least connections” selected always the first available pool member of the configuration as all members had the “same” number of connections (0) from the BIG-IP perspective.
Perhaps it was necessary to adjust settings on the terminal server client or the RDP server to get all connections “routed” through the BIG-IP but I had no chance to evaluate it by now. To achieve at least a distribution among the available RDP serves I configured “round robin”.
Thanks, Stephan
Hi mike, I have gone through the link you provided and it was really addition to my knowledge, I tried as per the suggestion but did not see the domain entry in .rdp conf file.
Hi Stephan,
the description you provided , helped a lot to understand further.
you and mike both correct that it only carries 8 characters in name. Let me have tcpdump and try to dig/smell the cookie value for each connection.
This is live/production environment and have lots of running connection already exist at anytime to make huge traffic. so in TCPDUMP I have to first catch , which is new connection and then have to follow the same connection where -which node it sent to ?
but my only worry is, how I will be able to get the clue that which new connection goes to which node from tcpdump ?
is it not possible to have each new connections for Virtual.IP:RDP goes to next node (round robin), irrespective of cookie.
.., Neeraj