Вы находитесь на странице: 1из 80

v.1.9.

0
Traffic Switch

2014 SwitchRay Inc.


, SBC

Traffic Switch

1.9.0

15.12.2014

SwitchRay Inc.
.

, , SwitchRay Inc.
SwitchRay Inc. .
-
, , , ,
, ,
SwitchRay Inc.
,
.
, ,
/ ,
. SwitchRay Inc.
.
, ,
,
, ,
,
. ,
,
.

603093, . , . , 23.
.:+7 (831) 282 27 77, : +7 (831) 282 27 79
www.switchray.ru

Traffic Switch

1.1
................................................................................................................................... 6
1.2
................................................................................................................................... 6
1.3
...................................................................................................................................

6
1.4
...................................................................................................................................
, ,
6
1.5
...................................................................................................................................

2.1
...................................................................................................................................

9

3 Traffic Switch

11

3.1
...................................................................................................................................
Traffic Switch
11
3.2
...................................................................................................................................
Traffic Switch
11
3.3
...................................................................................................................................
Traffic Switch
13
3.4
................................................................................................................................... 13
3.5 -
...................................................................................................................................

13
3.6
...................................................................................................................................
Phoenix
14
3.7
...................................................................................................................................
StateStore
14

Traffic Switch

15

4.1
...................................................................................................................................
Traffic Switch
15
4.1.1
.....................................................................................................................................................................
Linux
15
4.1.2
.....................................................................................................................................................................

15
4.1.3
.....................................................................................................................................................................

16
4.1.4
.....................................................................................................................................................................

17
4.1.5
.....................................................................................................................................................................

17
4.1.6
.....................................................................................................................................................................

18

4.2
...................................................................................................................................
Traffic Switch
18

,5 Traffic Switch

20

Traffic Switch

21

6.1
...................................................................................................................................
phoenix.conf
21
6.1.1 .....................................................................................................................................................................
management
21
6.1.2 .....................................................................................................................................................................
phoenix
21
6.1.3 .....................................................................................................................................................................
statestore
22
6.1.4 .....................................................................................................................................................................
load
22

6.2
...................................................................................................................................
system.conf
23

2014 SwitchRay Inc.

Traffic Switch

6.2.1
.....................................................................................................................................................................
system.conf
23
6.2.2
.....................................................................................................................................................................

24
6.2.2.1
Traffic Sw itch
...........................................................................................................................................................................
24
6.2.2.2 7-
........................................................................................................................................................................... 25
6.2.2.3

...........................................................................................................................................................................
26
6.2.3
.....................................................................................................................................................................

27
6.2.3.1
Traffic Sw itch
...........................................................................................................................................................................
27
6.2.3.2

...........................................................................................................................................................................
27
6.2.4
.....................................................................................................................................................................
Traffic Sw itch
28
6.2.4.1

...........................................................................................................................................................................
29

.........................................................................................................................................................
"common"
29

.........................................................................................................................................................
"controllink"
30
6.2.4.2

...........................................................................................................................................................................
30
6.2.4.3

...........................................................................................................................................................................
32
6.2.4.4
-
...........................................................................................................................................................................
33
6.2.4.5

...........................................................................................................................................................................
34
6.2.4.6
generic
...........................................................................................................................................................................
36
6.2.4.7
-7
...........................................................................................................................................................................
37
6.2.4.8

...........................................................................................................................................................................
37
6.2.4.9

...........................................................................................................................................................................
38

7 Traffic Switch

40

7.1
...................................................................................................................................

40

42

8.1 TS
...................................................................................................................................

42
8.1.1
.....................................................................................................................................................................
SIP H.323-
42
8.1.2
.....................................................................................................................................................................

43

8.2
...................................................................................................................................

44
8.2.1 ,
.....................................................................................................................................................................
TS
44
8.2.2 ,
.....................................................................................................................................................................
-
46

47

10

48

10.1
...................................................................................................................................

48
10.2
...................................................................................................................................

48
10.3
...................................................................................................................................

49
10.4
...................................................................................................................................

49

11

50

11.1
................................................................................................................................... 50
11.1.1
.....................................................................................................................................................................

50
11.1.1.1

...........................................................................................................................................................................
50
11.1.1.2

...........................................................................................................................................................................
51
11.1.1.3

...........................................................................................................................................................................
52
11.1.1.4

...........................................................................................................................................................................
52
11.1.2
.....................................................................................................................................................................
TS
54

2014 SwitchRay Inc.

Traffic Switch

11.1.2.1 ...........................................................................................................................................................................
TS
54
11.1.2.2
TS
...........................................................................................................................................................................
54
11.1.2.3
TS
...........................................................................................................................................................................
56

11.2
...................................................................................................................................

56
11.2.1
.....................................................................................................................................................................
TS
57
11.2.1.1

...........................................................................................................................................................................
57
11.2.1.2

...........................................................................................................................................................................
57
11.2.1.3

...........................................................................................................................................................................
58
11.2.1.4

...........................................................................................................................................................................
58
11.2.1.5
-7
...........................................................................................................................................................................
59
11.2.1.6

...........................................................................................................................................................................
59
11.2.2
.....................................................................................................................................................................
email
61
11.2.2.1
TS
...........................................................................................................................................................................
62
11.2.2.2

...........................................................................................................................................................................
63

11.3
...................................................................................................................................
SNMP
63
11.3.1 Traffic Sw
.....................................................................................................................................................................
itch SNMP-
63
11.3.2 MIB-
.....................................................................................................................................................................
Traffic Sw itch
63
11.3.3
.....................................................................................................................................................................
SNMP
64
11.3.4 .....................................................................................................................................................................
SNMP
65
11.3.5
.....................................................................................................................................................................
SNMP-
66
11.3.5.1
snmptrapd
...........................................................................................................................................................................
66
11.3.5.2
mvts3g-mail SNMP-
...........................................................................................................................................................................
66

12

Traffic Switch

68

12.1
...................................................................................................................................
Phoenix
68
12.1.1
.....................................................................................................................................................................
phoenix.log
68
12.1.2
.....................................................................................................................................................................
TS /var/log/syslog
68
12.1.3
.....................................................................................................................................................................
TS
69

12.2
...................................................................................................................................
TS
69
12.2.1
.....................................................................................................................................................................
TS
70
12.2.2
.....................................................................................................................................................................

70
12.2.3
.....................................................................................................................................................................

71

12.3
...................................................................................................................................
rtinfo
71
12.4
...................................................................................................................................

72
12.4.1 .....................................................................................................................................................................
traffic.log phoenix.log
72
12.4.2 .....................................................................................................................................................................

73
12.4.3 .....................................................................................................................................................................
X
73
12.4.4
.....................................................................................................................................................................
traffic.log
74
12.4.5 .....................................................................................................................................................................
rtinfo
74

13

. Traffic Switch

2014 SwitchRay Inc.

75

6 | Traffic Switch

1
1.1
Traffic Switch,
.

1.2
- (VoIP),
, ,
, , .
, UNIX-
.

1.3
.

,
.

#> /etc/init.d/mvts3g-server-pro
restart

Linux.

local5.* -/var/log/mvts3g/phoenix.log


Switch Linux.

Traffic

Name

, .

,
,
-, .

1.4 , ,

, , ,
, , IP-
. .

2014 SwitchRay Inc.

| 7

1.5

2014 SwitchRay Inc.

ARQ

Admission Request.

ASR

Answer Seizure Ratio.

CIDR

Classless Inter-Domain Routing, .

CPS

Calls per second. .

DBMS

Database management system. ().

H.323

ISUP

ISDN User Part.


.

LRQ

Location Request.

M3UA

Message Transfer Part 3 User Adaptation Layer. -7.

MGCP

Media Gateway Control Protocol. -.

MTA

Mail Transfer Agent. .

RADIUS

Remote Authentication Dial-In User Service.


.

RAS

Registration, Admission and Status. H.323,


.

RFC

Request For Comments.


,
, .

RPS

Registrations per second. .

SIGTRAN

( SIGnaling TRANsport) ,
VoIP.

SIP

Session Initiation Protocol. , IP.

SIP-I / SIP-T

SIP,
, -7.

SMTP

Simple Mail Transfer Protocol.

SNMP

Simple Network Management Protocol.


( , TCP/IP).

TMngr

