basic frame of handlepacket function, handleArp and handleIp need to be implement