LTE網(wǎng)絡(luò)中我們經(jīng)常聽到魯棒頭壓縮ROHC(Robust Header Compression)一詞;其實魯棒頭壓縮ROHC是IP數(shù)據(jù)包頭的一種壓縮算法;
在IPV4中1個數(shù)據(jù)包頭可達40比特,在IPV6中可達60比特;這對于小數(shù)據(jù)的信息(如短信、微信)這種聊天數(shù)據(jù)來說真是“頭比身子大”!
鑒于此情RFC 3095中提出了魯棒頭壓縮ROHC技術(shù),可將40比特的IP包頭壓縮為1或2比特;
一、魯棒頭壓縮原理
在初始會話發(fā)送和接收全部IP報文,IP數(shù)據(jù)包頭不壓縮;
發(fā)送端和接收保存提取和存儲IP數(shù)據(jù)包頭;
在初始會話之后,發(fā)送端只發(fā)送與初始會話頭信息不同的信息。(IP包頭中信息在整個會話期間不會更改,可更改部分將變得非常小)。因此,只傳輸變化的部分就會產(chǎn)生類似數(shù)據(jù)壓縮的效果;
根據(jù)第三步發(fā)送后續(xù)的數(shù)據(jù)。
二、IP/UDP包頭與數(shù)據(jù)
如下圖所示例:包頭地址中(藍色部分)有:發(fā)送端地址,接收端地址,版本、IHL、業(yè)務(wù)類型、發(fā)送端口、接收端口等;而傳輸?shù)臄?shù)據(jù)(Data--綠色部分)只有一小部分;
三、魯棒頭壓縮流程
魯棒頭壓縮算法分為三步:IR初始(IP頭全發(fā)全收)、FO首次(提取保存地址--標識)、再次(根據(jù)首次的標識進行數(shù)據(jù)傳遞)
四、魯棒頭壓縮算法
RFC 3095 中規(guī)定的魯棒頭壓縮算法如下:
Profile 0 (ROHC Uncompressed) : 壓縮數(shù)據(jù)包,它不能被以下任何配置文件壓縮
Profile 1 (ROHC RTP) : 用 ip/udp/rtp 協(xié)議頭壓縮數(shù)據(jù)包
Profile 2 (ROHC UDP) :用 ip/udp 協(xié)議頭壓縮數(shù)據(jù)包
Profile 3 (ROHC ESP) : 用 ip/esp 協(xié)議頭壓縮數(shù)據(jù)包
3GPP TS 36.323 (Table 5.5.1.1)支持頭壓縮算法如下:
Profile Identifier | Usage | Reference |
0x0000 | No compression | RFC 4995 |
0x0001 | RTP/UDP/IP | RFC 3095, RFC 4815 |
0x0002 | UDP/IP | RFC 3095, RFC 4815 |
0x0003 | ESP/IP | RFC 3095, RFC 4815 |
0x0004 | IP | RFC 3843, RFC 4815 |
0x0006 | TCP/IP | RFC 4996 |
0x0101 | RTP/UDP/IP | RFC 5225 |
0x0102 | UDP/IP | RFC 5225 |
0x0103 | ESP/IP | RFC 5225 |
0x0104 | IP | RFC 5225 |
五、頭壓縮示例(以下紅色字體部分)
5.1 UE Capability Information for ROHC
c1: ueCapabilityInformation-r8 (0)
ueCapabilityInformation-r8
ue-CapabilityRAT-ContainerList: 2 items
Item 0
UE-CapabilityRAT-Container
rat-Type: eutra (0)
ueCapabilityRAT-Container: c51800304184200e1f8dfe1f8dfe1f8dfe1f8dfdfc37f2ea...
UE-EUTRA-Capability
accessStratumRelease: rel9 (1)
ue-Category: 3
pdcp-Parameters
supportedROHC-Profiles
...1 .... profile0x0001: True
.... 1... profile0x0002: True
.... .0.. profile0x0003: False
.... ..0. profile0x0004: False
.... ...0 profile0x0006: False
0... .... profile0x0101: False
.0.. .... profile0x0102: False
..0. .... profile0x0103: False
...0 .... profile0x0104: False
5.2 RRC Connection Reconfiguration for ROHC
c1: rrcConnectionReconfiguration-r8 (0)
rrcConnectionReconfiguration-r8
radioResourceConfigDedicated
drb-ToAddModList: 1 item
Item 0
DRB-ToAddMod
drb-Identity: 1
pdcp-Config
rlc-AM
...0 .... statusReportRequired: False
headerCompression: rohc (1)
rohc
profiles
.... ...1 profile0x0001: True
1... .... profile0x0002: True
.0.. .... profile0x0003: False
..0. .... profile0x0004: False
...0 .... profile0x0006: False
.... 0... profile0x0101: False
.... .0.. profile0x0102: False
.... ..0. profile0x0103: False
.... ...0 profile0x0104: False
原文來自:http://www.sharetechnote.com/
整理:kangguoying20201001
"NSA網(wǎng)絡(luò)中終端無法接入5G (NR)排查要點”已在微信公眾號"跟著老康學(xué)5G"中推出,敬請關(guān)注!