Traffic Manager. .
,
.
-.

TS

Traffic Switch. .

VoIP

Voice over Internet Protocol. (IP).

8 | Traffic Switch

.
" ".

2014 SwitchRay Inc.

| 9

2
IP-,
. (firewall)
:
(control links) TS , ,
. IP ;
, ,
;
TCP- (9000) ;
telnet , (
SwitchRay Inc. );
SSH , (
SwitchRay Inc. );

2.1
, (
, ).

TCP

22

SSH-

TCP

1720

H.323,
H.225

,

.
.

TCP


1024 65535

H.323,
H.245

TCP-

,

( logic).
.

1719

RAS-

,

.
.

UDP

5060

SIP

,

.
.

UDP


1024 65535

RTP, -

TCP

UDP

2014 SwitchRay Inc.

42001

10 | Traffic Switch


-. ,

,
-.

TCP-,
.

2014 SwitchRay Inc.

Traffic Switch | 11

3 Traffic Switch
Traffic Switch (TS) . Traffic Switch
SIP, H.323, SIP-T/I ITU-ISUP,
. TS
(Traffic Manager).

3.1 Traffic Switch


Traffic
Switch:
SIP (RFC 3261) H.323 v2-v4,
;
ITU ISUP-R SIP-I/T;
(G.729, G.729A, G.729B, G.729AB, G.723.1, G711A-Law,
G.711-Law, GSM FR, Speex, iLBC, AMR NB, G.726, G.722, G.722.1, AMR-WB/G.722.2, Opus)
;
-,
;
SIP H.323 H.261, H.263, H.264 (passthrough);
7 M3UA;
- 7 MGCP;
Audiocodes Mediant-2000, -3000, 5000, ITG, -, Quintum Tenor-DX, Tenor-CMS, Zyxel MSAP2000;

;
;
.
TS
v.1.9.0.

3.2 Traffic Switch


Traffic Switch (nodes),
:
(management node)
TS, , ,
.
(balancer node) H.323- SIP-.

. Traffic Manager

.
ASR
.
(signaling node)
SIP/H.323/SIP-T/SIP-I, ( ),
( )

2014 SwitchRay Inc.

12 | Traffic Switch

.
- (media node) ,

.
, .
(command line node) telnet-,
telnet-.
(scripting node)
.
-7 (SS7 Call Agent node) 7.
M3UA, MGCP SIGTRAN/MGCP, ISUP-R.
generic (generic node) TS
.
(push node)
- iOS Android.
- ,
, .

-. .
(synchro node) .

. TS
.

2014 SwitchRay Inc.

Traffic Switch | 13

3.3 Traffic Switch


Traffic Switch.

TS , ,
. , CPS
. , ,
- .

3.4
Traffic Switch
. . , ..
Phoenix .

IP-.

3.5 -
Traffic Switch
Debian GNU/Linux 6.x (Squeeze) 7.x (Wheezy) 64- 32-
. Traffic Switch ,
,
.
TS v.1.9.0.

2014 SwitchRay Inc.

14 | Traffic Switch

3.6 Phoenix
Phoenix Traffic Switch.
TS Phoenix.
Phoenix :
, Traffic Switch;
IP- ;
;
StateStore.

3.7 StateStore
StateStore TS. ,
- ,
.
StateStore . StateStore
, TS.

2014 SwitchRay Inc.

Traffic Switch | 15

4 Traffic Switch
4.1 Traffic Switch
Traffic Switch:
1. Linux.
2. .
3. .
4. .
5. .
6. .
. - .

4.1.1 Linux
Linux 3,6 ,
64- , 64- .
, 64-, :
#> sudo cat /proc/cpuinfo

lm.
:
1. 64- :
#> sudo aptitude install linux-image-amd64 irqbalance

"Would you like to balance the IRQs once?" "No".


2. :
#> reboot

3. , , 1.

4.1.2

(MTA mail transfer agent), sendmail (. http://www.sendmail.org/
releases/).
MTA Exim 4 TS,
.
SMTP-. , .
SMTP-, Exim 4,
MTA () .
Exim 4 :

2014 SwitchRay Inc.

16 | Traffic Switch

#> aptitude install exim4

MTA Exim, .
Exim :
#> dpkg-reconfigure exim4-config

. 7 Enter
SMTP-,
. Exim .
, , Exim
OC Debian :
#> update-rc.d -f exim4 remove

:
#> /etc/init.d/exim4 stop

Exim :
#> update-rc.d -f exim4 enable

4.1.3
:
/etc/apt/source.list
/etc/apt/sources.list.d/*.list
,
Debian (http://www.debian.org/mirror/list)
. , ,
.
Debian, .
,
. :
http://ftp.debian.org/debian
http://http.debian.net/debian
ftp://ftp.us.debian.org/debian

. ,
extended-list-rep:
#> ./rtu-rus-1.9.0-xx.sh extended-list-rep < >

:
#> ./rtu-rus-1.9.0-40.sh extended-list-rep /tmp/ext_rep.txt

2014 SwitchRay Inc.

Traffic Switch | 17

4.1.4
, TS MySQL

(Timezone). ntpd.
( - root):
1. , :
#> aptitude install ntp ntpdate

2. :
#> ntpdate pool.ntp.org

3. ntpd:
#> /etc/init.d/ntp restart

ntpd. ntpdate Traffic


Switch .

, (. , Traffic
Switch).

4.1.5
1. TCP- (9000) .
. /etc/network/
interfaces :
pre-up /sbin/iptables -A INPUT -s [ IP_address ] -p tcp -m tcp --dport 9000 -j
ACCEPT
pre-up /sbin/iptables -A INPUT -p tcp -m tcp --dport 9000 -j REJECT
pre-down /sbin/iptables -D INPUT -s [ IP_address ] -p tcp -m tcp --dport 9000 j ACCEPT
pre-down /sbin/iptables -D INPUT -p tcp -m tcp --dport 9000 -j REJECT

2. /etc/ssh/sshd_config, :
AllowUsers support@192.162.88.128/26 support@192.162.89.0/24customer@0.0.0.0

customer@0.0.0.0 ,
.
3. SSH root:
# Authentication
#LoginGraceTime 2m
PermitRootLogin no
#StrictModes yes
#MaxAuthTries 6

4. SSH:

2014 SwitchRay Inc.

18 | Traffic Switch

#> /etc/init.d/sshd restart

. .

4.1.6
1. hostname (, localhost):
#>
#>
#>
#>

nano /etc/hostname
nano /etc/hosts
/etc/init.d/hostname.sh start
reboot

2. support ( )
SwitchRay Inc.:
#> adduser support

3. sudoers ( sudo):
#> visudo -f /etc/sudoers

:
support ALL=(ALL) ALL

4. customer :
#> adduser customer

4.2 Traffic Switch


rtu-rus-1.9.0-xx.sh.
.
, Traffic Switch
.
Traffic Switch:
1. :
#> chmod +x rtu-rus-1.9.0-xx.sh

2. :
#> ./rtu-rus-1.9.0-xx.sh ts

,
extended-list-rep (.
).
"yes". Citadel.
3. TS:
#> ./rtu-rus-1.9.0-xx.sh examples

/etc/mvts3g/examples.

2014 SwitchRay Inc.

Traffic Switch | 19

4. /etc/default/mvts3g-server-pro.
5. AUTOSTART no yes:
DAEMON_OPTS="-f -c /etc/mvts3g/phoenix.conf"
AUTOSTART=yes

// (TS)
.
6. /etc/default/mvts3g-server-pro.
7. , rsyslogd:
#> service rsyslog restart

. TS.

2014 SwitchRay Inc.

20 | Traffic Switch

5 , Traffic Switch
Traffic Switch, , mvts3g-server-pro.
Traffic Switch :
#> /etc/init.d/mvts3g-server-pro start

Traffic Switch :
#> /etc/init.d/mvts3g-server-pro stop

Traffic Switch :
#> /etc/init.d/mvts3g-server-pro restart

: "/etc/def ault/mvts3g-server-p ro"


'AUTOSTART' 'yes'.

2014 SwitchRay Inc.

Traffic Switch | 21

6 Traffic Switch
Traffic Switch:
1. , , USB- TS:
USB- (main
management node).
USB- (backup
management node).
2. TS phoenix.conf load ,
.
3. TS system.conf ,
TS.
4. TS .
5. TS .
6. config ( . ).

6.1 phoenix.conf
/etc/mvts3g/phoenix.conf ,
. Phoenix ,
.
phoenix.conf , /etc/mvts3g/
examples ( , , . Traffic Switch).
phoenix.conf.
() Traffic Switch (. ,
Traffic Switch).

6.1.1 management
IP- :
management primary=192.168.133.113:9000 backup=192.168.34.53:9001

, IP-/
. .
: load.
,
. , IP-
. TS , backup.

6.1.2 phoenix
Phoenix:
phoenix address=127.0.0.1:5000

2014 SwitchRay Inc.

22 | Traffic Switch

:
address IP- Phoenix.

:
timeout, count sleep
. timeout ( .) count
, ( .) sleep.
: 7000 (timeout), 5 (count), 2000 (sleep).
cstimeout , Phoenix

,
. : 21000.
wdtimeout , ,

Phoenix, . : 30000.
: Phoenix,
wdtimeout. ,
wdtimeout 40000 .
wdsleep

Phoenix SIGSEGV. ,
SIGKILL. : 10000.
, wdsleep
wdtimeout.
: load.

6.1.3 statestore
StateStore:
statestore db=/var/log/mvts3g/phoenix.db trafficlog=traffic.log

:
db phoenix.db, .

.
trafficlog traffic.log.
, statestore .
: load.

6.1.4 load
< > <
>:
load type=< > name=< > [file=<>]

:
load type=signaling name=signaling-1

load :

2014 SwitchRay Inc.

Traffic Switch | 23

:
mode (mode=main)
(mode=backup).
lic (, lic=/etc/mvts3g/licenses).

:
address=127.0.0.1:7000

127.0.0.1:7000 IP- telnet-


Traffic Switch (
Traffic Switch).

6.2 system.conf
/etc/mvts3g/system.conf :
( zone);
( location);
( media, signaling, balancer .);
( balancing);
system.conf
system.conf.
/etc/mvts3g/examples ( , , .
Traffic Switch).
, system.conf,
(primary management node).
config
Traffic Switch ( . ).

6.2.1 system.conf
system.conf ,
:
,
. .
.
.
.
: , //,
,
/* */, , ;

