Difference between revisions of "RFC1075"

From RFC-Wiki
Line 1: Line 1:
 
 
 
 
 
 
 
Network Working Group                                        D. Waitzman
 
Network Working Group                                        D. Waitzman
 
Request For Comments: 1075                                  C. Partridge
 
Request For Comments: 1075                                  C. Partridge
                                                                BBN STC
+
                                                              BBN STC
                                                              S. Deering
+
                                                          S. Deering
                                                    Stanford University
+
                                                  Stanford University
                                                          November 1988
+
                                                        November 1988
 
 
              Distance Vector Multicast Routing Protocol
 
  
1. Status of this Memo
+
            Distance Vector Multicast Routing Protocol
  
  This RFC describes a distance-vector-style routing protocol for
+
== Status of this Memo ==
  routing multicast datagrams through an internet.  It is derived from
 
  the Routing Information Protocol (RIP) [1], and implements
 
  multicasting as described in RFC-1054.  This is an experimental
 
  protocol, and its implementation is not recommended at this time.
 
  Distribution of this memo is unlimited.
 
  
2. Introduction
+
This RFC describes a distance-vector-style routing protocol for
 +
routing multicast datagrams through an internet.  It is derived from
 +
the Routing Information Protocol (RIP) [1], and implements
 +
multicasting as described in RFC-1054.  This is an experimental
 +
protocol, and its implementation is not recommended at this time.
 +
Distribution of this memo is unlimited.
  
  A draft standard for multicasting over IP networks now exists [2],
+
== Introduction ==
  but no routing protocols to support internetwork multicasting are
 
  available.  This memo describes an experimental routing protocol,
 
  named DVMRP, that implements internetwork multicasting.  DVMRP
 
  combines many of the features of RIP [1] with the Truncated Reverse
 
  Path Broadcasting (TRPB) algorithm described by Deering [3].
 
  
  DVMRP is an "interior gateway protocol"; suitable for use within an
+
A draft standard for multicasting over IP networks now exists [2],
  autonomous system, but not between different autonomous systems.
+
but no routing protocols to support internetwork multicasting are
  DVMRP is not currently developed for use in routing non-multicast
+
available. This memo describes an experimental routing protocol,
  datagrams, so a router that routes both multicast and unicast
+
named DVMRP, that implements internetwork multicasting.  DVMRP
  datagrams must run two separate routing processes.  DVMRP is designed
+
combines many of the features of RIP [1] with the Truncated Reverse
  to be easily extensible and could be extended to route unicast
+
Path Broadcasting (TRPB) algorithm described by Deering [3].
  datagrams.
 
  
  DVMRP was developed to experiment with the algorithms in [3]. RIP
+
DVMRP is an "interior gateway protocol"; suitable for use within an
  was used as the starting point for the development because an
+
autonomous system, but not between different autonomous systems.
  implementation was available and distance vector algorithms are
+
DVMRP is not currently developed for use in routing non-multicast
  simple, as compared to link-state algorithms [4]In addition, to
+
datagrams, so a router that routes both multicast and unicast
  allow experiments to traverse networks that do not support
+
datagrams must run two separate routing processesDVMRP is designed
  multicasting, a mechanism called "tunneling" was developed.
+
to be easily extensible and could be extended to route unicast
 +
datagrams.
  
  The multicast forwarding algorithm requires the building of trees
+
DVMRP was developed to experiment with the algorithms in [3]RIP
  based on routing informationThis tree building needs more state
+
was used as the starting point for the development because an
  information than RIP is designed to provide, so DVMRP is much more
+
implementation was available and distance vector algorithms are
  complicated in some places than RIP.  A link-state algorithm, which
+
simple, as compared to link-state algorithms [4].  In addition, to
  already maintains much of the state needed, might prove a better
+
allow experiments to traverse networks that do not support
  basis for Internet multicasting routing and forwarding.
+
multicasting, a mechanism called "tunneling" was developed.
  
 +
The multicast forwarding algorithm requires the building of trees
 +
based on routing information.  This tree building needs more state
 +
information than RIP is designed to provide, so DVMRP is much more
 +
complicated in some places than RIP.  A link-state algorithm, which
 +
already maintains much of the state needed, might prove a better
 +
basis for Internet multicasting routing and forwarding.
  
 +
DVMRP differs from RIP in one very important way.  RIP thinks in
 +
terms of routing and forwarding datagrams to a particular
 +
destination.  The purpose of DVMRP is to keep track of the return
 +
paths to the source of multicast datagrams.  To make explanation of
 +
DVMRP more consistent with RIP, the word "destination" is used
 +
instead of the more proper "source", but the reader must remember
 +
that datagrams are not forwarded to these destinations, but originate
 +
from them.
  
Waitzman, Partridge & Deering                                  [Page 1]
+
This memo is organized into the following sections:
 +
        - A description of DVMRP is presented.
 +
        - Tunnels are explained.
 +
        - The routing algorithm is shown.
 +
        - The forwarding algorithm is shown.
 +
        - The various time values are listed.
 +
        - Configuration information is specified.
  
RFC 1075      Distance Vector Multicast Routing Protocol November 1988
+
This memo does not analyze distance-vector routing, nor fully explain
 +
the distance-vector algorithm; see [1] for more information on these
 +
topics. The process or processes that perform the routing and
 +
forwarding functions are called "routers" in this memo.
  
 +
== Protocol Description ==
  
  DVMRP differs from RIP in one very important way.  RIP thinks in
+
DVMRP uses the Internet Group Management Protocol (IGMP) to exchange
  terms of routing and forwarding datagrams to a particular
+
routing datagrams [2].
  destination.  The purpose of DVMRP is to keep track of the return
 
  paths to the source of multicast datagrams.  To make explanation of
 
  DVMRP more consistent with RIP, the word "destination" is used
 
  instead of the more proper "source", but the reader must remember
 
  that datagrams are not forwarded to these destinations, but originate
 
  from them.
 
  
  This memo is organized into the following sections:
+
DVMRP datagrams are composed of two portions: a small, fixed length
          - A description of DVMRP is presented.
+
IGMP header, and a stream of tagged data.
          - Tunnels are explained.
 
          - The routing algorithm is shown.
 
          - The forwarding algorithm is shown.
 
          - The various time values are listed.
 
          - Configuration information is specified.
 
  
  This memo does not analyze distance-vector routing, nor fully explain
+
The fixed length IGMP header of DVMRP messages is:
  the distance-vector algorithm; see [1] for more information on these
 
  topics.  The process or processes that perform the routing and
 
  forwarding functions are called "routers" in this memo.
 
 
 
3. Protocol Description
 
 
 
  DVMRP uses the Internet Group Management Protocol (IGMP) to exchange
 
  routing datagrams [2].
 
 
 
  DVMRP datagrams are composed of two portions: a small, fixed length
 
  IGMP header, and a stream of tagged data.
 
 
 
  The fixed length IGMP header of DVMRP messages is:
 
 
 
      0                  1                  2                  3
 
      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
      |Version| Type  |  Subtype      |          Checksum            |
 
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
 
 
  The version is 1.
 
 
 
  The type for DVMRP is 3.
 
 
 
  The subtype is one of:
 
 
 
  1 = Response; the message provides routes to some destination(s).
 
  2 = Request; the message requests routes to some destination(s).
 
  3 = Non-membership report; the message provides non-membership
 
      report(s).
 
 
 
 
 
 
 
Waitzman, Partridge & Deering                                  [Page 2]
 
 
 
RFC 1075      Distance Vector Multicast Routing Protocol  November 1988
 
 
 
 
 
  4 = Non-membership cancellation; the message cancels previous
 
      non-membership report(s).
 
 
 
  The checksum is the 16-bit one's complement of the one's complement
 
  sum of the entire message, excluding the IP header.  For computing
 
  the checksum, the checksum field is zeroed.
 
 
 
  The rest of the DVMRP message is a stream of tagged data.  The reason
 
  for using a stream of tagged data is to provide easy extensibility
 
  (new commands can be developed by adding new tags) and to reduce the
 
  amount of redundant data in a message.  The elements in the stream,
 
  called commands, are multiples of 16 bits, for convenient alignment.
 
  The commands are organized as an eight bit command numeric code, with
 
  at least an eight bit data portion.  Sixteen-bit alignment of all
 
  commands is required.
 
 
 
  A message that has an error in it will be discarded at the point in
 
  processing where the error is detected.  Any state changed due to the
 
  message contents before the error will not be restored to its
 
  previous values.
 
 
 
  Certain commands have default values defined in their specification.
 
  As the defaults may be changed as the protocol is developed further,
 
  a cautious implementation will not send out messages that depend on
 
  defaults.
 
 
 
  The length of DVMRP messages is limited to 512 bytes, excluding the
 
  IP header.
 
 
 
3.1 NULL Command
 
 
 
  Format:  0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
 
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 
          |        0      |  |    Ignored    |
 
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 
 
 
  Description: The NULL command can be used to provide additional
 
  alignment or padding to 32 bits.
 
 
 
3.2 Address Family Indicator (AFI) Command
 
 
 
  Format:  0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
 
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 
          |        2      |  |    family    |
 
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 
 
 
 
 
 
 
 
 
 
 
 
 
Waitzman, Partridge & Deering                                  [Page 3]
 
 
 
RFC 1075      Distance Vector Multicast Routing Protocol  November 1988
 
 
 
 
 
  Values for family:
 
 
 
      2 = IP address family, in which addresses are 32 bits long.
 
 
 
  Default: Family = 2.
 
 
 
  Description: The AFI command provides the address family for
 
  subsequent addresses in the stream (until a different AFI command is
 
  given).
 
 
 
  It is an error if the receiver does not support the address family.
 
 
 
3.3 Subnetmask Command
 
 
 
  Format:  0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
 
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 
          |        3      |  |    count    |
 
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 
 
 
  Additional argument, with AFI = IP:
 
  
 
     0                  1                  2                  3
 
     0                  1                  2                  3
 
     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 
     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Subnet mask                                                  |
+
   |Version| Type  |  Subtype      |          Checksum            |
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  
  Count is 0 or 1.
+
The version is 1.
 
 
  Default: Assume that following routes are to networks, and use a mask
 
  of the network mask of each route's destination.
 
 
 
  Description: The Subnetmask command provides the subnet mask to use
 
  for subsequent routes.  There are some requirements on the bits in
 
  the subnetmask: bits 0 through 7 must be 1, and all of the bits must
 
  not be 1.
 
  
  If the count is 0, then no subnet mask applies, assume that the
+
The type for DVMRP is 3.
  following routes are to networks, and use a mask of the network mask
 
  of each route's destination.  If count is 1, then a subnet mask
 
  should be in the data stream, of an appropriate size given the
 
  address family.
 
  
  It is an error for count not to equal 0 or 1.
+
The subtype is one of:
  
  Subnetmasks should not be sent outside of the appropriate network.
+
1 = Response; the message provides routes to some destination(s).
 +
2 = Request; the message requests routes to some destination(s).
 +
3 = Non-membership report; the message provides non-membership
 +
    report(s).
  
  See [6] for more information regarding IP subnetting.
+
4 = Non-membership cancellation; the message cancels previous
 +
    non-membership report(s).
  
 +
The checksum is the 16-bit one's complement of the one's complement
 +
sum of the entire message, excluding the IP header.  For computing
 +
the checksum, the checksum field is zeroed.
  
 +
The rest of the DVMRP message is a stream of tagged data.  The reason
 +
for using a stream of tagged data is to provide easy extensibility
 +
(new commands can be developed by adding new tags) and to reduce the
 +
amount of redundant data in a message.  The elements in the stream,
 +
called commands, are multiples of 16 bits, for convenient alignment.
 +
The commands are organized as an eight bit command numeric code, with
 +
at least an eight bit data portion.  Sixteen-bit alignment of all
 +
commands is required.
  
Waitzman, Partridge & Deering                                  [Page 4]
+
A message that has an error in it will be discarded at the point in
 +
processing where the error is detected.  Any state changed due to the
 +
message contents before the error will not be restored to its
 +
previous values.
  
RFC 1075      Distance Vector Multicast Routing Protocol  November 1988
+
Certain commands have default values defined in their specification.
 +
As the defaults may be changed as the protocol is developed further,
 +
a cautious implementation will not send out messages that depend on
 +
defaults.
  
 +
The length of DVMRP messages is limited to 512 bytes, excluding the
 +
IP header.
  
3.4 Metric Command
+
=== NULL Command ===
  
  Format:  0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
+
Format:  0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
+
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
          |        4     |  |     value    |
+
        |        0     |  |   Ignored    |
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
+
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
  
  Value is the metric, as an unsigned value ranging from 1 to 255.
+
Description: The NULL command can be used to provide additional
 +
alignment or padding to 32 bits.
  
  Default: None.
+
=== Address Family Indicator (AFI) Command ===
  
   Description: The metric command provides the metric to subsequent
+
Format:  0 1 2 3 4 5 6 7   0 1 2 3 4 5 6 7
  destinations. The metric is relative to the router that sent this
+
        +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+
   DVMRP routing update.
+
        |        2      |  |    family   |
 +
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
  
  It is an error for metric to equal 0.
+
Values for family:
  
3.5 Flags0 Command
+
  2 = IP address family, in which addresses are 32 bits long.
  
  Format: 0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
+
Default: Family = 2.
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 
          |        5      |  |    value    |
 
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 
  
  Meaning of bits in value:
+
Description: The AFI command provides the address family for
 +
subsequent addresses in the stream (until a different AFI command is
 +
given).
  
      Bit 7: Destination is unreachable.
+
It is an error if the receiver does not support the address family.
      Bit 6: Split Horizon concealed route.
 
  
  Default: All bits zero.
+
=== Subnetmask Command ===
  
  Description: The flags0 command provides a way to set a number of
+
Format: 0 1 2 3 4 5 6 7   0 1 2 3 4 5 6 7
   flags.  The only defined flags, bits 6 and 7, can be used to provide
+
        +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+
  more information about a route with a metric of infinity. A router
+
        |        3      |  |    count    |
  that receives a flag that it does not support should ignore the flag.
+
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
  The command is called flags0 to permit the definition of additional
 
  flag commands in the future (flags1, etc.).
 
  
  This is an experimental command, and may be changed in the future.
+
Additional argument, with AFI = IP:
  
3.6 Infinity Command
+
0                  1                  2                  3
 +
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 +
| Subnet mask                                                  |
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  
  Format:  0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
+
Count is 0 or 1.
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 
          |        6      |  |    value    |
 
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 
  
  Value is the infinity, as an unsigned value ranging from 1 to 255.
+
Default: Assume that following routes are to networks, and use a mask
 +
of the network mask of each route's destination.
  
 +
Description: The Subnetmask command provides the subnet mask to use
 +
for subsequent routes.  There are some requirements on the bits in
 +
