Section: 4.7.3.1.5 Abnormal cases in the MS
Content: The following abnormal cases can be identified: a) Access barred because of access class control, EAB or ACDC The GPRS attach procedure shall not be started. The MS stays in the current serving cell and applies normal cell reselection process. The GPRS attach procedure is started as soon as possible, i.e. when access is granted or because of a cell change. If access is barred because of access class control, ACDC is applicable to the request from the upper layers and the MS supports ACDC, then the GPRS attach procedure shall be started. If access is barred for a certain ACDC category, a request with a higher ACDC category is received from the upper layers and the MS supports ACDC, then the GPRS attach procedure shall be started. If an access request for an uncategorized application is barred due to ACDC, a request with a certain ACDC category is received from the upper layers and the MS supports ACDC, then the GPRS attach procedure shall be started. b) Lower layer failure without "Extended Wait Time" received from lower layers before the ATTACH ACCEPT or ATTACH REJECT message is received The procedure shall be aborted and the MS shall proceed as described below, except in the following implementation option cases b.1 and b.2. b.1) Release of PS signalling connection in Iu mode before the completion of the GPRS attach procedure If the release of the PS signalling connection occurs before completion of the GPRS attach procedure, then the GPRS attach procedure shall be initiated again, if the following conditions apply: i) The original GPRS attach procedure was initiated over an existing PS signalling connection; and ii) The GPRS attach procedure was not due to timer T3310 expiry; and iii) No SECURITY MODE COMMAND message and no Non-Access Startum (NAS) messages relating to the PS signalling connection (e.g. PS authentication procedure, see subclause 4.7.7) were received after the ATTACH REQUEST message was transmitted. b.2) RR release in Iu mode (i.e. RRC connection release) with, for example, cause "Normal", or "User inactivity" (see 3GPP TS 25.331[ None ]  [23c] and 3GPP TS 44.118[ None ]  [111]) The GPRS attach procedure shall be initiated again, if the following conditions apply: i) The original GPRS attach procedure was initiated over an existing RRC connection; and ii) The GPRS attach procedure was not due to timer T3310 expiry; and iii) No SECURITY MODE COMMAND message and no Non-Access Stratum (NAS) messages relating to the PS signalling connection (e.g. PS authentication procedure, see subclause 4.7.7) were received after the ATTACH REQUEST message was transmitted. NOTE 1: The RRC connection release cause that triggers the re-initiation of the GPRS attach procedure is implementation specific. c) T3310 time-out On the first expiry of the timer, the MS shall reset and restart timer T3310 and shall retransmit the ATTACH REQUEST message. This retransmission is repeated four times, i.e. on the fifth expiry of timer T3310, the MS shall abort the GPRS attach procedure and, in Iu mode, release the PS signalling connection (see 3GPP TS 25.331[ None ]  [23c]). The MS shall proceed as described below. d) ATTACH REJECT, other causes than those treated in subclause 4.7.3.1.4, and cases of GMM cause values #22 and #25, if considered as abnormal cases according to subclause 4.7.3.1.4 If the attach request is neither for emergency bearer services nor for initiating a PDN connection for emergency bearer services with attach type not set to "emergency attach", upon reception of the cause codes # 95, # 96, # 97, # 99 and # 111 the MS should set the GPRS attach attempt counter to 5. The MS shall proceed as described below. e) Change of cell within the same RA (A/Gb mode only) If a cell change occurs within the same RA when the MS is in state GMM-REGISTERED-INITIATED, then the cell update procedure shall be performed before completion of the attach procedure. f) Change of cell into a new routing area If a cell change into a new routing area occurs before an ATTACH ACCEPT or ATTACH REJECT message has been received, the GPRS attach procedure shall be aborted and re-initiated immediately. If a routing area border is crossed when the ATTACH ACCEPT message is received but before an ATTACH COMPLETE message is sent, the GPRS attach procedure shall be aborted and the routing area updating procedure shall be initiated. If a P-TMSI was allocated during the GPRS attach procedure, this P-TMSI shall be used in the routing area updating procedure. If a P-TMSI signature was allocated together with the P-TMSI during the GPRS attach procedure, this P-TMSI signature shall be used in the routing area updating procedure. g) Mobile originated detach required If the MS is in state GMM-REGISTERED-INITIATED, the GPRS attach procedure shall be aborted and the GPRS detach procedure shall be performed (see subclause 4.7.4.1). h) Detach procedure collision If the MS receives a DETACH REQUEST message from the network in state GMM-REGISTERED-INITIATED with detach type "re-attach not required" and no cause code, or "re-attach not required"' and the cause code is not #2 "IMSI unknown in HLR", the GPRS detach procedure shall be progressed and the GPRS attach procedure shall be aborted. Otherwise the GPRS attach procedure shall be progressed and the DETACH REQUEST message shall be ignored. i) "Extended wait time" for PS domain from the lower layers If the ATTACH REQUEST message contained the low priority indicator set to "MS is configured for NAS signalling low priority", the MS shall start timer T3346 with the "Extended wait time" value and reset the attach attempt counter. In other cases the MS shall ignore the "Extended wait time". The MS shall abort the attach procedure, stay in the current serving cell, change the state to GMM-DEREGISTERED.ATTEMPTING-TO-ATTACH and apply the normal cell reselection process. j) Timer T3346 is running The MS shall not start the GPRS attach procedure unless the MS needs to attach for emergency bearer services or the MS is an MS configured to use AC11 – 15 in selected PLMN or the MS needs to attach without the NAS signalling low priority indication and if the timer T3346 was started due to rejection of a NAS request message (e.g. ATTACH REQUEST, ROUTING AREA UPDATE REQUEST or SERVICE REQUEST) which contained the low priority indicator set to "MS is configured for NAS signalling low priority". The MS stays in the current serving cell and applies normal cell reselection process. NOTE 2: It is considered an abnormal case if the MS needs to initiate an attach procedure while timer T3346 is running independent on whether timer T3346 was started due to an abnormal case or a non successful case. In cases b, c, d, i and j, the MS shall proceed as follows: - Timer T3310 shall be stopped if still running. - For the cases b, c, d, and i when the "Extended wait time" is ignored, if the attach request is neither for emergency bearer services nor for initiating a PDN connection for emergency bearer services with attach type not set to "emergency attach", the GPRS attach attempt counter shall be incremented. - If the GPRS attach attempt counter is less than 5: - for the cases i and j, the GPRS attach procedure is started, if still necessary, when timer T3346 expires or is stopped. - for the cases b, c, d, and i when the "Extended wait time" is ignored, if the attach request is neither for emergency bearer services nor for initiating a PDN connection for emergency bearer services with attach type not set to "emergency attach", timer T3311 is started and the state is changed to GMM-DEREGISTERED.ATTEMPTING-TO-ATTACH. - If the GPRS attach attempt counter is greater than or equal to 5: - the MS shall delete any RAI, P-TMSI, P-TMSI signature, list of equivalent PLMNs, and GPRS ciphering key sequence number, shall set the GPRS update status to GU2 NOT UPDATED, shall start timer T3302. The state is changed to GMM-DEREGISTERED. ATTEMPTING-TO-ATTACH or optionally to GMM-DEREGISTERED.PLMN-SEARCH (see subclause 4.2.4.1.2) in order to perform a PLMN selection according to 3GPP TS 23.122[ Non-Access-Stratum (NAS) functions related to Mobile Station (MS) in idle mode ]  [14]. - If S1 mode is supported by the MS, the MS shall in addition handle the EMM parameters EMM state, EPS update status, GUTI, last visited registered TAI, TAI list and KSI as specified in 3GPP TS 24.301[ Non-Access-Stratum (NAS) protocol for Evolved Packet System (EPS); Stage 3 ]  [120] for the abnormal case when a normal attach procedure fails and the attach attempt counter is equal to 5.