Draft: Move common parameters in TS 102 232-1 into TS 103 280

Create Common-Locations module in TS 103 280.

Move common parameters from LI-PS-PDU to TS 103 280, renaming in the destination (to workaround a pycrate 0.8.1 validation issue if it's the same name), and provide compatibility names in LI-PS-PDU from the previous name in LI-PS-PDU to the new name in TS 103 280:

  • Move Location to Common-Locations.CommonLocation
  • Move WlanLocationAttributes to Common-Locations.WlanLocation
  • Move CPEProvidedLocationAttributes to Common-Locations.CPEProvidedLocation
  • Move IPAddress to Common-Parameters.TS671IPAddress
  • Move IP-value to Common-Parameters.TS671IPValue

The moved definitions should be functionally and on-wire identical to the previous types in LI-PS-PDU.

NOTE: This is an experiment and doesn't validate in the forge CI asn1test pipelines using the older pycrate < 0.8.1. This will be addressed in the near future. It is quite possible we won't proceed with this experiment.

Merge request reports

Loading
+20 −83
Changes for 102232-1/LI-PS-PDU.asn: 20 added lines, 83 removed lines.
Original line number Diff line number Diff line
@@ -8,19 +8,27 @@ BEGIN
IMPORTS
    -- Any of the IMPORTs may be commented out if they are not used (see clause A.3)

    -- from ETSI TS 103 280 [44]
    -- from ETSI TS 103 280 [44] Common-Parameters
    GNSSLocation,
    LIID,
    LongString,
    ShortString,
    TS671IPAddress,
    TS671IPValue,
    WGS84CoordinateDecimal
        FROM Common-Parameters
        {itu-t(0) identified-organization(4) etsi(0) common-parameters(3280) version281(281)}

    -- from ETSI TS 103 280 [44] Common-Locations
    CPEProvidedLocation,
    CommonLocation,
    WlanLocation
        FROM Common-Locations
	{itu-t(0) identified-organization(4) etsi(0) securityDomain(2) lawfulIntercept(2) commonLocations(39) genHeader(1) version1(1)}

    -- previously from ETSI TS 101 671 [4]; now provided with this specification
    IRI-Parameters,
    IRIsContent,
    Location,
    Network-Element-Identifier
        FROM HI2Operations
        {itu-t(0) identified-organization(4) etsi(0) securityDomain(2) lawfulIntercept(2) hi2(1) version18(18)}
@@ -69,8 +77,7 @@ IMPORTS
    -- from 3GPP TS 33.108 [9]
    IRI-Parameters,
    UmtsIRIsContent,
    CorrelationValues,
    Location
    CorrelationValues
        FROM UmtsHI2Operations
        {itu-t(0) identified-organization(4) etsi(0) securityDomain(2) lawfulIntercept(2) threeGPP(4) hi2(1)}
            -- The relevant module (including the 3GPP release and version number) needs
@@ -86,8 +93,7 @@ IMPORTS

    -- from 3GPP TS 33.108 [9]
    IRI-Parameters,
    EpsIRIsContent,
    EPSLocation
    EpsIRIsContent
        FROM EpsHI2Operations
        {itu-t(0) identified-organization(4) etsi(0) securityDomain(2) lawfulIntercept(2) threeGPP(4) hi2eps(8)}
            -- The relevant module (including the 3GPP release and version number) needs
@@ -194,8 +200,7 @@ IMPORTS
    -- from 3GPP TS 33.128 [46]
    LINotificationPayload,
    IRIPayload,
    CCPayload,
    UserLocation
    CCPayload
        FROM TS33128Payloads
        {itu-t(0) identified-organization(4) etsi(0) securityDomain(2) lawfulIntercept(2) threeGPP(4) ts33128(19)};
        -- The relevant module (including the 3GPP release and version number)
@@ -729,86 +734,18 @@ DictionaryEntry ::= SEQUENCE
}

