...
- Configuration
- Dump UDSP rules and verify result (optional)
- Add or Delete UDSP (command line or YAML)
- Dump UDSP rules and verify result
- Go to 3 (optional).
- Clean up.
Configuration
UDSP rules can be created at any time, but are applied only if the node they are configured for is considered to be "reachable". Run discovery command on peers as part of configuration.
Expected Behavior
Basic UT
...
Primary Requirement ID | Secondary Requirement ID | Unit Test ID | Unit Test Description |
---|
|
|
| - Setup: configure single network, 3 NIDs on the network
- Add UDSP rule that gives highest priority to a NID that doesn't exist
- Execute UDSP "Show" command
- Verify that the resulting YAML file contains policy description as expected
|
|
|
| - Setup: configure single network, 3 NIDs on the network
- Add UDSP rule that gives one of the interfaces highest priority
- Start traffic
- Verify that the NID with the highest priority was used
- Bring the highest priority NID down
- Verify that remaining NIDs are used
- Stop traffic
|
Issues
Unit Test ID | Description | Status |
---|
singlenet-006 | NID pair UDSP doesn't appear to be taking effect | under investigation |
singlenet-006 | Deleting NID-pair UDSP that specifies multiple source NIDs causes kernel crash | under investigation |
|
|
|
Multiple Network Configuration
...
Primary Requirement ID | Secondary Requirement ID | Unit Test ID | Unit Test Description |
---|
|
|
| - MR Node with Multiple interfaces
- Add UDSP rule that gives one of the local interfaces highest priority
- Send a PING
- Verify that the NID with the highest priority was used
- Send a PING
- Simulate an <error>
- PING msg should be queued on resend queue
- PING msg will be resent on a different interface
- Failed interface's health value will be decremented
- Failed interface will be placed on the recovery queue
- Eventually health score should recover so then only the preferred interface will be used (sensitivity > 0)
|
|
|
| - MR Node with Multiple interfaces: configure two networks, two NIDs on each network
- Add UDSP rule that gives one of the networks highest priority
- Start traffic
- Stop traffic
- Verify that NIDs on the network with the highest priority were used
- Start traffic
- Simulate an <error> (drop on one of the NIDs on the highest priority network)
- Failed interface's health value will be decremented
- Failed interface will be placed on the recovery queue
- Verify that the remaining interface on the failed network is used
- Eventually health score should recover so then only both interface on the preferred network will be used (sensitivity > 0)
|
|
|
| - Configure single local network with two NIDs on the network
- Configure two routers/gateways each providing access to a remote network
- Configure remote peer to have access to the remote network with two NIDs
- Add UDSP rule that designates a pair of a router and local network as preferred
- Start traffic
- Stop traffic
- Verify that the preferred router was used
- Add a PUT drop rule on the router to drop traffic on one of the interfaces.
- Verify that traffic goes to the other interfaces of the preferred router. There shouldn't be any drop in traffic.
- Add a PUT drop rule on the router to drop traffic on all interfaces.
- Verify that traffic goes through the non-preferred router until one of the interfaces of the preferred router recovers.
|
Compatibility with Non-MR Nodes
Expected Behavior
In-Range UT
Primary Requirement ID | Secondary Requirement ID | Unit Test ID | Unit Test Description |
---|
|
|
| - Setup: configure single network, 2 NIDs on the network, peer with MR disabled
- Add UDSP rule that gives one of the interfaces highest priority
- Start traffic
- Stop traffic
- Verify that the NID with the highest priority was used
|
|
|
| - Setup: configure single network, 2 NIDs on the network, peer incapable of MR ("down-rev")
- Add UDSP rule that gives one of the interfaces highest priority
- Start traffic
- Stop traffic
- Verify that the NID with the highest priority was used
|
|
|
| - Setup: configure single network, 2 NIDs on the network, 2 NIDs on the local peer with MR disabled
- Add UDSP rule that gives the highest priority to one of the local peer NIDs
- Start traffic
- Stop traffic
- Verify that local peer NID with the highest priority was used
|
|
|
| - Setup: configure single network, 2 NIDs on the network, 2 NIDs on the local peer incapable of MR ("down-rev")
- Add UDSP rule that gives the highest priority to one of the local peer NIDs
- Start traffic
- Stop traffic
- Verify that local peer NID with the highest priority was used
|
Functional Requirements
Performance Requirements
...