include. . ,
include . , system1.conf :
include "/etc/mvts3g/system-1.zone.conf";
include "/etc/mvts3g/system-1.balancer.conf";
include "/etc/mvts3g/system-1.signaling.conf";

2014 SwitchRay Inc.

24 | Traffic Switch

include "/etc/mvts3g/system-1.media.conf";
...

system.conf:

/

{.
};

zone
{
zone "local"
{
"127.0.0.0/8";
};
zone "intranet"
{
"194.112.160.0/24";
};
};

allow_chap "yes";

"127.0.0.0/8";

/*
*/

/* Use this section to configure


signaling nodes */

include /
;

include /etc/mvts3g/system1.zone.conf;

6.2.2
Traffic Switch
7-

6.2.2.1 Traffic Switch


IP-, Traffic Switch. :

IP-
TS ( )

,
, .
. ,
TS :

2014 SwitchRay Inc.

Traffic Switch | 25


:
zone_ext1 ;
zone_hosted ;
internal ;
zone_ustelecom .

, TS-1
81.10.1.1 "zone_ext1". IP- 212.173.72.34
, "zone_ext1".
:
IP-;
- , ,
(), ..
, TS ,
.

6.2.2.2 7-
7 7-. 7-
, 7,
. , 7- 7, 7-,
7-.

2014 SwitchRay Inc.

26 | Traffic Switch

7-
IP- IP-,
TS IP- 7-.

6.2.2.3
:
1. "zone" system.conf.
IP-. IPv4
:
CIDR-, xx.xx.xx.xx/yy, xx.xx.xx.xx , yy
.
IPv4 xx.xx.xx.xx/yy.yy.yy.yy, xx.xx.xx.xx , yy.yy.yy.yy
.
IP- .

"zone":
zone
{

zone "local"

"127.0.0.0/8";

zone "internet"

"212.192.0.0/16";

};

zone "intranet"

"192.168.0.0/16";

};
};

Note: TS local,
127.0.0.1, .
local ,

2014 SwitchRay Inc.

Traffic Switch | 27

, .
2. , IP-, alias 7-,
IP-. IP- 7-. :
zone
{
zone "voip"
{
"192.177.0.0/16";
"213.92.133.0/24";
alias "ss7-zone-1";
alias "ss7-zone-2";
};
};

3. .
4. TS.
5. config ( . ).
6. 1 -
> .
7. 1 - > .
.

6.2.3
Traffic Switch

6.2.3.1 Traffic Switch


Traffic Switch

.

Traffic Switch. , . ,
, "location
TS. , .

6.2.3.2
location
system.conf. ,
TS :
location
{
location " "
{

2014 SwitchRay Inc.

28 | Traffic Switch

zones
{
//
"zone-1";
"zone-2";
};
nodes
{
//
"media-1";
"signaling-1";
};
}
};

TS, / ,
.
location, ,
, TS
.
:
1.
2.
3.
4.
5.

TS .
.
, , .
.
, , , ,
.

, ,
config Traffic Switch ( .
).

(. Traffic Switch),
"location" .

6.2.4 Traffic Switch


system.conf TS :
balancer .
common .
controllink , .
generic generic.
media -.
push .
scripting .
signaling .
ss7 -7.
synchro .
(, system1.signaling.conf). TS:

2014 SwitchRay Inc.

Traffic Switch | 29

[ ]
{
[ ]
[ ] "[ ]"
{
[ ]
};
};

[ ] , , .
system.conf, TS,
.

6.2.4.1
: common
controllink*:
common
{
loglevel "0";
};
controllink
{
zone "test";
port "7050";
};

: ,
"controllink".
6.2.4.1.1

"common"
common , TS.
:

2014 SwitchRay Inc.

loglevel


, ,
-7, (.
TS).

link_send_timeout



, .
100.

10000 .

link_recv_timeout

- 20000 .

, TCP-
,
. 100.

30 | Traffic Switch

link_restore_timeou
t

, TCP
, .
100.

30000 .

link_reconnect_inte
rval

TCP link_restore_timeout,
. 100.

3000 .

link_connect_interv
al

TCP3000 .


, .
100.

: link_send_timeout link_recv_timeout,
TCP-.
, common .
( ),
common,
.
common TS
email TS.
. TS.
6.2.4.1.2

"controllink"
controllink ,
. ( )
port 0, , Linux .

6.2.4.2
:
balancer
{
balancer "balancer-1"
{

common

loglevel "0";

};

controllink

zone "test";

port "7202";

};
ras
{

2014 SwitchRay Inc.

Traffic Switch | 31

address
{
"0.0.0.0";
};
port
"1719";
gkname
"MVTS3G";
allow_md5
"yes";
allow_chap "yes";
allow_plain "yes";
};
sip
{
address
{
"0.0.0.0";
};
port "5060";
proxying_balancing "yes";
external_authorization "no";
};
h323
{
address
{
"0.0.0.0";
};
port "1720";
};
};
};

ras , H.323-:
address , IP- ,

RAS-. . SIP H.323-.


port , RAS-.
gkname LRQ/ARQ.
allow_md5, allow_chap, allow_plain .
sip , SIP-:
address , IP- ,

SIP-. IP- 0.0.0.0 SIP-


. . SIP H.323-.
port , SIP-.
proxying_balancing SIP-. : no (
) yes ( ). "yes" "sip" > "address"
IP . ,
SIP- (
302). . SIP H.323-.
realm realm SIP-. ( ):
"HOSTNAME" . 401 realm

2014 SwitchRay Inc.

32 | Traffic Switch

"HOSTADDR" 401 realm IP- . TS

SIP , TS ,
REGISTER.
, , ( )
realm.
user_agent , User-

Agent Server SIP-,


. TS.
(user_agent "";), User-Agent Server
.
external_authorization Traffic Manager ("yes") Traffic Switch

("no"). "yes",
"" (. ).
, -, > RADIUS,
"RFC 4590".
h323 , .323-:
address , IP- ,

H.323-. IP- 0.0.0.0 H.323-


. . SIP H.323-.
port , H.323-.

