IP stack implementation for FPGA