add type setting and trigger first packet as the last sent time