6.2.4.3
:
signaling "signaling-1"
{

common

loglevel "0";

};
h323
{
address
{
"0.0.0.0";
};
port "1721";
};
sip
{
address
{
"0.0.0.0";
};
port "5061";
};
cdr_recovery "yes";
max_calls_rate "100";
call_rate_alarm_lifetime "60";
use_remote_logic "yes";

2014 SwitchRay Inc.

Traffic Switch | 33

};

h323 , .323-:
address , IP- ,

H.323-. IP- 0.0.0.0 H.323-


. . SIP H.323-.
port , H.323-.
sip , SIP-:
address , IP- ,

SIP-. IP- 0.0.0.0 SIP-


. . SIP H.323-.
port , SIP-.
user_agent , UserAgent Server SIP-, .
TS. (user_agent
"";), User-Agent Server .
CPS :
max_calls_rate CPS .

TS SIGMIPR001 (
).
call_rate_alarm_lifetime SIGMIPR001 .
, , CPS
max_calls_rate. : 60 ( ,
SIGMIPR001 ,
60 ).
use_remote_logic ,
. "yes",
,
, .
, .
"no" ( ) ,
( TS) ,
. . .

6.2.4.4 -
-:
media
{
media "media-1"
{

controllink

zone "test";

port "7800";

};
portrange "10000-14999";
};
};

2014 SwitchRay Inc.

34 | Traffic Switch

portrange UDP- -

.
, .
.
rbtfilesdir ,

. ( ): /etc/mvts3g/.
Note: .wav, , 16 , 8
PCMA/PCMU/PCM.

6.2.4.5
:
scripting
{
scripting "scripting-1"
{
controllink
{

zone "voip";

port"7710";
}
loader_path "voip2";
environment
{
trace_level "3";
dbms_type_master
dbms_name_master
dbms_user_master
dbms_pswd_master
dbms_type_slave
dbms_name_slave
dbms_user_slave
dbms_pswd_slave

"MySQL";
"localhost@rtu";
"****";
"****";

"MySQL";
""localhost@rtu"";
"****";
"****";

};
};
};
loader_path . .

environment :
:
dbms_type_master
dbms_name_master
dbms_user_master
dbms_pswd_master

( "MySQL", ).
"host@database".
.
.

( ,
):
dbms_type_slave ( "MySQL", ).
dbms_name_slave "host@database".

2014 SwitchRay Inc.

Traffic Switch | 35

dbms_user_slave .
dbms_pswd_slave .

config
Traffic Switch ( .
) .
environment (
, ):
CDR-
. mvtsprocdr-restorer ( . v.1.9.0, 16.4
mvtspro-cdr-restorer):
cdr_data_expiration_timeout ( ) CDR-

. .
: 1.
cdr_count_in_transaction CDR- (INSERT) .
: 100.
cdr_table_expiration_timeout ( ) CDR-
. CDR- .
: 10.
max_size_cdr_queue CDR-, .
: 50.
cdr_queue_path CDR-. : /var/spool/
mvts3g/cdr-queues.
TS ,
,
. ,
cdr_queue_path.

(. ):
trace_level . : 3.
trace_file . : mvtsprologic.

:
dbms_reconnect_timeout

. : 1.
dbms_reconnect_tries
. : 3.
TS :
dbms_scan_period TS . :

10.
dbms_time_wait_for_connect ,

, ,
. : 20.
configure_ts_nodes , ,
-, TS. : 0
, 1 . : 1.
,
,
TS.

2014 SwitchRay Inc.

36 | Traffic Switch

RADIUS- ( .
v.1.9.0):
radius_local_socket_address IP-,

RADIUS-. : 0.0.0.0.
radius_servers_port_range ,
RADIUS-. . : 0 (
).
radius_nas_ip_addr NAS-IP-Address Accounting,
RADIUS-. : 127.0.0.1.
:
radius_local_socket_address,
radius_servers_p ort_range

radius_nas_ip _addr
(Accounting Request) .
radius_h323gwaddr_inss7 h323-gw-address,

Accounting -7. : 0.0.0.0.


- ( . ):
sorm_module_version -. : RTU 1.
sorm_reconnect_timeout -, .

: 1.
sorm_keepalive_timeout

(keepalive) -, . : 3.

6.2.4.6 generic
generic:
generic
{
generic "sl-1"
{
controllink
{
zone "voip";
port "9966";
};
};
generic "sl-1-license"
{
controllink
{
zone "voip";
port "9977";
};
};
generic "sp-1"
{
controllink
{
zone "voip";
port "9967";
};

2014 SwitchRay Inc.

Traffic Switch | 37

};
generic "sp-1-license"
{
controllink
{
zone "voip";
port "9978";
};
};
};

, :
"" (sl-1)
"" (sl-1-license)
"" (sp-1)
"" (sp-1-license).
generic
("common" "controllink").

6.2.4.7 -7
-7 system.conf
("common" "controllink"):
ss7
{
ss7 "ss7-1"
{
common
{
loglevel "0";
};
controllink
{
zone "voip";
port "7700";
};
};
};

- 7.
v.1.9.0 (
5.12) , AudioCodes Mediant 2000,
( 5.5.2) .

6.2.4.8

. ("common" "controllink"):
synchro

2014 SwitchRay Inc.

38 | Traffic Switch

};

synchro "synchro-1"
{
controllink
{
zone "test";
port "7711";
};
};

6.2.4.9
:
push
{
push "push-1"
{
common
{
loglevel "1";
};
logic
{
address
{
"10.10.10.47";
};
port "42000";
trusted_address
{
"10.10.10.21";
};
ping_interval "800";
ping_timeout "1200";
};
rtu_clients
{
address
{
"10.10.10.47";
};
port "42001";
allowed_networks
{
"0.0.0.0/0";
};

2014 SwitchRay Inc.

Traffic Switch | 39

ping_interval
ping_timeout
wakeup_attempts
wakeup_interval
};

"180";
"360";
"2";
"8";

};
};

logic , rtu_clients
-.
logic :
address port

. IP- - (
> > -).
trusted_address (
, ).
ping_interval . : 1
3600 , 800 .
ping_timeout ,
, .
: 1 3600 , 1200 .
rtu_clients :
address port -.

IP- -
- - ( >
> -).
allowed_networks -. 0.0.0.0/0
- .
ping_interval -. : 1
3600 , 180 .
ping_timeout , , . :
1 3600 , 360 .
wakeup_attempts TCP- -.
: 1 100, 2.
wakeup_interval -.
: 1 10 , 8 .

2014 SwitchRay Inc.

40 | Traffic Switch

7 Traffic Switch

Traffic Switch. TS,
.
:
1. TS SSH.
2. phoenix.conf, load :
load type=commandline name=commandline-1 address=127.0.0.1:7000

commandline-1 127.0.0.1:7000 IP- ,


telnet-.
3. , IP- , 2, :
#> telnet 0 7000

.

).

