Order of functions to transmit and receive using layer1