Академический Документы
Профессиональный Документы
Культура Документы
Introduction:
This document is intended to be useful while debugging NGTJ card in call related issues that
occur during MAX-NG migration.
cat /proc/mccinfo/*
Example:
cat /proc/mccinfo/4
Rx Tx RxErr TxErr RELG RENO REAB RECR
696491 696502 0 0 0 0 0 0
command Usages
cat /proc/mccinfo/4 For TU-0 Copy-0 Rx & Copy-0 & 1 Tx
cat /proc/mccinfo/5 For TU-1 Copy-0 Rx & Copy-0 & 1 Tx
cat /proc/mccinfo/6 For TU-2 Copy-0 Rx & Copy-0 & 1 Tx
cat /proc/mccinfo/7 For TU-3 Copy-0 Rx & Copy-0 & 1 Tx
cat /proc/mccinfo/8 For TU-0 Copy-1 Rx
cat /proc/mccinfo/9 For TU-1 Copy-1 Rx
cat /proc/mccinfo/10 For TU-2 Copy-1 Rx
cat /proc/mccinfo/11 For TU-3 Copy-1 Rx
Test Pre-check:
Please check the following steps before using the utilities for debugging purposes.
1. For LAG: Utilities have to be copied in proper MMC directory and should be run after
giving chroot /mmc command only. For PRI/V5/TMG: The utilities must be executed on $
prompt of NGTJ-V3 card. Pl. Refer README available in dsp utility tar.
2.Ensure that distributor or aggregator application is running in the system for functional
testing.
NOTE: One must use released DSP Driver
PSG_MAXNG_LAG_DSPDTMF_ECHO_NGTK_V2_1_7
List of Utilites:
The following three utilities are describe in this document.
1. read_dsp_eth
2. read_dsp_ch
3. read_dsp_api
4. read_packet_count
5. read_dtmf_count
6. read_dsp_ver : To read version of Released DSP Driver installed.
Utility read_dsp_eth:
This utility is used to get ethernet info on DSP. Ethernet configuration parameters like DSP
Ip address, Broadcast IP, Default GW, Netmask, Server IP, MAC address and Link state are read by
this utility from DSP and displayed.
Utility read_dsp_ch:
This utility is used to get channel parameter information on DSP. This utility takes channel
number as the only argument in the range of 0-1023 . Channel configuration parameters like system
status, channel status, Tone id, Clip info and packetisation info is read and displayed by this utility.
In the above image “Sys stat” refers to System state whose value will be eaither 0(Standby
mode) or 1(Active mode).
“Ch Stat” refers to Channel status which ranges between value 0-3 in hexadecimal format.
Each of these value represents Receive and Transmit paths status on that channel according to the
table given below.
“Tone” refers to Tone id that is being played on that particular channel which ranges
between value 0x-3. Each of these value represents a distinct Tone which can be refered from table
below.
Utility read_dsp_api:
This utility is used to get channel parameter and system information on DSP. It accepts a
three arguments. First argument takes choice of parameter to be input which ranges from decimal
values 7-13 and 22. Each choice commands a specific parameter to be read from DSP as listed in
the choice table below. Second and Third parameter take start channel and stop channel range that
takes values between 0-1023.Note that Start channel number should always to less than stop
channel number. Channel configuration parameters like system status, channel status, Tone id, Clip
info, packetisation info, Ethernet status, PHY device status and packet counters are read and
displayed by this utility.
Note: Please note that Start channel and Stop channel arguments in case of System status,
Ethernet Status and Link Status are irrelavent, but do provide dummy start channel and stop channel
data for the utility to work.
System Status:
System status return eaither '0' or '1'. A value of '0' represents system is in StandBy
mode and '1' represents system to be in Active mode.
Channel Status:
Channel status for each of the channel between Start Channel and stop channel is
fetched any displayed by using choice '8' in the utility. Utility returns a values between 0-3 in
hexadecimal format. Each value represent specific Receive mode and Transmit mode on the channel
as per table below. A sample utility run on channel status for channel range 0 to 2 is also given in
the image below the table.
Tone info:
Tone Info on each of the channel between Start Channel and stop channel is fetched
any displayed by using choice '9' in the utility. Utility returns a values between 0x00-0x26 for each
channel in hexadecimal format. Each value represent specific Tone being played on the channel as
per table below. Default value when tone is not being played on the channel is 0xff. A sample utility
run on Tone info for channel range 0 to 2 is also given in the image below the table.
Clip Info on each of the channel between Start Channel and stop channel is fetched
any displayed by using choice '10' in the utility. Utility returns 16 byte buffer of Clip info for each
channel in hexadecimal format. Each byte in the buffer represents a dtmf digit . Default value in the
buffer when no clip being played on the channel is 0xff. A sample utility run on Clip info for
channel range 0 to 2 is also given in the image below the table.
Packetization info:
Packetization Info on each of the channel between Start Channel and stop channel is
fetched any displayed by using choice '11' in the utility. Utility returns four hexa decimal values
seperated by space character . First value represents channel number and paketization validity info.
Second value represents UDP source port and destination port combination.Third and fourth values
represent source IP and destination IP address values respectively. A sample utility run on
Packetization info for channel range 0 to 2 is also given in the image below the table.
Ethernet Status:
Link Status:
Link status returns state of ethernet phy link status by using choice '13' in the utility.
A sample utility run on Ethernet Status is given in the image below the table.
DTMF count:
DTMF count on each of the channel between Start Channel and stop channel is
fetched and displayed by using choice '21' in the utility. A sample utility run on Dtmf count for
channel range 769 to 770 is also given in the image below the table.
Udp packet counter API returns per Channel RTP debug counter values and Global
UDP packet counters. A simple utility run using the API for channel range 1-2 is given in image
below.
In the above image “RTP packet receive count” represents total RTP packets received on the
channel, “RTP packet drop count” represents number of packets dropped by the channel due to
buffer crunch in DSP, “UDP packet wrong size count” represent number of packets dropped due to
size mismatch i.e UDP size which is not 172 bytes(G711 20ms) and “UDP packet on channel
disabled count” represents number of packets received on the channel when channel is disabled to
receive RTP packets.
Under Global Debug counters “Global UDP packet received count” represents total number
of UDP packets received, “Global RTP packet received count” represents total number of RTP
packets received, “Global RTP packet dropped count” represents total number of RTP packets
dropped across all the channels, “Global UDP packet wrong size count” represents total number of
UDP packet received of wrong size across all channels, “Global UDP packet on channel disabled
count ” represents total UDP packets received across all the channels when the channel is disabled
and “Global UDP packet on invalid port count” represents total UDP packets received on port
number other than the range (8000-10046).
Note: All the channel specific packet counters are reset to zero when the channel is disabled,
and Global packet counters are not reset at any time(They auto reset at increment on MAX value of
Unsigned interger to zero).
Utility read_packet_count:
This utility is used to get Channel level and Global UDP and RTP packets received counts
on DSP. It accepts a channel number as argument.
Description of each counter above is same as read_dsp_api choice 22.
Utility read_dtmf_count:
This utility is used to get per Channel level dtmf counts on DSP. It accepts a channel number
as argument.
NOTE: Note down DSP ip. The Laptop shall also be connected in same sub-net and accessible to
core.
3) Setup a laptop/pc (with wireshark) with IP as DSP IP (This IP setup require to be done
immediately)
NOTE: You may require to physically reset the MLS-0 and MLS-1 to reset the DSP MAC and start
the packet flow.
Note: There is a better way of capture the RTP packet from Remote End by changing the SIP/SDP
IP field. The procedure is known to Application team.