Traffic Influence feature via NEF

Hi there,
I am trying to follow the documentation related to the example of traffic influence via NEF here.
In particular, I installed successfully the free5gc-compose software and I brought up the free5gc-compose-ulcl.yaml deployment. Then, executing the scripts provided in the free5gc-compose repo (in particular the nef_af_post.sh) I experienced the following behaviour:

  • The traffic-influence works as expected if triggered before establishing the PDU session in ueransim Docker container;
  • The traffic-influence does not work if triggered after establishing the PDU session in the ueransim Docker conatiner (please check below for the free5gc error logs).

Is it an expected behaviour? Is it possible to apply traffic-influence after the PDU session has been established?

Thanks in advance!

Free5gc logs showing errors when configuring traffic influence after the PDU Session has been established:

nef           | 2025-02-12T16:30:45.715767029Z [INFO][NEF][TraffInfl]     PostTrafficInfluenceSubscription - afID[af001]
nef           | 2025-02-12T16:30:45.715854076Z [INFO][NEF][CTX][AFID:AF:af001][SubID:SUB:1] New subscription
nrf           | 2025-02-12T16:30:45.720161302Z [INFO][NRF][Token] In HTTPAccessTokenRequest
nrf           | 2025-02-12T16:30:45.723306259Z [WARN][NRF][Token] Certificate verify: x509: certificate signed by unknown authority (possibly because of "x509: invalid signature: parent certificate cannot sign this kind of certificate" while trying to verify candidate authority certificate "NRF")
nrf           | 2025-02-12T16:30:45.726507303Z [INFO][NRF][GIN] | 200 |   10.100.200.14 | POST    | /oauth2/token |
nrf           | 2025-02-12T16:30:45.728761068Z [INFO][NRF][DISC] Handle NFDiscoveryRequest
nrf           | 2025-02-12T16:30:45.731371573Z [INFO][NRF][GIN] | 200 |   10.100.200.14 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=NEF&service-names=npcf-policyauthorization&target-nf-type=PCF |
nef           | 2025-02-12T16:30:45.732028076Z [INFO][NEF][CTX] Set pcfPaUri: [http://pcf.free5gc.org:8000]
nrf           | 2025-02-12T16:30:45.732479103Z [INFO][NRF][Token] In HTTPAccessTokenRequest
nrf           | 2025-02-12T16:30:45.733673583Z [WARN][NRF][Token] Certificate verify: x509: certificate signed by unknown authority (possibly because of "x509: invalid signature: parent certificate cannot sign this kind of certificate" while trying to verify candidate authority certificate "NRF")
nrf           | 2025-02-12T16:30:45.738444258Z [INFO][NRF][GIN] | 200 |   10.100.200.14 | POST    | /oauth2/token |
pcf           | 2025-02-12T16:30:45.746724229Z [INFO][PCF][PolAuth] Session Binding Success - UeIpv4[10.60.0.1], UeIpv6[], UeMac[]
pcf           | 2025-02-12T16:30:45.746777774Z [INFO][PCF][PolAuth] AF influence on Traffic Routing - AppId[app1]
nef           | 2025-02-12T16:30:45.747354139Z [INFO][NEF][Consumer] appSessID="imsi-208930000000001-1"
pcf           | 2025-02-12T16:30:45.746812496Z [INFO][PCF][PolAuth] Create PCC rule[PccRuleId-3] with new Traffic Control Data[TcId-3]
nef           | 2025-02-12T16:30:45.747491323Z [INFO][NEF][CTX][AFID:AF:af001] Subscription is added
pcf           | 2025-02-12T16:30:45.746886368Z [INFO][PCF][PolAuth] App Session Id[imsi-208930000000001-1] Create
nrf           | 2025-02-12T16:30:45.748979088Z [INFO][NRF][Token] In HTTPAccessTokenRequest
nef           | 2025-02-12T16:30:45.747528119Z [INFO][NEF][CTX][AFID:AF:af001] AF is added
pcf           | 2025-02-12T16:30:45.746984078Z [INFO][PCF][GIN] | 201 |   10.100.200.14 | POST    | /npcf-policyauthorization/v1/app-sessions |
nrf           | 2025-02-12T16:30:45.750535269Z [WARN][NRF][Token] Certificate verify: x509: certificate signed by unknown authority (possibly because of "x509: invalid signature: parent certificate cannot sign this kind of certificate" while trying to verify candidate authority certificate "NRF")
nef           | 2025-02-12T16:30:45.747797105Z [INFO][NEF][GIN] | 201 |   10.100.200.18 | POST    | /3gpp-traffic-influence/v1/af001/subscriptions |
nrf           | 2025-02-12T16:30:45.757205168Z [INFO][NRF][GIN] | 200 |   10.100.200.10 | POST    | /oauth2/token |
pcf           | 2025-02-12T16:30:45.757806364Z [INFO][PCF][SMpolicy] Send SM Policy Update Notification to SMF
smf           | 2025-02-12T16:30:45.761975709Z [INFO][SMF][PduSess] In HandleSMPolicyUpdateNotify
smf           | 2025-02-12T16:30:45.774435901Z [INFO][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Modify PCCRule[PccRuleId-1]
smf           | 2025-02-12T16:30:45.774488551Z [INFO][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] No srcTcData and tgtTcData. Nothing to do
smf           | 2025-02-12T16:30:45.786159542Z [INFO][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Modify PCCRule[PccRuleId-2]
smf           | 2025-02-12T16:30:45.786206144Z [INFO][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] No srcTcData and tgtTcData. Nothing to do
smf           | 2025-02-12T16:30:45.790087407Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] fail to identify charging level[too few fields 0] for pcc rule[PccRuleId-3]
smf           | 2025-02-12T16:30:45.790145794Z [INFO][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Install PCCRule[PccRuleId-3]
smf           | 2025-02-12T16:30:45.794800779Z [INFO][SMF][PduSess] Sending PFCP Session Modification Request
smf           | 2025-02-12T16:30:45.794802363Z [INFO][SMF][PduSess] Sending PFCP Session Modification Request
smf           | 2025-02-12T16:30:45.797294633Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
smf           | 2025-02-12T16:30:45.797364862Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
smf           | 2025-02-12T16:30:45.797382304Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
smf           | 2025-02-12T16:30:45.797395648Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.799101400Z [INFO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805] handleSessionModificationRequest
smf           | 2025-02-12T16:30:45.797409473Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
i-upf         | 2025-02-12T16:30:45.800427934Z [INFO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805] handleSessionModificationRequest
smf           | 2025-02-12T16:30:45.797424133Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
smf           | 2025-02-12T16:30:45.797436793Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
i-upf         | 2025-02-12T16:30:45.801844407Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:5 period:10000000000}]
smf           | 2025-02-12T16:30:45.797450040Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
i-upf         | 2025-02-12T16:30:45.801951561Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
psa-upf       | 2025-02-12T16:30:45.801601899Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:3 period:10000000000}]
smf           | 2025-02-12T16:30:45.797462639Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
i-upf         | 2025-02-12T16:30:45.803052186Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
psa-upf       | 2025-02-12T16:30:45.801726187Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
smf           | 2025-02-12T16:30:45.797475746Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
i-upf         | 2025-02-12T16:30:45.803900853Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
psa-upf       | 2025-02-12T16:30:45.802399699Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:4 period:10000000000}]
smf           | 2025-02-12T16:30:45.797487546Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
i-upf         | 2025-02-12T16:30:45.804207786Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
psa-upf       | 2025-02-12T16:30:45.803442779Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
smf           | 2025-02-12T16:30:45.797515024Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
i-upf         | 2025-02-12T16:30:45.803914602Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:6 period:10000000000}]
psa-upf       | 2025-02-12T16:30:45.804514640Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:3 period:10000000000}]
smf           | 2025-02-12T16:30:45.797558885Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.804833008Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.804471087Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:5 period:10000000000}]
smf           | 2025-02-12T16:30:45.797574807Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.805040466Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:4 period:10000000000}]
i-upf         | 2025-02-12T16:30:45.804510160Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:6 period:10000000000}]
smf           | 2025-02-12T16:30:45.797586487Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.805121024Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.804544071Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:1 period:10000000000}]
smf           | 2025-02-12T16:30:45.797614775Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.807142507Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.804933120Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:2 period:10000000000}]
smf           | 2025-02-12T16:30:45.797629388Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.807448434Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.805012895Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:1 period:10000000000}]
smf           | 2025-02-12T16:30:45.797651125Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.807595530Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:3 period:10000000000}]
i-upf         | 2025-02-12T16:30:45.805280377Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
smf           | 2025-02-12T16:30:45.797665425Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.807716190Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.805607902Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:2 period:10000000000}]
smf           | 2025-02-12T16:30:45.797676378Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.807876666Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:4 period:10000000000}]
i-upf         | 2025-02-12T16:30:45.806970446Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
smf           | 2025-02-12T16:30:45.797687527Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.808470087Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.807109494Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:5 period:10000000000}]
smf           | 2025-02-12T16:30:45.797698938Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.808823648Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.807325714Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
smf           | 2025-02-12T16:30:45.798470926Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.809337404Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.807667470Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:6 period:10000000000}]
smf           | 2025-02-12T16:30:45.798500668Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.809460443Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:3 period:10000000000}]
i-upf         | 2025-02-12T16:30:45.807926316Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
smf           | 2025-02-12T16:30:45.798532079Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.809489569Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.808014764Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:5 period:10000000000}]
smf           | 2025-02-12T16:30:45.798549857Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.809662831Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:4 period:10000000000}]
i-upf         | 2025-02-12T16:30:45.808204490Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
smf           | 2025-02-12T16:30:45.798579219Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.809711845Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.808479614Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:6 period:10000000000}]
smf           | 2025-02-12T16:30:45.798601662Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.809926156Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.808720193Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
smf           | 2025-02-12T16:30:45.798659632Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.810623751Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.808808278Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:5 period:10000000000}]
smf           | 2025-02-12T16:30:45.798677521Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.810812215Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:3 period:10000000000}]
i-upf         | 2025-02-12T16:30:45.808895336Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
smf           | 2025-02-12T16:30:45.798688993Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.811025303Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.809054332Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:6 period:10000000000}]
smf           | 2025-02-12T16:30:45.798700028Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.811120523Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:4 period:10000000000}]
i-upf         | 2025-02-12T16:30:45.809105834Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
smf           | 2025-02-12T16:30:45.798855397Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.811312548Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.809247817Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:5 period:10000000000}]
smf           | 2025-02-12T16:30:45.798888062Z [WARN][SMF][PduSess][pdu_session_id:1][supi:imsi-208930000000001] Duplicate URR creation
psa-upf       | 2025-02-12T16:30:45.811646099Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.809398788Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
smf           | 2025-02-12T16:30:45.814649579Z [INFO][SMF][PduSess] Received PFCP Session Modification Response
psa-upf       | 2025-02-12T16:30:45.811993696Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.809565520Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:6 period:10000000000}]
smf           | 2025-02-12T16:30:45.819825917Z [INFO][SMF][PduSess] Received PFCP Session Modification Response
psa-upf       | 2025-02-12T16:30:45.812212286Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:3 period:10000000000}]
i-upf         | 2025-02-12T16:30:45.809587739Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
smf           | 2025-02-12T16:30:45.825215220Z [INFO][SMF][GIN] | 204 |   10.100.200.10 | POST    | /nsmf-callback/sm-policies/urn:uuid:e2148052-51e5-4468-85a4-10cc60500a76/update |
psa-upf       | 2025-02-12T16:30:45.812416440Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.809707447Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:5 period:10000000000}]
psa-upf       | 2025-02-12T16:30:45.812631448Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:4 period:10000000000}]
i-upf         | 2025-02-12T16:30:45.809732431Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
psa-upf       | 2025-02-12T16:30:45.812791626Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.809800623Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:6 period:10000000000}]
psa-upf       | 2025-02-12T16:30:45.813079584Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.809920171Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
psa-upf       | 2025-02-12T16:30:45.813386592Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.809992381Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:5 period:10000000000}]
psa-upf       | 2025-02-12T16:30:45.813512825Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:3 period:10000000000}]
i-upf         | 2025-02-12T16:30:45.810102633Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
psa-upf       | 2025-02-12T16:30:45.813671647Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
i-upf         | 2025-02-12T16:30:45.810242518Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:6 period:10000000000}]
psa-upf       | 2025-02-12T16:30:45.813811353Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:4 period:10000000000}]
i-upf         | 2025-02-12T16:30:45.810307973Z [ERRO][UPF][PFCP][LAddr:i-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x1][UPSEID:0x1] Mod CreateURR error: file exists
psa-upf       | 2025-02-12T16:30:45.813995986Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
psa-upf       | 2025-02-12T16:30:45.814249743Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
psa-upf       | 2025-02-12T16:30:45.815174372Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:3 period:10000000000}]
psa-upf       | 2025-02-12T16:30:45.815352186Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
psa-upf       | 2025-02-12T16:30:45.815550327Z [INFO][UPF][Perio] recv event[TYPE_PERIO_ADD][{eType:1 lSeid:1 urrid:4 period:10000000000}]
psa-upf       | 2025-02-12T16:30:45.815720294Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
psa-upf       | 2025-02-12T16:30:45.816871983Z [ERRO][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] Mod CreateURR error: file exists
psa-upf       | 2025-02-12T16:30:45.818507091Z [WARN][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] diassociateURR: wrong refPdrNum(0)
psa-upf       | 2025-02-12T16:30:45.818635507Z [WARN][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] diassociateURR: wrong refPdrNum(0)
psa-upf       | 2025-02-12T16:30:45.818763472Z [WARN][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] diassociateURR: wrong refPdrNum(0)
psa-upf       | 2025-02-12T16:30:45.818779920Z [WARN][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] diassociateURR: wrong refPdrNum(0)
psa-upf       | 2025-02-12T16:30:45.818985303Z [WARN][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] diassociateURR: wrong refPdrNum(0)
psa-upf       | 2025-02-12T16:30:45.819396728Z [WARN][UPF][PFCP][LAddr:psa-upf.free5gc.org:8805][CPNodeID:smf.free5gc.org][CPSEID:0x2][UPSEID:0x1] diassociateURR: wrong refPdrNum(0)

