9 ms·
Observing my cellphone switch towers
- ng55QPSK 6y ago"There are no open source LTE stack to learn from" https://osmocom.org/projects https://osmocom.org/projects
- Firerouge 6y agos/LTE stack/mmWave stack ?
- SSLy 6y agoThere are barely corporation-backed 5G mmWave stacks, and they're absurdly more complicated than 4G.
- sipjca 6y agoCan you shed more light on this? Do you mean in terms of beam forming? And other radio resource management complexities that arise from it? I worked in 5G mmWave on the UE side so can imagine some of the scheduling complexity. However for a basic mmW stack, like one to be implemented by OAI or srsRAN would likely scale the problem down to something more basic
- SSLy 6y agoYes, pretty much indeed beamforming and scheduling complexity. I could see srsRAN making a lowband (<6 GHz) impl of 5G, but not the crazily complicated high freqs. At least without some crazy funding.
- elric 6y agoThat website is not the greatest for finding out about the state of the projects, as in, is anyone using this? Are there any notable deployments? Can someone shed some light on this?
- drmpeg 6y agoThe most popular open source LTE stack is srsLTE (now called srsRAN). https://github.com/srsran/srsRAN https://github.com/srsran/srsRAN
- deleted 6y ago[deleted]
- Gys 6y agoUnfortunately this refers to srs.io for more info, but that domain is not found. So I am left wondering what SRS means.
- newhouseb 6y agoYou want https://www.srsran.com/ https://www.srsran.com/, but to save you a click: SRS stands for Software Radio Systems.
- newhouseb 6y agoThe srsLTE/srsRAN code is also fairly accessible and well written -- a year or so ago I used it as a reference for demodulating LTE downlink signals (in a python notebook). Also worth calling out ShareTechnote which is basically the personal notebook of a (brilliantly prolific) telecom engineer (now at Apple): https://www.sharetechnote.com/ https://www.sharetechnote.com/. It's incredibly comprehensive and well linked -- a much easier reference than paging through hundreds of pages of PDFs.
- Balantio 6y agoHow do i do this myself now? I always have put my phone in air plane mode when i was in a train due to the modem consuming a lot more energy. I always assumed and still doe its due switching towers and less connecitivy which means using more power. Whenever people argue that public transport doesn't need wifi i would argue against it due to power usage and also for more accessablity of the internet in general.
- masklinn 6y ago> How do i do this myself now? As the essay notes, it's through TelephonyManager on Android. On iOS it used to be possible through CoreTelephony private APIs, but I think Apple cracked down on these a few years back and either removed them entirely or locked them down behind entitlements, as they were getting abused by analytics frameworks.
- hansor 6y agoThere are plenty of free android applications showing you your local cellular info with CID LAC, CI etc. For example "Signal strength" APK. It's just matter of time until you will find one with logging and export ability. You can always write it down with pencil :)
- dylan604 6y agoNaw, this is HN, so it'd be more like take a screen shot, upload to some ML tool you cooked up in a weekend that OCRs the data, loads it into a NoSQL database with the cotnent presented in the latest fad JS framework using Lamda functions or some other cloud hosted CI/CD blue-green deployment to support both users.
- lstodd 6y agoSomething like Network Cell Info / Net Monitor / G-NetTrack on Android. They actually show tower locations with signal strengths. What I don't get is why the author didn't draw the signal strength of all towers that were visible. This info is also trivially available. What public transport needs are microcells, and to hell with wifi.
- schleiss 6y agoNice, that would be really nice to have for large Wi-Fi systems in big commercial buildings too.
- Ayesh 6y agoWell Wifi meshes are surpringly easy to put up, I think it's just the lack of desire doing so.
- Freestyler_3 6y agoThis is exactly how (big) wifi systems work. (mesh) If this is not the case in a big commercial building, it was done by choice or because of incompetence.
- ganafagol 6y agoNo it's not. A campus network has a PoE line to each access point. It's not a mesh, they don't route the traffic between the access points over the air.
- spockz 6y agoIsn’t that mesh with back haul? I thought the characteristics of a mesh were that the APs were communicating with themselves to provide handoff. Data can move over the AP or through back haul.
- emteycz 6y agoI think that's roaming. Mesh wifi should IMHO be routing the traffic through the nodes (with possible backhaul).
- windowsworkstoo 6y agoCorrect, enterprise wifi is usually just APs with a common SSID and security configuration and some tuning to try to force clients to roam sensibly. There’s no AP to AP comms, it all goes back to the switchport
- op03 6y ago> Along the way, five towers and nine cells (a.k.a eNB for Evolved NodeB) What does this mean? Whats the diff between tower and cell?
- myphs 6y agoHe explains this two sentences later: >- Several cellIDs map to the same eNB lat/long coordinates. That's because the antennas mounted on an eNB don't have 360° coverage. The angle and range of each antenna carves the space into pizza slice shaped cells.
- nick2k3 6y agoIt's explained in the article, one tower can have multiple antennas (author found out they're typically set at 120°) on a single mast. Each antenna is then a cell, altough mounted on a single tower.
- op03 6y agoAh multiple antennas. Makes sense. Thanks!
- _Microft 6y agoTowers are just locations of at least one set of sender and receiver. There can be more than one set of these at a given location, meaning that more than one cell can originate from a single tower. The first graphic visualizes this. Recption of the same cell is indicated by the same color there, while towers are at the points that these colored cones radiate from. Several cones of different colors start at the same points, visualizing that there are towers that are providing more than one cell. Observe that the reception can jump back and forth between the same cells as can be seen on the brown and blue colored cells in the top left corner of the graphic.
- deleted 6y ago[deleted]
- totetsu 6y agoit gets even more fun when you throw in beamforming. a tower is just a mast on which radios are mounted. a site is the location of the equipment. a node is the name for a set of radios and base systems. a nodes service can be divided in to sectors. a cell is usually a certain coverage area served, the frequency of cells will differ a bit from it's neighbor to stop interface. and a beam is specific focused radio that serves one UE.
- leoc 6y agoThe iPhone entries in the table could give a misleading impression of the timing. UMTS 3G phones had long been commonplace by the time the iPhone 1 was announced.
- kalleboo 6y agoIt's also missing pre-HSPA UMTS (384kbps) as a separate entry
- rcarmo 6y agoThis is nicely done, and takes me back to when I worked in mobile network planning. Most people are blissfully unaware of how much radio chatter and constant adjustment is actually holding up their browsing session from second to second, with the UE negotiating the best possible terms (power, throughput, etc.) with adjacent cell towers before it decides (or is prompted) to hand-over to a new cell. Optimizing cell hand-over and adjacency matrices is something that operators need to do quite frequently as traffic patterns and network topology change and a computationally neat problem that can be scaled horizontally (I once optimized one such job to run in 4 hours instead of 24).
- ganafagol 6y agoUm, I'm pretty sure that there is not much of that handover stuff happening while browsing hacker news since that's likely in a low-velocity scenario, i.e., sitting on the toilet.
- aembleton 6y agoMight be sitting on the toilet in a train
- WJW 6y agoIt can also happen due to other phones in the tower area moving and needing more or less power, which might result in "the system" deciding to move your phone over to another tower to reduce congestion. Even if you are just sitting on the toilet.
- oasisbob 6y agoYou would be surprised. If you're ever using your phone with a single available cell at low signal quality, just about anything will affect your signal... how you hold your phone, which room you're in, which way you're facing, etc. The ability to switch to a different tower papers over all sorts of moment-to-moment connectivity issues.
- grishka 6y agoI learned that the cellular protocol stack wasn't as simple as it seemed when I was debugging my VoIP library under different network conditions. I would go into the *#*#INFO#*#* menu on an Android phone and force it to a particular network type. 2G/EDGE provided just barely enough throughput for me to fit my packets through on my lowest bitrate. But sometimes there were periods when the packets would just stop coming through. This would last for a perceptible amount of time, sometimes even more than a second, but after that, all the packets I sent during that time would come through in a burst. That's how I found out about the RLC protocol that's somewhere in the stack in 2G, 3G, and 4G, and that it has this "acknowledged mode", and that in this mode it does retransmissions if there are bit errors. This also made it very clear why TCP sometimes struggles so much when running over a 2G connection. Anyway, I wish there was something like Wireshark to which I could connect a phone and see it talk to the cell towers in real time. This would really help understand how this all works.
- ganafagol 6y agoWould be great to have an app that shows a map with my position and the position of the current cell. And that could create such maps as in the article on-the-fly. Anybody knows of such an app?
- aembleton 6y agoNetwork cell info https://play.google.com/store/apps/details?id=com.wilysis.cellinfolite https://play.google.com/store/apps/details?id=com.wilysis.ce...
- lukec11 6y agoCellMapper[0] is not real-time, but it collects data to make sector maps and estimates the position of the current eNB. Users who contribute enough data can "pin" these eNBs in the correct location. Despite not being real-time, it's the best / most accurate app I've found of its kind and has a good community behind it. [0] https://www.cellmapper.net/map https://www.cellmapper.net/map
- 1f60c 6y agoThis discussion reminded me of an iOS app that visualized cell towers in AR. I can't remember the name, though.
- FreshFries 6y agoYou probably mean Richard Vijgen's art project: http://www.architectureofradio.com http://www.architectureofradio.com The iOS application: https://apps.apple.com/us/app/architecture-of-radio/id1035160239?ls=1 https://apps.apple.com/us/app/architecture-of-radio/id103516...
- vbsteven 6y agoOn a related note, this same mechanism can be used as a fallback for GPS to determine device location. I have worked on an IoT device with builtin SIM in the personal alarm space. Often when a device is indoors no GPS fix can be found, but the GSM module can report all celltower ids in range with signal strengths. These can be used to triangulate the device location. Google has an API for this where you can pass celtower ids and signal strengths. edit: and of course similar triangulation fallbacks/methods can be applied to WiFi AP's or Bluetooth Beacons, if you have a database with APs or beacons and their location. This database can be externally sourced but also built automatically by sending celltower ids/aps/beacons along with GPS fixes. I assume this is one of the many things Google is doing with their fleet of Streetview cars.
- deleted 6y ago[deleted]
- masklinn 6y agoI believe iOS may not bother involving the GPS if the application requests (or is only granted in iOS 14) approximate location, and there are enough towers in-range to triangulate. Not having to enable the GPS subsystems and get a fix saves a fair amount of battery.
- franga2000 6y agoIt's the same on Android - there's an "eco" mode of the location subsystem which will only use "passive" location indicators like WiFi and cell towers. In the "high accuracy" mode, GPS* will be activated, but until it lock onto enough satellites, passive location is used as a fallback/best guess.
- grishka 6y agoPassive isn't that. My understanding is that it's piggybacking on other apps' location requests if there are any.
- 6y ago
- hansor 6y agoIt's quite hilarious seeing bunch of skilled and intelligent hackers being excited regrading process known as "Handover" :) It is well known, and well documented in every single book in subject... Worth to mention that there are 3 types of handovers: - Intra-relations: user can be switched between various cells at same tower. - Intra-relations but with handover to lower technology (let's say when 4g is not available[too much traffic], so you will be dropped to let's say 3g or even 2g cell) - External-relations: relations between cells on different towers. As for towers: - Not all operators allows for local roaming between various operators. - Most towers have 3-5 sectors (pizza slices), but it's not that unusual to see OMNI antennas(single sector for 360 degrees).
- capableweb 6y agoIt's quite hilarious seeing a supposedly "skilled and intelligent hacker" (since we're on Hacker News after all) being so excited to recite the article.
- OOPMan 6y agoIt's quite hilarious seeing the term "skilled and intelligent hacker" being used to describe HN users
- drvdevd 6y agoThe most interesting part of this article IMO is how the author built handover visualizations with unprivileged code and explained what was exposed in the API on Android vs iOS that was needed to do this. And they're quite good.
- vbsteven 6y agoHandovers can exist on a higher level as well. 10 years ago there were calling apps that could handover a WiFi VoIP call to the gsm network (not using voip but actual gsm) when the WiFi goes bad and later switch the same call back to WiFi.
- vinay_ys 6y agoThis is very interesting presentation. I wonder if the author considered researching the inter-eNB and backhaul latency and how it affected UE latency.
- heelix 6y agoSomething like this would make it pretty easy to spot one of those stingray devices, I bet. Cell towers tend to stay put, so mapping out an area would go quick. Were a new 'tower' show up in an odd spot -- there may be shenanigans at hand.
- the8472 6y agothe GPS location is reported by the tower, so nothing is stopping a mitm device from spoofing that too
- iudqnolq 6y agoEdit: totally wrong. Thanks ectopod8! I'm pretty sure gps location is derived from signals from GPS satellites and ground stations. You can see this if you're somewhere with no cell signal but have gps, or visa versa.
- ectopod 6y agoThe GP is talking about the tower location, not your own location.
- efraim 6y agoThe location is taken from an online database based on cell id. It's not clear where most of them get their data but services like wigle and mozilla use crowd sourcing of signal strengths so they might be a bit off. Not as accurate as the ones in the article I would think.
- yuubi 6y agoIn cdma2000, it's an option. I didn't notice such a thing in LTE. (LTE does include some options to determine position by propagation delay between mobile and base station, but they all involve the mobile reporting time measurements to the network, and then the network has the info to compute location).
- oasisbob 6y agoThat type of exception analysis is exactly how University of Washington researchers do their stingray hunting. It doesn't take much time monitoring to figure out which towers smell funny: https://seaglass.cs.washington.edu/ https://seaglass.cs.washington.edu/
- l00sed 6y agoThis is so cool.
- qb2021 6y agoAt this one industrial customer I visit every week for a full day, my Verizon cell phone date/time time will suddenly change back by 19 years, six months, and some days (I don't have the exact value). This has been going on for almost a year. My pet theory was that law enforcement turned on a stingray nearby back in 2020, it came up with a default date of 1/1/2001, and has been running ever since. Steel building with warehouse plus office space. No one in the building is running one of those cell phone boosters that plug into customer internet and act as a mini tower. My newish pixel 4 and my previous Moto phone both demonstrate the problem. I don't have the fortitude to call Verizon and work through support to get to someone who would understand the problem. Has this happened to anyone else? Any other theories on what it is? (My workaround is to turn off updating date and time from the network)
- montroser 6y agoYes, a similar thing used to happen to me just at this one particular bar in Chelsea. But it wasn't off by 19 years, it was off by just an hour, which is worse in a way. That made for some confusing drunken time warps until I figured out the pattern...
- scrozier 6y agoI was in a rental vacation house at the southeastern end of Lake Michigan three years ago. It was a pretty big house, and as you walked from one end to the other, the time zone would change. Really messed with me until I figured that out.
- lizknope 6y agoAntelope Canyon is a popular tourist attraction in Arizona. During the summer Utah is on daylight savings time, Arizona does NOT observe daylight savings time but the Navajo Nation within Arizona DOES observe daylight savings time. Antelope Canyon is on Navajo Nation land and requires a tour guide from a licensed tour guide company. The canyon and tour guides DO observe daylight savings time. The canyon is only about 5 miles from the Utah border and many people are traveling from Utah. Because of all the competing cell phone towers you end up with people that show up at the wrong time. I purposely brought an old school watch for my trip.
- lighttower 6y agoHow much does the positioning of the phone in the car affect it's antenna effectiveness and directionality. I'm astounded that you can "bury" the phone in a pit beside the gear shift with a pile of metal on top (the dashboard) and it still works. The engineering me needs to place antennas optimally! Even though burying the phone in a pit and it still works it still irks me and I want to see it in an optimal placement where it is minimally shielded. Why don't car manufacturers have a place for the phone in the roof or something so that it gets optimal antenna placement? Yes it would be unseemly but wouldn't we get much better reception?
- frombody 6y agoThe better place to get reception would be through the charging or audio port. It's an easy way to extend the phone antenna to the whole vehicle.
- 542354234235 6y ago> Why don't car manufacturers have a place for the phone in the roof or something so that it gets optimal antenna placement? Yes it would be unseemly but wouldn't we get much better reception? Don’t you answer your own question? It would be unseemly. Phones still get signal and consumers aren’t demanding an option for optimal antenna placement. If they did install them, would consumers even notice battery savings when most people charge their phones in the car anyway? So for car manufacturers, it seems like all downsides.
- callesgg 6y ago”There are no open source LTE stack to learn from” That is not true, srsRAN is a opensource LTE project. That has both cell phone and tower versions. Runs on SDR boards like the limeSDR.
- seraphsf 6y agoThe Magma project is also an OSS LTE (and 5G) project: https://connectivity.fb.com/magma/ https://connectivity.fb.com/magma/
- latchkey 6y agoIt is worth noting that the mentioned books (along with many others about LTE) are available online, for free, if you know where to look.
- kevin_nisbet 6y agoSo are the standards actually... but it's probably pretty difficult to get into if you don't work in the industry and have to learn all the terminology, approach, history/evolution of the standards, etc.
- bogomipz 6y agoThis was a good read. I laughed out loud when I read the notes column of their cell technology matrix which listed Mr Drummond and Gordan Gecko for 0G and 1G respectively. I can also highly recommend the book "High Performance Browser Networking" by Ilya Grigorik referenced by this post. Although it's almost 8 years old most of is still very relevant. Although it would be wonderful if he would update it to reflect changes in TLS and 5G. I also really liked the layout and fonts on this person's site. It has an almost 'zine aesthetic. Very easy on the eyes. Does anyone know what they might be using to produce this?
- deleted 6y ago[deleted]
- kmonsen 6y agoBtw you do use this with stingrays to trick the phone into full power boost so it will use the battery very quickly. Useful if you want to encourage the user to go home to charge. I don’t remember the details but it has to do with selecting which cell tower is the best and how strong the cell phone needs to boost the signal are two different steps. Or at least used to be 10 years ago.
- NaturalPhallacy 6y agoThose visualizations remind me of living in WV, where even the greatly exaggerated maps of coverage produced by the carriers clearly follow only the major highways and like 30% of the cities. shudder
- mholt 6y agoIs there an app which can show you this kind of map in real-time as you move?
- sm4rk0 6y agoUseful pro-privacy tip from the article: > According to the LTE specs, cell-towers don't have to perform UE hand-overs like in GSM/UMTS. The phone starts camping on the next tower while remaining in RCC_IDLE mode without emitting data. Not only does this save battery, it also means operators don't really know where the phone is as long as it remains in the same LAC. And another tip: I wanted to know what "very expensive" means for LTE-related literature, so I searched DuckDuckGo for the first book mentioned (sold on Amazon for $105) and the second result was an OCR'd PDF at huaweicup.ru
- coretx 6y agoThe jolly celltower adventure could ensue by indirectly reading the weather and even to forecast it. The least difficult aspect is measuring humidity. ^_^ Good luck!
- salawat 6y agoIsn't any cell tower essentially a way to measure humidity as long as your receiver sensitivity and signal resolution high enough? Given known EMI patterns along the path of propagation of course.
- coretx 6y agoMeteorologists are using such data on a daily basis already and machine learning does wonders there too but i'm sadly not familiar with the finer details.
- ai_ja_nai 6y agoIt's always a pleasure to read Sanglard's posts. Best known for his 3dfx dissertation.
- ChrisRR 6y agoI will enthusiastically upvote anything written by Fabien Sanglard. He's such a great technical writer
- pmontra 6y agoIt's a side note at most, but the history of technology at the end of the article is a little bit misleading as it lacks the dates for the technologies. It seems to list the most notable devices for each category. Some of them appeared several years after a technology became mainstream. Examples: The Nokia 3310 is from the end of 2000 but 2G mobile phones were already in everybody's hands by then, at least here in Italy. The boom started in 1997. I resisted until 1999, then my boss gave one to me because "I don't want to call [another guy with a mobile] to talk with you" :-) It was the Nokia 8110 (Neo's phone in The Matrix.) 3G/UMTS was launched in Europe in 2003, much before the first 3G capable iPhone (2008). The marketing word in 2003 for UMTS was UMTS. The first device was the NEC 606 [1], from the 3 mobile operator (Italy, UK and a number of other countries.) There were a number of popular 3G phones in the 5 years before the iPhone 3G. By the way, the NEC 6060 did video calls too. The screen was low resolution (not by the standards of the time) and the price was outrageous (4 times the voice calls?) Not a very popular feature and yet it was there. [1] https://www.mobileindustryreview.com/2015/04/classic-handsets-nec-e606.html https://www.mobileindustryreview.com/2015/04/classic-handset...
- beckerdo 6y agoI like the map plotting in this article. You can see from the one second rays exactly how much time spent at a stop, and with a few calculations you probably can determine velocity.
- chrisseaton 6y agoSeems like an obvious missed opportunity to actually draw the cells? I guess it's a veroni diagram?
- peter_d_sherman 6y ago>"Good developers know how things work. Great developers know why things work. - Steve Souders, High Performance Browser Networking Forewords"
- PeterParanoia 6y agoThanks. Was quite a pleasure to read.