Service Flow G711 | docsis.org

You are here

Service Flow G711

14 posts / 0 new
Last post
rbasyumi
Service Flow G711

Hi All,

I am running docsis 1.1 with cisco ubr7200VXR IOS 12.2(33)SCE5, with modem motorola SB5101i. I am using static service flow with two service (voice and data). I made clasifier based on udp port of voice. the plant testing is: phone and pc (both of them will get IP DCHP) connected to router (nat), router conected to modem. the result is modem and pc already get IP DCHP from router, but when I do call and browsing, both of them traffic comes in to primary DS dan US.

my configuration in CMTS:

cable service class 50 name primary_ds
cable service class 50 downstream
cable service class 50 max-rate 1000000
cable service class 51 name voice_ds
cable service class 51 downstream
cable service class 51 max-rate 110000
cable service class 51 priority 7
cable service class 90 name primary_us
cable service class 90 upstream
cable service class 90 sched-type 2
cable service class 90 max-rate 1000000
cable service class 91 name voice_us
cable service class 91 upstream
cable service class 91 sched-type 6
cable service class 91 req-trans-policy 1F
cable service class 91 grant-size 235
cable service class 91 grant-interval 20000
cable service class 91 grant-jitter 1000
cable service class 91 grants-per-interval 1

same at this in config file, include classifier based on wire shark, port udp RTP : Source 12626 destination 11784 .

hopefully some one can help me for this,

THank You,

grosche
RTP

as far as I know used RTP no fixed source port, but all highports.
and that source nat on the router changes the used port again.

rbasyumi
thanks, how can I define RTP

thanks, how can I define RTP Port in config file? cause all traffic stil comes to primary DS and US.

grosche
ToS

In the CM Configfile not.
Maybe the router don't changes the ToS field of the phone packages and you can used for classifier.
I use a CM with built-in MTA. For example Motorola SBV5121E.
Then I give the MTA another ip subnet.

e.g. 10.0.1.0/24 for the CM, 10.0.2.0/24 for the MTA, 10.0.3.0/24 for the CPE/Host.
And 10.0.0.254 is the SIP Server.

DsServiceFlow
{
DsServiceFlowRef 100;
QosParamSetType 7;
TrafficPriority 3;
/* MaxRateSustained 2048000; */
}

DsServiceFlow
{
DsServiceFlowRef 101;
QosParamSetType 7;
TrafficPriority 7;
/* MaxRateSustained 256000; */
MinReservedRate 128000;
}

UsServiceFlow
{
UsServiceFlowRef 200;
QosParamSetType 7;
TrafficPriority 3;
MaxTrafficBurst 3044;
MaxConcatenatedBurst 0;
/* MaxRateSustained 256000; */
}

UsServiceFlow
{
UsServiceFlowRef 201;
QosParamSetType 7;
TrafficPriority 7;
MaxTrafficBurst 3044;
MaxConcatenatedBurst 0;
/* MaxRateSustained 256000; */
MinReservedRate 128000;
}

DsPacketClass {
ServiceFlowRef 101;
ClassifierRef 101;
RulePriority 1;
ActivationState 1;
IpPacketClassifier {
IpSrcAddr 10.0.0.254;
IpSrcMask 255.255.255.255;
IpDstAddr 10.0.2.0;
IpDstMask 255.255.255.0;
}
}

UsPacketClass {
ServiceFlowRef 201;
ClassifierRef 201;
RulePriority 1;
ActivationState 1;
IpPacketClassifier {
IpSrcAddr 10.0.2.0;
IpSrcMask 255.255.255.0;
IpDstAddr 10.0.0.254;
IpDstMask 255.255.255.255;
}
}

rbasyumi
ToS

Thank You, I dont know yet dan not configure anything about ToS, should do something about ToS?

grosche
Link

IpPacketClassifier
{
IpTos 0x0808ff; /* matches ToS 0x08 */
}

maybe this link will help you

http://www.cmtsinfo.net/index.php?howto=cm_config

and in this Cablelabs Document, Annex C, you find all TLV's

http://www.cablelabs.com/specifications/CM-SP-MULPIv3.0-I18-120329.pdf

mbowe
Does all the voice traffic go

Does all the voice traffic go to a server? (eg Asterisk). If so, you could setup your classifier to match on that IP.

Wouldn't work though if your calls are peer-to-peer style.

If you do a lot of voice stuff, then I would definitely recommend you look at using eMTA rather than cm + external ATA. Using an eMTA opens up many options for QoS.

grosche
RTP Proxy

Of course, this only works with a RTP Proxy!
e.g. Asterisk or openSIPS, openSER, Kamailio + rtpproxy.

I use the eMTA Motorola SBV5121E D2.0 with SIP Firmware... can i do it better?
Can i tag the RTP Traffic?

rbasyumi
Thanks, it works now!, after

Thanks, it works now!, after i changed the classifier based on IP Proto 17 (UDP) with destination/source IP Voice Server/RTP Proxy from port 5061 to 65535.

LAB-CMTS-01#scm 001a.6692.2f48 qos
Sfid Dir Curr Sid Sched Prio MaxSusRate MaxBrst MinRsvRate Throughput
State Type
3 US act 1 BE 0 1000000 3044 0 4578
15 US act 7 UGS 0 0 0 0 67404
4 DS act N/A BE 0 10000000 3044 0 224564
16 DS act N/A BE 7 0 3044 110000 29172

husamaga
Hello grosche,

Hello grosche,
Can you please send me a sample of config file for mta? do you make fw upgrade for your modems to sip protocol?
i can't get modem uploaded by fw. husame(@)gmail.com
thanks

grosche
MTA

Yes, you must upgrade the Firmware to the SIP Version "SBV5121E-SIP-1.0.7-SCM-06-SHPC".
After encode the file with the docsis tool, you must insert the correct sha1sum on the last line before MtaConfigDelimiter 255
and encode the file again.
(e.g. SnmpMibObject pktcMtaDevProvConfigHash.0 HexString 0xbfac8a00a1f5e98f71c93ded50291738a0047157;)

You need the GI-BTI-MIB and the PKTC-IETF-MTA-MIB draft from January 21, 2005 with
::= { enterprises tComLabs(7432) 1 }
or replaced

SnmpMibObject pktcMtaDevEnabled.0 -->> SnmpMibObject enterprises.7432.1.1.1.6.0
SnmpMibObject pktcMtaDevProvConfigHash.0 -->> SnmpMibObject enterprises.7432.1.1.2.9.0

RFC 4682 from September 18, 2006 don't work with this Firmware.

You can upgrade the Firmware over SNMP or a CM Configfile.
I use the DHCP-Server for a automatic Firmware check and upgrade.

Main
{
MtaConfigDelimiter 1;

SnmpMibObject pktcMtaDevEnabled.0 Integer 1;

SnmpMibObject btiDtmfInsertMode.0 Integer 3; /* rfc2833 */
SnmpMibObject btiReportStatsToSyslogEnable.0 Integer 2; /* false */

SnmpMibObject ifAdminStatus.9 Integer 1; /* up */
SnmpMibObject btiSipEndPntCfgUserId.1 String "userid" ;
SnmpMibObject btiSipEndPntCfgDisplayName.1 String "userid" ;
SnmpMibObject btiSipEndPntCfgAuthName.1 String "userid" ;
SnmpMibObject btiSipEndPntCfgAuthPassword.1 String "password" ;
SnmpMibObject btiSipEndPntCfgProxyAddr.1 String "sip.server.de" ;
SnmpMibObject btiSipEndPntCfgProxyPort.1 Gauge32 5060 ;
SnmpMibObject btiSipEndPntCfgOutboundProxyAddr.1 String "sip.server.de" ;
SnmpMibObject btiSipEndPntCfgOutboundProxyPort.1 Gauge32 5060 ;
SnmpMibObject btiSipEndPntCfgRegistrarAddr.1 String "sip.server.de" ;
SnmpMibObject btiSipEndPntCfgRegistrarPort.1 Gauge32 5060 ;
SnmpMibObject btiSipEndPntCfgDigitMap.1 String "11[02]|X.[T#]" ;
SnmpMibObject btiSipEndPntCfgPacketizationPeriod.1 Integer 20;
SnmpMibObject btiSipEndPntCfgUseCodecTable.1 Integer 1;
SnmpMibObject btiSipEndPntCodecType.1.1 Integer 9; /* pcma */

SnmpMibObject ifAdminStatus.10 Integer 2; /* down */
SnmpMibObject btiSipEndPntCfgUserId.2 String "userid2" ;
SnmpMibObject btiSipEndPntCfgDisplayName.2 String "userid2" ;
SnmpMibObject btiSipEndPntCfgAuthName.2 String "userid2" ;
SnmpMibObject btiSipEndPntCfgAuthPassword.2 String "password" ;
SnmpMibObject btiSipEndPntCfgProxyAddr.2 String "sip.server.de" ;
SnmpMibObject btiSipEndPntCfgProxyPort.2 Gauge32 5060 ;
SnmpMibObject btiSipEndPntCfgOutboundProxyAddr.2 String "sip.server.de" ;
SnmpMibObject btiSipEndPntCfgOutboundProxyPort.2 Gauge32 5060 ;
SnmpMibObject btiSipEndPntCfgRegistrarAddr.2 String "sip.server.de" ;
SnmpMibObject btiSipEndPntCfgRegistrarPort.2 Gauge32 5060 ;
SnmpMibObject btiSipEndPntCfgDigitMap.2 String "11[02]|X.[T#]" ;
SnmpMibObject btiSipEndPntCfgPacketizationPeriod.2 Integer 20;
SnmpMibObject btiSipEndPntCfgUseCodecTable.2 Integer 1;
SnmpMibObject btiSipEndPntCodecType.2.1 Integer 9; /* pcma */

VendorSpecific
{
VendorIdentifier 0x002040;
GenericTLV TlvCode 128 TlvString "DE";
}

MtaConfigDelimiter 255;
}

husamaga
Is it possible to send me the

Is it possible to send me the fw and certificates for this modem sbv5121E? and mibs?
i will be greatfull.
how do create the hash (e.g. SnmpMibObject pktcMtaDevProvConfigHash.0 HexString 0xbfac8a00a1f5e98f71c93ded50291738a0047157;) and what is this hash used for?
Thanks.

grosche
Hash

The MTA checks so that the transfer of the configuration file is correct.

#!/bin/bash
# example: me.sh mta.txt mta.bin
TXTFILE=$1
BINFILE=$2
cp $TXTFILE $TXTFILE.tmp
docsis -p $TXTFILE.tmp $BINFILE 2>/dev/null
HASH=$(sha1sum $BINFILE | cut -d " " -f1)
sed -i "s/MtaConfigDelimiter 255;/SnmpMibObject pktcMtaDevProvConfigHash.0 HexString 0x$HASH;\n\tMtaConfigDelimiter 255;/g" $TXTFILE.tmp
docsis -p $TXTFILE.tmp $BINFILE 2>/dev/null
rm $TXTFILE.tmp

husamaga
can i have the fw & mibs

can i have the fw & mibs please? husame( at )gmail.com

Log in or register to post comments