OsmoPCU Debugging » History » Version 1
laforge, 07/28/2017 01:18 PM
1 | 1 | laforge | h1. OsmoPCU Debugging |
---|---|---|---|
2 | |||
3 | In order to debug issues with [[OsmoPCU]], it is important to have protocol traces from all related interfaces. |
||
4 | |||
5 | Fundamentally, this includes |
||
6 | # the Gb interface (NS-over-IP from PCU to SGSN, showing NS/BSSGP/LLC and higher layer protocols) |
||
7 | #* this one is easy, you just have to capture the UDP traffic on the ip/port as specified in your configuration for this NS-VC (from [[OsmoBSC:]] or [[OsmoNITB:]] |
||
8 | # the Um interface (RLC/MAC between MS and PCU) |
||
9 | #* Um frames transmitted/received via OsmoPCU (on PACCH, PTCCH, PDTCH) |
||
10 | #* Um frames transmitted/received via OsmoBTS on behalf of OsmoPCU (on PCH and AGCH) |
||
11 | |||
12 | The instructions below will help you to set this up |
||
13 | |||
14 | h2. Setting up capturing |
||
15 | |||
16 | h3. NS-over-IP traffic |
||
17 | |||
18 | FIXME |
||
19 | |||
20 | h3. Um frames of OsmoPCU via GSMTAP |
||
21 | |||
22 | You must call the specific [[OsmoPCU:]] binary for your BTS hardware with the @-i@ option to enable GSMTAP and specify a remote IP address where to send it to[1]. |
||
23 | The IP address could be the localhost/loopback device, in case you want to capture packets locally. |
||
24 | |||
25 | For example, on a sysmoBTS device the normal command to start osmo-bts (by the systemd service) is: |
||
26 | |||
27 | /usr/bin/osmo-pcu -c /etc/osmocom/osmo-pcu.cfg |
||
28 | |||
29 | but we now need to start it as |
||
30 | |||
31 | /usr/bin/osmo-pcu -c /etc/osmocom/osmo-pcu.cfg -i 127.0.0.1 |
||
32 | |||
33 | fn1. As of this writing, OsmoPCU actually will send GSMTAP automatically by default to 127.0.0.1 but this is scheduled to change. Explicitly specifying the GSMTAP via the command-line argument as described here will work with both older and future versions of [[OsmoPCU:]] |
||
34 | |||
35 | h3. Um frames of OsmoBTS via GSMTAP |
||
36 | |||
37 | You must call the specific [[OsmoBTS:]] binary for your BTS hardware with the @-i@ option to enable GSMTAP and specify a remote IP address where to send it to. |
||
38 | The IP address could be the localhost/loopback device, in case you want to capture packets locally. |
||
39 | |||
40 | For example, on a sysmoBTS device the normal command to start osmo-bts (by the systemd service) is: |
||
41 | |||
42 | /usr/bin/osmo-bts-sysmo -s -c /etc/osmocom/osmo-bts.cfg -M |
||
43 | |||
44 | but we now need to start it as |
||
45 | |||
46 | /usr/bin/osmo-bts-sysmo -s -c /etc/osmocom/osmo-bts.cfg -M -i 127.0.0.1 |
||
47 | |||
48 | In osmo-bts.cfg you need to enable the following gsmtap SAPIs: |
||
49 | <pre> |
||
50 | bts 0 |
||
51 | ... |
||
52 | gsmtap-sapi ccch |
||
53 | gsmtap-sapi rach |
||
54 | gsmtap-sapi agch |
||
55 | gsmtap-sapi pch |
||
56 | ... |
||
57 | </pre> |