The former case is used when the UE already has a unique cell identifier (C-RNTI) before the random access procedure.
The UE which already has a cell identifier transmits data including its cell identifier to the BS according to a random access response, and operates a CR timer.