Project

General

Profile

Actions

Bug #6384

closed

osmo-epdg: SMF IP address should be obtained from AAA-Server

Added by pespin about 2 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
03/02/2024
Due date:
% Done:

100%


Description

So far we are obtaining the SMF IP address in osmo-epdg from the config file:

config/sys.config
38:   {gtpc_remote_ip, "127.0.0.1"},

src/osmo_epdg_sup.erl
13:-define(ENV_DEFAULT_GTPC_REMOTE_IP, "127.0.0.1").
24:    GtpcRemoteIp = application:get_env(?ENV_APP_NAME, gtpc_remote_ip, ?ENV_DEFAULT_GTPC_REMOTE_IP),

    %% ePDG processes:
    GtpcServer = {epdg_gtpc_s2b, {epdg_gtpc_s2b,start_link, [GtpcLocalIp, GtpcLocalPort, GtpcRemoteIp, GtpcRemotePort, GtpuLocalIp, []]},
              permanent,
              5000,
              worker,
              [epdg_gtpc_s2b]},

We should instead obtain it from the AAA-Server.
It still needs to be found out whether AAA-Server in turn also obtains it from HSS.


Files

tunnel_setup.pcapng tunnel_setup.pcapng 17.6 KB pespin, 03/04/2024 01:50 PM
Actions #1

Updated by pespin about 2 months ago

Yes, AAA-Server gets the PGW address (and updates it) from the HSS.

Actions #2

Updated by pespin about 2 months ago

HSS can optionally provide the PDN-GW address in HSS->AAA Swx message SAA (REGISTRATION), in AVP:

SAA
 Non-3GPP-User-Data (3GPP TS 29.273 8.2.3.1, mandatory in SAA type=REGISTRATION)
  APN-Configuration (3GPP TS 29.272 7.3.35, optional, multiple)
    PDN-GW-Allocation-Type (3GPP TS 29.272 7.3.44, optional default=static)
    MIP6-Agent-Info (3GPP TS 29.272 7.3.45, optional)

So AAA should check if Non-3GPP-User-Data->APN-Configuration[Service-Selection=$APN_NAME]->MIP6-Agent-Info is available and use that, otherwise select the PGW from its config afaiu.

open5gs-hssd in epdg.osmocom.org doesn't seem to be adding MIP6-Agent-Info so far, I attach a pcap file.

Actions #3

Updated by pespin about 2 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 90
Actions #4

Updated by pespin about 2 months ago

  • Status changed from Feedback to Resolved
  • % Done changed from 90 to 100

Patches merged, closing.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)