Introduce the connection between OAI VNF in CORD
Modify network configuration of OAI BBU, MME, SPGW, HSS
Configuration path:
- [BBU]
- /openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF
- [MME]
- /usr/local/etc/oai/mme.conf
- /usr/local/etc/oai/freeDiameters/mme_fd.conf
- [SPGW]
- /usr/local/etc/oai/spgw.conf
- [HSS]
- No need to modify
BBU configuration (Connect to MME and BBU)
/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF
rcc.band7.tm1.50PRB.nfapi.conf
1 | ////////// MME parameters: |
MME Configuration (Connect to BBU & HSS & SPGW)
/usr/local/etc/oai/mme.conf
1 |
|
/usr/local/etc/oai/freeDiameter/mme_fd.conf
1 | # set HSS IP here |
SPGW configuration (connect to MME)
/usr/local/etc/oai/spgw.conf
1 | S-GW : |
Usage
1 | ssh head1 |
Connectivity check between BBU & vEPC
BBU with associated MME
Service dependency graph
Setup a connection between RRU & BBU
first, we should do the nested port foward to access the BBU service
Rule should be add at all node:
1 | at cord server |
The way to update iptables
1 | note, use iptables-save and iptables-restore would be better to addjust the rules |
The iptables rules that I used for this implementation
CORD Server iptables template
Head node iptables template
Compute node iptables template
for SCTP Forwarding
1 | -A PREROUTING -i eth0 -p sctp -m sctp --dport 50000 -j DNAT --to-destination 10.1.0.14:50000 |
Do sudo iptables -L
At CORD server :
1 | Chain FORWARD (policy ACCEPT) |
At head node :
1 | Chain FORWARD (policy ACCEPT) |
Successfully implement the SSH tunnel
Configure oaibbu with public network
Add Network definition into ==mcord-oai-services.yml.j2==
1 |
|
After rebooting
1 | vagrant@head1:~$ source /opt/cord_profile/admin-openrc.sh |
Connection scenario BBU & RRU
BBU configuration
==rcc.band7.tm1.50PRB.nfapi.conf==
1 | MACRLCs = ( |
RRU Configuration
==oaiL1.nfapi.usrpb210.conf==
1 | L1s = ( |
Forwarding packet path (STCP & UDP):
CORD Server=> Control node => Compute node => OAI bbu public IP
140.118.122.109 => 192.168.121.1 => 10.1.0.14 = 10.0.4.2
BBU Connect to RRU in physical machine
branch: be8d32d5
Automation scripts
==Command for automation ip setting==1
ssh <hostname>@<IP> 'bash -s' < test.sh
==test.sh==1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 !/bin/bash
Server iptables configuration
echo start Iptables configuration for server
git clone https://gist.github.com/7d6c9b8d0f2e8389e07f328689340813.git ip
cd ip/
adapt iptables rule
sudo iptables-restore < Iptables_cord_server.rules
head1 iptables configuration
ssh head1
git clone https://gist.github.com/cbfbee6e9413cd48bdc8124b3402c0ab.git ip
cd ip/
adapt iptables rule
sudo iptables-restore < Iptables_head_node.rules
compute node iptables configuration
ssh ubuntu@10.1.0.14
git clone https://gist.github.com/8f10171c052f88b94b39daf7b4017e74.git ip
cd ip/
sudo iptables-restore < Iptables_compute_node.rules