-- ===================================
-- Common Parameters
-- Common Parameters previously defined in this module
-- ===================================

Location ::= SEQUENCE
    -- This is a common parameter, the use of this parameter is described in clause 4.5
{
    umtsHI2Location               [0] UmtsHI2Operations.Location OPTIONAL,
    epsLocation                   [1] EpsHI2Operations.EPSLocation OPTIONAL,
    ...,
    wlanLocationAttributes        [2] WlanLocationAttributes OPTIONAL,
    eTSI671HI2Location            [3] HI2Operations.Location OPTIONAL,
    threeGPP33128UserLocation     [4] TS33128Payloads.UserLocation OPTIONAL,
    cPEProvidedLocationAttributes [5] CPEProvidedLocationAttributes OPTIONAL
}
Location ::= Common-Locations.CommonLocation

WlanLocationAttributes ::= SEQUENCE
{
    wlanAPMACAddress        [0] OCTET STRING (SIZE(6)) OPTIONAL,
        -- 48-bit (6 octet) MAC address of the WLAN access point derived from the BSSID
    ...
}
WlanLocationAttributes ::= Common-Locations.WlanLocation

CPEProvidedLocationAttributes ::= SEQUENCE
{
    wGS84CoordinateDecimal  [0] Common-Parameters.WGS84CoordinateDecimal OPTIONAL,
    ...,
    gNSSLocation            [1] Common-Parameters.GNSSLocation OPTIONAL
}
CPEProvidedLocationAttributes ::= Common-Locations.CPEProvidedLocation

IPAddress ::= SEQUENCE
    -- This parameter was previously imported from ETSI TS 101 671 [4] but has been copied
    -- to ETSI TS 102 232-1 (the present document). It is not recommended to use this parameter in
    -- future change requests. Suggested approach is to use a parameter from ETSI TS 103 280 [44]
    -- instead.
{
    iP-type             [1] ENUMERATED
    {
        iPV4(0),
        iPV6(1),
        ...
    },
    iP-value            [2] IP-value,
    iP-assignment       [3] ENUMERATED
    {
        static(1),
            -- The static coding shall be used to report a static address.
        dynamic(2),
            -- The dynamic coding shall be used to report a dynamically allocated address.
        notKnown(3),
            -- The notKnown coding shall be used to report other than static or dynamically
            -- allocated IP addresses.
        ...
    } OPTIONAL,
    ...,
    iPv6PrefixLength    [4] INTEGER (1..128) OPTIONAL,
        -- Indicates the length of the prefix delegated by the CSP to the subscriber
        -- example: 60 if IP address is "2001:db8:0:85a3::ac1f:8001/60"
        -- Mandatory in case where the iP-value contains an IPv6 binary value
    iPv4SubnetMask      [5] OCTET STRING (SIZE(4)) OPTIONAL,
        -- For IPv4 addresses, this indicates the subnet mask to be applied to the iP-value field.
        -- The subnet mask is intended to be presented as a binary value, e.g. "ff ff ff f8" to
        -- represent the dotted-decimal subnet mask of "255.255.255.248" corresponding to
        -- a /29 CIDR-format subnet mask
    iP-NAT-translated   [6] BOOLEAN OPTIONAL
        -- If TRUE then NAT translated, if FALSE then not NAT translated.
        -- If absent, IPAddress may or may not be NAT translated.
}

IP-value ::= CHOICE
{
    iPBinaryAddress [1] OCTET STRING (SIZE(4..16)),
        -- In case of IPv6, the Prefix Length is provided by the "iPv6PrefixLength"
        -- In case of IPv4, the netmask is provided by the "iPv4SubnetMask"
    iPTextAddress   [2] IA5String (SIZE(7..45)),
        -- In case of IPv6, the delivered iPTextAddress field could include a complete
        -- single IPv6-Address or an IPv6-Prefix for a subnetwork on the target side.
        -- In case of IPv4, the delivered iPTextAddress field could include a single
        -- IPv4 address or an IPv4address/netmask, for example "192.168.1.1" or "192.168.1.1/24"
    ...
}
IPAddress ::= Common-Parameters.TS671IPAddress