Hi,

Traffic Influence (TI) can be applied both before and after the establishment of a PDU session.

Could you check if there are any redundant TI data left in MongoDB? Also, please confirm whether you used the latest compose file, free5GC, and gtp5g for the experiment.

Let me know if you make any progress on this!

Best regards,
lyz508

Hello @lyz508,
thanks for your reply, unfortunately I was not able to fix this issue.

I just deleted all the docker volumes in my machine (I think that this should guarantee that no redundant TI rules are left in MongoDB) and retried to apply TI after the PDU Session has been established. You can find attached the Free5GC logs (free5gc-logs.txt) and the pcap file (smf_pdu_ti.pcap) I collected on the SMF Docker container.
As you may notice, the PFCP Session Modification messages carry multiple times the same URRs, and this is causing the WARNING lines on the SMF and the ERROR lines on the UPF.

In the following, the requested info:

  • free5gc-compose commit id: c2ac4bcf436e5910aaf5d9830aeff8772bc23595 (the latest one)
  • free5gc commit id: 5722049983df8872f81fea2a969495769ddeca2b (the latest one)
  • gtp5g has been installed using the command in the free5gc-compose README (git clone --branch v0.9.5 --depth 1 https://github.com/free5gc/gtp5g.git)

Any idea on what I am doing wrong?
Thanks in advance, best regards