fix: notify PCF with AN_CH_COR trigger after N2 handover completes#201
Open
timyl wants to merge 1 commit into
Open
fix: notify PCF with AN_CH_COR trigger after N2 handover completes#201timyl wants to merge 1 commit into
timyl wants to merge 1 commit into
Conversation
After N2 handover, SMF receives HoState=COMPLETED from AMF along with the UE's post-handover location. SMF now: 1. Saves the incoming ueLocation to smContext 2. After PFCP path-switch succeeds, asynchronously notifies PCF with AN_CH_COR trigger and the new userLocationInfo (TS 29.512 §5.6.3) 3. Applies the returned SmPolicyDecision (e.g. AMBR update) and sends a second PFCP modification to enforce updated QoS at the UPF The PCF notification is async to avoid blocking the 200 OK response to AMF, which would delay UEContextReleaseCommand to the source gNB. Depends on: free5gc/amf#204
Member
|
Hi @timyl , |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
After N2 handover completes, SMF now reports the UE's new location to
PCF using the
AN_CH_COR(Access Network Change Correlation) trigger,as required by 3GPP TS 29.512 §5.6.3.
Changes
internal/sbi/consumer/pcf_service.goAdded
SendSMPolicyAssociationUpdateByLocationChange()which sendsSmPolicyUpdateContextDatawith:repPolicyCtrlReqTriggers: [AN_CH_COR]userLocationInfo: UE's post-handover locationinternal/sbi/processor/pdu_session.goHoState_COMPLETEDhandler: saveueLocationfrom AMF requestinto
smContext.UeLocationSessionUpdateSuccess(after PFCP path-switch): launch asyncgoroutine to notify PCF and apply returned policy decision via PFCP
The goroutine is async to avoid blocking the 200 OK to AMF — a sync
call would delay
UEContextReleaseCommandto the source gNB and causeDL traffic outage of ~3 minutes in testing.
Related PR
Requires AMF change to populate
ueLocationin HoState=COMPLETED:free5gc/amf#204
Testing
Verified with free5gc v4.2.0 + UERANSIM + OAI rfsim + vendor PCF