the subnetmask: bits 0 through 7 must be 1, and all of the bits must
 +
not be 1.
  
 +
If the count is 0, then no subnet mask applies, assume that the
 +
following routes are to networks, and use a mask of the network mask
 +
of each route's destination.  If count is 1, then a subnet mask
 +
should be in the data stream, of an appropriate size given the
 +
address family.
  
Waitzman, Partridge & Deering                                  [Page 5]
+
It is an error for count not to equal 0 or 1.
  
RFC 1075      Distance Vector Multicast Routing Protocol  November 1988
+
Subnetmasks should not be sent outside of the appropriate network.
  
 +
See [6] for more information regarding IP subnetting.
  
  Default: Value = 16.
+
=== Metric Command ===
  
   Description: The infinity command defines the infinity for subsequent
+
Format:  0 1 2 3 4 5 6 7   0 1 2 3 4 5 6 7
  metrics in the stream.
+
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 +
        |        4      |  |    value    |
 +
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
  
  It is an error for infinity to be zero, or less than the current
+
Value is the metric, as an unsigned value ranging from 1 to 255.
  metric.
 
  
3.7 Destination Address (DA) Command
+
Default: None.
  
  Format: 0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
+
Description: The metric command provides the metric to subsequent
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
+
destinations. The metric is relative to the router that sent this
          |        7      | |    count    |
+
DVMRP routing update.
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 
  
  Array of 'count' additional arguments, with AFI = IP:
+
It is an error for metric to equal 0.
  
    0                  1                  2                  3
+
=== Flags0 Command ===
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
  | Destination Address1                                          |
 
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
  
    0                  1                  2                  3
+
Format:  0 1 2 3 4 5 6 7   0 1 2 3 4 5 6 7
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+
        +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
        |        5      |  |     value    |
  | Destination Address2                                          |
+
        +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
  
  Count is the number of addresses supplied, from 1 to 255.  The length
+
Meaning of bits in value:
  of the addresses depends upon the current address family.  The number
 
  of addresses supplied is subject to the message length limitation of
 
  512 bytes.
 
  
   Default: None.
+
   Bit 7: Destination is unreachable.
 +
  Bit 6: Split Horizon concealed route.
  
  Description: The DA command provides a list of destinations.  While
+
Default: All bits zero.
  this format can express routes to hosts, the routing algorithm only
 
  supports network and subnetwork routing.  The current metric,
 
  infinity, flags0 and subnetmask, when combined with a single
 
  destination address, define a route.  The current metric must be less
 
  than or equal to the current infinity.
 
  
  It is an error for count to equal 0.
+
Description: The flags0 command provides a way to set a number of
 +
flags.  The only defined flags, bits 6 and 7, can be used to provide
 +
more information about a route with a metric of infinity.  A router
 +
that receives a flag that it does not support should ignore the flag.
 +
The command is called flags0 to permit the definition of additional
 +
flag commands in the future (flags1, etc.).
  
 +
This is an experimental command, and may be changed in the future.
  
 +
=== Infinity Command ===
  
 +
Format:  0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
 +
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 +
        |        6      |  |    value    |
 +
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
  
 +
Value is the infinity, as an unsigned value ranging from 1 to 255.
  
 +
Default: Value = 16.
  
 +
Description: The infinity command defines the infinity for subsequent
 +
metrics in the stream.
  
Waitzman, Partridge & Deering                                  [Page 6]
+
It is an error for infinity to be zero, or less than the current
 +
metric.
  
RFC 1075      Distance Vector Multicast Routing Protocol  November 1988
+
=== Destination Address (DA) Command ===
  
 +
Format:  0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
 +
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 +
        |        7      |  |    count    |
 +
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
  
3.8 Requested Destination Address (RDA) Command
+
Array of 'count' additional arguments, with AFI = IP:
  
  Format: 0 1 2 3 4 5 6 7   0 1 2 3 4 5 6 7
+
  0                  1                  2                  3
          +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+
+
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
          |        8      |  |     count    |
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+
+
| Destination Address1                                          |
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  
  Array of 'count' additional arguments, with AFI = IP:
+
0                  1                  2                  3
 +
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 +
| Destination Address2                                          |
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  
    0                  1                   2                  3
+
Count is the number of addresses supplied, from 1 to 255.  The length
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+
of the addresses depends upon the current address family.  The number
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
of addresses supplied is subject to the message length limitation of
  | Requested Destination Address1                                |
+
512 bytes.
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
  
    0                  1                  2                  3
+
Default: None.
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
  | Requested Destination Address2                                |
 
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
  
  Count is the number of addresses supplied, from 0 to 255.  The length
+
Description: The DA command provides a list of destinations.  While
  of the addresses depends upon the current address family.  The number
+
this format can express routes to hosts, the routing algorithm only
  of addresses supplied is subject to the message length limitation of
+
supports network and subnetwork routing.  The current metric,
  512 bytes.
+
infinity, flags0 and subnetmask, when combined with a single
 +
destination address, define a route.  The current metric must be less
 +
than or equal to the current infinity.
  
  Default: None.
+
It is an error for count to equal 0.
  
  Description: The RDA command provides a list of destinations for whom
+
=== Requested Destination Address (RDA) Command ===
  routes are requested.  A routing request for all routes is encoded by
 
  using a count = 0.
 
  
3.9 Non Membership Report (NMR) Command
+
Format:  0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
 +
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 +
        |        8      |  |    count    |
 +
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
  
  Format: 0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
+
Array of 'count' additional arguments, with AFI = IP:
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 
          |        9      |  |    count    |
 
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 
  
    Array of 'count' additional arguments, with AFI = IP:
+
0                  1                  2                  3
 +
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 +
| Requested Destination Address1                                |
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  
    0                  1                  2                  3
+
0                  1                  2                  3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  | Multicast Address1                                            |
+
| Requested Destination Address2                                |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  
 +
Count is the number of addresses supplied, from 0 to 255.  The length
 +
of the addresses depends upon the current address family.  The number
 +
of addresses supplied is subject to the message length limitation of
 +
512 bytes.
  
 +
Default: None.
  
 +
Description: The RDA command provides a list of destinations for whom
 +
routes are requested.  A routing request for all routes is encoded by
 +
using a count = 0.
  
 +
=== Non Membership Report (NMR) Command ===
  
Waitzman, Partridge & Deering                                  [Page 7]
+
Format:  0 1 2 3 4 5 6 7   0 1 2 3 4 5 6 7
 +
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
 +
        |        9      |  |    count    |
 +
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
  
RFC 1075      Distance Vector Multicast Routing Protocol November 1988
+
  Array of 'count' additional arguments, with AFI = IP:
  
 +
0                  1                  2                  3
 +
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 +
| Multicast Address1                                            |
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  
    0                  1                  2                  3
+
0                  1                  2                  3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  | Hold Down Time1                                              |
+
| Hold Down Time1                                              |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  
    0                  1                  2                  3
+
0                  1                  2                  3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  | Multicast Address2                                            |
+
| Multicast Address2                                            |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  
    0                  1                  2                  3
+
0                  1                  2                  3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  | Hold Down Time2                                              |
+
| Hold Down Time2                                              |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  
  Count is the number of Multicast Address and Hold Down Time pairs
+
Count is the number of Multicast Address and Hold Down Time pairs
  supplied, from 1 to 255.  The length of the addresses depends upon
+
supplied, from 1 to 255.  The length of the addresses depends upon
  the current address family.  The number of pairs supplied is subject
+
the current address family.  The number of pairs supplied is subject
  to the message length limitation of 512 bytes.
+
to the message length limitation of 512 bytes.
  
  Default: None.
+
Default: None.
  
  Description: The NMR command is experimental, and has not been tested
+
Description: The NMR command is experimental, and has not been tested
  in an implementation.  Each multicast address and hold down time pair
+
in an implementation.  Each multicast address and hold down time pair
  is called a non-membership report.  The non-membership report tells
+
is called a non-membership report.  The non-membership report tells
  the receiving router that the sending router has no descendent group
+
the receiving router that the sending router has no descendent group
  members in the given group.  Based on this information the receiving
+
members in the given group.  Based on this information the receiving
  router can stop forwarding datagrams to the sending router for the
+
router can stop forwarding datagrams to the sending router for the
  particular multicast address(es) listed.  The hold down time
+
particular multicast address(es) listed.  The hold down time
  indicates, in seconds, how long the NMR is valid.
+
indicates, in seconds, how long the NMR is valid.
  
  It is an error for count to equal 0.
+
It is an error for count to equal 0.
  
  The only other commands in a message that has NMR commands can be the
+
The only other commands in a message that has NMR commands can be the
  AFI, flags0, and NULL commands.  No relevant flags for the flags0
+
AFI, flags0, and NULL commands.  No relevant flags for the flags0
  command are currently defined, but that may change in the future.
+
command are currently defined, but that may change in the future.
  
 
3.10 Non Membership Report Cancel (NMR Cancel) Command
 
3.10 Non Membership Report Cancel (NMR Cancel) Command
  
  Format:  0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
+
Format:  0 1 2 3 4 5 6 7    0 1 2 3 4 5 6 7
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
+
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
          |      10      |  |    count    |
+
        |      10      |  |    count    |
          +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
+
        +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
  
 +
Array of 'count' additional arguments, with AFI = IP:
  
 +
0                  1                  2                  3
 +
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 +
| Multicast Address1                                            |
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  
 +
0                  1                  2                  3
 +
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 +
| Multicast Address2                                            |
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  
 +
Count is the number of Multicast Addresses supplied, from 1 to 255.
 +
The length of the addresses depends upon the current address family.
 +
The number of addresses supplied is subject to the message length
 +
limitation of 512 bytes.
  
Waitzman, Partridge & Deering                                  [Page 8]
+
Default: None.
  
RFC 1075      Distance Vector Multicast Routing Protocol November 1988
+
Description: The NMR Cancel command is experimental, and has not been
 +
tested in an implementation. For each multicast address listed, any
 +
previous corresponding non-membership reports are canceled.  When
 +
there is no corresponding non-membership report for a given multicast
 +
address, the Cancel command should be ignored for that multicast
 +
address.
  
 +
It is an error for count to equal 0.
  
    Array of 'count' additional arguments, with AFI = IP:
+
The only other commands in a message that has NMR Cancel commands can
 
+
be the AFI, flags0, and NULL commands.  No relevant flags for the
    0                  1                  2                  3
+
flags0 command are currently defined, but that may change in the
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+
future.
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
  | Multicast Address1                                            |
 
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
 
 
    0                  1                  2                  3
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
  | Multicast Address2                                            |
 
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
 
 
  Count is the number of Multicast Addresses supplied, from 1 to 255.
 
  The length of the addresses depends upon the current address family.
 
  The number of addresses supplied is subject to the message length
 
  limitation of 512 bytes.
 
 
 
  Default: None.
 
 
 
  Description: The NMR Cancel command is experimental, and has not been
 
  tested in an implementation.  For each multicast address listed, any
 
  previous corresponding non-membership reports are canceled.  When
 
  there is no corresponding non-membership report for a given multicast
 
  address, the Cancel command should be ignored for that multicast
 
  address.
 
 
 
  It is an error for count to equal 0.
 
 
 
  The only other commands in a message that has NMR Cancel commands can
 
  be the AFI, flags0, and NULL commands.  No relevant flags for the
 
  flags0 command are currently defined, but that may change in the
 
  future.
 
  
 
3.12 Examples (with bytes in '{}'), not including the message header:
 
3.12 Examples (with bytes in '{}'), not including the message header:
  
 
3.12.1 Supplying a single route to the IP address 128.2.251.231 with
 
3.12.1 Supplying a single route to the IP address 128.2.251.231 with
  a metric of 2, an infinity of 16, a subnetmask of 255.255.255.0:
+
a metric of 2, an infinity of 16, a subnetmask of 255.255.255.0:
 
 
  Subtype 1,
 
  AFI 2,  Metric 2, Infinity 16, Subnet Mask 255.255.255.0
 
  {2} {2} {4} {2}  {6} {16}    {3} {1} {255} {255} {255} {0}
 
 
 
  DA Count=1 [128.2.251.231]
 
  {7} {1} {128} {2} {251} {231}
 
 
 
 
 
 
 
 
 
  
Waitzman, Partridge & Deering                                  [Page 9]
+
Subtype 1,
 
+
AFI 2,  Metric 2, Infinity 16, Subnet Mask 255.255.255.0
RFC 1075      Distance Vector Multicast Routing Protocol  November 1988
+
{2} {2} {4} {2}  {6} {16}    {3} {1} {255} {255} {255} {0}
  
 +
DA Count=1 [128.2.251.231]
 +
{7} {1} {128} {2} {251} {231}
  
 
3.12.2 Supplying a route to the IP addresses 128.2.251.231 and
 
3.12.2 Supplying a route to the IP addresses 128.2.251.231 and
  128.2.236.2 with a metric of 2, an infinity of 16, a subnetmask of
+
128.2.236.2 with a metric of 2, an infinity of 16, a subnetmask of
  255.255.255.0:
+
255.255.255.0:
  
  Subtype 1,
+
Subtype 1,
  AFI 2,  Metric 2, Infinity 16, Subnet Mask 255.255.255.0
+
AFI 2,  Metric 2, Infinity 16, Subnet Mask 255.255.255.0
  {2} {2} {4} {2}  {6} {16}    {3} {1} 255} {255} {255} {0}
+
{2} {2} {4} {2}  {6} {16}    {3} {1} 255} {255} {255} {0}
  
  DA Count=2 [128.2.251.231] [128.2.236.2]
+
DA Count=2 [128.2.251.231] [128.2.236.2]
  {7} {1} {128} {2} {251} {231} {128} {2} {236} {2}
+
{7} {1} {128} {2} {251} {231} {128} {2} {236} {2}
  
 
3.12.3 Request for all routes to IP destinations.
 
3.12.3 Request for all routes to IP destinations.
  
  Subtype 2, AFI 2,  RDA Count = 0
+
Subtype 2, AFI 2,  RDA Count = 0
              {2} {2} {8} {0}
+
          {2} {2} {8} {0}
  
 
3.12.4 Non Membership Report for groups 224.2.3.1 and 224.5.4.6 with a
 
3.12.4 Non Membership Report for groups 224.2.3.1 and 224.5.4.6 with a
  hold down time of 20 seconds, and group 224.7.8.5 with a hold down
+
hold down time of 20 seconds, and group 224.7.8.5 with a hold down
  time of 40 seconds.
+
time of 40 seconds.
  
  Subtype 3,
+
Subtype 3,
  AFI 2,  NMR Count = 3 [224.2.3.1, 20]
+
AFI 2,  NMR Count = 3 [224.2.3.1, 20]
  {2} {2} {10} {3} {224} {2} {3} {1} {0} {0} {0} {20}
+
{2} {2} {10} {3} {224} {2} {3} {1} {0} {0} {0} {20}
  
  [224.5.4.6, 20] [224.7.8.5, 40]