IP-value ::= Common-Parameters.TS671IPValue

LawfulInterceptionIdentifier ::= Common-Parameters.LIID
    -- LIID is a common parameter imported from ETSI TS 103 280 [44].
+72
Changes for 103280/Common-Locations.asn1: 72 added lines, 0 removed lines.
Original line number Diff line number Diff line
Common-Locations
{itu-t(0) identified-organization(4) etsi(0) securityDomain(2) lawfulIntercept(2) commonLocations(39) genHeader(1) version1(1)}

DEFINITIONS IMPLICIT TAGS EXTENSIBILITY IMPLIED ::=

BEGIN

IMPORTS

    -- from ETSI TS 103 280
    GNSSLocation,
    WGS84CoordinateDecimal
        FROM Common-Parameters
        {itu-t(0) identified-organization(4) etsi(0) common-parameters(3280) version281(281)}

    -- from 3GPP TS 33.108
    Location
        FROM UmtsHI2Operations
        {itu-t(0) identified-organization(4) etsi(0) securityDomain(2) lawfulIntercept(2) threeGPP(4) hi2(1)}
            -- The relevant module (including the 3GPP release and version number) needs
            -- to be chosen when compiling the application.

    -- from 3GPP TS 33.108
    EPSLocation
        FROM EpsHI2Operations
        {itu-t(0) identified-organization(4) etsi(0) securityDomain(2) lawfulIntercept(2) threeGPP(4) hi2eps(8)}
            -- The relevant module (including the 3GPP release and version number) needs
            -- to be chosen when compiling the application.

    -- previously from ETSI TS 101 671; now provided with ETSI TS 102 232-1
    Location
        FROM HI2Operations
        {itu-t(0) identified-organization(4) etsi(0) securityDomain(2) lawfulIntercept(2) hi2(1) version18(18)}

	    ;

-- =============================
-- Object Identifier Definitions
-- =============================

lawfulInterceptDomainId OBJECT IDENTIFIER ::= {itu-t(0) identified-organization(4) etsi(0) securityDomain(2) lawfulIntercept(2)}

commonLocationsDomainId OBJECT IDENTIFIER ::= {lawfulInterceptDomainId commonLocations(39) genHeader(1) version1(1)}


CommonLocation ::= SEQUENCE
    -- This is a common parameter, the use of this parameter is described in clause 4.5
{
    umtsHI2Location               [0] UmtsHI2Operations.Location OPTIONAL,
    epsLocation                   [1] EpsHI2Operations.EPSLocation OPTIONAL,
    ...,
    wlanLocationAttributes        [2] WlanLocation OPTIONAL,
    eTSI671HI2Location            [3] HI2Operations.Location OPTIONAL,
    threeGPP33128UserLocation     [4] TS33128Payloads.UserLocation OPTIONAL,
    cPEProvidedLocationAttributes [5] CPEProvidedLocation OPTIONAL
}

WlanLocation ::= SEQUENCE
{
    wlanAPMACAddress        [0] OCTET STRING (SIZE(6)) OPTIONAL,
        -- 48-bit (6 octet) MAC address of the WLAN access point derived from the BSSID
    ...
}

CPEProvidedLocation ::= SEQUENCE
{
    wGS84CoordinateDecimal  [0] Common-Parameters.WGS84CoordinateDecimal OPTIONAL,
    ...,
    gNSSLocation            [1] Common-Parameters.GNSSLocation OPTIONAL
}

END
+52
Changes for 103280/TS_103_280.asn1: 52 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -171,4 +171,56 @@ FixMode ::= ENUMERATED
    fix3D(3)
}

