This section provides several general multicast troubleshooting tips to help you deploy your multicast applications. These tips are not applicable to unicast systems.
Before trying to resolve a complicated multicasting issue, follow these tips to eliminate or avoid basic problems:
Some common problems are caused because the options affecting PGM configuration are not set correctly. Check the value of an option by looking at how it is set in the applicable command (.cm
) file.
Set in the $RTHOME/standard/rtgms.cm
file for your RTgms process.
Check that the receiving RTclients and the RTgms to which they are connecting use the same value for Group_Names. For more information on setting options for RTclients, see RTclient Options Summary. For more information on the option, see Group_Names.
Set in the $RTHOME/standard/mcast.cm
file for your RTgms and RTclient processes.
Check that the receiving RTclients and the RTgms to which they are connecting use the same value for Pgm_Udp_Encapsulation. If the value is not present in those files, the default value is used and does match correctly.
If Pgm_Udp_Encapsulation is set to 0
and your operating system is UNIX, all receiving RTclients and the RTgms processes must be run as root. If Pgm_Udp_Encapsulation is set to 0
and your operating system is Windows 2000, all receiving RTclients and the RTgms processes must have administrator authority.
If Pgm_Udp_Encapsulation is set to 1
to use UDP encapsulation, no PGM subscribers can be run on the machine where RTgms is running. This is because NAKs from PGM might not be correctly processed by the UDP protocol when RTgms and a PGM subscriber are running on the same machine. This problem does not occur when PGM is using raw IP sockets (Pgm_Udp_Encapsulation set to 0)
.
For more information on the option, see Pgm_Udp_Encapsulation.
Set in the $RTHOME/standard/mcast.cm
file for your RTgms and RTclient processes.
These options must be set to the number of router hops a packet of data takes. The number is calculated starting from the source, the RTgms, and ends with the subscriber, the receiving RTclient. The default value of these options is 1
, which does not allow the packet to go beyond the first hop, either a router or switch. For more information on these options, see Pgm_Source_Group_Ttl and Pgm_Receive_Nak_Ttl.
Once you eliminate simple problems, tracing the source of a problem can be complicated in a multicast application. Here are some useful tips:
pthrpt
command on the source to generate test streams. For example:pthrpt -t 10 -r 10000 -m 224.13.13.13generates a 10 Kbps stream with a TTL of 10 to group address 224.13.13.13. You can ask TIBCO Product Support for more information about PGM commands or how to get the SmartPGM User’s Guide.
pbw
command or Cisco Systems IOS show ip mroute active
command for monitoring the presence of test streams. See Troubleshooting Multicast Problems with Cisco Systems Routers.pthrpt
command on the receiver.tcpdump
command or the Solaris snoop
command to monitor test streams.set port broadcast
command.
A Cisco Systems router might refuse to forward multicast packets because their TTL (Time To Live) is too small. Use the IOS command show ip traffic
and watch the number of bad hop count packets shown on the second line of output. This counter increments every time IOS throws a packet away because its TTL was too small. For example:
Router> show ip traffic IP statistics: Rcvd: 322205025 total, 8805271 local destination 2 format errors, 0 checksum errors, 185555472 bad hop count
This shows that 59% (185555472/(322205025 - 8805271)) of all traffic that could have been forwarded was not because the TTL was too small.
The IOS command show ip mroute active
is a quick way to see the most active multicast traffic passing through a router. For example:
Router> show ip mroute active Active IP Multicast Sources - sending >= 4 kbps Group: 224.13.13.13, (?) Source: 10.168.4.5 (Lisle.Stress1.Talarian.Com) Rate: 3 pps/12 kbps(1sec), 9 kbps(last 25 secs), 10 kbps(life avg)
The IOS command show ip mroute count
is often helpful in determining if a router can see a multicast stream, how fast the stream is going, if the stream is being forwarded, and if not, why not. For example:
Router> show ip mroute count IP Multicast Statistics 8 routes using 4024 bytes of memory 6 groups, 0.33 average sources per group Forwarding Counts: Pkt Count/Pkts per second/Avg Pkt Size/Kilobits per second Other counts: Total/RPF failed/Other drops(OIF-null, rate-limit etc) Group: 225.0.11.66, Source count: 0, Group pkt count: 0 Group: 225.0.11.68, Source count: 0, Group pkt count: 0 Group: 224.0.1.40, Source count: 0, Group pkt count: 0 Group: 224.0.1.1, Source count: 1, Group pkt count: 1 Source: 216.0.13.9/32, Forwarding: 1/0/76/0, Other: 2/1/0 Group: 225.0.11.11, Source count: 0, Group pkt count: 0 Group: 224.13.13.13, Source count: 1, Group pkt count: 108 Source: 10.168.4.5/32, Forwarding: 108/3/537/12, Other: 108/0/0
Note the last group. It shows that the router is seeing 3 packets for each second and 12 Kbps to the group 224.13.13.13 from source 10.168.4.5.
See the Cisco Systems web site for excellent starting points for additional multicast troubleshooting information:
netstat
, it might be of interest even if you do not have Cisco Systems routers.These tools can be useful in troubleshooting and monitoring multicast networks:
TIBCO SmartSockets™ User’s Guide Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |