Subject: [lp-wan] compression action of schc-10

From: Shoichi Sakane <[email-masked]>
Date: Thu, 15 Mar 2018 17:01:40 +0900

Authors to SCHC draft-10,

Could you give a few example regarding to the following text, like given bytes and compressed bytes ?

6.5.  Compression Decompression Actions (CDA)

   o  If the size is between 0 and 14 bytes, it is sent as a 4-bits
      integer.
   o  For values between 15 and 255, the first 4 bits sent are set to 1
      and the size is sent using 8 bits integer.
   o  For higher values of size, the first 12 bits are set to 1 and the
      next two bytes contain the size value as a 16 bits integer.
   o  If a field does not exist in the packet but in the Rule and its FL
      is variable, the size zero MUST be used.

If you could take in account of below three examples, that would be helpful to understand the procedure.

- ['0x43', '0x21']
- ['0x77', '0x77', '0x77', '0x2e', '0x65', '0x78', '0x6d', '0x70', '0x6c', '0x65', '0x2e', '0x63', '0x6f', '0x6d']
- ['0x6c', '0x6f', '0x6e', '0x67', '0x65', '0x72', '0x2e', '0x65', '0x78', '0x6d', '0x70', '0x6c', '0x65', '0x2e', '0x63', '0x6f', '0x6d']

Thanks,
Shoichi