question

TanChee-6627 avatar image
0 Votes"
TanChee-6627 asked TanChee-6627 commented

Cluster Service using TCP or UDP Randomly allocated High Ports?

Hi Everyone,

RPC Dynamic High ports for Windows Servers (Newer version) is 49152 to 65535 and it is TCP (Based on MS Articles - https://docs.microsoft.com/en-US/troubleshoot/windows-server/networking/service-overview-and-network-port-requirements).

I noticed that Cluster Service is using UDP Randomly Allocated High ports as per the same article from MS above.

My Question is actually wish to confirm, is it TCP or UDP or it is typo error as I understand from MS older article - https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc875824(v=technet.10) it is TCP Randomly Allocated High Port...

I just want to have confirmation as I am having 2 projects that already using TCP only and it seems to be working fine.. Just wonder when MS change to UDP for Cluster Service..


windows-server-clustering
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ElevenYu-MSFT avatar image
0 Votes"
ElevenYu-MSFT answered TanChee-6627 commented

Hi,

Thank you for posting your question to Microsoft Q&A forum.

The second article is too old, so, I think we should refer to the first article. But as far as I am concerned, both UDP and TCP randomly allocated high ports can be used for cluster service. It all depends on your requirement.

TCP is more reliable since it guarantees the delivery of data to the destination and manages retransmissions in case of lost parts. However, UDP is faster, simpler, and more efficient than TCP as it avoids the unnecessary overheads of TCP transport. UDP is incredibly efficient in terms of bandwidth, and much less demanding of poor performing networks, as well.

Hope above information can help you.

Best regards,


If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi ElevenYu,

Thanks for your respond!! I agree with you that 2nd article is old but I have many projects that is using only TCP. You mentioned that both UDP and TCP both randomly allocated high ports for clustering? So, how to configure it to just stick to TCP or UDP? Based on another MS article, it only mentioned how to customize the range but nothing on port type. Can advise on this? Or it is really just random? :)

Regards,
Tan Chee

0 Votes 0 ·

I think it should depends on the services/roles in the cluser that initiate the network traffic. The service itself will determine it should use TCP or UDP.

0 Votes 0 ·

Hi ElevenYu,

Ok. I got it. Thanks.
Make sense. So, AD authentication may be using TCP but when the same device is also functioning as Cluster, it will leverage on UDP. Thus, for NWFW & HBFW, I would need to open both TCP and UDP.
So moving onwards, will need to plan with more carefully for my future projects.

0 Votes 0 ·