Network Working Group | M. Boucadair |
Internet-Draft | C. Jacquenet |
Intended status: Informational | Orange |
Expires: May 25, 2020 | D. Zhang |
Huawei Technologies | |
P. Georgatsos | |
CERTH | |
November 22, 2019 |
Connectivity Provisioning Negotiation Protocol (CPNP)
draft-boucadair-connectivity-provisioning-protocol-17
This document specifies the Connectivity Provisioning Negotiation Protocol (CPNP) which is designed for dynamic negotiation of service parameters.
CPNP is a generic protocol that can be used for various negotiation purposes that include (but are not necessarily limited to) connectivity provisioning services, storage facilities, Content Delivery Networks footprint, etc. The protocol can be extended with new Information Elements.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on May 25, 2020.
Copyright (c) 2019 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
This document defines the Connectivity Provisioning Negotiation Protocol (CPNP) that is meant to dynamically exchange and negotiate connectivity provisioning parameters, and other service-specific parameters, between a Customer and a Provider. CPNP is a tool that introduces automation in the service negotiation and activation procedures, thus fostering the overall service provisioning process. CPNP can be seen as a component of the dynamic negotiation meta-domain described in Section 3.4 of [RFC7149].
CPNP is a generic protocol that can be used for other negotiation purposes than connectivity provisioning. For example, CPNP can be used to request extra storage resources, to extend the footprint of a CDN (Content Delivery Networks), to enable additional features from a cloud Provider, etc. CPNP can be extended with new Information Elements (IEs).
[RFC7297] describes a Connectivity Provisioning Profile (CPP) template to capture connectivity requirements to be met by a transport infrastructure for the delivery of various services such as Voice over IP (VoIP), IPTV, and Virtual Private Network (VPN) services [RFC4026]. The CPP document defines the set of IP transfer parameters that reflect the guarantees that can be provided by the underlying transport network together with reachability scope and capacity needs. CPNP uses the CPP template to encode connectivity provisioning clauses during negotiation.
As a reminder, several proposals have been made in the past by the (research) community (e.g., COPS-SLS, Service Negotiation Protocol (SrNP), Dynamic Service Negotiation Protocol (DSNP), Resource Negotiation and Pricing Protocol (RNAP), Service Negotiation and Acquisition Protocol (SNAP)). CPNP leverages the experience of the authors with SrNP by separating the negotiation primitives from the service under negotiation. Moreover, careful examination of the other proposals revealed certain deficiencies that were easier to address through the creation of a new protocol rather than modifying existing protocols. For example:
One of the primary motivations of this document is to provide a permanent reference to exemplify how service negotiation can be automated.
This document is organized as follows:
Implementation details are out of scope. An example of required modules and interfaces to implement this specification is sketched in Section 4 of [AGAVE]. This specification builds on that effort.
This document makes use of the following terms:
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119][RFC8174] when, and only when, they appear in all capitals, as shown here.
The following functional elements are defined:
For preparing their service orders, the Customers may need to be aware of the offered services. The Providers therefore should first proceed with the announcement of the services that they can provide. The service announcement process may take place at designated global or Provider-specific service markets, or through explicit interactions with the Providers. The details of this process are outside the scope of a negotiation protocol.
With or without such service announcement mechanisms in place, the following order processing models can be distinguished:
Both frozen and negotiation-based models require the existence of appropriate service templates like a CPP template and their instantiation for expressing specific offerings from Providers and service requirements from Customers, respectively. CPNP can be used in either model for automating the required Customer-Provider interactions. Since the frozen model can be seen as a special case of the negotiation-based model, not only ‘yes/no’ answers but also counter offers may be issued by the Provider in response to Customer orders, this document focuses on the negotiation-based model.
Order processing management on the Network Provider's side is usually connected with the following functional blocks:
CPNP does not assume any specific knowledge about these functional blocks, drawing an explicit line between protocol operation and the logic for handling connectivity provisioning requests. Evidently order handling logic is subject to the information manipulated by these blocks. For example, the resources that can be allocated to accommodate Customer's requirements may depend on network availability estimates as calculated by the planning functions and related policies as well as on the number of orders to be processed simultaneously over a given period of time.
This document does not elaborate on how Customers are identified and subsequently managed by the Provider's Information System.
,--,--,--. ,--,--,--. ,-' `-. ,-' `-. (CDN Provider 'A')=====(CDN Provider 'B') `-. (CDN-A) ,-' `-. (CDN-B) ,-' `--'--'--' `--'--'--'
Figure 1: CDN Interconnection
,--,--,--. ,--,--,--. ,-' `-. ,-' `-. (Mapping System 'A')===(Mapping System 'B') `-. ,-' `-. ,-' `--'--'--' `--'--'--'
Figure 2: LISP Mapping System Interconnect
A non-exhaustive list of CPNP use cases is provided below:
CPNP may also be used between SDN controllers in contexts where Cooperating Layered Architecture for Software-Defined Networking (CLAS) is enabled [RFC8597].
Several CPNP deployment models can be envisaged. Two examples are listed below:
Once the negotiation of connectivity provisioning parameters is successfully concluded that is, an order has been placed by the Customer, the actual network provisioning operations are initiated. The specification of related dynamic resource allocation and policy enforcement schemes, as well as how CPNP servers interact with the network provisioning functional blocks at Provider sides are out of the scope of this document.
This document does not make any assumption about the CPNP deployment model either.
CPNP runs between a Customer and a Provider carrying service orders from the Customer and respective responses from the Provider to the end of reaching a connectivity service provisioning agreement. As the services offered by the Provider are well-described, by means of the CPP template, the negotiation process is essentially a value-settlement process, where an agreement is pursued on the values of the commonly understood information items (service parameters) included in the service description template.
The protocol is transparent to the content that it carries and to the negotiation logic, at Customer and Provider sides, that manipulates the content.
The protocol aims at facilitating the execution of the negotiation logic by providing the required generic communication primitives.
Since negotiations are initiated and primarily driven by the Customer's negotiation logic, it is reasonable to assume that the Customer can only call for an agreement. An implicit approach is adopted for not overloading the protocol with additional messages. In particular, the acceptance of an offer made by the Provider signals a call for agreement from the Customer. Note that it is almost certain the Provider to accept this call since it refers to an offer that itself made. Of course, at any point the Provider or the Customer may quit the negotiations, each on its own grounds.
Based on the above, CPNP adopts a Quotation Order/Offer/Answer model, which proceeds through the following basic steps:
Multiple instances of CPNP may run at Customer or Provider domains. A CPNP client may be engaged simultaneously in multiple negotiations with the same or different CPNP servers (parallel negotiations, see Section 8.9) and a CPNP server may need to negotiate with other Provider(s) as part of negotiations with a CPNP client (cascaded negotiations, see Section 8.8).
CPNP relies on various timers to achieve its operations. Two types of timers are defined: those that are specific to CPNP message transmission and those that are specific to the negotiation logic. The latter are used to guide the negotiation logic at both CPNP client and CPNP server sides, particularly in cases where the CPNP client is involved in parallel negotiations with several CPNP servers or in cases where the CPNP server is, in its turn, involved in negotiations with other Providers for processing a given quotation order. Related to the above, CPNP allows the CPNP server to request for more time. This request may be accepted or rejected by the CPNP client.
Providers may need to publish available services to the Customers (see Section 4). CPNP may optionally support this functionality. Dedicated templates can be defined for the purpose of service announcements, which will be used by the CPNP clients to initiate their CPNP negotiation cycles.
For simplicity, a single Offer/Answer stage is assumed within one a CPNP negotiation cycle. Nevertheless, as stated before, multiple CPNP negotiation cycles can be undertaken by a CPNP client (see Figure 3).
The model is flexible as it can accommodate changing conditions over time (e.g., introduction of an additional VPN site).
+------+ +------+ +------+ +------+ |Client| |Server| |Client| |Server| +------+ +------+ +------+ +------+ |=====Quotation Order=====>| |=====Quotation Order=====>| |<==========Offer==========| |<==========Offer==========| |===========Accept========>| |==========Decline========>| 1-Step Successful Negotiation 1-Step Failed Negotiation Cycle Cycle +------+ +------+ +------+ +------+ |Client| |Server| |Client| |Server| +------+ +------+ +------+ +------+ |===Quotation Order(a)====>| |===Quotation Order(i)====>| |<==========Offer==========| |<==========Offer==========| |==========Decline========>| |==========Decline========>| |===Quotation Order(b)====>| |===Quotation Order(j)====>| |<==========Offer==========| |<==========Offer==========| |===========Accept========>| |==========Decline========>| |===Quotation Order(k)====>| |<==========Offer==========| |==========Decline========>| |===Quotation Order(l)====>| |<==Fail to make an offer==| N-Step Negotiation Cycle: N-Step Negotiation Cycle: Successful Negotiation Failed Negotiation
Figure 3: Overall Negotiation Process
This version of the protocol does not support means for a client to retrieve a list of active/agreed offers.
CPNP is a client/server protocol can run over any transport protocol with UDP being the default transport mode secured with Datagram Transport Layer Security (DTLS) [RFC6347]. No permanent CPNP transport session needs to be maintained between the client and the server.
The CPNP client can be configured with the CPNP server(s) (typically, an IP address together with a port number) using manual or dynamic configuration means. For example, a Provider advertises the port number (CPNP_PORT) it uses to bind the CPNP service (e.g., using SRV [RFC2782]).
The client sends CPNP messages to CPNP_PORT. The same port number used as the source port number of a CPNP request sent to the server MUST be used by the server to reply to that request.
CPNP is independent of the IP address family.
CPNP retransmission is discussed in Section 11.4.
As an input to its decision-making process, the CPNP server may be connected to various external modules such as: Customer Profiles, Network Topology, Network Resource Management, Orders Repository, AAA and Network Provisioning Manager (an example is shown in Figure 4).
These external modules provide inputs to the CPNP server, so that it can:
The above list of CPNP server operations is not exhaustive.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Business & Administrative Management . .+------------------------++---------------------------+. .| Business Guidelines || Billing & Charging |. .+-----------+------------++-----------+---------------+. . | | . . +-------------------+ | . . . . . . . . . . . . . . . . . .|. . .|. . . . . . . . . . . . . . . . . . . . . . . . . .|. . .|. . . . . . . . . .Order Handling Management | | . . +-------------------+ +-------+-----+--------------+ . . |Network Topology DB+--+ CPNP Server | . . +-------------------+ +-+---+---+---+---+-----+----+ . . | | | | | | . . +------------------------+-+ | | | | | . . | Network Dimensioning | | | | | | . . | & Planning | | | | | | . . +--------------------------+ | | | | | . . +----------------------------+-+ | | | +---+----+ . . | | | | | | AAA | . . | Network +------------+ | | | +--------+ . . | Resource | +------------+-+ | +-+----------+ . . | Management | | Customer | | | Orders | . . | | | Profiles | | | Repository | . . +-----------------+ +--------------+ | +------------+ . . . . . . . . . . . . . . . . . . . . .|. . . . . . . . . +--------------------------------------+----------------+ | Network Provisioning Manager | +-------------------------------------------------------+
Figure 4: Order Handling Management Functional Block
The following order handling modes can be also configured on the server:
A CPNP session entry is denoted by a 5-uplet defined as follows:
A CPNP transaction occurs between a client and a server for pursuing, modifying, withdrawing a service agreement, and comprises all CPNP messages exchanged between the client and the server, from the first request sent by the client to the final response sent by the server. A CPNP transaction is bound to a CPNP session (Section 8.3).
Because multiple CPNP transactions can be maintained by the CPNP client, the client must assign an identifier to uniquely identify a given transaction. This identifier is denoted as Transaction-ID.
The Transaction-ID must be randomly assigned by the CPNP client, according to the best current practice for generating random numbers [RFC4086] that cannot be guessed easily. Transaction-ID is used for validating CPNP responses received by the client.
In the context of a transaction, the client needs to randomly select a sequence number and assign it in the first CPNP message to send. This number is then incremented for each request message is subsequently sent within the on-going CPNP transaction (see Section 11.3).
CPNP adopts a simple retransmission procedure which relies on a retransmission timer denoted as RETRANS_TIMER and maximum retry threshold. The use of RETRANS_TIMER and a maximum retry threshold are described in Section 11.
The response timer (RESPONSE_TIMER) is set by the client to denote the time, in seconds, the client will wait for receiving a response from the server to a provisioning quotation order request (see Section 9.1.6). If the timer expires, the respective quotation order is cancelled by the client and a CANCEL message is generated accordingly.
An offer expiration timer (EXPIRE_TIMER) is set by the server to represent the time, in minutes, after which an offer made by the server will be invalid (see Section 9.1.8).
CPNP operations are listed below. They may be augmented, depending on the nature of some transactions or because of security considerations that may necessitate a distinct CPNP client/server authentication phase before negotiation begins.
The above CPNP primitives are service-independent. CPNP messages may transparently carry service-specific objects which are handled by the negotiation logic at either side.
The document specifies the service objects that are required for connectivity provisioning negotiation (see Section 8.7). Additional service-specific objects to be carried in the CPNP messages can be defined in the future for accommodating alternative deployment or other service provisioning needs.
CPNP makes use of several flavors of Connectivity Provisioning Documents (CPD). These documents follow the CPP template described in [RFC7297].
Figure 5 shows a typical CPNP negotiation cycle and the use of the different types of Connectivity Provisioning Documents.
+------+ +------+ |Client| |Server| +------+ +------+ |======QUOTATION (Requested CPD)=====>| |<============PROCESSING==============| |<========OFFER (Offered CPD)=========| |=============PROCESSING=============>| |=========ACCEPT (Agreed CPD)========>| |<=========ACK (Agreed CPD)===========| | |
Figure 5: Connectivity Provisioning Documents
A provisioning document can include parameters with fixed values, loosely defined values, or a combination thereof. A provisioning document is said to be concrete if all clauses have fixed values.
A typical evolution of a negotiation cycle would start with a quotation order with loosely defined parameters, and then, as offers are made, it would conclude with concrete provisioning document for calling for the agreement.
If the server detects that network resources from another Network Provider need to be allocated in order to accommodate the requirements described in a PQO (e.g., in the context of an inter-domain VPN service, additional PE router resources need to be allocated), the server may generate child PQOs to request the appropriate network provisioning operations (see Figure 6). In such situation, the server behaves also as a CPNP client. The server associates the parent order with its child PQOs. This is typically achieved by locally adding the reference of the child PQO to the parent order.
+------+ +--------+ +--------+ |Client| |Server A| |Server B| +------+ +--------+ +--------+ | | | |=====QUOTATION=====>| | |<====PROCESSING=====| | | |=====QUOTATION=====>| | |<====PROCESSING=====| | |<=======OFFER=======| | |=====PROCESSING====>| | |=======ACCEPT======>| | |<=======ACK=========| |<=======OFFER=======| | |=====PROCESSING====>| | |=======ACCEPT======>| | |<=======ACK=========| | | | |
Figure 6: Example of Child Orders
A CPNP client may undertake multiple negotiations in parallel with several servers for practical reasons such as cost optimization and fail-safety. The multiple negotiations may lead to one or many agreements. Multiple negotiations with the same Provider are not precluded.
The salient point underlining the parallel negotiations scenario is that although the negotiation protocol is strictly between two parties, the negotiation logic may not necessarily be. The CPNP client negotiation logic may need to collectively drive parallel negotiations, as the negotiation with one server may affect the negotiation with other servers; e.g., it may need to use the responses from all servers as input for determining the messages (and their content) to subsequently send in each individual negotiation. Timing is therefore an important aspect at the client's. The CPNP client needs to have the ability to synchronize the receipt of the responses from the servers. CPNP takes into account this requirement by allowing clients to specify in the QUOTATION message the time by which the server needs to respond (see Section 9.1.6).
Both the client and the server maintain repositories to store on-going orders. How these repositories are maintained is deployment-specific. It is out of scope of this document to elaborate on such considerations. Timestamps are also logged to track state change. Tracking may be needed for various reasons, including regulatory ones.
In order to accommodate failures that may lead to the reboot of the client or the server, the use of permanent storage is recommended, thereby facilitating state recovery.
The following lists the states which can be associated with a given order on the client's side:
+------------------+ | Created |-----------------+ +------------------+ | | | v | +------------------+ | |AwaitingProcessing|----------------+| +------------------+ || | || QUOTATION || v || +------------------+ || | PQOSent |---CANCEL------+|| +------------------+ vvv | +-----+ PROCESSING | | v | | +------------------+ CANCEL | C | | ServerProcessing |------------>| A | +------------------+ FAIL | N | | | C | | | E | OFFER | L | | | L | v | E | +------------------+ | D | | OfferReceived |---CANCEL--->| | +------------------+ | | | PROCESSING +-----+ v ^^^ +------------------+ ||| | OfferProcessing |---DECLINE-----+|| +------------------+ || | ACCEPT || v || +------------------+ || | AcceptSent |---CANCEL-------+| +------------------+ | | ACK | v | +------------------+ | | AcceptAck |---WITHDRAW------+ +------------------+
Figure 7: CPNP Finite State Machine (Client Side)
The following lists the states which can be associated with a given order and a corresponding offer on the server's side:
+------------------+ +---------------------| ChildCreated | | +------------------+ v | ^ +------------------+ | | | ChildPQOSent |----------------+| Q +------------------+ || U | || O QUOTATION || T v || A +--------------------+ +---------------------+ CANCEL || T | PQOReceived | |ChildServerProcessing|------------+|| I +--------------------+ +---------------------+ FAIL vvv O | | | +-----+ N CANCEL | PROCESSING | |<---|-------+ PROCESSING v | | | v +------------------+ | | +------------------------+ |ChildOfferReceived|----CANCEL---| C |<--| AwaitingProcessing | +------------------+ | A | +------------------------+ | | N | ^ | OFFER OFFER | C | | +------------------+ | | E |<DECLINE-| OfferProposed | | | L | | +------------------+ v | L | | | +------------------+ | E | | PROCESSING |ChildOfferReceived|---CANCEL----| D | | v +------------------+ | | | +------------------+ | | |<DECLINE-| Proc'ingReceived | PROCESSING | | +------------------+ | +-----+ | | ACCEPT v ^^^^^ | v +------------------+ ||||| | +------------------+ |ChildOfferProc'ing|---DECLINE----+|||+-CANCEL-|-| AcceptReceived | +------------------+ ||| | +------------------+ |ACCEPT ||| | |ACK v ||| | v +------------------+ ||| | +------------------+ | ChildAcceptSent |---CANCEL------+|+-WITHDRAW|-| AcceptAck | +------------------+ | | +------------------+ | ACK | | v | | +------------------+ | | | ChildAcceptAck |---WITHDRAW-----+ | +------------------+ | | | +--------------------------------------+
Figure 8: CPNP Finite State Machine (Server Side)
This section defines CPNP objects using the RBNF format defined at [RFC5511].
CUSTOMER_AGREEMENT_IDENTIFIER is an identifier which is assigned by a client to identify an agreement. This identifier must be unique to the client.
Rules for assigning this identifier are specific to the client (Customer). The value of CUSTOMER_AGREEMENT_IDENTIFIER is included in all CPNP messages.
The client (Customer) assigns an identifier to an order under negotiation before an agreement is reached. This identifier will be used to unambiguously identify the resulting agreement at the client side (Customer).
The server handles CUSTOMER_AGREEMENT_IDENTIFIER as an opaque value.
PROVIDER_AGREEMENT_IDENTIFIER is an identifier which is assigned by a server to identify an order. This identifier must be unique to the server.
Rules for assigning this identifier are specific to the server (Provider). The value of PROVIDER_AGREEMENT_IDENTIFIER is included in all CPNP messages, except QUOTATION messages.
The server (Provider) assigns an identifier to an order under negotiation before an agreement is reached. This identifier will be used to unambiguously identify the resulting agreement at the server side (Provider).
The client handles PROVIDER_AGREEMENT_IDENTIFIER as an opaque value.
This object conveys the Transaction-ID introduced in Section 8.4.
Sequence Number is a number that is monotonically incremented on every new CPNP message within a CPNP transaction. This number is used to avoid reply attacks.
Refer to Section 11.3.
NONCE is a random value assigned by the CPNP server. It is RECOMMENDED to assign unique NONCE values for each order.
NONCE is then mandatory to be included in subsequent CPNP client operations on the associated order (including the resulting agreement) such as: withdraw the order or update the order.
If the NONCE validation checks fail, the server rejects the request with a FAIL message including the appropriate failure reason code.
This attribute indicates the time by when the CPNP client is expecting to receive a response, for a PQO, from the CPNP server. If no offer is received by then, the CPNP client will consider the quotation order as rejected.
EXPECTED_RESPONSE_TIME follows the date format specified in [RFC1123].
This attribute indicates the time by when the CPNP server is expecting to make an offer to the CPNP client. If no offer is received by then, the CPNP client will consider the order as rejected.
The CPNP server may propose an expected offer time that does not match the expected response time indicated in the quotation order message. The CPNP client can accept or rejects the proposed expected time by when the CPNP server will make an offer.
The CPNP server can always request extra time for its processing, but this may be accepted or rejected by the CPNP client.
EXPECTED_OFFER_TIME follows the date format specified in [RFC1123].
This attribute indicates the time of validity of an offer made by the CPNP server. If the offer is not accepted before this date expires, the CPNP server will consider the CPNP client has rejected the offer; the CPNP server will silently clear this order.
VALIDITY_OFFER_TIME follows date format specified in [RFC1123].
The RBNF format of the Connectivity Provisioning Document (CPD) is shown in Figure 9:
<CONNECTIVITY_PROVISIONING_DOCUMENT> ::= <Connectivity Provisioning Component> ... <Connectivity Provisioning Component> ::= <CONNECTIVITY_PROVISIONING_PROFILE> ... <CONNECTIVITY_PROVISIONING_PROFILE> ::= <Customer Nodes Map> <SCOPE> <QoS Guarantees> <Availability> <CAPACITY> <Traffic Isolation> <Conformance Traffic> <Flow Identification> <Overall Traffic Guarantees> <Routing and Forwarding> <Activation Means> <Invocation Means> <Notifications> <Customer Nodes Map> ::= <Customer Node> ... <Customer Node> ::= <IDENTIFIER> <LINK_IDENTIFIER> <LOCALISATION>
Figure 9: The RBNF format of the Connectivity Provisioning Document (CPD)
An Information Element (IE) is an optional object which can be included in a CPNP message.
The client may include administrative information such as:
The format of this Information Element is as follows:
<Customer Description> ::= [<NAME>] [<Contact Information>] <Contact Information> ::= [<EMAIL_ADDRESS>] [<POSTAL_ADDRESS>] [<TELEPHONE_NUMBER> ...]
The server may include administrative information in an offer such as:
The format of this Information Element is as follows:
<Provider Description> ::= [<NAME>] [<Contact Information>] [<AS_NUMBER>]
The client may include some negotiation options such as:
The format of this Information Element is as follows:
<Negotiation Options> ::= [<PURPOSE>]
This section specifies the RBNF format of CPNP operation messages. The following operation codes are used:
The format of the QUOTATION message is shown below:
The message MAY include an EXPECTED_RESPONSE_TIME which indicates by when the client is expecting to receive an offer from the server. QUOTATION message MUST also include a requested connectivity provisioning document.
When the client sends the QUOTATION message to the server, the state of the order changes to "PQOSent".
The format of the PROCESSING message is shown below:
Section 10). If no error is encountered, the server generates a PROCESSING response to the client to indicate the PQO has been received and it is being processed. The server MUST generate an order identifier which identifies the order in its local order repository. The server MUST copy the content of CUSTOMER_AGREEMENT_IDENTIFIER and TRANSACTION_ID fields as conveyed in the QUOTATION message. The server MAY include an EXPECTED_OFFER_TIME by when it expects to make an offer to the client.
Upon receipt of a PROCESSING message, the client verifies whether it has issued a PQO to that server and which contains the CUSTOMER_AGREEMENT_IDENTIFIER and TRANSACTION_ID. If no such PQO is found, the PROCESSING message MUST be silently ignored. If a PQO is found, the client may check if it accepts the EXPECTED_OFFER_TIME and then, it changes to state of the order to "ServerProcessing".
If more time is required by the server to process the quotation order, it MAY send a PROCESSING message that includes a new EXPECTED_OFFER_TIME. The client can answer with an ACK message if more time is granted (Figure 10) or with a FAIL message if the time extension is rejected (Figure 11).
+------+ +------+ |Client| |Server| +------+ +------+ |=======QUOTATION(Requested CPD)=====>| |<========PROCESSING(time1)===========| ... |<========PROCESSING(MoreTime)========| |============ACK(TimeGranted)========>| ... |<=========OFFER(Offered CPD)=========| |=============PROCESSING=============>| |==========ACCEPT(Agreed CPD)========>| |<==========ACK(Agreed CPD)===========| | |
Figure 10: Request More Negotiation Time: Granted
+------+ +------+ |Client| |Server| +------+ +------+ |=======QUOTATION(Requested CPD)=====>| |<========PROCESSING(time1)===========| ... |<========PROCESSING(MoreTime)========| |===========FAIL(TimeRejected)=======>|
Figure 11: Request More Negotiation Time: Rejected
The format of the OFFER message is shown below:
The format of the ACCEPT message is shown below:
The format of the DECLINE message is shown below:
If no order is found, the server returns a FAIL message to the requesting client.
A flow example is shown in Figure 12.
+------+ +------+ |Client| |Server| +------+ +------+ |=======QUOTATION(Requested CPD)=====>| |<============PROCESSING==============| |<=========OFFER(Offered CPD)=========| |=============PROCESSING=============>| |===============DECLINE==============>| |<================ACK=================| | |
Figure 12: DECLINE Flow Example
The format of the ACK message is shown below:
This message is sent by the server as a response to an ACCEPT, WITHDRAW, DECLINE, or CANCEL message. In such case, the ACK message MUST include the copy of the Connectivity Provisioning Document as stored by the server, in particular:
A client may issue an ACK message as a response to a more time request (conveyed in PROCESSING) received from the server. In such case, the ACK message MUST include an EXPECTED_RESPONSE_TIME that is likely to be set to the time extension requested by the server.
The format of the CANCEL message is shown below:
If no quotation order is found, the server returns a FAIL message to the requesting client.
The format of the WITHDRAW message is shown below:
Figure 13 shows a typical usage of this message.
+------+ +------+ |Client| |Server| +------+ +------+ |============WITHDRAW(CPD)===========>| |<============PROCESSING==============| |<===========ACK(Empty CPD)===========| | |
Figure 13: WITHDRAW Flow Example
The CPNP MUST include the same CUSTOMER_AGREEMENT_IDENTIFIER, PROVIDER_AGREEMENT_IDENTIFIER, and NONCE as those used when creating the order.
Upon receipt of a WITHDRAW message, the server checks whether an order matching the request is found. If an order is found, the state of the order is changed to "Cancelled" and an ACK message including an Empty CPD is returned to the requesting client. If no order is found, the server returns a FAIL message to the requesting client.
The format of the UPDATE message is shown below:
Upon receipt of an UPDATE message, the server checks whether an order, having state "Completed", matches CUSTOMER_AGREEMENT_IDENTIFIER, PROVIDER_AGREEMENT_IDENTIFIER, and NONCE.
+------+ +------+ |Client| |Server| +------+ +------+ |=========UPDATE(Requested CPD)======>| |<============PROCESSING==============| |<=========OFFER(Updated CPD)=========| |=============PROCESSING=============>| |==========ACCEPT(Updated CPD)=======>| |<==========ACK(Updated CPD)==========| | |
Figure 14: UPDATE Flow Example
A flow chart that illustrates the use of UPDATE operation is shown in Figure 14.
The format of the FAIL message is shown below:
The status code indicates the error code. The following codes are supported:
Both client and server proceed with CPNP message validation. The following tables summarize the validation checks to be followed.
Operation | Validation Checks |
---|---|
PROCESSING | {Source IP address, source port number, destination IP address, destination port number, Transaction-ID, Customer Order Identifier} must match an existing PQO with a state set to "PQOSent". The sequence number carried in the packet must be larger than the sequence number maintained by the client. |
OFFER | {Source IP address, source port number, destination IP address, destination port number, Transaction-ID, Customer Order Identifier} must match an existing order with state set to "PQOSent" or {Source IP address, source port number, destination IP address, destination port number, Transaction-ID, Customer Order Identifier, Provider Order Identifier} must match an existing order with a state set to "ServerProcessing". The sequence number carried in the packet must be larger than the sequence number maintained by the client. |
ACK (QUOTATION Transaction) | {Source IP address, source port number, destination IP address, destination port number, Transaction-ID, Customer Order Identifier, Provider Order Identifier, Offered Connectivity Provisioning Order} must match an order with a state set to "AcceptSent". The sequence number carried in the packet must be larger than the sequence number maintained by the client. |
ACK (UPDATE Transaction) | {Source IP address, source port number, destination IP address, destination port number, Transaction-ID, Customer Order Identifier, Provider Order Identifier, Updated Connectivity Provisioning Order} must match an order with a state set to "AcceptSent". The sequence number carried in the packet must be larger than the sequence number maintained by the client. |
ACK (WITHDRAW Transaction) | {Source IP address, source port number, destination IP address, destination port number, Transaction-ID, Customer Order Identifier, Provider Order Identifier, Empty Connectivity Provisioning Order} must match an order with a state set to "Cancelled". The sequence number carried in the packet must be larger than the sequence number maintained by the client. |
Method | Validation Checks |
---|---|
QUOTATION | The source IP address passes existing access filters (if any). The sequence number carried in the packet must not be less than the sequence number maintained by the server. |
PROCESSING | The sequence number carried in the packet must be larger than the sequence number maintained by the server. |
ACCEPT | {Source IP address, source port number, destination IP address, destination port number, Transaction-ID, Customer Order Identifier, Provider Order Identifier, Nonce, Offered Connectivity Provisioning Order} must match an order with state set to "OfferProposed" or "ProcessngReceived". The sequence number carried in the packet must be larger than the sequence number maintained by the server. |
DECLINE | {Source IP address, source port number, destination IP address, destination port number, Transaction-ID, Customer Order Identifier, Provider Order Identifier, Nonce} must match an order with state set to "OfferProposed" or "ProcessngReceived". The sequence number carried in the packet must be larger than the sequence number maintained by the server. |
UPDATE | The source IP address passes existing access filters (if any) and {Customer Order Identifier, Provider Order Identifier, Nonce} must match an existing order with state "Completed". |
WITHDRAW | The source IP address passes existing access filters (if any) and {Customer Order Identifier, Provider Order Identifier, Nonce} must match an existing order with state "Completed". |
Both CPNP client and server proceed to message validation checks as specified in Section 10.
To place a provisioning quotation order, the client initiates first a local quotation order object identified by a unique identifier assigned by the client. The state of the quotation order is set to "Created". The client then generates a QUOTATION request which includes the assigned identifier, possibly an expected response time, a Transaction-ID and a Requested Connectivity Provisioning Document. The client may include additional Information Elements such as Negotiation Options.
The client may be configured to not enforce negotiation checks on EXPECTED_OFFER_TIME; if so no EXPECTED_RESPONSE_TIME attribute (or EXPECTED_RESPONSE_TIME set to infinite) should be included in the quotation order.
Once the request is sent to the server, the state of the request is set to "PQOSent" and a timer, if a response time is included in the quotation order, is set to the expiration time as included in the QUOTATION request. The client also maintains a copy of the CPNP session entry details used to generate the QUOTATION request. The CPNP client must listen on the same port number that it used to send the QUOTATION request.
If no answer is received from the server before the retransmission timer expires (i.e., RETRANS_TIMER, Section 8.5), the client proceeds to retransmission until maximum retry is reached (e.g., 3 times). The same sequence number is used for retransmitted packets.
If a FAIL message is received, the client may decide to issue another (corrected) request towards the same server, cancel the local order, or contact another server. The behavior of the client depends on the error code returned by the server in the FAIL message.
If a PROCESSING message matching the CPNP session entry (Section 8.3) is received, the client updates the CPNP session entry with the PROVIDER_AGREEMENT_IDENTIFIER information. If the client does not accept the expected offer time that may have been indicated in the PROCESSING message, the client may decide to cancel the quotation order. If the client accepts the EXPECTED_OFFER_TIME, it changes the state of the order to "ServerProcessing" and sets a timer to the value of EXPECTED_OFFER_TIME. If no offer is made before the timer expires, the client changes the state of the order to "Cancelled".
As a response to a more time request (conveyed in a PROCESSING message that included a new EXPECTED_OFFER_TIME), the client may grant this extension by issuing an ACK message or reject the time extension with a FAIL message having a status code set to "More Time Rejected".
If an OFFER message matching the CPNP session entry is received, the client checks if a PROCESSING message having the same PROVIDER_AGREEMENT_IDENTIFIER has been received from the server. If a PROCESSING message was already received for the same order but the PROVIDER_AGREEMENT_IDENTIFIER does not match the identifier included in the OFFER message, the client ignores silently the message. If a PROCESSING message having the same PROVIDER_AGREEMENT_IDENTIFIER was already received and matches the CPNP transaction identifier, the client changes the state of the order to "OfferReceived" and sets a timer to the value of VALIDITY_OFFER_TIME indicated in the OFFER message.
If an offer is received from the server (i.e., as documented in an OFFER message), the client may accept or reject the offer. The client accepts the offer by generating an ACCEPT message which confirms that the client agrees to subscribe to the offer documented in the OFFER message; the state of the order is passed to "AcceptSent". The transaction is terminated if an ACK message is received from the server. If no ACK is received from the server, the client proceeds with the re-transmission of the ACCEPT message.
The client may also decide to reject the offer by sending a DECLINE message. The state of the order is set by the client to "Cancelled". If an offer is not acceptable by the client, the client may decide to contact a new server or submit another order to the same server. Guidelines to issue an updated order or terminate the negotiation are specific to the client.
A client may withdraw a completed order. This is achieved by issuing a WITHDRAW message. This message MUST include Customer Order Identifier, Provider Identifier, and Nonce returned during the order negotiation cycle specified in Section 11.1.1.
If no ACK is received from the server, the client proceeds with the re-transmission of the message.
A client may update a completed order. This is achieved by issuing an UPDATE message. This message MUST include Customer Order Identifier, Provider Order Identifier and Nonce returned during the order negotiation cycle specified in Section 11.1.1. The client MUST include in the UPDATE message an updated CPD with the requested changes.
Subsequent messages exchange is similar to what is documented in Section 11.1.1.
Upon receipt of a QUOTATION message from a client, the server sets a CPNP session, stores Transaction-ID and generates a Provider Order Identifier. Once preliminary validation checks are completed ( Section 10), the server may return a PROCESSING message to notify the client the quotation order is received and it is under processing; the server may include an expected offer time to notify the client by when an offer will be proposed. An order with state "AwaitingProcessing" is created by the server. The server runs its decision-making process to decide which offer it can make to honor the received order. The offer should be made before the expected offer time expires.
If the server cannot make an offer, it sends backs a FAIL message with the appropriate error code.
If the server requires more negotiation time, it must send a PROCESSING message with a new EXPECTED_OFFER_TIME. The client may grant this extension by issuing an ACK message or reject the time extension with a FAIL message having a status code set to "More Time Rejected". If the client doesn't grant more time, the server must answer before the initial expected offer time; otherwise the client will ignore the quotation order.
If the server can honor the request or it can make an offer that meet some of the requirements, it creates an OFFER message. The server must indicate the Transaction-ID, Customer Order Identifier as indicated in the QUOTATION message, and the Provider Order Identifier generated for this order. The server must also include Nonce and the offered Connectivity Provisioning Document. The server includes an offer validity time as well. Once sent to the client, the server changes the state of the order to "OfferSent" and a timer set to the validity time is initiated.
If the server determines that additional network resources from another network provider are needed to accommodate a quotation order, it will create child PQO(s) and will behave as a CPNP client to negotiate child PQO(s) with possible partnering providers (see Figure 6).
If no PROCESSING, ACCEPT or DECLINE message is received before the expiry of the RETRANS_TIMER, the server re-sends the same offer to the client. This procedure is repeated until maximum retry is reached.
If an ACCEPT message is received before the offered validity time expires, the server proceeds with validation checks as specified in Section 10. The state of the corresponding order is passed to "AcceptReceived". The server sends back an ACK message to terminate the order processing cycle.
If a CANCEL/DECLINE message is received, the server proceeds with the cancellation of the order. The state of the order is then passed to "Cancelled".
A client may withdraw a completed order by issuing a WITHDRAW message. Upon receipt of a WITHDRAW message, the server proceeds with the validation checks, as specified in Section 10:
A client may update an order by issuing an UPDATE message. Upon receipt of an UPDATE message, the server proceeds with the validation checks as specified in Section 10:
In each transaction, sequence numbers are used to protect the transaction against replay attacks. Each communicating partner of the transaction maintains two sequence numbers, one for incoming packets and one for outgoing packets. When a partner receives a message, it will check whether the sequence number in the message is larger than the incoming sequence number maintained locally. If not, the messages will be discarded. If the message is proved to be legal, the value of the incoming sequence number will be replaced by the value of the sequence number in the message. When a partner sends out a message, it will insert the value of outgoing sequence number into the message and increase the outgoing sequence number maintained locally by 1.
If a transaction partner sends out a message and does not receive any expected reply before the retransmission timer expires (i.e., RETRANS_TIMER), a transaction partner will try to re-transit the messages. An exception is the last message (e.g., ACK) sent from the server in a transaction. After sending this message, the retransmission timer will be disabled since no additional feedback is expected.
In addition, if the partner receives a re-sent last incoming packet, the partner can also send out the answer to the incoming packet with a limited frequency. If no answer was generated at the moment, the partner needs to generate a PROCESSING message as the answer.
To benefit message re-transmission, a partner could also store the last incoming packet and the associated answer. Note that the times of re-transmission could be decided by the local policy and re-transmission will not cause any change of sequence numbers.
The CPNP server should be configurable to log various events and associated information. Such information may include:
The CPNP server can operate in the following modes:
Business guidelines are local to each administrative entity. How validation requests are presented to an administrator are out of scope of this document; each administrative entity may decide the appropriate mechanism to enable for that purpose.
Means to defend the server against denial-of-service attacks must be enabled. For example, access control lists (ACLs) can be enforced on the client, the server or the network in between, to allow a trusted client to communicate with a trusted server.
The client and the server MUST be mutually authenticated. Authenticated encryption MUST be used for data confidentiality and message integrity.
The protocol does not provide security mechanisms to protect the confidentiality and integrity of the packets transported between the client and the server. An underlying security protocol such as (e.g., Datagram Transport Layer Security (DTLS) [RFC6347], Transport Layer Security (TLS) [RFC8446]) MUST be used to protect the integrity and confidentiality for the protocol. In this case, if it is possible to provide an Automated Key Management (AKM) and associate each transaction with a different key, inter-transaction replay attacks can naturally be addressed. If the client and the server use a single key, an additional mechanism should be provided to protect inter-transaction replay attacks between them. Clients MUST implement DTLS record replay detection (Section 3.3 of [RFC6347]) or an equivalent mechanism to protect against replay attacks.
DTLS and TLS with a cipher suite offering confidentiality protection and the guidance given in [RFC7525] MUST be followed to avoid attacks on (D)TLS.
The client MUST silently discard CPNP responses received from unknown CPNP servers. The use of a randomly generated Transaction-ID makes it hard to forge a response from a server with a spoofed IP address belonging to a legitimate CPNP server. Furthermore, CPNP demands that messages from the server must include correct identifiers of the orders. Two order identifiers are used: one generated by the client and a second one generated by the server.
The Provider MUST enforce means to protect privacy-related information included the documents (see Section 8.7) exchanged using CPNP messages [RFC6462]. In particular, this information MUST NOT be revealed to external parties without the consent of Customers. Providers should enforce policies to make Customer fingerprinting difficult to achieve. For more discussion about privacy, refer to [RFC6462][RFC6973].
The Nonce and the Transaction ID attributes provide sufficient randomness and can effectively tolerate attacks raised by off-line adversaries, who do not have the capability of eavesdropping and intercepting the packets transported between the client and the server. Only authorized clients must be able to modify agreed CPNP orders. The use of a randomly generated Nonce by the server makes it hard to modify an agreement on behalf of a malicious third-party.
This document does not request any IANA action.
Thanks to Diego R. Lopez and A. Farrel for the comments.