(,

7.1
,
.
config < > TS. < >

system.conf (, /etc/mvts3g/system.conf). :
mvts3g|> config /etc/mvts3g/system-1.conf

: < >
( , "system-1.conf ") , "system-1.signaling.conf " .
:
Step 1: Parsing a configuration file...
Step 2: Configuring the system...
Step 3: Done.
<enable|disable> <
>
[] /
, -7
(. TS).
log[level]

< > , /
( ).
<> ( )
. 24 .
:
mvts3g|> log enable signaling-1 30
help .

2014 SwitchRay Inc.

Traffic Switch | 41

logout quit .
exit .

2014 SwitchRay Inc.

42 | Traffic Switch

8
TS

8.1 TS
TS :
( H.323/SIP
). . SIP H.323-
( -,
)

8.1.1 SIP H.323-



. ASR
. (. ).

H.323

LRQ
ARQ



LCF/ACF.



H.323-
( h323)
,
RAS-

(
ras).


.


.



H.323-
( h323)
,
H.323-

(
h.323).

SIP

2014 SwitchRay Inc.

| 43

(
302)


proxying_balancing = "yes",
INVITE

, .

,
302. 302

302.






SIP- (
sip)

(controllink).

(
302)


,
302
proxying_balancing = no,
INVITE

302,
.
INVITE .
TS
.



SIP- (
sip) ,
SIP-

(
sip).

8.1.2

,
.

, TS .
,
, .
TS ,

-, ,
.
, ,
,
.
TS (
, ).

2014 SwitchRay Inc.

44 | Traffic Switch

TS
:
subscriber-logic,
.
service-platform, .
transit-group .
, TS
. , -,
-.
v.1.9.0.

.

8.2
:
1. TS.
2. - .

8.2.1 , TS
TS:
1. ( ,
, -7) system.conf

2014 SwitchRay Inc.

| 45

phoenix.conf. generic.
2. , balancing system.conf:
balancing
{
balancing "transit-group" //
{
// ,
"scripting-1";
"balancer-1";
"signaling-1";
};
balancing "subscriber-logic" // ""
{
// ,
"sl-1";
"balancer-2";
"signaling-2";
};
balancing "service-platform" // ""
{
// ,
"sp-1";
};
};

3. , :
"",
"" .
.
""
, "" (
, generic).
""
"" ( , generic). ""
"" SIP,
.
,
H.323/ -7
.
4. .
5. TS.
6. config ( . ).
7. ,
:
#>
#>
#>
#>

/etc/init.d/rtu-cl-core stop
/etc/init.d/rtu-cl-sp stop
/etc/init.d/rtu-cl-core start
/etc/init.d/rtu-cl-sp start

2014 SwitchRay Inc.

46 | Traffic Switch

8.2.2 , -
- :
1. - > ,
,
, TS.
subscriber-logic.
2. - >
, :



, 1.
3. - , ,
, :

TS. transit-group.

2014 SwitchRay Inc.

| 47

9
(RPS) :
1. /etc/mvts3g/mvts3grps2m.sample.sh ( ).
:
#!/bin/sh
## invocation of this script should be added to /etc/rsyslog.conf as
## :msg,regex,".*[Bb]alancer.*Successfully registered on the management
node.*"
^/usr/bin/mvts3g-rps2m.sh
echo "insert into \"balancer-mvtspro-1.rps_limit\" values (\"1.3.2.4/24\",
30,
\"drop\")" | /usr/bin/mvts3g-sqlclient -a 192.168.131.5:9000 -t 3

2. balancer-mvtspro-1 ,
balancer-moa-m.
3. 1.3.2.4/24 ,
(0.0.0.0/0 ).
4. 30 , ,
(RPS).
5. 192.168.131.5 mvts3g-sqlclient (
, TS, ).
6. mvts3g-rps2m.sample.sh.
. ,
RPS TS RPS_<_>
(. ).

2014 SwitchRay Inc.

48 | Traffic Switch

10



10.1
TS:
1. phoenix.conf load
( generic). :
load type=signaling name=signaling-1

2. system.conf (. Traffic
Switch). , 1 (
signaling-1).
3. TS.
4. config ( . ).
5. Traffic Switch. , TS :
1) :
#> telnet 0 5000

0 5000 IP- , phoenix phoenix.conf.


2) load, 1, :
load type=signaling name=signaling-1

10.2
:
1. .
2. TS.
3. config ( . ).
4. ,
:
#> kill -9

`ps ax | awk '/scripting-1/ && $0 !~/awk/ {print $1}'`

scripting-1 , load
phoenix.conf.
.

2014 SwitchRay Inc.

| 49

10.3
:
#> kill -9

`ps ax | awk '/signaling-1/ && $0 !~/awk/ {print $1}'`

signaling-1 , load phoenix.conf.


. , media
- ("media-1", "media-2" .)
, , sh bs
TS.
:
NODFLT001.

10.4
TS:
1. :
#> telnet 0 5000

0 5000 IP- , phoenix


phoenix.conf.
2. :
unload name=signaling-1 method=grace

signaling-1 , load phoenix.conf.


Phoenix , ( ),
.
timeout, :
unload name=signaling-1 method=grace timeout=123

Phoenix 123
, , .
,
.
21 ( , . phoenix), Phoenix
. , TS
.
3. system.conf phoenix.conf.
4. TS.
5. config ( . ).

2014 SwitchRay Inc.

50 | Traffic Switch

11
11.1
Traffic Switch :
- .
v.1.9.0.
.
TS.

11.1.1

,
TS. , ,
.



11.1.1.1
Traffic Switch ,
.

calls

display

show
format full
format short
counte
rs

display
show

.
TS.
, :
mvts3g|> counters display node.calls.rate.peak

.
zones

display

show

show
calls
counters

.
TS. ,
:
mvts3g|> show counters node.legs.started

2014 SwitchRay Inc.

| 51

.
.

zones
endpoints

.
TS.
, :

status

mvts3g|> show status signaling-1

.
briefstatus

TS .

,
. , :
calls show display:
mvts3g|calls|> show

show calls:
mvts3g|show|> calls

show calls:
mvts3g|> show calls

11.1.1.2
:
/

briefstatus

bs

calls

ca

counters

co

display

endpoints

ep

show

sh

status

st

zones

zo

:
mvts3g|> sh ca
Active calls on signaling-1:
-----------------------------------------------------------------------------------From
Proto SrcNum
DstNum
To
Proto SrcNum
DstNum

2014 SwitchRay Inc.

52 | Traffic Switch

-----------------------------------------------------------------------------------From 192.168.132.1
H323 112
300
To
192.168.132.15 H323 112
300
-----------------------------------------------------------------------------------Total for signaling-1: 1

11.1.1.3
:
mvts3g|> calls
mvts3g|calls|> counters
mvts3g|calls|counters|>
mvts3g|calls|counters|> zones

exit. :
mvts3g|calls|counters|> exit
mvts3g|calls|>

11.1.1.4
show counters ( counters) show status
.
Perl.
.:
http://perldoc.perl.org/perlre.html
http://www.boost.org/doc/libs/1_49_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html
TS:
status show media-[1,2]
"media-1" "media-2":
mvts3g|> sh st media-[1,2]
MEDIA "media-1"
Node:
Status: ONLINE
System:
Version: 4.6.0
UpTime: 00:21:12 (User: 00:00:17; Sys: 00:00:01)
...
MEDIA "media-2"
Node:
Status: ONLINE
System:
Version: 4.6.0
UpTime: 00:21:12 (User: 00:00:17; Sys: 00:00:02)
...

2014 SwitchRay Inc.

| 53

status show
signaling.*|media.*
:
mvts3g|> sh st signaling.*|media.*
SIGNALING "signaling-1"
Node:
Status: ONLINE
System:
Version: 4.6.0
UpTime: 00:05:10 (User: 00:00:05; Sys: 00:00:00)
...
SIGNALING "signaling-2"
Node:
Status: ONLINE
System:
Version: 4.6.0
UpTime: 00:05:10 (User: 00:00:05; Sys: 00:00:00)
...
MEDIA "media-1"
Node:
Status: ONLINE
System:
Version: 4.6.0
UpTime: 00:21:12 (User: 00:00:17; Sys: 00:00:01)
...

show counters
.*restart.* :
mvts3g|counters|> show .*restart.*
MANAGEMENT:
phoenix.restartcount

SCRIPTING SERVER "scripting-1"


phoenix.restartcount

SIGNALING "signaling-1"
phoenix.restartcount

SYNCHRO SERVER "synchro"


phoenix.restartcount

show counters media.*


-:
mvts3g|> sh co media.*
MEDIA "media-1"
media.channels
MEDIA "media-2"

2014 SwitchRay Inc.

54 | Traffic Switch

media.channels

MEDIA "media-4"
media.channels
media.channels.converting

10
5

11.1.2 TS
Traffic Switch
TS
TS

11.1.2.1 TS
TS . TS
. , TS.
:
,
, ,
Traffic Switch
. rtinfo (.
rtinfo ).

11.1.2.2 TS
TS.


phoenix.signal.<UNIX
signal>, :
phoenix.signal.SIGSEGV
phoenix.signal.SIGABRT

UNIX- (
POSIX),
.
(, SIGSEGV
SIGABRT)
.

phoenix.restartcount


Phoenix.


node.calls.rate.current

CPS .

node.calls.rate.peak

TS
CPS .

node.legs.active.current


(
),
.

2014 SwitchRay Inc.

| 55

node.legs.active.licensed


(
SIP, H.323 -7),
.

node.legs.active.peak


,
.

node.legs.started

,
.

node.legs.terminated

,
.

node.legs.terminate.reason
.<DC>, :
node.legs.terminate.reas
on.sip.busy_here
node.legs.terminate.reas
on.sip.decline

