Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The resource discovery command issued by the device driver hits the following resource path on the server:

HTTP GET: curl -X GET --header "Content-Type: application/json" http://serverIp/metron/server_resources

A server with 2 Intel CPU cores in one socket, 16 GB of DDR4 DRAM, and a single-port Mellanox 100 GbE NIC might provide the following response:

...

The CPU, main memory, and NIC monitoring command issued by the device driver hits the following resource path on the server:

HTTP GET: curl -X GET --header "Content-Type: application/json" http://serverIp/metron/server_stats

...

A server with NICs in mode "flow" allows the server device driver to manage its rules.

To install a NIC rules rule on a server's NIC with instance name fd0, associated with CPU core 0, the device driver POST issues the following JSON HTTP POST command to the server's resource:

...

HTTP POST: http://serverIp/metron/rules

{

...

curl -X POST --data '{"rules":

...

[{"id":"5057dd63-93ea-42ca-bb14-8a5e37e214da", "rxFilter": {"method":"flow"}, "nics": [{"nicName":"fd0", "cpus": [{"id":0, "rules": [{ "id": 54324671113440126, "content":"ingress pattern eth type is 2048 \/ src is 192.168.100.7 dst is 192.168.1.7 \/ udp src is 53 \/ end actions queue index 0 \/ end"}]}]}]}]}' --header "Content-Type: application/json" http://serverIp/metron/rules


For your convenience the same rule is visualized below in a user-friendly JSON format:
{ {
    "rules":
    [
        {
            "id": "5057dd63-93ea-42ca-bb14-8a5e37e214da",

...

The NIC rule monitoring command issued by the device driver hits the following resource path on the server:

HTTP GET: curl -X GET --header "Content-Type: application/json" http://serverIp/metron/rules

...

To delete multiple rules at once, you should append a comma-separated rule IDs as follows:

HTTP DELETE: http://serverIp/metron/rules_delete/54043196136729470,54043196136729471

...

To retrieve statistics related to a server's NIC tables, the server device driver needs to hit the following path:

HTTP GET: curl -X GET --header "Content-Type: application/json" http://serverIp/metron/rules_table_stats

NIC Port Administration

To enable a NIC port, the server device driver needs to issue the following HTTP post command to a server:

...

To access the server device driver's UI click on the Menu button (top left corner on the ONOS UI), then select one of the tabs "Servers-CPU", "Servers-MemoryLatency",   "Servers-ThroughputMemory", or "Servers-LatencyThroughput"  at the bottom of the list in Section "Network" as shown in the figure below:

...