+
[224.5.4.6, 20] [224.7.8.5, 40]
  {224} {5} {4} {6} {0} {0} {0} {20} {224} {7} {8} {5} {0} {0} {0} {40}
+
{224} {5} {4} {6} {0} {0} {0} {20} {224} {7} {8} {5} {0} {0} {0} {40}
  
 
3.13 Summary of Commands
 
3.13 Summary of Commands
  
 +
Value  Name            Other commands allowed in same message
 +
-----  ----            ---------------------------------------
 +
0      Null            Null, AFI, Subnetmask, Metric, Flags0,
 +
                        Infinity, DA, RDA, NMR, NMR-cancel
  
  Value  Name            Other commands allowed in same message
+
2      AFI            Null, AFI, Subnetmask, Metric, Flags0,
  -----  ----            ---------------------------------------
+
                        Infinity, DA, RDA, NMR, NMR-cancel
  0      Null            Null, AFI, Subnetmask, Metric, Flags0,
 
                          Infinity, DA, RDA, NMR, NMR-cancel
 
 
 
  2      AFI            Null, AFI, Subnetmask, Metric, Flags0,
 
                          Infinity, DA, RDA, NMR, NMR-cancel
 
 
 
  3      Subnetmask      Null, AFI, Subnetmask, Metric, Flags0,
 
                          Infinity, DA, RDA
 
 
 
  4      Metric          Null, AFI, Subnetmask, Metric, Flags0,
 
                          Infinity, DA
 
 
 
  5      Flags0          Null, AFI, Subnetmask, Metric, Flags0,
 
                          Infinity, DA
 
 
 
 
 
  
 +
3      Subnetmask      Null, AFI, Subnetmask, Metric, Flags0,
 +
                        Infinity, DA, RDA
  
 +
4      Metric          Null, AFI, Subnetmask, Metric, Flags0,
 +
                        Infinity, DA
  
Waitzman, Partridge & Deering                                  [Page 10]
+
5      Flags0          Null, AFI, Subnetmask, Metric, Flags0,
 +
                        Infinity, DA
  
RFC 1075       Distance Vector Multicast Routing Protocol  November 1988
+
6       Infinity        Null, AFI, Subnetmask, Metric, Flags0,
 +
                        Infinity, DA
  
 +
7      DA              Null, AFI, Subnetmask, Metric, Flags0,
 +
                        Infinity, DA
  
  6       Infinity        Null, AFI, Subnetmask, Metric, Flags0,
+
8       RDA            Null, AFI, Subnetmask, Flags0, RDA
                          Infinity, DA
 
  
  7       DA              Null, AFI, Subnetmask, Metric, Flags0,
+
9       NMR            Null, AFI, Flags0, NMR
                          Infinity, DA
 
  
  8      RDA            Null, AFI, Subnetmask, Flags0, RDA
+
10      NMR-cancel      Null, AFI, Flags0, NMR-cancel
  
  9      NMR            Null, AFI, Flags0, NMR
+
== Tunnels ==
  
  10      NMR-cancel      Null, AFI, Flags0, NMR-cancel
+
A tunnel is a method for sending datagrams between routers separated
 +
by gateways that do not support multicasting routing.  It acts as a
 +
virtual network between two routers.  For instance, a router running
 +
at Stanford, and a router running at BBN might be connected with a
 +
tunnel to allow multicast datagrams to traverse the Internet.  We
 +
consider tunnels to be a transitional hack.
  
 +
Tunneling is done with a weakly encapsulated normal multicasted
 +
datagram.  The weak encapsulation uses a special two element IP loose
 +
source route [5].  (This form of encapsulation is preferable to
 +
"strong" encapsulation, i.e., prepending an entire new IP header,
 +
because it does not require the tunnel end-points to know each
 +
other's maximum reassembly buffer size.  It also has the benefit of
 +
correct behavior of the originator's time-to-live value and any other
 +
IP options present.)
  
4. Tunnels
+
A tunnel has a local end-point, remote end-point, metric, and
 +
threshold associated with it.  The routers at each end of the tunnel
 +
need only agree upon the local and remote end-points.  See section 8
 +
for information on how tunnels are configured.  Because the number of
 +
intermediate gateways between the end-points of a tunnel is unknown,
 +
additional research is needed to determine appropriate metrics and
 +
thresholds.
  
  A tunnel is a method for sending datagrams between routers separated
+
To send a datagram on a tunnel, the following occurs:
  by gateways that do not support multicasting routing.  It acts as a
 
  virtual network between two routers.  For instance, a router running
 
  at Stanford, and a router running at BBN might be connected with a
 
  tunnel to allow multicast datagrams to traverse the Internet.  We
 
  consider tunnels to be a transitional hack.
 
  
   Tunneling is done with a weakly encapsulated normal multicasted
+
   - A null IP option is inserted into the datagram.  This provides
  datagram.  The weak encapsulation uses a special two element IP loose
+
    preferred alignment for the loose source route IP option.
  source route [5].  (This form of encapsulation is preferable to
 
  "strong" encapsulation, i.e., prepending an entire new IP header,
 
  because it does not require the tunnel end-points to know each
 
  other's maximum reassembly buffer size.  It also has the benefit of
 
  correct behavior of the originator's time-to-live value and any other
 
  IP options present.)
 
  
   A tunnel has a local end-point, remote end-point, metric, and
+
   - A two element loose source route IP option is inserted into
  threshold associated with it.  The routers at each end of the tunnel
+
    the datagram.
  need only agree upon the local and remote end-points.  See section 8
 
  for information on how tunnels are configured.  Because the number of
 
  intermediate gateways between the end-points of a tunnel is unknown,
 
  additional research is needed to determine appropriate metrics and
 
  thresholds.
 
  
   To send a datagram on a tunnel, the following occurs:
+
   - The source route pointer is set to point to the second element
  
      - A null IP option is inserted into the datagram.  This provides
+
    in the source route.
        preferred alignment for the loose source route IP option.
 
  
      - A two element loose source route IP option is inserted into
+
  - The first element in the source route is replaced with the
        the datagram.
+
    address of the originating host (the original IP source
 +
    address).
  
      - The source route pointer is set to point to the second element
+
  - The second element in the source route is replaced with the
 +
    multicast destination address provided by the originating host
 +
    (the original IP destination address).
  
 +
  - The IP source address is replaced with the address of the
 +
    router's appropriate outgoing physical interface (the local
 +
    tunnel end-point).
  
 +
  - The IP destination address is replaced with an address of the
 +
    remote router (the remote tunnel end-point).
  
Waitzman, Partridge & Deering                                  [Page 11]
+
  - The datagram is transmitted to the remote router using
 +
    non-multicast routing algorithms.
  
RFC 1075      Distance Vector Multicast Routing Protocol November 1988
+
Intermediate, non-multicast gateways will route the tunneled datagram
 +
to the remote tunnel end-point. Because the datagram's IP source
 +
address has been replaced with the address of the local tunnel end-
 +
point, ICMP error messages will go to the originating multicast
 +
router.  This behavior is desired, because a host that sends a
 +
multicast datagram, which a multicast router decides to tunnel,
 +
should not be aware of the use of the tunnel.  If the datagram's IP
 +
source address were not changed when encapsulating the datagram, any
 +
ICMP errors would be sent to the originating host.
  
 +
When the remote tunnel end-point receives the tunneled datagram, the
 +
following occurs:
  
        in the source route.
+
  - The IP source address is replaced with the first element in the
 +
    loose source route.
  
      - The first element in the source route is replaced with the
+
  - The IP destination address is replaced with the second element
        address of the originating host (the original IP source
+
    in the loose source route.
        address).
 
  
      - The second element in the source route is replaced with the
+
  - The null option and the loose source route option are removed
        multicast destination address provided by the originating host
+
    from the datagram.  This is needed because a host should not
        (the original IP destination address).
+
    be able to tell that it has received a datagram that was sent
 +
    through a tunnel.
  
      - The IP source address is replaced with the address of the
+
Because no specific network is associated with a tunnel, there are no
        router's appropriate outgoing physical interface (the local
+
local group memberships to be tracked for a tunnel.  The only
        tunnel end-point).
+
neighbor on a tunnel can be the remote end-point. Routing messages
 +
should be exchanged through tunnels, but a route is not created for a
  
      - The IP destination address is replaced with an address of the
+
tunnel.  The routing messages should be sent as unicast datagrams
        remote router (the remote tunnel end-point).
+
directly to the remote tunnel end-point; they should not use an IP
 +
loose source route.
  
      - The datagram is transmitted to the remote router using
+
Justification for using the loose source route and record option for
        non-multicast routing algorithms.
+
tunneling:
  
   Intermediate, non-multicast gateways will route the tunneled datagram
+
   We considered defining our own IP option to handle tunneling, but
   to the remote tunnel end-pointBecause the datagram's IP source
+
  we are worried that intermediate gateways do not transparently
   address has been replaced with the address of the local tunnel end-
+
   pass IP options that are unknown to themDatagrams using a new
  point, ICMP error messages will go to the originating multicast
+
   option would not traverse the InternetIt would be better for us
  routerThis behavior is desired, because a host that sends a
+
   if we could create a new IP option, but it won't work presently.
   multicast datagram, which a multicast router decides to tunnel,
+
   Recall that this is a transition design to allow us to experiment
  should not be aware of the use of the tunnel. If the datagram's IP
+
   in the current environment.
   source address were not changed when encapsulating the datagram, any
 
   ICMP errors would be sent to the originating host.
 
  
   When the remote tunnel end-point receives the tunneled datagram, the
+
   The tunneled packet containing the LSRR option has the following
   following occurs:
+
   features:
  
      - The IP source address is replaced with the first element in the
+
                  Field            Value
        loose source route.
+
                  -----            --------------------
 +
                  src address    = src gateway address
 +
                  dst address    = dst gateway address
 +
                  LSRR pointer  = points to LSRR address 2
 +
                  LSRR address 1 = src host
 +
                  LSRR address 2 = multicast destination
  
      - The IP destination address is replaced with the second element
+
  Two questions raised about using the LSRR option for tunnels are
        in the loose source route.
+
  "Can intermediate gateways ignore the option?", and "Can the
 +
  destination gateway properly detect that the LSRR is used for a
 +
  tunnel?".
  
      - The null option and the loose source route option are removed
+
  When an intermediate gateway receives a datagram, it examines the
        from the datagramThis is needed because a host should not
+
  destination addressFor a tunneled datagram, the destination
        be able to tell that it has received a datagram that was sent
+
  address will not match an address of the receiving gateway.
        through a tunnel.
+
  Therefore, the LSRR option will not be examined, and the
 +
  intermediate gateway will forward the datagram on to its next hop
 +
  for the destination address.
  
   Because no specific network is associated with a tunnel, there are no
+
   When the destination gateway receives a datagram, it notes that
   local group memberships to be tracked for a tunnel.  The only
+
  the datagram destination address matches one of its own address.
   neighbor on a tunnel can be the remote end-pointRouting messages
+
  It will then look at the next LSRR option address, since the
   should be exchanged through tunnels, but a route is not created for a
+
  source route is not exhausted.  That address is a multicast
 +
  address.  Since hosts are forbidden from putting multicast
 +
  addresses into source routes, the gateway can infer that the LSRR
 +
   is for tunneling.  The weakness here is that perhaps there is some
 +
   other meaning for the multicast address in the LSRRNo other
 +
   meaning is currently defined.
  
 +
  If a tunneled datagram is by error addressed to a destination
 +
  gateway that does not support multicasting, then the destination
 +
  gateway will try to find a route to the multicast address.  This
 +
  will fail, and an ICMP destination unreachable error message will
 +
  be sent to the tunneled datagram's source.  Since the source
 +
  address in the tunneled datagram has been adjusted to be the
 +
  address of the source multicast gateway, the ICMP errors will not
 +
  go to the originating host, which has no knowledge of tunnels.
  
 +
== Routing Algorithm ==
  
Waitzman, Partridge & Deering                                  [Page 12]
+
This section provides a terse description of the distance-vector
 +
routing algorithm.  See [1] for more information.
  
RFC 1075      Distance Vector Multicast Routing Protocol  November 1988
+
While DVMRP can express routes to individual hosts, the forwarding
 +
and routing algorithms only support network and subnetwork routing.
  
 +
In the discussion below, the term "virtual interface" is used to
 +
refer to a physical interface or a tunnel local end-point.  A
 +
physical interface is a network interface, for instance, an Ethernet
 +
card.  A route to a destination will be through a virtual interface.
 +
The term "virtual network" is used to refer to a physical network or
 +
a tunnel, with the qualification that routes only reference physical
 +
networks.
  
  tunnelThe routing messages should be sent as unicast datagrams
+
The TRPB algorithm forwards multicast datagrams by computing the
  directly to the remote tunnel end-point; they should not use an IP
+
shortest (reverse) path tree from the source (physical) network to
  loose source route.
+
all possible recipients of the datagramEach multicast router must
 +
determine its place in the tree, relative to the particular source,
 +
and then determine which of its virtual interfaces are in the
 +
shortest path tree.  The datagram is forwarded out these virtual
 +
interfaces.  The process of excluding virtual interfaces not in the
 +
shortest path tree is called "pruning."
  
  Justification for using the loose source route and record option for
+
Consider a virtual network.  Using Deering's terminology [3], a
  tunneling:
+
router is called the "parent" of the virtual network if that router
 +
is responsible for forwarding datagrams onto that virtual network
 +
through its connecting virtual interface.  The virtual network can
 +
also be considered a "child" virtual network of the router.  Using
 +
the child information, routers can do Reverse Path Broadcasting
 +
(RPB).
  
      We considered defining our own IP option to handle tunneling, but
+
Unnecessary datagrams may still be sent onto some networks, because
      we are worried that intermediate gateways do not transparently
+
there might not be any recipients for those datagrams on the
      pass IP options that are unknown to themDatagrams using a new
+
networks.  There are two kinds of recipients: hosts that are members
      option would not traverse the Internet.  It would be better for us
+
of a particular multicast group, and multicast routersIf no
      if we could create a new IP option, but it won't work presently.
+
multicast routers on a virtual network consider that virtual network
      Recall that this is a transition design to allow us to experiment
+
uptree to a given source, then that virtual network is a "leaf"
      in the current environment.
 
  
      The tunneled packet containing the LSRR option has the following
+
network.  If a network is a leaf for a given source, and there are no
      features:
+
members of a particular group on the network, then there are no
 +
recipients for datagrams from the source to the group on that
 +
network.  That network's parent router can forgo sending those
 +
datagrams on that network, or "truncate" the shortest path tree.  The
 +
algorithm that tracks and uses this information is the Truncated
 +
Reverse Path Broadcasting (TRPB) algorithm.
  
                      Field            Value
