add checking logic of pdu data length.