tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

For MRI, include the IP options in the IP checksum.

Open robertsoule-barefoot opened this issue 7 years ago • 1 comments

Need to check how to modify the checksum function to take in header stacks as input.

robertsoule-barefoot avatar Nov 14 '17 18:11 robertsoule-barefoot

Here are few ideas:

  1. When computing checksum, check each header stack index exists and update the checksum.
  2. Change the design of mri. Rather than having a stack, add a fixed size header, something like:
header mri_t {
    bit<16>  count;
    switchID_t  swid1;
    qdepth_t    qdepth1;
    switchID_t  swid2;
    qdepth_t    qdepth2;
    switchID_t  swid2;
    qdepth_t    qdepth2;
}
  1. If the end goal is to process some header within the network only, you can remove the header before forwarding to the host.

  2. Add the switchId to checksum field.

NofelYaseen avatar Apr 03 '18 20:04 NofelYaseen