Skip to contentSkip to conversation

DnUp routing Algorithm

PATCH In review Ken Schmidt 2 participants 3 messages Jun 28, 2011 – Jul 4, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 DnUp routing Algorithm

This is an updated patch for the DnUp routing algorithm. Any comments are appreciated.

This routing algorithm operates in a very similar fashion to UpDn, but is modified to allow optimal routing on certain network structures in which uplinks and CA nodes are connected to the same switch nodes. (For example Chinook at EMSL.) In these networks the optimal paths between nodes connected to a single chassis would remain within the chassis. However due to the uplinks being connected at the same level of the network as the CA nodes UpDn will not allow these paths to be used for communication between the CA nodes.

DnUp follows the same procedure as UpDn with a few differences. Ranking is based solely on the relative distance from CA nodes, any switch node with a CA node directly attached is assigned a rank of 0 any switch node without a CA node attached is assigned a rank of one greater than the minimum rank of their neighbors. Transitions are also reversed; The initial direction is down and only one transition to up is allowed. There is also an option which relaxes this restriction to allow communication with switches nodes similar to the functionality of connect_roots in UpDn.

---
 include/opensm/osm_opensm.h |    1 
 man/opensm.8.in             |   18 +
 opensm/Makefile.am          |    4 
 opensm/main.c               |    2 
 opensm/osm_opensm.c         |    6 
 opensm/osm_ucast_dnup.c     |  497 ++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 524 insertions(+), 4 deletions(-)
