If the UE does not have a C-RNTI then UE sends CCCH SDUs (such as RRCSetupRequest, etc.) on Msg3. These CCCH SDUs contain the contention resolution identity, and then the UE uses TC-RNTI to successfully decode the PDCCH of Msg4 and it can also successfully solve the Msg4. Contention Resolution Identity MAC CE, and the identity in the MAC CE is the same as that sent by the UE in Msg3.
Hmm …not sure that T300 expiry can stop RACH process once initiated. Let me read MAC procedures to find the answer to this question.
There is no mention about T300 in MAC specs 38.321
Because it’s an RRC timer not a MAC parameter or MAC timer.
It says in 38331:
5.3.3.7 T300 expiry
The UE shall:
1> if timer T300 expires:
2> reset MAC, release the MAC configuration and re-establish RLC for all RBs that are established;