# 陳毅 - 讀書會 - 21/07/28
:::info
- [x] 閱讀 Netmanias-08-LTE EMM and ECM States
:::
## Abbreviations
- ECM - EPS Connection Management
- EMM - EPS Mobility Management
- ESM - EPS Session Management
- [SRB](https://www.itread01.com/content/1546893932.html) - Signaling Radio Bearer
## 前言
在先前的幾份文件中,我們已經學習了 LTE 架構、安全、識別等基本的技術,接下來,我們會專注在更細節的 LTE 程序。
我們都知道,移動性與會話管理都是根據 UE 和 MME 之間的 NAS 進行控制,而 NAS 可以被大致分成 EMM 以及 ESM 兩塊功能。
## EMM, ECM and RRC States
### Type of EMM Procedures

參考下方了解三種 EMM 程序:
#### EMM common procedure
是指在 UE 和 MME 之間 NAS Signaling 連線存在時可以發起的程序,分別為: GUTI allocation, Authentication, identification, Security mode control, EMM information
#### EMM specific procedure
與移動性有關的程序: attach, detach, TAU 。
在和 3GPP 網路共存的 LTE 網路中也包含了:
- combined attach
- combined detach
- combined tracking area update
#### EMM connnection management procedure
指和 NAS Signaling 連接、建立相關的程序,包含:
- Service Request
- Paging
- Transport of NAS messages
### EMM/ECM/RRC State
EMM 是 NAS Layer 的一個 sub-layer ,隨著 EMM procedure 的進行:
- UE 處於 7 種 EMM States 之一
- MME 處於 4 種 EMM States 之一
總結這些狀態來看, **EMM Registered** 與 **EMM-Deregistered** 是 UE 與 MME 兩者的共有狀態,因此,下面提到的 EMM States 就是代表這兩種狀態。
為了讓 UE 與 MME 彼此能夠交換 NAS messages ,交換訊息用途的 signaling connection 必須要被建立,這個連結稱為 EPS Connection Management (ECM) connection 。


## EMM State Transition


## EMM Features
### UE Location information

### EPS Bearer and NAS Signaling Connection


### Mobility

### UE IDs

## EMM User Information
This chapter will describe the data that each EPS entity has in relation to a user in EMM/ECM/RRC states.
### EMM-Deregistered + ECM-Idle + RRC-Idle

### EMM-Deregistered + ECM-Idle + RRC-Idle (State B)

### EMM-Registered + ECM-Connected + RRC-Connected

### EMM-Registered + ECM-Idle + RRC-Idle
In state D, all the resources that have been assigned while in state C to the EPS bearer (DRB and S1 bearer) and NAS signalling connection, except for S5 bearer, are released. The information to be released is marked in gray in Table.
In the S1 bearer, downlink resources (S1-TEID (DL)) are released, whereas uplink resources (S1-TEID (UL)) assigned by a S-GW are kept.

## Reference
- [自由切換連線/待機狀態 LTE閒置模式力拼省電效益](https://leekming.pixnet.net/blog/post/32679031)