Who, Who ID? UUID!

Be the first to comment | 1I like it!
June 17, 2002, 11:00 PM —  ITworld — 

More than a few computing applications call for unique identifiers. The
Media Access Control (MAC) address that's burned into devices -- like
network interface cards (NICs) -- that connect to data networks are an
example. So are the Universally Unique Identifiers (UUIDs) that appear
in Microsoft Windows Registry entries, Universal Description, Discovery,
and Integration (UDDI) data structures, and other software applications.
The two identifiers -- UUIDs and MAC addresses -- have somewhat similar
purposes, but they're arrived at differently.

MAC addresses are allocated by a central authority, which maintains a
list of them and doles them out to network equipment manufacturers as
required. The NIC maker 3Com, for example, secures allocations of MAC
addresses that only it may use, while Intel has its own set to use.
Though mistakes in manufacturing occur and duplicate MAC addresses once
in a while make it onto the market, it's pretty much an ironclad
guarantee that MAC addresses are unique. The cost is fairly high
overhead.

A central authority, on the other hand, does not manage UUIDs. No
official organization has a master list of UUIDs and manages the task of
distributing them to software publishers. That would be pretty
ridiculous, really. A large part of the software industry's character
comes from the ability of every Tom, Dick, and Vijay to write and sell
standards-compliant software without too much hassle. So the mechanism
for deriving UUIDs is not absolutely guaranteed to spawn unique
identifiers, but it comes very, very close, and with a fraction of the
overhead associated with centrally managed systems.

Where do UUIDs come from? They come from a mathematical algorithm
defined by a standards document called ISO/IEC 11578:1996. It takes into
account a number of factors and combines them in a way that would be
very hard to duplicate. The values considered are:

* The current machine time.
* The MAC address of the local network card, if any.
* The local IP address, if any.
* A randomly generated number.

Therefore, on any network (IP or otherwise), you're practically
guaranteed to get a value different from all others on that network.

» posted by ITworld staff

ITworld

I like it!
Post a comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
Free books

Essential JavaFX
Get started building rich Web apps quickly with an introduction to the power of JavaFX key features -- scene node graphs, nodes as components, the coordinate system, layout options, colors and gradients, custom classes with inheritance, animation, binding, and event handlers.Enter now!

The Nomadic Developer
Consulting can be hugely rewarding, but it's easy to fail if you are unprepared. To succeed, you need a mentor who knows the lay of the land. Aaron Erickson is your mentor, and this is your guidebook. Enter now!

Featured Sponsor

AISO founders envisioned a Web hosting company that was environmentally friendly. While the company employed energy-efficient innovations like solar panels, its infrastructure produced unacceptable power and cooling requirements. Find out how AISO leveraged AMD technology to overcome their challenge in this case study white paper.

In this whitepaper, Scalar explores the opportunity to change the landscape with respect to mission critical databases built around Oracle. Leveraging technologies such as Linux, high-end commodity processing power and Oracle RAC technology to architect, design, build and maintain database infrastructure that delivers maximum availability, reliability and performance at a fraction of traditional cost.

On a typical day, weather.com, the Web site for The Weather Channel in Atlanta, serves up between 15 million and 20 million page views. But in September 2004, when back-to-back hurricanes ransacked Florida, the peak traffic on one day more than tripled: over 70 million page views by more than 7 million unique visitors. Read the full success story now.

Marketplace