,

<DC>.


.
:
SIP
Q.850 ( H.323 -7 )
local (TS)
mpro ( TMngr)
centrex ()

2014 SwitchRay Inc.

node.registration.requests
.ras.dropped.rps_limit

RAS-,
-

RPS.

node.registration.requests
.sip.dropped.rps_limit

SIP REGISTER,
-

RPS.

node.registration.requests
.sip.rejected.rps_limit

SIP REGISTER,
-
RPS.

node.registration.requests
.sip.received

SIP
REGISTER.

node.registrations.active.
current

node.registrations.created


( ,
).

node.registrations.termina
ted.auth_timeout

, -

( REGISTER
).

56 | Traffic Switch

SIP-.

node.registrations.termina
ted.keepalive_expired

,

.

node.registrations.termina
ted.unregister

,
TS. ,

.

node.registrations.termina
ted.valid_till

,
.

node.registrations.termina
ted.reject.*

,
TMngr,
TMngr .

-
media.channels


-.

media.channels.converting


- .

11.1.2.3 TS
TS - ,
> > [ ] > .
TS
show counters, counters display counters show.
TS SNMP:
1. SNMP Traffic Switch.
2. , :
MIB ( ),
/etc/snmp/snmpd.conf (. SNMP).
TS
TS.

11.2
Traffic Switch .
/usr/sbin/mvts3g-mail* mvts3g-mail.conf
, .
TS.
TS:
email
SNMP-
(COUNTER001) email-

2014 SwitchRay Inc.

| 57

TS. .
TS.

.
: .
'#' .

11.2.1 TS
TS ,
TS.
email SNMP- (traps).
phoenix.log.
TS:




-7

11.2.1.1
, TS:

COUNTER001

Minor

Counter value <value> more than


<value>
Counter value increased on <step
value>


TS. .

TS.

NODFLT001

Major

Node '<node name>' crashed and was


restarted. Please contact customer
. .
support
.

11.2.1.2

2014 SwitchRay Inc.

MGMCFG001

Critical

System is unconfigured
<description>

TS.

MGMCFG010

Critical

Connection to primary management


node was LOST!!!


/

.

58 | Traffic Switch

Connection to primary management


node was RESTORED!!!


Failed to create connection to primary .
management node
MGMTCN001

Critical

Trial period has expired

MGMTCN002

Minor

Left 3 days before trial expiration of


the dongle with id <key id>

3

USB- <key id>.

MGMKEY001

Critical

Failed to read hardware key

TS USB-.

MGMKEY002

Major

Using backup dongle for primary


management node


USB-.

11.2.1.3

NODLOG001

Minor

Logs are on


(.
TS).

SIGMIPR001

Major

Critical call rate exceeded! Current


rate: <value>

CPS

max_calls_rate (.
).

11.2.1.4

NODLOG001

Minor

Logs are on


(.
TS).

CPS_<_
>

Major

Max CPS rate for this network


exceeded!


CPS
.

-
>
CPS.

2014 SwitchRay Inc.

| 59

v.1.9.0.
RPS_<_
>

Major

Max RPS rate for this network


exceeded!


RPS
.

mvts3grps2m.sample.sh ( , .

),
-
>
RPS.


v.1.9.0.

11.2.1.5 -7

NODLOG001

Minor

Logs are on


(.
TS).

BLOCK_NODE Minor
{$NodeId}
_RPC{$Remote
PointCode}
_CIC{$cic}

ISUP: Circuit (label={$label}) has


blocked by: {$cause}

ZONENUNA{$z Major
one_name}

Zone {$zone_name} has become


UNAVAILABLE.

7- .

LNK{$nodeNa
me}

Link {$nodeName} expired by


timeout!


nodeName

.

Major

11.2.1.6

LO4CDR001

2014 SwitchRay Inc.

Critical

CDR Queue max limit exceeded

CDR-
(
,
,

60 | Traffic Switch

).

CDR Queue limit came to normal CDR



.
LO4DB001

LO4DB002

Critical

Critical

Connection to MASTER data


base was LOST

Connection to MASTER data


base was RESTORED

Connection to data base was


LOST


/.

Connection to data base was


RESTORED
LO4DB003

Critical

Ability to write CDRs to fs and


to DB was lost
Ability to write CDRs to fs and
to DB was restored

/
CDR.

LO4SD001

Critical

Unable to update the data


obtained from the database in
the scripting node.

,
.
,

.

LO4SD002

Critical

Unable to synchronize data


between the database and the
scripting node.





.
,

.

LO4SD003

Major

Call with confId = 'confId' has in-


call time more than maximum call .
duration.

()
confId

,
(
,
).



2014 SwitchRay Inc.

| 61


.
,
.
,
,

.
, ,


CDRs.

LO4SE001

Major

Record 'id' from table RADIUS


Attributes contains inadmissible
lexemes into field Value: formula
= 'formula' inadmissible lexemes
= 'lexemes'

'id'
RADIUS

.

Record 'id' from table Routing


Policies contains inadmissible
lexemes into field Expression:
formula = 'formula', inadmissible
lexemes = 'lexemes'

'id'



.

11.2.2 email
email:
1. , Traffic Switch
(. ).
2. /etc/mvts3g/mvts3g-mail.conf.
3. TS, , :
ALARM_ID="NODFLT001, SIG2MED001" // TS
ALARM_SEVERITY="CRITICAL, MAJOR, MINOR" //

4. email:
FROM="mvts3g-notification <username@hostname.com>" // email

TO="user1 <user1@hostname.com>, user2 <user2@hostname.com>" //

ALARM_SUBJECT="Notification" //

...
MSG_APPENDIX="Best regards, ." // ,

5. mvts3g-mail.conf.
.

2014 SwitchRay Inc.

62 | Traffic Switch

11.2.2.1 TS
TS:
1. email.
2. /etc/mvts3g/mvts3g-mail.conf.
3. COUNTER001 ALARM_ID .
4. MINOR (ALARM_SEVERITY).
5. mvts3g-mail.conf.
6. (, system-1.media.conf).
7. common, :
common
{
alert "<alert>" //
{
counter "<counter>" //
{
type "<type>"; // ( : "increment"
"decrement")
limit "<limit>"; // ,

step "<step>"; //

};
};
};

:
common
{
alert "New channel with transcoding"
{
counter "media.channels.converting"
{
type "increment";
step "1";
};
};
};

TS
,
"common", .
. ,
alert "New channel with transcoding (media-1)", alert "New channel with
transcoding (media-2)" ..
8. TS.
9. config ( . ).
, :
ID: COUNTER001

2014 SwitchRay Inc.

| 63

SEVERITY: MINOR
NODE: MEDIA
COUNTER NAME: media.channels.converting
COUNTER VALUE: 5
DESCRIPTION: New channel with transcoding
Counter value more than 1

11.2.2.2
:
1. /etc/mvts3g/mvts3g-mail.conf.
2.
:

SEND_MINUTE_INTERVAL,

SEND_MINUTE_INTERVAL="10"

3. mvts3g-mail.conf.
. , ,
.
.

11.3 SNMP
Traffic Switch SNMP-
MIB- Traffic Switch
SNMP
SNMP
SNMP-

11.3.1 Traffic Switch SNMP-


Traffic Switch
Net-SNMP. net-snmp Traffic Switch
TS SNMP- (traps) TS .
SNMP- (Management Information Base, MIB)
. MIB (),
(OID). Traffic Switch
(Private Enterprise Number, PEN) 28029.
MIB Traffic Switch. , .1.3.6.1.4.1.28029
TS TS.
GET, GETNEXT
GETBULK. SET .

11.3.2 MIB- Traffic Switch


MIB- Traffic Switch /usr/share/snmp/mibs/mvtsii.mib.
TS.
OID .
OID , , MIB-

2014 SwitchRay Inc.

64 | Traffic Switch

. ,
snmpd.conf . .
SNMP.
OID

.1.3.6.1.4.1.28029.11.1

TS
(
SNMP Traffic Switch)

.1.3.6.1.4.1.28029.11.2

snmpd.conf

mvtsCommonCounter

phoenix.restartcount

.1.3.6.1.4.1.28029.11.3

mvtsSignalingCounter

node.calls.active.current
node.calls.active.peak
node.calls.started
node.calls.terminated
node.calls.rate.current
node.calls.rate.peak

