Writing root layer pdu