On 10/25/2011 05:30 PM, Richard Alimi wrote:
The intent would be that it just isn't there. So, something like this:

    {
      "meta" : {},
      "data" : {
        "cost-mode" : "numerical",
        "cost-type" : "routingcost",
        "map-vtag"  : "1266506139",
        "map" : {
          "PID1": { "PID1": 1,  "PID2": 5 },
          "PID2": { "PID1": 5,  "PID2": 1,  "PID3": 15 },
          "PID3": { "PID2": 15, "PID3": 1  }
        }
      }
    }

Rich: The above is fine when the answer contains multiple PIDs
and one PID is omitted from the response.

However, consider a query involving a singleton destination PID, i.e.,
what happens if a client asked for the cost between a source PID
representing a transit network (say PID1) to a destination
PID representing the Internet (say PID5)?

Is the right answer:

(a) "PID1:" {}
(b) "PID1:" { "PID5" : NaN }

where "NaN" is essentially an infinite cost (replace NaN by your
favorite token).

Thanks,

- vijay
--
Vijay K. Gurbani, Bell Laboratories, Alcatel-Lucent
1960 Lucent Lane, Rm. 9C-533, Naperville, Illinois 60566 (USA)
Email: vkg@{bell-labs.com,acm.org} / [email protected]
Web:   http://ect.bell-labs.com/who/vkg/
_______________________________________________
alto mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/alto

Reply via email to