Forwards a multicast datagram. This daemon only applies to AIX® 4.2.1 or later.
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.
| Item | Description | 
|---|---|
| -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: See mrouted.conf File in AIX Version 7.1 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: 
 Upon startup, the mrouted daemon writes its pid to the file /etc/mrouted.pid. | 
| -p | Turns off pruning. Default is pruning enabled. | 
The following signals can be sent to the mrouted daemon:
| Item | Description | 
|---|---|
| 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.
kill -USR1 *cat /etc/mrouted.pid*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* 
 .
 .
 .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.
kill -USR2 *cat /etc/mrouted.pid*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| Item | Description | 
|---|---|
| /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. |