CRANE, Common Reliable Accounting for Network Element

Description Glossary RFCs Publications Obsolete RFCs


Protocol suite: TCP/IP.
Protocol type:Application layer protocol.
Working groups:

RFC 3423:

TCP and SCTP are two transport layer protocols that fulfill the reliability requirement of CRANE. Either one of them MAY be used to transport CRANE messages. TCP meets some of the requirements, but not all (e.g., quick detection of server failure, the fact that TCP is stream oriented and not record oriented). Therefore, SCTP is the preferred way to transmit CRANE messages.

MAC header IP header TCP | SCTP header CRANE header Data :::

CRANE header:

0001020304050607 0809101112131415 1617181920212223 2425262728293031
Version Type Session ID Flags
Data :::

Version. 8 bits.
Indicates the supported CRANE protocol implementation. This field MUST be set to 1 to indicate the CRANE protocol Version 1.0. CRANE protocol Version 1.0 only supports IPv4 addressing; however, it can be used to transfer information related to IPv6 flows.

Type. 8 bits.
Identifies the type of the message.

0x01START, Flow Start.
0x02START ACK, Flow Start Acknowledge.
0x03STOP, Flow Stop.
0x04STOP ACK, Flow Stop Acknowledge.
0x05CONNECT, Connect.
0x10TMPL DATA, Template Data.
0x11TMPL DATA ACK, Template Data Acknowledge.
0x12FINAL TMPL DATA, Final Template Data.
0x13FINAL TMPL DATA ACK, Final Template Data Ack.
0x14GET SESS, Get Sessions.
0x15GET SESS RSP, Get Sessions Response.
0x16GET TMPL, Get Template.
0x17GET TMPL RSP, Get Template Response.
0x18START NEGOTIATE, Start Negotiation.
0x19START NEGOTIATE ACK, Start Negotiation Ack.
0x20DATA, Data.
0x21DATA ACK, Data Acknowledge.
0x23ERROR, Error.
0x30STATUS REQ, Status Request.
0x31STATUS RSP, Status Response.

Session ID. 8 bits.
Identifies the session with which the message is associated. This field is ignored in the case of GET SESS and GET SESS RSP messages.

Flags. 8 bits.
Used to identify options associated with the message. For CRANE Version 1.0, all the flags are reserved. The flags are set to zero on transmit and are ignored on receipt.

Length. 32 bits.
Total length of the CRANE message in bytes including the header.

Data. Variable length.


CRANE Session.
(RFC 3423) A CRANE Session is a logical connection between a CRANE client and one or multiple CRANE servers for the purpose of delivering accounting data. Multiple sessions MAY be maintained concurrently in a CRANE client or a CRANE server; they are distinguished by Session IDs.

Data Record.
(RFC 3423) A collection of information gathered by the Network Element for various purposes, e.g., accounting. The structure of a Data Record is defined by a Template.

DSN, Data Sequence Number.
(RFC 3423) An accounting Data Record level sequence number, which is attached to all data messages to facilitate reliable and in-sequence delivery.

Server priority.
(RFC 3423) A CRANE server is assigned with a Priority value. Accounting data is always delivered to the perceived operating CRANE server (from the CRANE client point of view) with the highest Priority value (the primary server) within a CRANE Session.

(RFC 3423) Defines the structure of any types of Data Record, and specifies the data type, meaning, and location of the fields in the record.


[RFC 3423] XACCT's Common Reliable Accounting for Network Element (CRANE) Protocol Specification Version 1.0.

[RFC 3955] Evaluation of Candidate Protocols for IP Flow Information Export (IPFIX).


Obsolete RFCs:

Description Glossary RFCs Publications Obsolete RFCs