Wireshark-dev: [Wireshark-dev] exported_pdu 3GPP Cell identity, question on PLMN encoding

From: Mauro Levra <Mauro.Levra@xxxxxxxxxxxxxxxxxx>
Date: Fri, 28 Jun 2024 14:55:43 +0000
Hi,

I am working on adding a 3GPP Cell Identity tag to the
exported_pdu header. A single-octet type field precedes the
actual value and specifies if the identity is the CGI, ECGI,
or NCGI.

I have a question about the PLMN component at the beginning of
each global identity field. There are several ways to encode it.
In our application, we chose the one described in [3GPP TS 36.455]
(paragraph 9.2.6, ECGI; paragraph 9.2.26, NR CGI).
Is it ok if I define the exported_pdu header following 3GPP
Information Element encoding?

The Selected PLMN identity consists of 3 digits from MCC
followed by either a filler digit plus 2 digits from MNC
(in case of a 2-digit MNC) or 3 digits from MNC (in case of a
3-digit MNC).

[0] MCC digit 2, MCC digit 1
[1] MNC digit 1, MCC digit 3
[2] MNC digit 3, MNC digit 2

Examples:

MCC: 321
MNC: 987
PLMN: [0] 0x21, [1] 0x73, [2] 0x98

MCC: 321
MNC: 98
PLMN: [0] 0x21, [1] 0xF3, [2] 0x98

Regards,

Mauro

[3GPP TS 36.455]
https://www.etsi.org/deliver/etsi_ts/136400_136499/136455/16.01.00_60/ts_136455v160100p.pdf