BSR(Buffer Status Report)是一種從終端給網(wǎng)絡(luò)的數(shù)據(jù)緩存狀態(tài)報(bào)告,它傳遞了終端緩沖區(qū)中有多少數(shù)據(jù)要發(fā)送出去的信息。換句話(huà)說(shuō):這是一種MAC層消息 UE給網(wǎng)絡(luò)(eNodeB) 說(shuō): 我有數(shù)據(jù)要傳輸,你能給我一些資源調(diào)度,發(fā)送這些數(shù)據(jù)嗎? 如果上行資源可用,網(wǎng)絡(luò)將分配最低數(shù)額的上行(UL)調(diào)度(PUSCH)資源給終端。后續(xù)根據(jù)以下邏輯機(jī)制對(duì)網(wǎng)絡(luò)資源進(jìn)行持續(xù)優(yōu)化。kangguoying20201129
1.BSR類(lèi)型
BSR有兩種類(lèi)型:Short BSR 和Long BSR,其中:kangguoying20201129
Short BSR:UE只能為一個(gè)特定的LCG (邏輯信道組)通報(bào)UL緩沖區(qū)中的數(shù)據(jù)量。這就是為什么你會(huì)在Short BSR的開(kāi)頭能夠看到“LCG ID”字段。kangguoying20201129
Long BSR:UE可以通知所有LCG (邏輯信道組)有關(guān)UL緩沖區(qū)信息。這就是為什么在長(zhǎng)BSR中沒(méi)有看到任何特殊的LCG ID字段,但有多個(gè)“buffer size”字段,每個(gè)字段都表示一個(gè) LCG。kangguoying20201129
2.BSR結(jié)構(gòu)
根據(jù)TS 36.321規(guī)定Short BSR 和Long BSR的結(jié)構(gòu)分別下:kangguoying20201129
< 36.321 - Figure 6.1.3.1-1: Short BSR and Truncated BSR MAC control element >
< 36.321 - Figure 6.1.3.1-2: Long BSR MAC control element >
Buffer Size #0 is BSR index for LCG 0
Buffer Size #1 is BSR index for LCG 1
Buffer Size #2 is BSR index for LCG 2
Buffer Size #3 is BSR index for LCG 3
論 BSR是長(zhǎng)還是短,”buffer size”位字段的大小總是6,這意味著它只能表示0 ~ 63。其中:在UL buffer中表示真實(shí)的數(shù)據(jù)大小需要太多的位,因此他們將數(shù)據(jù)大小分解為64個(gè)不同的范圍,并為下表中從 ts 36.321開(kāi)始顯示的每個(gè)范圍建立索引。BSR 中的“緩沖區(qū)大小”字段表示下表中的“ index”值。kangguoying20201129
Buffer eize levels for BSR
Extended Buffer eize levels for BSR kangguoying20201129
BSR索引(值)=0表示“UE沒(méi)有數(shù)據(jù)要傳輸” ,當(dāng)數(shù)字變大時(shí),它表示UE有更多的數(shù)據(jù)要傳輸。kangguoying20201129
3.BSR發(fā)送形式
BSR根據(jù)時(shí)間順序其發(fā)送有三種形式:規(guī)律BRS、周期性BRS 和填充BRS 。kangguoying20201129
規(guī)律(Regular)BRS:當(dāng)新數(shù)據(jù)到達(dá)上行(UL)緩沖區(qū),且其優(yōu)先級(jí)高于已經(jīng)在緩沖區(qū)中等待數(shù)據(jù)時(shí),采用規(guī)律BRS。
周期性(Periodic)BRS :數(shù)據(jù)按照預(yù)定義周期進(jìn)行發(fā)送。其周期由網(wǎng)絡(luò)定義,UE并通過(guò)RRC消息(如RRC 連接重配置中專(zhuān)用的無(wú)線(xiàn)資源配置)獲得。kangguoying20201129
| +-mac-MainConfig ::= CHOICE [explicitValue] OPTIONAL:Exist
| | +-explicitValue ::= SEQUENCE [111]kangguoying20201129
| | +-ul-SCH-Config ::= SEQUENCE [11] OPTIONAL:Exist
| | | +-maxHARQ-Tx ::= ENUMERATED [n5] OPTIONAL:Exist
| | | +-periodicBSR-Timer ::= ENUMERATED [sf20] OPTIONAL:Exist
| | | +-retxBSR-Timer ::= ENUMERATED [sf320]
| | | +-ttiBundling ::= BOOLEAN [FALSE]kangguoying20201129
| | +-drx-Config ::= CHOICE [release] OPTIONAL:Exist
| | | +-release ::= NULLkangguoying20201129
| | +-timeAlignmentTimerDedicated ::= ENUMERATED [infinity]
| | +-phr-Config ::= CHOICE [setup] OPTIONAL:Exist
| | +-setup ::= SEQUENCEkangguoying20201129
| | +-periodicPHR-Timer ::= ENUMERATED [sf500]
| | +-prohibitPHR-Timer ::= ENUMERATED [sf200]
| | +-dl-PathlossChange ::= ENUMERATED [dB3]kangguoying20201129
填充(Padding) BRS: 當(dāng)數(shù)據(jù)消息中的填充位數(shù)大于 BSR大小時(shí),將采用PaddingBSR發(fā)送;此時(shí)可使用填充位空間發(fā)送BRS。kangguoying20201129
4.BSR觸發(fā)時(shí)機(jī)
BSR的觸發(fā)時(shí)機(jī)有以幾種場(chǎng)景:kangguoying20201129
4.1 UE有上行(UL) 數(shù)據(jù)傳輸: 當(dāng)UE有一定LCG的RLC或PDCP實(shí)體中的數(shù)據(jù)傳輸時(shí)(這被稱(chēng)為常規(guī)BSR);
4.2 UE獲得了上行(UL) 授權(quán)并且Padding 數(shù)據(jù)大于BSR CE和子標(biāo)頭的大小(其稱(chēng)為 Padding BSR;
有些情況下,當(dāng) UE沒(méi)有任何數(shù)據(jù)傳輸時(shí),網(wǎng)絡(luò)發(fā)UL grant;在這種情況下UE傳輸所有00數(shù)據(jù)或一些垃圾數(shù)據(jù)和長(zhǎng)填充0s。在這種情況下,我們將BSR MAC CE作為MAC PDU的一部分,并將BRS索引值全部設(shè)置為0。
4.3 Retxbsr-timer 過(guò)期,UE有一些數(shù)據(jù)要傳輸(這個(gè) BSR稱(chēng)為Regular BSR),kangguoying20201129
4.4 PeriodicBRS-timer 過(guò)期,這個(gè)BSR稱(chēng)為Periodic BRS。kangguoying20201129
5.BSR長(zhǎng)短的確定
規(guī)律BRS和周期BRS:如果指配的數(shù)據(jù)時(shí)帶有LCG—>Long BSR;否則Short BSR;
填充(Padding)BSR:kangguoying20201129
如果padding bit >= Short BSR plus+subheader&& the number of padding bit
<= the size of the Long BSR+its subheader則
if( the number of LCG with allocated data > 1) --> Truncated BSR否則 --> Short BSR
其他情況 --> Long BSRkangguoying20201129
原文來(lái)自:[url]www.sharetechnote.com[/url]
整理:kangguoying20201129
"自動(dòng)駕駛為什么更可靠--5G網(wǎng)絡(luò)時(shí)延縮短的秘密!"已在微信公眾號(hào)"跟著老康學(xué)5G"中推出,敬請(qǐng)關(guān)注!