Low-Power Wide Area Networks (LPWANs) are continuously gaining momentum as fundamental enablers of the Internet of Things (IoT) paradigm. These networks provide longrange coverage to end nodes, exploiting license-free frequency bands. The focus of this work is on one of the most prominent LPWAN technologies: LoRa™. We implemented a new ns-3 module to study the performance of a LoRa-based IoT network in a typical urban scenario. Simulation results show that a LoRa network can scale well, achieving packet success rates above 95% in presence of a number of end devices in the order of 10 4 .