Aviatrix Systems interview question

Packet decapsulation in any language comfortable.