Upload
nephelim
View
317
Download
10
Embed Size (px)
Citation preview
v.1.9.0 Traffic Switch
2014 SwitchRay Inc.
, , SwitchRay Inc.
SwitchRay Inc. . - , , , , , , SwitchRay Inc.
, .
, , / , . SwitchRay Inc. .
, , , , , , . , , .
SwitchRay Inc. .
Traffic Switch
1.9.0
15.12.2014
, SBC
603093, . , . , 23.
www.switchray.ru.:+7 (831) 282 27 77, : +7 (831) 282 27 79
http://www.switchray.ru3 2014 SwitchRay Inc.
Traffic Switch
1 6
................................................................................................................................... 61.1
................................................................................................................................... 61.2
................................................................................................................................... 61.3
................................................................................................................................... 61.4 , ,
................................................................................................................................... 71.5
2 9
................................................................................................................................... 92.1
3 Traffic Switch 11
................................................................................................................................... 113.1 Traffic Switch
................................................................................................................................... 113.2 Traffic Switch
................................................................................................................................... 133.3 Traffic Switch
................................................................................................................................... 133.4
................................................................................................................................... 133.5 -
................................................................................................................................... 143.6 Phoenix
................................................................................................................................... 143.7 StateStore
4 Traffic Switch 15
................................................................................................................................... 154.1 Traffic Switch
..................................................................................................................................................................... 154.1.1 Linux
..................................................................................................................................................................... 154.1.2
..................................................................................................................................................................... 164.1.3
..................................................................................................................................................................... 174.1.4
..................................................................................................................................................................... 174.1.5
..................................................................................................................................................................... 184.1.6
................................................................................................................................... 184.2 Traffic Switch
5, Traffic Switch 20
6 Traffic Switch 21
................................................................................................................................... 216.1 phoenix.conf
..................................................................................................................................................................... 216.1.1 management
..................................................................................................................................................................... 216.1.2 phoenix
..................................................................................................................................................................... 226.1.3 statestore
..................................................................................................................................................................... 226.1.4 load
................................................................................................................................... 236.2 system.conf
2014 SwitchRay Inc.
Traffic Switch
4
..................................................................................................................................................................... 236.2.1 system.conf
..................................................................................................................................................................... 246.2.2
........................................................................................................................................................................... 246.2.2.1 Traffic Sw itch
........................................................................................................................................................................... 256.2.2.2 7-
........................................................................................................................................................................... 266.2.2.3
..................................................................................................................................................................... 276.2.3
........................................................................................................................................................................... 276.2.3.1 Traffic Sw itch
........................................................................................................................................................................... 276.2.3.2
..................................................................................................................................................................... 286.2.4 Traffic Switch
........................................................................................................................................................................... 296.2.4.1
......................................................................................................................................................... 29 "common"
......................................................................................................................................................... 30 "controllink"
........................................................................................................................................................................... 306.2.4.2
........................................................................................................................................................................... 326.2.4.3
........................................................................................................................................................................... 336.2.4.4 -
........................................................................................................................................................................... 346.2.4.5
........................................................................................................................................................................... 366.2.4.6 generic
........................................................................................................................................................................... 376.2.4.7 -7
........................................................................................................................................................................... 376.2.4.8
........................................................................................................................................................................... 386.2.4.9
7 Traffic Switch 40
................................................................................................................................... 407.1
8 42
................................................................................................................................... 428.1 TS
..................................................................................................................................................................... 428.1.1 SIP H.323-
..................................................................................................................................................................... 438.1.2
................................................................................................................................... 448.2
..................................................................................................................................................................... 448.2.1 , TS
..................................................................................................................................................................... 468.2.2 , -
9 47
10 48
................................................................................................................................... 4810.1
................................................................................................................................... 4810.2
................................................................................................................................... 4910.3
................................................................................................................................... 4910.4
11 50
................................................................................................................................... 5011.1
..................................................................................................................................................................... 5011.1.1
........................................................................................................................................................................... 5011.1.1.1
........................................................................................................................................................................... 5111.1.1.2
........................................................................................................................................................................... 5211.1.1.3
........................................................................................................................................................................... 5211.1.1.4
..................................................................................................................................................................... 5411.1.2 TS
5 2014 SwitchRay Inc.
Traffic Switch
........................................................................................................................................................................... 5411.1.2.1 TS
........................................................................................................................................................................... 5411.1.2.2 TS
........................................................................................................................................................................... 5611.1.2.3 TS
................................................................................................................................... 5611.2
..................................................................................................................................................................... 5711.2.1 TS
........................................................................................................................................................................... 5711.2.1.1
........................................................................................................................................................................... 5711.2.1.2
........................................................................................................................................................................... 5811.2.1.3
........................................................................................................................................................................... 5811.2.1.4
........................................................................................................................................................................... 5911.2.1.5 -7
........................................................................................................................................................................... 5911.2.1.6
..................................................................................................................................................................... 6111.2.2 email
........................................................................................................................................................................... 6211.2.2.1 TS
........................................................................................................................................................................... 6311.2.2.2
................................................................................................................................... 6311.3 SNMP
..................................................................................................................................................................... 6311.3.1 Traffic Switch SNMP-
..................................................................................................................................................................... 6311.3.2 MIB- Traffic Switch
..................................................................................................................................................................... 6411.3.3 SNMP
..................................................................................................................................................................... 6511.3.4 SNMP
..................................................................................................................................................................... 6611.3.5 SNMP-
........................................................................................................................................................................... 6611.3.5.1 snmptrapd
........................................................................................................................................................................... 6611.3.5.2 mvts3g-mail SNMP-
12 Traffic Switch 68
................................................................................................................................... 6812.1 Phoenix
..................................................................................................................................................................... 6812.1.1 phoenix.log
..................................................................................................................................................................... 6812.1.2 TS /var/log/syslog
..................................................................................................................................................................... 6912.1.3 TS
................................................................................................................................... 6912.2 TS
..................................................................................................................................................................... 7012.2.1 TS
..................................................................................................................................................................... 7012.2.2
..................................................................................................................................................................... 7112.2.3
................................................................................................................................... 7112.3 rtinfo
................................................................................................................................... 7212.4
..................................................................................................................................................................... 7212.4.1 traffic.log phoenix.log
..................................................................................................................................................................... 7312.4.2
..................................................................................................................................................................... 7312.4.3 X
..................................................................................................................................................................... 7412.4.4 traffic.log
..................................................................................................................................................................... 7412.4.5 rtinfo
13 . Traffic Switch 75
6 | Traffic Switch
2014 SwitchRay Inc.
1
1.1 Traffic Switch, .
1.2 - (VoIP), , , , , ., UNIX- .
1.3 .
, .
: .
#> /etc/init.d/mvts3g-server-prorestart
Linux.
local5.* -/var/log/mvts3g/phoenix.log TrafficSwitch Linux.
:
, .
Name , , -, .
1.4 , , , , , , , IP- . .
2014 SwitchRay Inc.
| 7
1.5
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.
.
.
.
.
. " ".
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 42001 TCP-
, ( logic). .
UDP 1719 RAS-
, . .
UDP 5060
SIP
, . .
UDP 1024 65535
RTP, - ,
10 | Traffic Switch
2014 SwitchRay Inc.
-. , , -.
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 TrafficSwitch:
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 (pass-through); 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 SwitchTraffic Switch (nodes), :
(management node) TS, , , . (balancer node) H.323- SIP-. . Traffic Manager . ASR . (signaling node) SIP/H.323/SIP-T/SIP-I, - ( ), ( )
12 | Traffic Switch
2014 SwitchRay Inc.
. - (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.
14 | Traffic Switch
2014 SwitchRay Inc.
3.6 PhoenixPhoenix 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. .
. - .
Linux4.1.1 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 :
http://www.sendmail.org/releases/http://www.sendmail.org/releases/16 | Traffic Switch
2014 SwitchRay Inc.
#> 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/debianhttp://http.debian.net/debianftp://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
http://www.debian.org/mirror/list2014 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 TrafficSwitch .
, (. , TrafficSwitch).
4.1.51. TCP- (9000) .
. /etc/network/interfaces :
pre-up /sbin/iptables -A INPUT -s [ IP_address ] -p tcp -m tcp --dport 9000 -jACCEPT 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 [email protected]/26 [email protected]/[email protected]
3. SSH root:
# Authentication
#LoginGraceTime 2mPermitRootLogin no
#StrictModes yes#MaxAuthTries 6
4. SSH:
18 | Traffic Switch
2014 SwitchRay Inc.
#> /etc/init.d/sshd restart
. .
4.1.61. 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.
20 | Traffic Switch
2014 SwitchRay Inc.
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- (mainmanagement node). USB- (backupmanagement 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).
management6.1.1 IP- :
management primary=192.168.133.113:9000 backup=192.168.34.53:9001
, IP-/. .
: load.
, . , IP- . TS , backup.
phoenix6.1.2 Phoenix:
phoenix address=127.0.0.1:5000
22 | Traffic Switch
2014 SwitchRay Inc.
:
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.
statestore6.1.3 StateStore:
statestore db=/var/log/mvts3g/phoenix.db trafficlog=traffic.log
:
db phoenix.db, . .trafficlog traffic.log.
, statestore .
: load.
load6.1.4 :
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 ( . ).
system.conf6.2.1 system.conf , :
, . .
. . .
: , //, , /* */, , ;
include. . , include . , system-1.conf :
include "/etc/mvts3g/system-1.zone.conf";include "/etc/mvts3g/system-1.balancer.conf";include "/etc/mvts3g/system-1.signaling.conf";
24 | Traffic Switch
2014 SwitchRay Inc.
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 configuresignaling nodes */
include /;
include /etc/mvts3g/system-1.zone.conf;
6.2.2
Traffic Switch7-
Traffic Switch6.2.2.1
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 , .
7-6.2.2.2
7 7-. 7- , 7, . , 7- 7-, 7-, 7-.
26 | Traffic Switch
2014 SwitchRay Inc.
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
Traffic Switch6.2.3.1
Traffic Switch .
Traffic Switch. -, . , , "location TS. - , .
6.2.3.2
location system.conf. , TS :
location{ location " " {
28 | Traffic Switch
2014 SwitchRay Inc.
zones { // "zone-1"; "zone-2"; }; nodes { // "media-1"; "signaling-1"; }; }};
TS, / , .
location, , , TS .
:
1. TS .2. .3. , , .4. .5. , , , ,
.
, , config Traffic Switch ( . ).
(. Traffic Switch), "location" .
Traffic Switch6.2.4 system.conf TS :
balancer .common .controllink , .generic generic.media -.push .scripting .signaling .ss7 -7.synchro .
(, system-1.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".
"common"6.2.4.1.1
common , TS. :
loglevel , , -7, (. TS).
0
link_send_timeout , . 100.
10000 .
link_recv_timeout - , TCP- , . 100.
20000 .
30 | Traffic Switch
2014 SwitchRay Inc.
link_restore_timeout
, TCP- , . 100.
30000 .
link_reconnect_interval
TCP- link_restore_timeout, . 100.
3000 .
link_connect_interval
TCP- , . 100.
3000 .
: link_send_timeout link_recv_timeout, TCP-.
, common .
( ), common, .
common TS email TS. . TS.
"controllink"6.2.4.1.2
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 .
32 | Traffic Switch
2014 SwitchRay Inc.
"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 , User-Agent 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"; };};
34 | Traffic Switch
2014 SwitchRay Inc.
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 "MySQL"; dbms_name_master "localhost@rtu"; dbms_user_master "****"; dbms_pswd_master "****";
dbms_type_slave "MySQL"; dbms_name_slave ""localhost@rtu""; dbms_user_slave "****"; dbms_pswd_slave "****"; }; };};
loader_path . .
environment :
:
dbms_type_master ( "MySQL", ). dbms_name_master "host@database".dbms_user_master . dbms_pswd_master .
( , ):
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- . mvtspro-cdr-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.
36 | Traffic Switch
2014 SwitchRay Inc.
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.
generic6.2.4.6
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").
-76.2.4.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
38 | Traffic Switch
2014 SwitchRay Inc.
{ 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 "180"; ping_timeout "360"; wakeup_attempts "2"; wakeup_interval "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 .
40 | Traffic Switch
2014 SwitchRay Inc.
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.
log[level] [] / , -7 (. TS).
, / ( ).
( ) . 24 .
:
mvts3g|> log enable signaling-1 30
help .
2014 SwitchRay Inc.
Traffic Switch | 41
logout quit .
exit .
42 | Traffic Switch
2014 SwitchRay Inc.
8
TS
8.1 TS TS :
( H.323/SIP ). . SIP H.323- ( -, )
SIP H.323-8.1.1 . 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 ( , -).
44 | Traffic Switch
2014 SwitchRay Inc.
TS
:
subscriber-logic, .service-platform, .transit-group .
, TS . , -, -. v.1.9.0.
.
8.2 :
1. TS.2. - .
, TS8.2.1 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
.
46 | Traffic Switch
2014 SwitchRay Inc.
, -8.2.2 - :
1. - > , , , TS. subscriber-logic.
2. - > , , , :
, 1.
3. - , , , :
TS. transit-group.
.
2014 SwitchRay Inc.
| 47
9
(RPS) :
1. /etc/mvts3g/mvts3g-rps2m.sample.sh ( ). :
#!/bin/sh## invocation of this script should be added to /etc/rsyslog.conf as## :msg,regex,".*[Bb]alancer.*Successfully registered on the managementnode.*"^/usr/bin/mvts3g-rps2m.shecho "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_(. ).
48 | Traffic Switch
2014 SwitchRay Inc.
10
10.1 TS:
1. phoenix.conf load ( generic). :
load type=signaling name=signaling-1
2. system.conf (. TrafficSwitch). , 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 ( . ).
50 | Traffic Switch
2014 SwitchRay Inc.
11
11.1 Traffic Switch :
- . v.1.9.0. . TS.
11.1.1
, TS. , , .
11.1.1.1
Traffic Switch , .
calls display .
show
format fullformat short
.
counters
display TS. , :
mvts3g|> counters display node.calls.rate.peak
.
show
zones display .
show
show :
calls .
counters TS. ,:
mvts3g|> show counters node.legs.started
2014 SwitchRay Inc.
| 51
.
zones .
endpoints .
status TS. , :
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 d
endpoints ep
show sh
status st
zones zo
:
mvts3g|> sh caActive calls on signaling-1:------------------------------------------------------------------------------------- From Proto SrcNum DstNum To Proto SrcNum DstNum
52 | Traffic Switch
2014 SwitchRay Inc.
-------------------------------------------------------------------------------------From 192.168.132.1 H323 112 300To 192.168.132.15 H323 112 300-------------------------------------------------------------------------------------Total for signaling-1: 1
11.1.1.3
:
mvts3g|> callsmvts3g|calls|> countersmvts3g|calls|counters|>mvts3g|calls|counters|> zones
exit. :
mvts3g|calls|counters|> exitmvts3g|calls|>
11.1.1.4
show counters ( counters) show status . Perl. .:
http://perldoc.perl.org/perlre.htmlhttp://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) ...
http://perldoc.perl.org/perlre.htmlhttp://www.boost.org/doc/libs/1_49_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html2014 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 0
SCRIPTING SERVER "scripting-1" phoenix.restartcount 0
SIGNALING "signaling-1" phoenix.restartcount 0
SYNCHRO SERVER "synchro" phoenix.restartcount 0
show counters media.* -:
mvts3g|> sh co media.*
MEDIA "media-1" media.channels 3
MEDIA "media-2"
54 | Traffic Switch
2014 SwitchRay Inc.
media.channels 6
MEDIA "media-4" media.channels 10 media.channels.converting 5
TS11.1.2
Traffic Switch TS TS
TS11.1.2.1
TS . TS . , TS.
:
, , ,
Traffic Switch . rtinfo (. rtinfo ).
TS11.1.2.2
TS.
phoenix.signal., :phoenix.signal.SIGSEGVphoenix.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., :node.legs.terminate.reason.sip.busy_herenode.legs.terminate.reason.sip.decline
, . . :
SIPQ.850 ( H.323 -7 )local (TS)mpro ( TMngr)centrex ()
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
SIPREGISTER.
node.registrations.active.current
.
node.registrations.created ( , ).
node.registrations.terminated.auth_timeout
, - ( REGISTER ).
56 | Traffic Switch
2014 SwitchRay Inc.
SIP-.
node.registrations.terminated.keepalive_expired
, .
node.registrations.terminated.unregister
, TS. , .
node.registrations.terminated.valid_till
, .
node.registrations.terminated.reject.*
, TMngr, TMngr .
-
media.channels /
-.
media.channels.converting /
- .
TS11.1.2.3
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.
.
: . '#' .
TS11.2.1 TS , TS. email SNMP- (traps). phoenix.log.
TS:
-7
11.2.1.1
, TS:
COUNTER001 Minor Counter value more thanCounter value increased on
TS. . TS.
NODFLT001 Major Node '' crashed and wasrestarted. Please contact customersupport
. . .
11.2.1.2
MGMCFG001 Critical System is unconfigured
TS.
MGMCFG010 Critical Connection to primary managementnode was LOST!!!
/ .
58 | Traffic Switch
2014 SwitchRay Inc.
.
Connection to primary managementnode was RESTORED!!!
Failed to create connection to primarymanagement node
MGMTCN001 Critical Trial period has expired .
MGMTCN002 Minor Left 3 days before trial expiration ofthe dongle with id
3 USB- .
MGMKEY001 Critical Failed to read hardware key TS USB-.
MGMKEY002 Major Using backup dongle for primarymanagement node
USB-.
11.2.1.3
NODLOG001 Minor Logs are on (. TS).
SIGMIPR001 Major Critical call rate exceeded! Currentrate:
CPS max_calls_rate (. ).
11.2.1.4
NODLOG001 Minor Logs are on (. TS).
CPS_
Major Max CPS rate for this networkexceeded!
CPS . - > CPS.
2014 SwitchRay Inc.
| 59
v.1.9.0.
RPS_
Major Max RPS rate for this networkexceeded!
RPS . mvts3g-rps2m.sample.sh ( , . ), - > RPS. v.1.9.0.
-711.2.1.5
NODLOG001 Minor Logs are on (. TS).
BLOCK_NODE{$NodeId}_RPC{$RemotePointCode}_CIC{$cic}
Minor ISUP: Circuit (label={$label}) hasblocked by: {$cause}
.
ZONENUNA{$zone_name}
Major Zone {$zone_name} has becomeUNAVAILABLE.
7- .
LNK{$nodeName}
Major Link {$nodeName} expired bytimeout!
nodeName .
11.2.1.6
LO4CDR001 Critical CDR Queue max limit exceeded CDR- ( , ,
60 | Traffic Switch
2014 SwitchRay Inc.
).
CDR Queue limit came to normal CDR .
LO4DB001 Critical Connection to MASTER database was LOST
.
Connection to MASTER database was RESTORED
.
LO4DB002 Critical Connection to data base wasLOST
/.
Connection to data base wasRESTORED
LO4DB003 Critical Ability to write CDRs to fs andto DB was lost
/ CDR-.
Ability to write CDRs to fs andto DB was restored
LO4SD001 Critical Unable to update the dataobtained from the database inthe scripting node.
, . , .
LO4SD002 Critical Unable to synchronize databetween the database and thescripting node.
. , .
LO4SD003 Major Call with confId = 'confId' has in-call time more than maximum callduration.
. () confId , ( , ).
2014 SwitchRay Inc.
| 61
. , . , , . , , CDRs.
LO4SE001 Major Record 'id' from table RADIUSAttributes contains inadmissiblelexemes into field Value: formula = 'formula' inadmissible lexemes= 'lexemes'
'id' RADIUS .
Record 'id' from table Routing Policies contains inadmissiblelexemes into field Expression:formula = 'formula', inadmissiblelexemes = 'lexemes'
'id' .
email11.2.2 email:
1. , Traffic Switch (. ).
2. /etc/mvts3g/mvts3g-mail.conf.
3. TS, , :
ALARM_ID="NODFLT001, SIG2MED001" // TSALARM_SEVERITY="CRITICAL, MAJOR, MINOR" //
4. email:
FROM="mvts3g-notification " // email TO="user1 , user2 " // ALARM_SUBJECT="Notification" //
...MSG_APPENDIX="Best regards, ." // ,
5. mvts3g-mail.conf.
.
62 | Traffic Switch
2014 SwitchRay Inc.
TS11.2.2.1
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 "" // { counter "" // { type ""; // ( : "increment" "decrement") limit ""; // , 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 withtranscoding (media-2)" ..
8. TS.
9. config ( . ).
, :
ID: COUNTER001
2014 SwitchRay Inc.
| 63
SEVERITY: MINORNODE: MEDIACOUNTER NAME: media.channels.convertingCOUNTER VALUE: 5DESCRIPTION: New channel with transcodingCounter 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 SNMPTraffic Switch SNMP-MIB- Traffic Switch SNMP SNMP SNMP-
Traffic Switch SNMP-11.3.1 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 .
MIB- Traffic Switch11.3.2MIB- Traffic Switch /usr/share/snmp/mibs/mvtsii.mib. TS. OID .
OID , , MIB-
http://www.net-snmp.org/64 | Traffic Switch
2014 SwitchRay Inc.
. , snmpd.conf . . SNMP.
OID snmpd.conf
.1.3.6.1.4.1.28029.11.1 TS( SNMP Traffic Switch)
.1.3.6.1.4.1.28029.11.2 phoenix.restartcount
mvtsCommonCounter
.1.3.6.1.4.1.28029.11.3 :node.calls.active.currentnode.calls.active.peaknode.calls.startednode.calls.terminatednode.calls.rate.currentnode.calls.rate.peak
mvtsSignalingCounter
.1.3.6.1.4.1.28029.11.4 - media.channels
mvtsMediaCounter
: OID.
SNMP11.3.3 SNMP ( snmpd) Traffic Switch. SNMP-, , .. TS. , TS SNMP-.
snmpd:
1. /etc/snmp/snmpd.conf.
2. .
3. , :
agentaddress udp:192.168.127.113com2sec readonly default communitygroup redonly v2c readonlyview all included .1access redonly "" any noauth exact all none nonedlmod mvts /usr/lib/mvts3g/libsnmpagent.somvtsPrimaryConnectAddress 192.168.127.113:9000mvtsBackupConnectAddress 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 (. ). :
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: 0iso.3.6.1.4.1.28029.11.2.1.2.2 = INTEGER: 0iso.3.6.1.4.1.28029.11.2.1.2.3 = INTEGER: 0iso.3.6.1.4.1.28029.11.2.1.2.4 = INTEGER: 0...
, MIB Traffic Switch. . SNMP.
SNMP .
SNMP11.3.4 TS SNMP:
1. /etc/snmp/snmpd.conf.
2. , . TS sh co TS.
3. snmpd.conf .:
mvtsSignalingCounter node.legs.active.licensedmvtsCommonCounter phoenix.signal.SIGSEGVmvtsMediaCounter media.channels.converting
:
mvtsCommonCounter , ;mvtsSignalingCounter ;
66 | Traffic Switch
2014 SwitchRay Inc.
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 = STRING: "signaling-1"iso.3.6.1.4.1.28029.11.3.1.1.2 = STRING: "signaling-2"iso.3.6.1.4.1.28029.11.3.1.2.1 = INTEGER: 10iso.3.6.1.4.1.28029.11.3.1.2.2 = INTEGER: 14
.11.3.1.2.1 "signaling-1", .11.3.1.2.2 "signaling-2". .
SNMP-11.3.5 TS SNMP-:
1. SNMP.
2. snmptrapd.
3. mvts3g-mail.
snmptrapd11.3.5.1
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
.
mvts3g-mail SNMP-11.3.5.2
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.
.
68 | Traffic Switch
2014 SwitchRay Inc.
12 Traffic Switch
, /var/log/mvts3g/.
, TrafficSwitch , . . 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
phoenix.log 12.1.1 , Traffic Switch local5 . , , /etc/rsyslogd.conf:
local5.* -/var/log/mvts3g/phoenix.log
rsyslogd:
#> service rsyslog restart
TS /var/log/syslog12.1.2 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
TS12.1.3 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 TSTraffic Switch SIP/H.323/MGCP/ISUP, TS /var/log/mvts3g/traffic.log.
:
, , -7,
"common"
traffic.log (, mvtsprologic.scripting-1.log)
, loglevel .
70 | Traffic Switch
2014 SwitchRay Inc.
-7,
log TS. .
traffic.log, (. ).
trafficlog statestore phoenix.conf, TS.
TS
12.2.1
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 mvts3g-logextractor, /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-SIGUSR1-signaling-1-18278-31640.log, :
signaling-1 ;18278 (pid) ;31640 (pid), rtinfo.
, , , . .
72 | Traffic Switch
2014 SwitchRay Inc.
12.4 logrotate, Linux. logrotate , .
. , :
traffic.log phoenix.log
, logrotate, , :
#> man logrotate
- logrotate , :
#> logrotate -fv /etc/logrotate.conf
traffic.log phoenix.log X .
traffic.log phoenix.log12.4.1
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.
X 12.4.3 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
74 | Traffic Switch
2014 SwitchRay Inc.
30 (, 15 15 ).
10 .
: .
traffic.log12.4.4 ( .) traffic.log .
2 4 6 8 10
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 . TrafficSwitch
phoenix.conf
management primary=192.168.133.113:9000 backup=192.168.34.53:9001phoenix address=127.0.0.1:5000statestore db=/var/log/mvts3g/phoenix.db trafficlog=traffic.logload type=management name=management-1 mode=mainload type=balancer name=balancer-1load type=signaling name=signaling-1load type=media name=media-1load type=commandline name=commandline-1 address=127.0.0.1:7000load type=synchro name=synchro-1load type=scripting name=scripting-1 load type=ss7 name=ss7-1load type=push name=push-1
system-1.conf
include "/etc/mvts3g/system-1.zone.conf";include "/etc/mvts3g/system-1.balancer.conf";include "/etc/mvts3g/system-1.signaling.conf";include "/etc/mvts3g/system-1.media.conf";include "/etc/mvts3g/system-1.synchro.conf";include "/etc/mvts3g/system-1.scripting.conf";include "/etc/mvts3g/system-1.balancing.conf";include "/etc/mvts3g/system-1.generic.conf";include "/etc/mvts3g/system-1.ss7.conf";include "/etc/mvts3g/system-1.push.conf";
system-1.balancer.conf
balancer{ balancer "balancer-1" { common { loglevel "0"; };
controllink { zone "test"; port "7202"; }; ras { address { "0.0.0.0"; }; port "1719";
76 | Traffic Switch
2014 SwitchRay Inc.
gkname "MVTS3G"; allow_md5 "yes"; allow_chap "yes"; allow_plain "yes"; }; sip { address { "0.0.0.0"; }; port "5060"; proxying_balancing "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" {
78 | Traffic Switch
2014 SwitchRay Inc.
controllink { zone "voip"; port"7710"; } loader_path "voip2"; environment { dbms_type_master "MySQL"; dbms_name_master "localhost@rtu"; dbms_user_master "****"; dbms_pswd_master "****";
dbms_type_slave "MySQL"; dbms_name_slave ""localhost@rtu""; dbms_user_slave "****"; dbms_pswd_slave "****"; }; };};
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"; };
80 | Traffic Switch
2014 SwitchRay Inc.
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 "180"; ping_timeout "360"; wakeup_attempts "2"; wakeup_interval "8"; }; };};
1 1.1 1.2 1.3 1.4 , , 1.5 2 2.1 3 Traffic Switch3.1 Traffic Switch3.2 Traffic Switch3.3 Traffic Switch3.4 3.5 - 3.6 Phoenix3.7 StateStore4 Traffic Switch4.1 Traffic Switch4.1.1 Linux4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.2 Traffic Switch5 , Traffic Switch6 Traffic Switch6.1 phoenix.conf6.1.1 management6.1.2 phoenix6.1.3 statestore6.1.4 load6.2 system.conf6.2.1 system.conf6.2.2 6.2.2.1 Traffic Switch6.2.2.2 7-6.2.2.3 6.2.3 6.2.3.1 Traffic Switch6.2.3.2 6.2.4 Traffic Switch6.2.4.1 6.2.4.1.1 "common"6.2.4.1.2 "controllink"6.2.4.2 6.2.4.3 6.2.4.4 -6.2.4.5 6.2.4.6 generic6.2.4.7 -76.2.4.8 6.2.4.9 7 Traffic Switch7.1 8 8.1 TS 8.1.1 SIP H.323-8.1.2 8.2 8.2.1 , TS8.2.2 , -9 10 10.1 10.2 10.3 10.4 11 11.1 11.1.1 11.1.1.1 11.1.1.2 11.1.1.3 11.1.1.4 11.1.2 TS11.1.2.1 TS11.1.2.2 TS11.1.2.3 TS11.2 11.2.1 TS11.2.1.1 11.2.1.2 11.2.1.3 11.2.1.4 11.2.1.5 -711.2.1.6 11.2.2 email11.2.2.1 TS11.2.2.2 11.3 SNMP11.3.1 Traffic Switch SNMP-11.3.2 MIB- Traffic Switch11.3.3 SNMP11.3.4 SNMP11.3.5 SNMP-11.3.5.1 snmptrapd11.3.5.2 mvts3g-mail SNMP-12 Traffic Switch12.1 Phoenix12.1.1 phoenix.log 12.1.2 TS /var/log/syslog12.1.3 TS12.2 TS12.2.1 TS12.2.2 12.2.3 12.3 rtinfo 12.4 12.4.1 traffic.log phoenix.log12.4.2 12.4.3 X 12.4.4 traffic.log12.4.5 rtinfo 13 . Traffic Switch