TS671IPAddress ::= SEQUENCE
    -- This parameter was previously imported from ETSI TS 101 671 but has been copied
    -- to the present document. It is not recommended to use this parameter in
    -- future change requests. Suggested approach is to use a new parameter from
    -- the present document instead.
{
    iP-type             [1] ENUMERATED
    {
        iPV4(0),
        iPV6(1),
        ...
    },
    iP-value            [2] TS671IPValue,
    iP-assignment       [3] ENUMERATED
    {
        static(1),
            -- The static coding shall be used to report a static address.
        dynamic(2),
            -- The dynamic coding shall be used to report a dynamically allocated address.
        notKnown(3),
            -- The notKnown coding shall be used to report other than static or dynamically
            -- allocated IP addresses.
        ...
    } OPTIONAL,
    ...,
    iPv6PrefixLength    [4] INTEGER (1..128) OPTIONAL,
        -- Indicates the length of the prefix delegated by the CSP to the subscriber
        -- example: 60 if IP address is "2001:db8:0:85a3::ac1f:8001/60"
        -- Mandatory in case where the iP-value contains an IPv6 binary value
    iPv4SubnetMask      [5] OCTET STRING (SIZE(4)) OPTIONAL,
        -- For IPv4 addresses, this indicates the subnet mask to be applied to the iP-value field.
        -- The subnet mask is intended to be presented as a binary value, e.g. "ff ff ff f8" to
        -- represent the dotted-decimal subnet mask of "255.255.255.248" corresponding to
        -- a /29 CIDR-format subnet mask
    iP-NAT-translated   [6] BOOLEAN OPTIONAL
        -- If TRUE then NAT translated, if FALSE then not NAT translated.
        -- If absent, IPAddress may or may not be NAT translated.
}

TS671IPValue ::= CHOICE
{
    iPBinaryAddress [1] OCTET STRING (SIZE(4..16)),
        -- In case of IPv6, the Prefix Length is provided by the "iPv6PrefixLength"
        -- In case of IPv4, the netmask is provided by the "iPv4SubnetMask"
    iPTextAddress   [2] IA5String (SIZE(7..45)),
        -- In case of IPv6, the delivered iPTextAddress field could include a complete
        -- single IPv6-Address or an IPv6-Prefix for a subnetwork on the target side.
        -- In case of IPv4, the delivered iPTextAddress field could include a single
        -- IPv4 address or an IPv4address/netmask, for example "192.168.1.1" or "192.168.1.1/24"
    ...
}

END
+13
Changes for testing/asn/asn_compile_targets.json: 13 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  [
    "./102232-1/LI-PS-PDU.asn",
    "./103280/TS_103_280.asn1",
    "./103280/Common-Locations.asn1",
    "./testing/deps/33128/TS33128Payloads.asn",
    "./testing/deps/33108/Three3gppHI1Notifications.asn",
    "./testing/deps/33108/UMTSHI2Operations.asn",
@@ -31,5 +32,17 @@
  ],
  [
    "./102657/RDMessage.asn"
  ],
  [
    "./103280/Common-Locations.asn1",
    "./103280/TS_103_280.asn1",
    "./testing/deps/33108/EpsHI2Operations.asn",
    "./testing/deps/33128/TS33128Payloads.asn",
    "./testing/deps/101671/HI2Operations,ver18.asn",
    "./testing/deps/33108/UMTSHI2Operations.asn",
    "./testing/deps/101909/TS101909201.asn",
    "./testing/deps/101909/TS101909202.asn",
    "./testing/deps/101909/PCESP.asn",
    "./testing/deps/301040/06132v203_C01.asn"
  ]
]
−1
Changes for testing/asn/asn_process.py: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -74,7 +74,6 @@ def syntaxCheckASN(fileList):


duplicateObjects = {
    "102232-1/LI-PS-PDU.asn": ["CCPayload", "IRIPayload", "Location"],
    "testing/mod1.asn": ["ClashField"],
}

Loading