Skip to Content.
Sympa Menu

perfsonar-dev - DCN Topology Example

Subject: perfsonar development work

List archive

DCN Topology Example


Chronological Thread 
  • From: Jason Zurawski <>
  • To: "" <>
  • Subject: DCN Topology Example
  • Date: Wed, 09 Apr 2008 06:04:01 -0400
  • Openpgp: id=B94D59A6; url=http://people.internet2.edu/~zurawski/key.txt
  • Organization: Internet2

All;

The LS is able to house data such as this:

<nmwg:data xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"; id="topo.d.26" metadataIdRef="topo.md.1">
<nmtb:node xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/"; id="internet2.d.26">
<nmtb:address type="hostname">lowrider.east.isi.edu</nmtb:address>
<nmtb:relation type="connectionLink">
<nmtb:linkIdRef>
urn:ogf:network:domain=dcn.internet2.edu:node=wash-vlsr:port=10.100.80.221-102:link=1
</nmtb:linkIdRef>
</nmtb:relation>
</nmtb:node>
</nmwg:data>

This is a mapping of a URN (used in DCN to map a physical device or endpoint) to a hostname (or ip address).


Query to get one when you know one:

declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
declare namespace nmtb="http://ogf.org/schema/network/topology/base/20070828/";; //nmwg:data/nmtb:node/nmtb:address/text()[../../nmtb:relation[@type="connectionLink"]/nmtb:linkIdRef[text()="urn:ogf:network:domain=dcn.internet2.edu:node=wash-vlsr:port=10.100.80.221-102:link=1"]]

And the other way:

declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
declare namespace nmtb="http://ogf.org/schema/network/topology/base/20070828/";; //nmwg:data/nmtb:node/nmtb:relation/nmtb:linkIdRef/text()[../../../nmtb:address[text()="lowrider.east.isi.edu"]]

Bonus web interface to DCN info (this demo server is not live, feel free to play with it):

https://dc211.internet2.edu/cgi-bin/dcn.cgi

-jason


  • DCN Topology Example, Jason Zurawski, 04/09/2008

Archive powered by MHonArc 2.6.16.

Top of Page