From alton.kenneth.macdonald at fokus.fraunhofer.de Fri May 17 15:57:32 2013 From: alton.kenneth.macdonald at fokus.fraunhofer.de (Alton MacDonald) Date: Fri, 17 May 2013 17:57:32 +0200 Subject: SimpleHLR: A web interface for OpenBSC In-Reply-To: References: Message-ID: <5196536C.1030803@fokus.fraunhofer.de> Hi, We were using this interface for a while on our GSM testbed. Unfortunately, after having many subscribers, the web interface would not load correctly and would suffer from performance issues. Since I had also done a few python scripts to help manage our local OpenBSC installation, I used your interface as inspiration to design my own and incorporate my python scripts as well. Which brings me to proposing another web interface for OpenBSC and OsmoSGSN. I've attached a README file with the additional features my interface provides. On one hand, it adds some functionality to OpenBSC which sends welcome messages to subscribers the first time they are seen on the network and/or return from roaming. On the other hand, it facilitates the administration of MANY subscribers by providing a filterable interface where authorization can be quickly toggled. It also allows for changing the timeslot configurations so that an operator can adapt his/her network to the current required Voice and Data traffic. Since I would like to make this publicly available (preferably via the osmocom git repository), I have also attached gzipped screenshots of my current interface. Please let me know how my work can contribute to OpenBSC. best regards, Alton MacDonald -------------- next part -------------- A non-text attachment was scrubbed... Name: hlr_mgmt.tar.gz Type: application/x-gzip Size: 809321 bytes Desc: not available URL: -------------- next part -------------- Features: 1) View BSC and SGSN Statistics * View Channel and Data Usage * See running versions 2) Administer Subscribers * Authorize IMSIs dynamically * Authorize IMSIs based on IMEI identification * Name IMSI and IMEI for easily identification 3) Send SMS * Send SMS to individual subscribers * Broadcast SMS to attached subscribers (useful for notifying about system upgrade) 4) Administer BTS Settings * View BTS IP address for easy debugging access * Change physical channgel configuration for allocating Voice and Data channels as needed 5) Management Scripts * In case of failure, the backend services can be restarted from the web interface. Supported init.d scripts are: * LCR * Asterisk * GSGN * OpenBSC * OsmoSGSN 6) Additional Scripts * SubscriberMonitor: Welcome message to new or returning roaming subscribers * RegisterIMEI: script for individually authorizing subscribers. Its easier to have OpenBSC scan the network for the current IMEI-IMSI relationship and authorize a SIM card in a device than finding out the IMSI manually. User only enters IMEI and the script does the rest * both scripts are managed by hlr_mgmt or can also be run individually from the command line Installation & Configuration: 1) Customize the init file to suit your settings. Lines of particular interest are shown below: hlr_mgmt/__init__.py # OpenBSC Settings settings['provider'] = '<>' settings['db'] = '/etc/openbsc/hlr.sqlite3' settings['bsc_ip'] = "127.0.0.1" settings['sgsn_ip'] = "127.0.0.1" settings['bsc_port'] = 4242 settings['sgsn_port'] = 4245 2) Install the python dependencies python setup.py install 3) Run the Server: pserve production.ini start OPTIONAL: pserve is a nice python daemonizing function, administer the hlr_mgmt interface by changing runtime flags. pserver --help 4) Access the Web Interface http://localhost:8080/ From holger at freyther.de Thu May 23 11:05:04 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Thu, 23 May 2013 13:05:04 +0200 Subject: SimpleHLR: A web interface for OpenBSC In-Reply-To: <5196536C.1030803@fokus.fraunhofer.de> References: <5196536C.1030803@fokus.fraunhofer.de> Message-ID: <20130523110504.GA26255@xiaoyu.lan> On Fri, May 17, 2013 at 05:57:32PM +0200, Alton MacDonald wrote: Him > Since I would like to make this publicly available (preferably via the > osmocom git repository), I have also attached gzipped screenshots of my > current interface. sure, we can host the sourcecode. What is the intended license of the code? You can send me your public ssh key and I will create a repository for you. holger From alton.kenneth.macdonald at fokus.fraunhofer.de Fri May 31 10:14:33 2013 From: alton.kenneth.macdonald at fokus.fraunhofer.de (Alton MacDonald) Date: Fri, 31 May 2013 12:14:33 +0200 Subject: SimpleHLR: A web interface for OpenBSC In-Reply-To: <20130523110504.GA26255@xiaoyu.lan> References: <5196536C.1030803@fokus.fraunhofer.de> <20130523110504.GA26255@xiaoyu.lan> Message-ID: <51A87809.7000505@fokus.fraunhofer.de> For anyone interested, the web interface is now available at the following link: git clone git://git.osmocom.org/python/osmo-oohmi Please take a look at the README file before running. cheers, Alton On 05/23/2013 01:05 PM, Holger Hans Peter Freyther wrote: > > sure, we can host the sourcecode. What is the intended license of the > code? You can send me your public ssh key and I will create a repository > for you. > > holger > From holger at freyther.de Fri May 31 13:59:00 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Fri, 31 May 2013 15:59:00 +0200 Subject: SimpleHLR: A web interface for OpenBSC In-Reply-To: <51A87809.7000505@fokus.fraunhofer.de> References: <5196536C.1030803@fokus.fraunhofer.de> <20130523110504.GA26255@xiaoyu.lan> <51A87809.7000505@fokus.fraunhofer.de> Message-ID: <20130531135900.GB26724@xiaoyu.lan> On Fri, May 31, 2013 at 12:14:33PM +0200, Alton MacDonald wrote: > For anyone interested, the web interface is now available at the > following link: Thanks a lot for the contribution! I wonder if you would be interested in working at the database code (to make it async and to support Postgres in the future)? holger From zero-kelvin at gmx.de Tue May 7 18:56:59 2013 From: zero-kelvin at gmx.de (dexter) Date: Tue, 07 May 2013 20:56:59 +0200 Subject: Osmocom Berlin User Group meeting In-Reply-To: <20120818115942.GV29525@prithivi.gnumonks.org> References: <502d01a9.mirider@mirider.augusta.de> <20120818115942.GV29525@prithivi.gnumonks.org> Message-ID: <51894E7B.8080707@gmx.de> Hi folks. This is the announcement for the next Osmocom Berlin meeting. May 08, 8pm @ CCC Berlin, Marienstr. 11, 10117 Berlin There is no formal presentation scheduled for this meeting. If you are interested to show up, feel free to do so. There is no registration required. The meeting is free as in "free beer", despite no actual free beer being around. Regards, Philipp Maier From holger at freyther.de Wed May 29 10:26:18 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Wed, 29 May 2013 12:26:18 +0200 Subject: [PATCH] rsl: fix the unaligned memory access In-Reply-To: <1366631113-5621-1-git-send-email-nicolas.bouliane@nutaq.com> References: <20130421154122.GD7790@prithivi.gnumonks.org> <1366631113-5621-1-git-send-email-nicolas.bouliane@nutaq.com> Message-ID: <20130529102618.GR29022@xiaoyu.lan> On Mon, Apr 22, 2013 at 07:45:13AM -0400, Nicolas J. Bouliane wrote: > From: "Nicolas J. Bouliane" > > the armv5 can do 32bit/16bit reads only from the aligned address > use tlv.h macro to copy data to local variable thanks, I have applied it now and it should tickle to master as part of my other changes. holger From mailman-bounces at lists.osmocom.org Wed May 1 21:53:14 2013 From: mailman-bounces at lists.osmocom.org (mailman-bounces at lists.osmocom.org) Date: Wed, 01 May 2013 23:53:14 +0200 Subject: Uncaught bounce notification Message-ID: The attached message was received as a bounce, but either the bounce format was not recognized, or no member addresses could be extracted from it. This mailing list has been configured to send all unrecognized bounce messages to the list administrator(s). For more information see: https://lists.osmocom.org/mailman/admin/openbsc/bounce -------------- next part -------------- An embedded message was scrubbed... From: "Octavio" Subject: FW:Pills for erection problems Date: Wed, 1 May 2013 21:53:03 +0200 Size: 5844 URL: From coxe at close-haul.com Sat May 4 05:00:09 2013 From: coxe at close-haul.com (Robin Coxe) Date: Sat, 4 May 2013 01:00:09 -0400 Subject: [EVENT ANNOUNCEMENT] Boston Open GSM Meetup on Friday 10 May 2013 Message-ID: (Apologies for cross-posting. We wanted to reach everyone who might be interested in attending. Please respond responsibly.) Anders Brownworth (Switchcoder), Alexander Chemeris (Fairwaves), and Robin Coxe (Close-Haul Communications & Analog Devices) invite those interested in open GSM hardware and software development to an informal gathering in Cambridge, MA on Friday 10 May 2013 from 6-8 pm. Alexander will be visiting the Boston area from Moscow. If you are interested in participating in any capacity in the Boston-area open source GSM development community, we look forward to meeting you. Our goal is to identify like-minded people involved in or interested in learning more about projects such as OpenBTS, OsmocomBTS, OsmocomBB, and OpenBSC. If you have a portable, self-contained demo, feel free to bring it with you. When: Friday 10 May 2013, 6-8 pm EDT Where: Cambridge Innovation Center, 1 Broadway, 4th Floor, Cambridge, MA 02142 USA Photo ID required for building entry. Please RSVP on Eventbrite: http://opengsmboston.eventbrite.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.chemeris at gmail.com Sat May 4 10:02:55 2013 From: alexander.chemeris at gmail.com (Alexander Chemeris) Date: Sat, 4 May 2013 14:02:55 +0400 Subject: [EVENT ANNOUNCEMENT] Boston Open GSM Meetup on Friday 10 May 2013 In-Reply-To: References: Message-ID: Hi all, It would be great to hear from people using OpenBTS/OsmoBTS/OpenBSC and learn what do you use it for. From andersbrownworth at gmail.com Sat May 4 12:48:22 2013 From: andersbrownworth at gmail.com (Anders Brownworth) Date: Sat, 4 May 2013 08:48:22 -0400 Subject: [EVENT ANNOUNCEMENT] Boston Open GSM Meetup on Friday 10 May 2013 In-Reply-To: References: Message-ID: <2798833B-351E-45D5-ABF4-6AC5B42A0E89@gmail.com> All, Scott Barstow also of SwitchCoder will be flying in from North Carolina as well. -a Sent from my mobile. On May 4, 2013, at 6:02 AM, Alexander Chemeris wrote: > Hi all, > > It would be great to hear from people using OpenBTS/OsmoBTS/OpenBSC > and learn what do you use it for. > > From my side - I'll bring UmTRX or two and could answer all question > about it and demonstrate it operating OpenBTS and OsmoBTS. I could > talk about our open-source development of OpenBTS, if there would be > any interest. > > Also I'd love to talk about OsmoBTS/OpenBSC which the new cool. Only > few people heard about OsmoBTS, while it provides great capabilities: > * it works with off-the-shelf SDR transceivers like UmTRX > * it could use VoIP (SIP) soft-switches to connect calls > * it connects to MSCs of legacy GSM networks > * it supports encryption, handover, FR/HR/AMR codecs and GPRS (in beta) > * standards compliant L1/L2 layers, so there are no issues with > various phone models > > I love Osmocom approach to development as well - development is open > to all contributors, the code is well structured and tested, even > build results for all sub-projects are available through a continuous > integration suite: > http://jenkins.osmocom.org/jenkins/ > > On Sat, May 4, 2013 at 9:00 AM, Robin Coxe wrote: >> (Apologies for cross-posting. We wanted to reach everyone who might be >> interested in attending. Please respond responsibly.) >> >> Anders Brownworth (Switchcoder), Alexander Chemeris (Fairwaves), and Robin >> Coxe (Close-Haul Communications & Analog Devices) invite those interested in >> open GSM hardware and software development to an informal gathering in >> Cambridge, MA on Friday 10 May 2013 from 6-8 pm. Alexander will be visiting >> the Boston area from Moscow. >> >> If you are interested in participating in any capacity in the Boston-area >> open source GSM development community, we look forward to meeting you. Our >> goal is to identify like-minded people involved in or interested in learning >> more about projects such as OpenBTS, OsmocomBTS, OsmocomBB, and OpenBSC. >> If you have a portable, self-contained demo, feel free to bring it with you. >> >> When: Friday 10 May 2013, 6-8 pm EDT >> Where: Cambridge Innovation Center, 1 Broadway, 4th Floor, Cambridge, MA >> 02142 USA >> Photo ID required for building entry. >> >> Please RSVP on Eventbrite: http://opengsmboston.eventbrite.com/ > > > > -- > Regards, > Alexander Chemeris. > CEO, Fairwaves LLC / ??? ??????? > http://fairwaves.ru From nvesina at stud.hs-bremen.de Mon May 6 13:56:13 2013 From: nvesina at stud.hs-bremen.de (Natalia Vesina) Date: Mon, 6 May 2013 15:56:13 +0200 Subject: [Openbts-discuss] [EVENT ANNOUNCEMENT] Boston Open GSM Meetup on Friday 10 May 2013 In-Reply-To: References: Message-ID: <661ecae4cbf00586bffa55948b7f8e69.squirrel@webmail.hs-bremen.de> Hello, It is really a great opportunity and could be very interesting and useful.Unfortunately I will not be able to come to this meeting. But may be there will be some kinds of materials of this meeting and it will be possible to get somehow them? Will a video conference be provided in which it is also possible to take part? Best wishes, Natalia. Hi all, > > It would be great to hear from people using OpenBTS/OsmoBTS/OpenBSC > and learn what do you use it for. > > From my side - I'll bring UmTRX or two and could answer all question > about it and demonstrate it operating OpenBTS and OsmoBTS. I could > talk about our open-source development of OpenBTS, if there would be > any interest. > > Also I'd love to talk about OsmoBTS/OpenBSC which the new cool. Only > few people heard about OsmoBTS, while it provides great capabilities: > * it works with off-the-shelf SDR transceivers like UmTRX > * it could use VoIP (SIP) soft-switches to connect calls > * it connects to MSCs of legacy GSM networks > * it supports encryption, handover, FR/HR/AMR codecs and GPRS (in beta) > * standards compliant L1/L2 layers, so there are no issues with > various phone models > > I love Osmocom approach to development as well - development is open > to all contributors, the code is well structured and tested, even > build results for all sub-projects are available through a continuous > integration suite: > http://jenkins.osmocom.org/jenkins/ > > On Sat, May 4, 2013 at 9:00 AM, Robin Coxe wrote: >> (Apologies for cross-posting. We wanted to reach everyone who might be >> interested in attending. Please respond responsibly.) >> >> Anders Brownworth (Switchcoder), Alexander Chemeris (Fairwaves), and >> Robin >> Coxe (Close-Haul Communications & Analog Devices) invite those >> interested in >> open GSM hardware and software development to an informal gathering in >> Cambridge, MA on Friday 10 May 2013 from 6-8 pm. Alexander will be >> visiting >> the Boston area from Moscow. >> >> If you are interested in participating in any capacity in the >> Boston-area >> open source GSM development community, we look forward to meeting you. >> Our >> goal is to identify like-minded people involved in or interested in >> learning >> more about projects such as OpenBTS, OsmocomBTS, OsmocomBB, and OpenBSC. >> If you have a portable, self-contained demo, feel free to bring it with >> you. >> >> When: Friday 10 May 2013, 6-8 pm EDT >> Where: Cambridge Innovation Center, 1 Broadway, 4th Floor, Cambridge, >> MA >> 02142 USA >> Photo ID required for building entry. >> >> Please RSVP on Eventbrite: http://opengsmboston.eventbrite.com/ >> >> >> >> >> >> >> >> > > > > -- > Regards, > Alexander Chemeris. > CEO, Fairwaves LLC / ?????? ?????????????? > http://fairwaves.ru > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Openbts-discuss mailing list > Openbts-discuss at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openbts-discuss > From alexander.chemeris at gmail.com Mon May 6 14:54:31 2013 From: alexander.chemeris at gmail.com (Alexander Chemeris) Date: Mon, 6 May 2013 18:54:31 +0400 Subject: [Openbts-discuss] [EVENT ANNOUNCEMENT] Boston Open GSM Meetup on Friday 10 May 2013 In-Reply-To: <661ecae4cbf00586bffa55948b7f8e69.squirrel@webmail.hs-bremen.de> References: <661ecae4cbf00586bffa55948b7f8e69.squirrel@webmail.hs-bremen.de> Message-ID: We didn't plan video recording, as is meant to be an informal meeting without prepared presentations. Please excuse typos. Written with a touchscreen keyboard. -- Regards, Alexander Chemeris CEO/Founder Fairwaves LLC http://fairwaves.ru On May 6, 2013 5:56 PM, "Natalia Vesina" wrote: > Hello, > > It is really a great opportunity and could be very interesting and > useful.Unfortunately I will not be able to come to this meeting. But may > be there will be some kinds of materials of this meeting and it will be > possible to get somehow them? > > Will a video conference be provided in which it is also possible to take > part? > > Best wishes, > > Natalia. > > > > > > Hi all, > > > > It would be great to hear from people using OpenBTS/OsmoBTS/OpenBSC > > and learn what do you use it for. > > > > From my side - I'll bring UmTRX or two and could answer all question > > about it and demonstrate it operating OpenBTS and OsmoBTS. I could > > talk about our open-source development of OpenBTS, if there would be > > any interest. > > > > Also I'd love to talk about OsmoBTS/OpenBSC which the new cool. Only > > few people heard about OsmoBTS, while it provides great capabilities: > > * it works with off-the-shelf SDR transceivers like UmTRX > > * it could use VoIP (SIP) soft-switches to connect calls > > * it connects to MSCs of legacy GSM networks > > * it supports encryption, handover, FR/HR/AMR codecs and GPRS (in beta) > > * standards compliant L1/L2 layers, so there are no issues with > > various phone models > > > > I love Osmocom approach to development as well - development is open > > to all contributors, the code is well structured and tested, even > > build results for all sub-projects are available through a continuous > > integration suite: > > http://jenkins.osmocom.org/jenkins/ > > > > On Sat, May 4, 2013 at 9:00 AM, Robin Coxe wrote: > >> (Apologies for cross-posting. We wanted to reach everyone who might be > >> interested in attending. Please respond responsibly.) > >> > >> Anders Brownworth (Switchcoder), Alexander Chemeris (Fairwaves), and > >> Robin > >> Coxe (Close-Haul Communications & Analog Devices) invite those > >> interested in > >> open GSM hardware and software development to an informal gathering in > >> Cambridge, MA on Friday 10 May 2013 from 6-8 pm. Alexander will be > >> visiting > >> the Boston area from Moscow. > >> > >> If you are interested in participating in any capacity in the > >> Boston-area > >> open source GSM development community, we look forward to meeting you. > >> Our > >> goal is to identify like-minded people involved in or interested in > >> learning > >> more about projects such as OpenBTS, OsmocomBTS, OsmocomBB, and OpenBSC. > >> If you have a portable, self-contained demo, feel free to bring it with > >> you. > >> > >> When: Friday 10 May 2013, 6-8 pm EDT > >> Where: Cambridge Innovation Center, 1 Broadway, 4th Floor, Cambridge, > >> MA > >> 02142 USA > >> Photo ID required for building entry. > >> > >> Please RSVP on Eventbrite: http://opengsmboston.eventbrite.com/ > >> > >> > >> > >> > >> > >> > >> > >> > > > > > > > > -- > > Regards, > > Alexander Chemeris. > > CEO, Fairwaves LLC / ??? ??????? > > http://fairwaves.ru > > > > > ------------------------------------------------------------------------------ > > Get 100% visibility into Java/.NET code with AppDynamics Lite > > It's a free troubleshooting tool designed for production > > Get down to code-level detail for bottlenecks, with <2% overhead. > > Download for free and get started troubleshooting in minutes. > > http://p.sf.net/sfu/appdyn_d2d_ap2 > > _______________________________________________ > > Openbts-discuss mailing list > > Openbts-discuss at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/openbts-discuss > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at windycitysdr.com Sat May 4 12:36:00 2013 From: martin at windycitysdr.com (Martin O'Shield) Date: Sat, 4 May 2013 07:36:00 -0500 Subject: [EVENT ANNOUNCEMENT] Boston Open GSM Meetup on Friday 10 May 2013 In-Reply-To: References: Message-ID: Robin, Alexander, Too bad this was mentioned with such short notice as your event is happening in less than 6 days. Sincerely, Martin On Sat, May 4, 2013 at 12:00 AM, Robin Coxe wrote: > (Apologies for cross-posting. We wanted to reach everyone who might be > interested in attending. Please respond responsibly.) > > Anders Brownworth (Switchcoder), Alexander Chemeris (Fairwaves), and Robin > Coxe (Close-Haul Communications & Analog Devices) invite those interested > in open GSM hardware and software development to an informal gathering in > Cambridge, MA on Friday 10 May 2013 from 6-8 pm. Alexander will be > visiting the Boston area from Moscow. > > If you are interested in participating in any capacity in the Boston-area > open source GSM development community, we look forward to meeting you. Our > goal is to identify like-minded people involved in or interested in > learning more about projects such as OpenBTS, OsmocomBTS, OsmocomBB, and > OpenBSC. If you have a portable, self-contained demo, feel free to bring > it with you. > > When: Friday 10 May 2013, 6-8 pm EDT > Where: Cambridge Innovation Center, 1 Broadway, 4th Floor, Cambridge, MA > 02142 USA > Photo ID required for building entry. > > Please RSVP on Eventbrite: http://opengsmboston.eventbrite.com/ > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From holger at freyther.de Sat May 4 15:16:54 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Sat, 4 May 2013 17:16:54 +0200 Subject: Stress-testing sysmobts of osmo-bts Message-ID: <20130504151654.GI27997@xiaoyu.lan> Hi, I have pushed zecke/work/msgq-reading2 with a work in progress improvement for handling a load from a stress-test. The stress test is to allocate all lchan's at the same time (then let them fail through the radio link timeout) and re-allocate them. This forces the BTS to constantly need to open/close the logical channel resources and also send some (idle) frames (LAPDm is not established in this case). The BTS was sending frames too late and after looking at it with perf it looked like a latency issue (no one is really using the CPU). I have implemented various changes, not all of them are ready: * Change the Bad-Frame-Indicator level to have radio link timeouts with no phone being present. In the above test-case channels remained open as there was no bad-frame-indication on these channels. Pro: There is a constant load for all open channels Bad: We could do this as part of the MphTimeInd but then need to add a bit to the counter to remember if the counter was modified and we need to handle bad frame in two places. * Use writev for the write_queue. This code should/could move into the libosmocore. So for our primitives queue all primitives are the same length and we can use writev to write several frames as the same time. 1.) We go through the queued messages and add them to the iovec 2.) We use writev 3.) We do written / prim_size to see how many buffers were written 4.) We go throuh the queued messages with llist_for_each_entry_safe and remove the count of messages sent. 5.) We check if there are messages left and re-set the notify on writable bit. * Use readv for reading from the queue. This means that we need to allocate N msgb's, call readv, dispatch the messages, free the extra msgb's. Pro: In idle mode there is at least one message to read, with channels open it is likely we will read several messages at once. Bad: Allocating memory is not free. We could start using talloc pools, we could add a msgb_alloc_headroom that does not memset (talloc_zero) the memory. * The above made noticable differences but I also had to get the realtime hammer. I have decided to use SCHED_RR (instead of SCHED_FIFO). This is done with osmo-pcu in mind that needs to read from queues as well and both bts/pcu should be able to inerrupt each other. * For the ts_meas_check_compute we can stop processing the entire TS once we reach a lchan of type lchan == GSM_LCHAN_NONE. (We still need to add a memset of the lchan array into the oml.c code in case there is a re-config). TCH/F: Only lchan[0] is used. TCH/H: Only lchan[0,1] are used. SDCCH8: All of them are used CCCH: lchan[4] is used but we will have no power measurements anyway CCCH/SDCCH4: lchan[0-3] are used. What is not done: * Change the l1if primitive to either use or 'steal' the msgb. All the msgb_free could be removed, only if we forward the MSGB to the PCU socket we would 'steal' it. This would allow us to avoid calling msgb_alloc and msgb_free most of the time. * Add SCHED_RR to the pcu code as well. * Create a talloc pool for the primitives (or re-use the msgb across multiple reads). please review and comment holger From holger at freyther.de Sat May 4 19:23:31 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Sat, 4 May 2013 21:23:31 +0200 Subject: Stress-testing sysmobts of osmo-bts In-Reply-To: <20130504151654.GI27997@xiaoyu.lan> References: <20130504151654.GI27997@xiaoyu.lan> Message-ID: <20130504192331.GL27997@xiaoyu.lan> On Sat, May 04, 2013 at 05:16:54PM +0200, Holger Hans Peter Freyther wrote: > What is not done: > * Create a talloc pool for the primitives (or re-use the msgb across multiple > reads). * The stress test is either showing memory fragmentation or a silent leak. The virtual size of the address space is increasing over time, the talloc report does not show an increase in memory usage and I switched off the bts before I could look at vmRSS on the 'status' file. So it is either: a.) Something not attached to the talloc root context b.) Memory fragmentation holger From laforge at gnumonks.org Mon May 6 06:40:04 2013 From: laforge at gnumonks.org (Harald Welte) Date: Mon, 6 May 2013 08:40:04 +0200 Subject: Stress-testing sysmobts of osmo-bts In-Reply-To: <20130504192331.GL27997@xiaoyu.lan> References: <20130504151654.GI27997@xiaoyu.lan> <20130504192331.GL27997@xiaoyu.lan> Message-ID: <20130506064004.GA14508@nataraja.gnumonks.org> Hi Holger, On Sat, May 04, 2013 at 09:23:31PM +0200, Holger Hans Peter Freyther wrote: > On Sat, May 04, 2013 at 05:16:54PM +0200, Holger Hans Peter Freyther wrote: > > What is not done: > > > * Create a talloc pool for the primitives (or re-use the msgb across multiple > > reads). > > * The stress test is either showing memory fragmentation or a silent leak. > The virtual size of the address space is increasing over time, the talloc > report does not show an increase in memory usage and I switched off the bts > before I could look at vmRSS on the 'status' file. does this only happen with your new patches/branch, or does it already happen in current master? Looking at your patches, I don't see anything wrong with how msgb's are allocated and free'd -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From holger at freyther.de Mon May 6 08:45:08 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Mon, 6 May 2013 10:45:08 +0200 Subject: Stress-testing sysmobts of osmo-bts In-Reply-To: <20130506064004.GA14508@nataraja.gnumonks.org> References: <20130504151654.GI27997@xiaoyu.lan> <20130504192331.GL27997@xiaoyu.lan> <20130506064004.GA14508@nataraja.gnumonks.org> Message-ID: <20130506084508.GF20416@xiaoyu.lan> On Mon, May 06, 2013 at 08:40:04AM +0200, Harald Welte wrote: > Hi Holger, > does this only happen with your new patches/branch, or does it already > happen in current master? it appears to happen even before the readv patch. I will continue to have a look on Wednesday. with the BFIlevel set high enough (or another fix) on the BTS side, the stress test branch of OpenBSC and this shell script the issue should be re-producable. while true; do (sleep 1s && echo -e "enable\nallocate-all-channels\n") | telnet 127.0.0.1 4242; done From holger at freyther.de Mon May 6 19:39:52 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Mon, 6 May 2013 21:39:52 +0200 Subject: Stress-testing sysmobts of osmo-bts In-Reply-To: <20130506084508.GF20416@xiaoyu.lan> References: <20130504151654.GI27997@xiaoyu.lan> <20130504192331.GL27997@xiaoyu.lan> <20130506064004.GA14508@nataraja.gnumonks.org> <20130506084508.GF20416@xiaoyu.lan> Message-ID: <20130506193952.GC31077@xiaoyu.lan> On Mon, May 06, 2013 at 10:45:08AM +0200, Holger Hans Peter Freyther wrote: Hi, > with the BFIlevel set high enough (or another fix) on the BTS side, > the stress test branch of OpenBSC and this shell script the issue > should be re-producable. it is a "genuine" leak and there are several issues. 1.) lapd_core be like the logging/msgb code and have a setter for the talloc context. See the attached diff. (I used gdb to break in malloc and typed bt and saw a ctx=0x8 passed to talloc). 2.) Consider attaching the log_info to the lapdm_channel. I say consider as currently we are embedding the lapdm_channel in the lchan struct. So this is something we can not do right now. 3.) common/rsl.c calls lapdm_channel_reset which will not talloc_free the tx_hist. lapdm_channel_exit will do that. The call to lapdm_channel_reset was introduced in 2011. 4.) lchan_activate will call lapdm_channel_init which will end up call into lapd_dl_init which re-allocates the tx_hist. 5.) We should find a way to group all VTY allocations into a single block (e.g. see if we can have a vector/cmd_desc without a named context). I will clean this up in the coming days holger -------------- next part -------------- A non-text attachment was scrubbed... Name: bts.diff Type: text/x-diff Size: 1695 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lapd_ctx.diff Type: text/x-diff Size: 1279 bytes Desc: not available URL: From holger at freyther.de Tue May 7 06:10:52 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Tue, 7 May 2013 08:10:52 +0200 Subject: Stress-testing sysmobts of osmo-bts In-Reply-To: <20130506193952.GC31077@xiaoyu.lan> References: <20130504151654.GI27997@xiaoyu.lan> <20130504192331.GL27997@xiaoyu.lan> <20130506064004.GA14508@nataraja.gnumonks.org> <20130506084508.GF20416@xiaoyu.lan> <20130506193952.GC31077@xiaoyu.lan> Message-ID: <20130507061052.GA28426@xiaoyu.lan> On Mon, May 06, 2013 at 09:39:52PM +0200, Holger Hans Peter Freyther wrote: > talloc_report_full(tall_bts_ctx, stderr); > + talloc_report_full(NULL, stderr); this is useful for debugging. so maybe we separate the talloc reporting for SIGUSR1 and SIGUSR2. > tall_msgb_ctx = talloc_named_const(tall_bts_ctx, 1, "msgb"); > msgb_set_talloc_ctx(tall_msgb_ctx); > + lapd_global_init(tall_bts_ctx); this API is inconsistent but I would prefer the library to name the context the way they want to name it. From andreas at eversberg.eu Sun May 5 07:20:10 2013 From: andreas at eversberg.eu (jolly) Date: Sun, 05 May 2013 09:20:10 +0200 Subject: Stress-testing sysmobts of osmo-bts In-Reply-To: <20130504151654.GI27997@xiaoyu.lan> References: <20130504151654.GI27997@xiaoyu.lan> Message-ID: <5186082A.7050403@eversberg.eu> Holger Hans Peter Freyther wrote: > * Add SCHED_RR to the pcu code as well. > hi holger, i ported your patch to osmo-pcu (see jolly/meas branch). if ivan agrees, i would merge it to master. regards, andreas From Ivan.Kluchnikov at fairwaves.ru Mon May 6 11:01:07 2013 From: Ivan.Kluchnikov at fairwaves.ru (Ivan Kluchnikov) Date: Mon, 6 May 2013 15:01:07 +0400 Subject: Stress-testing sysmobts of osmo-bts In-Reply-To: <5186082A.7050403@eversberg.eu> References: <20130504151654.GI27997@xiaoyu.lan> <5186082A.7050403@eversberg.eu> Message-ID: hi andreas, this patch is ok, you can merge it to master. 2013/5/5 jolly > Holger Hans Peter Freyther wrote: > > * Add SCHED_RR to the pcu code as well. > > > hi holger, > > i ported your patch to osmo-pcu (see jolly/meas branch). if ivan agrees, > i would merge it to master. > > regards, > > andreas > > > -- Regards, Ivan Kluchnikov. http://fairwaves.ru -------------- next part -------------- An HTML attachment was scrubbed... URL: From nugett at centrum.sk Wed May 8 10:38:53 2013 From: nugett at centrum.sk (=?utf-8?q?Martin_Nagy?=) Date: Wed, 08 May 2013 12:38:53 +0200 Subject: =?utf-8?q?Pysim_error=3A_SW_match_failed?= Message-ID: <20130508123853.2A5DB6EA@centrum.sk> Hi all, After buying a super Sim Kit (16 in 1) from China, I tried the reader (green PCB inside a blue transparent plastic case with a blue LED) and SIM (identified as a fakesupersim) with pysim tool. However i am getting the following error: /pySim-prog.py -n 26C3 -c 49 -x 262 -y 42 -z 1234 -j 1 -t auto Insert card now (or CTRL-C to cancel) Autodetected card type fakemagicsim Generated card parameters : > Name : 26C3 > SMSP : e1ffffffffffffffffffffffff058100945555ffffffffffff000000 > ICCID : 8949262427518313026 > MCC/MNC : 262/42 > IMSI : 262422461512085 > Ki : 7b74741a1ee14337ec23f9ab92a13648 > OPC : ccd867d60797d8d45354a51b3ef568ff Programming ... Traceback (most recent call last): File "./pySim-prog.py", line 530, in card.program(cp) File "/home/nadicek/pysim/pysim/pySim/cards.py", line 231, in program self._scc.update_binary('6f30', hplmn + 'ff' * (tl-3)) File "/home/nadicek/pysim/pysim/pySim/commands.py", line 53, in update_binary return self._tp.send_apdu_checksw(pdu) File "/home/nadicek/pysim/pysim/pySim/transport/__init__.py", line 87, in send_apdu_checksw raise RuntimeError("SW match failed ! Expected %s and got %s." % (sw.lower(), rv[1])) RuntimeError: SW match failed ! Expected 9000 and got 9804. I checked mailing lists and haven?t found anybody who had similar problem with pysim. Also I have tried forcing different models of SIM, but nothing is working. Obviously I can remove this check from the script file (__init__.py in /pySim/transport), however somebody had a reason to put such condition there. I would like to ask if it is safe to remove that line of code and the purpose of that line of code. Thanks a lot and best regards Martin From lukash at backstep.net Wed May 8 10:46:36 2013 From: lukash at backstep.net (Lukas Kuzmiak) Date: Wed, 8 May 2013 13:46:36 +0300 Subject: Pysim error: SW match failed In-Reply-To: <20130508123853.2A5DB6EA@centrum.sk> References: <20130508123853.2A5DB6EA@centrum.sk> Message-ID: Hey there, it seems to me the pySim was trying to update 6f30 file (not sure why): self._scc.update_binary('6f30', hplmn + 'ff' * (tl-3)) and got back 0x9804 instead of 0x9000, which means you don't have sufficient permissions to update that file - either pin verification went wrong or you need some other key to update that file, not sure what permissions are set of 6f30 file there. Hopes this will help you debugging it. Cheers! Lukas On Wed, May 8, 2013 at 1:38 PM, Martin Nagy wrote: > Hi all, > After buying a super Sim Kit (16 in 1) from China, I tried the reader > (green PCB inside a blue transparent plastic case with a blue LED) and SIM > (identified as a fakesupersim) with pysim tool. However i am getting the > following error: > > /pySim-prog.py -n 26C3 -c 49 -x 262 -y 42 -z 1234 -j 1 -t auto > Insert card now (or CTRL-C to cancel) > Autodetected card type fakemagicsim > Generated card parameters : > > Name : 26C3 > > SMSP : e1ffffffffffffffffffffffff058100945555ffffffffffff000000 > > ICCID : 8949262427518313026 > > MCC/MNC : 262/42 > > IMSI : 262422461512085 > > Ki : 7b74741a1ee14337ec23f9ab92a13648 > > OPC : ccd867d60797d8d45354a51b3ef568ff > > Programming ... > Traceback (most recent call last): > File "./pySim-prog.py", line 530, in > card.program(cp) > File "/home/nadicek/pysim/pysim/pySim/cards.py", line 231, in program > self._scc.update_binary('6f30', hplmn + 'ff' * (tl-3)) > File "/home/nadicek/pysim/pysim/pySim/commands.py", line 53, in > update_binary > return self._tp.send_apdu_checksw(pdu) > File "/home/nadicek/pysim/pysim/pySim/transport/__init__.py", line 87, > in send_apdu_checksw > raise RuntimeError("SW match failed ! Expected %s and got %s." % > (sw.lower(), rv[1])) > RuntimeError: SW match failed ! Expected 9000 and got 9804. > > I checked mailing lists and haven?t found anybody who had similar problem > with pysim. Also I have tried forcing different models of SIM, but nothing > is working. Obviously I can remove this check from the script file > (__init__.py in /pySim/transport), however somebody had a reason to put > such condition there. I would like to ask if it is safe to remove that line > of code and the purpose of that line of code. > > Thanks a lot and best regards > Martin > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lukash at backstep.net Wed May 8 10:47:36 2013 From: lukash at backstep.net (Lukas Kuzmiak) Date: Wed, 8 May 2013 13:47:36 +0300 Subject: Pysim error: SW match failed In-Reply-To: References: <20130508123853.2A5DB6EA@centrum.sk> Message-ID: btw, you may want to move this discussion to the simtrace mailing list instead of openbsc, I think it fits there better. Lukas On Wed, May 8, 2013 at 1:46 PM, Lukas Kuzmiak wrote: > Hey there, > > it seems to me the pySim was trying to update 6f30 file (not sure why): > self._scc.update_binary('6f30', hplmn + 'ff' * (tl-3)) > > and got back 0x9804 instead of 0x9000, which means you don't have > sufficient permissions to update that file - either pin verification went > wrong or you need some other key to update that file, not sure what > permissions are set of 6f30 file there. > > Hopes this will help you debugging it. > > Cheers! > Lukas > > > On Wed, May 8, 2013 at 1:38 PM, Martin Nagy wrote: > >> Hi all, >> After buying a super Sim Kit (16 in 1) from China, I tried the reader >> (green PCB inside a blue transparent plastic case with a blue LED) and SIM >> (identified as a fakesupersim) with pysim tool. However i am getting the >> following error: >> >> /pySim-prog.py -n 26C3 -c 49 -x 262 -y 42 -z 1234 -j 1 -t auto >> Insert card now (or CTRL-C to cancel) >> Autodetected card type fakemagicsim >> Generated card parameters : >> > Name : 26C3 >> > SMSP : e1ffffffffffffffffffffffff058100945555ffffffffffff000000 >> > ICCID : 8949262427518313026 >> > MCC/MNC : 262/42 >> > IMSI : 262422461512085 >> > Ki : 7b74741a1ee14337ec23f9ab92a13648 >> > OPC : ccd867d60797d8d45354a51b3ef568ff >> >> Programming ... >> Traceback (most recent call last): >> File "./pySim-prog.py", line 530, in >> card.program(cp) >> File "/home/nadicek/pysim/pysim/pySim/cards.py", line 231, in program >> self._scc.update_binary('6f30', hplmn + 'ff' * (tl-3)) >> File "/home/nadicek/pysim/pysim/pySim/commands.py", line 53, in >> update_binary >> return self._tp.send_apdu_checksw(pdu) >> File "/home/nadicek/pysim/pysim/pySim/transport/__init__.py", line 87, >> in send_apdu_checksw >> raise RuntimeError("SW match failed ! Expected %s and got %s." % >> (sw.lower(), rv[1])) >> RuntimeError: SW match failed ! Expected 9000 and got 9804. >> >> I checked mailing lists and haven?t found anybody who had similar problem >> with pysim. Also I have tried forcing different models of SIM, but nothing >> is working. Obviously I can remove this check from the script file >> (__init__.py in /pySim/transport), however somebody had a reason to put >> such condition there. I would like to ask if it is safe to remove that line >> of code and the purpose of that line of code. >> >> Thanks a lot and best regards >> Martin >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhlistserv at gmail.com Wed May 8 13:35:27 2013 From: jhlistserv at gmail.com (j h) Date: Wed, 8 May 2013 09:35:27 -0400 Subject: Silent Call vs Test Call vs A-bis Proxy (ip.access-proxy) Message-ID: Could someone explain to me the difference between Silent Call, Test Call, and A-bis proxy (ip.access-proxy). To my understanding Test Call opens a pass through UDP port straight to the MS. While SilentCall just creates just creates a open channel. My confusion I believe comes from where you're "sitting" in the eco-system between Silent Call and Test Call. I also am confused after looking at ip.access-proxy. It clearly opens a port for injection either towards the BSC or BTS. However, does a silent-call need to be active to get data to the MS? When I try to inject a simple SMS using ip.access-proxy, (via copying traffic seen across ip.access), I get length disagrees with header. What is ip.access injection expecting in terms of data format? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From holger at freyther.de Wed May 8 16:51:58 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Wed, 8 May 2013 18:51:58 +0200 Subject: Silent Call vs Test Call vs A-bis Proxy (ip.access-proxy) In-Reply-To: References: Message-ID: <20130508165158.GX6691@xiaoyu.lan> On Wed, May 08, 2013 at 09:35:27AM -0400, j h wrote: Hi, do you have an account for our wiki? Where did you search for the information in it? holger From jhlistserv at gmail.com Wed May 8 17:43:51 2013 From: jhlistserv at gmail.com (j h) Date: Wed, 8 May 2013 13:43:51 -0400 Subject: Silent Call vs Test Call vs A-bis Proxy (ip.access-proxy) In-Reply-To: <20130508165158.GX6691@xiaoyu.lan> References: <20130508165158.GX6691@xiaoyu.lan> Message-ID: I do not have an account. I've been looking through the OpenBSC docs/codebase, and a few of Harald's presentations. On Wed, May 8, 2013 at 12:51 PM, Holger Hans Peter Freyther wrote: > On Wed, May 08, 2013 at 09:35:27AM -0400, j h wrote: > > Hi, > > do you have an account for our wiki? Where did you search for the > information in it? > > holger > From holger at freyther.de Wed May 8 17:52:59 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Wed, 8 May 2013 19:52:59 +0200 Subject: Silent Call vs Test Call vs A-bis Proxy (ip.access-proxy) In-Reply-To: References: <20130508165158.GX6691@xiaoyu.lan> Message-ID: <20130508175259.GZ6691@xiaoyu.lan> On Wed, May 08, 2013 at 01:43:51PM -0400, j h wrote: > I do not have an account. I've been looking through the OpenBSC > docs/codebase, and a few of Harald's presentations. okay, the only free support I will give is to improve the wiki. If you have questions regarding specific pages or proposals for page I will consider to clarify/create. holger From priyankabehl at ymail.com Thu May 9 06:24:55 2013 From: priyankabehl at ymail.com (Priyanka Behl) Date: Thu, 9 May 2013 14:24:55 +0800 (SGT) Subject: Testing Openbsc without a BTS Message-ID: <1368080695.92161.YahooMailNeo@web192604.mail.sg3.yahoo.com> Hi everyone, I?am trying to test Openbsc without a BTS. I need your help as I am very new to Openbsc. After doing the configurations for openbsc-multitrx.cfg file this is how I started the process: cd openbsc/openbsc src/osmo-nitb -c doc/examples/osmo-nitb/nanobts/openbsc-multitrx.cfg -C And the output I received was: <0019> input/ipaccess.c:925 enabling ipaccess BSC mode DB: Database initialized. DB: Database prepared. <0001d> sms_queue.c:220 Attempting to send 20 SMS After this I added a subscriber in the hlr and the subscriber was added in the output: ?<0019> ipaccess.c:841 enabling ipaccess BSC mode DB: Database initialized. DB: Database prepared. <001d> sms_queue.c:232 Attempting to send 20 SMS <0002> gsm_subsciber.c:390 Expiring inactive subscriber Testing(ID 1) After this I used the following commands on the osmo-nitb console and receive the following output: Openbsc>show subscrber id 1 ????????????ID:? 1,????Authorized:??1 ????????????Name:????'Testing' ????????????Extension:????9999999999 ????????????LAC:????0/0x0 ????????????IMSI:????404012345678903 ???????????TMSI:????0012D681 ????????????Pending:????0 ????????????Usecount:????1 Openbsc> subscriber id 1 send sms Hello Openbsc> subscriber id 1 silent call start any %subscriber not attached Am I doing the right thing, are there some more configurations that I am required to do?and is this the only output that can be achieved without a BTS? Also the lac is being displayed as 0/0x0, is this how it should have been? Please let me know, I really need help on this. Thanks and regards Priyanka -------------- next part -------------- An HTML attachment was scrubbed... URL: From holger at freyther.de Thu May 9 08:29:25 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Thu, 9 May 2013 10:29:25 +0200 Subject: Testing Openbsc without a BTS In-Reply-To: <1368080695.92161.YahooMailNeo@web192604.mail.sg3.yahoo.com> References: <1368080695.92161.YahooMailNeo@web192604.mail.sg3.yahoo.com> Message-ID: <20130509082925.GC6691@xiaoyu.lan> On Thu, May 09, 2013 at 02:24:55PM +0800, Priyanka Behl wrote: Hi, > Hi everyone, > I?am trying to test Openbsc without a BTS. I need your help as I am very new to Openbsc. > After doing the configurations for openbsc-multitrx.cfg file this is how I started the process: you might want to look at my mails about a pure software BTS used to test OpenBSC. The mails are here[1][2]. > cd openbsc/openbsc > src/osmo-nitb -c doc/examples/osmo-nitb/nanobts/openbsc-multitrx.cfg -C > Openbsc> subscriber id 1 send sms Hello > Openbsc> subscriber id 1 silent call start any > %subscriber not attached This is to be expected. Our system enforces a periodic location updating procedure and if a subscriber will not do that, it will be expired. Your subscriber needs to make a Location Updating Procedure. holger [1] http://lists.osmocom.org/pipermail/openbsc/2012-October/004210.html [2] http://lists.osmocom.org/pipermail/openbsc/2012-October/004250.html From priyankabehl at ymail.com Mon May 13 07:58:58 2013 From: priyankabehl at ymail.com (Priyanka Behl) Date: Mon, 13 May 2013 15:58:58 +0800 (SGT) Subject: Testing Openbsc without a BTS In-Reply-To: <20130509082925.GC6691@xiaoyu.lan> References: <1368080695.92161.YahooMailNeo@web192604.mail.sg3.yahoo.com> <20130509082925.GC6691@xiaoyu.lan> Message-ID: <1368431938.38431.YahooMailNeo@web192602.mail.sg3.yahoo.com> Hi, ?As per your mails abut a pure software BTS?when I tried installing it as: root at server:~# echo 'deb http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./' > /etc/apt/sources.list.d/ I got the following error bash: /etc/apt/sources.list.d/: Is a directory so next i tried installing it as: root at server:~# echo 'deb http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./' > /etc/apt/sources.list root at server:~# apt-get update Get:1 http://download.opensuse.org/ ./ Release.gpg [189 B] Ign http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./ Translation-en Ign http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./ Translation-en_IN Get:2 http://download.opensuse.org/ ./ Release [463 B] Ign http://download.opensuse.org/ ./ Release Ign http://download.opensuse.org/ ./ Packages/DiffIndex Ign http://download.opensuse.org/ ./ Packages Hit http://download.opensuse.org/ ./ Packages Fetched 190 B in 1s (145 B/s) Reading package lists... Done W: GPG error: http://download.opensuse.org/ ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7E816D4EB59F3637 root at server:~# gpg --keyserver pool.sks-keyservers.net --recv-keys 7E816D4EB59F3637 gpg: requesting key B59F3637 from hkp server pool.sks-keyservers.net gpgkeys: key 7E816D4EB59F3637 not found on keyserver gpg: no valid OpenPGP data found. gpg: Total number processed: 0 do you know how to troubleshoot this? ? ________________________________ From: Holger Hans Peter Freyther To: Priyanka Behl Cc: "openbsc at lists.osmocom.org" Sent: Thursday, 9 May 2013 1:59 PM Subject: Re: Testing Openbsc without a BTS On Thu, May 09, 2013 at 02:24:55PM +0800, Priyanka Behl wrote: Hi, > Hi everyone, > I?am trying to test Openbsc without a BTS. I need your help as I am very new to Openbsc. > After doing the configurations for openbsc-multitrx.cfg file this is how I started the process: you might want to look at my mails about a pure software BTS used to test OpenBSC. The mails are here[1][2]. > cd openbsc/openbsc > src/osmo-nitb -c doc/examples/osmo-nitb/nanobts/openbsc-multitrx.cfg -C > Openbsc> subscriber id 1 send sms Hello > Openbsc> subscriber id 1 silent call start any > %subscriber not attached This is to be expected. Our system enforces a periodic location updating procedure and if a subscriber will not do that, it will be expired. Your subscriber needs to make a Location Updating Procedure. holger [1] http://lists.osmocom.org/pipermail/openbsc/2012-October/004210.html [2] http://lists.osmocom.org/pipermail/openbsc/2012-October/004250.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From priyankabehl at ymail.com Tue May 14 04:53:17 2013 From: priyankabehl at ymail.com (Priyanka Behl) Date: Tue, 14 May 2013 12:53:17 +0800 (SGT) Subject: Testing Openbsc without a BTS In-Reply-To: <20130509082925.GC6691@xiaoyu.lan> References: <1368080695.92161.YahooMailNeo@web192604.mail.sg3.yahoo.com> <20130509082925.GC6691@xiaoyu.lan> Message-ID: <1368507197.10350.YahooMailNeo@web192601.mail.sg3.yahoo.com> Hi, As per your mails about a pure software BTS when I tried installing it as: root at server:~# echo 'deb http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./' > /etc/apt/sources.list.d/ I got the following error bash: /etc/apt/sources.list.d/: Is a directory so next i tried installing it as: root at server:~# echo 'deb http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./' > /etc/apt/sources.list root at server:~# apt-get update Get:1 http://download.opensuse.org/ ./ Release.gpg [189 B] Ign http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./ Translation-en Ign http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./ Translation-en_IN Get:2 http://download.opensuse.org/ ./ Release [463 B] Ign http://download.opensuse.org/ ./ Release Ign http://download.opensuse.org/ ./ Packages/DiffIndex Ign http://download.opensuse.org/ ./ Packages Hit http://download.opensuse.org/ ./ Packages Fetched 190 B in 1s (145 B/s) Reading package lists... Done W: GPG error: http://download.opensuse.org/ ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7E816D4EB59F3637 root at server:~# gpg --keyserver pool.sks-keyservers.net --recv-keys 7E816D4EB59F3637 gpg: requesting key B59F3637 from hkp server pool.sks-keyservers.net gpgkeys: key 7E816D4EB59F3637 not found on keyserver gpg: no valid OpenPGP data found. gpg: Total number processed: 0 do you know how to troubleshoot this? Thanks and regards Priyanka ________________________________ From: Holger Hans Peter Freyther To: Priyanka Behl Cc: "openbsc at lists.osmocom.org" Sent: Thursday, 9 May 2013 1:59 PM Subject: Re: Testing Openbsc without a BTS On Thu, May 09, 2013 at 02:24:55PM +0800, Priyanka Behl wrote: Hi, > Hi everyone, > I?am trying to test Openbsc without a BTS. I need your help as I am very new to Openbsc. > After doing the configurations for openbsc-multitrx.cfg file this is how I started the process: you might want to look at my mails about a pure software BTS used to test OpenBSC. The mails are here[1][2]. > cd openbsc/openbsc > src/osmo-nitb -c doc/examples/osmo-nitb/nanobts/openbsc-multitrx.cfg -C > Openbsc> subscriber id 1 send sms Hello > Openbsc> subscriber id 1 silent call start any > %subscriber not attached This is to be expected. Our system enforces a periodic location updating procedure and if a subscriber will not do that, it will be expired. Your subscriber needs to make a Location Updating Procedure. holger [1] http://lists.osmocom.org/pipermail/openbsc/2012-October/004210.html [2] http://lists.osmocom.org/pipermail/openbsc/2012-October/004250.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From holger at freyther.de Tue May 14 06:13:59 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Tue, 14 May 2013 08:13:59 +0200 Subject: Testing Openbsc without a BTS In-Reply-To: <1368507197.10350.YahooMailNeo@web192601.mail.sg3.yahoo.com> References: <1368080695.92161.YahooMailNeo@web192604.mail.sg3.yahoo.com> <20130509082925.GC6691@xiaoyu.lan> <1368507197.10350.YahooMailNeo@web192601.mail.sg3.yahoo.com> Message-ID: <20130514061359.GE17924@xiaoyu.lan> On Tue, May 14, 2013 at 12:53:17PM +0800, Priyanka Behl wrote: Hi, your behavior of re-sending a mail within a day is considered pushy in our community! > root at server:~# echo 'deb http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./' > /etc/apt/sources.list.d/ > > I got the following error > bash: /etc/apt/sources.list.d/: Is a directory Just think about the error message and the above command and you will find a solution. From priyankabehl at ymail.com Tue May 14 06:24:47 2013 From: priyankabehl at ymail.com (Priyanka Behl) Date: Tue, 14 May 2013 14:24:47 +0800 (SGT) Subject: Testing Openbsc without a BTS In-Reply-To: <20130514061359.GE17924@xiaoyu.lan> References: <1368080695.92161.YahooMailNeo@web192604.mail.sg3.yahoo.com> <20130509082925.GC6691@xiaoyu.lan> <1368507197.10350.YahooMailNeo@web192601.mail.sg3.yahoo.com> <20130514061359.GE17924@xiaoyu.lan> Message-ID: <1368512687.30177.YahooMailNeo@web192605.mail.sg3.yahoo.com> Hi, ? I am sorry but I got this Failure notice and?that's why i re-send it. But I'll take care of this in future. ________________________________ From: Holger Hans Peter Freyther To: Priyanka Behl Cc: "openbsc at lists.osmocom.org" Sent: Tuesday, 14 May 2013 11:43 AM Subject: Re: Testing Openbsc without a BTS On Tue, May 14, 2013 at 12:53:17PM +0800, Priyanka Behl wrote: Hi, your behavior of re-sending a mail within a day is considered pushy in our community! > root at server:~# echo 'deb http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/./' > /etc/apt/sources.list.d/ > > I got the following error > bash:? /etc/apt/sources.list.d/: Is a directory Just think about the error message and the above command and you will find a solution. -------------- next part -------------- An HTML attachment was scrubbed... URL: From holger at freyther.de Thu May 16 11:50:34 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Thu, 16 May 2013 13:50:34 +0200 Subject: Testing Openbsc without a BTS In-Reply-To: <1368507197.10350.YahooMailNeo@web192601.mail.sg3.yahoo.com> References: <1368080695.92161.YahooMailNeo@web192604.mail.sg3.yahoo.com> <20130509082925.GC6691@xiaoyu.lan> <1368507197.10350.YahooMailNeo@web192601.mail.sg3.yahoo.com> Message-ID: <20130516115034.GA15219@xiaoyu.lan> On Tue, May 14, 2013 at 12:53:17PM +0800, Priyanka Behl wrote: > Hi, As per your mails about a pure software BTS when I tried installing it as: > root at server:~# echo 'deb http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./' > /etc/apt/sources.list.d/ > > I got the following error > bash: /etc/apt/sources.list.d/: Is a directory the mail was wrong. One needs to create a file in this directory and any name will work out. I have created this[1] wiki page and corrected the information from the mail. holger [1] http://openbsc.osmocom.org/trac/wiki/simulation From priyankabehl at ymail.com Wed May 22 05:30:19 2013 From: priyankabehl at ymail.com (Priyanka Behl) Date: Wed, 22 May 2013 13:30:19 +0800 (SGT) Subject: Testing Openbsc without a BTS In-Reply-To: <20130516115034.GA15219@xiaoyu.lan> References: <1368080695.92161.YahooMailNeo@web192604.mail.sg3.yahoo.com> <20130509082925.GC6691@xiaoyu.lan> <1368507197.10350.YahooMailNeo@web192601.mail.sg3.yahoo.com> <20130516115034.GA15219@xiaoyu.lan> Message-ID: <1369200619.59088.YahooMailNeo@web192603.mail.sg3.yahoo.com> Hi Holger, ? It has?just been a couple of months that I have started working on linux so please correct me if I am wrong, ? As per http://openbsc.osmocom.org/trac/wiki/simulation?when we install softBTS as: ? ?echo 'deb http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./' > /etc/apt/sources.list.d/osmocom so the?'osmocom' in the expression?is the?'osmocom.list' file that I will have to create because a file in sources.list.d has to have an extension '.list', right? Thanks and regards Priyanka ???? ________________________________ From: Holger Hans Peter Freyther To: Priyanka Behl Cc: "openbsc at lists.osmocom.org" Sent: Thursday, 16 May 2013 5:20 PM Subject: Re: Testing Openbsc without a BTS On Tue, May 14, 2013 at 12:53:17PM +0800, Priyanka Behl wrote: > Hi, As per your mails about a pure software BTS when I tried installing it as: > root at server:~# echo 'deb http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/./' > /etc/apt/sources.list.d/ > > I got the following error > bash:? /etc/apt/sources.list.d/: Is a directory the mail was wrong. One needs to create a file in this directory and any name will work out. I have created this[1] wiki page and corrected the information from the mail. holger [1] http://openbsc.osmocom.org/trac/wiki/simulation -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo at gnumonks.org Sun May 12 18:52:15 2013 From: pablo at gnumonks.org (pablo at gnumonks.org) Date: Sun, 12 May 2013 20:52:15 +0200 Subject: [PATCH] nat: fix use after free in forward_sccp_to_bts Message-ID: <1368384735-6998-1-git-send-email-pablo@gnumonks.org> From: Pablo Neira Ayuso valgrind detected an use after free in the path of forward_sccp_to_bts. The 'parsed' object is referenced from update_con_authorize. --- openbsc/src/osmo-bsc_nat/bsc_nat.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c index b9bf36c..be8d56a 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_nat.c +++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c @@ -718,15 +718,18 @@ static int forward_sccp_to_bts(struct bsc_msc_connection *msc_con, struct msgb * LOGP(DNAT, LOGL_ERROR, "Unknown connection for msg type: 0x%x from the MSC.\n", parsed->sccp_type); } - talloc_free(parsed); - if (!con) + if (!con) { + talloc_free(parsed); return -1; + } if (!con->bsc->authenticated) { + talloc_free(parsed); LOGP(DNAT, LOGL_ERROR, "Selected BSC not authenticated.\n"); return -1; } update_con_authorize(con, parsed, msg); + talloc_free(parsed); bsc_send_data(con->bsc, msg->l2h, msgb_l2len(msg), proto); return 0; -- 1.7.10.4 From holger at freyther.de Sun May 12 20:13:21 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Sun, 12 May 2013 22:13:21 +0200 Subject: [PATCH] nat: fix use after free in forward_sccp_to_bts In-Reply-To: <1368384735-6998-1-git-send-email-pablo@gnumonks.org> References: <1368384735-6998-1-git-send-email-pablo@gnumonks.org> Message-ID: <20130512201321.GN18404@xiaoyu.lan> On Sun, May 12, 2013 at 08:52:15PM +0200, pablo at gnumonks.org wrote: > From: Pablo Neira Ayuso > > valgrind detected an use after free in the path of forward_sccp_to_bts. > The 'parsed' object is referenced from update_con_authorize. interesting that it never showed up when I used valgrind and the code appears to be like this since 2010. Feel free to push this to master. thanks holger From priyankabehl at ymail.com Tue May 14 04:42:05 2013 From: priyankabehl at ymail.com (Priyanka Behl) Date: Tue, 14 May 2013 12:42:05 +0800 (SGT) Subject: Testing Openbsc with software BTS Message-ID: <1368506525.50647.YahooMailNeo@web192604.mail.sg3.yahoo.com> Hi, ?As per your mails about a pure software BTS when I tried installing it as: root at server:~# echo 'deb http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./' > /etc/apt/sources.list.d/ I got the following error bash: /etc/apt/sources.list.d/: Is a directory so next i tried installing it as: root at server:~# echo 'deb http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./' > /etc/apt/sources.list root at server:~# apt-get update Get:1 http://download.opensuse.org/ ./ Release.gpg [189 B] Ign http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./ Translation-en Ign http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./ Translation-en_IN Get:2 http://download.opensuse.org/ ./ Release [463 B] Ign http://download.opensuse.org/ ./ Release Ign http://download.opensuse.org/ ./ Packages/DiffIndex Ign http://download.opensuse.org/ ./ Packages Hit http://download.opensuse.org/ ./ Packages Fetched 190 B in 1s (145 B/s) Reading package lists... Done W: GPG error: http://download.opensuse.org/ ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7E816D4EB59F3637 root at server:~# gpg --keyserver pool.sks-keyservers.net --recv-keys 7E816D4EB59F3637 gpg: requesting key B59F3637 from hkp server pool.sks-keyservers.net gpgkeys: key 7E816D4EB59F3637 not found on keyserver gpg: no valid OpenPGP data found. gpg: Total number processed: 0 do you know how to troubleshoot this? Thanks and regards Priyanka ________________________________ From: Holger Hans Peter Freyther To: Priyanka Behl Cc: "openbsc at lists.osmocom.org" Sent: Thursday, 9 May 2013 1:59 PM Subject: Re: Testing Openbsc without a BTS On Thu, May 09, 2013 at 02:24:55PM +0800, Priyanka Behl wrote: Hi, > Hi everyone, > I am trying to test Openbsc without a BTS. I need your help as I am very new to Openbsc. > After doing the configurations for openbsc-multitrx.cfg file this is how I started the process: you might want to look at my mails about a pure software BTS used to test OpenBSC. The mails are here[1][2]. > cd openbsc/openbsc > src/osmo-nitb -c doc/examples/osmo-nitb/nanobts/openbsc-multitrx.cfg -C > Openbsc> subscriber id 1 send sms Hello > Openbsc> subscriber id 1 silent call start any > %subscriber not attached This is to be expected. Our system enforces a periodic location updating procedure and if a subscriber will not do that, it will be expired. Your subscriber needs to make a Location Updating Procedure. holger [1] http://lists.osmocom.org/pipermail/openbsc/2012-October/004210.html [2] http://lists.osmocom.org/pipermail/openbsc/2012-October/004250.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreas at eversberg.eu Thu May 16 08:01:15 2013 From: andreas at eversberg.eu (jolly) Date: Thu, 16 May 2013 10:01:15 +0200 Subject: New handover algorithm Message-ID: <5194924B.9070406@eversberg.eu> Hi, Jean-Samuel and me developed an advanced handover algorithm for OpenBSC. Before implementing it, we would like to get any feedback, so I decided to post it in this mailing list. The document that describes the algorithm can be downloaded at: http://home.eversberg.eu/handover-algorithm-v2.3.pdf Regards, Andreas Handover shall ensure that the mobile station is always on the best cell during a call. This results in best speech quality and allows a lower TX level (up-link) to save battery and reduce interference. Sometimes this is not desirable, especially if a cell with large coverage becomes congested after handover. In this situation it makes sense to balance the usage between cells to prevent congestion. If a cell is congested, one or several mobile stations need to be handovered to a different cell, even if that cell is not the best cell for these mobile station. In case that a mobile station needs to handover to prevent a loss of radio link, it makes sense to handover it to a cell that is congested afterwards. In this situation, a different mobile station on the congested target cell must be handovered to a non-congested neighbor cell, to solve or balance the congestion. In order to negotiate used codec and TCH rate during call setup, Immediate Assignment shall assign an SDCCH channel, if available. After negotiation is complete, assignment to the available TCH slot is made. -------------- next part -------------- An HTML attachment was scrubbed... URL: From laforge at gnumonks.org Thu May 16 10:44:10 2013 From: laforge at gnumonks.org (Harald Welte) Date: Thu, 16 May 2013 12:44:10 +0200 Subject: New handover algorithm In-Reply-To: <5194924B.9070406@eversberg.eu> References: <5194924B.9070406@eversberg.eu> Message-ID: <20130516104410.GP10528@nataraja.gnumonks.org> Hi Jolly, thanks a lot for working on this. As a side-note: I think there is little point in referring to a PDF file on a web server, especially if that PDF file only contains plain text. Either send that full plain text to this mailing list for discussion, and/or maintain the text in the wiki. This way it can be maintained collaboratively and stays with the other information related to the project. Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From andreas at eversberg.eu Thu May 16 11:10:46 2013 From: andreas at eversberg.eu (jolly) Date: Thu, 16 May 2013 13:10:46 +0200 Subject: New handover algorithm In-Reply-To: <20130516104410.GP10528@nataraja.gnumonks.org> References: <5194924B.9070406@eversberg.eu> <20130516104410.GP10528@nataraja.gnumonks.org> Message-ID: <5194BEB6.5080305@eversberg.eu> Harald Welte wrote: > As a side-note: I think there is little point in referring to a PDF file > on a web server, especially if that PDF file only contains plain text. > Either send that full plain text to this mailing list for discussion, > and/or maintain the text in the wiki. This way it can be maintained > collaboratively and stays with the other information related to the > project. good advice! http://openbsc.osmocom.org/trac/wiki/handover From meierk at informatik.uni-freiburg.de Wed May 22 16:42:00 2013 From: meierk at informatik.uni-freiburg.de (Konrad Meier) Date: Wed, 22 May 2013 18:42:00 +0200 Subject: For sale: 2 x nanoBTS 1800 and 1x nanoBTS booster 1800 Message-ID: <519CF558.1090208@informatik.uni-freiburg.de> Hello, At the University of Freiburg (Germany) we have two nanoBTS 1800 and a nanoBTS booster 1800 for sale: NanoBTS Modell 139: 1500 Euro NanoBTS Modell 165G: 2500 Euro NanoBTS-Booster 1800: 1000 Euro The nanoBTS 139 needs to be unplugged if the software Open-BSC is restarted. Most likely this is only a software problem. Details for the booster are given here: http://www.proximus.com.ua/Nano_BTS_high_power_GSM_booster.html The NanoBTS-Booster package includes everything required: - Booster - Power supply - 2x cable to connect to the nanoBTS (0,5 meter) - 1x cable to the antenna (5 meter) - 1x omnidirectional antenna. 3 dBd gain / 1800 MHz The antenna is a high quality omnidirectional antenna from Procom (cxl-1800-3). Best regards Konrad Meier From holger at freyther.de Wed May 22 18:47:24 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Wed, 22 May 2013 20:47:24 +0200 Subject: For sale: 2 x nanoBTS 1800 and 1x nanoBTS booster 1800 In-Reply-To: <519CF558.1090208@informatik.uni-freiburg.de> References: <519CF558.1090208@informatik.uni-freiburg.de> Message-ID: <20130522184724.GC3398@xiaoyu.lan> On Wed, May 22, 2013 at 06:42:00PM +0200, Konrad Meier wrote: > Hello, Hi, > > At the University of Freiburg (Germany) we have two nanoBTS 1800 and > a nanoBTS booster 1800 for sale: are you still running a GSM network at the University or is this the end of it? From meierk at informatik.uni-freiburg.de Thu May 23 08:22:21 2013 From: meierk at informatik.uni-freiburg.de (Konrad Meier) Date: Thu, 23 May 2013 10:22:21 +0200 Subject: For sale: 2 x nanoBTS 1800 and 1x nanoBTS booster 1800 In-Reply-To: <20130522184724.GC3398@xiaoyu.lan> References: <519CF558.1090208@informatik.uni-freiburg.de> <20130522184724.GC3398@xiaoyu.lan> Message-ID: <519DD1BD.80005@informatik.uni-freiburg.de> On 22.05.2013 20:47, Holger Hans Peter Freyther wrote: >> At the University of Freiburg (Germany) we have two nanoBTS 1800 and >> a nanoBTS booster 1800 for sale: > > are you still running a GSM network at the University or is this the > end of it? Hi Holger, Yes, unfortunately we are no longer running the network. That is the reason why we no longer need all the equipment. But we will keep some equipment for our Comminucation Systems lectures (BS11, nanoBTS, USRP, Motorola C123 ...) and continue teaching students GSM networks with practical exercises. At this point I would like to thank all the contributors to openBSC for their great work. Best regards Konrad Meier From priyankabehl at ymail.com Thu May 23 10:16:17 2013 From: priyankabehl at ymail.com (Priyanka Behl) Date: Thu, 23 May 2013 18:16:17 +0800 (SGT) Subject: Error during the installation of the softBTS Message-ID: <1369304177.19249.YahooMailNeo@web192606.mail.sg3.yahoo.com> Hi everyone, ? During the installation of the softBTS the following error incurred: ? root at ubuntu:/#?aptitude install gnu-smalltalk osmo-st-openbsc-test couldn't find any package whose name or description matched "osmo-st-openbsc-test" ? while gnu smalltalk has been installed. can somebody help me with this? ? Thanks and regards Priyanka -------------- next part -------------- An HTML attachment was scrubbed... URL: From priyankabehl at ymail.com Tue May 28 04:42:40 2013 From: priyankabehl at ymail.com (Priyanka Behl) Date: Tue, 28 May 2013 12:42:40 +0800 (SGT) Subject: Testing OpenBSC with FakeBTS Message-ID: <1369716160.44099.YahooMailNeo@web192605.mail.sg3.yahoo.com> Hi everyone, ? I am trying to test Openbsc with the FakeBTS and I wanted to know if it is possible to run FakeBTS on one machine and all other processes ie osmo-nitb, gggsn, osmo-sgsn and osmo-pcu on another machine and set up communication among these? ? Thanks and regards Priyanka -------------- next part -------------- An HTML attachment was scrubbed... URL: From priyankabehl at ymail.com Fri May 31 09:55:34 2013 From: priyankabehl at ymail.com (Priyanka Behl) Date: Fri, 31 May 2013 17:55:34 +0800 (SGT) Subject: Using FakeBTS Message-ID: <1369994134.38866.YahooMailNeo@web192605.mail.sg3.yahoo.com> Hi everyone, ? I have this 1 question: is it possible to have a complete communicating?network with FakeBTS runing on 1 machine and all other processes on the other? (I have asked this question earlier but have not received any answer as yet. can somebody please care to reply, its a little urgent) ? Thanks and regards Priyanka -------------- next part -------------- An HTML attachment was scrubbed... URL: