idnits 2.17.1 draft-boucadair-lisp-bulk-03.txt: Checking boilerplate required by RFC 5378 and the IETF Trust (see https://trustee.ietf.org/license-info): ---------------------------------------------------------------------------- No issues found here. Checking nits according to https://www.ietf.org/id-info/1id-guidelines.txt: ---------------------------------------------------------------------------- No issues found here. Checking nits according to https://www.ietf.org/id-info/checklist : ---------------------------------------------------------------------------- No issues found here. Miscellaneous warnings: ---------------------------------------------------------------------------- == The copyright year in the IETF Trust and authors Copyright Line does not match the current year -- The document date (July 25, 2016) is 2804 days in the past. Is this intentional? Checking references for intended status: Proposed Standard ---------------------------------------------------------------------------- (See RFCs 3967 and 4897 for information about using normative references to lower-maturity documents in RFCs) ** Obsolete normative reference: RFC 793 (Obsoleted by RFC 9293) ** Obsolete normative reference: RFC 6830 (Obsoleted by RFC 9300, RFC 9301) ** Obsolete normative reference: RFC 6833 (Obsoleted by RFC 9301) == Outdated reference: A later version (-08) exists of draft-kouvelas-lisp-map-server-reliable-transport-01 Summary: 3 errors (**), 0 flaws (~~), 2 warnings (==), 1 comment (--). Run idnits with the --verbose option for more detailed information about the items above. -------------------------------------------------------------------------------- 2 Network Working Group M. Boucadair 3 Internet-Draft C. Jacquenet 4 Updates: 6830 (if approved) Orange 5 Intended status: Standards Track July 25, 2016 6 Expires: January 26, 2017 8 LISP Mapping Bulk Retrieval 9 draft-boucadair-lisp-bulk-03 11 Abstract 13 This document extends Locator/ID Separation Protocol (LISP) with a 14 capability for bulk mapping retrieval. It does so by defining new 15 LISP messages that are meant to facilitate state recovery of mapping 16 tables and improve Ingress Tunnel Routers (ITR) recovery times, in 17 particular. In addition, this document allows to request mappings 18 that match destination IP prefixes, names, or AS numbers. 20 This document updates RFC6830. 22 Requirements Language 24 The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", 25 "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this 26 document are to be interpreted as described in RFC 2119 [RFC2119]. 28 Status of This Memo 30 This Internet-Draft is submitted in full conformance with the 31 provisions of BCP 78 and BCP 79. 33 Internet-Drafts are working documents of the Internet Engineering 34 Task Force (IETF). Note that other groups may also distribute 35 working documents as Internet-Drafts. The list of current Internet- 36 Drafts is at http://datatracker.ietf.org/drafts/current/. 38 Internet-Drafts are draft documents valid for a maximum of six months 39 and may be updated, replaced, or obsoleted by other documents at any 40 time. It is inappropriate to use Internet-Drafts as reference 41 material or to cite them other than as "work in progress." 43 This Internet-Draft will expire on January 26, 2017. 45 Copyright Notice 47 Copyright (c) 2016 IETF Trust and the persons identified as the 48 document authors. All rights reserved. 50 This document is subject to BCP 78 and the IETF Trust's Legal 51 Provisions Relating to IETF Documents 52 (http://trustee.ietf.org/license-info) in effect on the date of 53 publication of this document. Please review these documents 54 carefully, as they describe your rights and restrictions with respect 55 to this document. Code Components extracted from this document must 56 include Simplified BSD License text as described in Section 4.e of 57 the Trust Legal Provisions and are provided without warranty as 58 described in the Simplified BSD License. 60 Table of Contents 62 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 63 2. Map-Request with Multiple Records . . . . . . . . . . . . . . 3 64 3. Bulk Mapping Retrieval . . . . . . . . . . . . . . . . . . . 7 65 3.1. Map-Bulk-Request Message Format . . . . . . . . . . . . . 9 66 3.2. Map-Bulk-Response Message Format . . . . . . . . . . . . 11 67 3.3. Generating a Map-Bulk-Request Message . . . . . . . . . 13 68 3.4. Processing a Map-Bulk-Request Message . . . . . . . . . . 14 69 3.5. Processing a Map-Bulk-Reply Message . . . . . . . . . . . 15 70 3.6. Bulk Mapping Retrival from Multiple Resolvers . . . . . . 16 71 4. Security Considerations . . . . . . . . . . . . . . . . . . . 17 72 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 17 73 6. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 17 74 7. References . . . . . . . . . . . . . . . . . . . . . . . . . 17 75 7.1. Normative references . . . . . . . . . . . . . . . . . . 17 76 7.2. Informative references . . . . . . . . . . . . . . . . . 18 77 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 18 79 1. Introduction 81 Locator/ID Separation Protocol (LISP, [RFC6830] ) operation relies 82 upon a mapping mechanism that is used by ingress/egress Tunnel 83 Routers (xTR) to forward traffic over the LISP network. This 84 document extends LISP with a capability for bulk mappings retrieval. 85 It does so by defining new LISP messages that are meant to facilitate 86 state recovery of mapping tables and improve Ingress Tunnel Routers 87 (ITR) recovery times, in particular. 89 The base LISP specification does not define how a requestor may ask 90 for multiple EIDs. Indeed, the current LISP specification [RFC6830] 91 states the following: 93 Support for requesting multiple EIDs in a single Map-Request 94 message will be specified in a future version of the protocol. 96 The extensions defined by this document allow for faster recovery of 97 mapping entries. For example, whenever an ITR fails for some reason, 98 the faulty ITR needs to recover at least the list of mappings for the 99 most popular prefixes in a timely manner, etc. These extensions may 100 be used by a leaf LISP network or enabled between mapping systems for 101 the sake of global mapping table maintenance. Policies for the 102 mapping entries to be recovered are deployment-specific. 104 The document defines a backward compatible extension of the LISP Map- 105 Request message to request multiple records (Section 2). Also, it 106 defines a more reliable method for the retrieval of mapping records 107 from one or multiple Map-Resolvers (Section 3). It does so by using 108 TCP ([RFC0793]) as a transport protocol for exchanges the bulk 109 retrieval messages. Other proposals have been made to use TCP for 110 reliable transport (e.g., 111 [I-D.kouvelas-lisp-map-server-reliable-transport]) 113 This document allows to request mappings that match destination IP 114 prefixes, names, or AS numbers. Other filter types may be defined in 115 future versions, if needed. 117 2. Map-Request with Multiple Records 119 As mentioned in Section 1, [RFC6830] does not specify how an ITR can 120 request for multiple EIDs using the same Map-Request message. This 121 document fills that void. 123 Figure 1 shows the difference between the current Map-Request message 124 format and the new format that includes the proposed extension. This 125 extension is meant to allow an ITR to request multiple EID records by 126 using the same Map-Request. 128 The proposed design is backward compatible since it aligns the 129 additional requested EID records at the end of the Map-Request 130 message. 132 As specified in [RFC6830], a mapping system must be prepared to 133 receive a request for multiple EID records in a Map-Request message. 134 A receiver relies upon the content of the "Record Count" field of the 135 Map-Request message to detect whether one or multiple records are 136 carried in the request. 138 OLD: 139 0 1 2 3 140 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 142 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 143 |Type=1 |A|M|P|S|p|s| Reserved | IRC | Record Count | 144 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 145 | Nonce . . . | 146 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 147 | . . . Nonce | 148 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 149 | Source-EID-AFI | Source EID Address ... | 150 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 151 | ITR-RLOC-AFI 1 | ITR-RLOC Address 1 ... | 152 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 153 | ... | 154 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 155 | ITR-RLOC-AFI n | ITR-RLOC Address n ... | 156 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 157 / | Reserved | EID mask-len | EID-Prefix-AFI | 158 Rec +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 159 \ | EID-Prefix ... | 160 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 161 | Map-Reply Record ... | 162 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 164 NEW: 165 0 1 2 3 166 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 167 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 168 |Type=1 |A|M|P|S|p|s| Reserved | IRC | Record Count | 169 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 170 | Nonce . . . | 171 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 172 | . . . Nonce | 173 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 174 | Source-EID-AFI | Source EID Address ... | 175 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 176 | ITR-RLOC-AFI 1 | ITR-RLOC Address 1 ... | 177 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 178 | ... | 179 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 180 | ITR-RLOC-AFI n | ITR-RLOC Address n ... | 181 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 182 / | Reserved | EID mask-len | EID-Prefix-AFI | 183 Rec 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 184 \ | EID-Prefix ... | 185 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 186 | Map-Reply Record ... | 187 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 188 / | Reserved | EID mask-len | EID-Prefix-AFI | 189 Rec 2 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 190 \ | EID-Prefix ... | 191 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 192 : ... : 193 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 194 / | Reserved | EID mask-len | EID-Prefix-AFI | 195 Rec m +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 196 \ | EID-Prefix ... | 197 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 199 Figure 1 201 The description of the fields of the updated Map-Request message is 202 exactly the same as in [RFC6830], except the additional records that 203 are prepended after the "Map-Reply Record" . The structure of a 204 record is exactly the same as in [RFC6830]. 206 When extracting the records included in a Map-Request message, a Map- 207 Resolver replies with the list of mappings that match these records. 208 One or multiple Map-Reply messages may be required to carry the 209 mapping records that match the requested EIDs included in a Map- 210 Request. 212 An ITR MUST be prepared to receive multiple Map-Reply messages from a 213 Map-Resolver as a response to a bulk Map-Request message that it 214 originally sent to that Map-Resolver. 216 In order to inform an ITR that subsequent Map-Reply messages will 217 follow (or not) , a dedicated flag bit is defined for this purpose: 218 it is called the M-bit (more-map-reply bit). 220 When set, the M-bit (more-map-reply bit) flag indicates this is not 221 the last Map-Reply message to be received by the requesting ITR; 222 additional Map-Reply messages follow. An implementation uses this 223 bit to decide when to terminate a request/response transaction. 225 If multiple Map-Reply messages are required to respond to a Map- 226 Request message, a Map-Resolver MUST set the M-bit flag for all Map- 227 Reply messages except for the last Map-Reply message. 229 OLD: 230 0 1 2 3 231 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 232 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 233 |Type=2 |P|E|S| Reserved | Record Count | 234 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 235 | Nonce . . . | 236 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 237 | . . . Nonce | 238 +-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 239 | | Record TTL | 240 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 241 R | Locator Count | EID mask-len | ACT |A| Reserved | 242 e +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 243 c | Rsvd | Map-Version Number | EID-Prefix-AFI | 244 o +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 245 r | EID-Prefix | 246 d +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 247 | /| Priority | Weight | M Priority | M Weight | 248 | L +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 249 | o | Unused Flags |L|p|R| Loc-AFI | 250 | c +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 251 | \| Locator | 252 +-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 254 NEW: 255 0 1 2 3 256 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 257 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 258 |Type=2 |P|E|S|M| Reserved | Record Count | 259 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 260 | Nonce . . . | 261 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 262 | . . . Nonce | 263 +-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 264 | | Record TTL | 265 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 266 R | Locator Count | EID mask-len | ACT |A| Reserved | 267 e +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 268 c | Rsvd | Map-Version Number | EID-Prefix-AFI | 269 o +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 270 r | EID-Prefix | 271 d +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 272 | /| Priority | Weight | M Priority | M Weight | 273 | L +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 274 | o | Unused Flags |L|p|R| Loc-AFI | 275 | c +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 276 | \| Locator | 277 +-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 279 In order to prevent reordering issues that would lead to drop 280 incoming Map-Reply messages, a more reliable solution is defined in 281 Section 3. 283 3. Bulk Mapping Retrieval 285 To allow for a more reliable method when retrieving multiple EID 286 mapping records from one or multiple Map-Resolvers, this section 287 defines additional LISP messages that are, unlike LISP control 288 messages, transported over TCP. 290 After establishing a TCP connection towards a Map-Resolver (using the 291 LISP service port), the ITR sends a Map-Bulk-Request (Section 3.1). 292 Upon receipt of that message, the Map-Resolver must reply with one or 293 more Map-Bulk-Reply messages (Section 3.2). Once the last Map-Bulk- 294 Reply is received from the Map-Resolver, the underlying TCP 295 connection may be closed. 297 Figure 2 illustrates the example of a bulk mapping retrieval that is 298 achieved with one single Map-Bulk-Reply, while Figure 3 shows an 299 example of a bulk mapping retrieval that requires multiple Map-Bulk- 300 Reply messages. 302 +--------+ +--------+ 303 | ITR | | MR | 304 +--------+ +--------+ 305 |<- Session Establishment--->| 306 | | 307 |Map-Bulk-Request (ID, d_EID | 308 | d_EID2, ..., d_EIDn) | 309 |--------------------------->| 310 | Map-Bulk-Reply(M=0) | 311 |<---------------------------| 313 Figure 2: Example of Bulk Mapping Retrieval 314 +--------+ +--------+ 315 | ITR | | MR | 316 +--------+ +--------+ 317 |<- Session Establishment -->| 318 | | 319 |Map-Bulk-Request (ID, d_EID | 320 | d_EID2, ..., d_EIDn) | 321 |--------------------------->| 322 |Map-Bulk-Reply(M=1, rec1, | 323 | rec2, ..., recn)| 324 |<---------------------------| 325 |Map-Bulk-Reply(M=1,recn+1 | 326 | recn+2, ..., recm)| 327 |<---------------------------| 328 ... 329 |Map-Bulk-Reply(M=0, recs) | 330 |<---------------------------| 332 Figure 3: Example of Bulk Mapping Retrieval 334 The bulk mapping retrieval allows to retrieve records that do not 335 only match IP prefixes, but also AS numbers or even names. When 336 names or AS numbers are included, the Map-Resolver is responsible for 337 identifying which IP prefixes are to be returned. 339 An ITR can establish multiple transactions with the same Map-Resolver 340 as shown in Figure 4. 342 +--------+ +--------+ 343 | ITR | | MR | 344 +--------+ +--------+ 345 |<- Session Establishment -->| 346 | | 347 |Map-Bulk-Request (ID1) | 348 |--------------------------->| 349 | Map-Bulk-Reply(ID1) | 350 |<---------------------------| 351 ... 352 |Map-Bulk-Request (ID2) | 353 |--------------------------->| 354 | Map-Bulk-Reply(ID2) | 355 |<---------------------------| 356 | Map-Bulk-Reply(ID2) | 357 |<---------------------------| 358 ... 359 |Map-Bulk-Request (IDa) | 360 |--------------------------->| 361 |Map-Bulk-Request (IDb) | 362 |--------------------------->| 363 | Map-Bulk-Reply(IDa) | 364 |<---------------------------| 365 | Map-Bulk-Reply(IDb) | 366 |<---------------------------| 367 | Map-Bulk-Reply(IDb) | 368 |<---------------------------| 369 | Map-Bulk-Reply(IDa) | 370 |<---------------------------| 372 Figure 4: Multiple Transactions with the Same Map-Resolver 374 3.1. Map-Bulk-Request Message Format 376 The format of the Map-Bulk-Request message is shown in Figure 5. 378 0 1 2 3 379 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 380 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 381 | Type |R| Reserved | Filter Count | 382 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 383 | Transaction ID | 384 +-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 385 | | Length | | 386 F +-+-+-+-+-+-+-+-+ : 387 I : Filter : 388 L +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 389 T ... 390 E +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 391 R | Length | | 392 S +-+-+-+-+-+-+-+-+ : 393 | : Filter : 394 +-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 396 Figure 5: Map-Bulk-Request Message Format 398 The description of the fields is as follows: 400 o Type is to be defined (see Section 5). 402 o R bit: MUST be set to 0 for Map-Bulk-Request messages. 404 o Reserved: reserved bits, MUST be sent as zeros and MUST be ignored 405 when received. 407 o Filter Count: This field indicates the number of filters included 408 in the request. 410 o Transaction ID: This field is used to uniquely identify a 411 connection context among those established with the same Map- 412 Resolver. Demux connections established with distinct Map- 413 Resolvers may rely on the address of the Map-Resolver. A 414 transaction-id MUST be unique for connections bound to the same 415 Map-Resolver. 417 o Length: This field indicates, in octets, the length of the filter 418 that is encoded in the "Filter" field. 420 o Filter: This field carries a destination EID (or a set thereof) 421 that is encoded as an UTF-8 string. This specification allows to 422 convey IP prefix literals, Names and/or AS numbers. One or 423 multiple filters may be present in a request. IPv4 prefixes are 424 encoded as IPv4-mapped IPv6 prefixes [RFC4291] (i.e., starting 425 with ::ffff:0:0/96). A mix of names, IP prefixes and AS numbers 426 may be enclosed in the same request. The value 0 is used to 427 indicate "ANY" mapping. 429 3.2. Map-Bulk-Response Message Format 431 The format of the Map-Bulk-Reply message is shown in Figure 6. 433 0 1 2 3 434 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 435 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 436 | Type |R|M|rsv| Records Count |Results | Filter Count | 437 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 438 | Transaction ID | 439 +-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 440 | | Code | Length | | 441 F +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ : 442 I : Filter : 443 L +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 444 T ... 445 E +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 446 R | Code | Length | | 447 S +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ : 448 | : Filter : 449 +-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 450 | | Record TTL | 451 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 452 R | Locator Count | EID mask-len | ACT |A| Reserved | 453 e +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 454 c | Rsvd | Map-Version Number | EID-Prefix-AFI | 455 o +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 456 r | EID-Prefix | 457 d +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 458 | /| Priority | Weight | M Priority | M Weight | 459 | L +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 460 | o | Unused Flags |L|p|R| Loc-AFI | 461 | c +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 462 | \| Locator | 463 +-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 464 ... 465 +-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 466 | | Record TTL | 467 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 468 R | Locator Count | EID mask-len | ACT |A| Reserved | 469 e +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 470 c | Rsvd | Map-Version Number | EID-Prefix-AFI | 471 o +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 472 r | EID-Prefix | 473 d +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 474 | /| Priority | Weight | M Priority | M Weight | 475 | L +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 476 | o | Unused Flags |L|p|R| Loc-AFI | 477 | c +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 478 | \| Locator | 479 +-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 481 Figure 6: Map-Bulk-Reply Message Format 483 The description of the fields of the Map-Bulk-Reply is similar to 484 those of a LISP Map-Request message ([RFC6830]), except the 485 following: 487 o Type is to be defined. The same code is used for both Map-Bulk- 488 Request and Map-Bulk-Reply. 490 o R bit: MUST be set to 1 for Map-Bulk-Reply messages. 492 o M (more-data bit): When set, this flag indicates that other 493 records are to be expected from the Map-Resolver. 495 o rsv: reserved bits, MUST be sent as zeros and MUST be ignored when 496 received. 498 o Records Count: Indicates the number of records included in the 499 response. 501 o Result: indicates the result code of the processing of the Map- 502 Bulk-Request message. The following codes are defined: 504 0: SUCCESS. This code indicates the request is successfully 505 processed. 507 1: BULK-PROHIBITED. This code indicates the bulk mapping is 508 blocked for this ITR, leaf LISP network, subscriber, etc. 510 2: BULK-LIMIT. This code indicates a rate-limit is applied on the 511 Map-Bulk-Request messages from the same ITR, leaf LISP network, 512 subscriber, etc. The ITR SHOULD re-issue the request after the 513 expiry of a timer; the default value of that timer is 60 514 seconds. Other values may be configured on the ITR. 516 3: OUT-OF-RESOURCES. This code indicates a Map-Resolver is 517 running out of resources. The ITR SHOULD re-iterate the same 518 request after the expiry of a timer. The default value of that 519 timer is 300 seconds. Other values MAY be configured on the 520 ITR. 522 o Filter Count: This field indicates the number of filters that were 523 not processed by the Map-Resolver. A filter MUST be included in a 524 response if and only if an error was encountered when processing 525 that filter at the Map-Resolver side. The "Result" code provides 526 more details about the reason for not processing such filter. If 527 all filters were successfully processed by the Map-Resolver, this 528 field MUST be set to 0. 530 o Transaction ID: MUST echo the one included in the Map-Bulk- 531 Request. 533 o Code: Indicates the reason why the filter is not included 535 0: FILTER-UNSUPPORTED. This code indicates a request is 536 successfully processed but this filter was not processed 537 because the format of the filter is not supported. 539 1: FILTER-BAD. This code indicates a request is successfully 540 processed but the filter was not processed because it is 541 malformed. 543 2: FILTER-MAX. This code indicates a request is successfully 544 processed but the filter was not processed because of a limit 545 enforced on the maximum number of filters to be processed. 547 3: FILTER-LOCAL. This code indicates a request is successfully 548 processed but the filter was not processed because of local 549 reasons. The ITR SHOULD, after a certain timer expires, send a 550 Map-Bulk-Request message for the set of filters that are not 551 processed with a reason code set to BULK-LOCAL. 553 o Length: Indicates the length of a filter this is not processed by 554 the Map-Resolver. 556 o Filter: Conveys a filter that is not processed by the Map- 557 Resolver. 559 3.3. Generating a Map-Bulk-Request Message 561 ITRs MUST support a configurable parameter to enable/disable bulk 562 mapping retrieval over TCP. The default value is set to "enabled". 564 If distinct port number is used by remote Map-Resolvers, the 565 destination port number to send Map-Bulk-Request messages SHOULD be 566 configured to the ITR. 568 After establishing a TCP connection towards a Map-Resolver (using the 569 LISP service port), the ITR MUST send a Map-Bulk-Request 570 (Section 3.1) to a Map-Resolver. Configuration information for 571 triggering bulk retrieval request messages MAY be provisioned to each 572 ITR. Multiple Map-Bulk-Request messages may be sent over the same 573 TCP connection. 575 An ITR that loses its mapping cache for some reason SHOULD generate a 576 Map-Bulk-Request message towards its Map-Resolver(s) with the set of 577 filters that are configured locally. 579 An ITR MAY generate several Map-Bulk-Request messages to the same or 580 distinct Map-Resolvers. 582 An ITR MUST generate a unique transaction-id per Map-Bulk-Request it 583 issues. 585 An ITR MUST expect that the Map-Resolver may limit the number of 586 filters that may be processed. Filters that are not accepted or not 587 processed by the Map-Resolvers are included in a Map-Bulk-Reply. 589 3.4. Processing a Map-Bulk-Request Message 591 A Map-Resolver that does not support the Map-Bulk-Request message 592 MUST silently ignore any Map-Bulk-Request message it receives. 594 Map-Resolvers MUST support a configurable parameter to enable/disable 595 the processing of Map-Bulk-Request messages. The default value is 596 set to "enabled". 598 A Map-Resolver that is enabled to process Map-Bulk-Request messages 599 MUST listen to incoming TCP connections on the default LISP service 600 port. ACLs MAY be configured to control the leaf networks that can 601 invoke this feature. 603 A Map-Resolver SHOULD support a configuration parameter to rate-limit 604 the number of simultaneous Map-Bulk-Request messages per leaf LISP 605 network, per ITR, etc. 607 If a Map-Resolver receives a Map-Bulk-Request message and it is 608 enabled to process it, a Map-Resolver MUST reply with one or multiple 609 Map-Bulk-Reply messages. 611 If multiple Map-Bulk-Reply messages are required to respond to a 612 given request, the Map-Resolver MUST: 614 o Echo the transaction-id. 616 o Set to R-bit. 618 o Set the M-bit for all Map-Bulk-Reply messages, except for the last 619 one. 621 o Include the set of filters that are not successfully processed for 622 some reason (e.g., malformed filter) and set the "Filter Count" 623 accordingly. 625 If filters are included in the request, the Map-Resolver MUST extract 626 those filters and lookup its mapping system accordingly. In 627 particular, the Map-Resolver MUST reply with a full mapping table if 628 a Null filter is included in the Map-Bulk-Request. 630 If bulk mapping retrieval is not allowed for a given ITR, the 631 'Result' field MUST be set to BULK-PROHIBITED. 633 If the Map-Resolver fails to process a request because limits for 634 that ITR are exceeded, it MUST set the 'Result' field to BULK-LIMIT. 636 If a subset of filters are successfully processed, the 'Result' field 637 MUST be set to SUCCESS. The set of filters that are not processed 638 MUST be echoed in the Map-Bulk-Reply; each with a failure code that 639 reflects the reason why the filter was not applied. If a filter type 640 is not supported by the Map-Resolver, the 'Code' field MUST be set to 641 FILTER-UNSUPPORTED. If the Map-Resolver fails to process some of the 642 filters included in a request because these filters were malformed, 643 it MUST echo the corresponding filters in the Map-Bulk-Reply message 644 and MUST set the 'Code' field to FILTER-BAD. f the Map-Resolver fails 645 to process some of the filters included in a request because a 646 maximum number of filters is supported, it MUST echo the 647 corresponding filters in the Map-Bulk-Reply message and set the 648 'Code' field to FILTER-MAX. If, for some other reasons, the Map- 649 Resolver fails to apply some filters included in a request, it MUST 650 echo the corresponding filter in the Map-Bulk-Reply message. The 651 'Code' field MUST be set to FILTER-LOCAL. 653 A Map-Resolver that is overloaded MUST reply with a Map-Bulk-Reply 654 message with the "Result" code set to OUT-OF-RESOURCES. 656 3.5. Processing a Map-Bulk-Reply Message 658 Upon receipt of a Map-Bulk-Reply message, the ITR MUST check whether 659 the message matches a Map-Bulk-Request it issued for the same Map- 660 Resolver. If no matching state is found, the message MUST be 661 silently dropped. If a state is found, the ITR MUST proceed as 662 follows: 664 o An ITR that receives the result code set to BULK-PROHIBITED MUST 665 NOT reissue a Map-Bulk-Request message to that Map-Resolver. 667 o An ITR that receives the result code set to BULK-LIMIT MUST NOT 668 try to resend the same request before the expiry of the 669 retransmission timeout (default value set to 60 seconds). 671 o An ITR that receives the result code set to OUT-OF-RESOURCES MUST 672 NOT resend the same request before 300 seconds. 674 o If the M-bit is set, it should expect that other Map-Bulk-Reply 675 messages will be received from this Map-Resolver. Appropriate 676 security mechanisms (e.g., Access Control Lists) SHOULD be 677 activated to allow the processing of these incoming unsolicited 678 Map-Bulk-Reply messages. 680 o If the M-bit is unset, this is an indication that this message 681 terminates the mapping bulk retrieval transaction. The ITR may 682 decide to terminate the underlying TCP connections if no other 683 transactions bound to the same Map-Resolver are active. 685 o Filters that are returned in the Map-Bulk-Reply message may not be 686 valid or have exceeded a limit. The "Code" field indicates the 687 reason for not processing these filters. In particular: 689 * An ITR that receives the 'Code' field set to FILTER-BAD or 690 FILTER-UNSUPPORTED MUST NOT resend the same filters that were 691 returned in the Map-Bulk-Reply message, in subsequent Map-Bulk- 692 Request messages. Furthermore, subsequent Map-Bulk-Request 693 messages MUST NOT use the unsupported format to encode the 694 filters. 696 * An ITR that receives the 'Code' field set to FILTER-MAX SHOULD 697 issue another Map-Bulk-Request message with the filters that 698 were returned in the Map-Bulk-Reply message with this code. 700 * An ITR that receives the 'Code' field set to FILTER-LOCAL 701 SHOULD for at least 60 seconds before issuing another Map-Bulk- 702 Request message with the filters that were returned in the Map- 703 Bulk-Reply message with this code. 705 3.6. Bulk Mapping Retrival from Multiple Resolvers 707 In order to retrieve mapping entries from multiple Map-Resolvers, an 708 ITR issues Map-Bulk-Request messages to a list of Map-Resolvers. 709 Each of these requests is handled as specified in Section 3.3. 711 An ITR MAY be configured to issue multiple Map-Bulk-Request messages 712 to distinct Map-Resolvers. 714 Conflicts may arise when contacting multiple Map-Resolvers. These 715 conflicts are not specific to the bulk mapping retrieval as this is 716 also an issue for individual mapping lookup. 718 4. Security Considerations 720 In addition to the security considerations discussed in [RFC6830] and 721 [RFC6833], TCP-specific threats are valid for this specification 722 (e.g., [I-D.ietf-tcpm-tcp-security]). 724 In order to avoid exhausting the resources of Map-Resolvers, Map- 725 Bulk-Request messages SHOULD be rate-limited. Furthermore, a Map- 726 Resolver MAY configure ACLs to control leaf LISP networks that are 727 allowed to issue Map-Bulk-Request messages. 729 The structure of a record conveyed in a Map-Bulk-Reply is exactly the 730 same as in [RFC6830]. As such, this specification does leak 731 information that would not be revealed using the base LISP. 733 5. IANA Considerations 735 This document requests IANA to assign a new code from the LISP Packet 736 Types registry ([I-D.boucadair-lisp-type-iana]): 738 Message Code Reference 739 ================================= ==== =============== 740 Map-Bulk-Request/Map-Bulk-Reply TBD [This document] 742 6. Acknowledgments 744 This work is partly funded by ANR LISP-Lab project #ANR-13-INFR- 745 009-X. 747 Many thanks to S. Secci and Chi Dung Phung for the comments. 749 7. References 751 7.1. Normative references 753 [I-D.boucadair-lisp-type-iana] 754 Boucadair, M. and C. Jacquenet, "IANA Registry for LISP 755 Packet Type Allocations", draft-boucadair-lisp-type- 756 iana-01 (work in progress), June 2016. 758 [RFC0793] Postel, J., "Transmission Control Protocol", STD 7, 759 RFC 793, DOI 10.17487/RFC0793, September 1981, 760 . 762 [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate 763 Requirement Levels", BCP 14, RFC 2119, 764 DOI 10.17487/RFC2119, March 1997, 765 . 767 [RFC4291] Hinden, R. and S. Deering, "IP Version 6 Addressing 768 Architecture", RFC 4291, DOI 10.17487/RFC4291, February 769 2006, . 771 [RFC6830] Farinacci, D., Fuller, V., Meyer, D., and D. Lewis, "The 772 Locator/ID Separation Protocol (LISP)", RFC 6830, 773 DOI 10.17487/RFC6830, January 2013, 774 . 776 [RFC6833] Fuller, V. and D. Farinacci, "Locator/ID Separation 777 Protocol (LISP) Map-Server Interface", RFC 6833, 778 DOI 10.17487/RFC6833, January 2013, 779 . 781 7.2. Informative references 783 [I-D.ietf-tcpm-tcp-security] 784 Gont, F., "Survey of Security Hardening Methods for 785 Transmission Control Protocol (TCP) Implementations", 786 draft-ietf-tcpm-tcp-security-03 (work in progress), March 787 2012. 789 [I-D.kouvelas-lisp-map-server-reliable-transport] 790 Cassar, C., Kouvelas, I., Lewis, D., Arango, J., and J. 791 Leong, "LISP Map Server Reliable Transport", draft- 792 kouvelas-lisp-map-server-reliable-transport-01 (work in 793 progress), February 2016. 795 Authors' Addresses 797 Mohamed Boucadair 798 Orange 799 Rennes 35000 800 France 802 EMail: mohamed.boucadair@orange.com 803 Christian Jacquenet 804 Orange 805 Rennes 35000 806 France 808 EMail: christian.jacquenet@orange.com