Network Working Group H. Ukawa
Internet-Draft UAG Project
Intended status: Informational 4 December 2026
Expires: 7 June 2027
A2A Extension: UPnP Discovery for A2A Agents on a Local Network
draft-ukawa-a2a-upnp-discovery-06
Abstract
The Agent2Agent (A2A) protocol defines how a client communicates with
an agent once the client holds the agent's Agent Card, but it does
not define how a client finds agents on a local network. This
document specifies an A2A extension by which agents announce
themselves, and clients discover, verify, register, and subsequently
use them, using the discovery mechanism of the Universal Plug and
Play (UPnP) Device Architecture, the Simple Service Discovery
Protocol (SSDP). The extension adds no A2A methods, states, or core
fields; using a discovered agent is ordinary A2A, and access control
remains with the security schemes of the base protocol.
Status of This Memo
This document is a working draft published by its author for
discussion. It is written in the style of an Internet-Draft, but
it is not a product of the IETF and has not been submitted to the
IETF standards process.
This document is valid for a maximum of six months and may be
updated, replaced, or obsoleted by other documents at any time.
It is inappropriate to use it as reference material or to cite it
other than as "work in progress."
This document will expire on 7 June 2027.
Copyright Notice
Copyright (c) 2026 H. Ukawa. All rights reserved.
This document is licensed under the Apache License, Version 2.0,
matching the license of the A2A protocol specifications.
Table of Contents
1. Introduction
1.1. Scope
1.2. Non-Goals
2. Conventions and Terminology
3. Identifiers
4. Declaration in the Agent Card
5. Agent UUID
6. Advertisement
7. Discovery
8. Verification and Registration
9. Using a Registered Agent
10. Liveness, Address Changes, and Removal
11. Versioning
12. Optional Features
13. Security Considerations
14. IANA Considerations
15. References
15.1. Normative References
15.2. Informative References
Appendix A. Examples
A.1. A Complete Agent Card
A.2. SSDP Messages
A.3. Confirmation Code
A.4. A Registry Entry
A.5. End-to-End Walkthrough
Author's Address
1. Introduction
The Agent2Agent (A2A) protocol [A2A] standardizes how clients and
agents exchange messages and tasks. It assumes the client already
knows where the agent is: discovery of the Agent Card is by a
well-known URI on a known host, by a registry, or by direct
configuration. None of these helps a user whose agents run on
several machines in a home or small office and who does not know, or
does not want to type, each machine's address.
This document defines an A2A extension for that case. An agent
supporting the extension announces itself on the local network using
SSDP [UPnP-DA], the discovery protocol of the UPnP Device
Architecture, in the same way consumer devices have done for many
years. A client searches for such announcements, verifies what it
found against the Agent Card, registers the agent, and from then on
uses it through ordinary A2A.
1.1. Scope
This extension covers:
o how an agent declares support for the extension (Section 4);
o how an agent announces itself (Section 6);
o how a client discovers candidate agents (Section 7);
o how a client verifies and registers a candidate (Section 8); and
o the lifecycle of a registration (Section 10).
1.2. Non-Goals
o This extension adds no RPC methods, task states, or fields to
core A2A objects.
o It does not move authentication or authorization into the
discovery layer. Discovery is public, exactly like the Agent
Card itself. Access control remains with the security schemes
declared in the Agent Card and enforced by the agent, as in base
A2A.
o It does not provide discovery across subnets or over the
Internet. SSDP is a link-local multicast protocol; see
Section 13.
o It does not define a UPnP device or service. In this
extension, LOCATION identifies the Agent Card, not a UPnP
device description document, and UPnP control and eventing
are not used. Conformance to this extension does not imply
conformance as a UPnP device.
2. Conventions and Terminology
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in
BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all
capitals, as shown here.
Agent: An A2A server that supports this extension and
announces itself as specified in Section 6.
Client: Software that discovers agents and registers them for
later use.
Registry: The client's stored list of registered agents. Its
storage format is implementation-specific and out of
scope for this document.
Agent UUID: A UUID [RFC9562] identifying one agent installation
across restarts and address changes (Section 5).
3. Identifiers
This extension is identified by the following values:
Extension URI:
https://awaku7.github.io/a2a-upnp-discovery/v1
SSDP service type:
urn:ukawa.biz:service:a2a-agent:1
The version appears in both identifiers. A change to this extension
that is not backwards compatible is published under a new extension
URI and a new service type version (Section 11).
4. Declaration in the Agent Card
An agent supporting this extension declares it in the
"capabilities.extensions" list of its Agent Card, as an
AgentExtension object:
{
"capabilities": {
"extensions": [
{
"uri":
"https://awaku7.github.io/a2a-upnp-discovery/v1",
"description":
"Announces this agent on the local network via UPnP (SSDP) so clients can discover and register it.",
"required": false,
"params": {
"serviceType": "urn:ukawa.biz:service:a2a-agent:1",
"agentUuid": "3f6b2c90-6f5f-4c1e-9d3a-2b7f0a1c8e55"
}
}
]
}
}
o "required" MUST be false. Support for discovery never changes
how A2A requests themselves are processed.
o "params.serviceType" is the SSDP service type the agent
announces (Section 6).
o "params.agentUuid" is the agent UUID (Section 5). It MUST match
the UUID used in the agent's SSDP announcements.
So that a client can tell what it found, the Agent Card of a
conforming agent:
o MUST be a standard A2A Agent Card, in the shape A2A Protocol
1.0 defines: the protocol version is declared per interface in
"supportedInterfaces" (each entry's "protocolVersion", next to
its "protocolBinding"), and "version" is the version of the
agent implementation. These are two distinct versions and
MUST NOT be conflated.
o MUST identify the vendor in "provider" (for example, its
"organization" member).
o MUST declare its authentication requirements in
"securitySchemes" and "securityRequirements", as in base A2A:
typed scheme objects (for example, "httpAuthSecurityScheme"
for a bearer token) and scope lists in the StringList form.
Appendix A.1 shows a complete Agent Card.
5. Agent UUID
The agent generates its UUID once, at first start, and persists it,
so that the same installation keeps the same UUID across restarts.
The UUID MUST be generated from a cryptographically secure random
source (a version 4 UUID [RFC9562]); it MUST NOT be sequential,
time-derived, or derived from a hardware or network address, so
that agent UUIDs cannot be guessed or predicted.
Clients key registrations to the UUID, not to an address. Addresses
change, for example under DHCP; the UUID is how a client determines
that a rediscovered agent is the same agent it registered before.
Reinstalling the agent, or deleting its persisted state, produces a
new UUID and therefore a new registration. This is intentional:
continuity of identity is continuity of the persisted state.
6. Advertisement
The agent announces itself with SSDP, following the discovery rules
of the UPnP Device Architecture [UPnP-DA]. Appendix A.2 shows
example messages:
o On start, the agent sends NOTIFY requests with "NTS: ssdp:alive"
to the SSDP multicast address and port 1900, a small number of
times at short intervals, and repeats the announcement before
the announced lifetime expires. The multicast address is
239.255.255.250 for IPv4 and FF02::C (link-local scope) for
IPv6; the agent announces on each address family available on
each interface where it advertises. The "CACHE-CONTROL"
max-age SHOULD be 1800 seconds.
o On shutdown, the agent sends the same announcement with
"NTS: ssdp:byebye".
o If the agent's own advertised address changes while it is
running (for example, a DHCP lease is renewed with a different
address), the agent SHOULD send "ssdp:byebye" for the old
address and a fresh "ssdp:alive" announcement for the new one,
so clients are not left pointing at a stale LOCATION.
o On receiving an M-SEARCH request whose "ST" header field is this
extension's service type, or "ssdp:all", the agent responds by
unicast to the sender, after a random delay between 0 and the
request's "MX" value, as SSDP requires.
Announcements and search responses carry the following header
fields:
o "NT" (in NOTIFY) or "ST" (in search responses): the service
type (Section 3).
o "USN": "uuid:" followed by the agent UUID, followed by "::" and
the service type.
o "LOCATION": the URL of the agent's Agent Card, i.e., the
well-known agent card URI on the agent's base URL.
o "CACHE-CONTROL": the lifetime of the announcement, as a
max-age; once it passes without a refresh, the announcement is
stale (Section 10).
o "BOOTID.UPNP.ORG": a value that stays constant while the agent
runs and increases at each start, as defined by the UPnP
Device Architecture. The agent UUID (Section 5) does not
change at a restart; the boot ID is how a client tells a
restart of a known agent from a second endpoint claiming the
same UUID.
Search responses also carry the header fields the UPnP Device
Architecture requires in M-SEARCH responses, including "DATE" and
"EXT", and a "SERVER" field identifying the agent software and its
version.
Every URL an agent advertises, including LOCATION, MUST be
reachable by clients on the network the announcement is sent on.
In particular, an agent MUST NOT advertise a wildcard address
(such as 0.0.0.0 or [::]) or a loopback address on a non-loopback
interface. When no public base URL is configured, the agent
SHOULD announce per interface, using the address of the interface
each announcement is sent on; for IPv6 link-local addresses, the
corresponding URL uses the bracketed literal form, and clients
use the interface the announcement arrived on to reach it.
Advertisement MUST be possible to disable in the agent's
configuration. An agent MAY restrict advertisement to configured
network interfaces or subnets; when so configured, the agent MUST
honor the restriction, and MUST NOT answer searches arriving from
outside the configured set.
7. Discovery
A client discovers candidate agents as follows:
o The client sends an M-SEARCH request to the SSDP multicast
address (239.255.255.250 for IPv4, FF02::C for IPv6) and port
1900, on each interface in scope, with "ST" set to the service
type and a suitable "MX", and collects responses for a few
seconds.
o The client deduplicates responses by agent UUID. The same agent
may respond from several addresses or interfaces; the client
treats these as one candidate with several locations.
o The client MAY, in addition, listen for "ssdp:alive"
announcements in order to notice agents that appear later
(Section 12).
A client SHOULD present candidates as responses arrive, rather
than making the user wait for the whole collection window. To
make the choice meaningful, the client fetches the card of each
candidate it lists (with the bounded, unauthenticated fetch of
Section 8) and presents the candidate by the card's name, a
summary of its skills, and the address it was found at, not by
UUID alone.
Discovery results are candidates. They are not registrations, and
by themselves they prove nothing about the responder (Section 13).
8. Verification and Registration
For each candidate the user selects, the client:
1. Fetches the Agent Card from the announced LOCATION. The
fetch is unauthenticated and carries no credentials; the
client bounds it (a short timeout and a size limit) and
accepts only a JSON response, because LOCATION comes from an
unauthenticated SSDP message and can be crafted by anyone on
the network.
2. Verifies that the card parses as an A2A Agent Card, that it
declares this extension with the same extension URI the
client used for this registration (a card declaring only a
different version of the extension belongs to that version's
flow; see Section 11), and that "params.agentUuid" matches
the UUID obtained during discovery.
3. Computes a fingerprint of the card (SHA-256 [RFC6234] over
the exact bytes of the card as fetched; JSON text is not
canonical, so the bytes, not a re-serialization, are hashed)
and stores it with the registration. On later fetches, if
the fingerprint has changed, the client MUST surface the
change to the user before further use. This is the
trust-on-first-use model familiar from first-connection
prompts in SSH. A fingerprint change accompanied by a change
of the card's "version" is consistent with an ordinary
upgrade of the agent; the client SHOULD present both facts
(the fingerprint changed, and the version changed from what
value to what value) rather than the change alone.
4. Stores the registration: a display name (by default, the
card's "name"), the Agent Card URL,
the agent's base URL, the agent UUID, the fingerprint, and a
reference to the credential to use with this agent (an
identifier in the client's credential store).
Credentials themselves MUST NOT be carried in SSDP messages, MUST
NOT be requested from, or sent to, a discovered address as part of
discovery or registration, and MUST NOT be stored in the registry
entry; only the reference is stored.
Short confirmation code:
A SHA-256 fingerprint is not something a user can compare by
eye, so the client derives a short code from it: interpret the
first four bytes of the digest as a big-endian unsigned
integer, take the value modulo 1,000,000, and present it as
six decimal digits, zero-padded. The agent presents the same
code, computed from its own card, in its user interface or
log. At a first registration the user checks that the code
the client shows matches the code the agent they intend to
register shows. The code is a comparison aid for humans; it
is not an authentication mechanism, and the full fingerprint
remains the value of record.
Registration and credential setup are one flow from the user's
point of view: when the user registers an agent whose card
requires authentication, the client SHOULD offer to store the
credential, or select an existing one, as part of registration,
rather than leaving a missing credential to be discovered at
first use (Section 9).
Manual registration:
Multicast does not reach everywhere; some wireless networks
filter it or isolate clients from each other. A client MUST
therefore also accept manual registration: the user supplies
the Agent Card URL (or the base URL) directly, and the client
runs the same verification and registration as for a
discovered candidate. An agent SHOULD make its card URL easy
to copy or scan, for example by showing it, or a QR code of
it, in its own user interface. Manual registration bypasses
discovery only; it bypasses none of the checks above.
If two distinct endpoints (different base URLs) present the same
agent UUID with different card fingerprints, the client MUST
treat this as a conflict: it MUST NOT silently merge the two into
one registration, and MUST surface the conflict to the user. A
copied or cloned agent state directory is the expected benign
cause; an impersonation attempt looks the same from the outside,
which is why the user decides.
Display names in the registry are a client concern, but a new
registration MUST NOT silently overwrite an existing one whose
display name it shares. On a collision, the client SHOULD ask
the user for a distinct name or derive one, for example by
appending a short form of the agent UUID.
If discovery finds nothing, the client SHOULD say so plainly and
SHOULD indicate the usual causes: the agent is not running,
advertisement is disabled, a firewall is blocking UDP port 1900, or
the agent is on a different subnet.
9. Using a Registered Agent
Using a registered agent is ordinary A2A against its base URL, with
authentication exactly as the agent's card declares. This
extension does not modify A2A requests or responses in any way.
On first use, the client SHOULD verify that the agent responds and
that authentication succeeds, for example by fetching the
authenticated extended Agent Card, and SHOULD report failure
plainly when it does not. A registered agent can subsequently be
used by name, without rediscovery.
10. Liveness, Address Changes, and Removal
Liveness:
The client MAY present each registered agent as online or
offline, based on a search probe or an Agent Card fetch.
Receipt of an "ssdp:byebye" announcement marks the agent
offline; it MUST NOT delete the registration. Announcements
are UDP and can be lost, so a missing "ssdp:byebye" proves
nothing: an agent whose announcements have not been refreshed
within the announced max-age is stale, and the client SHOULD
present it as offline or unknown until a probe or a fresh
announcement succeeds.
Address changes:
At startup, or on demand, the client re-runs discovery and
matches the results to registrations by agent UUID. When a
registered UUID appears at a new address, the client MUST NOT
update the stored URLs on the basis of discovery alone:
announcements are unauthenticated, so silently following one
would let any device that claims the UUID take over the
registration. Instead, the client presents the change to the
user, and the stored URLs are updated only when the user
re-runs the verification and registration procedure of
Section 8 for the new address. When the card at the new
address has the same fingerprint as the stored registration,
that procedure confirms the move is the same agent, and the
credential reference carries over unchanged. A card whose
interface URL names the address itself does not keep its
fingerprint across such a move: the URL changes, so the
card's bytes and its fingerprint change with it. That case
is the conflict of Section 8 (the same UUID at a different
address with a different fingerprint), and the stored URLs
are updated only after the user has resolved it explicitly,
for example by checking the new confirmation code against
the agent's own display, removing the old registration, and
registering again at the new address.
Removal:
Deleting a registration is an explicit user action. When a
credential was stored for the agent, the client SHOULD ask the
user whether to delete that credential as well.
11. Versioning
The extension version is carried in the extension URI and in the
SSDP service type. Version 1 is the first release defined by this
document.
Backwards-compatible additions (new OPTIONAL "params" members, new
OPTIONAL behaviors) do not change the version. An incompatible
change is published as a new version. During a transition between
versions, clients SHOULD search for both the current and the
previous service type, and agents MAY announce both.
12. Optional Features
Appearance notification:
A client that listens for "ssdp:alive" announcements can inform
the user when a new agent appears on the network.
Default agent:
When several agents are registered, the client lets the user
mark one as the default target for requests that do not name
an agent.
Interface selection:
In multi-homed environments, the user can select which network
interface or subnet discovery uses, mirroring the
advertisement-side restriction of Section 6.
13. Security Considerations
SSDP is a plaintext protocol without authentication. Any device on
the local network can announce itself as an agent, including a
malicious one. Discovery output is therefore a hint, never proof
of identity.
Confidence in a registered agent rests on three things together:
the contents of its Agent Card (Section 4), continuity of its
fingerprint across fetches (Section 8), and successful
authentication under base A2A when the agent is actually used. A
spoofed agent can waste a user's time, but it receives no work
unless the user registers it and supplies credentials for it; this
is why credentials play no part in discovery (Section 8).
The same UUID appearing at two endpoints is ambiguous by nature:
a cloned state directory and an impersonator present identically.
Section 8 therefore requires the conflict to be surfaced, never
resolved silently; the boot ID (Section 6) and the card
fingerprint are the evidence the user has to decide with.
A crafted LOCATION can point a client at an arbitrary address, so
fetching the card is itself an interaction with an
attacker-controlled URL; this is why Section 8 bounds the fetch
and forbids sending credentials with it.
The short confirmation code of Section 8 has only a million
possible values and proves nothing by itself; it exists so that a
human can compare the code on two screens. It never replaces the
fingerprint of record or authentication at use time.
Advertisement is intentionally public, and it discloses facts:
that an agent runs on this host, its vendor, and, in the SERVER
field and the card, its software version. On a network where
that disclosure is unwanted, the operator turns advertisement off
(Section 6); discovery then simply does not find the agent.
Search responses under this extension are unicast only, and agents
do not answer searches from outside their configured advertisement
scope (Section 6). SSDP has a long history of reflection and
amplification abuse; implementations of this extension MUST NOT add
to it, and MUST NOT be deployed so that announcements or responses
reach the Internet.
The threat model assumed here is a local network that is not fully
trusted. SSDP does not cross subnets by default, and nothing in
this extension makes an agent safe to expose to the Internet; such
exposure is out of scope and NOT RECOMMENDED.
The transport security guidance of base A2A (HTTPS in production)
applies to A2A traffic itself, unchanged by this extension.
14. IANA Considerations
This document has no IANA actions. The extension URI and the SSDP
service type are in a namespace administered by the extension's
publisher, not by IANA.
15. References
15.1. Normative References
[A2A] "Agent2Agent (A2A) Protocol Specification, Version
1.0", Linux Foundation.
<https://a2a-protocol.org/>
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997,
<https://www.rfc-editor.org/info/rfc2119>.
[RFC6234] Eastlake 3rd, D. and T. Hansen, "US Secure Hash
Algorithms (SHA and SHA-based HMAC and HKDF)",
RFC 6234, DOI 10.17487/RFC6234, May 2011,
<https://www.rfc-editor.org/info/rfc6234>.
[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in
RFC 2119 Key Words", BCP 14, RFC 8174,
DOI 10.17487/RFC8174, May 2017,
<https://www.rfc-editor.org/info/rfc8174>.
[RFC9562] Davis, K., Peabody, B., and P. Leach, "Universally
Unique IDentifiers (UUIDs)", RFC 9562,
DOI 10.17487/RFC9562, May 2024,
<https://www.rfc-editor.org/info/rfc9562>.
[UPnP-DA] UPnP Forum, "UPnP Device Architecture, Version 2.0",
April 2020. (Discovery: Simple Service Discovery
Protocol, SSDP.)
15.2. Informative References
[A2A-EXT] "Extensions in A2A", A2A Protocol documentation.
<https://a2a-protocol.org/latest/topics/extensions/>
Appendix A. Examples
The examples in this appendix are illustrative. All of them
follow one agent: a "uagent" server on a laptop at 192.168.1.20,
port 8765, with agent UUID
3f6b2c90-6f5f-4c1e-9d3a-2b7f0a1c8e55.
A.1. A Complete Agent Card
{
"name": "uagent",
"description": "uagent A2A server",
"version": "0.9.0",
"provider": {
"organization": "UAG Project",
"url": "https://github.com/awaku7/agentcli"
},
"supportedInterfaces": [
{
"url": "http://192.168.1.20:8765",
"protocolBinding": "HTTP+JSON",
"protocolVersion": "1.0"
}
],
"capabilities": {
"streaming": true,
"extensions": [
{
"uri":
"https://awaku7.github.io/a2a-upnp-discovery/v1",
"description":
"Announces this agent on the local network via UPnP (SSDP) so clients can discover and register it.",
"required": false,
"params": {
"serviceType": "urn:ukawa.biz:service:a2a-agent:1",
"agentUuid": "3f6b2c90-6f5f-4c1e-9d3a-2b7f0a1c8e55"
}
}
]
},
"securitySchemes": {
"bearer": {
"httpAuthSecurityScheme": { "scheme": "bearer" }
}
},
"securityRequirements": [
{ "schemes": { "bearer": { "list": [] } } }
],
"defaultInputModes": [ "text/plain" ],
"defaultOutputModes": [ "text/plain" ],
"skills": [
{
"id": "general",
"name": "General assistance",
"description":
"Answers questions and runs tasks on this machine.",
"tags": [ "general" ]
}
]
}
A.2. SSDP Messages
Announcement, sent when the agent starts:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=1800
LOCATION: http://192.168.1.20:8765/.well-known/agent-card.json
NT: urn:ukawa.biz:service:a2a-agent:1
NTS: ssdp:alive
SERVER: Linux/6.8 UPnP/2.0 uagent/0.9.0
USN: uuid:3f6b2c90-6f5f-4c1e-9d3a-2b7f0a1c8e55::urn:ukawa.biz:service:a2a-agent:1
BOOTID.UPNP.ORG: 7
Withdrawal, sent when the agent shuts down:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
NT: urn:ukawa.biz:service:a2a-agent:1
NTS: ssdp:byebye
USN: uuid:3f6b2c90-6f5f-4c1e-9d3a-2b7f0a1c8e55::urn:ukawa.biz:service:a2a-agent:1
BOOTID.UPNP.ORG: 7
Search request, sent by a client:
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 2
ST: urn:ukawa.biz:service:a2a-agent:1
USER-AGENT: Linux/6.8 UPnP/2.0 uag-client/0.9.0
Search response, sent by unicast to the client:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, 02 Dec 2026 03:12:44 GMT
EXT:
LOCATION: http://192.168.1.20:8765/.well-known/agent-card.json
SERVER: Linux/6.8 UPnP/2.0 uagent/0.9.0
ST: urn:ukawa.biz:service:a2a-agent:1
USN: uuid:3f6b2c90-6f5f-4c1e-9d3a-2b7f0a1c8e55::urn:ukawa.biz:service:a2a-agent:1
BOOTID.UPNP.ORG: 7
A.3. Confirmation Code
Suppose the card as fetched has the SHA-256 fingerprint
9f2c41aa7b3e08d51c6a94f0b2d738e5a14c609d8f27b3e6a0951d4c8f02b67a93
The first four bytes, 9f 2c 41 aa, read as a big-endian unsigned
integer are 2670477738. Modulo 1,000,000, the confirmation code
of Section 8 is 477738. The client displays 477738, and the user
compares it with the code on the agent's own screen.
A.4. A Registry Entry
The registry format is out of scope (Section 2); the following
JSON is illustrative of what Section 8 stores. Note that the
credential appears only as a reference.
{
"name": "uagent",
"agentCardUrl":
"http://192.168.1.20:8765/.well-known/agent-card.json",
"baseUrl": "http://192.168.1.20:8765/",
"agentUuid": "3f6b2c90-6f5f-4c1e-9d3a-2b7f0a1c8e55",
"cardFingerprint":
"9f2c41aa7b3e08d51c6a94f0b2d738e5a14c609d8f27b3e6a0951d4c8f02b67a93",
"credentialRef": "a2a/uagent-laptop"
}
A.5. End-to-End Walkthrough
1. The laptop's agent starts for the first time. It generates
its UUID, persists it, and announces "ssdp:alive" on IPv4 and
IPv6 (Appendix A.2). Its screen shows the confirmation code
477738 for its current card.
2. On the desktop, the user asks the client to find agents. The
client sends an M-SEARCH; two agents answer, the laptop and a
home server. The list shows names, skills, and addresses as
the answers arrive.
3. The user picks the laptop. The client fetches the card,
checks the extension URI and that "params.agentUuid" matches
the discovery UUID, computes the fingerprint, and shows the
code 477738. It matches the laptop's screen.
4. The card requires bearer authentication, so the client asks
for the token as part of registration and stores it in its
credential store; the registry keeps only the reference
(Appendix A.4).
5. First use: the client fetches the extended Agent Card with
the token; it succeeds, and the agent is ready to use by
name.
6. A week later, the laptop's DHCP lease changes its address to
192.168.1.35. At the client's next startup discovery, the
same UUID appears at the new address; the client presents
the address change but does not move the registration. The
card at the new address names 192.168.1.35 in its interface
URL, so its bytes differ from the stored card: the
fingerprint has changed, and its confirmation code is a new
one, not the code of step 3. Re-registering at the new
address therefore surfaces the conflict of Section 8 -- the
same UUID at a different address with a different
fingerprint -- instead of updating the registration. The
user resolves it explicitly: they check that the new
confirmation code matches the code the laptop now shows for
its current card, remove the old registration, and register
the laptop again at the new address, selecting the
credential already stored for it as part of that
registration (Section 8). Only then does the registration
point at the new address.
Author's Address
H. Ukawa
UAG Project
Email: hirofumi@ukawa.biz