Change PFCP node search order, fix typo, add feature to disable RR for a node #560
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey @acetcom - another one for you!
The first commit deals with the first point in #559, flipping the search order from TAC/APN/cell_ID to APN/ cell_ID/ TAC
This means the logic for (eg) the SMF is now:
Search through node list to see if any are dedicated to support the APN
-- round robin between nodes that support the APN && are PFCP associated
-- if there are none, move to 2
Search through node list to see if any are dedicated to support the e_cell_ID
-- round robin between nodes that support the e_cell_ID && are PFCP associated
-- if there are none, move to 3
Search through node list to see if any are dedicated to support the nr_cell_ID
-- round robin between nodes that support the nr_cell_ID && are PFCP associated
-- if there are none, move to 4
Search through node list to see if any are dedicated to support the TAC
-- round robin between nodes that support the TAC && are PFCP associated
-- if there are none, move to 5
Round robin full list. Use next PFCP associated node.
Second commit is fixing a copy paste typo in the SGWC config file
Third implements a feature to disable RR for a particular node. This deals with this situation described in in #559 where you want to avoid a dumb RR choice:
By default, RR is still enabled for every node. So if you miss the variable from the PFCP node list it doesn't make any difference. After running through the tests for matching APN, then cell_ID, then TAC and we go into full list round robin, all PFCP associated nodes are eligible for use.
If we add the additional flag,
rr: 0
to a node, when we are in this full list round robin mode, the node will be skipped. This is to avoid the dumb choice I was talking about.I've tested this with the SGWC, SMF and x4 SGWU/UPF servers, and it all seems to hold up.
Cheers
Kenny