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 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453
|
<pre>Network Working Group C. Perkins
Request for Comments: 4721 Nokia Research Center
Obsoletes: <a href="./rfc3012">3012</a> P. Calhoun
Updates: <a href="./rfc3344">3344</a> Cisco Systems, Inc.
Category: Standards Track J. Bharatia
Nortel Networks
January 2007
<span class="h1">Mobile IPv4 Challenge/Response Extensions (Revised)</span>
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The IETF Trust (2007).
Abstract
Mobile IP, as originally specified, defines an authentication
extension (the Mobile-Foreign Authentication extension) by which a
mobile node can authenticate itself to a foreign agent.
Unfortunately, that extension does not provide the foreign agent any
direct guarantee that the protocol is protected from replays and does
not allow for the use of existing techniques (such as Challenge
Handshake Authentication Protocol (CHAP)) for authenticating portable
computer devices.
In this specification, we define extensions for the Mobile IP Agent
Advertisements and the Registration Request that allow a foreign
agent to use a challenge/response mechanism to authenticate the
mobile node.
Furthermore, this document updates <a href="./rfc3344">RFC 3344</a> by including a new
authentication extension called the Mobile-Authentication,
Authorization, and Accounting (AAA) Authentication extension. This
new extension is provided so that a mobile node can supply
credentials for authorization, using commonly available AAA
infrastructure elements. This authorization-enabling extension MAY
co-exist in the same Registration Request with authentication
extensions defined for Mobile IP Registration by <a href="./rfc3344">RFC 3344</a>. This
document obsoletes <a href="./rfc3012">RFC 3012</a>.
<span class="grey">Perkins, et al. Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-2">2</a>
<a href="#section-1.1">1.1</a>. Terminology ................................................<a href="#page-3">3</a>
<a href="#section-2">2</a>. Mobile IP Agent Advertisement Challenge Extension ...............<a href="#page-4">4</a>
<a href="#section-2.1">2.1</a>. Handling of Solicited Agent Advertisements .................<a href="#page-4">4</a>
<a href="#section-3">3</a>. Operation .......................................................<a href="#page-5">5</a>
<a href="#section-3.1">3.1</a>. Mobile Node Processing of Registration Requests ............<a href="#page-5">5</a>
<a href="#section-3.2">3.2</a>. Foreign Agent Processing of Registration Requests ..........<a href="#page-6">6</a>
3.2.1. Foreign Agent Algorithm for Tracking Used
Challenges .........................................<a href="#page-8">8</a>
<a href="#section-3.3">3.3</a>. Foreign Agent Processing of Registration Replies ...........<a href="#page-9">9</a>
<a href="#section-3.4">3.4</a>. Home Agent Processing of Challenge Extensions .............<a href="#page-10">10</a>
<a href="#section-3.5">3.5</a>. Mobile Node Processing of Registration Replies ............<a href="#page-11">11</a>
<a href="#section-4">4</a>. Mobile-Foreign Challenge Extension .............................<a href="#page-11">11</a>
<a href="#section-5">5</a>. Generalized Mobile IP Authentication Extension .................<a href="#page-12">12</a>
<a href="#section-6">6</a>. Mobile-AAA Authentication Subtype ..............................<a href="#page-13">13</a>
<a href="#section-7">7</a>. Reserved SPIs for Mobile IP ....................................<a href="#page-14">14</a>
<a href="#section-8">8</a>. SPIs for RADIUS AAA Servers ....................................<a href="#page-14">14</a>
<a href="#section-9">9</a>. Configurable Parameters ........................................<a href="#page-15">15</a>
<a href="#section-10">10</a>. Error Values ..................................................<a href="#page-16">16</a>
<a href="#section-11">11</a>. IANA Considerations ...........................................<a href="#page-16">16</a>
<a href="#section-12">12</a>. Security Considerations .......................................<a href="#page-17">17</a>
<a href="#section-13">13</a>. Acknowledgements ..............................................<a href="#page-18">18</a>
<a href="#section-14">14</a>. Normative References ..........................................<a href="#page-18">18</a>
<a href="#appendix-A">Appendix A</a>. Changes since <a href="./rfc3012">RFC 3012</a> ................................<a href="#page-20">20</a>
<a href="#appendix-B">Appendix B</a>. Verification Infrastructure ...........................<a href="#page-21">21</a>
<a href="#appendix-C">Appendix C</a>. Message Flow for FA Challenge Messaging with
Mobile-AAA Extension ..................................<a href="#page-22">22</a>
<a href="#appendix-D">Appendix D</a>. Message Flow for FA Challenge Messaging with
MN-FA Authentication ..................................<a href="#page-23">23</a>
<a href="#appendix-E">Appendix E</a>. Example Pseudo-code for Tracking Used Challenges ......<a href="#page-24">24</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
Mobile IP defines the Mobile-Foreign Authentication extension to
allow a mobile node to authenticate itself to a foreign agent. Such
authentication mechanisms are mostly external to the principal
operation of Mobile IP, since the foreign agent can easily route
packets to and from a mobile node whether or not the mobile node is
reporting a legitimately owned home address to the foreign agent.
Unfortunately, that extension does not provide the foreign agent any
direct guarantee that the protocol is protected from replays and does
not allow for the use of CHAP [<a href="./rfc1994" title=""PPP Challenge Handshake Authentication Protocol (CHAP)"">RFC1994</a>] for authenticating portable
computer devices. In this specification, we define extensions for
the Mobile IP Agent Advertisements and the Registration Request that
allow a foreign agent to use a challenge/ response mechanism to
authenticate the mobile node. Furthermore, an additional
<span class="grey">Perkins, et al. Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
authentication extension, the Mobile-AAA authentication extension, is
provided so that a mobile node can supply credentials for
authorization using commonly available AAA infrastructure elements.
The foreign agent may be able to interact with an AAA infrastructure
(using protocols outside the scope of this document) to obtain a
secure indication that the mobile node is authorized to use the local
network resources.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Terminology</span>
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">RFC 2119</a> [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
This document uses the term Security Parameters Index (SPI) as
defined in the base Mobile IP protocol specification [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>]. All
SPI values defined in this document refer to values for the SPI as
defined in that specification.
The following additional terminology is used in addition to that
defined in [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>]:
previously used challenge:
The challenge is a previously used challenge if the mobile node
sent the same challenge to the foreign agent in a previous
Registration Request, and if that previous Registration Request
passed all validity checks performed by the foreign agent. The
foreign agent may not be able to keep records for all previously
used challenges, but see <a href="#section-3.2">Section 3.2</a> for minimal requirements.
security association:
A "mobility security association", as defined in [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>].
unknown challenge:
Any challenge from a particular mobile node that the foreign agent
has no record of having put either into one of its recent Agent
Advertisements or into a registration reply message to that mobile
node.
unused challenge:
A challenge that has not already been accepted by the foreign
agent from the mobile node in the Registration Request, i.e., a
challenge that is neither unknown nor previously used.
<span class="grey">Perkins, et al. Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Mobile IP Agent Advertisement Challenge Extension</span>
This section defines a new extension to the Router Discovery Protocol
[<a href="./rfc1256" title=""ICMP Router Discovery Messages"">RFC1256</a>] for use by foreign agents that need to issue a challenge
for authenticating mobile nodes.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Length | Challenge ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 1. The Challenge Extension
Type:
24
Length:
The length of the Challenge value in octets; SHOULD be at least 4.
Challenge:
A random value that SHOULD be at least 32 bits.
The Challenge extension, illustrated in Figure 1, is inserted in the
Agent Advertisements by the foreign agent in order to communicate a
previously unused challenge value that can be used by the mobile node
to compute an authentication for its next registration request
message. The challenge is selected by the foreign agent to provide
local assurance that the mobile node is not replaying any earlier
registration request. Eastlake et al. [<a href="./rfc4086" title=""Randomness Requirements for Security"">RFC4086</a>] provides more
information on generating pseudo-random numbers suitable for use as
values for the challenge.
Note that the storage of different Challenges received in Agent
Advertisements from multiple foreign agents is implementation
specific and hence out of scope for this specification.
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a>. Handling of Solicited Agent Advertisements</span>
When a foreign agent generates an Agent Advertisement in response to
a Router Solicitation [<a href="./rfc1256" title=""ICMP Router Discovery Messages"">RFC1256</a>], some additional considerations come
into play. According to the Mobile IP base specification [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>],
the resulting Agent Advertisement may be either multicast or unicast.
<span class="grey">Perkins, et al. Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
If the solicited Agent Advertisement is multicast, the foreign agent
MUST NOT generate a new Challenge value and update its window of
remembered advertised Challenges. It must instead re-use the most
recent of the CHALLENGE_WINDOW Advertisement Challenge values
(<a href="#section-9">Section 9</a>).
If the agent advertisement is unicast back to the soliciting mobile
node, it MUST be handled as follows: If the challenge most recently
unicast to the soliciting mobile node has not been previously used
(as defined in <a href="#section-1.1">Section 1.1</a>), it SHOULD be repeated in the newly
issued unicast agent advertisement. Otherwise, a new challenge MUST
be generated and remembered as the most recent challenge issued to
the mobile node. For further discussion of this, see <a href="#section-12">Section 12</a>.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Operation</span>
This section describes modifications to the Mobile IP registration
process [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>] that may occur after the foreign agent issues a
Mobile IP Agent Advertisement containing the Challenge on its local
link. See <a href="#appendix-C">Appendix C</a> for a diagram showing the canonical message
flow for messages related to the processing of the foreign agent
challenge values.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Mobile Node Processing of Registration Requests</span>
Retransmission behavior for Registration Requests is identical to
that specified in Mobile IP specification [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>]. A retransmitted
Registration Request MAY use the same Challenge value as given in the
original Registration Request.
Whenever the Agent Advertisement contains the Challenge extension, if
the mobile node does not have a security association with the foreign
agent, then it MUST include the Challenge value in a Mobile-Foreign
Challenge extension to the Registration Request message. If, on the
other hand, the mobile node does have a security association with the
foreign agent, it SHOULD include the Challenge value in its
Registration Request message.
If the mobile node has a security association with the Foreign Agent,
it MUST include a Mobile-Foreign Authentication extension in its
Registration Request message, according to the base Mobile IP
specification [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>]. When the Registration Request contains the
Mobile-Foreign Challenge extension specified in <a href="#section-4">Section 4</a>, the
Mobile-Foreign Authentication MUST follow the Challenge extension in
the Registration Request. The mobile node MAY also include the
Mobile-AAA Authentication extension.
<span class="grey">Perkins, et al. Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
If both the Mobile-Foreign Authentication and the Mobile-AAA
Authentication extensions are present, the Mobile-Foreign Challenge
extension MUST precede the Mobile-AAA Authentication extension, and
the Mobile-AAA Authentication extension MUST precede the Mobile-
Foreign Authentication extension.
If the mobile node does not have a security association with the
foreign agent, the mobile node MUST include the Mobile-AAA
Authentication extension as, defined in <a href="#section-6">Section 6</a>, when it includes
the Mobile-Foreign Challenge extension. In addition, the mobile node
SHOULD include the NAI extension [<a href="./rfc2794" title=""Mobile IP Network Access Identifier Extension for IPv4"">RFC2794</a>] to enable the foreign
agent to make use of available verification infrastructure that
requires this. The SPI field of the Mobile-AAA Authentication
extension specifies the particular secret and algorithm (shared
between the mobile node and the verification infrastructure) that
must be used to perform the authentication. If the SPI value is
chosen as CHAP_SPI (see <a href="#section-9">Section 9</a>), then the mobile node specifies
CHAP-style authentication [<a href="./rfc1994" title=""PPP Challenge Handshake Authentication Protocol (CHAP)"">RFC1994</a>] using MD5 [<a href="./rfc1321" title=""The MD5 Message-Digest Algorithm"">RFC1321</a>].
In either case, the Mobile-Foreign Challenge extension followed by
one of the above specified authentication extensions MUST follow the
Mobile-Home Authentication extension, if present.
A mobile node MAY include the Mobile-AAA Authentication extension in
the Registration Request when the mobile node registers directly with
its home agent (using a co-located care-of address). In this case,
the mobile node uses an SPI value of CHAP_SPI (<a href="#section-8">Section 8</a>) in the
Mobile Node-Authentication, Authorization, and Accounting (MN-AAA)
Authentication extension and MUST NOT include the Mobile-Foreign
Challenge extension. Also, replay protection for the Registration
Request in this case is provided by the Identification field defined
by [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>].
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Foreign Agent Processing of Registration Requests</span>
Upon receipt of the Registration Request, if the foreign agent has
issued a Challenge as part of its Agent Advertisements, and if it
does not have a security association with the mobile node, then the
foreign agent SHOULD check that the Mobile-Foreign Challenge
extension exists, and that it contains a challenge value previously
unused by the mobile node. This ensures that the mobile node is not
attempting to replay a previous advertisement and authentication. In
this case, if the Registration Request does not include a Challenge
extension, the foreign agent MUST send a Registration Reply with the
Code field set to missing_challenge.
<span class="grey">Perkins, et al. Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
If a mobile node retransmits a Registration Request with the same
Challenge extension, and if the foreign agent still has a pending
Registration Request record in effect for the mobile node, then the
foreign agent forwards the Registration Request to the Home Agent
again. The foreign agent SHOULD check that the mobile node is
actually performing a retransmission, by verifying that the relevant
fields of the retransmitted request (including, if present, the
mobile node NAI extension [<a href="./rfc2794" title=""Mobile IP Network Access Identifier Extension for IPv4"">RFC2794</a>]) are the same as represented in
the visitor list entry for the pending Registration Request (<a href="./rfc3344#section-3.7.1">Section</a>
<a href="./rfc3344#section-3.7.1">3.7.1 of [RFC3344]</a>). This verification MUST NOT include the
"remaining Lifetime of the pending registration" or the
Identification field, since those values are likely to change even
for requests that are merely retransmissions and not new Registration
Requests. In all other circumstances, if the foreign agent receives
a Registration Request with a Challenge extension containing a
Challenge value previously used by that mobile node, the foreign
agent SHOULD send a Registration Reply to the mobile node, containing
the Code value stale_challenge.
The foreign agent MUST NOT accept any Challenge in the Registration
Request unless it was offered in the last Registration Reply or
unicast Agent Advertisement sent to the mobile node or advertised as
one of the last CHALLENGE_WINDOW (see <a href="#section-9">Section 9</a>) Challenge values
inserted into the immediately preceding Agent Advertisements. If the
Challenge is not one of the recently advertised values, the foreign
Agent SHOULD send a Registration Reply with Code value
unknown_challenge (see <a href="#section-10">Section 10</a>). The foreign agent MUST maintain
the last challenge used by each mobile node that has registered using
any one of the last CHALLENGE_WINDOW challenge values. This last
challenge value can be stored as part of the mobile node's
registration records. Also, see <a href="#section-3.2.1">Section 3.2.1</a> for a possible
algorithm that can be used to satisfy this requirement.
Furthermore, the foreign agent MUST check that there is either a
Mobile-Foreign or a Mobile-AAA Authentication extension after the
Challenge extension. Any registration message containing the
Challenge extension without either of these authentication extensions
MUST be silently discarded. If the registration message contains a
Mobile-Foreign Authentication extension with an incorrect
authenticator that fails verification, the foreign agent MAY send a
Registration Reply to the mobile node with Code value mobile node
failed authentication (see <a href="#section-10">Section 10</a>).
If the Mobile-AAA Authentication extension (see <a href="#section-6">Section 6</a>) is present
in the message, or if a Network Access Identifier (NAI) extension is
included indicating that the mobile node belongs to a different
administrative domain, the foreign agent may take actions outside the
scope of this protocol specification to carry out the authentication
<span class="grey">Perkins, et al. Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
of the mobile node. If the registration message contains a Mobile-
AAA Authentication extension with an incorrect authenticator that
fails verification, the foreign agent MAY send a Registration Reply
to the mobile node with Code value fa_bad_aaa_auth. If the Mobile-
AAA Authentication extension is present in the Registration Request,
the foreign agent MUST NOT remove the Mobile-AAA Authentication
extension and the Mobile-Foreign Challenge extension from the
Registration Request before forwarding to the home agent. <a href="#appendix-C">Appendix C</a>
provides an example of an action that could be taken by a foreign
agent.
In the event that the Challenge extension is authenticated through
the Mobile-Foreign Authentication extension and the Mobile-AAA
Authentication extension is not present, the foreign agent MAY remove
the Challenge extension from the Registration Request without
disturbing the authentication value used for the computation. If the
Mobile-AAA Authentication extension is present and a security
association exists between the foreign agent and the home agent, the
Mobile-Foreign Challenge extension and the Mobile-AAA Authentication
extension MUST precede the Foreign-Home Authentication extension.
If the foreign agent does remove the Challenge extension and
applicable authentication from the Registration Request message, then
it SHOULD store the Identification field from the Registration
Request message as part of its record-keeping information about the
particular mobile node in order to protect against replays.
<span class="h4"><a class="selflink" id="section-3.2.1" href="#section-3.2.1">3.2.1</a>. Foreign Agent Algorithm for Tracking Used Challenges</span>
If the foreign agent maintains a large CHALLENGE_WINDOW, it becomes
more important for scalability purposes to compare incoming
challenges efficiently against the set of Challenge values that have
been advertised recently. This can be done by keeping the Challenge
values in order of advertisement, and by making use of the mandated
behavior that mobile nodes MUST NOT use Challenge values that were
advertised before the last advertised Challenge value that the mobile
node attempted to use. The pseudo-code in <a href="#appendix-E">Appendix E</a> accomplishes
this objective. The maximum amount of total storage required by this
algorithm is equal to Size*(CHALLENGE_WINDOW + (2*N)), where N is the
current number of mobile nodes for which the foreign agent is storing
challenge values. Note that whenever the stored challenge value is
no longer in the CHALLENGE_WINDOW, it can be deleted from the foreign
agent's records, perhaps along with all other registration
information for the mobile node if it is no longer registered.
<span class="grey">Perkins, et al. Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
It is presumed that the foreign agent keeps an array of advertised
Challenges, a record of the last advertised challenge used by a
mobile node, and also a record of the last challenge provided to a
mobile node in a Registration Reply or unicast Agent Advertisement.
To meet the security obligations outlined in <a href="#section-12">Section 12</a>, the foreign
agent SHOULD use one of the already stored, previously unused
challenges when responding to an unauthenticated Registration Request
or Agent Solicitation. If none of the already stored challenges are
previously unused, the foreign agent SHOULD generate a new challenge,
include it in the response, and store it in the per-Mobile data
structure.
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. Foreign Agent Processing of Registration Replies</span>
The foreign agent SHOULD include a new Mobile-Foreign Challenge
extension in any Registration Reply, successful or not. If the
foreign agent includes this extension in a successful Registration
Reply, the extension SHOULD precede a Mobile-Foreign authentication
extension if present. Suppose that the Registration Reply includes a
Challenge extension from the home agent, and that the foreign agent
wishes to include another Challenge extension with the Registration
Reply for use by the mobile node. In that case, the foreign agent
MUST delete the Challenge extension from the home agent from the
Registration Reply, along with any Foreign-Home authentication
extension, before appending the new Challenge extension to the
Registration Reply.
One example of a situation where the foreign agent MAY omit the
inclusion of a Mobile-Foreign Challenge extension in the Registration
Reply would be when a new challenge has been multicast recently.
If a foreign agent has conditions in which it omits the inclusion of
a Mobile-Foreign Challenge extension in the Registration Reply, it
still MUST respond with an agent advertisement containing a
previously unused challenge in response to a subsequent agent
solicitation from the same mobile node. Otherwise (when the said
conditions are not met), the foreign agent MUST include a previously
unused challenge in any Registration Reply, successful or not.
If the foreign agent does not remove the Challenge extension from the
Registration Request received from the mobile node, then the foreign
agent SHOULD store the Challenge value as part of the pending
registration request list [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>]. Also, if the Registration Reply
coming from the home agent does not include the Challenge extension,
the foreign agent SHOULD NOT reject the registration request. If the
Challenge extension is present in the Registration Reply, it MUST be
the same Challenge value that was included in the Registration Reply
<span class="grey">Perkins, et al. Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
received from the home agent, the foreign agent MUST insert a Foreign
Agent (FA) Error extension with Status value ha_wrong_challenge in
the Registration Reply sent to the mobile node (see <a href="#section-10">Section 10</a>).
A mobile node MUST be prepared to use a challenge from a unicast or
multicast Agent Advertisement in lieu of one returned in a
Registration Reply, and it MUST solicit for one if it has not already
received one either in a Registration Reply or a recent
advertisement.
If the foreign agent receives a Registration Reply with the Code
value ha_bad_aaa_auth, the Registration Reply with this Code value
MUST be relayed to the mobile node. In this document, whenever the
foreign agent is required to reject a Registration Request, it MUST
put the given code in the usual Code field of the Registration Reply,
unless the Registration Reply has already been received from the home
agent. In this case, the foreign agent MUST preserve the value of
the Code field set by the home agent and MUST put its own rejection
code in the Status field of the FA Error extension (defined in
[<a href="./rfc4636" title=""Foreign Agent Error Extension for Mobile IPv4"">RFC4636</a>]).
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a>. Home Agent Processing of Challenge Extensions</span>
If the home agent receives a Registration Request with the Mobile-
Foreign Challenge extension and recognizes the extension, the home
agent MUST include the Challenge extension in the Registration Reply.
The Challenge extension MUST be placed after the Mobile-Home
authentication extension, and the extension SHOULD be authenticated
by a Foreign-Home Authentication extension.
The home agent may receive a Registration Request with the Mobile-AAA
Authentication extension. If the Mobile-AAA Authentication extension
is used by the home agent as an authorization-enabling extension and
the verification fails due to an incorrect authenticator, the home
agent MAY reject the Registration Reply with the error code
ha_bad_aaa_auth.
Since the extension type for the Challenge extension is within the
range 128-255, the home agent MUST process such a Registration
Request even if it does not recognize the Challenge extension
[<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>]. In this case, the home agent will send a Registration
Reply to the foreign agent that does not include the Challenge
extension.
<span class="grey">Perkins, et al. Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
<span class="h3"><a class="selflink" id="section-3.5" href="#section-3.5">3.5</a>. Mobile Node Processing of Registration Replies</span>
A mobile node might receive the error code in the Registration Reply
from the foreign agent as a response to the Registration Request.
The error codes are defined in <a href="#section-10">Section 10</a>.
In any case, if the mobile node attempts to register again after such
an error, it MUST use a new Challenge value in such a registration,
obtained either from an Agent Advertisement, or from a Challenge
extension to the Registration Reply containing the error.
In the co-located care-of address mode, the mobile node receives a
Registration Reply without the Challenge extension and processes the
Registration Reply as specified in [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>]. In this case, when the
mobile node includes the MN-AAA Authentication Extension, the
Challenge value 0 is recommended for the authenticator computation
mentioned in <a href="#section-8">Section 8</a>.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Mobile-Foreign Challenge Extension</span>
This section specifies a new Mobile IP Registration extension that is
used to satisfy a Challenge in an Agent Advertisement. The Challenge
extension to the Registration Request message is used to indicate the
challenge that the mobile node is attempting to satisfy.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Length | Challenge ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 2. The Mobile-Foreign Challenge Extension
Type:
132 (skippable). (See [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>]).
Length:
Length of the Challenge value.
Challenge:
The Challenge field is copied from the Challenge field found in
the received Challenge extension.
Suppose that the mobile node has successfully registered using one of
the Challenge Values within the CHALLENGE_WINDOW values advertised by
<span class="grey">Perkins, et al. Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
the foreign agent. In that case, in any new Registration Request the
mobile node MUST NOT use any Challenge Value that was advertised by
the foreign agent before the Challenge Value in the mobile node's
last Registration Request.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Generalized Mobile IP Authentication Extension</span>
Several new authentication extensions have been designed for various
control messages proposed for extensions to Mobile IP. A new
authentication extension is required for a mobile node to present its
credentials to any other entity other than the ones already defined;
the only entities defined in the base Mobile IP specification
[<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>] are the home agent and the foreign agent. The purpose of
the generalized authentication extension defined here is to collect
together data for all such new authentication applications into a
single extension type with subtypes.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Subtype | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SPI |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Authenticator ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 3. The Generalized Mobile IP Authentication Extension
Type:
36 (not skippable). (See [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>]).
Subtype:
A number assigned to identify the kind of endpoints or other
characteristics of the particular authentication strategy.
Length:
4 plus the number of octets in the Authenticator; MUST be at least
20.
SPI:
Security Parameters Index
<span class="grey">Perkins, et al. Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
Authenticator:
The variable length Authenticator field
In this document, only one subtype is defined:
1 Mobile-AAA Authentication subtype
(Hashed Message Authentication Code-MD5 (HMAC-MD5))
(see <a href="#section-6">Section 6</a>).
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Mobile-AAA Authentication Subtype</span>
The Generalized Authentication extension with subtype 1 will be
referred to as a Mobile-AAA Authentication extension. The mobile
node MAY include a Mobile-AAA Authentication extension in any
Registration Request. This extension MAY co-exist in the same
Registration Request with Authentication extensions defined for
Mobile IP Registration ([<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>]). If the mobile node does not
include a Mobile-Foreign Authentication extension, then it MUST
include the Mobile-AAA Authentication extension whenever the
Challenge extension is present. If both are present, the Mobile-AAA
Authentication extension MUST precede the Mobile-Foreign
Authentication extension.
If the Mobile-AAA Authentication extension is present, the Mobile-
Home Authentication extension MUST appear prior to the Mobile-AAA
Authentication extension. The corresponding response MUST include
the Mobile-Home Authentication extension and MUST NOT include the
Mobile-AAA Authentication extension.
The default algorithm for computation of the authenticator is HMAC-
MD5 [<a href="./rfc2104" title=""HMAC: Keyed- Hashing for Message Authentication"">RFC2104</a>] computed on the following data, in the order shown:
Preceding Mobile IP data || Type, Subtype, Length, SPI
where the Type, Length, Subtype, and SPI are as shown in <a href="#section-5">Section 5</a>.
The Preceding Mobile IP data refers to the UDP payload (the
Registration Request or Registration Reply data) and all prior
extensions in their entirety. The resulting function call, as
described in [<a href="./rfc2104" title=""HMAC: Keyed- Hashing for Message Authentication"">RFC2104</a>], would be:
hmac_md5(data, datalen, Key, KeyLength, authenticator);
Each mobile node MUST support the ability to produce the
authenticator by using HMAC-MD5 as shown. Just as with Mobile IP, it
must be possible to configure the use of any arbitrary 32-bit SPI
outside of the SPIs in the reserved range 0-255 for selection of this
default algorithm.
<span class="grey">Perkins, et al. Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Reserved SPIs for Mobile IP</span>
Mobile IP defines several authentication extensions for use in
Registration Requests and Replies. Each authentication extension
carries a Security Parameters Index (SPI) that should be used to
index a table of security associations. Values in the range 0-255
are reserved for special use. A list of reserved SPI numbers is to
be maintained by IANA at the following URL:
<a href="http://www.iana.org/assignments/mobileip-numbers">http://www.iana.org/assignments/mobileip-numbers</a>
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. SPIs for RADIUS AAA Servers</span>
Some AAA servers only admit a single security association and thus do
not use the SPI numbers for Mobile IP authentication extensions for
use when determining the security association that would be necessary
for verifying the authentication information included with the
Authentication extension.
SPI number CHAP_SPI (see <a href="#section-9">Section 9</a>) is reserved for indicating the
following procedure for computing authentication data (called the
"authenticator"), which is used by many RADIUS servers [<a href="./rfc2865" title=""Remote Authentication Dial In User Service (RADIUS)"">RFC2865</a>]
today.
To compute the authenticator, apply MD5 [<a href="./rfc1321" title=""The MD5 Message-Digest Algorithm"">RFC1321</a>] computed on the
following data, in the order shown:
High-order octet from Challenge || Key ||
MD5(Preceding Mobile IP data ||
Type, Subtype (if present), Length, SPI) ||
Least-order 237 octets from Challenge
where Type, Length, SPI, and possibly Subtype are the fields of the
authentication extension in use. For instance, all four of these
fields would be in use when SPI == CHAP_SPI is used with the
Generalized Authentication extension. In case of co-located care-of
address, the Challenge value 0 is used (refer to <a href="#section-3.5">Section 3.5</a>). Since
the RADIUS protocol cannot carry attributes of length greater than
253, the preceding Mobile IP data, type, subtype (if present),
length, and SPI are hashed using MD5. Finally, the least significant
237 octets of the challenge are concatenated. If the challenge has
fewer than 238 octets, this algorithm includes the high-order octet
in the computation twice but ensures that the challenge is used
<span class="grey">Perkins, et al. Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
exactly as is. Additional padding is never used to increase the
length of the challenge; the input data is allowed to be shorter than
237 octets long.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Configurable Parameters</span>
Every Mobile IP agent supporting the extensions defined in this
document SHOULD be able to configure each parameter in the following
table. Each table entry contains the name of the parameter, the
default value, and the section of the document in which the parameter
first appears.
+------------------+---------------+---------------------+
| Parameter Name | Default Value | Section of Document |
+------------------+---------------+---------------------+
| CHALLENGE_WINDOW | 2 | 3.2 |
| | | |
| CHAP_SPI | 2 | 8 |
+------------------+---------------+---------------------+
Table 1. Configurable Parameters
Note that CHALLENGE_WINDOW SHOULD be at least 2. This makes it far
less likely that mobile nodes will register using a Challenge value
that is outside the set of values allowable by the foreign agent.
<span class="grey">Perkins, et al. Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. Error Values</span>
Each entry in the following table contains the name of the Code
[<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>] to be returned in a Registration Reply, the value for the
Code, and the section in which the error is mentioned in this
specification.
+--------------------+-------+--------------------------+
| Error Name | Value | Section of Document |
+--------------------+-------+--------------------------+
| unknown_challenge | 104 | 3.2 |
| | | |
| mobile node failed | 67 | 3.2; also see [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>] |
| authentication | | |
| | | |
| missing_challenge | 105 | 3.1, 3.2 |
| | | |
| stale_challenge | 106 | 3.2 |
| | | |
| fa_bad_aaa_auth | 108 | 3.2 |
| | | |
| ha_bad_aaa_auth | 144 | 3.4 |
| | | |
| ha_wrong_challenge | 109 | 3.2 |
+--------------------+-------+--------------------------+
Table 2. Error Values
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. IANA Considerations</span>
The following are currently assigned by IANA for <a href="./rfc3012">RFC 3012</a> [<a href="./rfc3012" title=""Mobile IPv4 Challenge/Response Extensions"">RFC3012</a>]
and are applicable to this document. IANA has recorded these values
as part of this document.
The Generalized Mobile IP Authentication extension defined in
<a href="#section-5">Section 5</a> is a Mobile IP registration extension. IANA has
assigned a value of 36 for this extension.
A new number space is to be created for enumerating subtypes of
the Generalized Authentication extension (see <a href="#section-5">Section 5</a>). New
subtypes of the Generalized Authentication extension, other than
the number (1) for the MN-AAA authentication extension specified
in <a href="#section-6">Section 6</a>, must be specified and approved by a designated
expert.
<span class="grey">Perkins, et al. Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
The Mobile Node - Foreign Agent (MN-FA) Challenge extension,
defined in <a href="#section-4">Section 4</a>, is a router advertisement extension as
defined in <a href="./rfc1256">RFC 1256</a> [<a href="./rfc1256" title=""ICMP Router Discovery Messages"">RFC1256</a>] and extended in <a href="./rfc3344">RFC 3344</a> [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>].
IANA has assigned a value of 132 for this purpose.
The Code values defined in <a href="#section-10">Section 10</a> are error codes as defined
in <a href="./rfc3344">RFC 3344</a> ([<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>]). They correspond to error values
conventionally associated with rejection by the foreign agent
(i.e., values from the range 64-127). The Code value 67 is a
pre-existing value that is to be used in some cases with the
extension defined in this specification. IANA has recorded the
values as defined in <a href="#section-10">Section 10</a>.
A new section for enumerating algorithms identified by specific
SPIs within the range 0-255 has been added by IANA. The CHAP_SPI
number (2) discussed in <a href="#section-8">Section 8</a> is assigned from this range of
reserved SPI numbers. New assignments from this reserved range
must be specified and approved by the Mobile IP working group.
SPI number 1 should not be assigned unless in the future the
Mobile IP working group decides that SKIP is not important for
enumeration in the list of reserved numbers. SPI number 0 should
not be assigned.
Additionally, the new error codes fa_bad_aaa_auth, ha_bad_aaa_auth,
and ha_wrong_challenge are defined by this document. Among these,
ha_wrong_challenge may appear in the Status code of the FA Error
extension, defined in [<a href="./rfc4636" title=""Foreign Agent Error Extension for Mobile IPv4"">RFC4636</a>].
<span class="h2"><a class="selflink" id="section-12" href="#section-12">12</a>. Security Considerations</span>
In the event that a malicious mobile node attempts to replay the
authenticator for an old Mobile-Foreign Challenge, the foreign agent
would detect it, since the agent always checks whether it has
recently advertised the Challenge (see <a href="#section-3.2">Section 3.2</a>). Allowing mobile
nodes with different IP addresses or NAIs to use the same Challenge
value does not represent a security vulnerability, as the
authentication data provided by the mobile node will be computed over
data that is different (at least the mobile node's IP address will
vary).
If the foreign agent chooses a Challenge value (see <a href="#section-2">Section 2</a>) with
fewer than 4 octets, the foreign agent SHOULD include the value of
the Identification field in the records it maintains for the mobile
node. The foreign agent can then determine whether the Registration
messages using the short Challenge value are in fact unique and thus
assuredly not replayed from any earlier registration.
<span class="grey">Perkins, et al. Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
<a href="#section-8">Section 8</a> (SPI For RADIUS AAA Servers) defines a method of computing
the Generalized Mobile IP Authentication extension's authenticator
field, using MD5 in a manner that is consistent with RADIUS
[<a href="./rfc2865" title=""Remote Authentication Dial In User Service (RADIUS)"">RFC2865</a>]. The use of MD5 in the method described in <a href="#section-8">Section 8</a> is
less secure than HMAC-MD5 [<a href="./rfc2104" title=""HMAC: Keyed- Hashing for Message Authentication"">RFC2104</a>] and MUST be avoided whenever
possible.
Note that an active attacker may try to prevent successful
registrations by sending a large number of Agent Solicitations or
bogus Registration Requests, each of which could cause the foreign
agent to respond with a fresh challenge, invalidating the challenge
that the MN is currently trying to use. To prevent such attacks, the
foreign agent MUST NOT invalidate previously unused challenges when
responding to unauthenticated Registration Requests or Agent
Solicitations. In addition, the foreign agent MUST NOT allocate new
storage when responding to such messages, as this would also create
the possibility of denial of service.
The Challenge extension specified in this document need not be used
for co-located care-of address mode. In this case, replay protection
is provided by the Identification field in the Registration Request
message [<a href="./rfc3344" title=""IP Mobility Support for IPv4"">RFC3344</a>].
The Generalized Mobile IP Authentication extension includes a subtype
field that is used to identify characteristics of the particular
authentication strategy. This document only defines one subtype, the
Mobile-AAA Authentication subtype that uses HMAC-MD5. If it is
necessary to move to a new message authentication algorithm in the
future, this could be accomplished by defining a new subtype that
uses a different one.
<span class="h2"><a class="selflink" id="section-13" href="#section-13">13</a>. Acknowledgements</span>
The authors would like to thank Pete McCann, Ahmad Muhanna, Henrik
Levkowetz, Kent Leung, Alpesh Patel, Madjid Nakhjiri, Gabriel
Montenegro, Jari Arkko, and other MIP4 WG participants for their
useful discussions.
<span class="h2"><a class="selflink" id="section-14" href="#section-14">14</a>. Normative References</span>
[<a id="ref-RFC1256">RFC1256</a>] Deering, S., "ICMP Router Discovery Messages", <a href="./rfc1256">RFC 1256</a>,
September 1991.
[<a id="ref-RFC1321">RFC1321</a>] Rivest, R., "The MD5 Message-Digest Algorithm", <a href="./rfc1321">RFC 1321</a>,
April 1992.
[<a id="ref-RFC1994">RFC1994</a>] Simpson, W., "PPP Challenge Handshake Authentication
Protocol (CHAP)", <a href="./rfc1994">RFC 1994</a>, August 1996.
<span class="grey">Perkins, et al. Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
[<a id="ref-RFC2104">RFC2104</a>] Krawczyk, H., Bellare, M., and R. Canetti, "HMAC: Keyed-
Hashing for Message Authentication", <a href="./rfc2104">RFC 2104</a>, February
1997.
[<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>, March 1997.
[<a id="ref-RFC2865">RFC2865</a>] Rigney, C., Willens, S., Rubens, A., and W. Simpson,
"Remote Authentication Dial In User Service (RADIUS)", <a href="./rfc2865">RFC</a>
<a href="./rfc2865">2865</a>, June 2000.
[<a id="ref-RFC2794">RFC2794</a>] Calhoun, P. and C. Perkins, "Mobile IP Network Access
Identifier Extension for IPv4", <a href="./rfc2794">RFC 2794</a>, March 2000.
[<a id="ref-RFC3012">RFC3012</a>] Perkins, C. and P. Calhoun, "Mobile IPv4
Challenge/Response Extensions", <a href="./rfc3012">RFC 3012</a>, November 2000.
[<a id="ref-RFC3344">RFC3344</a>] Perkins, C., "IP Mobility Support for IPv4", <a href="./rfc3344">RFC 3344</a>,
August 2002.
[<a id="ref-RFC4086">RFC4086</a>] Eastlake, D., 3rd, Schiller, J., and S. Crocker,
"Randomness Requirements for Security", <a href="https://www.rfc-editor.org/bcp/bcp106">BCP 106</a>, <a href="./rfc4086">RFC 4086</a>,
June 2005.
[<a id="ref-RFC4636">RFC4636</a>] Perkins, C., "Foreign Agent Error Extension for Mobile
IPv4", <a href="./rfc4636">RFC 4636</a>, October 2006.
<span class="grey">Perkins, et al. Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. Changes since <a href="./rfc3012">RFC 3012</a></span>
The following is the list of changes from <a href="./rfc3012">RFC 3012</a> ([<a href="./rfc3012" title=""Mobile IPv4 Challenge/Response Extensions"">RFC3012</a>]):
o Foreign agent recommended to include a Challenge in every
Registration Reply, so that mobile node can re-register without
waiting for an Advertisement.
o Foreign agent MUST record applicable challenge values used by each
mobile node.
o Mobile node forbidden to use Challenge values which were
advertised previous to the last Challenge value which it had used
for a registration.
o Challenge definitions are cleaned up.
o Programming suggestion added as an appendix.
o HMAC_CHAP_SPI option is added for Generalized Mobile IP
Authentication extension. Upon receipt of HMAC_CHAP_SPI, HMAC-MD5
is used instead of MD5 for computing the authenticator.
o Added fa_bad_aaa_auth and ha_bad_aaa_auth error codes to report
authentication errors caused while processing Mobile-AAA
Authentication extension. Also, added the error code
ha_wrong_challenge to indicate that Challenge value differs in the
Registration Reply received from the home agent compare to the one
sent to the home agent in the Registration Request.
o Processing of the Mobile-AAA Authentication extension is clarified
for the foreign agent and the home agent.
o Co-existence of the Mobile-AAA Authentication extension in the
same Registration Request is made explicit.
o The situation in which the foreign agent sets missing_challenge is
clarified further.
o The use of Mobile-AAA Authentication extension is allowed by the
mobile node with co-located care-of address.
o Added protection against bogus Registration Reply and Agent
Advertisement. Also, the processing of the Challenge is clarified
if it is received in the multicast/unicast Agent Advertisement.
o Added reference of FA Error extension in the References section
and also updated relevant text in <a href="#section-3.2">section 3.2</a> and <a href="#section-11">section 11</a>.
<span class="grey">Perkins, et al. Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
<span class="h2"><a class="selflink" id="appendix-B" href="#appendix-B">Appendix B</a>. Verification Infrastructure</span>
The Challenge extensions in this protocol specification are expected
to be useful to help the foreign agent manage connectivity for
visiting mobile nodes, even in situations where the foreign agent
does not have any security association with the mobile node or the
mobile node's home agent. In order to carry out the necessary
authentication, it is expected that the foreign agent will need the
assistance of external administrative systems, which have come to be
called AAA systems. For the purposes of this document, we call the
external administrative support the "verification infrastructure".
The verification infrastructure is described to motivate the design
of the protocol elements defined in this document and is not strictly
needed for the protocol to work. The foreign agent is free to use
any means at its disposal to verify the credentials of the mobile
node. It could, for instance, rely on a separate protocol between
the foreign agent and the Mobile IP home agent and still not require
any modification to the mobile node.
In order to verify the credentials of the mobile node, we assume that
the foreign agent has access to a verification infrastructure that
can return a secure notification to the foreign agent that the
authentication has been performed, along with the results of that
authentication. This infrastructure may be visualized as shown in
Figure 4.
+----------------------------------------------------+
| |
| Verification and Key Management Infrastructure |
| |
+----------------------------------------------------+
^ | ^ |
| | | |
| v | v
+---------------+ +---------------+
| | | |
| foreign agent | | home agent |
| | | |
+---------------+ +---------------+
Figure 4. The Verification Infrastructure
After the foreign agent gets the Challenge authentication, it MAY
pass the authentication to the (here unspecified) infrastructure and
await a Registration Reply. If the Reply has a positive status
(indicating that the registration was accepted), the foreign agent
accepts the registration. If the Reply contains the Code value
<span class="grey">Perkins, et al. Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
BAD_AUTHENTICATION (see <a href="#section-10">Section 10</a>), the foreign agent takes actions
indicated for rejected registrations.
Implicit in this picture is the important observation that the
foreign agent and the home agent have to be equipped to make use of
whatever protocol is required by the challenge verification and key
management infrastructure shown in the figure.
The protocol messages for handling the authentication within the
verification infrastructure and the identity of the agent performing
the verification of the foreign agent challenge are not specified in
this document, as those operations do not have to be performed by any
Mobile IP entity.
<span class="h2"><a class="selflink" id="appendix-C" href="#appendix-C">Appendix C</a>. Message Flow for FA Challenge Messaging with Mobile-AAA</span>
Extension
MN FA Verification home agent
|<-- Adv+Challenge--| Infrastructure |
| (if needed) | | |
| | | |
|-- RReq+Challenge->| | |
| + Auth.Ext. | | |
| | Auth. Request, incl. | |
| |--- RReq + Challenge --->| |
| | + Auth.Ext | RReq + |
| | |-- Challenge -->|
| | | |
| | | |
| | |<--- RRep ----- |
| | Authorization, incl. | |
| |<-- RRep + Auth.Ext.-----| |
| | | |
|<-- RRep+Auth.Ext--| | |
| + New Challenge | | |
Figure 5. Message Flows for FA Challenge Messaging
In Figure 5, the following informational message flow is illustrated:
1. The foreign agent includes a Challenge Value in a unicast Agent
Advertisement, if needed. This advertisement MAY have been
produced after receiving an Agent Solicitation from the mobile
node (not shown in the diagram).
2. The mobile node creates a Registration Request including the
advertised Challenge Value in the Challenge extension, along with
a Mobile-AAA authentication extension.
<span class="grey">Perkins, et al. Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
3. The foreign agent relays the Registration Request either to the
home agent specified by the mobile node or to its locally
configured Verification Infrastructure (see <a href="#appendix-B">Appendix B</a>),
according to local policy.
4. The foreign agent receives a Registration Reply with the
appropriate indications for authorizing connectivity for the
mobile node.
5. The foreign agent relays the Registration Reply to the mobile
node, often along with a new Challenge Value to be used by the
mobile node in its next Registration Request message.
<span class="h2"><a class="selflink" id="appendix-D" href="#appendix-D">Appendix D</a>. Message Flow for FA Challenge Messaging with MN-FA</span>
Authentication
MN FA home agent
|<-- Adv+Challenge--| |
| (if needed) | |
| | |
|-- RReq+Challenge->| |
| + Auth.Ext. | |
| |--- RReq + Challenge --->|
| | + HA-FA Auth.Ext |
| | |
| |<-- RRep + Challenge ----|
| | + HA-FA Auth.Ext |
| | |
|<-- RRep+Auth.Ext--| |
| + New Challenge | |
Figure 6. Message Flows for FA Challenge Messaging with MN-FA
Authentication
In Figure 6, the following informational message flow is illustrated:
1. The foreign agent disseminates a Challenge Value in an Agent
Advertisement, if needed. This advertisement MAY have been
produced after receiving an Agent Solicitation from the mobile
node (not shown in the diagram).
2. The mobile node creates a Registration Request including the
advertised Challenge Value in the Challenge extension, along with
a Mobile-Foreign Authentication extension.
3. The foreign agent relays the Registration Request to the home
agent specified by the mobile node.
<span class="grey">Perkins, et al. Standards Track [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
4. The foreign agent receives a Registration Reply with the
appropriate indications for authorizing connectivity for the
mobile node.
5. The foreign agent relays the Registration Reply to the mobile
node, possibly along with a new Challenge Value to be used by the
mobile node in its next Registration Request message. If the
Reply contains the Code value ha_bad_aaa_auth (see <a href="#section-10">Section 10</a>),
the foreign agent takes actions indicated for rejected
registrations.
<span class="h2"><a class="selflink" id="appendix-E" href="#appendix-E">Appendix E</a>. Example Pseudo-Code for Tracking Used Challenges</span>
current_chal := RegistrationRequest.challenge_extension_value
last_chal := mobile_node_record.last_used_adv_chal
if (current_chal == mobile_node_record.RegReply_challenge) {
update (mobile_node_record, current_chal)
return (OK)
}
else if (current_chal "among" VALID_ADV_CHALLENGES[]{
if (last_chal "among" VALID_ADV_CHALLENGES[]) {
if (current_chal is "before" last_chal) {
send_error(STALE_CHALLENGE)
return (FAILURE)
}
else {
update (mobile_node_record, current_chal)
return (OK)
}
}
else {
update (mobile_node_record, current_chal)
return (OK)
}
}
else {
send_error(UNKNOWN_CHALLENGE);
}
<span class="grey">Perkins, et al. Standards Track [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
Authors' Addresses
Charles E. Perkins
Nokia Research Center
Communications Systems Lab
313 Fairchild Drive
Mountain View, California 94043
Phone: +1 650 625-2986
EMail: charles.perkins@nokia.com
Pat R. Calhoun
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134
Phone: +1 408-853-5269
EMail: pcalhoun@cisco.com
Jayshree Bharatia
Nortel Networks
2221, Lakeside Blvd
Richardson, TX 75082
Phone: +1 972-684-5767
EMail: jayshree@nortel.com
<span class="grey">Perkins, et al. Standards Track [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc4721">RFC 4721</a> Mobile IPv4 Challenge/Response Extensions January 2007</span>
Full Copyright Statement
Copyright (C) The IETF Trust (2007).
This document is subject to the rights, licenses and restrictions
contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST,
AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT
THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY
IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at
ietf-ipr@ietf.org.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Perkins, et al. Standards Track [Page 26]
</pre>
|