Hello friend!
The attach procedure is a process in which a UE registers with the EPS network.
During network attach, a default EPS bearer is set up and the bearer provides a permanent IP connection.
Create the MM context and EPS bearer context of the UE on the MME and UE. The EPS bearer context of the UE is created on the S-GW and P-GW.
I hope it helps you.