magma / magma

Platform for building access networks and modular network services
https://www.magmacore.org/
Other
1.68k stars 602 forks source link

[Sessiond]Sessiond is not updating all the parameters that are requested during Network Initiated Session Modification #13901

Open NeelimaKalpana opened 2 years ago

NeelimaKalpana commented 2 years ago

-Version: 1.8.0-1662060734-83622a9e -Affected Component: AGW

Describe the Issue

Sessiond is not updating all the Session modification parameters that are requested during Network Initiated Session Modification.

To Reproduce

  1. Trigger the Registration and PDU Establishment.

  2. Now try to initiated Session Modification from the command specified below. session_manager_cli.py policy_rar IMSI001019976545660 IMSI001019976545660-338552 internet1 ADD 10 8 "UL,7,192.168.128.14,2000,8.8.8.8,8080;DL,1,8.8.8.8,8080,192.168.128.14,2000" "6000000,2000000,1000000,2000000,15,0,0"

  3. Observe that Session modification is getting triggered successfully.

  4. But noticed that in the modification command only few packet filter components are getting updated.

Expected behavior

All Packet filters has to be updated as per the request .

Screenshots

Packet filters requested: 0: UL,7,192.168.128.14,2000,8.8.8.8,8080 1: DL,1,8.8.8.8,8080,192.168.128.14,2000

Syslogs with PolicyReAuth info having filters details: Packet filter Direction and filtered ports are missing. image.png https://app.zenhub.com/files/170803235/e3a18b05-ece0-4f7d-b98f-94bedaa6ac45/download image.png

Please find the attached logs for more details:

prabinakpattnaik commented 2 years ago

@NeelimaKalpana and @Sathyaj27 , please configure the value as correct parameters. As per logs, i have seen the direction (UPLINK and DOWNLINK) but UPLINK value is zero, so that it's not visible in GRPC message. For protocol configuration, we have configured protocol number 7 for uplink, which protocol belongs to 7 as per stand ? IPPROTO_ICMP = 1; IPPROTO_IGMP = 2; IPPROTO_TCP = 6; IPPROTO_UDP = 17;

For downlink, we have configured the protocol as a ICMP, so ICMP is layer-3 protocol where is coming for port number.

Please configure the correct parameters.

NeelimaKalpana commented 2 years ago

Okay Prabinak. Let me give a try and check.

NeelimaKalpana commented 2 years ago

Hi Prabinak,

In my testing I tried with TCP=6 and ICMP=1 as well but every time I am observing the same number of packet-filters =1 in pacp and only remote-address info is getting populated.

Please find the packet capture below for more reference. Command Used : session_manager_cli.py policy_rar IMSI001019976545660 IMSI001019976545660-15833 internet1 ADD 10 8 "UL,6,192.168.128.30,2000,8.8.8.8,8080;DL,6,8.8.8.8,8080,192.168.128.30,2000" "7000000,6000000,1000000,2000000,15,1,1" image.png

https://app.zenhub.com/files/170803235/4c4ec119-86ab-44d5-8fca-7c284533ac33/download

NeelimaKalpana commented 2 years ago

Additional logs for further debugging .

https://app.zenhub.com/files/170803235/6a1e0816-d6d9-4f5c-b309-aef33f78c7de/download