Building your own private 5G is as easy as Wi-Fi
- Reference: 1682418485
- News link: https://www.theregister.co.uk/2023/04/25/building_private_5g/
- Source link:
Our [1]Private 5G book is informed by our experience designing and implementing an open source Kubernetes-based edge cloud that hosts — among other edge workloads — a managed 5G connectivity service.
Edge applications can take advantage of local breakout, meaning they can communicate directly with IoT devices (and the like) without their packets ever leaving the enterprise. This local Connectivity-as-a-Service is then offered as a managed cloud service (rather than a traditional telco service), including an API and Dashboard that makes it easy to monitor and control connectivity at runtime. The hope is that Private 5G will be as easy to deploy and use as Wi-Fi is today.
[2]
(For the reader prepared to argue that Wi-Fi is sufficient for all edge use cases, we leave the 5G vs Wi-Fi debate for another time.)
[3]
[4]
It should come as no surprise that designing/implementing Private 5G is not exactly the same as deploying/operating Private 5G, and since the main goal of the Appendix is to help readers with the latter, we decided to take the system we had built out for a test drive. But there’s an important qualifier before we get to that. The system we’re talking about, [5]Aether , is not a collection of isolated components that leaves the dirty work of operationalization to someone else.
Aether includes all the integration glue needed to bring up an operational system in support of live traffic — a topic we’ve written [6]an entire book about — but that doesn’t mean it’s easy for ivory tower architects like Bruce and myself to bring up Aether without a little friction. Some of the challenges were our missteps, but some point to the inherent difficulty in the telco-to-cloud transition Aether is trying to catalyze.
The hardware
Step one is getting your hands on a 5G small cell radio, and they aren’t exactly available today at Best Buy or your nearest equivalent. We’re using the [7]Bridgestone Indoor 5G Sub-6G Small Cell from Sercomm. We also have experience with Sercomm’s 4G counterpart (which is less expensive and easier to find).
You’ll also need a starter set of user equipment, or UEs, and while several smartphones support [8]CBRS (eg, the iPhone 11, Google Pixel 4, or newer), our recommendation is to include a [9]5G dongle that can be attached to a Raspberry Pi. Acquiring the 5G hardware is still a problem today, but that’s probably a short-term situation.
[10]
The other bit of hardware you’ll need is a server (or VM) to run Aether on, but the requirements aren’t too steep (Quad-Core, 12GB RAM, running Ubuntu 20.04 or 22.04). Note that the approach I’m describing uses CBRS spectrum that is allocated in the US; other countries are in different stages of establishing similar allocations. You'll have to do your own research there. In the UK, you'll likely need to [11]talk to Ofcom.
The settings
Step two is where 5G is the most unfamiliar to anyone who has installed a Wi-Fi AP: configuring the small cell radio. There are three parts to this. The first part is setting the [12]RF-related parameters , which I am wholly unqualified to do. Their names are cryptic (eg, FreqSsb, Arfcn), their settings seemingly arbitrary (eg, 3609120, 643356), and the formulas to compute them… not exactly intuitive:
[13]
These (and other) parameters are related to the control the operator has over how the available frequency band is used, which is part of the value 5G brings. I clearly have more to learn, but fortunately, the out-of-the-box defaults work. The second part is connecting the small cell to the local network, which is straightforward, complicated only by the fact that the radio has two 802.3 ports: one known as WAN (but labeled 2.5G on the Sercomm 5G small cell) and the other know as LAN (but labeled 1G on the Sercomm 5G small cell). The WAN port is how the small cell connects to the Internet (indirectly via the Mobile Core, which we’ll get to in a moment).
The LAN port is for connecting the radio to a management network, which is worth mentioning because you’ll eventually need to learn TR-069/TR-098 (in place of SNMP/MIB, respectively), since you’ll technically be managing on-prem telco equipment instead of IETF-spec’ed Internet devices. There’s also an [14]O1 Management interface , which is the O-RAN approach to managing RAN elements, but I have not yet had an opportunity to use it. It’s probably better to have too many programmatic interfaces than too few, but I was able to do everything I needed to through the dashboard, which is enough to get started.
[15]Germany to examine China-made kit in its 5G networks over security concerns
[16]Energy efficiency starts to rock telcos' 5G infrastructure choices
[17]UK govt wants standalone 5G by 2030 but won't shell out to help hit target
[18]HPE drops private 5G into GreenLake by acquiring Athonet
The third part is configuring the Spectrum Allocation Server (SAS), which is responsible for managing access to the [19]three tiers of the CBRS spectrum or whichever frequency bands you're using. You’ll need to familiarize yourself with the SAS requirements and get credentials from a SAS provider (we use [20]Google ) if you want to get past the “turn it on and see if it boots up” stage. (You’ll also need to connect a GPS antenna, which the radio needs so it can tell the SAS its precise location.)
SIM city
Step three is interesting because it’s related to how you assemble a system out of building-block components. As I discussed previously, the mobile cellular network defines a global naming scheme that makes it possible for any two RAN-connected devices to communicate with each other. You need to configure both the small cell radio and the Mobile Core software stack so they know how to plug into that global network.
This means defining the Mobile Country Code (MCC) and Mobile Network Code (MNC) that you plan to use. This [21]MCC/MNC pair forms a Public Land Mobile Network (PLMN) code, where we’ve used two different ids in different settings: 315010 constructed from MCC=315 (US) and MNC=010 (CBRS), and 00101 constructed from MCC=001 (TEST) and MNC=01 (TEST). And since you’ll technically be the MNO responsible for the Private 5G network you bring up, you’ll also need to burn the SIM cards that are to be inserted into all the UEs. The SIM cards include a unique identifier (called an IMSI), which is a 15-digit number with the PLMN code as its prefix.
(You can buy a 5G SIM writer on Amazon, where one product description reads: PLS Kindly Note: The cards be provided to professional engineers, PLS be professional, you need have knowledge about sim cards, if you don't have, PLS do not buy it! )
Back to normality
Finally, in step four, you’ll be back in familiar IP-land, but your ability to juggle IP subnets, Linux bridges, and iptable rules will be taxed to the max. I won’t go through all the details, and your mileage will vary depending on how deeply you want to integrate the RAN into your enterprise network, but by my count, there are as many as seven subnets in play.
This is in part because the Mobile Core is implemented in Kubernetes (with its own set of intra-cluster and service-visible addresses), in part because the backhaul that connects the small cell radios to the Mobile Core is an overlay network (for example, running on top of your local enterprise network), and in part because the forwarding plane of the Mobile Core — the User Plane Function (UPF) running as a Kubernetes-hosted microservice — is itself an IP router that forwards packets between the RAN and the rest of the Internet. You’ll certainly find that having access to diagnostic tools such as ping, traceroute, and tcpdump to be essential (which is one reason we recommend connecting at least one Pi+Dongle UE).
I’m pretty sure Wi-Fi configuration was never this complicated. To some extent, this may be due to where the line is drawn between the customer and the provider: telcos strive to keep the end-system they sell subscribers simple, but have accepted operational complexity in the network devices (such as base stations) that they manage.
[22]
In contrast, anyone who purchases a Wi-Fi AP from a vendor assumes it will be straightforward to install. One would expect that, with time, small cells deployed in enterprises (and maybe even homes) can be pre-configured before they are shipped or auto-configured after they are installed, but our goal with the book is to demystify 5G, including all the configuration steps.
If you’re an enterprise system admin (or a hobbyist who wants to try out the technology at home) you will need to know about all of this. That’s why we wrote the book! It’s also why it’s important to have access to open source implementations of all this technology. ®
Larry Peterson and Bruce Davie are the authors of [23]Computer Networks: A Systems Approach and the related [24]Systems Approach series of books. All their content is open source and available on [25]GitHub . You can find them on [26]Mastodon , their writings on [27]Substack , and past The Register columns [28]here .
Get our [29]Tech Resources
[1] https://5g.systemsapproach.org/
[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/networks&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2ZEf5KwziAH1abLzULcoWLQAAAE0&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0
[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/networks&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZEf5KwziAH1abLzULcoWLQAAAE0&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/networks&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZEf5KwziAH1abLzULcoWLQAAAE0&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[5] https://opennetworking.org/aether/
[6] https://ops.systemsapproach.org/
[7] https://opennetworking.org/products/sercomm-sce5164-b78/
[8] https://www.motorolasolutions.com/en_us/products/two-way-radios/mototrbo/nitro/what-is-cbrs.html
[9] https://www.apaltec.com/dongle/
[10] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/networks&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZEf5KwziAH1abLzULcoWLQAAAE0&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[11] https://www.ofcom.org.uk/manage-your-licence/radiocommunication-licences/non-operational-licences
[12] https://5g-tools.com/5g-nr-gscn-calculator/
[13] https://regmedia.co.uk/2023/04/25/handout_sys_appr_5g.png
[14] https://docs.o-ran-sc.org/en/latest/architecture/architecture.html
[15] https://www.theregister.com/2023/04/17/germany_to_examine_china_made_kit/
[16] https://www.theregister.com/2023/04/13/energy_efficiency_5g_infrastructure/
[17] https://www.theregister.com/2023/04/12/uk_standalone_5g_2023/
[18] https://www.theregister.com/2023/02/24/hpe_5gaas_athonet_acquisition/
[19] https://www.fcc.gov/wireless/bureau-divisions/mobility-division/35-ghz-band/35-ghz-band-overview
[20] https://www.google.com/get/spectrumdatabase/sas/
[21] https://en.wikipedia.org/wiki/Mobile_country_code
[22] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/networks&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZEf5KwziAH1abLzULcoWLQAAAE0&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[23] https://book.systemsapproach.org/
[24] https://www.systemsapproach.org/
[25] https://github.com/SystemsApproach
[26] https://discuss.systems/@SystemsAppr
[27] https://systemsapproach.substack.com/
[28] https://www.theregister.com/Tag/Systems%20Approach
[29] https://whitepapers.theregister.com/
Quick question...
Don't you need licences for all this? Example... I'm stuck at 2.4ghz on my outdoor wifi because outdoor 5ghz is illegal (EU). As for IoT, 5G really chews through power and LoRa is much more power sensible and *Long Range*.
Don't want to put a downer on stuff, but just because you can doesn't mean you're allowed to.
Also, I thought the mobile big boys had a cunning plan to do this.
Re: Quick question...
"Note that the approach I’m describing uses CBRS spectrum that is allocated in the US; other countries are in different stages of establishing similar allocations. You'll have to do your own research there. In the UK, you'll likely need to talk to Ofcom."
What I need is a 3G network.
Building a private 5G network is wonderful but I'd love the ability to build a private 3G cell so my CPAP can once again talk to the manufacturer.
And here were are ..
.. we're now building Stingrays as DIY projects. Gotta love progress.
:)
I am not a Luddite, but...
Ah, 5G...
Interesting technology still trying to justify its existence in the private space for anything other than edge use cases, tinkerers and bleeding edge deployments.
Good luck to anyone attempting a plug & play deployment as you would on WiFi and expecting a smooth ride.
Consider:
Frequencies and licensing (tread carefully to comply with regulations)
Hardware availability (still thin on the ground other than mobile handsets)
SIMs (you will need them)
Roaming from private to public networks (if required - finding a mobile operator willing to play and support this - )
Operating the network (it is a specialism)
Please prove me wrong - I want to believe!
"This means defining the Mobile Country Code (MCC) ..."
... and then we're back to that place where such definitions are either redundant or create confusion. There's no progress in this field.
User friendly device.....
Holy. Read the user guide for the Sercomm.
https://opennetworking.org/wp-content/uploads/2022/10/AiabSercomm-gNB-User-Guide_v1.2-20220922-Carl-Zhu.pdf
I haven't read such a hardcore networking guide in many years. Nothing user friendly there. Made me feel warm and fuzzy, remembering mid 80s networking.
Or just play on Easy Mode
You can install srsLTE, set the frequencies and bandwidths (in Hertz! Not MHz or GHz!) and plug in a National Instruments B205 SDR ($800 or so). You'll be running in a day the first time and 20 minutes each time after you do it once. I'm using the Ubuntu "low Latency" kernel, but I don't know if it's really necessary. I'll tell you srsLTE does NOT work well in VM with USB passthrough, too much jitter. Definitely run on bare metal. I have an amateur radio license so I use 1260 MHz for my uplink and 915 MHz for my downlink in a 5 MHz bandwidth. I don't do this for money, just to learn and experiment, so the amateur license is legal. There is license-free spectrum in the US at 902-915 and 2.4-2.45 GHz, regulated at 47CFR15. It still has other requirements to be met for type approval. For commercial use, an experimental license via 47CFR5 is the way to go. UK license-free is probably in the 868MHz neighborhood (and 2.4 GHz) but I have no clue what other restrictions Ofcom would place on it.
"ivory tower architects"
Whilst a finely carved base station tower would be an improvement on the normal run of things you, quite rightly, can't get the ivory these days.
can't get the ivory these days.
Well, perhaps here "Ivory" was being used in the "quite like Ivor" sense... :-)
For example, do the towers in question look a bit like a tall and thin version of Sheffield's Park Hill estate?
I've seen a mobile version of this in the flesh.
Really good idea for managing devices over a wide area but not so large than regular networks would be preferable.
A good example was for music festivals, hand all vendors their own sims so they can accept card payments on a dedicated network, run video/audio over dedicated networks. All on some that won't be completely borked because of abit of rain or having the APs saturated because different vendors are trying to use WiFi for other none transaction data.