本ドキュメントは、OMNI Hands-on#2向けに、OMNI Meetup#2で発表した「free5GCの構造と特徴」から一部抜粋してfree5GCのアーキテクチャについて説明したものです。
OMNI Meetup#2で発表したフルのテキストは以下にあります。free5GCに興味がありましたらこちらも是非ご参照ください。
| package main | |
| import ( | |
| "archive/zip" | |
| "encoding/xml" | |
| "fmt" | |
| "io" | |
| "log" | |
| "os" | |
| "strings" |
| package gtp5gnl | |
| import ( | |
| "encoding/json" | |
| "log" | |
| "syscall" | |
| "testing" | |
| "github.com/khirono/go-nl" | |
| ) |
本ドキュメントは、OMNI Hands-on#2向けに、OMNI Meetup#2で発表した「free5GCの構造と特徴」から一部抜粋してfree5GCのアーキテクチャについて説明したものです。
OMNI Meetup#2で発表したフルのテキストは以下にあります。free5GCに興味がありましたらこちらも是非ご参照ください。
| package context | |
| import ( | |
| "container/heap" | |
| "errors" | |
| "net" | |
| ) | |
| type IPAllocator struct { | |
| base net.IP |
| package gtpv1 | |
| import ( | |
| "encoding/binary" | |
| ) | |
| type Encoder interface { | |
| Len() int | |
| Encode([]byte) (int, error) | |
| } |
| mcc: '208' # Mobile Country Code value | |
| mnc: '93' # Mobile Network Code value (2 or 3 digits) | |
| nci: '0x000000010' # NR Cell Identity (36-bit) | |
| idLength: 32 # NR gNB ID length in bits [22...32] | |
| tac: 1 # Tracking Area Code | |
| linkIp: 127.0.0.1 # gNB's local IP address for Radio Link Simulation (Usually same with local IP) | |
| ngapIp: 20.20.20.1 # gNB's local IP address for N2 Interface (Usually same with local IP) | |
| gtpIp: 30.30.30.1 # gNB's local IP address for N3 Interface (Usually same with local IP) |