-
-
Notifications
You must be signed in to change notification settings - Fork 692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for SGWC and SMF round robin selection #556
Conversation
…ted SGWU/UPF nodes
Hi @kbarlee When I first designed it, I didn't make a distinction between RR mode and the rest. For example, let's say you have 10 UPFs. At this time, I wanted to be able to select 3 UPFs as Round-Robin manner when the APN of 3 UPFs are internet. Stabilization is in progress now. After that is done, let me look at this part again. Of course, you can also request a Pull Request again. If it fits my original design, I will merge it. Thank you so much! |
Hey @acetcom You don't see the issue for the scenario you described. The code is executed along the following lines:
So for the situation you describe where there are 3 UPFs that support APN 'internet', it will happily round robin between them. If one of the 3 is offline, it will round robin between the other two. This fix is for the situations where
(I had already implemented a fix for this here, but it didnt make it into the current master) Lines 687 to 743 in bcd02b1
Hope that makes sense! Kenny |
Previously, after searching for a SGWU/UPF designed to serve a particular TAC/APN/cell_ID and not finding a node that was suitable, SGWC and SMF would run this line to select a node in round robin fashion:
However this did not check that node
next
was PFCP associated.#555
The code now runs as follows: