Project

General

Profile

Actions

NanoBTS » History » Revision 4

« Previous | Revision 4/39 (diff) | Next »
laforge, 02/19/2016 10:48 PM


The ip.access nanoBTS are small BTS with an A-bis over IP interface. RSL and OML are encapsulated in a single TCP session, whereas the TRAU frames on the actual TCH seem to be inside RTP/UDP.

A-bis over IP protocol

This is the description of the A-bis over IP protocol as we have reverse engineered it by looking at protocol traces between a commercial BSC and a nanoBTS. We did not and do not have access to the protocol specification of ip.access.

=== Common Header ===

Inside the TCP and UDP packets connection, every message is prefixed by a three-byte header: {{{
struct ipaccess_head {
u_int8_t zero;
u_int8_t len;
u_int8_t proto;
} attribute ((packed));
}}}

where the first byte is zero, the second byte indicates the length of the message payload following the header, and the third byte indicates the protocol. The following protocol values have been observed:

  • 0x00 RSL messages as per GSM 08.58
  • 0xfe ip.access specific messages
  • 0xff OML messages as per GSM 12.21

The ip.access specific messages that we have seen are of the following message types (message type is the first byte behind the ipaccess_head): * 0x00 PING (from BTS to BSC) * 0x01 PONG (from BSC to BTS), indicates that the link is still alive * 0x04 Identity Get (from BSC to BTS) * 0x05 Identity Response (from BTS to BSC) * 0x06 Identity confirm (both ways, BTS->BSC is a request, BSC->BTS is acknowledgement)

=== OML Signalling Link ===

After obtaining an IP address from DHCP, the nanoBTS will attempt to make TCP connections to a IP address and port number pre-configured in the device. The standard port seems to be 3002.

==== vendor-specific OML messages ====

vendor-specific OML messages use a specific format but are closely following the spirit of GSM TS 12.21.

Look at the ''abis_nm_ipaccess_msg()'' function in ''abis_nm.c'' if you want to know the details.

=== RSL Signalling Link ===

There is a vendor-specific OML command 0xe0, which basically corresponds to what the usual ''Connect Terrestrial Signalling'' does. Instead of connecting te RSL link to a specific TEI on a E1 timeslot, it connects the RSL link to a specified TCP port (and optionally IP address).

After this command is issued (and acknowledged by 0xe1), the BTS will initiate a TCP connection to the specified TCP port.

==== vendor-specific RSL messages ====

There are a couple of vendor-specific RSL messages extending 08.58 to accommodate the IP-based link.

They all use the GSM 08.85 message discriminator 0x7e

===== 0x70 BIND =====

This command binds a given on-air timeslot to a BTS-local RTP port.

Attributes: * 0x01 GSM 08.58 Channel Number (same as BIND)

===== 0x71 BIND ACK =====

This message (BTS->BSC) acknowledges the BTS-local bind.

Attributes: * 0x01 GSM 08.58 Channel Number (same as BIND) * 0xf8 unknown, maybe something like local RTP instance number, fixed length two bytes. * 0xf3 local RTP port number, fixed length 2 bytes * 0xf5 local IP address, fixed length 4 bytes * 0xfc unknown, fixed length 1 byte, content 0x7f

===== 0x73 CONNECT =====

This command (BSC->BTS) instructs the BTS to connect a given GSM channel (timeslot) to the remote end

Attributes: * 0x01 GSM 08.58 Channel Number (on-air timeslot) * 0xf8 unknown, maybe something like local RTP instance number, fixed length two bytes. * 0xf0 remote IP address, fixed length 4 bytes * 0xf1 remote RTP port number, fixed length 2 bytes * 0xf4 unknown, fixed length 1 byte, content 0x01 * 0xfc unknown, fixed length 1 byte, content 0x7f

===== 0x74 CONNECT ACK =====

This message (BTS->BCS) confirms the successful CONNECT operation

Attributes: * 0x01 GSM 08.58 Channel Number (on-air timeslot) * 0xf8 unknown, maybe something like local RTP instance number, fixed length two bytes.

===== 0x76 DISCONNECT INDICATION =====

This message (BTS->BSC) indicates a terminated RTP connection

Attributes: * 0x01 GSM 08.58 Channel Number (on-air timeslot) * 0xf8 unknown, maybe something like local RTP instance number, fixed length two bytes. * 0xf6 unknown, TLV with one byte length, content zero * 0x1a GSM 08.58 Cause

=== TRAU link ===

Not yet reverse engineered.

Wireshark dissector

We have developed a dissector for the popular wireshark network protocol analyzer. The patch can be found at this location in our svn: http://bs11-abis.gnumonks.org/trac/browser/trunk/wireshark/abisip.patch

Once the code has stabilized more, we plan to submit this for inclusion into wireshark mainline.

Files (2)
ipaccess-startup-mo_to_mo_call-proxy.pcap ipaccess-startup-mo_to_mo_call-proxy.pcap 170 KB pcap file of OML+RSL startup and call between two handsets on nanoBTS laforge, 07/28/2009 05:10 PM
ipaccess-startup-mo_to_mo_call-proxy-FR.pcap ipaccess-startup-mo_to_mo_call-proxy-FR.pcap 101 KB pcap file of OML+RSL startup and V1 Full Rate call between two handsets on nanoBTS laforge, 07/29/2009 11:22 AM

Updated by laforge about 8 years ago · 4 revisions

Add picture from clipboard (Maximum size: 48.8 MB)