Understanding TR-369 USP Add Messages: Adding New Elements to Network Devices
In device management, the Unified Service Protocol (USP) has streamlined the process of managing network devices, offering a standardized framework for seamless communication and information exchange. Among its core functionalities, Add Messages and their corresponding Add Response Messages play a critical role in enabling the creation of new elements or objects within a device’s ecosystem.
This post dives into the technical details of these messages, focusing on their structure, usage, and how they facilitate device expansion.
Add Request Messages
Add Messages are used in USP to request the addition of new elements or objects to a device. These messages comprise two essential components:
1. Header
msg_id
: A unique identifier for the message, ensuring traceability and correlation with the response.msg_type
: Specifies the message type as "ADD," indicating a request to add new entities.
2. Body
allow_partial
: A flag indicating whether partial success is acceptable.create_objs
: A list of objects to be created, each defined by:obj_path
: The target location where the new element will be added.param_settings
: A map of parameters and their initial values for the new object.
Add Message Proto-Buffer Definition
Example: Add Request Message
This example demonstrates a request to add a new controller instance under the path Device.LocalAgent.Controller.
, initializing it with parameters like Enable
set to true
and an EndpointID
.
Add Response Messages
Once a device processes an Add Request, it responds with an Add Response Message (AddResp). This message provides confirmation, details about the newly added object, or feedback in case of partial or complete failure.
Add Response Proto-Buffer Definition
Components of Add Response Messages
- Header
- Mirrors the original request’s
msg_id
for correlation. - Specifies
msg_type
as "ADD_RESP."
- Mirrors the original request’s
- Body
- Contains a list of Created Object Results, each detailing the outcome of a specific requested addition:
requested_path
: The target path of the addition request.- Operation Status: Indicates success or failure, including error codes and messages if applicable.
instantiated_path
: The actual path of the newly created object, accounting for aliases or mappings.
- Contains a list of Created Object Results, each detailing the outcome of a specific requested addition:
Example: Add Response Message
Successful Case
In this response, the newly added object’s actual path is returned (Device.LocalAgent.Controller.3.
), along with unique identifiers.
Error Case
If the addition fails, the response includes error details:
This error response indicates that the system supports only five controllers, and the attempt to add a sixth failed.
Key Takeaways
- Add Messages
- Facilitate the creation of new elements in a device’s ecosystem.
- Include clear paths and initial parameter settings for precise execution.
- Add Response Messages
- Confirm the outcome of addition requests, including success, failure, or partial completion.
- Provide detailed feedback for troubleshooting, including instantiated paths and error specifics.
- Error Scenarios
- Handle limitations or conflicts gracefully with comprehensive error reporting.
Conclusion
USP Add Messages and Add Response Messages are integral to expanding and managing device ecosystems. They offer a reliable method for adding new elements while providing detailed feedback to ensure smooth integration.
For engineers and developers, understanding the structure and flow of these messages is essential for designing scalable and robust device management systems.
Stay tuned for more deep dives into USP messaging and TR-369 implementations.
Explore technical documentation and resources at TR369.org.
4o
References:
- TR-369 USP Specification, Broadband Forum, https://www.broadband-forum.org/tr-369
- USP Record Definitions, GitHub Repository, https://github.com/BroadbandForum/usp