rd->txpdu_pkts=rb_pdcp.txpdu_pkts;/* aggregated number of tx packets */
rd->txpdu_bytes=rb_pdcp.txpdu_bytes;/* aggregated bytes of tx packets */
rd->txpdu_sn=rb_pdcp.txpdu_sn;/* current sequence number of last tx packet (or TX_NEXT) */
rd->rxpdu_pkts=rb_pdcp.rxpdu_pkts;/* aggregated number of rx packets */
rd->rxpdu_bytes=rb_pdcp.rxpdu_bytes;/* aggregated bytes of rx packets */
rd->rxpdu_sn=rb_pdcp.rxpdu_sn;/* current sequence number of last rx packet (or RX_NEXT) */
rd->rxpdu_oo_pkts=rb_pdcp.rxpdu_oo_pkts;/* aggregated number of out-of-order rx pkts (or RX_REORD) */
rd->rxpdu_oo_bytes=rb_pdcp.rxpdu_oo_bytes;/* aggregated amount of out-of-order rx bytes */
rd->rxpdu_dd_pkts=rb_pdcp.rxpdu_dd_pkts;/* aggregated number of duplicated discarded packets (or dropped packets because of other reasons such as integrity failure) (or RX_DELIV) */
rd->rxpdu_dd_bytes=rb_pdcp.rxpdu_dd_bytes;/* aggregated amount of discarded packets' bytes */
rd->rxpdu_ro_count=rb_pdcp.rxpdu_ro_count;/* this state variable indicates the COUNT value following the COUNT value associated with the PDCP Data PDU which triggered t-Reordering. (RX_REORD) */
rd->txsdu_pkts=rb_pdcp.txsdu_pkts;/* number of SDUs delivered */
rd->txsdu_bytes=rb_pdcp.txsdu_bytes;/* number of bytes of SDUs delivered */
rd->rxsdu_pkts=rb_pdcp.rxsdu_pkts;/* number of SDUs received */
rd->rxsdu_bytes=rb_pdcp.rxsdu_bytes;/* number of bytes of SDUs received */
rd->txpdu_pkts=rb_pdcp.txpdu_pkts;/* aggregated number of tx packets */
rd->txpdu_bytes=rb_pdcp.txpdu_bytes;/* aggregated bytes of tx packets */
rd->txpdu_sn=rb_pdcp.txpdu_sn;/* current sequence number of last tx packet (or TX_NEXT) */
rd->rxpdu_pkts=rb_pdcp.rxpdu_pkts;/* aggregated number of rx packets */
rd->rxpdu_bytes=rb_pdcp.rxpdu_bytes;/* aggregated bytes of rx packets */
rd->rxpdu_sn=rb_pdcp.rxpdu_sn;/* current sequence number of last rx packet (or RX_NEXT) */
rd->rxpdu_oo_pkts=rb_pdcp.rxpdu_oo_pkts;/* aggregated number of out-of-order rx pkts (or RX_REORD) */
rd->rxpdu_oo_bytes=rb_pdcp.rxpdu_oo_bytes;/* aggregated amount of out-of-order rx bytes */
rd->rxpdu_dd_pkts=rb_pdcp.rxpdu_dd_pkts;/* aggregated number of duplicated discarded packets (or dropped packets because of other reasons such as integrity failure) (or RX_DELIV) */
rd->rxpdu_dd_bytes=rb_pdcp.rxpdu_dd_bytes;/* aggregated amount of discarded packets' bytes */
rd->rxpdu_ro_count=rb_pdcp.rxpdu_ro_count;/* this state variable indicates the COUNT value following the COUNT value associated with the PDCP Data PDU which triggered t-Reordering. (RX_REORD) */
rd->txsdu_pkts=rb_pdcp.txsdu_pkts;/* number of SDUs delivered */
rd->txsdu_bytes=rb_pdcp.txsdu_bytes;/* number of bytes of SDUs delivered */
rd->rxsdu_pkts=rb_pdcp.rxsdu_pkts;/* number of SDUs received */
rd->rxsdu_bytes=rb_pdcp.rxsdu_bytes;/* number of bytes of SDUs received */
@@ -95,16 +95,35 @@ mkdir build && cd build && cmake .. && make -j8
sudo make install
```
By default the service model libraries will be installed in the path /usr/local/lib/flexric while the configuration file in `/usr/local/etc/flexric`.
By default the service model libraries will be installed in the path `/usr/local/lib/flexric` while the configuration file in `/usr/local/etc/flexric`.
* Note: currently, only xApp KPM v03.00 and RC v01.03 (xapp_kpm_rc) is supported to communicate with the integrated E2 agent in OAI. If you are interested in custom SMs (MAC, RLC, PDCP, GTP, TC and SLICE), please follow the instructions at https://gitlab.eurecom.fr/mosaic5g/flexric.
Available SMs in this version are:
* KPM v03.00 (xapp_kpm_moni)
* GTP (xapp_gtp_moni)
* MAC + RLC + PDCP (xapp_mac_rlc_pdcp_moni)
If you are interested in TC and SLICE SMs, please follow the instructions at https://gitlab.eurecom.fr/mosaic5g/flexric.
# 3. Start the process
In order to configure E2 agent, please, add the following block in the configuration file:
```bash
e2_agent ={
near_ric_ip_addr ="127.0.0.1";
sm_dir ="/usr/local/lib/flexric/"
}
```
* start the gNB
```bash
cd oai/cmake_targets/ran_build/build
sudo ./nr-softmodem -O ../../../targets/PROJECTS/GENERIC-NR-5GC/CONF/gnb.sa.band78.fr1.106PRB.usrpb210.conf --gNBs.[0].min_rxtxtime 6 --rfsim--sa--rfsimulator.serveraddr server
If you are interested in having multiple UEs in rfsim mode, please, follow the instructions at https://gitlab.eurecom.fr/oaiworkshop/summerworkshop2023/-/tree/main/ran#multiple-ues.