.1.3.6.1.4.1.28029.11.4


- media.channels

mvtsMediaCounter

:
OID.

11.3.3 SNMP
SNMP ( snmpd) Traffic Switch. SNMP-,
, .. TS. ,
TS SNMP-.
snmpd:
1. /etc/snmp/snmpd.conf.
2. .
3. , :
agentaddress udp:192.168.127.113
com2sec readonly default community
group redonly v2c readonly
view all included .1
access redonly "" any noauth exact all none none
dlmod mvts /usr/lib/mvts3g/libsnmpagent.so
mvtsPrimaryConnectAddress 192.168.127.113:9000
mvtsBackupConnectAddress 192.168.34.53:9001

:
agentaddress IP- SNMP, SNMP-

. (,) (,
udp:192.168.127.113, udp:192.168.34.52).
com2sec readonly default community ( ).
default ( IP-) IP- .
community -.
mvtsPrimaryConnectAddress IP- (

2014 SwitchRay Inc.

| 65

management phoenix.conf).
mvtsBackupConnectAddress IP- (
management phoenix.conf).
4. /etc/snmp/snmpd.conf.
5. SNMP-:
#> /etc/init.d/snmpd start

6. SNMP-:
#> snmpwalk -v 2c -c community 192.168.127.113 .1.3.6.1.4.1.28029

:
community , 3 community;
192.168.127.113 IP- ( management

phoenix.conf);
.1.3.6.1.4.1.28029 OID Traffic Switch.

, , snmp (. <%TARGETTITLE%
>). :
iso.3.6.1.4.1.28029.11.1.1 = STRING: "management-1"
iso.3.6.1.4.1.28029.11.1.2 = STRING: "signaling-1"
iso.3.6.1.4.1.28029.11.1.3 = STRING: "signaling-2"
iso.3.6.1.4.1.28029.11.1.4 = STRING: "balancer-1"
...
iso.3.6.1.4.1.28029.11.2.1.2.1 = INTEGER: 0
iso.3.6.1.4.1.28029.11.2.1.2.2 = INTEGER: 0
iso.3.6.1.4.1.28029.11.2.1.2.3 = INTEGER: 0
iso.3.6.1.4.1.28029.11.2.1.2.4 = INTEGER: 0
...

, MIB Traffic Switch. .


SNMP.
SNMP .

11.3.4 SNMP
TS SNMP:
1. /etc/snmp/snmpd.conf.
2. , . TS
sh co TS.
3. snmpd.conf .
:
mvtsSignalingCounter node.legs.active.licensed
mvtsCommonCounter phoenix.signal.SIGSEGV
mvtsMediaCounter media.channels.converting

:
mvtsCommonCounter , ;
mvtsSignalingCounter ;

2014 SwitchRay Inc.

66 | Traffic Switch

mvtsMediaCounter -.

, ,
MIB, .
4. SNMP-:
#> /etc/init.d/snmpd restart

5. (. SNMP, 6).
node.legs.active.licensed :
iso.3.6.1.4.1.28029.11.3.1.1.1
iso.3.6.1.4.1.28029.11.3.1.1.2
iso.3.6.1.4.1.28029.11.3.1.2.1
iso.3.6.1.4.1.28029.11.3.1.2.2

=
=
=
=

STRING: "signaling-1"
STRING: "signaling-2"
INTEGER: 10
INTEGER: 14

.11.3.1.2.1 "signaling-1", .11.3.1.2.2 "signaling2". .

11.3.5 SNMP-
TS SNMP-:
1. SNMP.
2. snmptrapd.
3. mvts3g-mail.

11.3.5.1 snmptrapd
SNMP- snmptrapd
.
snmptrapd:
1. /etc/snmp/snmptrapd.conf, :
authCommunity log,execute,net community

community -, SNMP.
2. /etc/snmp/snmptrapd.conf.
3. SNMP Traffic Switch:
#> /etc/init.d/snmpd start

11.3.5.2 mvts3g-mail SNMP-


TS mvts3g-mail SNMP OID
SNMP-.
mvts3g-mail SNMP-:
1. /etc/mvts3g/mvts3g-mail.conf.

2014 SwitchRay Inc.

| 67

2. , ALARM_ID.
3. ,
ALARM_SEVERITY.
4. SNMP_OIDS OID ALARM_ID. :
SNMP_OIDS="NODFLT001:1.2.3.4.7, MGMCFG001:1.2.3.4.8"

Note: COUNTER001 .
5. SNMP_CMD snmptrap :
SNMP_CMD="/usr/bin/snmptrap -v1 -c community destination_IP OID agent_IP 6 0
''"

:
community -, SNMP,
destination_IP IP- ,

SNMP-.
agent_IP IP- SNMP.
OID OID.
6. mvts3g-mail.conf.
.

2014 SwitchRay Inc.

68 | Traffic Switch

12 Traffic Switch
, /var/log/mvts3g/.
, Traffic
Switch , .

.
Traffic Switch.
/var.
phoenix.log traffic.log.

12.1 Phoenix
Traffic Switch /var/log/mvts3g/
phoenix.log . :
TS;
TS;
TS ( );
TS;
TS .
phoenix.log / rsyslogd,
Debian ( man rsyslogd).
(/etc/rsyslogd.conf) :
phoenix.log ;
TS /var/log/syslog;
phoenix.log TS.
/etc/rsyslogd.conf, rsyslogd:
#> service rsyslog restart

12.1.1 phoenix.log
, Traffic Switch local5 .
, ,
/etc/rsyslogd.conf:
local5.* -/var/log/mvts3g/phoenix.log

rsyslogd:
#> service rsyslog restart

12.1.2 TS /var/log/syslog
rsyslogd TS /var/
log/syslog. local5.none /etc/
rsyslogd.conf:

2014 SwitchRay Inc.

Traffic Switch | 69

*.*;auth,authpriv.none;local5.none

-/var/log/syslog

rsyslogd:
#> service rsyslog restart

12.1.3 TS
TS .
phoenix.log . :
1. rsyslogd. ,
kern, mark, security, syslog local5. TS .
:
#> man syslog.conf

2. load (
phoenix.conf). :
load type=signaling name=signaling-1 facility=local0

3. , .
/etc/rsyslogd.conf.
:
local0.* -/var/log/mvts3g/phoenix_signaling.log

4. Traffic Switch.
5. rsyslogd:
#> service rsyslog restart

"signaling-1"
phoenix_signaling.log.

12.2 TS
Traffic Switch SIP/H.323/MGCP/ISUP,
TS /var/log/mvts3g/traffic.log.

:

, "common"
,
7,


traffic.log
(,
mvtsprologic.scripting-1.log)

, loglevel .

2014 SwitchRay Inc.

70 | Traffic Switch


-7,


log TS.

traffic.log, (.
).
trafficlog
statestore phoenix.conf, TS.

12.2.1
TS
TS,
.
loglevel .
,
-.
v.1.9.0.
:
1. TS,
/ (, system-1.signaling.conf).
2. "common" loglevel (0
" / " ).
3. , ,
( ).
"common" :
loglevel_timeout "x"

x , . ,
24 .
4. .
5. TS.
6. config ( . ).
.

12.2.2
:
1. (, system-1.scripting.conf).
2. trace_level,
. ( ,
):

0 ;
1 (CRITICAL);
2 (ERROR);
3 (WARNING);

2014 SwitchRay Inc.

Traffic Switch | 71

4 (INFO);
5 (DEBUG);
6 (DEBUG2);
7 (DEBUG2C).

3. , trace_file .
, mvtsprologic ( )
"scripting-1", mvtsprologic.scripting-1.log.
4. system-1.scripting.conf.
5. TS.
6. config ( . ).
. . .

12.2.3
traffic.log mvts3glogextractor, /usr/bin. :
#> ./mvts3g-logextractor /var/log/mvts3g/traffic.log PROTO_ID> filename.log

PROTO_ID Conference ID () /
() CDR- filename.log
, .

12.3 rtinfo
rtinfo (runtime information)
TS. Traffic Switch .
rtinfo ,
kill -USR1, . :
#> kill -USR1

`ps ax | awk '/signaling-1/ && $0 !~/awk/ {print $1}'`

signaling-1 , load phoenix.conf.