+
Determining which virtual networks are leaves is not simple.  If any
                      -----            --------------------
+
neighboring router considers a given virtual network in the path to a
                      src address    = src gateway address
+
given destination, then the virtual network is not a leaf.
                      dst address    = dst gateway address
+
Otherwise, it is a leaf.  This is a voting function.  If a route,
                      LSRR pointer  = points to LSRR address 2
+
with a metric poisoned by split horizon processing, is sent by some
                      LSRR address 1 = src host
+
router, then that router uses that virtual network as the uptree path
                      LSRR address 2 = multicast destination
+
for that route (i.e.  that router votes that the virtual network is
 +
not a leaf relative to the route's destination).  Since the number of
 +
routers on a virtual network is dynamic, and since all received
 +
routing updates are not kept by routers, a heuristic is needed to
 +
determine when a network is a leaf.  DVMRP samples the routing
 +
updates on a virtual interface while a hold down timer is running,
 +
which is for a time period of LEAF_TIMEOUT seconds.  There is one
 +
hold down timer per virtual interface.  If a route is received with a
 +
metric poisoned by split horizon processing while the hold down timer
 +
is running, or at any other time, then the appropriate virtual
 +
interface for that route is "spoiled"-- it is not a leaf.  For every
 +
route, any virtual interface that was not spoiled by the time the
 +
hold down timer expires is considered a leaf.
  
      Two questions raised about using the LSRR option for tunnels are
+
For a description of an even better forwarding algorithm, the Reverse
      "Can intermediate gateways ignore the option?", and "Can the
+
Path Multicasting algorithm, see [3].
      destination gateway properly detect that the LSRR is used for a
 
      tunnel?".
 
  
      When an intermediate gateway receives a datagram, it examines the
+
A route entry should have the following in it:
      destination address.  For a tunneled datagram, the destination
+
        - Destination address (a source of multicast datagrams) *
      address will not match an address of the receiving gateway.
+
        - Subnet mask of the destination address               *
      Therefore, the LSRR option will not be examined, and the
+
        - Next-hop router to the destination address
      intermediate gateway will forward the datagram on to its next hop
+
        - Virtual interface to the next-hop router              *
      for the destination address.
+
        - List of child virtual interfaces                      *
 +
        - List of leaf virtual interfaces                      *
 +
        - A dominant router address for each virtual interface
 +
        - A subordinate router address for each virtual interface
 +
        - Timer
 +
        - Set of flags that indicate the state of the entry
 +
        - Metric
 +
        - Infinity
  
      When the destination gateway receives a datagram, it notes that
+
The lines that are marked with '*' indicate fields that are directly
      the datagram destination address matches one of its own address.
+
used by the forwarding algorithm.
      It will then look at the next LSRR option address, since the
 
      source route is not exhausted.  That address is a multicast
 
      address.  Since hosts are forbidden from putting multicast
 
      addresses into source routes, the gateway can infer that the LSRR
 
      is for tunneling.  The weakness here is that perhaps there is some
 
      other meaning for the multicast address in the LSRR.  No other
 
      meaning is currently defined.
 
  
 +
The lists of child and leaf interfaces can be implemented as bitmaps.
  
 +
=== Sending Routing Messages ===
  
 +
DVMRP routing messages can be used for three basic purposes: to
 +
periodically supply all routing information, to gratuitously supply
 +
routing information for recently changed routes, or supply some or
 +
all routes in response to a request.
  
Waitzman, Partridge & Deering                                  [Page 13]
+
Routing messages sent to physical interfaces should have an IP TTL of
 +
1.
  
RFC 1075      Distance Vector Multicast Routing Protocol November 1988
+
A number of timeouts and rates are used by the routing and forwarding
 +
algorithms. See section 6 for their values.
  
 +
Rules for when to send routing messages:
  
      If a tunneled datagram is by error addressed to a destination
+
  - Every FULL_UPDATE_RATE seconds a router should send out
      gateway that does not support multicasting, then the destination
+
    DVMRP messages with all of its routing information to all of its
      gateway will try to find a route to the multicast addressThis
+
    virtual interfacesTo prevent routers from synchronizing when
      will fail, and an ICMP destination unreachable error message will
+
    they send updates, a real-time timer must be used.
      be sent to the tunneled datagram's source.  Since the source
 
      address in the tunneled datagram has been adjusted to be the
 
      address of the source multicast gateway, the ICMP errors will not
 
      go to the originating host, which has no knowledge of tunnels.
 
  
5. Routing Algorithm
+
  - Whenever a route is changed, a routing update should be sent
 +
    for that route.  Some delay must occur between triggered
 +
    updates to avoid flooding the network with triggered updates;
 +
    intervals of TRIGGERED_UPDATE_RATE seconds is suggested.
  
   This section provides a terse description of the distance-vector
+
   - A request for all routes should be sent on all virtual
  routing algorithm.  See [1] for more information.
+
    interfaces when an DVMRP router is restarted.
  
   While DVMRP can express routes to individual hosts, the forwarding
+
   - If possible, when a DVMRP router is about to terminate
  and routing algorithms only support network and subnetwork routing.
+
    execution, it should send out DVMRP messages with metrics
 +
    equal to infinity for all of its routes, on all virtual
 +
    interfaces.
  
  In the discussion below, the term "virtual interface" is used to
+
When sending to routers connected via networks that support
  refer to a physical interface or a tunnel local end-pointA
+
multicasting, the messages should be multicast to address 224.0.0.4.
  physical interface is a network interface, for instance, an Ethernet
+
Therefore, routers must listen to multicast address 224.0.0.4 on
  card.  A route to a destination will be through a virtual interface.
+
every physical interface that supports multicastingIf multicasting
  The term "virtual network" is used to refer to a physical network or
+
isn't supported, broadcasting can be used.  As already mentioned,
  a tunnel, with the qualification that routes only reference physical
+
routing updates to tunnels should be sent as unicast datagrams to the
  networks.
+
remote end-point of the tunnel.
  
  The TRPB algorithm forwards multicast datagrams by computing the
+
When sending routing messages, except in response to a specific route
  shortest (reverse) path tree from the source (physical) network to
+
request (via RDA command with a non-zero count), poisoned split
  all possible recipients of the datagramEach multicast router must
+
horizon processing must be doneThis means that given a route that
  determine its place in the tree, relative to the particular source,
+
uses network X, routing updates sent to network X must include that
  and then determine which of its virtual interfaces are in the
+
route with the metric equal to the infinity and should include the
  shortest path tree.  The datagram is forwarded out these virtual
 
  interfaces.  The process of excluding virtual interfaces not in the
 
  shortest path tree is called "pruning."
 
  
  Consider a virtual network.  Using Deering's terminology [3], a
+
appropriate flag set in a FLAGS0 command.
  router is called the "parent" of the virtual network if that router
 
  is responsible for forwarding datagrams onto that virtual network
 
  through its connecting virtual interface.  The virtual network can
 
  also be considered a "child" virtual network of the router.  Using
 
  the child information, routers can do Reverse Path Broadcasting
 
  (RPB).
 
  
  Unnecessary datagrams may still be sent onto some networks, because
+
Poisoned split horizon is one way to reduce the likelihood of routing
  there might not be any recipients for those datagrams on the
+
loops.  Another method, not available in RIP, is to choose a better
  networksThere are two kinds of recipients: hosts that are members
+
infinity in a route.  For routes propagated in a small, but well
  of a particular multicast group, and multicast routersIf no
+
connected, network an infinity smaller than 16 might be better.  The
  multicast routers on a virtual network consider that virtual network
+
smaller the infinity, the less time a counting-to-infinity event will
  uptree to a given source, then that virtual network is a "leaf"
+
takeIn traversing a wide internet, an infinity of 16 might be too
 +
smallAt the cost of a longer counting-to-infinity event, the
 +
infinity can be increased.
  
 +
One concept in Internet Multicasting is to use "thresholds" to
 +
restrict which multicast datagrams exit a network.  Multicast routers
 +
on the edge of a subnetted network or autonomous system may require a
 +
datagram to have large TTL to exit a network.  This mechanism keeps
 +
most multicast datagrams within the network, reducing external
 +
traffic.  An application that wants to multicast outside of its
 +
network would need to give its multicast datagrams at least a TTL of
 +
the sum of the threshold and the distance to the edge of the network
 +
(assuming TTL is used as a hop count within the network).  A
 +
configuration option should allow specifying the threshold for both
 +
physical interfaces and tunnels.
  
 +
When a router is started, it must send out a request for all routes
 +
on each of its virtual interfaces.  The request is a message that has
 +
an RDA command with a count equal to 0 in it.
  
Waitzman, Partridge & Deering                                  [Page 14]
+
=== Receiving Routing Messages ===
  
RFC 1075      Distance Vector Multicast Routing Protocol November 1988
+
A router must know the virtual interface that a routing message
 +
arrived on. Because the routing message may be addressed to the
 +
all-multicast-routers IP address, and because of tunnels, the
 +
incoming interface can not be identified merely by examining the
 +
message's IP destination address
  
 +
For each route expressed in a routing message, the following must
 +
occur:
  
  network.  If a network is a leaf for a given source, and there are no
+
IF a metric was given for the route:
  members of a particular group on the network, then there are no
+
THEN   add in the metric of the virtual interface that the message
   recipients for datagrams from the source to the group on that
+
        arrived on.
  network.  That network's parent router can forgo sending those
 
  datagrams on that network, or "truncate" the shortest path tree.  The
 
  algorithm that tracks and uses this information is the Truncated
 
  Reverse Path Broadcasting (TRPB) algorithm.
 
  
  Determining which virtual networks are leaves is not simple.  If any
+
Lookup the route's destination address in the routing tables.
  neighboring router considers a given virtual network in the path to a
 
  given destination, then the virtual network is not a leaf.
 
  Otherwise, it is a leaf.  This is a voting function.  If a route,
 
  with a metric poisoned by split horizon processing, is sent by some
 
  router, then that router uses that virtual network as the uptree path
 
  for that route (i.e.  that router votes that the virtual network is
 
  not a leaf relative to the route's destination).  Since the number of
 
  routers on a virtual network is dynamic, and since all received
 
  routing updates are not kept by routers, a heuristic is needed to
 
  determine when a network is a leaf.  DVMRP samples the routing
 
  updates on a virtual interface while a hold down timer is running,
 
  which is for a time period of LEAF_TIMEOUT seconds.  There is one
 
  hold down timer per virtual interface.  If a route is received with a
 
  metric poisoned by split horizon processing while the hold down timer
 
  is running, or at any other time, then the appropriate virtual
 
  interface for that route is "spoiled"-- it is not a leaf.  For every
 
  route, any virtual interface that was not spoiled by the time the
 
  hold down timer expires is considered a leaf.
 
  
   For a description of an even better forwarding algorithm, the Reverse
+
IF the route doesn't exist in the tables:
  Path Multicasting algorithm, see [3].
+
THEN   try to find a route to the same network in the routing
 +
        tables.
 +
        IF that route exists in the tables:
  
   A route entry should have the following in it:
+
        THEN   IF this route came from the same router as the router
          - Destination address (a source of multicast datagrams) *
+
                that the found route came from:
          - Subnet mask of the destination address                *
+
                THEN    CONTINUE with next route.
          - Next-hop router to the destination address
+
        IF route doesn't have a metric of infinity:
          - Virtual interface to the next-hop router              *
+
                THEN    add the route to the routing tables.
          - List of child virtual interfaces                      *
+
        CONTINUE with next route.
          - List of leaf virtual interfaces                      *
 
          - A dominant router address for each virtual interface
 
          - A subordinate router address for each virtual interface
 
          - Timer
 
          - Set of flags that indicate the state of the entry
 
          - Metric
 
          - Infinity
 
  
   The lines that are marked with '*' indicate fields that are directly
+
IF this route came from the same router as the router that the found
   used by the forwarding algorithm.
+
   route came from:
 +
THEN    clear the route timer.
 +
        IF a metric was received, and it is different than the found
 +
        route's metric:
 +
        THEN    change the found route to use the new metric and
 +
                infinity.
 +
                IF the metric is equal to the infinity:
 +
                THEN    set the route timer to the
 +
                        EXPIRATION_TIMEOUT.
 +
                CONTINUE with next route.
 +
        IF the received infinity does not equal the found route's
 +
        infinity:
 +
        THEN    change the found route's infinity to be the received
 +
                infinity.
 +
                change the found route's metric to be the minimum of
 +
                the received infinity and the found route's metric.
 +
ELSE    IF a metric was received, and (it is less than the found
 +
        route's metric or (the route timer is at least halfway to the
 +
        EXPIRATION_TIMEOUT and the found route's metric equals the
 +
        received metric, and the metric is less than the received
 +
        infinity)):
 +
        THEN   change the routing tables to use the received route.
 +
                clear the route timer.
 +
CONTINUE with next route.
  
 +
=== Neighbors ===
  
 +
A list should be kept of the neighboring multicast routers on every
 +
attached network.  The information can be derived by the DVMRP
 +
routing messages that are received.  A neighbor that has not been
 +
heard from in NEIGHBOR_TIMEOUT seconds should be considered to be
 +
down.
  
 +
=== Local Group Memberships ===
  
Waitzman, Partridge & Deering                                  [Page 15]
+
As required by [2], a multicast router must keep track of group
 +
memberships on the multicast-capable networks attached to it.  Every
 +
QUERY_RATE seconds an IGMP membership request should be sent to the
 +
All Hosts multicast address (224.0.0.1) on each network by a
 +
designated router on that network.  The IGMP membership request will
  
RFC 1075      Distance Vector Multicast Routing Protocol November 1988
+
cause hosts to respond with IGMP membership reports after a small
 +
delay. Hosts will send the report for a group to the group's
 +
multicast address.
  
 +
The membership requests should have an IP TTL of 1.
  
  The lists of child and leaf interfaces can be implemented as bitmaps.
+
The routers on a network elect or "designate" a single router to do
 +
the queries.  The designated router is the router with the lowest IP
 +
address on that network.  Upon startup a router considers itself to
 +
be the designated router until it learns (presumably through routing
 +
messages) of a router with a lower address.  To learn about the group
 +
members present on a network at startup, a router should multicast a
 +
number of membership requests, separated by a small delay.  We
 +
suggest sending three requests separated by four seconds.
  
5.1 Sending Routing Messages
+
The multicast router must receive all datagrams sent to all multicast
 +
addresses.  Upon receiving an IGMP membership report for a group from
 +
an interface, it must either record the existence of that group on
 +
the interface and record the time, or update the time if the group is
 +
already recorded.  The recorded group memberships must be timed-out.
 +
If a group member report is not received for a recorded group after
 +
MEMBERSHIP_TIMEOUT seconds, the recorded group should be deleted.
  
  DVMRP routing messages can be used for three basic purposes: to
+
== Forwarding Algorithm ==
  periodically supply all routing information, to gratuitously supply
 
  routing information for recently changed routes, or supply some or
 
  all routes in response to a request.
 
  
  Routing messages sent to physical interfaces should have an IP TTL of
+
The section describes the multicast forwarding algorithm and the
  1.
+
state that must be kept for the algorithm.
  
  A number of timeouts and rates are used by the routing and forwarding
+
The forwarding algorithm is applied to determine how multicast
  algorithms.  See section 6 for their values.
+
datagrams arriving on a physical interface or a tunnel should be
 +
handled.  If multicast datagrams were flooded, a datagram received on
 +
one virtual interface would be forwarded out of every other virtual
 +
interface.  Because of redundant paths in the internet, datagrams
 +
would be duplicated.  The child and leaf information, that the
 +
routing algorithm supplies, is used to prune branches in the tree to
 +
all possible destinations.
  
  Rules for when to send routing messages:
+
In route entries, there is a dominant router address for each virtual
 +
interface.  This address is the address of some router that has a
 +
route with a lower metric (and whose metric does not equal infinity)
 +
to the destination, on that virtual interface.  The dominant router
 +
address is not set for the next-hop virtual interface.
  
      - Every FULL_UPDATE_RATE seconds a router should send out
+
Also in route entries, there is a subordinate router address for each
        DVMRP messages with all of its routing information to all of its
+
virtual interface.  This address is the address of some router that
        virtual interfaces. To prevent routers from synchronizing when
+
considers this router to be the parent of the virtual network.
        they send updates, a real-time timer must be used.
+
Therefore, the subordinate router address is not set for a virtual
 +
interface to a leaf network.
  
      - Whenever a route is changed, a routing update should be sent
+
The algorithm for manipulating the children and leaf lists in route
        for that route.  Some delay must occur between triggered
+
entries is:
        updates to avoid flooding the network with triggered updates;
 
        intervals of TRIGGERED_UPDATE_RATE seconds is suggested.
 
  
      - A request for all routes should be sent on all virtual
+
Upon router startup:
        interfaces when an DVMRP router is restarted.
+
        Create a route entry for each virtual interface, with:
 +
            - all other virtual interfaces in its child list,
 +
            - an empty leaf list,
 +
            - no dominant router addresses, and
 +
            - no subordinate router addresses.
 +
        Start a hold down timer for each virtual interface, with
 +
        a value of LEAF_TIMEOUT.
  
      - If possible, when a DVMRP router is about to terminate
+
Upon receiving a new route:
         execution, it should send out DVMRP messages with metrics
+
         Create the route entry, with:
         equal to infinity for all of its routes, on all virtual
+
            - all virtual interfaces, other than the one on which the
         interfaces.
+
              new route was received, in its child list,
 +
            - empty leaf list,
 +
            - no dominant router addresses, and
 +
            - no subordinate router addresses.
 +
         Start the hold down timer for all virtual interfaces, other
 +
        than the one on which the new route was received, with a
 +
         value of LEAF_TIMEOUT.
  
  When sending to routers connected via networks that support
+
Upon receiving a route on virtual interface V from neighbor N with a
  multicasting, the messages should be multicast to address 224.0.0.4.
+
lower metric than the one in the routing table (or the same metric as
  Therefore, routers must listen to multicast address 224.0.0.4 on
+
the one in the routing table, if N's address is less than my address
  every physical interface that supports multicasting.  If multicasting
+
for V), for that route:
  isn't supported, broadcasting can be used. As already mentioned,
+
  If V is in the child list, delete V from the child list.
  routing updates to tunnels should be sent as unicast datagrams to the
+
  If there is no dominant router for V and if V is not (now) the
  remote end-point of the tunnel.
+
  next-hop virtual interface, record N as the dominant router.
  
  When sending routing messages, except in response to a specific route
+
Upon receiving a route on virtual interface V from neighbor N with a
  request (via RDA command with a non-zero count), poisoned split
+
larger metric than the one in the routing table (or the same metric
  horizon processing must be done.  This means that given a route that
+
as the one in the routing table, if N's address is greater than my
  uses network X, routing updates sent to network X must include that
+
address for V), for that route:
  route with the metric equal to the infinity and should include the
+
  If N is the dominant router for V, delete N as the dominant router
 +
  and add V to the child list.
  
 +
Upon receiving a route from neighbor N on virtual interface V with a
 +
metric equal to infinity (the split horizon flag should also be set),
 +
for that route:
 +
  If V is in the leaf list, delete V from the leaf list.
 +
  If there is no subordinate router for V, record N as the
 +
  subordinate router.
  
 +
Upon receiving a route from neighbor N on virtual interface V with a
 +
metric other than infinity (and no split horizon flag), for that
 +
route:
  
Waitzman, Partridge & Deering                                  [Page 16]
+
  If N is the subordinate router for V, delete N as the subordinate
 +
  router and start the hold down timer for V.
  
RFC 1075      Distance Vector Multicast Routing Protocol  November 1988
+
Upon timer expiration for a virtual interface (V), for each route:
 +
  If there is no subordinate router for V, add V to the leaf list.
  
 +
Upon failure of neighbor N on virtual interface V, for each route:
 +
  If N is the dominant router for V, delete N as the dominant router
 +
  and add V to the child list.
 +
  If N is the subordinate router for V, delete N as the subordinate
 +
  router and start the hold down timer for V.
  
  appropriate flag set in a FLAGS0 command.
+
The forwarding algorithm is:
  
  Poisoned split horizon is one way to reduce the likelihood of routing
+
IF the IP TTL is less than 2:
  loops.  Another method, not available in RIP, is to choose a better
+
THEN   CONTINUE with next datagram.
  infinity in a route.  For routes propagated in a small, but well
 
  connected, network an infinity smaller than 16 might be better.  The
 
  smaller the infinity, the less time a counting-to-infinity event will
 
  take.  In traversing a wide internet, an infinity of 16 might be too
 
  small.  At the cost of a longer counting-to-infinity event, the
 
   infinity can be increased.
 
  
  One concept in Internet Multicasting is to use "thresholds" to
+
find the route to the source of the IP datagram.
  restrict which multicast datagrams exit a network.  Multicast routers
 
  on the edge of a subnetted network or autonomous system may require a
 
  datagram to have large TTL to exit a network.  This mechanism keeps
 
  most multicast datagrams within the network, reducing external
 
  traffic.  An application that wants to multicast outside of its
 
  network would need to give its multicast datagrams at least a TTL of
 
  the sum of the threshold and the distance to the edge of the network
 
  (assuming TTL is used as a hop count within the network).  A
 
  configuration option should allow specifying the threshold for both
 
  physical interfaces and tunnels.
 
  
  When a router is started, it must send out a request for all routes
+
IF no route exists:
  on each of its virtual interfaces.  The request is a message that has
+
THEN   CONTINUE with next datagram.
   an RDA command with a count equal to 0 in it.
 
  
5.2 Receiving Routing Messages
+
IF the datagram was not received on the next-hop virtual interface
 +
for the route:
 +
THEN    CONTINUE with next datagram.
  
   A router must know the virtual interface that a routing message
+
IF the datagram is tunneled:
  arrived on. Because the routing message may be addressed to the
+
THEN   replace the datagram's source address with the first address
  all-multicast-routers IP address, and because of tunnels, the
+
        in the IP loose source route.
  incoming interface can not be identified merely by examining the
+
        replace the datagram's destination address with the second
  message's IP destination address
+
        address in the IP loose source route.
 +
        delete the loose source route and the null option from the
 +
        datagram and adjust the IP header length fields to reflect
 +
        the deletion.
  
  For each route expressed in a routing message, the following must
+
If the datagram destination is group 224.0.0.0 or group 224.0.0.1:
   occur:
+
THEN   CONTINUE with next datagram.
  
  IF a metric was given for the route:
+
FOR each virtual interface V
  THEN    add in the metric of the virtual interface that the message
+
DO      IF V is in the child list for the source of the datagram:
          arrived on.
+
        THEN    IF V is not in the leaf list for the source
 +
                OR there are members of the destination group on V:
 +
                THEN    IF the IP TTL is greater then V's threshold:
 +
                        THEN    subtract 1 from the IP TTL
 +
                                forward the datagram out V
  
  Lookup the route's destination address in the routing tables.
+
== Time Values ==
  
  IF the route doesn't exist in the tables:
+
This section contains a list of the various rates and timeouts, their
  THEN    try to find a route to the same network in the routing
+
meanings, and their values. All values are in seconds.
          tables.
 
          IF that route exists in the tables:
 
  
 +
How dynamic the routing environment is effects the following rates.
 +
A lower rate will allow quicker adaptation to a change in the
 +
environment, at the cost of wasting network bandwidth.
  
 +
FULL_UPDATE_RATE = 60
 +
        - How often routing messages containing complete routing
 +
          tables are sent.
  
Waitzman, Partridge & Deering                                  [Page 17]
+
TRIGGERED_UPDATE_RATE = 5
 +
        - How often triggered routing messages may be sent out.
  
RFC 1075      Distance Vector Multicast Routing Protocol  November 1988
+
Raising the following rates and timeouts may increase the time that
 +
packets may be forwarded to a virtual interface unnecessarily.
  
 +
QUERY_RATE = 120
 +
        - How often local group membership is queried.
  
          THEN    IF this route came from the same router as the router
+
MEMBERSHIP_TIMEOUT = 2 * QUERY_RATE + 20
                  that the found route came from:
+
        - How long a local group membership is valid without
                  THEN    CONTINUE with next route.
+
          confirmation.
          IF route doesn't have a metric of infinity:
 
                  THEN    add the route to the routing tables.
 
          CONTINUE with next route.
 
  
  IF this route came from the same router as the router that the found
+
LEAF_TIMEOUT = 2 * FULL_UPDATE_RATE + 5
      route came from:
+
        - How long the hold down timer is for a virtual interface.
  THEN    clear the route timer.
 
          IF a metric was received, and it is different than the found
 
          route's metric:
 
          THEN    change the found route to use the new metric and
 
                  infinity.
 
                  IF the metric is equal to the infinity:
 
                  THEN    set the route timer to the
 
                          EXPIRATION_TIMEOUT.
 
                  CONTINUE with next route.
 
          IF the received infinity does not equal the found route's
 
          infinity:
 
          THEN    change the found route's infinity to be the received
 
                  infinity.
 
                  change the found route's metric to be the minimum of
 
                  the received infinity and the found route's metric.
 
  ELSE    IF a metric was received, and (it is less than the found
 
          route's metric or (the route timer is at least halfway to the
 
          EXPIRATION_TIMEOUT and the found route's metric equals the
 
          received metric, and the metric is less than the received
 
          infinity)):
 
          THEN    change the routing tables to use the received route.
 
                  clear the route timer.
 
  CONTINUE with next route.
 
  
5.3 Neighbors
+
Increasing the following timeouts will increase the stability of the
 +
routing algorithm, at the cost of slower reactions to changes in the
 +
routing environment.
  
  A list should be kept of the neighboring multicast routers on every
+
NEIGHBOR_TIMEOUT = 4 * FULL_UPDATE_RATE
  attached network. The information can be derived by the DVMRP
+
        - How long a neighbor is considered up without confirmation.
  routing messages that are received.  A neighbor that has not been
+
          This is important for timing out routes, and for setting
  heard from in NEIGHBOR_TIMEOUT seconds should be considered to be
+
          the children and leaf flags.
  down.
 
  
5.4 Local Group Memberships
+
EXPIRATION_TIMEOUT = 2 * FULL_UPDATE_RATE
 +
        - How long a route is considered valid without confirmation.
 +
          When this timeout expires, packets will no longer be
 +
          forwarded on the route, and routing updates will consider
 +
          this route to have a metric of infinity.
  
  As required by [2], a multicast router must keep track of group
+
GARBAGE_TIMEOUT = 4 * FULL_UPDATE_RATE
  memberships on the multicast-capable networks attached to itEvery
+
        - How long a route exists without confirmationWhen this
  QUERY_RATE seconds an IGMP membership request should be sent to the
+
          timeout expires, routing updates will no longer contain any
  All Hosts multicast address (224.0.0.1) on each network by a
+
          information on this route, and the route will be deleted.
  designated router on that network. The IGMP membership request will
 
  
 +
== Configuration options ==
  
 +
A router should be configurabled with the following information:
  
Waitzman, Partridge & Deering                                  [Page 18]
+
- Tunnel descriptions: local end-point, remote end-point, metric, and
 +
  threshold.  If no threshold is provided, the metric should be used
 +
  as the default threshold.
  
RFC 1075      Distance Vector Multicast Routing Protocol November 1988
+
- For a physical interface: metric, infinity, threshold and
 +
  subnetwork mask. If no threshold is provided, the metric should be
 +
  used as the default threshold.
  
 +
== Conclusion ==
  
  cause hosts to respond with IGMP membership reports after a small
+
This memo has presented DVMRP, an extensible distance-vector-style
  delayHosts will send the report for a group to the group's
+
routing protocol, and a TRPB routing algorithmAn implementation of
  multicast address.
+
the ideas presented in this document has been done, and is being
 +
tested.
  
  The membership requests should have an IP TTL of 1.
+
The added features in DVMRP, as compared to RIP, give it flexibility
 +
at the cost of more complex processing.  DVMRP still has the
 +
disadvantages of being a distance-vector algorithm.  Because link-
 +
state algorithms maintain much of the state information that DVMRP
 +
has to maintain in excess of what RIP needs, a multicast link-state
 +
routing protocol should be developed.
  
  The routers on a network elect or "designate" a single router to do
+
The TRPB algorithm can cause unneeded datagrams to be sent.  The
  the queries.  The designated router is the router with the lowest IP
+
Reverse Path Multicasting algorithm (RPM) [3] might be a better
  address on that network.  Upon startup a router considers itself to
+
algorithm.  The NMR and NMR-cancel DVMRP messages are designed to
  be the designated router until it learns (presumably through routing
+
support RPM.  Further research is needed on this topic.
  messages) of a router with a lower address.  To learn about the group
 
  members present on a network at startup, a router should multicast a
 
  number of membership requests, separated by a small delay.  We
 
  suggest sending three requests separated by four seconds.
 
 
 
  The multicast router must receive all datagrams sent to all multicast
 
  addresses.  Upon receiving an IGMP membership report for a group from
 
  an interface, it must either record the existence of that group on
 
  the interface and record the time, or update the time if the group is
 
  already recorded.  The recorded group memberships must be timed-out.
 
  If a group member report is not received for a recorded group after
 
  MEMBERSHIP_TIMEOUT seconds, the recorded group should be deleted.
 
 
 
6. Forwarding Algorithm
 
 
 
  The section describes the multicast forwarding algorithm and the
 
  state that must be kept for the algorithm.
 
 
 
  The forwarding algorithm is applied to determine how multicast
 
  datagrams arriving on a physical interface or a tunnel should be
 
  handled.  If multicast datagrams were flooded, a datagram received on
 
  one virtual interface would be forwarded out of every other virtual
 
  interface.  Because of redundant paths in the internet, datagrams
 
  would be duplicated.  The child and leaf information, that the
 
  routing algorithm supplies, is used to prune branches in the tree to
 
  all possible destinations.
 
 
 
  In route entries, there is a dominant router address for each virtual
 
  interface.  This address is the address of some router that has a
 
  route with a lower metric (and whose metric does not equal infinity)
 
  to the destination, on that virtual interface.  The dominant router
 
  address is not set for the next-hop virtual interface.
 
 
 
  Also in route entries, there is a subordinate router address for each
 
  virtual interface.  This address is the address of some router that
 
  considers this router to be the parent of the virtual network.
 
  Therefore, the subordinate router address is not set for a virtual
 
  interface to a leaf network.
 
 
 
 
 
 
 
Waitzman, Partridge & Deering                                  [Page 19]
 
 
 
RFC 1075      Distance Vector Multicast Routing Protocol  November 1988
 
 
 
 
 
  The algorithm for manipulating the children and leaf lists in route
 
  entries is:
 
 
 
  Upon router startup:
 
          Create a route entry for each virtual interface, with:
 
              - all other virtual interfaces in its child list,
 
              - an empty leaf list,
 
              - no dominant router addresses, and
 
              - no subordinate router addresses.
 
          Start a hold down timer for each virtual interface, with
 
          a value of LEAF_TIMEOUT.
 
 
 
  Upon receiving a new route:
 
          Create the route entry, with:
 
              - all virtual interfaces, other than the one on which the
 
                new route was received, in its child list,
 
              - empty leaf list,
 
              - no dominant router addresses, and
 
              - no subordinate router addresses.
 
          Start the hold down timer for all virtual interfaces, other
 
          than the one on which the new route was received, with a
 
          value of LEAF_TIMEOUT.
 
 
 
  Upon receiving a route on virtual interface V from neighbor N with a
 
  lower metric than the one in the routing table (or the same metric as
 
  the one in the routing table, if N's address is less than my address
 
  for V), for that route:
 
    If V is in the child list, delete V from the child list.
 
    If there is no dominant router for V and if V is not (now) the
 
    next-hop virtual interface, record N as the dominant router.
 
 
 
  Upon receiving a route on virtual interface V from neighbor N with a
 
  larger metric than the one in the routing table (or the same metric
 
  as the one in the routing table, if N's address is greater than my
 
  address for V), for that route:
 
    If N is the dominant router for V, delete N as the dominant router
 
    and add V to the child list.
 
 
 
  Upon receiving a route from neighbor N on virtual interface V with a
 
  metric equal to infinity (the split horizon flag should also be set),
 
  for that route:
 
    If V is in the leaf list, delete V from the leaf list.
 
    If there is no subordinate router for V, record N as the
 
    subordinate router.
 
 
 
  Upon receiving a route from neighbor N on virtual interface V with a
 
  metric other than infinity (and no split horizon flag), for that
 
  route:
 
 
 
 
 
 
 
Waitzman, Partridge & Deering                                  [Page 20]
 
 
 
RFC 1075      Distance Vector Multicast Routing Protocol  November 1988
 
 
 
 
 
    If N is the subordinate router for V, delete N as the subordinate
 
    router and start the hold down timer for V.
 
 
 
  Upon timer expiration for a virtual interface (V), for each route:
 
    If there is no subordinate router for V, add V to the leaf list.
 
 
 
  Upon failure of neighbor N on virtual interface V, for each route:
 
    If N is the dominant router for V, delete N as the dominant router
 
    and add V to the child list.
 
    If N is the subordinate router for V, delete N as the subordinate
 
    router and start the hold down timer for V.
 
 
 
  The forwarding algorithm is:
 
 
 
  IF the IP TTL is less than 2:
 
  THEN    CONTINUE with next datagram.
 
 
 
  find the route to the source of the IP datagram.
 
 
 
  IF no route exists:
 
  THEN    CONTINUE with next datagram.
 
 
 
  IF the datagram was not received on the next-hop virtual interface
 
  for the route:
 
  THEN    CONTINUE with next datagram.
 
 
 
  IF the datagram is tunneled:
 
  THEN    replace the datagram's source address with the first address
 
          in the IP loose source route.
 
          replace the datagram's destination address with the second
 
          address in the IP loose source route.
 
          delete the loose source route and the null option from the
 
          datagram and adjust the IP header length fields to reflect
 
          the deletion.
 
 
 
  If the datagram destination is group 224.0.0.0 or group 224.0.0.1:
 
  THEN    CONTINUE with next datagram.
 
 
 
  FOR each virtual interface V
 
  DO      IF V is in the child list for the source of the datagram:
 
          THEN    IF V is not in the leaf list for the source
 
                  OR there are members of the destination group on V:
 
                  THEN    IF the IP TTL is greater then V's threshold:
 
                          THEN    subtract 1 from the IP TTL
 
                                  forward the datagram out V
 
 
 
 
 
 
 
 
 
 
 
 
 
Waitzman, Partridge & Deering                                  [Page 21]
 
 
 
RFC 1075      Distance Vector Multicast Routing Protocol  November 1988
 
 
 
 
 
7. Time Values
 
 
 
  This section contains a list of the various rates and timeouts, their
 
  meanings, and their values.  All values are in seconds.
 
 
 
  How dynamic the routing environment is effects the following rates.
 
  A lower rate will allow quicker adaptation to a change in the
 
  environment, at the cost of wasting network bandwidth.
 
 
 
  FULL_UPDATE_RATE = 60
 
          - How often routing messages containing complete routing
 
            tables are sent.
 
 
 
  TRIGGERED_UPDATE_RATE = 5
 
          - How often triggered routing messages may be sent out.
 
 
 
  Raising the following rates and timeouts may increase the time that
 
  packets may be forwarded to a virtual interface unnecessarily.
 
 
 
  QUERY_RATE = 120
 
          - How often local group membership is queried.
 
 
 
  MEMBERSHIP_TIMEOUT = 2 * QUERY_RATE + 20
 
          - How long a local group membership is valid without
 
            confirmation.
 
 
 
  LEAF_TIMEOUT = 2 * FULL_UPDATE_RATE + 5
 
          - How long the hold down timer is for a virtual interface.
 
 
 
  Increasing the following timeouts will increase the stability of the
 
  routing algorithm, at the cost of slower reactions to changes in the
 
  routing environment.
 
 
 
  NEIGHBOR_TIMEOUT = 4 * FULL_UPDATE_RATE
 
          - How long a neighbor is considered up without confirmation.
 
            This is important for timing out routes, and for setting
 
            the children and leaf flags.
 
 
 
  EXPIRATION_TIMEOUT = 2 * FULL_UPDATE_RATE
 
          - How long a route is considered valid without confirmation.
 
            When this timeout expires, packets will no longer be
 
            forwarded on the route, and routing updates will consider
 
            this route to have a metric of infinity.
 
 
 
  GARBAGE_TIMEOUT = 4 * FULL_UPDATE_RATE
 
          - How long a route exists without confirmation.  When this
 
            timeout expires, routing updates will no longer contain any
 
            information on this route, and the route will be deleted.
 
 
 
 
 
 
 
Waitzman, Partridge & Deering                                  [Page 22]
 
 
 
RFC 1075      Distance Vector Multicast Routing Protocol  November 1988
 
 
 
 
 
8. Configuration options
 
 
 
  A router should be configurabled with the following information:
 
 
 
  - Tunnel descriptions: local end-point, remote end-point, metric, and
 
    threshold.  If no threshold is provided, the metric should be used
 
    as the default threshold.
 
 
 
  - For a physical interface: metric, infinity, threshold and
 
    subnetwork mask.  If no threshold is provided, the metric should be
 
    used as the default threshold.
 
 
 
9. Conclusion
 
 
 
  This memo has presented DVMRP, an extensible distance-vector-style
 
  routing protocol, and a TRPB routing algorithm.  An implementation of
 
  the ideas presented in this document has been done, and is being
 
  tested.
 
 
 
  The added features in DVMRP, as compared to RIP, give it flexibility
 
  at the cost of more complex processing.  DVMRP still has the
 
  disadvantages of being a distance-vector algorithm.  Because link-
 
  state algorithms maintain much of the state information that DVMRP
 
  has to maintain in excess of what RIP needs, a multicast link-state
 
  routing protocol should be developed.
 
 
 
  The TRPB algorithm can cause unneeded datagrams to be sent.  The
 
  Reverse Path Multicasting algorithm (RPM) [3] might be a better
 
  algorithm.  The NMR and NMR-cancel DVMRP messages are designed to
 
  support RPM.  Further research is needed on this topic.
 
  
 
10. Acknowledgements
 
10. Acknowledgements
  
  We would like to thank Robb Foster, Alan Dahlbom, Ross Callon, and
+
We would like to thank Robb Foster, Alan Dahlbom, Ross Callon, and
  the IETF Host Working Group for their ideas.
+
the IETF Host Working Group for their ideas.
  
 
11. Bibliography
 
11. Bibliography
  
    [1]  Hedrick, C., "Routing Information Protocol", RFC 1058, Rutgers
+
  [1]  Hedrick, C., "Routing Information Protocol", RFC 1058, Rutgers
          University, June 1988.
+
      University, June 1988.
 
 
    [2]  Deering, S., "Host Extensions for IP Multicasting", RFC 1054,
 
          Stanford University, May 1988.
 
 
 
    [3]  Deering, S., "Multicast Routing in Internetworks and Extended
 
          LANs", SIGCOMM Summer 1988 Proceedings, August 1988.
 
 
 
    [4]  Callon, R., "A Comparison of 'Link State' and 'Distance
 
 
 
 
 
 
 
Waitzman, Partridge & Deering                                  [Page 23]
 
 
 
RFC 1075      Distance Vector Multicast Routing Protocol  November 1988
 
 
 
 
 
          Vector' Routing Algorithms", DEC, November 1987.
 
 
 
    [5]  Postel, J., "Internet Protocol", RFC 791, USC/Information
 
          Sciences Institute, September 1981.
 
 
 
    [6]  Mills, D., "Toward an Internet Standard Scheme for
 
          Subnetting", RFC 940, University of Delaware, April 1985.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 +
  [2]  Deering, S., "Host Extensions for IP Multicasting", RFC 1054,
 +
      Stanford University, May 1988.
  
 +
  [3]  Deering, S., "Multicast Routing in Internetworks and Extended
 +
      LANs", SIGCOMM Summer 1988 Proceedings, August 1988.
  
 +
  [4]  Callon, R., "A Comparison of 'Link State' and 'Distance
  
 +
      Vector' Routing Algorithms", DEC, November 1987.
  
 +
  [5]  Postel, J., "Internet Protocol", RFC 791, USC/Information
 +
      Sciences Institute, September 1981.
  
Waitzman, Partridge & Deering                                  [Page 24]
+
  [6] Mills, D., "Toward an Internet Standard Scheme for
 +
      Subnetting", RFC 940, University of Delaware, April 1985.

Revision as of 13:48, 29 September 2020

Network Working Group D. Waitzman Request For Comments: 1075 C. Partridge

                                                             BBN STC
                                                          S. Deering
                                                 Stanford University
                                                       November 1988
           Distance Vector Multicast Routing Protocol

Status of this Memo

This RFC describes a distance-vector-style routing protocol for routing multicast datagrams through an internet. It is derived from the Routing Information Protocol (RIP) [1], and implements multicasting as described in RFC-1054. This is an experimental protocol, and its implementation is not recommended at this time. Distribution of this memo is unlimited.

Introduction

A draft standard for multicasting over IP networks now exists [2], but no routing protocols to support internetwork multicasting are available. This memo describes an experimental routing protocol, named DVMRP, that implements internetwork multicasting. DVMRP combines many of the features of RIP [1] with the Truncated Reverse Path Broadcasting (TRPB) algorithm described by Deering [3].

DVMRP is an "interior gateway protocol"; suitable for use within an autonomous system, but not between different autonomous systems. DVMRP is not currently developed for use in routing non-multicast datagrams, so a router that routes both multicast and unicast datagrams must run two separate routing processes. DVMRP is designed to be easily extensible and could be extended to route unicast datagrams.

DVMRP was developed to experiment with the algorithms in [3]. RIP was used as the starting point for the development because an implementation was available and distance vector algorithms are simple, as compared to link-state algorithms [4]. In addition, to allow experiments to traverse networks that do not support multicasting, a mechanism called "tunneling" was developed.

The multicast forwarding algorithm requires the building of trees based on routing information. This tree building needs more state information than RIP is designed to provide, so DVMRP is much more complicated in some places than RIP. A link-state algorithm, which already maintains much of the state needed, might prove a better basis for Internet multicasting routing and forwarding.

DVMRP differs from RIP in one very important way. RIP thinks in terms of routing and forwarding datagrams to a particular destination. The purpose of DVMRP is to keep track of the return paths to the source of multicast datagrams. To make explanation of DVMRP more consistent with RIP, the word "destination" is used instead of the more proper "source", but the reader must remember that datagrams are not forwarded to these destinations, but originate from them.

This memo is organized into the following sections:

       - A description of DVMRP is presented.
       - Tunnels are explained.
       - The routing algorithm is shown.
       - The forwarding algorithm is shown.
       - The various time values are listed.
       - Configuration information is specified.

This memo does not analyze distance-vector routing, nor fully explain the distance-vector algorithm; see [1] for more information on these topics. The process or processes that perform the routing and forwarding functions are called "routers" in this memo.

Protocol Description

DVMRP uses the Internet Group Management Protocol (IGMP) to exchange routing datagrams [2].

DVMRP datagrams are composed of two portions: a small, fixed length IGMP header, and a stream of tagged data.

The fixed length IGMP header of DVMRP messages is:

   0                   1                   2                   3
   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |Version| Type  |  Subtype      |           Checksum            |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

The version is 1.

The type for DVMRP is 3.

The subtype is one of:

1 = Response; the message provides routes to some destination(s). 2 = Request; the message requests routes to some destination(s). 3 = Non-membership report; the message provides non-membership

   report(s).

4 = Non-membership cancellation; the message cancels previous

   non-membership report(s).

The checksum is the 16-bit one's complement of the one's complement sum of the entire message, excluding the IP header. For computing the checksum, the checksum field is zeroed.

The rest of the DVMRP message is a stream of tagged data. The reason for using a stream of tagged data is to provide easy extensibility (new commands can be developed by adding new tags) and to reduce the amount of redundant data in a message. The elements in the stream, called commands, are multiples of 16 bits, for convenient alignment. The commands are organized as an eight bit command numeric code, with at least an eight bit data portion. Sixteen-bit alignment of all commands is required.

A message that has an error in it will be discarded at the point in processing where the error is detected. Any state changed due to the message contents before the error will not be restored to its previous values.

Certain commands have default values defined in their specification. As the defaults may be changed as the protocol is developed further, a cautious implementation will not send out messages that depend on defaults.

The length of DVMRP messages is limited to 512 bytes, excluding the IP header.

NULL Command

Format: 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7

       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
       |        0      |  |    Ignored    |
       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+

Description: The NULL command can be used to provide additional alignment or padding to 32 bits.

Address Family Indicator (AFI) Command

Format: 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7

       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
       |        2      |  |     family    |
       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+

Values for family:

  2 = IP address family, in which addresses are 32 bits long.

Default: Family = 2.

Description: The AFI command provides the address family for subsequent addresses in the stream (until a different AFI command is given).

It is an error if the receiver does not support the address family.

Subnetmask Command

Format: 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7

       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
       |        3      |  |     count     |
       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+

Additional argument, with AFI = IP:

0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Subnet mask | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Count is 0 or 1.

Default: Assume that following routes are to networks, and use a mask of the network mask of each route's destination.

Description: The Subnetmask command provides the subnet mask to use for subsequent routes. There are some requirements on the bits in the subnetmask: bits 0 through 7 must be 1, and all of the bits must not be 1.

If the count is 0, then no subnet mask applies, assume that the following routes are to networks, and use a mask of the network mask of each route's destination. If count is 1, then a subnet mask should be in the data stream, of an appropriate size given the address family.

It is an error for count not to equal 0 or 1.

Subnetmasks should not be sent outside of the appropriate network.

See [6] for more information regarding IP subnetting.

Metric Command

Format: 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7

       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
       |        4      |  |     value     |
       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+

Value is the metric, as an unsigned value ranging from 1 to 255.

Default: None.

Description: The metric command provides the metric to subsequent destinations. The metric is relative to the router that sent this DVMRP routing update.

It is an error for metric to equal 0.

Flags0 Command

Format: 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7

       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
       |        5      |  |     value     |
       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+

Meaning of bits in value:

  Bit 7: Destination is unreachable.
  Bit 6: Split Horizon concealed route.

Default: All bits zero.

Description: The flags0 command provides a way to set a number of flags. The only defined flags, bits 6 and 7, can be used to provide more information about a route with a metric of infinity. A router that receives a flag that it does not support should ignore the flag. The command is called flags0 to permit the definition of additional flag commands in the future (flags1, etc.).

This is an experimental command, and may be changed in the future.

Infinity Command

Format: 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7

       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
       |        6      |  |     value     |
       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+

Value is the infinity, as an unsigned value ranging from 1 to 255.

Default: Value = 16.

Description: The infinity command defines the infinity for subsequent metrics in the stream.

It is an error for infinity to be zero, or less than the current metric.

Destination Address (DA) Command

Format: 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7

       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
       |        7      |  |     count     |
       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+

Array of 'count' additional arguments, with AFI = IP:

0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Destination Address1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Destination Address2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Count is the number of addresses supplied, from 1 to 255. The length of the addresses depends upon the current address family. The number of addresses supplied is subject to the message length limitation of 512 bytes.

Default: None.

Description: The DA command provides a list of destinations. While this format can express routes to hosts, the routing algorithm only supports network and subnetwork routing. The current metric, infinity, flags0 and subnetmask, when combined with a single destination address, define a route. The current metric must be less than or equal to the current infinity.

It is an error for count to equal 0.

Requested Destination Address (RDA) Command

Format: 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7

       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
       |        8      |  |     count     |
       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+

Array of 'count' additional arguments, with AFI = IP:

0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Requested Destination Address1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Requested Destination Address2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Count is the number of addresses supplied, from 0 to 255. The length of the addresses depends upon the current address family. The number of addresses supplied is subject to the message length limitation of 512 bytes.

Default: None.

Description: The RDA command provides a list of destinations for whom routes are requested. A routing request for all routes is encoded by using a count = 0.

Non Membership Report (NMR) Command

Format: 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7

       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
       |        9      |  |     count     |
       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
Array of 'count' additional arguments, with AFI = IP:
0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Multicast Address1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Hold Down Time1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Multicast Address2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Hold Down Time2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Count is the number of Multicast Address and Hold Down Time pairs supplied, from 1 to 255. The length of the addresses depends upon the current address family. The number of pairs supplied is subject to the message length limitation of 512 bytes.

Default: None.

Description: The NMR command is experimental, and has not been tested in an implementation. Each multicast address and hold down time pair is called a non-membership report. The non-membership report tells the receiving router that the sending router has no descendent group members in the given group. Based on this information the receiving router can stop forwarding datagrams to the sending router for the particular multicast address(es) listed. The hold down time indicates, in seconds, how long the NMR is valid.

It is an error for count to equal 0.

The only other commands in a message that has NMR commands can be the AFI, flags0, and NULL commands. No relevant flags for the flags0 command are currently defined, but that may change in the future.

3.10 Non Membership Report Cancel (NMR Cancel) Command

Format: 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7

       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
       |       10      |  |     count     |
       +-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+
Array of 'count' additional arguments, with AFI = IP:
0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Multicast Address1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Multicast Address2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Count is the number of Multicast Addresses supplied, from 1 to 255. The length of the addresses depends upon the current address family. The number of addresses supplied is subject to the message length limitation of 512 bytes.

Default: None.

Description: The NMR Cancel command is experimental, and has not been tested in an implementation. For each multicast address listed, any previous corresponding non-membership reports are canceled. When there is no corresponding non-membership report for a given multicast address, the Cancel command should be ignored for that multicast address.

It is an error for count to equal 0.

The only other commands in a message that has NMR Cancel commands can be the AFI, flags0, and NULL commands. No relevant flags for the flags0 command are currently defined, but that may change in the future.

3.12 Examples (with bytes in '{}'), not including the message header:

3.12.1 Supplying a single route to the IP address 128.2.251.231 with a metric of 2, an infinity of 16, a subnetmask of 255.255.255.0:

Subtype 1, AFI 2, Metric 2, Infinity 16, Subnet Mask 255.255.255.0 {2} {2} {4} {2} {6} {16} {3} {1} {255} {255} {255} {0}

DA Count=1 [128.2.251.231] {7} {1} {128} {2} {251} {231}

3.12.2 Supplying a route to the IP addresses 128.2.251.231 and 128.2.236.2 with a metric of 2, an infinity of 16, a subnetmask of 255.255.255.0:

Subtype 1, AFI 2, Metric 2, Infinity 16, Subnet Mask 255.255.255.0 {2} {2} {4} {2} {6} {16} {3} {1} 255} {255} {255} {0}

DA Count=2 [128.2.251.231] [128.2.236.2] {7} {1} {128} {2} {251} {231} {128} {2} {236} {2}

3.12.3 Request for all routes to IP destinations.

Subtype 2, AFI 2, RDA Count = 0

          {2} {2} {8} {0}

3.12.4 Non Membership Report for groups 224.2.3.1 and 224.5.4.6 with a hold down time of 20 seconds, and group 224.7.8.5 with a hold down time of 40 seconds.

Subtype 3, AFI 2, NMR Count = 3 [224.2.3.1, 20] {2} {2} {10} {3} {224} {2} {3} {1} {0} {0} {0} {20}

[224.5.4.6, 20] [224.7.8.5, 40] {224} {5} {4} {6} {0} {0} {0} {20} {224} {7} {8} {5} {0} {0} {0} {40}

3.13 Summary of Commands

Value Name Other commands allowed in same message


---- ---------------------------------------

0 Null Null, AFI, Subnetmask, Metric, Flags0,

                       Infinity, DA, RDA, NMR, NMR-cancel

2 AFI Null, AFI, Subnetmask, Metric, Flags0,

                       Infinity, DA, RDA, NMR, NMR-cancel

3 Subnetmask Null, AFI, Subnetmask, Metric, Flags0,

                       Infinity, DA, RDA

4 Metric Null, AFI, Subnetmask, Metric, Flags0,

                       Infinity, DA

5 Flags0 Null, AFI, Subnetmask, Metric, Flags0,

                       Infinity, DA

6 Infinity Null, AFI, Subnetmask, Metric, Flags0,

                       Infinity, DA

7 DA Null, AFI, Subnetmask, Metric, Flags0,

                       Infinity, DA

8 RDA Null, AFI, Subnetmask, Flags0, RDA

9 NMR Null, AFI, Flags0, NMR

10 NMR-cancel Null, AFI, Flags0, NMR-cancel

Tunnels

A tunnel is a method for sending datagrams between routers separated by gateways that do not support multicasting routing. It acts as a virtual network between two routers. For instance, a router running at Stanford, and a router running at BBN might be connected with a tunnel to allow multicast datagrams to traverse the Internet. We consider tunnels to be a transitional hack.

Tunneling is done with a weakly encapsulated normal multicasted datagram. The weak encapsulation uses a special two element IP loose source route [5]. (This form of encapsulation is preferable to "strong" encapsulation, i.e., prepending an entire new IP header, because it does not require the tunnel end-points to know each other's maximum reassembly buffer size. It also has the benefit of correct behavior of the originator's time-to-live value and any other IP options present.)

A tunnel has a local end-point, remote end-point, metric, and threshold associated with it. The routers at each end of the tunnel need only agree upon the local and remote end-points. See section 8 for information on how tunnels are configured. Because the number of intermediate gateways between the end-points of a tunnel is unknown, additional research is needed to determine appropriate metrics and thresholds.

To send a datagram on a tunnel, the following occurs:

  - A null IP option is inserted into the datagram.  This provides
    preferred alignment for the loose source route IP option.
  - A two element loose source route IP option is inserted into
    the datagram.
  - The source route pointer is set to point to the second element
    in the source route.
  - The first element in the source route is replaced with the
    address of the originating host (the original IP source
    address).
  - The second element in the source route is replaced with the
    multicast destination address provided by the originating host
    (the original IP destination address).
  - The IP source address is replaced with the address of the
    router's appropriate outgoing physical interface (the local
    tunnel end-point).
  - The IP destination address is replaced with an address of the
    remote router (the remote tunnel end-point).
  - The datagram is transmitted to the remote router using
    non-multicast routing algorithms.

Intermediate, non-multicast gateways will route the tunneled datagram to the remote tunnel end-point. Because the datagram's IP source address has been replaced with the address of the local tunnel end- point, ICMP error messages will go to the originating multicast router. This behavior is desired, because a host that sends a multicast datagram, which a multicast router decides to tunnel, should not be aware of the use of the tunnel. If the datagram's IP source address were not changed when encapsulating the datagram, any ICMP errors would be sent to the originating host.

When the remote tunnel end-point receives the tunneled datagram, the following occurs:

  - The IP source address is replaced with the first element in the
    loose source route.
  - The IP destination address is replaced with the second element
    in the loose source route.
  - The null option and the loose source route option are removed
    from the datagram.  This is needed because a host should not
    be able to tell that it has received a datagram that was sent
    through a tunnel.

Because no specific network is associated with a tunnel, there are no local group memberships to be tracked for a tunnel. The only neighbor on a tunnel can be the remote end-point. Routing messages should be exchanged through tunnels, but a route is not created for a

tunnel. The routing messages should be sent as unicast datagrams directly to the remote tunnel end-point; they should not use an IP loose source route.

Justification for using the loose source route and record option for tunneling:

  We considered defining our own IP option to handle tunneling, but
  we are worried that intermediate gateways do not transparently
  pass IP options that are unknown to them.  Datagrams using a new
  option would not traverse the Internet.  It would be better for us
  if we could create a new IP option, but it won't work presently.
  Recall that this is a transition design to allow us to experiment
  in the current environment.
  The tunneled packet containing the LSRR option has the following
  features:
                  Field            Value
                  -----            --------------------
                  src address    = src gateway address
                  dst address    = dst gateway address
                  LSRR pointer   = points to LSRR address 2
                  LSRR address 1 = src host
                  LSRR address 2 = multicast destination
  Two questions raised about using the LSRR option for tunnels are
  "Can intermediate gateways ignore the option?", and "Can the
  destination gateway properly detect that the LSRR is used for a
  tunnel?".
  When an intermediate gateway receives a datagram, it examines the
  destination address.  For a tunneled datagram, the destination
  address will not match an address of the receiving gateway.
  Therefore, the LSRR option will not be examined, and the
  intermediate gateway will forward the datagram on to its next hop
  for the destination address.
  When the destination gateway receives a datagram, it notes that
  the datagram destination address matches one of its own address.
  It will then look at the next LSRR option address, since the
  source route is not exhausted.  That address is a multicast
  address.  Since hosts are forbidden from putting multicast
  addresses into source routes, the gateway can infer that the LSRR
  is for tunneling.  The weakness here is that perhaps there is some
  other meaning for the multicast address in the LSRR.  No other
  meaning is currently defined.
  If a tunneled datagram is by error addressed to a destination
  gateway that does not support multicasting, then the destination
  gateway will try to find a route to the multicast address.  This
  will fail, and an ICMP destination unreachable error message will
  be sent to the tunneled datagram's source.  Since the source
  address in the tunneled datagram has been adjusted to be the
  address of the source multicast gateway, the ICMP errors will not
  go to the originating host, which has no knowledge of tunnels.

Routing Algorithm

This section provides a terse description of the distance-vector routing algorithm. See [1] for more information.

While DVMRP can express routes to individual hosts, the forwarding and routing algorithms only support network and subnetwork routing.

In the discussion below, the term "virtual interface" is used to refer to a physical interface or a tunnel local end-point. A physical interface is a network interface, for instance, an Ethernet card. A route to a destination will be through a virtual interface. The term "virtual network" is used to refer to a physical network or a tunnel, with the qualification that routes only reference physical networks.

The TRPB algorithm forwards multicast datagrams by computing the shortest (reverse) path tree from the source (physical) network to all possible recipients of the datagram. Each multicast router must determine its place in the tree, relative to the particular source, and then determine which of its virtual interfaces are in the shortest path tree. The datagram is forwarded out these virtual interfaces. The process of excluding virtual interfaces not in the shortest path tree is called "pruning."

Consider a virtual network. Using Deering's terminology [3], a router is called the "parent" of the virtual network if that router is responsible for forwarding datagrams onto that virtual network through its connecting virtual interface. The virtual network can also be considered a "child" virtual network of the router. Using the child information, routers can do Reverse Path Broadcasting (RPB).

Unnecessary datagrams may still be sent onto some networks, because there might not be any recipients for those datagrams on the networks. There are two kinds of recipients: hosts that are members of a particular multicast group, and multicast routers. If no multicast routers on a virtual network consider that virtual network uptree to a given source, then that virtual network is a "leaf"

network. If a network is a leaf for a given source, and there are no members of a particular group on the network, then there are no recipients for datagrams from the source to the group on that network. That network's parent router can forgo sending those datagrams on that network, or "truncate" the shortest path tree. The algorithm that tracks and uses this information is the Truncated Reverse Path Broadcasting (TRPB) algorithm.

