Содержание

Subscriber Session Limit (Service 22)

Description

Service 22 limits the number of concurrent sessions (flows) of a subscriber. This makes it possible to limit the session table utilization by a single subscriber.

When the limit is reached, new sessions are not created and their packets are dropped.

Operating specifics:

Configuration

  1. Set the maximum number of service 22 profiles in /etc/dpi/fastdpi.conf:
    max_profiles_serv22=32

    Default value: 32

  2. Create a service 22 profile:
    fdpi_ctrl load profile --service 22 --profile.name limit1 --profile.json '{ "sess_tcp" : 5000, "sess_udp" : 1000, "sess_other" : 100, "sess_total" : 5500 }'
  3. Assign the service to a subscriber:
    fdpi_ctrl load --service 22 --profile.name limit1 --login test_subs

Profile parameters:

Parameter Description
sess_tcp Maximum number of concurrent TCP sessions
sess_udp Maximum number of concurrent UDP sessions
sess_other Maximum number of concurrent sessions of other protocols
sess_total Maximum total number of concurrent sessions

A limit that is not set or set to zero is not applied. At least one limit must be set in the profile.

Monitoring

The current number of subscriber sessions is displayed by the subs prop show command, in the sessions line:

fdpi_cli subs prop show 10.240.34.56

When a session is refused, a SessionLimit event is generated. Its export is enabled by bit 2 of the reporting_events parameter, see Configuring Export and Template of DPI Traffic Processing Events in IPFIX Format.

Interaction with Service 11 (CG-NAT)

Service 22 checks the limit before a session is created, while service 11 allocates a public port when the session is created. The stricter of the two limits applies: for example, with a limit of 1500 sessions in service 22 and 2000 translations in service 11, the subscriber is limited to 1500 sessions.

The limits of both services must be aligned with each other.