. , media
rtinfo - ("media-1", "media-2" .)
/var/log/mvts3g/rtinfo-SIGUSR1signaling-1-18278-31640.log, :
signaling-1 ;
18278 (pid) ;
31640 (pid), rtinfo.
, ,
, .
.

2014 SwitchRay Inc.

72 | Traffic Switch

12.4
logrotate,
Linux. logrotate
,
.

. , :
traffic.log
phoenix.log

,
logrotate, , :
#> man logrotate

- logrotate ,
:
#> logrotate -fv /etc/logrotate.conf

traffic.log phoenix.log
X .

12.4.1 traffic.log phoenix.log


traffic.log phoenix.log
Traffic Switch. /etc/logrotate.d/mvts3g-server-pro:
/var/log/mvts3g/phoenix.log {
rotate 10
daily
size 1M
nocompress
postrotate
/usr/bin/killall -HUP -r r?syslogd
endscript
}
/var/log/mvts3g/traffic.log {
rotate 5
daily
size 64M
nocompress
postrotate
/usr/bin/killall -HUP mvts3g-server
endscript
}

, :
#> logrotate -fv /etc/logrotate.conf

2014 SwitchRay Inc.

Traffic Switch | 73

12.4.2
/etc/mvts3g/
mvtspro-logrotate.conf.
:
/var/log/mvts3g/mvtsprologic.scripting-1.log {
rotate 10
size 64M
nocompress
postrotate
/usr/bin/mvts3g-sclient 192.168.131.5:7710 logrotate
endscript
}
/var/log/mvts3g/mvtsprologic.scripting-2.log {
rotate 10
size 64M
nocompress
postrotate
/usr/bin/mvts3g-sclient 192.168.131.5:7711 logrotate
endscript
}

( ) .
(mvtsprologic.scripting-1.log ) <>.<
>.log,
<> trace_file (. );
< > , ( load)

phoenix.conf.
postrotate :
mvts3g-sclient;
IP- , (127.0.0.1,
TS) , controllink ;
logrotate.
, :
#> logrotate -fv /etc/logrotate.conf

logrotate .
/etc/cron.d/mvtspro-logrotate-cron.

12.4.3 X
logrotate .
traffic.log phoenix.log .
,
.
logrotate. /etc/
cron.d/mvts3g-server-pro :
*/30 * * * * root test -x /usr/sbin/logrotate && /usr/sbin/logrotate /etc/
logrotate.d/mvts3g-server-pro

2014 SwitchRay Inc.

74 | Traffic Switch

30 (, 15
15 ).
10 .

: .

12.4.4 traffic.log
( .) traffic.log
.
2

10

<10 CPS

12

20

30

30

30

10-20 CPS

12

20

20

30

20-30 CPS

12

15

20

30-40 CPS

12

15

40-50 CPS

10

12

50-60 CPS

10

60-70 CPS

70-80 CPS

80-90 CPS

90-100 CPS

, traffic.log 12 10-20 CPS


4 .

12.4.5 rtinfo
rtinfo :
1. /usr/local/log_purge.sh :
#/bin/sh
find /var/log/mvts3g/*.core -mtime +15 -exec rm {} \;
find /var/log/mvts3g/rtin*.log -mtime +15 -exec rm {} \;

15 .
. , 15
.
2. :
#> chmod +x /usr/local/log_purge.sh

3. crontab :
#> echo "10 1

* * *

root

/usr/local/log_purge.sh" >> /etc/crontab

2014 SwitchRay Inc.

. Traffic Switch | 75

13 . Traffic
Switch
phoenix.conf
management primary=192.168.133.113:9000 backup=192.168.34.53:9001
phoenix address=127.0.0.1:5000
statestore db=/var/log/mvts3g/phoenix.db trafficlog=traffic.log
load type=management name=management-1 mode=main
load type=balancer name=balancer-1
load type=signaling name=signaling-1
load type=media name=media-1
load type=commandline name=commandline-1 address=127.0.0.1:7000
load type=synchro name=synchro-1
load type=scripting name=scripting-1
load type=ss7 name=ss7-1
load type=push name=push-1

system-1.conf
include
include
include
include
include
include
include
include
include
include

"/etc/mvts3g/system-1.zone.conf";
"/etc/mvts3g/system-1.balancer.conf";
"/etc/mvts3g/system-1.signaling.conf";
"/etc/mvts3g/system-1.media.conf";
"/etc/mvts3g/system-1.synchro.conf";
"/etc/mvts3g/system-1.scripting.conf";
"/etc/mvts3g/system-1.balancing.conf";
"/etc/mvts3g/system-1.generic.conf";
"/etc/mvts3g/system-1.ss7.conf";
"/etc/mvts3g/system-1.push.conf";

system-1.balancer.conf
balancer
{

balancer "balancer-1"

common

loglevel "0";

};

2014 SwitchRay Inc.

controllink
{
zone "test";
port "7202";
};
ras
{
address
{
"0.0.0.0";
};
port
"1719";

76 | Traffic Switch

gkname
allow_md5
allow_chap
allow_plain

"MVTS3G";
"yes";
"yes";
"yes";

};
sip
{

address
{
"0.0.0.0";
};
port
proxying_balancing

"5060";
"yes";

};
h323
{
address
{
"0.0.0.0";
};
port "1720";
};
external_authorization "no";

};

};

system-1.signaling.conf
signaling
{

signaling "signaling-1"

common

loglevel "0";

};

h323

address

"0.0.0.0";

};

port "1721";

};

sip

address

"0.0.0.0";

};

port "5061";

};
cdr_recovery "yes";
max_calls_rate "100";
call_rate_alarm_lifetime "60";

2014 SwitchRay Inc.

. Traffic Switch | 77

use_remote_logic "yes";

};

};

system-1.media.conf
media
{
media "media-1"
{

controllink

zone "test";

port "7800";

};

portrange "10000-14999";
};
};

system-1.zone.conf
zone
{

zone "test"

"192.168.0.0/16";

"212.0.0.0/8";

};
zone "voip"
{
"192.177.0.0/16";
"213.92.133.0/24";
alias "ss7-zone-1";
alias "ss7-zone-2";
};
};

system-1.synchro.conf
synchro
{

synchro "synchro-1"

controllink

{
zone "test";

port "7711";

};

};
};

system-1.scripting.conf
scripting
{
scripting "scripting-1"
{

2014 SwitchRay Inc.

78 | Traffic Switch

controllink
{
zone "voip";
port"7710";
}
loader_path "voip2";
environment
{
dbms_type_master
dbms_name_master
dbms_user_master
dbms_pswd_master

dbms_type_slave
dbms_name_slave
dbms_user_slave
dbms_pswd_slave

"MySQL";
"localhost@rtu";
"****";
"****";

"MySQL";
""localhost@rtu"";
"****";
"****";

};
};
};

system-1.balancing.conf
balancing
{

balancing "subscriber-logic"

"balancer-1";

"signaling-1";

"sl-1";

};

balancing "service-platform"

"sp-1";

};
balancing "transit-group-1"
{
"scripting-1";
"balancer-1";
"signaling-1";
"ss7-1";
};
};

system-1.generic.conf
generic
{
generic "sl-1"
{
controllink
{
zone "voip";
port "9966";
};
};

2014 SwitchRay Inc.

. Traffic Switch | 79

generic "sl-1-license"
{
controllink
{
zone "voip";
port "9977";
};
};
generic "sp-1"
{
controllink
{
zone "voip";
port "9967";
};
};
generic "sp-1-license"
{
controllink
{
zone "voip";
port "9978";
};
};
};

system-1.ss7.conf
ss7
{
ss7 "ss7-1"
{
common
{
loglevel "0";
};
controllink
{
zone "voip";
port "7700";
};
};
};

system-1.push.conf
push
{
push "push-1"
{
common
{
loglevel "1";
};

2014 SwitchRay Inc.

80 | Traffic Switch

logic
{
address
{
"10.10.10.47";
};
port "42000";
trusted_address
{
"10.10.10.21";
};
ping_interval "800";
ping_timeout "1200";
};
rtu_clients
{
address
{
"10.10.10.47";
};
port "42001";
allowed_networks
{
"0.0.0.0/0";
};
ping_interval
ping_timeout
wakeup_attempts
wakeup_interval
};

"180";
"360";
"2";
"8";

};
};

2014 SwitchRay Inc.

Оценить