1

I'm studying Windows Server Port numbers at http://support.microsoft.com/kb/832017, and I notice that so many services use Port 135

enter image description here

What was the logic in setting this standard? Is this because one machine is able to communicate with multiple machines, i.e. Group Policy, Exchange Server, File Replication Service.

There has to be some rhyme and reason why certain port numbers were chosen for certain services. At least explain the rationale for assigning so many services to TCP port 135.

Thanks!

1 Answer 1

4

These services aren't directly assigned to port 135. Rather, they all run over MSRPC (a remote process communication protocol used by Windows NT), and MSRPC uses port 135 when transported over TCP.

Instead of reinventing the protocol separately for each service (data types, framing, semantics, client & server code) they all simply exchange MSRPC calls.

It's like having a dozen websites share the same port 80, because you use HTTP to reach all of them. Another example would be D-Bus from Linux.


Note that raw TCP isn't the only transport – some other programs use SMB "named pipes" for that; SMB itself can be transported over raw TCP (port 445) or over NetBIOS (TCP port 139)... I think there's also a HTTP transport as well. In other words, the same "Remote Registry" MSRPC service might be reachable over:

  • IP / TCP (port 135) / MSRPC (service "WINREG")
  • IP / TCP (port 139) / NetBT Session / SMB (pipe "winreg") / MSRPC (service "WINREG")
  • IP / TCP (port 445) / SMB (pipe "winreg") / MSRPC _(service "WINREG")
  • IPX (socket 0x0455) / NetBIOS Session / SMB (pipe "winreg") / MSRPC (service "WINREG")
  • NetBEUI / NetBIOS Session / SMB (pipe "winreg") / MSRPC (service "WINREG")
  • and possibly others.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .