What is a Virtual Network?
➜ A Virtual Network is a collection of Gateways that allows Multicast downlinks to be sent via a specific subsection of Gateways.
- A typical use case for a Virtual Network can be to turn on/off multicast devices using gateways in a specific area of a city instead of every gateway across the whole network.
- Only Gateways with GPS-synced clock can be used, otherwise, the required accuracy of the timestamps cannot be guaranteed and the Multicast downlinks will fail.
- A gateway can be in several Virtual Networks simultaneously.
- In the current implementation, only Server Operators will be able to create Virtual Networks for security and privacy reasons.
- At a later stage, the ability to create a Virtual Network will be extended to the Organisation Administrators, however, they will only be allowed to share the Virtual Networks with their Organisation.
- Once a Virtual Network has been created and shared with an Organisation, it's the Organisation Administrator's responsibility to decide which Organisation accounts should be granted access to the Virtual Network.
- Any Organisation Admin or User can send Multicast Downlinks as long as they have Multicast Devices and access to a Virtual Network.
- When sending Multicast Downlinks, it is mandatory to select a Virtual Network before being able to send the downlink.
- Multicast functionality and Virtual Networks will only be available on private servers and will be extended to the Professional Public Servers at a later date.
Creating a Virtual Network
➜ At its core, the main function of Virtual Networks is to grant access to already registered and working gateways.
✔ Thus, the creation of a Virtual Network must be handled through the administrator interface like all other administrative functionalities.
a) With a Server Operator account, log in to the admin interface (https://example.loriot.io/adme) and select the Virtual Networks category in the sidebar:
b) Now select the option Create new:
➜ A new menu will appear where you can enter the basic details, select the gateways you want to add to the Virtual Network, and finally select the Organizations with which you want to share it.
✔ In the Basic Details you can give the Virtual Network a specific name and a short description:
c) In order to select a gateway, you can either scroll through the available gateways or make use of the available filters and search mask:
d) Once you have found the gateway you want to add, simply left click on it to select it; the gateway will be highlighted in a light grey hue. Multiple gateways can be selected this way at the same time:
e) Finally, select which Organizations will have access to this Virtual Network by left clicking on the name of the Organizations; once selected they will be highlighted in a light grey hue.
➜ You can scroll through the menu or use the search mask to narrow the search. Multiple Organizations can be selected at the same time:
✔ To finalize the process, simply click on the Create Virtual Network button at the bottom of the page.
Sharing a Virtual Network with Users
✔ Once a Virtual Network has been shared with an Organization, all Organization Administrators and Server Operators therein can grant access to its user.
a) To achieve this, the Organization Administrator simply has to access the Virtual Networks menu from the Organisation Admin administrator interface:
➜ By clicking on Virtual Network’s name, you can see the details, manage the users, edit it or remove it the Virtual Network.
b) To manage which users from your Organization can access the Virtual Network, click on the button Manage users:
c) This opens the option to select which users can access the Virtual Network by clicking on them:
d) Afterwards, click on the Accept button at the bottom of the page to grant access to these users:
✔ These users will now be able to send Multicast downlinks through this Virtual Network.
Sending Multicast Downlinks
➜ Multicast downlinks can be sent via two methods:
✔ The WebSocket sample application within the User Interface.
✔ Downlinks via API through the WebSocket
The WebSocket sample application within the User Interface
a) Select the Application containing the Multicast Device:
b) Enroll a Multicast Device:
c) Select the WebSocket sample Application:
d) Select “Send data To Multicast Device” Configure the downlink parameters:
Downlinks via API through the WebSocket
➜ Our downlinks via API are done through WebSocket, not quite the same as the regular RESTful API calls.
➜ We now need to get the ID for the the Virtual Network we will use:
Please be sure to use the Access Token for your Account, not a specific Application.
➜ In order to send valid Multicast Downlinks the messages must follow the structure below:
Multicast downlink confirmation
In this example, FE0000000000002D is the multicast device ID.
➜ Please note that the date should always be greater than the current time so this downlink can be sent at the given time.
➜ If the message is accepted and stored for later sending, the NS response will have mcasteui, mcastdnqid and cmd:
➜ If the date is too old then an error appears: (further errors might appear due to other validations)
Execute Multicast Downlink
➜ When the given date comes, the stored multicast downlink is executed. The network server then displays a message with “cmd”:”mtxd” and a parameter “seqdn”: