1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
|
<pre>Internet Engineering Task Force (IETF) A. Yourtchenko
Request for Comments: 7772 Cisco
BCP: 202 L. Colitti
Category: Best Current Practice Google
ISSN: 2070-1721 February 2016
<span class="h1">Reducing Energy Consumption of Router Advertisements</span>
Abstract
Frequent Router Advertisement messages can severely impact host power
consumption. This document recommends operational practices to avoid
such impact.
Status of This Memo
This memo documents an Internet Best Current Practice.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
BCPs is available in <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="http://www.rfc-editor.org/info/rfc7772">http://www.rfc-editor.org/info/rfc7772</a>.
Copyright Notice
Copyright (c) 2016 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
<span class="grey">Yourtchenko & Colitti Best Current Practice [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc7772">RFC 7772</a> Reducing RA Energy Consumption February 2016</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-2">2</a>. Problem Scenarios . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-2.1">2.1</a>. Solicited Multicast RAs on Large Networks . . . . . . . . <a href="#page-2">2</a>
<a href="#section-2.2">2.2</a>. Frequent Periodic Router Advertisements . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-3">3</a>. Consequences . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-4">4</a>. Router Advertisement Frequency . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-5">5</a>. Recommendations . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-5.1">5.1</a>. Network-Side Recommendations . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-5.2">5.2</a>. Device-Side Recommendations . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-6">6</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-7">7</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-7.1">7.1</a>. Normative References . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-7.2">7.2</a>. Informative References . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
Routing information is communicated to IPv6 hosts by Router
Advertisement (RA) messages [<a href="./rfc4861" title=""Neighbor Discovery for IP version 6 (IPv6)"">RFC4861</a>]. If these messages are sent
too frequently, they can severely impact power consumption on
battery-powered hosts.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Problem Scenarios</span>
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a>. Solicited Multicast RAs on Large Networks</span>
On links with a large number of battery-powered devices, sending
solicited multicast Router Advertisements can severely impact host
power consumption. This is because every time a device joins the
network, all devices on the network receive a multicast Router
Advertisement. In the worst case, if devices are continually joining
and leaving the network, and the network is large enough, then all
devices on the network will receive solicited Router Advertisements
at the maximum rate specified by <a href="./rfc4861#section-6.2.6">Section 6.2.6 of [RFC4861]</a>, which is
one every 3 seconds.
<span class="grey">Yourtchenko & Colitti Best Current Practice [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc7772">RFC 7772</a> Reducing RA Energy Consumption February 2016</span>
<span class="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a>. Frequent Periodic Router Advertisements</span>
Some networks send periodic multicast Router Advertisements very
frequently (e.g., once every few seconds). This may be due to a
desire to minimize customer impact of network renumbering events,
which in some large residential networks occur relatively frequently.
In the presence of hosts that ignore RAs or even all IPv6 packets
when in sleep mode, such networks may see a need to send RAs
frequently in order to avoid leaving devices with non-functional IPv6
configurations for extended periods of time. Unfortunately, this has
severe impact on battery life.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Consequences</span>
Observed effects of frequently sending Router Advertisement messages
to battery-powered devices include:
o Some hosts simply experience bad battery life on these networks
and otherwise operate normally. This is frustrating for users of
these networks.
o Some hosts react by dropping all Router Advertisement messages
when in power-saving mode on any network, e.g.,
<<a href="https://code.google.com/p/android/issues/detail?id=32662">https://code.google.com/p/android/issues/detail?id=32662</a>>. This
causes devices to lose connectivity when in power-saving mode,
potentially disrupting background network communications, because
the device is no longer able to send packets or acknowledge
received traffic.
o Some hosts react by dropping *all* IPv6 packets when in power-
saving mode, <<a href="http://www.gossamer-threads.com/lists/nsp/ipv6/54641">http://www.gossamer-threads.com/lists/nsp/</a>
<a href="http://www.gossamer-threads.com/lists/nsp/ipv6/54641">ipv6/54641</a>>. This disrupts network communications.
Compounding the problem, when dealing with devices that drop Router
Advertisements when in power saving mode, some network administrators
work around the problem by sending RAs even more frequently. This
causes devices to engage in even more aggressive filtering.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Router Advertisement Frequency</span>
The appropriate frequency of periodic RAs depends on how constrained
the network devices are.
o Laptop-class devices will likely experience no noticeable battery-
life impact, even if RAs are sent every few seconds.
<span class="grey">Yourtchenko & Colitti Best Current Practice [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc7772">RFC 7772</a> Reducing RA Energy Consumption February 2016</span>
o Tablets, phones, and watches experience it more noticeably. At
the time of writing, current-generation devices might consume on
the order of 5 mA when the main processor is asleep. Upon
receiving a packet, they might consume on the order of 200 mA for
250 ms, as the packet causes the main processor to wake up,
process the RA, attend to other pending tasks, and then go back to
sleep. Thus, on such devices, the cost of receiving one RA will
be approximately 0.014 mAh.
In order to limit the amount of power used to receive Router
Advertisements to, say, 2% of idle power (i.e., to impact idle
battery life by no more than 2%), the average power budget for
receiving RAs must be no more than 0.1 mA, or approximately 7 RAs
per hour. Due to background multicast loss and the tendency of
current devices to rate-limit multicast when asleep, many of these
RAs might not reach the device. Thus, the minimum lifetimes for
RA configuration parameters such as default router lifetime might
reasonably be 5-10 times the RA period, or roughly 45-90 minutes.
An impact of 2% relative to measured idle current is negligible,
since on this sort of device average power consumption is
typically much higher than idle power consumption.
o Specialized devices in non-general-purpose networks such as sensor
networks might have tighter requirements. In these environments,
even longer RA intervals might be appropriate.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Recommendations</span>
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. Network-Side Recommendations</span>
1. Router manufacturers SHOULD allow network administrators to
configure the routers to respond to Router Solicitations with
unicast Router Advertisements if:
* The Router Solicitation's source address is not the
unspecified address, and:
* The solicitation contains a valid Source Link-Layer Address
option.
2. Administrators of networks that serve large numbers (tens or
hundreds) of battery-powered devices SHOULD enable this behavior.
3. Networks that serve battery-powered devices SHOULD NOT send
multicast RAs too frequently (see <a href="#section-4">Section 4</a>) unless the
information in the RA packet has substantially changed. If there
is a desire to ensure that hosts pick up configuration changes
<span class="grey">Yourtchenko & Colitti Best Current Practice [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc7772">RFC 7772</a> Reducing RA Energy Consumption February 2016</span>
quickly, those networks MAY send frequent Router Advertisements
for a limited period of time (e.g., not more than one minute)
immediately after a configuration change.
No protocol changes are required. Responding to Router Solicitations
with unicast Router Advertisements is already allowed by <a href="./rfc4861#section-6.2.6">Section</a>
<a href="./rfc4861#section-6.2.6">6.2.6 of [RFC4861]</a>, and Router Advertisement intervals are already
configurable by the administrator to a wide range of values.
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. Device-Side Recommendations</span>
1. Maintaining IPv6 connectivity requires that hosts be able to
receive periodic multicast RAs [<a href="./rfc4861" title=""Neighbor Discovery for IP version 6 (IPv6)"">RFC4861</a>]. Therefore, hosts that
process unicast packets sent while they are asleep MUST also
process multicast RAs sent while they are asleep. Battery-
powered hosts MAY rate-limit identical RAs if they are sent too
frequently.
2. Battery-powered devices that do not intend to maintain IPv6
connectivity while asleep SHOULD either disconnect from the
network, abandoning all IPv6 configuration on that network, or
perform Detecting Network Attachment in IPv6 (DNAv6) procedures
[<a href="./rfc6059" title=""Simple Procedures for Detecting Network Attachment in IPv6"">RFC6059</a>] when waking up.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Security Considerations</span>
Misconfigured or malicious hosts sending rogue Router Advertisements
[<a href="./rfc6104" title=""Rogue IPv6 Router Advertisement Problem Statement"">RFC6104</a>] can also severely impact power consumption on battery-
powered hosts if they send a significant number of such messages.
Any IPv6 network where there is potential for misconfigured or
malicious hosts should take appropriate countermeasures to mitigate
the problem.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. References</span>
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>,
DOI 10.17487/RFC2119, March 1997,
<<a href="http://www.rfc-editor.org/info/rfc2119">http://www.rfc-editor.org/info/rfc2119</a>>.
[<a id="ref-RFC4861">RFC4861</a>] Narten, T., Nordmark, E., Simpson, W., and H. Soliman,
"Neighbor Discovery for IP version 6 (IPv6)", <a href="./rfc4861">RFC 4861</a>,
DOI 10.17487/RFC4861, September 2007,
<<a href="http://www.rfc-editor.org/info/rfc4861">http://www.rfc-editor.org/info/rfc4861</a>>.
<span class="grey">Yourtchenko & Colitti Best Current Practice [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc7772">RFC 7772</a> Reducing RA Energy Consumption February 2016</span>
[<a id="ref-RFC6059">RFC6059</a>] Krishnan, S. and G. Daley, "Simple Procedures for
Detecting Network Attachment in IPv6", <a href="./rfc6059">RFC 6059</a>,
DOI 10.17487/RFC6059, November 2010,
<<a href="http://www.rfc-editor.org/info/rfc6059">http://www.rfc-editor.org/info/rfc6059</a>>.
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a>. Informative References</span>
[<a id="ref-RFC6104">RFC6104</a>] Chown, T. and S. Venaas, "Rogue IPv6 Router Advertisement
Problem Statement", <a href="./rfc6104">RFC 6104</a>, DOI 10.17487/RFC6104,
February 2011, <<a href="http://www.rfc-editor.org/info/rfc6104">http://www.rfc-editor.org/info/rfc6104</a>>.
Acknowledgements
The authors wish to thank Steven Barth, Frank Bulk, David Farmer,
Igor Gashinsky, Ray Hunter, Erik Kline, Erik Nordmark, Alexandru
Petrescu, Libor Polcak, Mark Smith, Jinmei Tatuya, and James Woodyatt
for feedback and helpful suggestions.
Authors' Addresses
Andrew Yourtchenko
Cisco
7a de Kleetlaan
Diegem, 1831
Belgium
Phone: +32 2 704 5494
Email: ayourtch@cisco.com
Lorenzo Colitti
Google
Roppongi 6-10-1
Minato, Tokyo 106-6126
Japan
Email: lorenzo@google.com
Yourtchenko & Colitti Best Current Practice [Page 6]
</pre>
|