Project

General

Profile

Bug #4770

NS2: create a new vty interface

Added by lynxis 2 months ago. Updated 10 days ago.

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

0%

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

History

#1 Updated by lynxis 2 months ago

  • Description updated (diff)

#2 Updated by lynxis 2 months 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

#3 Updated by lynxis about 1 month ago

  • Description updated (diff)

#4 Updated by laforge about 1 month 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.

#5 Updated by laforge about 1 month 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.

#6 Updated by lynxis about 1 month 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.

#7 Updated by laforge 15 days ago

  • Category set to libosmogb

#8 Updated by laforge 15 days 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.

#9 Updated by lynxis 10 days ago

  • Status changed from New to In Progress

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)