LS1021ATSN Switch: how does Netconf communicate with SJA1105 Tool ? Is there any documentation about it ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LS1021ATSN Switch: how does Netconf communicate with SJA1105 Tool ? Is there any documentation about it ?

819件の閲覧回数
darianb_
Contributor I

I would like to find out how Netconf Commands are read from the SJA1105 Tool.

ラベル(1)
0 件の賞賛
1 返信

523件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Hello Darian Biastoch,

XML files generated with sja1105-tool and apply them remotely using NETCONF.

[ubuntu] $ netopeer-cli
netconf> connect --port 830 --login root 192.168.15.11 # board1
netconf> # press Enter for no password
# You may need to run this, in case you are using the candidate
# datastore (here we are not) and it becomes locked.
# See 5.5.5.
# netconf> discard-changes
netconf> edit-config --config board1-{policing|scheduling}.xml running
netconf> get-config running
netconf> copy-config --source running startup
netconf> disconnect
netconf> connect --port 830 --login root 192.168.15.12 # board2
netconf> # press Enter for no password
# You may need to run this, in case you are using the candidate
# datastore (here we are not) and it becomes locked.
# See 5.5.5.
# netconf> discard-changes

 

board1-policing.sh:

#!/bin/sh
sja1105-tool config default ls1021atsn
sja1105-tool config modify mac-config[4] vlanprio 7
sja1105-tool config modify vlan-lookup-table[0] tag_port 0b00010
sja1105-tool config modify l2-policing-table[$((4*8+7))] rate 12800
sja1105-tool config modify general-parameters-table vllupformat 0
sja1105-tool config modify vl-lookup-table entry-count 1
# VL 0 == flow F1 (source board1, dest ubuntu)
# Save it from being rate-constrained by the L2 policer
sja1105-tool config modify vl-lookup-table[0] iscritical 1
sja1105-tool config modify vl-lookup-table[0] macaddr 68:05:CA:39:CD:CA
sja1105-tool config modify vl-lookup-table[0] vlanid 0
sja1105-tool config modify vl-lookup-table[0] vlanprio 7
sja1105-tool config modify vl-lookup-table[0] port 4
sja1105-tool config modify vl-lookup-table[0] destports 0 # iscritical == 1, so unused

sja1105-tool config modify vl-forwarding-table entry-count 1
# VL 0 (flow F1) - set egress priority queue to 5
sja1105-tool config modify vl-forwarding-table[0] type 0 # rate-constrained
sja1105-tool config modify vl-forwarding-table[0] priority 7 # does this override l2-forwarding-table.vlan_pmap?
sja1105-tool config modify vl-forwarding-table[0] partition 0 # see partspc below
sja1105-tool config modify vl-forwarding-table[0] destports 0b00010 # forward to port 1
sja1105-tool config modify vl-policing-table entry-count 1
# VL 1 Policer entry must be filled. Define as rate-constrained, but disable BAG check.
sja1105-tool config modify vl-policing-table[0] type 0 # How can this disagree with vl-forwarding-table[0].type?
sja1105-tool config modify vl-policing-table[0] maxlen 1518
sja1105-tool config modify vl-policing-table[0] sharindx 0
sja1105-tool config modify vl-policing-table[0] bag 0
sja1105-tool config modify vl-policing-table[0] jitter 0
sja1105-tool config modify vl-forwarding-parameters-table entry-count 1
sja1105-tool config modify vl-forwarding-parameters-table partspc "[200 0 0 0 0 0 0 0]"
sja1105-tool config modify vl-forwarding-parameters-table debugen 0

sja1105-tool config save board1-policing.xml
sja1105-tool config upload

 

board1-scheduling.sh:

#!/bin/sh
sja1105-tool config default ls1021atsn
# Flows F1 and F4 - source port 4, vlanprio 5
# F1 will get special treatment as VL 0
sja1105-tool config modify mac-config[4] vlanprio 5
sja1105-tool config modify vlan-lookup-table[0] tag_port 0b00010

sja1105-tool config modify general-parameters-table vllupformat 0
sja1105-tool config modify vl-lookup-table entry-count 1
# VL 0 == flow F1 (source board1, dest ubuntu)
# source port 2, vlanprio 5
sja1105-tool config modify vl-lookup-table[0] iscritical 1
sja1105-tool config modify vl-lookup-table[0] macaddr 68:05:ca:39:cd:ca
sja1105-tool config modify vl-lookup-table[0] vlanid 0
sja1105-tool config modify vl-lookup-table[0] vlanprio 5
sja1105-tool config modify vl-lookup-table[0] port 4
# VL 0 (flow F1)
sja1105-tool config modify vl-forwarding-table entry-count 1
sja1105-tool config modify vl-forwarding-table[0] type 0 # rate-constrained
sja1105-tool config modify vl-forwarding-table[0] priority 7
sja1105-tool config modify vl-forwarding-table[0] partition 0 # see partspc below
sja1105-tool config modify vl-forwarding-table[0] destports 0b00010 # forward to port 1
sja1105-tool config modify vl-policing-table entry-count 1
sja1105-tool config modify vl-policing-table[0] type 0
sja1105-tool config modify vl-policing-table[0] maxlen 2043
sja1105-tool config modify vl-policing-table[0] sharindx 0
sja1105-tool config modify vl-policing-table[0] bag 0
sja1105-tool config modify vl-policing-table[0] jitter 0

sja1105-tool config modify vl-forwarding-parameters-table entry-count 1
sja1105-tool config modify vl-forwarding-parameters-table partspc "[300 0 0 0 0 0 0 0]"
sja1105-tool config modify vl-forwarding-parameters-table debugen 0
sja1105-tool config modify l2-forwarding-parameters-table part_spc "[629 0 0 0 0 0 0 0]"
sja1105-tool config modify schedule-table entry-count 3
# Egress port is 1 (towards board2)
sja1105-tool config modify schedule-table[0] destports 0b00010
sja1105-tool config modify schedule-table[1] destports 0b00010
sja1105-tool config modify schedule-table[2] destports 0b00010
sja1105-tool config modify schedule-table[0] resmedia_en 1
sja1105-tool config modify schedule-table[1] resmedia_en 1
sja1105-tool config modify schedule-table[2] resmedia_en 1
# TAS: Flow F1 (prio 7) gets 5ms = 5000000 / 200 = 25000
# Flow F4 (prio 5) gets 2ms = 2000000 / 200 = 10000
# Extra empty 3ms = 3000000 / 200 = 15000
sja1105-tool config modify schedule-table[0] resmedia 0b01111111
sja1105-tool config modify schedule-table[1] resmedia 0b11011111
sja1105-tool config modify schedule-table[2] resmedia 0b11111111
sja1105-tool config modify schedule-table[0] delta 25000
sja1105-tool config modify schedule-table[1] delta 10000
sja1105-tool config modify schedule-table[2] delta 15000

# This is mostly boilerplate, but needs to be done
sja1105-tool config modify schedule-entry-points-table entry-count 1
sja1105-tool config modify schedule-parameters-table entry-count 1
sja1105-tool config modify schedule-parameters-table[0] subscheind "[2 2 2 2 2 2 2 2]"
sja1105-tool config modify schedule-entry-points-parameters-table entry-count 1
sja1105-tool config modify schedule-entry-points-parameters-table[0] clksrc 1
sja1105-tool config save board1-scheduling.xml
sja1105-tool config upload


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