ouroboros-tutorial - A tutorial introduction to managing Ouroboros
For the tutorials, it is recommended to start the IRMd (you will need root privileges) as a user process, writing output to stdout (If your system has an IRMd running as a systemd service, you will need to stop it).
Terminating the irmd can be done by pressing Ctrl+C if it is running in the foreground or by sending it a kill command for its process ID:
The output should be
With a running irmd, let's create an IPC process. For this tutorial, we will create and bootstrap an eth-llc IPCP over the loopback interface. To observe what's going on, open another terminal window. Note that "ipcp bootstrap" will create an IPCP if an IPCP by that name does not yet exist (See ouroboros(8)).
Now that we have the IPCP bootstrapped, it can act as a local network layer that can provide full connectivity between all processes in the system. Let's test it using the oping application. First, let's choose a name for the server ("my.oping.server") and register in the llc layer.
The IRMd should respond with
Now start a server of oping in the background (or in a different terminal) and bind the process to the name "my.oping.server" (replace the correct process id for your system).
With the server up and running, let's connect a client and send 3 pings:
64 bytes from my.oping.server: seq=0 time=0.475 ms
64 bytes from my.oping.server: seq=1 time=0.304 ms
64 bytes from my.oping.server: seq=2 time=0.398 ms
--- my.oping.server ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time: 3001.011 ms
rtt min/avg/max/mdev = 0.304/0.392/0.475/0.086 ms
That's all there is to it! The IRMd should log the flow allocation. There are two endpoints of the flow (flow_id's 0 and 1), one for the server (1) and one for the client (0). After the flow request, a new flow_id is created at the server side (flow_id 1) and then a previously pending flow (on flow_id 0) is allocated following the response from the server.
When the communication is done, the flow is deallocated and the resources (flow_id's 0 and 1) are released.
These man pages are licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/