if the RadioBearerConfig includes the mrb-ToAddModList:
2 >
perform multicast MRB addition or reconfiguration as specified in clause 5.3.5.6.7;
1 >
release all SDAP entities established for the PDU sessions, if any, that have no associated DRB as specified in clause 5.1.2 of TS 37.324, and indicate the release of the user plane resources for PDU Sessions associated with the released SDAP entities to upper layers;
1 >
release all SDAP entities established for the MBS multicast sessions, if any, that have no associated multicast MRB as specified in clause 5.1.2 of TS 37.324, and indicate the release of user plane resources for these MBS multicast sessions to upper layers.
establish a PDCP entity for the target cell group as specified in TS 38.323, with the same configuration as the PDCP entity for the source cell group;
2 >
if the masterKeyUpdate is received:
3 >
configure the PDCP entity with the security algorithms according to securityConfig and apply the keys (KRRCenc and KRRCint) associated with the master key (KgNB);
2 >
else:
3 >
configure the PDCP entity for the target cell group with state variables continuation as specified in TS 38.323, and with the same security configuration as the PDCP entity for the source cell group;
1 >
for each srb-Identity value included in the srb-ToAddModList that is not part of the current UE configuration (SRB establishment or reconfiguration from E-UTRA PDCP to NR PDCP):
2 >
establish a PDCP entity;
2 >
if AS security has been activated:
3 >
if target RAT of handover is E-UTRA/5GC; or
3 >
if the UE is connected to E-UTRA/5GC:
4 >
if the UE is capable of E-UTRA/5GC, but not capable of NGEN-DC:
5 >
configure the PDCP entity with the security algorithms and keys (KRRCenc and KRRCint) configured/derived as specified in TS 36.331;
4 >
else (i.e., UE capable of NGEN-DC):
5 >
configure the PDCP entity with the security algorithms according to securityConfig and apply the keys (KRRCenc and KRRCint) associated with the master key (KeNB) or secondary key (S-KgNB) as indicated in keyToUse, if applicable;
3 >
else (i.e., UE connected to NR or UE connected to E-UTRA/EPC):
4 >
configure the PDCP entity with the security algorithms according to securityConfig and apply the keys (KRRCenc and KRRCint) associated with the master key (KeNB/ KgNB) or secondary key (S-KgNB) as indicated in keyToUse, if applicable;
2 >
if the current UE configuration as configured by E-UTRA in TS 36.331 includes an SRB identified with the same srb-Identity value:
3 >
associate the E-UTRA RLC entity and DCCH of this SRB with the NR PDCP entity;
3 >
release the E-UTRA PDCP entity of this SRB;
2 >
if the pdcp-Config is included:
3 >
configure the PDCP entity in accordance with the received pdcp-Config;
2 >
else:
3 >
configure the PDCP entity in accordance with the default configuration defined in clause 9.2.1 for the corresponding SRB;
1 >
if any DAPS bearer is configured, for each srb-Identity value included in the srb-ToAddModList that is part of the current UE configuration:
2 >
if the pdcp-Config is included:
3 >
reconfigure the PDCP entity for the target cell group in accordance with the received pdcp-Config;
1 >
else, for each srb-Identity value included in the srb-ToAddModList that is part of the current UE configuration:
2 >
if the reestablishPDCP is set:
3 >
if target RAT of handover is E-UTRA/5GC; or
3 >
if the UE is connected to E-UTRA/5GC:
4 >
if the UE is capable of E-UTRA/5GC, but not capable of NGEN-DC:
5 >
configure the PDCP entity to apply the integrity protection algorithm and KRRCint key configured/derived as specified in TS 36.331, i.e. the integrity protection configuration shall be applied to all subsequent messages received and sent by the UE, including the message used to indicate the successful completion of the procedure;
5 >
configure the PDCP entity to apply the ciphering algorithm and KRRCenc key configured/derived as specified in TS 36.331, i.e. the ciphering configuration shall be applied to all subsequent messages received and sent by the UE, including the message used to indicate the successful completion of the procedure;
4 >
else (i.e., a UE capable of NGEN-DC):
5 >
configure the PDCP entity to apply the integrity protection algorithm and KRRCint key associated with the master key (KeNB) or secondary key (S-KgNB), as indicated in keyToUse, i.e. the integrity protection configuration shall be applied to all subsequent messages received and sent by the UE, including the message used to indicate the successful completion of the procedure;
5 >
configure the PDCP entity to apply the ciphering algorithm and KRRCenc key associated with the master key (KeNB) or secondary key (S-KgNB) as indicated in keyToUse, i.e. the ciphering configuration shall be applied to all subsequent messages received and sent by the UE, including the message used to indicate the successful completion of the procedure;
3 >
else (i.e., UE connected to NR or UE in EN-DC):
4 >
configure the PDCP entity to apply the integrity protection algorithm and KRRCint key associated with the master key (KeNB/KgNB) or secondary key (S-KgNB), as indicated in keyToUse , i.e. the integrity protection configuration shall be applied to all subsequent messages received and sent by the UE, including the message used to indicate the successful completion of the procedure;
4 >
configure the PDCP entity to apply the ciphering algorithm and KRRCenc key associated with the master key (KeNB/KgNB) or secondary key (S-KgNB) as indicated in keyToUse, i.e. the ciphering configuration shall be applied to all subsequent messages received and sent by the UE, including the message used to indicate the successful completion of the procedure;
3 >
re-establish the PDCP entity of this SRB as specified in TS 38.323;
2 >
else, if the discardOnPDCP is set:
3 >
trigger the PDCP entity to perform SDU discard as specified in TS 38.323;
2 >
if the pdcp-Config is included:
3 >
reconfigure the PDCP entity in accordance with the received pdcp-Config.
for each drb-Identity value included in the drb-ToAddModList that is not part of the current UE configuration (DRB establishment including the case when full configuration option is used):
2 >
establish a PDCP entity and configure it in accordance with the received pdcp-Config;
2 >
if the PDCP entity of this DRB is not configured with cipheringDisabled:
3 >
if target RAT of handover is E-UTRA/5GC; or
3 >
if the UE is connected to E-UTRA/5GC:
4 >
if the UE is capable of E-UTRA/5GC but not capable of NGEN-DC:
5 >
configure the PDCP entity with the ciphering algorithm and KUPenc key configured/derived as specified in TS 36.331;
4 >
else (i.e., a UE capable of NGEN-DC):
5 >
configure the PDCP entity with the ciphering algorithms according to securityConfig and apply the key (KUPenc) associated with the master key (KeNB) or secondary key (S-KgNB) as indicated in keyToUse, if applicable;
3 >
else (i.e., UE connected to NR or UE connected to E-UTRA/EPC):
4 >
configure the PDCP entity with the ciphering algorithms according to securityConfig and apply the KUPenc key associated with the master key (KeNB/KgNB) or the secondary key (S-KgNB/S-KeNB) as indicated in keyToUse;
2 >
if the PDCP entity of this DRB is configured with integrityProtection:
3 >
configure the PDCP entity with the integrity protection algorithms according to securityConfig and apply the KUPint key associated with the master (KeNB/KgNB) or the secondary key (S-KgNB) as indicated in keyToUse;
2 >
if an sdap-Config is included:
3 >
if an SDAP entity with the received pdu-Session does not exist:
if an SDAP entity with the received pdu-Session did not exist prior to receiving this reconfiguration:
5 >
indicate the establishment of the user plane resources for the pdu-Session to upper layers;
3 >
configure the SDAP entity in accordance with the received sdap-Config as specified in TS 37.324 and associate the DRB with the SDAP entity;
3 >
for each QFI value added in mappedQoS-FlowsToAdd, if the QFI value is previously configured, the QFI value is released from the old DRB;
2 >
if the DRB is associated with an eps-BearerIdentity:
3 >
if the DRB was configured with the same eps-BearerIdentity either by NR or E-UTRA prior to receiving this reconfiguration:
4 >
associate the established DRB with the corresponding eps-BearerIdentity;
3 >
else:
4 >
indicate the establishment of the DRB(s) and the eps-BearerIdentity of the established DRB(s) to upper layers;
1 >
for each drb-Identity value included in the drb-ToAddModList that is part of the current UE configuration and configured as DAPS bearer:
2 >
reconfigure the PDCP entity to configure DAPS with the ciphering function, integrity protection function and ROHC function of the target cell group as specified in TS 38.323 and configure it in accordance with the received pdcp-Config;
2 >
if the masterKeyUpdate is received:
3 >
if the ciphering function of the target cell group PDCP entity is not configured with cipheringDisabled:
4 >
configure the ciphering function of the target cell group PDCP entity with the ciphering algorithm according to securityConfig and apply the KUPenc key associated with the master key (KgNB), as indicated in keyToUse, i.e. the ciphering configuration shall be applied to all subsequent PDCP PDUs received from the target cell group and sent to the target cell group by the UE;
3 >
if the integrity protection function of the target cell group PDCP entity is configured with integrityProtection:
4 >
configure the integrity protection function of the target cell group PDCP entity with the integrity protection algorithms according to securityConfig and apply the KUPint key associated with the master key (KgNB) as indicated in keyToUse;
2 >
else:
3 >
configure the ciphering function and the integrity protection function of the target cell group PDCP entity with the same security configuration as the PDCP entity for the source cell group;
2 >
if the sdap-Config is included and when indication of successful completion of random access towards target cell is received from lower layers as specified in [3]:
3 >
reconfigure the SDAP entity in accordance with the received sdap-Config as specified in TS 37.324;
3 >
for each QFI value added in mappedQoS-FlowsToAdd, if the QFI value is previously configured, the QFI value is released from the old DRB;
1 >
for each drb-Identity value included in the drb-ToAddModList that is part of the current UE configuration and not configured as DAPS bearer:
2 >
if the reestablishPDCP is set:
3 >
if target RAT of handover is E-UTRA/5GC; or
3 >
if the UE is connected to E-UTRA/5GC:
4 >
if the UE is capable of E-UTRA/5GC but not capable of NGEN-DC:
5 >
if the PDCP entity of this DRB is not configured with cipheringDisabled:
6 >
configure the PDCP entity with the ciphering algorithm and KUPenc key configured/derived as specified in clause 5.4.2.3 of TS 36.331, i.e. the ciphering configuration shall be applied to all subsequent PDCP PDUs received and sent by the UE;
4 >
else (i.e., a UE capable of NGEN-DC):
5 >
if the PDCP entity of this DRB is not configured with cipheringDisabled:
6 >
configure the PDCP entity with the ciphering algorithm and KUPenc key associated with the master key (KeNB) or the secondary key (S-KgNB), as indicated in keyToUse, i.e. the ciphering configuration shall be applied to all subsequent PDCP PDUs received and sent by the UE;
3 >
else (i.e., UE connected to NR or UE connected to E-UTRA/EPC (in EN-DC or capable of EN-DC)):
4 >
if the PDCP entity of this DRB is not configured with cipheringDisabled:
5 >
configure the PDCP entity with the ciphering algorithm and KUPenc key associated with the master key (KeNB/ KgNB) or the secondary key (S-KgNB/S-KeNB), as indicated in keyToUse, i.e. the ciphering configuration shall be applied to all subsequent PDCP PDUs received and sent by the UE;
4 >
if the PDCP entity of this DRB is configured with integrityProtection:
5 >
configure the PDCP entity with the integrity protection algorithms according to securityConfig and apply the KUPint key associated with the master key (KeNB/KgNB) or the secondary key (S-KgNB) as indicated in keyToUse;
3 >
if drb-ContinueROHC is included in pdcp-Config:
4 >
indicate to lower layer that drb-ContinueROHC is configured;
3 >
if drb-ContinueEHC-DL is included in pdcp-Config:
4 >
indicate to lower layer that drb-ContinueEHC-DL is configured;
3 >
if drb-ContinueEHC-UL is included in pdcp-Config:
4 >
indicate to lower layer that drb-ContinueEHC-UL is configured;
3 >
if drb-ContinueUDC is included in pdcp-Config:
4 >
indicate to lower layer that drb-ContinueUDC is configured;
trigger the PDCP entity of this MRB to perform data recovery as specified in TS 38.323;
2 >
if the pdcp-Config is included:
3 >
reconfigure the PDCP entity in accordance with the received pdcp-Config;
1 >
else if mrb-Identity value included in the mrb-ToAddModList is not part of the UE configuration (i.e., multicast MRB establishment including the case when full configuration option is used):
2 >
establish a PDCP entity and configure it in accordance with the received pdcp-Config;
2 >
associate the established multicast MRB with the corresponding mbs-SessionId;
2 >
if an SDAP entity with the received mbs-SessionId does not exist: