Project

General

Profile

Bug #3281

Add ctrl interface to osmo-gbproxy

Added by daniel 7 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
osmo-gbproxy
Target version:
-
Start date:
05/22/2018
Due date:
% Done:

100%

Spec Reference:

Description

We want to be able to query the NS status from osmo-gbproxy. Basically have the information from show ns exported:

OsmoGbProxy> show ns 
Encapsulation NS-UDP-IP     Local IP: 0.0.0.0, UDP Port: 23000
Encapsulation NS-FR-GRE-IP  Local IP: 0.0.0.0
NSEI   110, NS-VC   110, Remote: BSS , ALIVE UNBLOCKED, UDP          127.0.0.1:23001
NSEI 18025, NS-VC 18025, Remote: SGSN, ALIVE UNBLOCKED, UDP     151.80.237.229:23000

Especially whether NSEI/NS-VS is dead/alive and (un)blocked

History

#1 Updated by daniel 6 months ago

  • Status changed from New to In Progress
  • Assignee changed from sysmocom to daniel
  • % Done changed from 0 to 70

Submitted in https://gerrit.osmocom.org/#/c/osmo-sgsn/+/9402

The ns-state command now replies with nsei, nsvci, local state, role, remote state of all NSVCs.
The gbproxy-state command replies with nsei, bvci, mcc, mnc, lac, rac, and state of each peer.

If there are no entries an error is returned.

daniel@adrastea:~/scm/osmo/osmo-python-tests/scripts(master) » ./osmo_ctrl.py -d 127.0.0.1 -p 4263 -g ns-state
Got message: b'GET_REPLY 23 gb-status 101,101,DEAD,BLOCKED,SGSN,DEAD,UNBLOCKED;'
daniel@adrastea:~/scm/osmo/osmo-python-tests/scripts(master) » ./osmo_ctrl.py -d 127.0.0.1 -p 4263 -g gbproxy-state
Got message: b'ERROR 23 No peers found'

#2 Updated by daniel 6 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 70 to 100

The implementation of the commands changed:

The two commands are now named "nsvc-state" and "gbproxy-state"

The "nsvc-state" command replies with nsei, nsvci, local state, role, remote state of all NSVCs. The "gbproxy-state" command replies with nsei, bvci, mcc, mnc, lac, rac, and state of each peer. Entries are separated by a newline '\n' character. If there are no entries an empty list is returned. This behaviour is similar to that of the subscriber-list-active-v1 command in osmo-sgsn.

$ ./osmo_ctrl.py -d 127.0.0.1 -p 4263 -g nsvc-state Got message: b'GET_REPLY 23 nsvc-state 101,101,DEAD,BLOCKED,SGSN,DEAD,UNBLOCKED\n'
$ ./osmo_ctrl.py -d 127.0.0.1 -p 4263 -g gbproxy-state Got message: b'GET_REPLY 4871085901306801158 gbproxy-state '

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)