Giter Club home page Giter Club logo

Comments (2)

w910820618 avatar w910820618 commented on May 26, 2024

go-pfcp/ie/fq-csid.go

Lines 21 to 52 in e45192e

// NewFQCSID creates a new FQCSID IE.
func NewFQCSID(nodeAddr string, csIDs ...uint16) *IE {
var (
nid []byte
ntype uint8
)
ip := net.ParseIP(nodeAddr)
if ip == nil {
var err error
nid, err = hex.DecodeString(nodeAddr)
if err != nil {
return nil
}
ntype = nodeIDOther
} else if v4 := ip.To4(); v4 != nil {
nid = v4
ntype = nodeIDIPv4
} else {
nid = ip
ntype = nodeIDIPv6
}
i := New(FQCSID, make([]byte, 1+len(nid)+len(csIDs)*2))
i.Payload[0] = ((ntype << 4) & 0xf0) | uint8(len(csIDs)&0x0f)
offset := len(nid) + 1
copy(i.Payload[1:offset], nid)
for n, csid := range csIDs {
binary.BigEndian.PutUint16(i.Payload[offset+n*2:offset+n*2+2], csid)
}
return i
}

from go-pfcp.

wmnsk avatar wmnsk commented on May 26, 2024

I think there's nothing to distinguish those inside the IE. It's determined by the type of message and node type of the sender.

As described in section 8.2.43 in TS 29.244, the FQ-CSID doesn't have such field.

image

And, clause 23 of TS 23.007 says it's a local parameter that is assigned by the nodes themselves and to be told to their peers. So, if it's sent by S-GW-C, it's regarded as S-GW-C FQ-CSID.

With the exception of the GTPv2 Delete PDN Connection Set Request and PMIPv6 Binding Revocation Indication BRI messages, each feature supporting MME, SGW, ePDG, TWAN or PGW shall assign only one FQ-CSID for itself in messages and each FQ-CSID shall have exactly one CSID within the FQ-CSID.

from go-pfcp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.