# Simple note - 常會使用的spec是TS 23502、29244,23502是以high level的方式介紹5G Core Network的流程,而29244是對SMF和UPF流程間的PFCP參數和流程來做定義。 - 可以從 smf/internal/sbi/producer/HandlePDUSessionSMContextCreate()開始trace,此function是處理 TS 23.502 pdu session establishment的第三步。 ![截圖 2024-01-02 16.55.53](https://hackmd.io/_uploads/rkD-gUW_p.png) - SMF的作用是當UE要建立PDU Session時負責管理的NF,因此除了有接觸到Control Plane外,也要對UPF下達PFCP message,因此不可避免的有碰觸到Data Plane,也因此SMF整體也有點複雜。 - Useful forum https://forum.free5gc.org/t/i-can-not-capture-the-last-ue-id-that-is-generated-by-ueramsin-during-a-simulation/1996/3 在ueransim中,使用script測試多個ue - 可以trace free5GC中的run.sh,學習script的使用。 - 若是對UE - RAN - Core Network 三者之間的關係感興趣的話, test/registration_test.go/TestRegistration()有相對應的流程,並搭配 TS 33501、24501一併服用 - 陳毅的書和[網站](https://ithelp.ithome.com.tw/m/users/20110850/ironman/4961)都很有用