SMF support for multiple gnbs

Hi,
I am trying to configure my SMF instance to support multiple gnbs (e.g. gNB1, gNB2) in its topology, either from default one (i.e. links:) in smfcfg.yaml or the UE specific one (i.e. topology:) under uerouting.yaml.

However, I can not find a way to do so.

From looking into the sources it seems that SMF selects the first gNB it encounters. Please find source links below.

If that is correct, I would like to ask whether there are plans to add a support for SMF to select UPFs path that starts from the gNB the UE is connected to i.e. the gNB, the PDU session request came from ?

Thanks,
Avi

Hi @weit,
Please refer to SMF Config · free5gc/free5gc Wiki · GitHub. You can try to add gNB2 in SMF configuration.

Hi @meow0122, thanks for the reply.

I looked into the link you sent. I added gNB2 to both up_nodes and topology (e.g. links:) but SMF does not seem to distinguish between UEs connected to gNB1 and UEs connected to gNB2. I am using UERANSIM to simulate a gNB node.
SMF seems to select the first gNB it sees in the topology and it uses that to calculate the path for the PDU session establishment. I looked into the sources and I think I found the reason (I pasted source reference in my first post).

I would like to ask: how does SMF select the correct gNB (gNB1 or gNB2) in the topology?

Thanks again,
- Avi