...
This document describes the UDSP feature from the user perspective. The document will cover all Intended use cases, list expected behaviour and potential issues for each.
UDSP Use Cases
Linux Routing
Because all use cases featured below rely on having multiple interfaces configured, it is important to make sure that linux routing is configured according to guidelines listed here: MR Cluster Setup
Local Peer Config
Gliffy Diagram | ||||
---|---|---|---|---|
|
...
UDSP | Behaviour | ||||
---|---|---|---|---|---|
Prioritize one of PeerA NIDs on tcp | Prioritized nid is used when its net (tcp) is used on peerA Priority of the nid is 0. Other nids' priority is -1 (default, no priority) Every send toggles between the prioritized nid on tcp and the nid on tcp1 on the source. The remaining nid on tcp is not used "netstat -i" command shows tx stats incrementing for eth2 and eth0 on peerA | ||||
| PeerA:
|
...
UDSP | Behaviour | ||||
---|---|---|---|---|---|
Prioritize tcp1 as source on PeerA Note that source NID rule is still in the list. | Prioritized tcp1 is used on PeerA Priority of tcp1 is 0 (highest) Every send on PeerA goes out tcp1. NID rule is overriden. "netstat -i" command shows tx stats incrementing for eth2 on peerA | ||||
| PeerA:
|
...
UDSP | Behaviour | ||
---|---|---|---|
On PeerA, prioritize one of PeerB's NIDs on tcp | Prioritized NID tcp NID on PeerA PeerB is used sent to when tcp is selected on peerA Priority of the prioritized NID is 0 (lnetct peer show -v 4) Sends on PeerA alternate between tcp and tcp1. When tcp is used, send goes to the prioritized dest NID "netstat -i" command shows rx stats incrementing for eth2 and eth0 on peerB | ||
| PeerB: use "lnetct net show -v" to verify the receive count going up on the prioritized NID PeerA: use "lnetct peer show -v 4" to verify dest NID priority. |
...
UDSP | Behaviour | ||
---|---|---|---|
On PeerA, prioritize tcp1 as dest net | Prioritized dest net (tcp1) is used to send from PeerA Priority of the prioritized dest net is 0 (lnetct peer show -v 4) Sends on PeerA use tcp1. "netstat -i" command shows tx stats incrementing for eth2 on peerA | ||
| PeerB: use "lnetctl net show -v" to verify the receive count going up on the nids of the prioritized dest net PeerA: use "lnetctl peer show -v 4" to verify dest net priority. |
...
PeerA | PeerB | Gateway1 | Gateway2 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
two nids on tcp | two nids on tcp2 | two nids on tcp, two nids on tcp2 | two nids on tcp, two nids on tcp2 | ||||||||||||
|
|
|
|
Gateway Preference For
...
Destination
Preferred Gateway For
...
Destination NID
Gliffy Diagram | ||||
---|---|---|---|---|
|
UDSP | Behaviour | ||||
---|---|---|---|---|---|
On PeerB, designate Gateway1 as preferred on tcp2 | All sends from PeerB use Gateway1 Use "lnetctl stats show" on Gateway1 and Gateway2. On every send from PeerB to PeerA, "route_count" should increase only on Gateway1. On PeerB, Gateway1 should be listed as preferred for every nid on tcp2: | ||||
| PeerB:
|
Preferred Gateway For Source NID
Current behaviour in this case is to make the specified gateway preferred for all nids on the same net as the specified nid.
Gateway Preference For Destination
Preferred Gateway For Destination NID
Gliffy Diagram | ||||
---|---|---|---|---|
|
add UDSP that gives one of the PeerA nids highest priority On PeerB, designate Gateway1 as preferred for the same | |||||
UDSP | Behaviour | ||||
---|---|---|---|---|---|
On PeerB, add UDSP that gives one of the PeerA nids highest priority On PeerB, designate Gateway1 as preferred for the same PeerA nid. | All sends from PeerB go to the prioritized nid of PeerA through the preferred gateway Use "lnetctl stats show" on Gateway1 and Gateway2. On every send from PeerB to PeerA, "route_count" should increase only on Gateway1. On PeerA "send_count" and "recv_count" should increase only for the prioritised nid. On PeerB, Gateway1 should be listed as preferred for the specified nid of PeerA on tcp: "netstat -i" command shows rx stats incrementing for eth0 on peerA | ||||
| PeerB:
|
...
Preferred Gateway For Destination Net
Gliffy Diagram | ||||||
---|---|---|---|---|---|---|
|
UDSP | Behaviour | ||||
---|---|---|---|---|---|
On PeerB, designate Gateway1 as preferred for tcp remote network | The preferred gateway for tcp is used for all traffic Use "lnetctl stats show" on Gateway1 and Gateway2. On every send from PeerB to PeerA, "route_count" should increase only on Gateway1. On PeerB, Gateway1 should be listed as preferred for every nid on tcp: | ||||
| PeerB:
|