Determining which virtual networks are leaves is not simple. If any neighboring router considers a given virtual network in the path to a given destination, then the virtual network is not a leaf. Otherwise, it is a leaf. This is a voting function. If a route, with a metric poisoned by split horizon processing, is sent by some router, then that router uses that virtual network as the uptree path for that route (i.e. that router votes that the virtual network is not a leaf relative to the route's destination). Since the number of routers on a virtual network is dynamic, and since all received routing updates are not kept by routers, a heuristic is needed to determine when a network is a leaf. DVMRP samples the routing updates on a virtual interface while a hold down timer is running, which is for a time period of LEAF_TIMEOUT seconds. There is one hold down timer per virtual interface. If a route is received with a metric poisoned by split horizon processing while the hold down timer is running, or at any other time, then the appropriate virtual interface for that route is "spoiled"-- it is not a leaf. For every route, any virtual interface that was not spoiled by the time the hold down timer expires is considered a leaf.

For a description of an even better forwarding algorithm, the Reverse Path Multicasting algorithm, see [3].

A route entry should have the following in it:

       - Destination address (a source of multicast datagrams) *
       - Subnet mask of the destination address                *
       - Next-hop router to the destination address
       - Virtual interface to the next-hop router              *
       - List of child virtual interfaces                      *
       - List of leaf virtual interfaces                       *
       - A dominant router address for each virtual interface
       - A subordinate router address for each virtual interface
       - Timer
       - Set of flags that indicate the state of the entry
       - Metric
       - Infinity

The lines that are marked with '*' indicate fields that are directly used by the forwarding algorithm.

The lists of child and leaf interfaces can be implemented as bitmaps.

Sending Routing Messages

DVMRP routing messages can be used for three basic purposes: to periodically supply all routing information, to gratuitously supply routing information for recently changed routes, or supply some or all routes in response to a request.

Routing messages sent to physical interfaces should have an IP TTL of 1.

A number of timeouts and rates are used by the routing and forwarding algorithms. See section 6 for their values.

Rules for when to send routing messages:

  - Every FULL_UPDATE_RATE seconds a router should send out
    DVMRP messages with all of its routing information to all of its
    virtual interfaces.  To prevent routers from synchronizing when
    they send updates, a real-time timer must be used.
  - Whenever a route is changed, a routing update should be sent
    for that route.  Some delay must occur between triggered
    updates to avoid flooding the network with triggered updates;
    intervals of TRIGGERED_UPDATE_RATE seconds is suggested.
  - A request for all routes should be sent on all virtual
    interfaces when an DVMRP router is restarted.
  - If possible, when a DVMRP router is about to terminate
    execution, it should send out DVMRP messages with metrics
    equal to infinity for all of its routes, on all virtual
    interfaces.

When sending to routers connected via networks that support multicasting, the messages should be multicast to address 224.0.0.4. Therefore, routers must listen to multicast address 224.0.0.4 on every physical interface that supports multicasting. If multicasting isn't supported, broadcasting can be used. As already mentioned, routing updates to tunnels should be sent as unicast datagrams to the remote end-point of the tunnel.

When sending routing messages, except in response to a specific route request (via RDA command with a non-zero count), poisoned split horizon processing must be done. This means that given a route that uses network X, routing updates sent to network X must include that route with the metric equal to the infinity and should include the

appropriate flag set in a FLAGS0 command.

Poisoned split horizon is one way to reduce the likelihood of routing loops. Another method, not available in RIP, is to choose a better infinity in a route. For routes propagated in a small, but well connected, network an infinity smaller than 16 might be better. The smaller the infinity, the less time a counting-to-infinity event will take. In traversing a wide internet, an infinity of 16 might be too small. At the cost of a longer counting-to-infinity event, the infinity can be increased.

One concept in Internet Multicasting is to use "thresholds" to restrict which multicast datagrams exit a network. Multicast routers on the edge of a subnetted network or autonomous system may require a datagram to have large TTL to exit a network. This mechanism keeps most multicast datagrams within the network, reducing external traffic. An application that wants to multicast outside of its network would need to give its multicast datagrams at least a TTL of the sum of the threshold and the distance to the edge of the network (assuming TTL is used as a hop count within the network). A configuration option should allow specifying the threshold for both physical interfaces and tunnels.

When a router is started, it must send out a request for all routes on each of its virtual interfaces. The request is a message that has an RDA command with a count equal to 0 in it.

Receiving Routing Messages

A router must know the virtual interface that a routing message arrived on. Because the routing message may be addressed to the all-multicast-routers IP address, and because of tunnels, the incoming interface can not be identified merely by examining the message's IP destination address

For each route expressed in a routing message, the following must occur:

IF a metric was given for the route: THEN add in the metric of the virtual interface that the message

       arrived on.

Lookup the route's destination address in the routing tables.

IF the route doesn't exist in the tables: THEN try to find a route to the same network in the routing

       tables.
       IF that route exists in the tables:
       THEN    IF this route came from the same router as the router
               that the found route came from:
               THEN    CONTINUE with next route.
       IF route doesn't have a metric of infinity:
               THEN    add the route to the routing tables.
       CONTINUE with next route.

IF this route came from the same router as the router that the found

  route came from:

THEN clear the route timer.

       IF a metric was received, and it is different than the found
       route's metric:
       THEN    change the found route to use the new metric and
               infinity.
               IF the metric is equal to the infinity:
               THEN    set the route timer to the
                       EXPIRATION_TIMEOUT.
               CONTINUE with next route.
       IF the received infinity does not equal the found route's
       infinity:
       THEN    change the found route's infinity to be the received
               infinity.
               change the found route's metric to be the minimum of
               the received infinity and the found route's metric.

ELSE IF a metric was received, and (it is less than the found

       route's metric or (the route timer is at least halfway to the
       EXPIRATION_TIMEOUT and the found route's metric equals the
       received metric, and the metric is less than the received
       infinity)):
       THEN    change the routing tables to use the received route.
               clear the route timer.

CONTINUE with next route.

Neighbors

A list should be kept of the neighboring multicast routers on every attached network. The information can be derived by the DVMRP routing messages that are received. A neighbor that has not been heard from in NEIGHBOR_TIMEOUT seconds should be considered to be down.

Local Group Memberships

As required by [2], a multicast router must keep track of group memberships on the multicast-capable networks attached to it. Every QUERY_RATE seconds an IGMP membership request should be sent to the All Hosts multicast address (224.0.0.1) on each network by a designated router on that network. The IGMP membership request will

cause hosts to respond with IGMP membership reports after a small delay. Hosts will send the report for a group to the group's multicast address.

The membership requests should have an IP TTL of 1.

The routers on a network elect or "designate" a single router to do the queries. The designated router is the router with the lowest IP address on that network. Upon startup a router considers itself to be the designated router until it learns (presumably through routing messages) of a router with a lower address. To learn about the group members present on a network at startup, a router should multicast a number of membership requests, separated by a small delay. We suggest sending three requests separated by four seconds.

The multicast router must receive all datagrams sent to all multicast addresses. Upon receiving an IGMP membership report for a group from an interface, it must either record the existence of that group on the interface and record the time, or update the time if the group is already recorded. The recorded group memberships must be timed-out. If a group member report is not received for a recorded group after MEMBERSHIP_TIMEOUT seconds, the recorded group should be deleted.

Forwarding Algorithm

The section describes the multicast forwarding algorithm and the state that must be kept for the algorithm.

The forwarding algorithm is applied to determine how multicast datagrams arriving on a physical interface or a tunnel should be handled. If multicast datagrams were flooded, a datagram received on one virtual interface would be forwarded out of every other virtual interface. Because of redundant paths in the internet, datagrams would be duplicated. The child and leaf information, that the routing algorithm supplies, is used to prune branches in the tree to all possible destinations.

In route entries, there is a dominant router address for each virtual interface. This address is the address of some router that has a route with a lower metric (and whose metric does not equal infinity) to the destination, on that virtual interface. The dominant router address is not set for the next-hop virtual interface.

Also in route entries, there is a subordinate router address for each virtual interface. This address is the address of some router that considers this router to be the parent of the virtual network. Therefore, the subordinate router address is not set for a virtual interface to a leaf network.

The algorithm for manipulating the children and leaf lists in route entries is:

Upon router startup:

       Create a route entry for each virtual interface, with:
           - all other virtual interfaces in its child list,
           - an empty leaf list,
           - no dominant router addresses, and
           - no subordinate router addresses.
       Start a hold down timer for each virtual interface, with
       a value of LEAF_TIMEOUT.

Upon receiving a new route:

       Create the route entry, with:
           - all virtual interfaces, other than the one on which the
             new route was received, in its child list,
           - empty leaf list,
           - no dominant router addresses, and
           - no subordinate router addresses.
       Start the hold down timer for all virtual interfaces, other
       than the one on which the new route was received, with a
       value of LEAF_TIMEOUT.

Upon receiving a route on virtual interface V from neighbor N with a lower metric than the one in the routing table (or the same metric as the one in the routing table, if N's address is less than my address for V), for that route:

 If V is in the child list, delete V from the child list.
 If there is no dominant router for V and if V is not (now) the
 next-hop virtual interface, record N as the dominant router.

Upon receiving a route on virtual interface V from neighbor N with a larger metric than the one in the routing table (or the same metric as the one in the routing table, if N's address is greater than my address for V), for that route:

 If N is the dominant router for V, delete N as the dominant router
 and add V to the child list.

Upon receiving a route from neighbor N on virtual interface V with a metric equal to infinity (the split horizon flag should also be set), for that route:

 If V is in the leaf list, delete V from the leaf list.
 If there is no subordinate router for V, record N as the
 subordinate router.

Upon receiving a route from neighbor N on virtual interface V with a metric other than infinity (and no split horizon flag), for that route:

 If N is the subordinate router for V, delete N as the subordinate
 router and start the hold down timer for V.

Upon timer expiration for a virtual interface (V), for each route:

 If there is no subordinate router for V, add V to the leaf list.

Upon failure of neighbor N on virtual interface V, for each route:

 If N is the dominant router for V, delete N as the dominant router
 and add V to the child list.
 If N is the subordinate router for V, delete N as the subordinate
 router and start the hold down timer for V.

The forwarding algorithm is:

IF the IP TTL is less than 2: THEN CONTINUE with next datagram.

find the route to the source of the IP datagram.

IF no route exists: THEN CONTINUE with next datagram.

IF the datagram was not received on the next-hop virtual interface for the route: THEN CONTINUE with next datagram.

IF the datagram is tunneled: THEN replace the datagram's source address with the first address

       in the IP loose source route.
       replace the datagram's destination address with the second
       address in the IP loose source route.
       delete the loose source route and the null option from the
       datagram and adjust the IP header length fields to reflect
       the deletion.

If the datagram destination is group 224.0.0.0 or group 224.0.0.1: THEN CONTINUE with next datagram.

FOR each virtual interface V DO IF V is in the child list for the source of the datagram:

       THEN    IF V is not in the leaf list for the source
               OR there are members of the destination group on V:
               THEN    IF the IP TTL is greater then V's threshold:
                       THEN    subtract 1 from the IP TTL
                               forward the datagram out V

Time Values

This section contains a list of the various rates and timeouts, their meanings, and their values. All values are in seconds.

How dynamic the routing environment is effects the following rates. A lower rate will allow quicker adaptation to a change in the environment, at the cost of wasting network bandwidth.

FULL_UPDATE_RATE = 60

       - How often routing messages containing complete routing
         tables are sent.

TRIGGERED_UPDATE_RATE = 5

       - How often triggered routing messages may be sent out.

Raising the following rates and timeouts may increase the time that packets may be forwarded to a virtual interface unnecessarily.

QUERY_RATE = 120

       - How often local group membership is queried.

MEMBERSHIP_TIMEOUT = 2 * QUERY_RATE + 20

       - How long a local group membership is valid without
         confirmation.

LEAF_TIMEOUT = 2 * FULL_UPDATE_RATE + 5

       - How long the hold down timer is for a virtual interface.

Increasing the following timeouts will increase the stability of the routing algorithm, at the cost of slower reactions to changes in the routing environment.

NEIGHBOR_TIMEOUT = 4 * FULL_UPDATE_RATE

       - How long a neighbor is considered up without confirmation.
         This is important for timing out routes, and for setting
         the children and leaf flags.

EXPIRATION_TIMEOUT = 2 * FULL_UPDATE_RATE

       - How long a route is considered valid without confirmation.
         When this timeout expires, packets will no longer be
         forwarded on the route, and routing updates will consider
         this route to have a metric of infinity.

GARBAGE_TIMEOUT = 4 * FULL_UPDATE_RATE

       - How long a route exists without confirmation.  When this
         timeout expires, routing updates will no longer contain any
         information on this route, and the route will be deleted.

Configuration options

A router should be configurabled with the following information:

- Tunnel descriptions: local end-point, remote end-point, metric, and

 threshold.  If no threshold is provided, the metric should be used
 as the default threshold.

- For a physical interface: metric, infinity, threshold and

 subnetwork mask.  If no threshold is provided, the metric should be
 used as the default threshold.

Conclusion

This memo has presented DVMRP, an extensible distance-vector-style routing protocol, and a TRPB routing algorithm. An implementation of the ideas presented in this document has been done, and is being tested.

The added features in DVMRP, as compared to RIP, give it flexibility at the cost of more complex processing. DVMRP still has the disadvantages of being a distance-vector algorithm. Because link- state algorithms maintain much of the state information that DVMRP has to maintain in excess of what RIP needs, a multicast link-state routing protocol should be developed.

The TRPB algorithm can cause unneeded datagrams to be sent. The Reverse Path Multicasting algorithm (RPM) [3] might be a better algorithm. The NMR and NMR-cancel DVMRP messages are designed to support RPM. Further research is needed on this topic.

10. Acknowledgements

We would like to thank Robb Foster, Alan Dahlbom, Ross Callon, and the IETF Host Working Group for their ideas.

11. Bibliography

 [1]  Hedrick, C., "Routing Information Protocol", RFC 1058, Rutgers
      University, June 1988.
 [2]  Deering, S., "Host Extensions for IP Multicasting", RFC 1054,
      Stanford University, May 1988.
 [3]  Deering, S., "Multicast Routing in Internetworks and Extended
      LANs", SIGCOMM Summer 1988 Proceedings, August 1988.
 [4]  Callon, R., "A Comparison of 'Link State' and 'Distance
      Vector' Routing Algorithms", DEC, November 1987.
 [5]  Postel, J., "Internet Protocol", RFC 791, USC/Information
      Sciences Institute, September 1981.
 [6]  Mills, D., "Toward an Internet Standard Scheme for
      Subnetting", RFC 940, University of Delaware, April 1985.