osmo-dev/virt-nitb
Neels Hofmeyr 99a08fb459 add virt-nitb: a fully virtual network with 2 MS
Change-Id: I31cf24006ea9ceb83622aedef22046c53db90142
2022-08-30 05:15:00 +02:00
..
README add virt-nitb: a fully virtual network with 2 MS 2022-08-30 05:15:00 +02:00
call.sh add virt-nitb: a fully virtual network with 2 MS 2022-08-30 05:15:00 +02:00
create_hlr_subscribers.sh add virt-nitb: a fully virtual network with 2 MS 2022-08-30 05:15:00 +02:00
hangup.sh add virt-nitb: a fully virtual network with 2 MS 2022-08-30 05:15:00 +02:00
mobile.cfg add virt-nitb: a fully virtual network with 2 MS 2022-08-30 05:15:00 +02:00
mobile2.cfg add virt-nitb: a fully virtual network with 2 MS 2022-08-30 05:15:00 +02:00
osmo-bsc.cfg add virt-nitb: a fully virtual network with 2 MS 2022-08-30 05:15:00 +02:00
osmo-bts-virtual.cfg add virt-nitb: a fully virtual network with 2 MS 2022-08-30 05:15:00 +02:00
osmo-hlr.cfg add virt-nitb: a fully virtual network with 2 MS 2022-08-30 05:15:00 +02:00
osmo-mgw-for-bsc.cfg add virt-nitb: a fully virtual network with 2 MS 2022-08-30 05:15:00 +02:00
osmo-mgw-for-msc.cfg add virt-nitb: a fully virtual network with 2 MS 2022-08-30 05:15:00 +02:00
osmo-msc.cfg add virt-nitb: a fully virtual network with 2 MS 2022-08-30 05:15:00 +02:00
osmo-stp.cfg add virt-nitb: a fully virtual network with 2 MS 2022-08-30 05:15:00 +02:00
run.sh add virt-nitb: a fully virtual network with 2 MS 2022-08-30 05:15:00 +02:00

README

This is runs a complete core network with a virtual 2G BTS and two virtual 2G phones.

Steps:

- build osmocom-bb
    git clone https://git.osmocom.org/osmocom-bb
    cd osmocom-bb/src
    make nofirmware
    cd ../..
  Put programs virtphy and mobile in $PATH, e.g.
    ln -s $PWD/osmocom-bb/src/host/virt_phy/src/virtphy ~/bin/
    ln -s $PWD/osmocom-bb/src/host/layer23/src/mobile/mobile ~/bin/

- also have these programs available in $PATH:
  - osmo-hlr
  - osmo-msc
  - osmo-mgw
  - osmo-stp
  - osmo-bsc
  - osmo-bts-virtual (from osmo-bts)
  - did i miss one?

- prepare HLR db; call this while no other osmo-hlr is running:
    ./create_hlr_subscribers.sh

- use run.sh to launch N terminals with one component each:
    ./run.sh
  when you hit enter in this terminal, the entire network is torn down. (so continue in another terminal)
  - of course you can instead launch the ten-odd components manually...

- Two virtual phones should subscribe to the network as soon as the two 'mobile' are launched.
  Watch for 'bssap': "Location Updating Accept" with wireshark tracing 'lo'

- Launch (the signalling of) a voice call:
    ./call.sh
    ...
    ./hangup.sh
  There will be no voice RTP stream, but the MGWs will be set up for it and the call will remain open.

- ...