Discussion: Derive ipn service number from PID
The idea comes from a discussion with Carlo Caini - they are using this behavior in DTNperf
Advantages include:
- EIDs are allocated in sequence, one can see which process started first
- collision-free on the same machine (we do not need to check whether the number we just generated has been already registered)
- ION compatibility: The maximum PID on 64 bit Linux is 2^22
Drawbacks:
- there may be overlapping ranges if multiple machines connect via TCP - we might need to limit this to IPC
- further???
Additionally, we have to check whether there can be issues on other systems uD3TN might run on.