Projecte

General

Perfil

Data objects » Historial » Versió 1

Roger Pueyo Centelles, 26-01-2015 10:22

1 1 Roger Pueyo Centelles
h1. Data objects reference
2
3
h2. Hop object
4
When the path from one node to another is calculated, information about the route is partitioned in *hop* objects.
5
6
<pre>
7
{
8
  "path":
9
        {
10
          "in": "fd66_66_66_7_12fe_edff_fe32_8a29",
11
          "out": "fd66_66_66_8_ea94_f6ff_fe42_6a33"
12
        }
13
</pre>
14
15
h2. Path object
16
17
Path objects contain the *unidirectional* path packets follow from one node (_origin_) to another one (_destination_). Paths are, in general, non-symmetric. Since every BMX6 node can advertise different algorithms, packets going from node A to node B can may follow a route completely different to the reverse path from B to A.
18
19
20
<pre>
21
{
22
  "paths": [
23
    {
24
      "timestamp": "1422261005091",
25
      "algorithm": {
26
        "value": "16",
27
        "rxExpNumerator": "1",
28
        "rxExpDivisor": "2",
29
        "txExpNumerator": "1",
30
        "txExpDivisor": "1"
31
      },
32
      "path": [
33
        {
34
          "in": "fd66_66_66_7_12fe_edff_fe32_8a29",
35
          "out": "fd66_66_66_8_ea94_f6ff_fe42_6a33"
36
        },
37
        {
38
          "in": "fd66_66_66_8_ea94_f6ff_fe42_6a33",
39
          "out": "fd66_66_66_b_6666_b3ff_fece_2f1c"
40
        },
41
        {
42
          "in": "fd66_66_66_b_6666_b3ff_fece_2f1c",
43
          "out": "fd66_66_66_b_204_9fff_feef_101"
44
        }
45
      ]
46
    },
47
    {
48
      "timestamp": "1422261040072",
49
      "algorithm": {
50
        "value": 16,
51
        "rxExpNumerator": 1,
52
        "rxExpDivisor": 2,
53
        "txExpNumerator": 1,
54
        "txExpDivisor": 1
55
      },
56
      "path": [
57
        {
58
          "in": "fd66_66_66_b_c24a_ff_fefc_307c",
59
          "out": "fd66_66_66_8_ea94_f6ff_fe42_6a33"
60
        }
61
      ]
62
    }
63
  ]
64
}
65
</pre>