The RRC layer is responsible for negotiating and configuring the DRX parameters between the gNB and the UE. These parameters include the DRX cycle, on-duration, and inactivity timer.
The MAC layer, on the other hand, is responsible for implementing the configured DRX parameters and managing the data transmission and reception during the active state of the DRX cycle. It handles the scheduling of data packets and manages the buffers for storing and forwarding the data.