[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 3

mrouted Daemon

Purpose

Forwards a multicast datagram. This daemon only applies to AIX 4.2.1 or later.

Syntax

/usr/sbin/mrouted [ -p ] [ -c Config_File ] [ -d [ Debug_Level ] ]

Description

The mrouted daemon is an implementation of the Distance Vector Multicast Routing Protocol (DVMRP), an earlier version of which is specified in RFC 1075. It maintains topological knowledge using a distance vector routing protocol (like RIP, described in RFC 1058), on which it implements a multicast datagram forwarding algorithm called Reverse Path Multicasting.

The mrouted daemon forwards a multicast datagram along a shortest (reverse) path tree rooted at the subnet on which the datagram originates. The multicast delivery tree may be thought of as a broadcast delivery tree that has been pruned back so that it does not extend beyond those subnetworks that have members of the destination group. Hence, datagrams are not forwarded along those branches that have no listeners of the multicast group. The IP time-to-live of a multicast datagram can be used to limit the range of multicast datagrams.

To support multicasting among subnets that are separated by (unicast) routers that do not support IP multicasting, the mrouted daemon includes support for tunnels, which are virtual point-to-point links between pairs of the mrouted daemons located anywhere in an Internet. IP multicast packets are encapsulated for transmission through tunnels, so that they look like typical unicast datagrams to intervening routers and subnets. The encapsulation is added on entry to a tunnel, and stripped off on exit from a tunnel. By default, the packets are encapsulated using the IP-in-IP protocol (IP protocol number 4). Older versions of the mrouted tunnel use IP source routing, which puts a heavy load on some types of routers. This version does not support IP source-route tunneling.

The tunneling mechanism allows the mrouted daemon to establish a virtual Internet, for the purpose of multicasting only, which is independent of the physical Internet and which may span multiple Autonomous Systems. This capability is intended for experimental support of Internet multicasting only, pending widespread support for multicast routing by the regular (unicast) routers. The mrouted daemon suffers from the well-known scaling problems of any distance-vector routing protocol and does not support hierarchical multicast routing.

The mrouted daemon automatically configures itself to forward on all multicast-capable interfaces (that is, interfaces that have the IFF_MULTICAST flag set, excluding the loopback interface), and it finds other mrouted daemons directly reachable using those interfaces.

The mrouted daemon does not initiate execution if it has fewer than two enabled virtual interfaces, where a virtual interface (Vif) is either a physical multicast-capable interface or a tunnel. It logs a warning if all of its virtual interfaces are tunnels; such an mrouted daemon's configuration would be better replaced by more direct tunnels.

The mrouted daemon handles multicast routing only; there might be unicast-routing software running on the same machine as the mrouted daemon. With the use of tunnels, it is unnecessary for the mrouted daemon to have access to more than one physical subnet to perform multicast forwarding.

Flags

-c Config_File Starts the mrouted command using an alternate configuration file specified by the Config_File variable.

There are five types of configuration entries:

phyint local-addr [disable] [metric m] [threshold t] [rate_limit b]
[boundary (boundary-name|scoped-addr/mask-len)] [altnet
network/mask-len]

tunnel local-addr remote-addr
 [
metric m
] [
threshold t
] [
rate_limit b
]


[
boundary
 (
boundary-name
 | 
scoped-addr
/
mask-len
)]


cache_lifetime ct
   
pruning off
|
on
   
name boundary-name scoped-addr
/
mask-len

See mrouted.conf File in AIX 5L Version 5.2 Files Reference for more information.

-d Sets the debug level. If no -d option is given, or if the debug level is specified as 0, themrouted daemon detaches from the invoking terminal. Otherwise, it remains attached to the invoking terminal and responsive to signals from that terminal. If -d is given with no argument, the debug level defaults to 2. Regardless of the debug level, the mrouted daemon always writes warning and error messages to the system log demon. Non-zero debug levels have the following effects:
level 1
All syslog'ed messages are also printed to stderr.
level 2
All level 1 messages plus notifications of significant events are printed to stderr.
level 3
All level 2 messages plus notifications of all packet arrivals and departures are printed to stderr.

Upon startup, the mrouted daemon writes its pid to the file /etc/mrouted.pid.

-p Turns off pruning. Default is pruning enabled.

Signals

The following signals can be sent to the mrouted daemon:

HUP Restarts the mrouted daemon. The configuration file is reread every time this signal is evoked.
INT Terminates execution gracefully (that is, by sending good-bye messages to all neighboring routers).
TERM Same as INT.
USR1 Dumps the internal routing tables to /usr/tmp/mrouted.dump.
USR2 Dumps the internal cache tables to /usr/tmp/mrouted.cache.
QUIT Dumps the internal routing tables to stderr (if the mrouted daemon was invoked with a nonzero debug level).

For convenience in sending signals, the mrouted daemon writes its pid to /etc/mrouted.pid on startup.

Examples

  1. To display routing table information, type:

    kill -USR1 *cat /etc/mrouted.pid*

    This produces the following output:

    Virtual Interface Table
     Vif Local-Address                    Metric   Thresh   Flags 
      0  36.2.0.8     subnet: 36.2           1        1     querier  
                      groups: 224.0.2.1 
                              224.0.0.4 
                     pkts in: 3456 
                    pkts out: 2322323
       
      1  36.11.0.1    subnet: 36.11          1        1     querier
                      groups: 224.0.2.1 
                              224.0.1.0 
                              224.0.0.4 
                     pkts in: 345 
                    pkts out: 3456
       
      2  36.2.0.8     tunnel: 36.8.0.77       3        1     
                       peers: 36.8.0.77 (2.2) 
                  boundaries: 239.0.1 
                            : 239.1.2 
                     pkts in: 34545433 
                    pkts out: 234342
       
      3  36.2.0.8     tunnel: 36.6.8.23       3        16
       
    Multicast Routing Table (1136 entries) 
     Origin-Subnet    From-Gateway         Metric Tmr In-Vif Out-Vifs
     36.2                                 1    45  0     1* 2 3* 
     36.8             36.8.0.77            4    15  2     0* 1* 3*
     36.11                                1    20  1     0* 2 3* 
     .
     .
     .

    In this example, there are four virtual interfaces connecting to two subnets and two tunnels. The Vif 3 tunnel is not in use (no peer address). The Vif 0 and Vif 1 subnets have some groups present; tunnels never have any groups. This instance of the mrouted daemon is the one responsible for sending periodic group membership queries on the Vif 0 and Vif 1 subnets, as indicated by the querier flags. The list of boundaries indicate the scoped addresses on that interface. A count of the no. of incoming and outgoing packets is also shown at each interface.

    Associated with each subnet from which a multicast datagram can originate is the address of the previous hop router (unless the subnet is directly connected), the metric of the path back to the origin, the amount of time since an update for this subnet was last received, the incoming virtual interface for multicasts from that origin, and a list of outgoing virtual interfaces. The * (asterisk) means that the outgoing virtual interface is connected to a leaf of the broadcast tree rooted at the origin, and a multicast datagram from that origin will be forwarded on that outgoing virtual interface only if there are members of the destination group on that leaf.

    The mrouted daemon also maintains a copy of the kernel forwarding cache table. Entries are created and deleted by the mrouted daemon.

  2. To display cache table information, type:

    kill -USR2 *cat /etc/mrouted.pid*

    This produces the following output:

    Multicast Routing Cache Table (147 entries)
     Origin         Mcast-group      CTmr   Age  Ptmr  IVif  Forwvifs
     13.2.116/22    224.2.127.255      3m    2m    -    0     1
     >13.2.116.19 
     >13.2.116.196  
     138.96.48/21   224.2.127.255      5m    2m    -    0     1
     >138.96.48.108 
     128.9.160/20   224.2.127.255      3m    2m    -    0     1
     >128.9.160.45 
     198.106.194/24 224.2.135.190      9m    28s   9m    0P
     >198.106.194.22

    Each entry is characterized by the origin subnet number and mask and the destination multicast group. The CTmr field indicates the lifetime of the entry. The entry is deleted from the cache table when the timer decrements to zero. The Age field is the time since this cache entry was originally created. Because cache entries get refreshed if traffic is flowing, routing entries can grow very old. The Ptmr field is a hyphen if no prune was sent upstream or the amount of time until the upstream prune will time out. The Ivif field indicates the incoming virtual interface for multicast packets from that origin. Each router also maintains a record of the number of prunes received from neighboring routers for a particular source and group. If there are no members of a multicast group on any downward link of the multicast tree for a subnet, a prune message is sent to the upstream router. They are indicated by a P after the virtual interface number. The Forwvifs field shows the interfaces along which datagrams belonging to the source group are forwarded. A p indicates that no datagrams are being forwarded along that interface. An unlisted interface is a leaf subnet with are no members of the particular group on that subnet. A b on an interface indicates that it is a boundary interface, that is, traffic will not be forwarded on the scoped address on that interface. An additional line with a > (greater-than sign) as the first character is printed for each source on the subnet. There can be many sources in one subnet.

Files

/etc/mrouted.conf Contains the configuration information for the mrouted daemon.
/usr/tmp/mrouted.dump Contains the internal routing tables for the mrouted daemon.
/etc/mrouted.pid Contains the process ID for the mrouted daemon.
/usr/tmp/mrouted.cache Contains the internal cache tables for the mrouted daemon.

Related Information

/etc/mrouted.conf File in AIX 5L Version 5.2 Files Reference.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]