Project

General

Profile

Actions

Bug #4770

closed

NS2: create a new vty interface

Added by lynxis about 1 year ago. Updated 11 months ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
libosmogb
Target version:
-
Start date:
09/29/2020
Due date:
% Done:

100%

Spec Reference:

Description

The old vty interface does not support multiple binds and mixed IP based NS with ipa style and non ipa style.

Create a new vty interface which supports

- FR support
- FR/GRE support
- IP-SNS (define which binds it will use)
- IP-NS-alive (static configuration)
- IP-NS-reset/unblock/block

configuration examples:

1.1. sgsn with udp bind - ipa style
1.2. sgsn with udp bind - with persistent nsvc
1.3. sgsn with sns listen on all interfaces
1.4. sgsn with sns listen on specific interface
1.5. sgsn with fr

2.1. pcu with binds to use when receiving info ind
2.2. pcu with static configuration

Actions #1

Updated by lynxis about 1 year ago

  • Description updated (diff)
Actions #2

Updated by lynxis about 1 year ago

some examples to create a draft

;; 1.1. sgsn with udp bind - dynamic with ipa style

ns
 bind udp some
  listen 192.168.0.2 23000
  allow-block-reset-nsvci
;; 1.2. sgsn with udp bind - no dynamic connection - only vty configured NSE (persistent)

ns
 bind udp some
  listen 192.168.0.2 23000
 nsei 1001
  nsvc udp some 10.0.1.2 23000
;; 1.2. sgsn with udp bind - no dynamic connection - only vty configured NSE (persistent)

ns
 bind udp some
  listen 192.168.0.2 23000
 bind udp other
  listen 192.168.1.2 23000
 nsei 1001
  ;; will use all bindings
  nsvc udp * 10.0.1.2 23000
 nsei 1002
  nsvc udp other 10.0.1.3 23000
  nsvc udp some 10.0.1.3 23000
;; 1.3. sgsn with sns listen on all interfaces
ns
 bind udp some
  listen 192.168.0.2 23000
  allow-sns group all
 bind udp other
  listen 192.168.1.2 23000
  allow-sns group all
;; 1.4. sgsn with sns listen on specific interface

ns
 bind udp some
  listen 192.168.0.2 23000
  allow-sns group alice
 bind udp other
  listen 192.168.1.2 23000
  allow-sns group bob
;; 1.5. sgsn with fr

fr
 link hdlc1
 link hdlc2

ns
 nsei 1002
  nsvc fr hdlc1 dlci 10
  nsvc fr hdlc2 dlci 10
;; 2.1. pcu with binds to use when receiving info ind
;; 2.2. pcu with static configuration
Actions #3

Updated by lynxis about 1 year ago

  • Description updated (diff)
Actions #4

Updated by laforge about 1 year ago

  • Assignee set to lynxis

lynxis wrote:

;; 1.3. sgsn with sns listen on all interfaces

ns
 bind udp some
  listen 192.168.0.2 23000
  allow-sns group all
 bind udp other
  listen 192.168.1.2 23000
  allow-sns group all

I'm not sure I fully understand this. You are 'listening' UDP to a specific IP/port, but then your description says it is listening to all interfaces? Please elaborate.

Actions #5

Updated by laforge about 1 year ago

It looks in general good to me, I jsut don't understand the allow sns-group concept yet, I guess.

The "FR" part looks good in particular.

Actions #6

Updated by lynxis about 1 year ago

;; 1.3. sgsn with sns listen on all interfaces

It's vague. It should mean listen on all configured interfaces. So it should use both defined binds.
I'm unsure how we should handle 0.0.0.0 binds mixed with more specific binds.

Actions #7

Updated by laforge about 1 year ago

  • Category set to libosmogb
Actions #8

Updated by laforge about 1 year ago

  • Priority changed from Normal to Urgent

FYI: I implemented a minimal hack in 'I4ad454320d0a03e81b399f55e8bd0ee57402dad0' to allow me to configure multiple NS-VC within one FR NSE for testing. Getting to a proper new VTY interface seems rather urgent to me by now. Please look at this with high priority.

Actions #9

Updated by lynxis about 1 year ago

  • Status changed from New to In Progress
Actions #10

Updated by lynxis 11 months ago

  • % Done changed from 0 to 90
Actions #11

Updated by lynxis 11 months ago

the big patch has been merged. The vty tests are missing.

Actions #12

Updated by lynxis 11 months ago

There are simple vty doc tests.

Actions #13

Updated by lynxis 11 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)