include/opensm/osm_opensm.h +1 -0
index 8d63111..3ebf533 100644
@@ -101,6 +101,7 @@ typedef enum _osm_routing_engine_type {
 	OSM_ROUTING_ENGINE_TYPE_NONE = 0,
 	OSM_ROUTING_ENGINE_TYPE_MINHOP,
 	OSM_ROUTING_ENGINE_TYPE_UPDN,
+	OSM_ROUTING_ENGINE_TYPE_DNUP,
 	OSM_ROUTING_ENGINE_TYPE_FILE,
 	OSM_ROUTING_ENGINE_TYPE_FTREE,
 	OSM_ROUTING_ENGINE_TYPE_LASH,
man/opensm.8.in +17 -1
index c026f3a..96cdd1b 100644
@@ -152,7 +152,7 @@ separated by commas so that specific ordering of routing algorithms
 will be tried if earlier routing engines fail.  If all configured
 routing engines fail, OpenSM will always attempt to route with Min Hop
 unless 'no_fallback' is included in the list of routing engines.
-Supported engines: minhop, updn, file, ftree, lash, dor, torus-2QoS.
+Supported engines: minhop, updn, dnup, file, ftree, lash, dor, torus-2QoS.
 .TP
 \fB\-\-do_mesh_analysis\fR
 This option enables additional analysis for the lash routing engine to
@@ -667,6 +667,10 @@ node, but it is constrained to ranking rules. This algorithm should be chosen
 if the subnet is not a pure Fat Tree, and deadlock may occur due to a
 loop in the subnet.
 
+3. DNUP Unicast routing algorithm - similar to UPDN but allows routing in
+fabrics which have some Ca nodes attached closer to the roots than some switch
+nodes.
+
 3.  Fat Tree Unicast routing algorithm - this algorithm optimizes routing
 for congestion-free "shift" communication pattern.
 It should be chosen if a subnet is a symmetrical or almost symmetrical
@@ -836,6 +840,18 @@ format will be discarded.
 possible to specify CA guids; OpenSM will use the guid of the switch (if
 it exists) that connects the CA to the subnet as a root node.
 
+Purpose of DNUP Algorithm
+
+The DNUP algorithm is designed to serve a similar purpose to UPDN. However
+it is intended to work in network topologies which are unsuited to
+UPDN due to nodes being connected closer to the roots than some of
+the switches.  An example would be a fabric which contains nodes and
+uplinks connected to the same switch. The operation of DNUP is the
+same as UPDN with the exception of the ranking process.  In DNUP all
+switch nodes are ranked based solely on their distance from Ca Nodes,
+all switch nodes directly connected to at least one Ca are assigned a
+value of 1 all other switch nodes are assigned a value of one more than
+the minimum rank of all neighbor switch nodes.
 
 Fat-tree Routing Algorithm
 
opensm/Makefile.am +2 -2
index 69ff593..7d7fb8a 100644
@@ -53,8 +53,8 @@ opensm_SOURCES = main.c osm_console_io.c osm_console.c osm_db_files.c \
 		 osm_prtn.c osm_prtn_config.c osm_qos.c osm_router.c \
 		 osm_trap_rcv.c osm_ucast_mgr.c osm_ucast_updn.c \
 		 osm_ucast_lash.c osm_ucast_file.c osm_ucast_ftree.c \
-		 osm_torus.c osm_vl15intf.c osm_vl_arb_rcv.c \
-		 st.c osm_perfmgr.c osm_perfmgr_db.c \
+		 osm_torus.c osm_ucast_dnup.c osm_vl15intf.c \
+		 osm_vl_arb_rcv.c st.c osm_perfmgr.c osm_perfmgr_db.c \
 		 osm_event_plugin.c osm_dump.c osm_ucast_cache.c \
 		 osm_qos_parser_y.y osm_qos_parser_l.l osm_qos_policy.c
 
opensm/main.c +1 -1
index 5be36b6..198acb5 100644
@@ -177,7 +177,7 @@ static void show_usage(void)
 	       "          If all configured routing engines fail, OpenSM will always\n"
 	       "          attempt to route with Min Hop unless 'no_fallback' is\n"
 	       "          included in the list of routing engines.\n"
-	       "          Supported engines: updn, file, ftree, lash, dor, torus-2QoS\n\n");
+	       "          Supported engines: updn, dnup, file, ftree, lash, dor, torus-2QoS\n\n");
 	printf("--do_mesh_analysis\n"
 	       "          This option enables additional analysis for the lash\n"
 	       "          routing engine to precondition switch port assignments\n"
opensm/osm_opensm.c +6 -0
index ce51a39..1784388 100644
@@ -66,6 +66,7 @@ struct routing_engine_module {
 
 extern int osm_ucast_minhop_setup(struct osm_routing_engine *, osm_opensm_t *);
 extern int osm_ucast_updn_setup(struct osm_routing_engine *, osm_opensm_t *);
+extern int osm_ucast_dnup_setup(struct osm_routing_engine *, osm_opensm_t *);
 extern int osm_ucast_file_setup(struct osm_routing_engine *, osm_opensm_t *);
 extern int osm_ucast_ftree_setup(struct osm_routing_engine *, osm_opensm_t *);
 extern int osm_ucast_lash_setup(struct osm_routing_engine *, osm_opensm_t *);
@@ -75,6 +76,7 @@ extern int osm_ucast_torus2QoS_setup(struct osm_routing_engine *, osm_opensm_t *
 const static struct routing_engine_module routing_modules[] = {
 	{"minhop", osm_ucast_minhop_setup},
 	{"updn", osm_ucast_updn_setup},
+	{"dnup", osm_ucast_dnup_setup},
 	{"file", osm_ucast_file_setup},
 	{"ftree", osm_ucast_ftree_setup},
 	{"lash", osm_ucast_lash_setup},
@@ -92,6 +94,8 @@ const char *osm_routing_engine_type_str(IN osm_routing_engine_type_t type)
 		return "minhop";
 	case OSM_ROUTING_ENGINE_TYPE_UPDN:
 		return "updn";
+	case OSM_ROUTING_ENGINE_TYPE_DNUP:
+		return "dnup";
 	case OSM_ROUTING_ENGINE_TYPE_FILE:
 		return "file";
 	case OSM_ROUTING_ENGINE_TYPE_FTREE:
@@ -120,6 +124,8 @@ osm_routing_engine_type_t osm_routing_engine_type(IN const char *str)
 		return OSM_ROUTING_ENGINE_TYPE_NONE;
 	else if (!strcasecmp(str, "updn"))
 		return OSM_ROUTING_ENGINE_TYPE_UPDN;
+	else if (!strcasecmp(str, "dnup"))
+		return OSM_ROUTING_ENGINE_TYPE_DNUP;
 	else if (!strcasecmp(str, "file"))
 		return OSM_ROUTING_ENGINE_TYPE_FILE;
 	else if (!strcasecmp(str, "ftree"))
opensm/osm_ucast_dnup.c new file +497 -0

497 lines not on this page · raw message

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20110628210549.9131ABB2F74-3GowgxBEfRkyPe/kX8gMlWWJnu75u/[email protected]

#2 lore raw

PATCH 1/1 opensm: dnup routing algorithm man page and documentation fixes

1. Added DnUp routing engine description in doc/current-routing.txt
2. Tiny fixes to opensm man page and usage

---
 doc/current-routing.txt |   48 +++++++++++++++++++++++++++++++++++++++++-----
 man/opensm.8.in         |   12 +++++-----
 opensm/main.c           |    2 +-
 3 files changed, 49 insertions(+), 13 deletions(-)
doc/current-routing.txt +42 -6
index 5048c55..192b65f 100644
@@ -1,7 +1,7 @@
 Current OpenSM Routing
-10/9/09
+28/6/11
 
-OpenSM offers six routing engines:
+OpenSM offers seven routing engines:
 
 1.  Min Hop Algorithm - based on the minimum hops to each node where the
 path length is optimized.
@@ -11,24 +11,28 @@ node, but it is constrained to ranking rules. This algorithm should be chosen
 if the subnet is not a pure Fat Tree, and deadlock may occur due to a
 loop in the subnet.
 
-3.  Fat-tree Unicast routing algorithm - this algorithm optimizes routing
+3.  DNUP Unicast routing algorithm - similar to UPDN but allows routing in
+fabrics which have some Ca nodes attached closer to the roots than some switch
+nodes.
+
+4.  Fat-tree Unicast routing algorithm - this algorithm optimizes routing
 of fat-trees for congestion-free "shift" communication pattern.
 It should be chosen if a subnet is a symmetrical fat-tree.
 Similar to UPDN routing, Fat-tree routing is credit-loop-free.
 
-4. LASH unicast routing algorithm - uses Infiniband virtual layers
+5. LASH unicast routing algorithm - uses Infiniband virtual layers
 (SL) to provide deadlock-free shortest-path routing while also
 distributing the paths between layers. LASH is an alternative
 deadlock-free topology-agnostic routing algorithm to the non-minimal
 UPDN algorithm avoiding the use of a potentially congested root node.
 
-5. DOR Unicast routing algorithm - based on the Min Hop algorithm, but
+6. DOR Unicast routing algorithm - based on the Min Hop algorithm, but
 avoids port equalization except for redundant links between the same
 two switches.  This provides deadlock free routes for hypercubes when
 the fabric is cabled as a hypercube and for meshes when cabled as a
 mesh (see details below).
 
-6. Torus-2QoS unicast routing algorithm - a DOR-based routing algorithm
+7. Torus-2QoS unicast routing algorithm - a DOR-based routing algorithm
 specialized for 2D/3D torus topologies.  Torus-2QoS provides deadlock-free
 routing while supporting two quality of service (QoS) levels.  In addition
 it is able to route around multiple failed fabric links or a single failed
@@ -192,6 +196,38 @@ To learn more about deadlock-free routing, see the article
 by William J Dally and Charles L Seitz (1985).
 
 
+DNUP Routing Algorithm
+----------------------
+
+Purpose:
+
+Down/Up routing algorithm operates in a very similar fashion to UPDN, but
+is modified to allow optimal routing on certain network structures in
+which uplinks and CA nodes are connected to the same switch nodes. (For
+example Chinook at EMSL and RoadRunner at LANL.) In these networks the
+optimal paths between nodes connected to a single chassis would remain
+within the chassis.  However due to the uplinks being connected at the
+same level of the network as the CA nodes UPDN will not allow these paths
+to be used for communication between the CA nodes.
+
+Down/Up follows the same procedure as UPDN with a few differences.  Ranking
+is based solely on the relative distance from CA nodes, any switch node
+with a CA node directly attached is assigned a rank of 0 any switch
+node without a CA node attached is assigned a rank of one greater than
+the minimum rank of their neighbors. Transitions are also reversed;
+The initial direction is down and only one transition to up
+is allowed.  There is also an option which relaxes this restriction to
+allow communication with switches nodes similar to the functionality of
+connect_roots in UPDN.
+
+DNUP Algorithm Usage
+
+Activation through OpenSM
+
+Use '-R dnup' option to activate the DNUP algorithm.
+Use '--connect_roots' option to connect nodes which violate the DNUP criteria.
+
+
 Fat-tree Routing Algorithm
 --------------------------
 
man/opensm.8.in +6 -6
index 74a4d33..e281157 100644
@@ -692,7 +692,7 @@ compiling opensm with -DROUTER_EXP which has been obsoleted.
 
 .SH ROUTING
 .PP
-OpenSM now offers six routing engines:
+OpenSM now offers seven routing engines:
 
 1.  Min Hop Algorithm - based on the minimum hops to each node where the
 path length is optimized.
@@ -702,30 +702,30 @@ node, but it is constrained to ranking rules. This algorithm should be chosen
 if the subnet is not a pure Fat Tree, and deadlock may occur due to a
 loop in the subnet.
 
-3. DNUP Unicast routing algorithm - similar to UPDN but allows routing in
+3.  DNUP Unicast routing algorithm - similar to UPDN but allows routing in
 fabrics which have some Ca nodes attached closer to the roots than some switch
 nodes.
 
-3.  Fat Tree Unicast routing algorithm - this algorithm optimizes routing
+4.  Fat Tree Unicast routing algorithm - this algorithm optimizes routing
 for congestion-free "shift" communication pattern.
 It should be chosen if a subnet is a symmetrical or almost symmetrical
 fat-tree of various types, not just K-ary-N-Trees: non-constant K, not
 fully staffed, any Constant Bisectional Bandwidth (CBB) ratio.
 Similar to UPDN, Fat Tree routing is constrained to ranking rules.
 
-4. LASH unicast routing algorithm - uses Infiniband virtual layers
+5. LASH unicast routing algorithm - uses Infiniband virtual layers
 (SL) to provide deadlock-free shortest-path routing while also
 distributing the paths between layers. LASH is an alternative
 deadlock-free topology-agnostic routing algorithm to the non-minimal
 UPDN algorithm avoiding the use of a potentially congested root node.
 
-5. DOR Unicast routing algorithm - based on the Min Hop algorithm, but
+6. DOR Unicast routing algorithm - based on the Min Hop algorithm, but
 avoids port equalization except for redundant links between the same
 two switches.  This provides deadlock free routes for hypercubes when
 the fabric is cabled as a hypercube and for meshes when cabled as a
 mesh (see details below).
 
-6. Torus-2QoS unicast routing algorithm - a DOR-based routing algorithm
+7. Torus-2QoS unicast routing algorithm - a DOR-based routing algorithm
 specialized for 2D/3D torus topologies.  Torus-2QoS provides deadlock-free
 routing while supporting two quality of service (QoS) levels.  In addition
 it is able to route around multiple failed fabric links or a single failed
opensm/main.c +1 -1
index 6fa767c..6ece03a 100644
@@ -189,7 +189,7 @@ static void show_usage(void)
 	printf("--sm_sl <sl number>\n"
 	       "          Sets the SL to use to communicate with the SM/SA. Defaults to 0.\n\n");
 	printf("--connect_roots, -z\n"
-	       "          This option enforces routing engines (up/down and \n"
+	       "          This option enforces routing engines (up/down, down/up and \n"
 	       "          fat-tree) to make connectivity between root switches\n"
 	       "          and in this way be IBA compliant. In many cases,\n"
 	       "          this can violate \"pure\" deadlock free algorithm, so\n"
Signature · 6 lines
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw
In reply to a message not in the archive

Hi Ken,

Quoted 22 lines · Ken Schmidt

This is an updated patch for the DnUp routing algorithm. Any comments are appreciated.

This routing algorithm operates in a very similar fashion to UpDn, but is modified to allow optimal routing on certain network structures in which uplinks and CA nodes are connected to the same switch nodes. (For example Chinook at EMSL.) In these networks the optimal paths between nodes connected to a single chassis would remain within the chassis. However due to the uplinks being connected at the same level of the network as the CA nodes UpDn will not allow these paths to be used for communication between the CA nodes.

DnUp follows the same procedure as UpDn with a few differences. Ranking is based solely on the relative distance from CA nodes, any switch node with a CA node directly attached is assigned a rank of 0 any switch node without a CA node attached is assigned a rank of one greater than the minimum rank of their neighbors. Transitions are also reversed; The initial direction is down and only one transition to up is allowed. There is also an option which relaxes this restriction to allow communication with switches nodes similar to the functionality of connect_roots in UpDn.

Quoted 1 line

---

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html