Re: [RFC] unique SMS IDs

Alexander Malysh <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Centrium GmbH
Message-ID <[email protected]>
Hi,

I would like to propose a simple and "well-known" procedure to generate 
"unique" id for network applications:
	1) id = official ip + pid (process id) + timestamp (sec. resolution enough) + 
global counter
	2) id = pid + timestamp + global counter

1) is unique for all running bearerboxes at least in your private ip address 
range. 
Descr.: Official ip is a unique idendifier against other hosts, pid + 
timestamp protect from a case if bearerbox crached too oft...

2) is unique for all running bearerboxes on the same machine.

I would preffer 1) so we never have any problems with every possible 
configuration...

On Friday 22 August 2003 13:43, Stipe Tolj wrote:
> Hi list,
>
> currently bearerbox acts like:
> whenever an SMS is passed to the store-file it get's an incrementaly
> counted ID and then stored.
>
> It is desirable (for several purposes) to have unique IDs for messages
> coming in (SM-MO), hence when entering the system from SMSC side and
> when leaving to the HTTP (application server) side, and of course vise
> versa.
>
> Hence, I'd like to discuss how we can acchive uniqueness of IDs
> accross even several parallel running bearerbox instances on one box.
>
> From our perspective there are two ideas:
>
>   * heuristical: assume that a constructed ID = timestamp + sender +
> receiver + counter is unique accross all instances.
>
>   * ID pool caching: which means there is a thread in bearerbox with a
> ID queue. The queues in several concurrent bearerbox processes are
> distinct, which means the thread has to garantee whereever he obtains
> a pool of IDs, that those are assign only to himself.
>
> Option 1 is of course simpler to do. Option 2 is *stronger* in the
> sense of high-load systems and consistancy.
>
> Any thoughs for this?
>
> BTW, I'd also like to add the SMS ID to the access.log. Any
> objecttions here?
>
> Stipe
>
> [email protected]
> -------------------------------------------------------------------
> Wapme Systems AG
>
> Vogelsanger Weg 80
> 40470 Düsseldorf
>
> Tel: +49-211-74845-0
> Fax: +49-211-74845-299
>
> E-Mail: [email protected]
> Internet: http://www.wapme-systems.de
> -------------------------------------------------------------------
> wapme.net - wherever you are

-- 
Best regards / Mit besten Grüßen aus Düsseldorf

Dipl.-Ing.
Alexander Malysh
___________________________________

Centrium GmbH
Vogelsanger Weg 80
40470 Düsseldorf

Fon: +49 (0211) 74 84 51 80
Fax: +49 (0211) 277 49 109

email: a.malysh at centrium.de
web: http://www.centrium.de
msn: olek2002 at hotmail.com
icq: 98063111
___________________________________________

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.