Get the cnic specifications, then figure out how to implement them. Since it's a published specification, you should be able to find it. (Cnic can refer to at least Pakistan and the US Navy, and maybe to others, so I can't give you a link to the specification you need.)