No Slide Title

Download Report

Transcript No Slide Title

Use of erlang in system test of AXD301
Karl Olsson
Erlang distribution
Tools
conf
sssg
xAXE
xMG
OTP test server
dbg
loading of modules
Configuration tool
UNI traffic generator
AXE 10 traffic simulator/generator
Media gateway simulator
Automatic test tool
AXD301
20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
CP
SC
CB
CB
CB
CB
CP
SC
ch
om
stby
CP
SC
CB
control processor,
Unix, erlang
Switch core
Connection board
ATM (32x2Mb/s - 1x2,5 Gb/s)
CE (32xT1 - 124xE1)
FR
MPLS
0 1 2 …
Sy S S
30 31
Si
S S
CP
SC
CB
CB
CB
CB
CP
SC
stby
16
ch
Scalable 10Gb - 160Gb
0-4 CP pairs/subrack
Erlang distribution
20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
CP
SC
CB
CB
CB
CB
CP
SC
10.0.1.3
10.0.1.2
‘axd301@cp1-19’
HUB
‘axd301@cp1-1’
rpc:call/4
erlnode@stpc57
WS (STPC)
10.0.1.254
LAB LAN network
Tools - conf
AXD301 user interfaces
AMS (http)
snmp
NO command line interface
%%% -----------------------------------------------------------------------%%% block_board(Subrack,SlotNo,Type) ->
%%% ok | Other
%%% Input: Subrack integer
%%% SlotNo integer
%%% Type cp1,sc2,clk2,cp19,sc20,clk20,atb,cb
%%% Output: ok | Other
%%% Exceptions:
%%% Description: blocks a board
%%% Example: conf:block_board(1,11,atb).
%%% Example: conf:block_board(1,19,cp19).
%%% -----------------------------------------------------------------------block_board(Subrack,SlotNo,Type) ->
{EmSlot,PiuSlot,Side} = case Type of
cp1 -> {1,1,1}; sc2 -> {2,2,1}; clk2 -> {2,2,2};
cp19 -> {19,19,1}; sc20 -> {2,20,1}; clk20 -> {2,20,2};
atb -> {SlotNo,SlotNo,1}; cb -> {SlotNo,SlotNo,2}
end,
SubmitFunctions = {eqmLmsPIU,submit_open_piu},
SubmitRequests =
[{action,eqmMi,piuTable,[Subrack,EmSlot,PiuSlot,Side],null,
[{"Block",7,2,null}],
[{errors,rollback}]}],
SubmitProperties = [{pageSource,{eqmLmsPIU,open_piu}},{postAction,0}],
rpc_call(SubmitFunctions,SubmitRequests,SubmitProperties,
"block_board ~p ~p ~p Successfull",[Subrack,SlotNo,Type],
"block_board ~p ~p ~p UNSUCCESSFULL",[Subrack,SlotNo,Type],
"block_board").
Tools - sssg
sssg
WS with SUN ATM board
sssg1
sssg1@sahix
UNI
AXD301
‘axd301@cp1-1’
UNI
‘axd301@cp1-19’
sssg2
sssg2@sahiy
HUB
STPC
erlnode@stpc
LAB LAN network
ATM
ethernet
Engine Integral
RSS
PABX
proprietary
DSS1/QSIG
AXE 10
ISUP/C7
AXE 10
other
Circuit emulation
ATM
ethernet
AXE 10
TeS
RSS
PABX
propriety
DSS1/QSIG
other
PC
AXD301
ML
ER
AXD301
MG
AXD301
MG
LAB LAN network
STPC
xAXE
Tools - xAXE, xMG
xAXE@stpcx
AXE 10
ethernet
Control link H.248 (ATM)
Circuit emulation
ATM
HUB
xMG
ML
xMG@sahix
MG1
ML Mediation logic
MG Media gateway
MG2
xMG
WS with SUN ATM board
OTP test server
‘axd301@cp1-1’
‘axd301@cp1-19’
HUB
STPCx
‘axd301@cp2-1’
‘axd301@cp1-1’
‘axd301@cp1-19’
‘axd301@cp1-19’
rpc:call/4
rpc:call/4
gen_tcp
testserver@stpcx
slave@stpcy
HUB
STPCy
LAB LAN network
testserver@stpcml
xAXE@stpcml
STPCml
ethernet
Control link H.248
Circuit emulation
ATM
ML
Distribution
conf/snmp
sssg
xAXE
xMG
Erlang logs
‘axd301@cp1-1’
xMG@sahiy
‘axd301@cp1-19’
xMG
sssg@sahix
sssg
MG1
STPCmg1
STPCmg2
LAB LAN network
MG2
‘axd301@cp1-1’
‘axd301@cp1-1’
‘axd301@cp1-19’
‘axd301@cp1-19’
slave@stpcmg1
slave@stpcmg2
STPCmg2