Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

---------- DRAFT ----------

Image Removed

Port Usage

 

Image Added

See also

...

Zu den Portnummern:

...

About port numbers

In general, it is not possible to predict the port number used by a communications partner creating a TCP/IP connection.
The port number is always set by the operating system. A range of port numbers that can be used is defined by the TCP/IP standard and operating systems can have their own range. See also:

Die Portnummer des anderen Kommunkationspartner ist definiert (bei uns zum Beispiel 4444 und 59999). Der Partner öffnet den Port vorab und wartet auf eingehene Verbindungswünsche. Er hat in diesem Moment die passive Server-Rolle. Die Portnummer wird in der Regel von Firewalls geschützt, denn die Firewall schützt vor eingehenden Verbindungen auf bestimmte Portnummern.

Die Ports 59999 absteigend für die API-Kommunikation weichen nur insofern davon ab, als es dynamisch vergebene Server-Ports sind. Warum? Der Scheduler öffnet für jeden API-Prozess eigens so einen Port und weiß dann, welcher startende API-Prozess sich mit ihm verbindet. Wenn man die Ports nicht dynamisch vergeben will, müsste man hier ansetzen. Ist nicht einfach (sehr alter, sehr stabiler Code).

In the situation where the port number of a communication partner is defined (for example, JobScheduler uses 4444 and 59999). The partner opens the port in advance and waits for incoming connection requests. In that situation the partner has a passive server role. Port numbers are generally protected by firewalls as firewalls protect from incoming connections to particular ports.

Ports 59999 and less that are designated for API communication differ from the description above only in that they are dynamically allocated server ports. Why? JobScheduler opens such a port for every API process and thereby knows which starting API process is related to the port.

 Eine Frewall schützt bekannte Portnummern eines Servers. Von welchem Port die Verbindung ausgeht, spielt keine Rolle. Deshalb sind die vom Betriebssystem vergebenen Ports egal.