Support for alternate checksum type indicated in Metadata PDU

Open
#99 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c

Research direction

Start by locating the Metadata PDU receipt and checksum validation path in the CF application; the issue does not name specific files or tests. Review how the 4-bit checksum type is currently handled, then determine whether completion means rejecting nonzero values or supporting alternate registered algorithms, with interoperability behavior covered by tests.

Written by the indexing model from the issue text.

Description

enhancement

Per the CCSDS blue book 727.0-B-5, section 5.2.5 - the metadata PDU has a 4-bit "checksum type" field. The description says:

Checksum algorithm identifier as registered in the SANA Checksum Types Registry.
Value zero indicates use of the legacy modular checksum.

It looks like CF only supports the legacy checksum, because it does not check this field at all, and there appears to be only one algorithm implemented. However, this is not as significant as the large file size issue (#95) because it does not otherwise change the format, here the result will be a simple failure of the validation check if there is a mismatch between peers.

This is an interoperability concern. If the intent is to only support legacy checksum, this should probably be documented in the release notes/version description document. If the intent is for full compliance with CCSDS book 727.0-B-5, then this is missing.

Interim recommendation for FSW is to at least check this field on receipt of a Metadata PDU, and reject if the checksum type field is set to anything other than '0'.

Dominant language
C
Stars
123
Forks
82
Avg merge
2d 22h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nasa/CF

All issues in nasa/CF

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.