cumulus@wbench:~$ curl http://leaf1:8080/ptmReturns the result:
{
"links": {
"L1": {
"node1": "leaf1",
"node2": "spine1",
"port1": "swp1s0",
"port2": "swp49"
},
...
}
}
This is a quick calculator I came up that I could use in the CCIE lab to translate between various IPv4 header QoS markings. As long as I could remember how to draw out the calculator, all I had to do was some basic math and I could translate between markings quite easily.
This post does not explain what the header fields are, why there’s so many or what the significance of one QoS value is over another. I’m making an assumption that the reader is already familiar with QoS concepts.
Here’s the calculator:
x | x | x | x | x | x | x | x | |
---|---|---|---|---|---|---|---|---|
128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | ToS |
32 | 16 | 8 | 4 | 2 | 1 | - | - | DSCP |
4 | 2 | 1 | 2 | 1 | - | - | - | DSCP AF values (AFxy) |
4 | 2 | 1 | - | - | - | - | - | IP Precedence |
Enter 0 or 1 in each position |
Each column represents one bit from the Type of Service (ToS) field in the IPv4 header. The right-most column describes what each row is for. The very last row is meant to be filled in by us; it’s the input into the calculator.
As an example, let’s say we Continue reading