Skip to content

Commit

Permalink
Revised SCHC Compression of the If-None-Match CoAP option
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-tiloca-sics committed Mar 1, 2024
1 parent b7a9da5 commit a10163c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions draft-ietf-schc-8824-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ Otherwise, the Rule specifies the FL of the Field Descriptor as indicating a var

CoAP requests and responses do not include the same options. Compression Rules may reflect this asymmetry by using the DI.

The following sections present how SCHC compresses some specific CoAP options.
The following sections present how SCHC compresses some specific CoAP options. Unless otherwise indicated, the referred CoAP options are specified in {{RFC7252}}.

If the use of an additional CoAP option is later introduced, the SCHC Rules MAY be updated, in which case a new FID description MUST be assigned to perform the compression of the CoAP option. Otherwise, if no Rule describes that CoAP option, SCHC compression is not achieved, and SCHC sends the CoAP header without compression.

Expand Down Expand Up @@ -352,12 +352,18 @@ SCHC fixes the number of Uri-Path or Uri-Query elements in a Rule at Rule creati

## CoAP Option Size1, Size2, Proxy-Uri, and Proxy-Scheme Fields # {#ssec-size1-size2-proxy-uri-proxy-scheme-option}

The Size2 field is an option defined in {{RFC7959}}.

The SCHC Rule description MAY define sending some field values by not setting the TV, while setting the MO to "ignore" and the CDA to "value-sent". A Rule MAY also use a "match-mapping" MO when there are different options for the same FID. Otherwise, the Rule sets the TV to a specific value, the MO to "equal", and the CDA to "not-sent".

## CoAP Option ETag, If-Match, If-None-Match, Location-Path, and Location-Query Fields # {#ssec-etag-if-match-none-match-location-path-location-query-option}
## CoAP Option ETag, If-Match, If-None-Match, Location-Path, and Location-Query Fields # {#ssec-etag-if-match-location-path-location-query-option}

A Rule entry cannot store these fields' values. Therefore, SCHC compression MUST always send these values in the Compression Residue. That is, in the SCHC Rule, the TV is not set, while the MO is set to "ignore" and the CDA is set to "value-sent".

## CoAP Option If-None-Match # {#ssec-if-none-match}

The If-None-Match Option occurs at most once and is always empty. The SCHC Rule MUST describe an empty TV, with the MO set to "equal" and the CDA set to "not-sent".

## CoAP Option Hop-Limit Field ## {#coap-options-hop-limit}

The Hop-Limit field is an option defined in {{RFC8768}} that can be used to detect forwarding loops through a chain of CoAP proxies. The first proxy in the chain that understands the option includes it in a received request with a proper value set, before forwarding the request. Any following proxy that understands the option decrements the option value and forwards the request if the new value is different than zero, or returns a 5.08 (Hop Limit Reached) error response otherwise.
Expand Down Expand Up @@ -2104,6 +2110,8 @@ module ietf-schc-coap-ext {

* Clarified what SCHC compression considers for CoAP options.

* Revised SCHC Compression of the If-None-Match CoAP option.

* Added YANG data model for the ietf-schc-coap-ext module.

* Fixes and editorial improvements.
Expand Down

0 comments on commit a10163c

Please sign in to comment.