[Dev] Connection Path

Ryan Kruse rkruse at alterpoint.com
Tue Jul 10 07:31:57 CDT 2007


I like it.

-----Original Message-----
From: "Leo Bayer" <lbayer at alterpoint.com>
To: "dev at ziptie.org" <dev at ziptie.org>
Sent: 7/10/07 12:27 AM
Subject: [Dev] Connection Path

A couple of weeks ago Dylan and I talked about a different way of defining connection information due to some shortcomings we saw with using a URL.
 
We though that instead of using a URL we could use an XML format something like this...
 
<connection ip="10.100.22.6">
    <telnet port="23"/>
    <tftp server="10.10.10.10" port="69" />
    <snmp version="2" port="161"/>
 
    <!-- conceivably for jumphost... -->
    <connection ip="other">
        ...
        <credentials> ...</credentials>
    </connection>
</connection>
 
... more or less.
 
Using a URL would indicate a hierarchical structure to a connection but the standard connections aren't hierarchical.  For instance, TFTP is somewhat tangent Telnet and SNMP is even more tangent.  The SNMP connection is not in any way associated with the telnet or tftp connection.  Giving a protocol set, say Telnet-SNMP, how do you know which protocol is the first one.  It could be 'snmp://host:port/?telnet' or whatever. 
 
The reason for supporting hierarchical connection using the URLs would be for supporting arbitrary deep connections (jumphost, terminal servers, etc).  Considering the arbitrariness of protocol relationships it is not clear what the URL would look like.  By explicitly defining the connection using xml we could conceivably add jumphost support in a clean way (possibly nesting connection elements within each other).  Using this, or a similar xml format, would make what is supported explicit in the format.
 
Also, I'm not clear how credentials for URL connectionPaths are supposed to work.  Each jump in a connectionPath would have to have it's own set of credentials.  With this xml the credentials could be placed as a child of the connection allowing for any number of connection elements each with their own credentials.
 
 
Thoughts?
 
 - Leo
 



More information about the Dev mailing list