How it works...

Using Netty, an asynchronous event-driven network application framework, to establish the channel pipeline when you create a channel, the USC plugin will first establish a session between the host and the remote device. Then it will create the inbound and outbound channel within the session to enable two-way communication. The creation of the session is done by using the certificates provided by OpenDaylight and the USC agent; they must be the same, or the connection will fail to establish.

In this example, we used an echo server that was acting as the callback for a sent message, sending its content back.