Full text
Universidade do Minho Escola de Engenharia Departamento de Informática Daniel Filipe da Rocha Teixeira Opportunistic Wi-Fi network selection in heterogeneous vehicular wireless networks for detecting VRUs through edge computing October 2022
Universidade do Minho Escola de Engenharia Departamento de Informática Daniel Filipe da Rocha Teixeira Opportunistic Wi-Fi network selection in heterogeneous vehicular wireless networks for detecting VRUs through edge computing Master dissertation Master’s in Network Engineering and Telematic Services Dissertation supervised by Prof. Dr. Bruno Dias Prof. Dr. Ana Aguiar October 2022
COPYRIGHT AND TERMS OF USE FOR THIRD PARTY WORK This dissertation reports on academic work that can be used by third parties as long as the internationally accepted standards and good practices are respected concerning copyright and related rights. This work can thereafter be used under the terms established in the license below. Readers needing authorization conditions not provided for in the indicated licensing should contact the author through the RepositóriUM of the University of Minho. LICENSE GRANTED TO USERS OF THIS WORK: CC BY https://creativecommons.org/licenses/by/4.0/
ACKNOWLEDGEMENTS Quero agradecer à Professora Ana Aguiar, por me ter orientado durante este último ano e por ser um exemplo constante para mim do que uma professora, investigadora, e orientadora devem ser. Durante a dissertação senti sempre que tinha na Professora Ana alguém com quem trocar ideias, debater qual o melhor rumo para a dissertação, e como é que posso dar o melhor de mim neste projeto. E agradeço também pela oportunidade de trabalhar no IT Porto, com um grupo de pessoas fantásticas e extremamente dedicadas, com as quais aprendi imenso. Um obrigado ao Professor Bruno Dias, por ter aceite o desafio de me orientar, por me ter ajudado a organizar melhor as minhas ideias e a transformar este documento em algo, espero eu, coerente e que faça justiça a todo o meu trabalho. Agradeço também a toda a gente que me apoiou ao longo deste percurso pelo ensino superior. Aos meus colegas, aos meus amigos, à minha família, e a todas as pessoas que me ajudaram a dar o melhor de mim e a desafiar-me constantemente. E em especial, à minha mãe, a pessoa que lutou para que eu pudesse entrar no ensino superior e que fez todos os possíveis para que tivesse um bom futuro à minha frente. Por último, quero agradecer à pessoa que me apoia, que me motiva, que me ajuda e que me dá força para continuar. Eu não estaria aqui, e mais importante ainda, eu não seria a pessoa que sou sem ela ao meu lado. Durante estes anos de lágrimas e sorrisos, ela esteve lá para me apoiar nos momentos maus e para celebrar comigo as minhas vitórias. À pessoa que mais me influenciou, que me motiva para ser a melhor versão de mim, e que admiro. Obrigado Inês, por tudo o que fazes e fizeste, sou a pessoa mais sortuda do mundo por te ter ao meu lado. a
STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. b
ABSTRACT The future of vehicles is for them to become smarter: able to perceive the its surroundings, detect dangerous situations, and act accordingly. To realize this vision, vehicles must collect information and share it with others, allowing them to have shared knowledge of an event that their sensors could not yet detect. However, some vehicles may not have enough computational resources to process the information and comply with low-delay requirements, and may need to offload the data to edge computing platforms to extend their own processing capabilities. While offloading, a vehicle may have multiple access networks at their disposal and by choosing the best network it may maximize the amount of data it can offload. These access networks include the mobile 5G network and Wi-Fi access points, which the operator can integrate within the 5G system to take advantage of unlicensed spectrum in the 2.4, 5 and 60 GHz ranges. In the current work, we focused on leveraging Wi-Fi and allowing vehicles to decide which access network to use among three Wi-Fi 802.11n/ac/ad networks. We developed a Wi-Fi performance monitoring and decision-making system (WiPerf) that can: (i) collect throughput measurements and channel state information for multiple Wi-Fi networks; (ii) estimate throughput using passive measurements; (iii) predict the next 40 seconds of throughput; (iv) decide which network to use, based on the throughput forecasts and on the time it takes to switch to another network. The system was implemented in a real-world setup with two vehicles and two TP-Link Talon AD7200 access points. We performed an initial set of experiments to collect a dataset to develop estimation and forecasting models, and a second set of experiments to validate our decision-making system. For throughput estimation, we developed the UKF-SR model, a novel approach that combines Symbolic Regression with a non-linear recursive Bayes filter. Results showed that our solution was superior to NN, DT, and RF models, with these having higher RMSE values by at least 4.94 %, 38.09 %, and 9.59 % for 802.11n/ac/ad, respectively. Considering forecasting, we adapted previously developed spatial-clustering models, that forecast throughput based on a set of similar historic samples, and compared them with a time-series approach, using ARIMA and VAR models. VAR showed the best results among the time-series models, but they were still outclassed by spatial-clustering, considering both MAE and MASE values. We integrated the estimation and forecasting models with a decision-making algorithm. The algorithm schedules which networks the vehicle should use considering the time if takes to switch networks, to maximize the amount of data it can offload. Compared with the optimal solution, based on the real throughput measurements and without forecasting (perfect prediction), the results show that our approach has near-optimal performance with an average throughput of only 4.43 % less than the optimal one. K E Y W O R D S Vehicular networks, 5G system, Wi-Fi, machine learning, throughput prediction. c
RESUMO O futuro dos veículos passa por torná-los inteligentes: capazes de analisar o meio envolvente, detetar situações de perigo e agir de forma adequada. Para concretizar esta visão, os veículos devem recolher informação e partilhá-la com os restantes, permitindo que todos tenham conhecimento partilhado de um evento que os seus sensores ainda não detetaram. No entanto, alguns veículos podem não dispor de recursos computacionais suficientes para processar a informação e cumprir com os requisitos de baixos atrasos, tendo como alternativa o enviode dados para plataformas de computação de borda, ampliando as suas capacidades de processamento. Durante a transmissão, um veículo pode ter várias redes de acesso disponíveis e através da escolha da melhor rede pode maximizar a quantidade de dados que pode transmitir. Estas redes de acesso incluem a rede 5G e pontos de acesso Wi-Fi, que a operadora pode integrar no sistema 5G para tirar proveito de espectro não licenciado nas gamas dos 2.4, 5 e 60 GHz. No presente trabalho, focamo-nos em utilizar Wi-Fi e permitir aos veículos escolherem qual a melhor rede a utilizar entre três redes Wi-Fi 802.11n/ac/ad. Desenvolvemos um sistema de monitorização e tomada de decisão para redes Wi-Fi (WiPerf) capaz de: (i) medir a taxa de transmissão e recolher informação do estado do canal para várias redes Wi-Fi; (ii) estimar a taxa de transmissão com base em medições passivas; (iii) prever a taxa de transmissão para os próximos 40 segundos; (iv) decidir qual a rede a utilizar, com base na previsão da taxa de transmissão e no tempo que demora a trocar de rede. O sistema foi implementado num cenário real, com dois veículos e dois pontos de acesso TP-Link Talon AD7200. Realizamos um primeiro conjunto de experiências para recolher dados para desenvolver os modelos de estimação e previsão, e um segundo para validar o sistema de tomada de decisão. Para estimar a taxa de transmissão, desenvolvemos o modelo UKF-SR, uma nova abordagem que junta Regressão Simbólica com filtros Bayesianos recursivos e não-lineares. Os resultados mostram que a nossa solução teve um melhor desempenho do que os modelos NN, DT e RF, sendo que estes apresentam valores de RMSE superiores, de pelo menos 4.94 %, 38.09 % e 9.59 % para 802.11n/ac/ad, respetivamente. Para a previsão adaptamos modelos de clustering espacial, que preveem a taxa de transmissão com base num conjunto de amostras históricas, com uma abordagem baseada em séries temporais, usando modelos ARIMA e VAR. Os modelos VAR tiveram os melhores resultados dentro dos modelos de séries temporais, mas foram superados pelos modelos de clustering espacial tendo em conta as métricas MAE e MASE. Integramos os modelos de estimação e previsão juntamente com um algoritmo de tomada de decisão. O algoritmo planeia quais as redes que o veículo deve utilizar considerando o tempo associado a trocar de rede, para maximizar a quantidade de dados que poderá transmitir. Comparativamente com a solução ótima, baseada nas medições reais da taxa de transmissão e sem previsão (previsão perfeita), os resultados mostram que a nossa abordagem tem um desempenho quase-ótimo, atingindo uma taxa de transmissão média de apenas menos 4.43 % do que a ideal. d
e PA L AV R A S -C H AV E redes veiculares, sistemas de transporte inteligente, sistema 5G, aprendizagem automática, estimação de taxa de transmissão.
CONTENTS Contents iii 1INTRODUCTION 3 1.1 Motivation 3 1.2 Use Case 4 1.3 Objectives 6 1.4 Dissertation’s Outline 6 2S TAT E O F T H E A R T 7 2.1 ITS Architecture 7 2.1.1 ITS Applications 9 2.1.2 ITS Services/Facilities 9 2.1.3 Use Case ITS Architecture 19 2.2 5G Architecture 19 2.2.1 Non-3GPP Access 21 2.2.2 ATSSS 27 2.2.3 Edge Application Enabler Architecture 31 2.2.4 Monitoring Framework 34 2.2.5 Integrated Architecture 36 2.3 Related Work 38 2.3.1 Throughput Prediction in Mobile Nodes 39 2.3.2 Edge Offloading 40 2.3.3 Network Selection in Heterogeneous Wireless Networks 41 3W I -FI PERFORMANCE MONITORING FRAMEWORK 43 3.1 Motivation 43 3.2 Goals and Requirements 44 3.3 System Architecture 45 3.3.1 GPS Processing 45 3.3.2 Throughput Measurement 47 3.3.3 Channel State Monitor 48 3.3.4 Local Database 49 3.3.5 Decision Maker 50 iii
ACRONYMS 3GPP 3rd Generation Partnership Project. 5 5G NR 5G New Radio. 5 5G NR-U 5G New Radio Unlicensed. 22 AC Application Client. 32 ADRF Analytics Data Repository Function. 35,Glossary: ADRF AF Application Function. 31,Glossary: AF AF-DAF Application Function Data Analytics Function. 34 AI Artificial Intelligence. 3 AKA Authentication and Key Agreement. 25 AMF Access and Mobility Management Function. 20,Glossary: AMF ANDSP Access Network Discovery and Selection Policy. 22 AnLF NWDAF Analytics Logical Function. 35 API Application Programming Interface. 20 ARPF Authentication Credential Repository and Processing Function. 25,Glossary: ARPF ATSSS Access Traffic Steering, Switching, and Splitting. 27 ATSSS-LL ATSSS Low-Layer. 27 AUSF Authentication Server Function. 21,Glossary: AUSF BSA Basic Set of ITS Applications. 9 C-ITS Cooperative ITS. 16 C-V2X Cellular Vehicle-to-Everything. 7 CA Cooperative Awareness. 11 CAM Cooperative Awareness Message. 9 CAV Connected and Autonomous Vehicles. 3 CPM Cooperative Perception Message. 9,14 CPS Cooperative Perception Service. 14 CSV Comma-Separated Values. 49 DCC Decentralized Congestion Control. 10 DCCF Data Collection Coordination Function. 35,Glossary: DCCF DDP Device Data Provider. 10 DEN Decentralized Environment Notification. 13 DENM Decentralized Environment Notification Message. 11,13 x
ACRONYMS xi DN-DAF Data Network Data Analytics Function. 34 DOP Dilution of Precision. 49 DSRC Direct Short Range Communication. 7 DT Decision Tree. 63 EAS Edge Application Server. 31 EASDF EAS Discovery Function. 34 ECS Edge Configuration Server. 32 ECSP Edge Computing Service Provider. 31 EDN Edge Data Network. 31 EEC Edge Enabler Client. 32 EES Edge Enabler Server. 31 EKF Extended Kalman Filter. 73 EPC Evolved Packet Core. 22 ETSI European Telecommunications Standards Institute. 4 EWMA Exponentially-Weighted Moving Average. 39,40 FLOYD 5G/SDN Intelligent Systems For LOw latencY V2X communications in cross-Domain mobility applications. 3 FQDN Fully-Qualified Domain Name. 23 gNB Next-Generation NodeB. 20,Glossary: gNB GNSS Global Navigation Satellite System. 11 GPRS General Packet Radio Service. 19 GPS Global Positioning System. xiii GPU Graphical Processing Unit. 5 GTP GPRS Tunnelling Protocol. 25 GUTI Globally Unique Temporary Identifier. 23 HSDPA High-Speed Downlink Packet Access. 39 HTTP Hypertext Transfer Protocol. 20 IKE Internet Key Exchange Protocol. xiii IPsec Internet Protocol Security. 23 ITS Intelligent Transportation System. 3 ITS-S ITS Station. 7 KF Kalman Filter. 73 KPI Key Performance Indicator. 32 LADN Local Area Data Network. 31 LDM Local Dynamic Map. 9
ACRONYMS xii LTE Long Term Evolution. 5,7 MA Moving Average. 39 MDAF Management Data Analytics Function. 34 MDAS Management Data Analytics Service. 34 MEC Multi-access Edge Computing. 4 MFAF Messaging Framework Adapter Function. 36 ML Machine Learning. 3 MLR Multiple Linear Regression. 40,63 MNO Mobile Network Operator. 21 MPTCP Multi-Path TCP. 28 MTLF NWDAF Model Training Logical Function. 35 N3AN Non-3GPP Access Network. 23 N3IWF Non-3GPP Interworking Function. 22,Glossary: N3IWF N5CW Non-5G-Capable over WLAN. 26 NAS Non-Access Stratum. 23 NEF Network Exposure Function. Glossary: NEF NF Network Function. 19 NMEA National Marine Electronics Association. 45 NRF Network Repository Function. 21,Glossary: NRF NWDAF Network Data Analytics Function. 34,Glossary: NWDAF OAM Operations Administration and Maintenance. 35 OBU On-Board Unit. 7 PCC Policy and Charging Configuration. 29 PCF Policy and Control Function. 21,Glossary: PCF PCO Protocol Configuration Options. 32 PDU Protocol Data Unit. 20 PLMN Public Land Mobile Network. 22 PMF Performance Measurement Function. 27 PoTi Position and Time Management. 10 RAN Radio Access Network. 5,20 RAN-DAF Radio Access Network Data Analytics Function. 34 RAT Radio Access Technology. 43 REST Representational State Transfer. 20 RF Random Forest. 63 RNIS Radio Network Information Service. 34 RSSI Received Signal Strength Indicator. 48,63
ACRONYMS xiii RSU Road-Side Unit. 5 SA Security Association. 23 SBA Service-based Architecture. 20 SBI Service-based Interface. 20 SEAF Security Anchor Function. 23,Glossary: SEAF SIDF Subscription Identifier De-concealing Function. 25,Glossary: SIDF SLA Service-Level Agreement. 34 SMF Session Management Function. 20,Glossary: SMF SNIR Signal-to-Noise-plus-Interference Ratio. 40 SNR Signal-to-Noise Ratio. 48 SR Symbolic Regression. 65 SUCI Subscription Concealed Identifier. 23 SUPI Subscription Permanent Identifier. 23 SVR Support Vector Machine Regression. 40,63 TCP Transmission Control Protocol. xiii TNAN Trusted Non-3GPP Access Network. 22 TNAP Trusted Non-3GPP Access Point. 22 TNGF Trusted Non-3GPP Gateway Function. 22,Glossary: TNGF TWIF Trusted WLAN Interworking Function. 27 UDM Unified Data Management. 21,Glossary: UDM UDP User Datagram Protocol. xiii UE User Equipment. 20,Glossary: UE UKF Unscented Kalman Filter. 75 UPF User-Plane Function. 20,Glossary: UPF V2I Vehicle-to-Infrastructure. 7 V2V Vehicle-to-Vehicle. 7 V2X Vehicle-to-Everything. 7 VAM VRU Awareness Message. 16 VDP Vehicle Data Provider. 12 VRU Vulnerable Road Users. 4 WHO World Health Organization. 3 WLAN Wireless Local-Area Network. 22 WLANSP WLAN Selection Policy. 22
GLOSSARY ADRF The ADRF stores data analytics. The analytics can be directly sent, or the consumer may ask the ADRF to retrieve the information from another NF. 35 AF The Application Functions are generic components that may reside within or outside the boundaries of the MNO’s domain, and that provide additional services and features beyond what has been standardized. They interact with the SBA directly, if they are part of the SBA, or indirectly, though the NEF. 31 AMF The AMF handles the registration and session establishment procedures of a UE, and maintains the updated UE’s location. It is through the AMF that the UE may access and be accessed by other core NFs, e.g., the SMF. 20 ARPF The ARPF is a function located in the UDM which stores the UEs’ credentials, needed to register and authenticate a UE. 25 AUSF The AUSF authenticates the UEs based on information retrieved from the UDM, responses from the UE, and a given authentication method (i.e., EAP-AKA’ and 5G-AKA). 21 DCCF The DCCF coordinates the collection of data by and from the NFs, e.g., by subscribing to data on behalf of multiple NFs, instead of there being multiple redundant subscriptions. 35 gNB The gNB is the new 5G base station, replacing the eNB from 4G networks. It uses the 5G NR access technology to server UEs. It maintains an interface with the AMF, allowing UEs to access the core network. It also has connections with UPFs for forwarding user-plane traffic between UEs and external networks. 20 N3IWF The N3IWF is an NF that acts as a gateway for untrusted non-3GPP access and terminate the non-3GPP access network. They establish signalling tunnels with the UE for the transmission of control-plane traffic to the AMF, and user-plane tunnels for data traffic towards the UPFs. They maintain an interface with the AMF, and interfaces and GTP-U tunnels with UPFs. 22 NEF The NEF is a 5G core NF that provides an API for the interaction of external functions and the other 5G core functions. The NEF is used when an NF, e.g., the NWDAF, wants to consume the services provided by an external AF, and vice-versa. NRF The NRF provides services for the discovery of NFs, where an NF may query the NRF to discover a specific NF or AF to communicate with. The NFs must first register themselves, before being discovered and consumed by other NFs. 21 NWDAF The NWDAF is an NF that collects, processes and stores data analytics from NFs and other domains, and provisions them to other functions. The NWDAF is composed by AnLFs and/or MTLFs. 34 xiv
GLOSSARY xv PCF The PCF stores policies and configurations defined by the network operator, and provisions them to other functions, to guide their procedures and behaviors. It may, for instance, help to derive rules for performing ATSSS. 21 SEAF The SEAF is a security function located in the AMF that acts as a relay between the UE and the AUSF. 23 SIDF The SIDF is a security function located in the UDM and whose sole purpose is the de-concealment of the SUCI, which is used by the UE to hide its SUPI. 25 SMF The SMF is responsible for managing the UEs’ PDU sessions, by maintaining updated session information and controlling the allocated user-plane resources (e.g., IP addresses and tunnels) and UPFs. 20 TNGF Similar to the N3IWF, but for trusted Non-3GPP access, where the RAN is controlled by the MNO. 22 UDM The UDM stores the subscribers’ information and provisions it to other NFs for authentication and other procedures. It also contains both the ARPF and SIDF functions. 21 UE End-user device used to connect to the mobile network, either through 3GPP or Non-3GPP access networks. 20 UPF The UPF handles the processing and routing of data traffic, and is controlled by the SMF. The UPF acts as an anchor point for UE PDU and MA PDU sessions. The UPF also establishes user-plane GTP tunnels with the gNB and other UPFs. 20
1 INTRODUCTION This dissertation describes the work developed during a research grant supported by the Instituto de Telecomunicações, of which the scientific supervisor was Professor Ana Aguiar (IT-Porto), and was jointly supervised by Professor Bruno Dias (UMinho) and Professor Ana Aguiar. The research was developed as part of the 5G/SDN Intelligent Systems For LOw latencY V2X communications in cross-Domain mobility applications (FLOYD) project1, a Carnegie Mellon University (CMU) Portugal project led by Capgemini Engineering and in partnership with Altice Labs, Oporto’s School of Engineering (ISEP/IPP), and Vortex. The project focuses on combining Artificial Intelligence (AI) and Machine Learning (ML), edge computing and 5G networks to improve vehicular communications and applications. 1.1 MOTIVAT I O N Road accidents are the world’s prime cause of death in children, adolescents, and young adults, aged between 5 and 29 years, killing around 1.3 and injuring 50 million people every year [17,18]. In their Global Plan for Road Safety, the World Health Organization (WHO) establishes the goal of lowering the number of deaths and severe injuries by 50 % until 2030, recommending the building of a safe road system, combining administrators, designers, and road users [18]. This plan also highlights the role of technology in the safe road system, where vehicular applications and communications will protect drivers, pedestrians, cyclists, and other road users [18]. To accomplish the WHO’s goal by 2030, researchers and industry experts have prioritized road safety in the development of Intelligent Transportation Systems (ITSs) and Connected and Autonomous Vehicless (CAVs). While these technologies can be used to provide infotainment services for vehicle passengers and improve traffic efficiency, they are also the key to building a safe road system independent of laws and politics, and without requiring changes to current road designs. Road safety applications leverage the capacity of vehicles to perceive the road environment. With an array of advanced distributed sensors, vehicles can collect large amounts of data and process them to sense the surrounding environment, e.g., by detecting pedestrians and cyclists, identifying relevant road signs, and predicting dangerous events. However, the sensors themselves may be limited in their range, dependence on line-of-sight, and difficulty in adapting to changing environmental conditions. To counter these restrictions, vehicles must interact with each other and cooperate, exchanging information that allows all vehicles to maintain a shared un- 1 https://www.cmuportugal.org/large-scale-collaborative-research-projects/floyd/ 3
1.2. Use Case 4 derstanding of the road environment. A cooperative web of inter-connected sensors can augment the vehicles’ capabilities and create safer roads for all. By cooperating, vehicles can surpass individual constraints and perceive what they cannot yet sense. Through this approach, a new building block is introduced: communication. Vehicles need to communicate with other road entities to exchange information and form a network of cooperating nodes. Being placed in heterogeneous wireless environments, with many different communication technologies and access networks at their disposal, such as LTE, 5G, and Wi-Fi, vehicles may choose the communication technology that best suits their needs. By making a smart decision, vehicles may not only optimize their communications, but also improve the performance of vehicular applications. 1.2 USE CASE To optimize wireless communications in heterogeneous wireless vehicular environments, let us focus on the concrete case of VRU detection. The most susceptible participants in the road environment are pedestrians, cyclists, and motorcyclists, since they are not shielded nor safeguarded from collisions. These participants are also known as Vulnerable Road Userss (VRUs), and their protection must be ensured by the vehicles and road-side infrastructure. To detect VRUs, vehicles implement a web of on-board sensors such as LiDARs, radars, and stereoscopic cameras, where the resulting data is aggregated (sensor fusion) and processed by intelligent algorithms. The approach of each individual vehicle detecting and reacting autonomously to a VRU is prone to errors in cases where loss of line- of-sight and environmental conditions restrict the algorithms’ capabilities. To improve the vehicle’s perception of the road environment, the vehicles communicate and cooperate, to let others know when a VRU is detected. VRU detection is a road safety application, and, as such, any implementation must strive to lower the detection delay (or end-to-end delay) to a minimum, ensuring that the vehicle and driver can promptly react. The European Telecommunications Standards Institute (ETSI) suggests a maximum end-to-end delay of 300ms from the moment the vehicle’s sensors generate raw data until other vehicles’ act upon it [19], e.g., by warning the driver or activating the brakes. In [20], Pereira et al. demonstrates that data processing is the largest contributor for end-to-end delay in cooperative perception systems. To reduce the processing delay, vehicles could host high-performance GPUs, but these may be limited by energy and cost constraints. With the increasing computational demand and quality-of-service requirements of vehicular applications, the on-board processing units are put under significant strain. A much studied alternative to hosting on-board high-performance GPUs is to offload the processing of tasks to external servers with greater processing capabilities. Since it implies the transmission of data from vehicles to servers, this introduces a delay of transmission, which can be minimized by relying on Multi-access Edge Computing (MEC) servers. MEC can be used to circumvent the limitations inherent to traditional offloading with cloud computing by bringing the computing platform closer to the end devices. Following this paradigm, edge platforms are distributed throughout the edge of the radio access network, and in some cases even co-located with the base stations.
1.2. Use Case 5 Figure 1: Example scenario for our use case in project FLOYD. To access the edge resources, vehicles use the 5G network, which integrates multiple access technologies under the same network core. In the 5G system, the Radio Access Network (RAN) is composed by 3rd Generation Partnership Project (3GPP) access networks, in the form of 5G New Radio (5G NR) and Long Term Evolution (LTE) base stations, but it may also support the integration of Non-3GPP access networks, such as Wi-Fi. The inclusion of Non-3GPP networks allows the operators to exploit unlicensed spectrum in the 2.4, 5, and 60 GHz ranges, and to improve the profit gained from the Wi-Fi access points that some have already deployed as a feature for their customers. With multiple 3GPP and Non-3GPP access networks available, vehicles may choose which one has the better quality-of-service, to maximize the amount of data it can offload. In the FLOYD project, we consider a VRU detection use case and a road environment as illustrated in Figure 1, composed by vehicles and Road-Side Units (RSUs) equipped with video cameras; pedestrians, representing the VRUs; and Wi-Fi and 5G NR access networks. Vehicles use the cameras to capture video of the road environment and detect VRUs, for which it must rely on computer-vision algorithms. A vehicle can run these models locally using Graphical Processing Units (GPUs), or it can offload the data to MEC servers, using UDP or RTP. Vehicles and RSUs are connected to each other through direct short range communications, and to the 5G network through both 3GPP and Non-3GPP access networks. The vehicles take advantage of the available networks by choosing which one will allow them to offload the largest amount of data to MEC servers, focusing on throughput. To measure throughput the vehicles must perform active measurements, putting the access network under congestion. To avoid rendering the network unusable, they instead monitor the wireless channel
1.3. Objectives 6 and use passive measurements to predict throughput. If the predicted throughput is high enough, the vehicles will offload the video feed to MEC servers, which will process it on their behalf and try to detect VRUs. 1.3 OBJECTIVES Our goal is to take advantage of Wi-Fi access networks as an alternative to LTE and 5G NR for MEC offloading. Initially, we reviewed the relevant standards for our use case, to assess whether MEC offloading through Wi-Fi is viable, and if not, what can we change to support it. With this in mind, we focused on developing a monitoring and decision making system that can choose the best Wi-Fi network for MEC offloading in vehicular environments. This system adopts a modular approach, and can (i) collect Wi-Fi performance data; (ii) predict the throughput through each Wi-Fi access network; and (iii) decide upon which one to use, to offload data. The system was used to collect data and to perform a real-world demonstration, considering a scenario composed of two vehicles and Wi-Fi 802.11n/ac/ad access networks. 1.4 DISSERTATION’S OUTLINE This dissertation is structured into seven chapters, excluding the current one. Chapter 2 reviews the standardization regarding the ITS architecture, the 5G system, and the technologies needed for implementing the use case, as well as related work. Chapter 3 provides a description of the Wi-Fi Performance (WiPerf) system, which is capable of monitoring the access networks and choose how to offload data to edge servers. In Chapter 4 we present our physical real-world setup, describe how we collected a dataset of throughput measurements and PHY/MAC attributes, and analyze the data itself. In Chapter 5 we propose a novel approach to throughput estimation that may be implemented in embedded systems, and that can compete and even outperform classic ML models. Then, in Chapter 6 we tackle the problem of forecasting, using multiple forecasting models, from time-series to spatial-clustering. In Chapter 7 we describe the integrated decision making process, considering the models presented in Chapter 5 and Chapter 6, and demonstrate the decision making results by repeating the real-world experiments. To finalize, Chapter 8 presents the final remarks regarding the conducted work, our contributions, and the prospects for future work.
2.1. ITS Architecture 13 Figure 8: DEN service in the overall ITS-S architecture (adapted from EN 302 637-3 [5]). Decentralized Environmental Notification Basic Service The Decentralized Environment Notification (DEN) basic service is described in EN 302 637-3 [5] (which replaces TS 102 637-3 [26]), and was developed for the Road Hazard Warning BSA. The DEN service handles the processing of DENMs, similarly to how the CA service processes CAMs. While the CAMs are used to periodically transmit status information, the DENMs are used to advertise road hazards and abnormal traffic conditions. Applications can use the messages to warn the drivers of possible dangers, so that they can act accordingly. Since DENMs correspond to an event, their transmission may persist while the event is occurring, and, contrary to CAMs, they can be routed to other ITS Stations inside an area of interest. Through the life cycle of an event different DENMs are used: at the beginning, a "New DENM" is transmitted with the information of the event, such as the type, position, and detection time; the originating ITS-S can update the event by transmitting "Update DENM" with new information; when the event ends, the originating ITS-S sends a "Cancellation DENM"; if other stations can detect the termination of the event, they can send a "Negation DENM" to announce it. Figure 8 illustrates how the DEN service integrates the ITS-S architecture. The DEN service is implemented at the Facilities layer as an Application Support functionality. Upon receiving DENMs, the DEN service may update the LDM with new information. The ITS-S applications can interact with the DEN service, through its API or the FA-SAP (Facilities - Service Access Point) interface, to trigger the creation of DENMs, update the event information, or terminate the event. The events’ information, e.g., the detection time, position, and destination area (for DENM messages), is sent by the ITS-S application, but it may also tell the service to collect additional information from other Facilities services. Figure 9 presents the DENM format, as specified in EN 302 673-3 [5]. The DENM is composed by an ITS PDU Header and four containers: Management Container, Situation Container, Location Container, and the "À la carte" Container. The Management Container includes the event’s basic information such as the detection time, the position, and the actionID (the event’s identifier). The Situation Container describes the event by its type, the cause of the event, and a list of positions where the event has been previously detected. The Location Container, as the name suggests, details the event’s location and movement with parameters such as its speed, heading, the itinerary towards the event, and the road type. The "À la carte" Container was added to host additional data from the ITS-S applications, and may include parameters such as the external temperature and the lane
2.1. ITS Architecture 14 Figure 9: DENM structure (adapted from EN 302.637-3 [5]). position of the event, depending on the use case. Among the four containers, only the Management Container is mandatory, and information regarding the Situation and Location containers may be obtained from Facilities services. Cooperative Perception Basic Service Introduced in TR 103 562 [6], the Cooperative Perception Service (CPS) (previously known as Collective Perception Service) are being developed and will be published in TS 103 324, scheduled for release in December 2022. Since ETSI restricts access to the specification’s early draft, this section will focus on the information provided in TR 103 562 [6], bearing in mind that the "Cooperative Perception" designation will be used instead of "Collective Perception". While CAMs contain information related to the ITS station, and DENMs to events that occur in the environment, CPMs contains information related to external objects detected with sensors, cameras and other local sources. Apart from local sources, the CPMs can aggregate information from received CAMs, which can be relevant for increasing awareness in intersections and environments where ITS stations may not receive every CAM due to the short range of V2X communications. It is not feasible to send raw sensor data in CPMs, since it would unnecessarily increase channel load and force the other stations to redundantly process the data. Hence, the data should be processed locally by a data fusion mechanism, which converts the measurements of an object into state-space representations, i.e., mathematical representations that account for multiple dimensions. The object and respective representations are kept by the object fusion system in an object list that contains every object perceived by the ITS station (i.e., the LDM). The data can be processed at a low-level, by sensor-specific data fusion mechanisms, and at higher levels of abstraction. As Figure 10 suggests, the CPMs can include low-level and/or high-level object information, and in case of low-level data, the receiving ITS station can use it to compute high-level information. The decision to send low-level or high-level information is dependent on the use case.
2.1. ITS Architecture 15 Figure 10: Sensor data processing at different levels (retrieved from TR 103 562 [6]). Figure 11: CPM structure (adapted from TR 103 562 [6]). The CPM’s structure is illustrated in Figure 11, with an ITS PDU Header and several optional containers. The Management Container refers to the ITS station and contains the station’s type, reference position, among other parameters. The Station Data Container is mandatory if the station is a vehicle, but optional if it is an RSU. In case of a vehicle, the container holds dynamic information, and in case of an RSU, it contains references to information provided in MAP Messages (RSU messages outside the scope of this document). Some of the information in the Originating Vehicle Container matches that already sent by the CA service, but it is complemented by the orientation angle, pitch angle, roll angle, height and trailer data. The Sensor Information Containers are used by the station to inform of its sensory capabilities, and are sent at a low frequency. The Perceived Object Containers contain the detected objects and may include their position and a classification. The Free Space Addendum Container is used to update the confidence level for areas withing a sensor’s detection area (e.g., visibility being blocked by an object or foggy conditions).
2.1. ITS Architecture 16 VRU Services In TS 103 300-3 [8], ETSI defines a VRU basic service used by VRU ITS Stations for transmitting VRU Awareness Messages (VAMs), improving the capabilities of other ITS Stations for detecting and protecting VRUs. This specification is part of a multi-part deliverable, where TR 103 300-1 [27] describes VRU use cases and the VRU system, and TS 103 300-2 [7] focuses on the architecture and the requirements for the system. V RU S Y S T E M A N D U S E C A S E S In TR 103 300-1 [27], ETSI defines VRU Applications as applications in a VRUs or non-VRU ITS Stations which augment the awareness of ITS Stations regarding VRUs. The document also considers a VRU system as a Cooperative ITS (C-ITS), composed by VRUs and ITS Stations, vehicles or RSUs, running VRU applications. The VRUs in the system can be equipped with Personal ITS stations, allowing them to communicate with other stations and directly participate in the ITS. Otherwise, the VRU has an indirect participation, relying on being sensed by other stations. A VRU may also be equipped with an ITS receiver or transmitter, resulting in four VRU types: unequipped VRU, VRU-Tx, VRU-Rx, and VRU-St, with transmitter and receiver. The system can follow different configurations based on the use case at hand. ETSI identifies six categories of use cases: C AT E G O RY A :VRUs are equipped with ITS stations and may communicate with each other to generate warnings and advises. Use cases include the coordination of cyclists and pedestrians to share a sidewalk, and the avoidance of collision between VRUs. C AT E G O RY B :VRUs and vehicles are equipped with ITS stations and there is VRU-to-vehicle direct communication, where VRUs broadcast messages to warn vehicles of their existence. The protection of road workers, of VRUs at crosswalks, and of motorcycles in emergency braking situations fall into this category. The VRU can assess the risk of collision if it has the sufficient processing capabilities, but it may also continuously broadcast messages in hopes of being detected by a vehicle. C AT E G O RY C :Vehicles cooperate among each other to detect VRUs that are not equipped with ITS stations. The identified use case is the detection of VRUs by a vehicle and the dissemination of the detected object in DENMs or CPMs to other vehicles which may have not yet detected the VRU. C AT E G O RY D :RSUs detects VRUs through sensors and broadcasts standard messages to vehicles in risk of colliding with the VRU. The unequipped VRU detection in crosswalks is a use case that belongs to this category, and so does the detection of VRUs (equipped and unequipped) in a protected area, such as a pedestrian zone or a roadwork. C AT E G O RY E :The infrastructure detects equipped and unequipped VRUs through an ITS center in the cloud, and, based on the GPS position of the VRUs and the vehicles, it sends warning messages to avoid possible collisions. C AT E G O RY F :One or several RSUs monitor equipped VRUs and generate standard messages when a risk of collision is detected between a VRU and a vehicle. The difference between category D and F is that
2.1. ITS Architecture 17 in F the VRUs are detected because they are continuously broadcasting VRU standard messages. This scenario can be the case for protecting VRUs inside a protected area or for increasing traffic efficiency for prioritized pedestrians (e.g., wheelchair users, elderly and pregnant women). Categories C and D are particularly relevant for our use case of non-equipped VRU detection, which relies on the sensory capabilities of vehicles and RSUs to detect a VRU and propagate CPMs to warn other stations. The document’s description of category E indicates the need for a control center, e.g. a central ITS deployed in the cloud, to detect the VRUs, which also has some resemblances with the use of edge computing to process the raw sensor data from the vehicles’ cameras. If we choose to consider VRUs equipped with ITS stations we may also need to consider category B. From all the identified use cases, the UC-B2 "VRU crossing a road", UC-C1 "Signalling VRUs hidden by an obstacle", and UC-D2 "Non-equipped VRUs crossing a road" are the most similar to our use case. VRU ARCHITECTURE The TS 103 300-2 [7] is the second part of the deliverable and focuses on the VRU architecture needed to realize all the identified use cases of TR 103 300-1 [27]. This Technical Specification introduces the concept of VAMs: messages sent by equipped VRUs to advertise their existence and avoid collisions with vehicles. In J2945/9 [28], the Society of Automotive Engineers propose VRU-to-vehicle communication for improving awareness, using the Personal Safety Message. This initiative from ETSI can be seen as an attempt to harmonize standardization of VRU messages. Taking into account UC-B2, UC-C1, and UC-D2, from TR 103 300-1[27], both UC-B2 and UC-C1 make use of VAMs. Since in UC-B2 and other use cases many VRUs may be involved, the local ad hoc network may become congestioned to the point that messages are lost and QoS is degradated. To avoid congestion due to the volume of VRU messages generated, the VRUs can form a cluster and forward a single VAM, i.e. the cluster VAM. The VRU architecture imposes multiple functional and operational requirements, some of which are relevant to the use case: F C O M 09: When sending VRU-related messages (e.g., CPMs in UC-D2) the message must contain the VRU position, dimensions, velocity and direction. OSYS01: Since VRUs are smaller than vehicles, and their trajectories are much less predictable, the system’s positioning capabilities must exercise errors smaller than 50 cm. OSYS02: The VRU state should be accompanied by a confidence level. OSYS04: Since two pedestrians may be in the same vertical plane (e.g., one pedestrian at a bridge and another at the crosswalk under the bridge) the collision risk analysis must consider the altitude to avoid false positives. OSYS10: VRU ITS stations must support multiple standards and should aim for improved interoperability. OSYS13: A VRU warning message should only be sent if station has a confidence level higher than 95%.
2.1. ITS Architecture 18 Figure 12: VRU service in the ITS-S architecture (adapted from TS 103 300-2 [7]). OCOM01: A VRU ITS-S the following minimum transmission ranges: 25 m for VRU-to-infrastructure, 70 m for pedestrian-to-vehicle, 150 m for cyclist-to-vehicle, and 300 m for motorcycle-to-vehicle. OCOM02: Latency between the access layers of two ITS stations must be less than 5 ms under clear-sky and unobstructed transmission conditions. Figure 12 presents the VRU service integration in the ITS-S architecture. The service is placed in the Facilities layer, similarly to the DEN, CA and CP basic services, and consumes other services such as the PoTi, LDM, and DDP, among other services. It is used by collision risk analysis and avoidance and cooperative perception applications (alongside CPMs), among others. VA M S T RU C T U R E In TS 103 300-3 [8], ETSI details the functional aspects of the VRU service and the VAM structure and usage. Figure 13 illustrates the VAM format specified in 103 300-3 [8]. The structure starts with the ITS PDU Header, common among all ITS standard messages, followed by the "Generation Delta Time", which represents the time in milliseconds since the ITS Epoch. The Basic Container includes information regarding the originating VRU ITS-S, such as its type and position information considering a 95% confidence interval. The High Frequency Container is the first VRU-specific container and includes fast-changing information. The speed, heading, and longitudinal acceleration parameters are mandatory in the HF Container, but all others are optional and depend on the VRU profile (type of VRU). The Low Frequency Container holds static or slow-changing data, and include the VRU profile (i.e., pedestrians(1), bicyclists(2), motorcyclists(3), and animals(4)), and the size class (value from 0 to 3 indicating size considering the VRU profile). The Cluster Information and Operation Containers are used by the leaders and members of a VRU cluster to advertise information regarding the cluster and to perform cluster-specific operations. Finally, the Motion Prediction Container includes the VRU’s past locations, safe distance towards other road users, and the predicted trajectory, among other motion parameters.
2.2. 5G Architecture 19 Figure 13: VAM format (adapted from TS 103 300-3 [8]). Since the motorcycles (VRU profile 3) already transmit CAMs, instead of transmitting additional VAMs with possibly redundant data, they include a Motorcyclists Special Container in the CAM with additional VRU awareness parameters. 2.1.3 Use Case ITS Architecture The use cases of the FLOYD Project will culminate in the development of applications and services for platoon management and operation, collision risk analysis and avoidance, and VRU detection. These applications should comply with the ITS-S architecture and will make use of the standard messages and services, such as the CAMs, CPMs and DENMs. Figure 14 presents a set of example applications that may be needed and/or developed to realize our use case, and the facilities that shall support them. The Data Fusion component aggregates and processes data from sensors, that may be stored in the LDM or sent to other applications and facilities services. The Cooperative Perception application processes the data from CPMs and may request the transmission of CPMs upon receiving new information from applications or from the LDM. The VRU Detection component may process the video feed from cameras to detect VRUs, or offload it to edge computing services. These applications are supported by the services in the Facilities layer, and by the ATSSS and Network Monitoring components in the Networking & Transport layer. The ATSSS module performs ATSSS in the 5G system, while the Network Monitoring module measures QoS metrics such as the available throughput, which is required to decide which radio technology to use in offloading. 2.2 5G ARCHITECTURE The 5G architecture represents a shift in the paradigm of previous generations. While the 2G/3G’s General Packet Radio Service (GPRS) architecture defines message exchanges and procedures as interactions between services integrated in hardware devices (e.g., Servicing GPRS Support Node and Gateway GPRS Support Node), in 5G the core network services are defined as softwarized Network Functions (NFs), following the
2.2. 5G Architecture 20 Figure 14: ITS-S reference architecture for the thesis VRU detection and cooperative perception use case. Network-Function Virtualization paradigm. These functions are developed as micro-services that communicate with each other through Representational State Transfer (REST) Application Programming Interfaces (APIs). A base reference architecture is presented in Figure 15. The RAN is constituted by the User Equipment (UE) and the Next-Generation NodeB (gNB), which communicate through the air interface (Uu) to transmit uplink and downlink traffic. The gNB connects to the Access and Mobility Management Function (AMF), and acts as an intermediary relay node between the UE and the AMF. The AMF is a control-plane anchor point that the UE may use to access control-plane functionalities, and that the NFs may use to access an UE. The AMF also provides services for registering and authenticating the UE in the network, and for allowing the user to establish a Protocol Data Unit (PDU) session with external data networks. The Session Management Function (SMF) is an NF that manages the users’ PDU sessions and allocates the required resources for uplink and downlink traffic. While the SMF acts as the software that manages the session, the User-Plane Function (UPF) is responsible for routing the user-plane traffic between the UE and external networks. The NFs, such as the AMF and SMF, belong to the Service-based Architecture (SBA), which hosts the control plane functionalities of the 5G core network. In the SBA the NFs communicate through REST APIs, designated as the Service-based Interfaces (SBIs). At first glance, it may seem odd to use APIs and Hypertext Transfer Protocol (HTTP) messages between functions in the core network since these messages introduce an excessive overhead compared with previous generations’ control messages, where all bits mattered. However, this approach brings a much needed change for mobile networks to meet the current and future network demands: flexibility. With the SBA, the operators may develop custom Application Functions to improve network performance, monitoring, and management, beyond the standard functions. The standard functions themselves may also be more flexible,
2.2. 5G Architecture 21 Figure 15: Base reference architecture for the 5G system. with the possibility of existing multiple instances of the same NF. The added flexibility facilitates the support of novel use cases, such as vehicular communications and edge computing, and the improvement of features from previous generations, although at the expense of efficiency. Alongside the AMF and the SMF, the SBA contains various NFs, e.g., the UDM, AUSF, PCF, and NRF. The Unified Data Management (UDM) function replaces the 2G/3G’s Home Location Register and the 4G’s Home Subscriber Service, and it stores the subscribers’ data, which may, e.g., be used for registration and authentication procedures. The authentication procedures are handled by the Authentication Server Function (AUSF), based on information retrieved from the UDM. The Policy and Control Function (PCF) stores the configurations and policies defined by the operators, and provides them to the NFs, for them to know how they must behave. The Network Repository Function (NRF) supports the SBA’s flexibility by providing a service where NFs register themselves with an associated profile, and query it to discover other NFs, retrieving information needed for inter-NF communication. The 5G system may include functionalities that build upon the base architecture defined in Figure 15 and introduce additional functions, such as the: (i) the improvement of non-3GPP access from previous generations, enabling the use of Wi-Fi technology to access the core network; (ii) definition of a framework for data analytics, incorporating monitoring as a standard functionality; and (iii) support for a parallel session between 3GPP and non-3GPP access networks. These features are the cornerstones for the integration of the use case (of Section 1.2) in a 5G network, and shall be described in the following subsections. 2.2.1 Non-3GPP Access Mobile Network Operators (MNOs) must ensure that each device in the network receives an adequate service, which is difficult when users are concentrated in a small area. In these cases, the simplest option is to deploy more base stations, but this can increase interference if multiple stations use close frequency bands. Since the available spectrum for telecommunications is a limited and scarce resource, MNOs must carefully plan the
2.2. 5G Architecture 22 location of base stations and their frequency bands to optimize coverage and quality-of-service, and minimize adjacent and co-channel interference. If more spectrum becomes available, the operators can improve data rates and can better serve all their users. To this end, 3GPP has been studying and exploring the use of the unlicensed spectrum in the 2.4 GHz, 5 GHz, and 60 GHz bands, as part of the 5G New Radio Unlicensed (5G NR-U) study item [29,30]. With these frequency bands, the available spectrum for 5G communications increases by over 1 GHz; but efforts must be made to ensure coexistence with existing technologies such as Wi-Fi, which operates in the 2.4 GHz and 5 GHz bands [31]. More recently, 3GPP approved the study of unlicensed spectrum in millimeter-wave bands from 52.6 GHz to 71 GHz [32,33], which coincide with the 60 GHz band used in the 802.11ad technology. Multiple operators have already deployed Wi-Fi access points throughout cities’ infrastructures as a feature for their clients, many of which see very little usage. A crowdsensing study in the city of Porto in 2014 revealed that every street from a sample of 1103 had at least one visible access point installed [34,35]. If the operators use the distributed access points for users to connect to the mobile network, they can explore unlicensed spectrum with low additional investment and increase profits gained from these devices. The idea of integrating mobile networks and Wi-Fi for providing users with 3GPP and N3GPP access has been around since 3G, with papers discussing interworking techniques and architectures [36], and 3GPP’s TS 23.234 [37], from Release-6. The integration of N3GPP access was carried over to 4G and the 3GPP Evolved Packet Core (EPC), with 3GPP TS 24.302 [38], but the lack of flexibility of the GPRS and EPC monolithic architectures hampered the integration efforts [39]. With its increased flexibility, the 5G architecture can properly integrate N3GPP access and make way for innovative use cases and features. The N3GPP access, as standardized by 3GPP for the 5G system, is illustrated in Figure 16. The standards identify two types of N3GPP access: untrusted and trusted N3GPP access. The untrusted access assumes that the access point is owned by a third-party entity, while in trusted access the access point is controlled and managed by the MNO, thus requiring less security. As there is two types of N3GPP access, there is also the Non-3GPP Interworking Function (N3IWF) and the Trusted Non-3GPP Gateway Function (TNGF) nodes, for untrusted and trusted access types, respectively. Since in trusted access the access network belongs to the Public Land Mobile Network (PLMN), it is designated as a Trusted Non-3GPP Access Network (TNAN) and is composed by the TNGF and Trusted Non-3GPP Access Points (TNAPs). The N3IWF/TNGF maintains connections with the AMF and the UPF, for relaying control and user-plane messages between the UE and the 5G network. Through the AMF, the UE accesses the other core functions for authentication, registration, and PDU session establishment. Untrusted Non-3GPP Access For the UE to communicate with a data network it needs to discover a gateway node, register and authenticate itself with the network, and it must establish a PDU session. The following procedures are illustrated in Figure 17, and are specified in TS 23.502 [10] and TS 24.502 [40]. To discover and select an N3IWF node, the UE uses the Access Network Discovery and Selection Policy (ANDSP), which is constituted by the WLAN Selection Policy (WLANSP) to select an untrusted Wireless Local-
2.2. 5G Architecture 29 steering mode. Therefore, ATSSS-LL functionality with the Active-Standby steering mode is mandatory for non- MPTCP traffic when the MPTCP functionality is supported, and is mandatory for all IP traffic when MPTCP is not supported. The ATSSS steering functionalities and steering modes are specified in the ATSSS rules: a prioritized set of rules sent by the SMF to the UE to govern how the UE will make ATSSS decisions for the uplink traffic. Besides the steering functionalities and modes, the ATSSS rules may also include an optional Steering Mode Indicator which specifies whether the UE can change the default parameters of the “load balance” steering mode. This indicator has two types: (a) Autonomous load-balance indicator, where the UE may ignore the percentages provided by the network and can determine the percentages by itself; and (b) the UE-assistance indicator, where the UE determines how uplink traffic is split and informs the UPF. The UE-assistance indicator is used for the UE to suggest a strategy to the UPF, while the autonomous load-balance indicator is used for the UE to control traffic splitting. MA PDU Session Establishment To establish an MA PDU Session, the UE must be registered beforehand via 3GPP access, following the procedure defined in clause 4.2.2.2.2 of TS 23.502 [10], and/or non-3GPP access (aforementioned procedures). The UE can establish an MA PDU Session if only registered on one access and may, later on, register itself on a second access and establish further user-plane resources. For simplicity’s sake, in explaining the procedures we will assume that the UE is registered on both accesses prior to MA PDU session establishment. Following registration, the UE initiates the MA PDU Session establishment by sending a PDU Session Establishment Request to the AMF, as illustrated in Figure 20. The request may be sent through either access network, although we will consider that it is sent via 3GPP access. In the request, the UE specifies the Request Type as being “MA PDU Request” and includes its ATSSS Capabilities (i.e., set of steering functionalities and steering modes). Upon receiving the MA PDU Session Establishment Request, the AMF selects an SMF with MA PDU session and ATSSS support, and sends a Nsmf_PDUSession_CreateSMContext Request message, asking the SMF to create a new SM Context for the session. The SMF retrieves additional information from the UDM and Policy and Charging Configuration (PCC) information from the PCF to verify that the session is allowed and to derive the ATSSS and N4 rules which will dictate how the UE and UPF perform ATSSS. After retrieving the required configurations, the SMF chooses an MA PDU session-compatible UPF and establishes an N4 session, sending a request with the N4 rules. The UPF creates two N3 tunnels for the uplink traffic from 3GPP and Non-3GPP access networks, activates the PMF and ATSSS-LL, and/or the MPTCP proxy functionalities, and sends back addressing information to the SMF. With the N4 session and the N3 tunnels in place, the SMF sends a Namf_Communication_N1N2MessageTransfer message to the AMF containing a “MA PDU Session Accepted” notification and an indication that it must be sent through the 3GPP access (the access network used to establish the session). The AMF sends it to the RAN and UE, which then set up the resources needed for the session (e.g., IPsec Child SAs for user-plane traffic in Non-3GPP access). In this message, the UE receives the ATSSS rules derived by the SMF and the information
2.2. 5G Architecture 30 Figure 20: MA PDU session establishment procedure based on clauses 4.3.2.2.1 and 4.22.2.1 of TS 23.502 [ 10 ].
2.2. 5G Architecture 31 Figure 21: Reference architecture for enabling edge applications described in TS 23.558 [11]. needed for the ATSSS-LL and MPTCP. With the access network resources established, it sends a response to the AMF indicating that the session has been set up and that it will start sending uplink traffic. The AMF updates the SM Context with the SMF, which then updates the N4 session for the UPF to start transmitting downlink traffic. After the MA PDU Session is established and the user-plane resources have been set up for 3GPP access, the SMF sends a Namf_Communication_N1N2MessageTransfer message to the AMF with N2 SM Information destined to the Non-3GPP access network. This message initiates the establishment of the user-plane resources for N3GPP access, after which the UE may fully utilize the ATSSS functionalities. 2.2.3 Edge Application Enabler Architecture Edge computing was initially defined by the ETSI ISG MEC, but it was re-defined for 5G networks by 3GPP in TS 23.548 and 23.558 [45,11]. These technical specifications present an architecture for enabling edge services and applications, which is illustrated by Figure 21. The edge application-enabling architecture is composed by the UE, the 5G network, and the Edge Data Network (EDN) domains. The EDN is a data network that may be deployed locally, as a Local Area Data Network (LADN), by an Edge Computing Service Provider (ECSP) and use that may the LADN service area to restrict access. Both the UE and the EDN include applications that shall exchange messages and data, and edgeenabling services, which are responsible for supporting the applications. In the EDN the Edge Application Server (EAS) are edge Application Function (AF)s that provide services for UEs - such as computer vision processing services for VRU detection - and may be statically instantiated by the ECSP. The Edge Enabler Server (EES) is a MEC platform that manages the EAS instances, which must
2.2. 5G Architecture 32 register themselves with the EES. The EES also handles the registration of UEs in the EDN and follows security procedures to check if the UE is authorized to access certain resources. In the UE, the applications which will consume the EAS services are the Application Client (AC), and they rely on the Edge Enabler Client (EEC) to perform the required procedures. The EEC is the counterpart of the EES and they exchange information needed for the UE to use the edge services, e.g., security information for the UE registration with the EES. For the UE to access the edge resources, it must discover their location among multiple EDNs which may be within servicing range, but may not have the desired EAS. The Edge Configuration Server (ECS) was introduced as a way to support EDN discovery and for provisioning the UE with configuration information needed to connect itself with an EES. The ECS may be deployed by the MNO in the MNO’s domain, or by an ECSP in a 3rd party domain. The UE has to acquire the configuration information related to the ECS, for it to gather the information needed to discover an appropriate EES. Following clause 8.2.3.1 of TS 23.558 [11], the UE may gain that information through multiple methods: pre-configuration; static configuration by the user; gathered by edge-aware applications; derivation based on the Home-PLMN identifier; or provisioning by the MNO. In last method, the UE receives the information from the SMF during PDU session establishment or modification via Protocol Configuration Options (PCO), and it may be used whether the ECS was deployed by the MNO or by an ECSP [45]. After discovering an ECS, the EEC sends a Service Provisioning Request where it includes the UE identifier, location, the AC profile information, and security credentials. The ECS verifies if the EEC is authorized to use the service and identifies EES instances based on the information. The ECS responds with a Service Provisioning Response, containing the EDN identification, service area, and the required information to establish a connection with the EES (e.g., URI, IP address). The response may contain one or multiple EESs, allowing the EEC to choose which one to connect to 2. After selecting an EES, the EEC must register in the platform to access the edge computing services. To register, the EEC sends an EEC Registration Request to the EES with security credentials3and AC profiles. The EES validates the credentials and verifies if it can satisfy the requirements defined in the AC profiles, after which it creates an EEC Context and sends the EEC Context ID and the Registration ID in the EEC Registration Response. Following the EEC Registration with the EES, the EEC must find the available EAS instances with the EAS Discovery service, and it may send a EASDiscovery Request, which includes the EEC identifier (EECID), security credentials, EAS Discovery filters, and the UE location. The EES verifies the security credentials to check if the EEC is authorized to discover the requested EASs and it uses the provided filters (if any) with the UE location to gather the available EAS instances. The information regarding the EAS endpoints are returned in a EAS Discovery Response message, which may also include additional information regarding the capabilities of the EAS such as the service area and Key Performance Indicators (KPIs). If the EES fails to discover an EAS that 2 As far as we know, this decision process is not defined in the standards and is left to implementation. 3 The security credentials are obtained by following the procedures defined in TS 33.558, which, at the time of writing the current document, was still incomplete.
2.2. 5G Architecture 33 Figure 22: Edge computing application discovery and connection, based on TS 23.558 [11].
2.2. 5G Architecture 34 matches the requirements, it may trigger the EAS management system to dynamically instantiate an EAS, before returning its information in the response message. In TS 23.548, the 3GPP presents the EAS Discovery Function (EASDF), which supports the discovery of EAS instances based on their FQDN through the use of DNS servers. The EASDF is an alternative method that complements those provided by the ECS and EES, to discover EAS instances. 2.2.4 Monitoring Framework The 5G system will provide services for IoT devices, vehicles, and regular mobile users, while respecting their network performance requirements, defined as Service-Level Agreements (SLAs). The diversity of user devices and their respective SLAs, as well as the increasing number of subscribers and businesses dependent on the mobile network, present major challenges to the operators. Instead of resorting to the over-provisioning of resources to match the users’ demands, which may result in lower profits, the operators are focused on improving the efficiency of the network. The first step in this process is the monitoring of end-to-end network performance, across the multiple domains of the 5G system. In Release-16 TS 23.288 [46], 3GPP describes the Network Data Analytics Function (NWDAF) as a 5G NF that can collect data from other NFs and process it to derive useful analytical information. However, the NWDAF only retrieves information from each core network NF, and is restricted from directly collecting detailed analytics from other domains, e.g., RAN network performance data needed for the efficient management of radio resources. In the release 3GPP also defines the Management Data Analytics Function (MDAF), responsible for providing Management Data Analytics Services (MDASs) that provide analytics and KPIs related to network management in multiple domains (e.g., RAN, CN). In [12], Pateromichelakis et al. propose a new data analytics framework for end-to-end cross-domain monitoring and data collection in the 5G system. The framework is illustrated in Figure 23 and it builds upon the Release-15 and Release-16 standards. It includes a Radio Access Network Data Analytics Function (RAN-DAF), aData Network Data Analytics Function (DN-DAF), an Application Function Data Analytics Function (AF-DAF), and both intra-domain and inter-domain message buses. The three new data analytics functions extend the framework to multiple domains and increase the network’s end-to-end monitoring capabilities, while the message buses promote cross-domain interactions and cooperation. The RAN-DAF, DN-DAF and AF-DAF are critical components that reflect the need for domain-specific data collection, and the provisioning of data access services to other domains, to achieve end-to-end monitoring. While these functions have yet to make their way into standardization, multiple researchers have advocated for their integration, particularly for the RAN-DAF entity. In [47], Ferrus et al. promote the RAN-DAF component as platform for data analytics applications to collect near-real-time data from the RAN nodes. The applications may include data storage, statistical processing, and the training and exploitation of machine learning models to predict RAN behaviors. Jain et al., in [48], describes the importance of RAN-DAF for maintaining adequate QoS for real-time healthcare systems, where wearable devices use the network to transmit patient biometric data for performing prognostics and predicting diseases. The researchers in [49] turn to the MEC Radio Network
2.2. 5G Architecture 35 Figure 23: Framework for data analytics functions in the 5G system (adapted from [12]). Information Service (RNIS) to access information regarding the current radio conditions, instead of using the RAN-DAF. The MEC RNIS is a component of MEC platforms, described in [50], that may provide similar services as the RAN-DAF, and the harmonization of the MEC RNIS with the existing 3GPP standards may benefit the data analytics framework of the 5G system. Starting in Release-17, the data analytics framework has been further enhanced with improvements to the NWDAF components [46] and new functions. In this release the NWDAF may subscribe to receive event notifications from the AMF, SMF, and other NFs, it may retrieve information from repositories (e.g., UDR via UDM) or from the NRF, and it provisions the analytics to consumers. The system may leverage multiple distributed NWDAF instances, each with different Serving Areas and specialized on different analytics, - specified by a set of Analytics IDs - which may be aggregated by a centralized Aggregator NWDAF. The NWDAF instances are also able to draw information from the Operations Administration and Maintenance (OAM), including RAN performance measurements and 5G end-to-end KPIs. Therefore, the decentralization of NWDAF into smaller and specialized instances draws closer with the framework proposed in [12], and the RAN-DAF component can be realized as a distributed NWDAF instance focused on retrieved 5G RAN analytics from the OAM. The goal behind the data analytics framework is to gather information which can be used to train and run ML models, which, in turn, can help improve the network’s performance. In Release-17, the NWDAF fulfills the roles of gathering the data and of hosting the ML models which will consume it to create valuable insights. More concretely, TS 23.288 [46] decomposes the NWDAF component into an NWDAF Analytics Logical Function (AnLF), to process and provision analytical information, and a NWDAF Model Training Logical Function (MTLF), to train and provide ML models. An NWDAF instance may contain one or both logical functions. The Release-17 also includes two new functions: the Data Collection Coordination Function (DCCF), which increases the flexibility of data collection procedures; and the Analytics Data Repository Function (ADRF), for retrieving and storing analytics. With the distribution of NWDAF instances, there may be multiple instances subscribed to receive the same information from an NF. The DCCF may coordinate the collection of data by subscribing to NFs on behalf of the multiple NWDAFs, and receiving a single piece of information which may
2.2. 5G Architecture 36 Figure 24: Example of NWDAF, ADRF, DCCF and MFAF coordination. be sent to multiple instances. The data can be directly collected by the DCCF, or by a Messaging Framework, in which case the DCCF provides services to Data Consumers and interacts with the Messaging Framework for it to deliver the data. The Messaging Framework is outside the scope of 3GPP standards, but the DCCF may interact with a Messaging Framework Adapter Function (MFAF), specified in TS 23.288 [46], which provides 3GPP-defined services for using the Messaging Framework’s features. The ADRF has the simpler purpose of retrieving and storing data and analytics, and allowing their consumption through defined services to authorized data consumers. Figure 24 exemplifies how the components may interact with each other to collect analytics. In this example, the NWDAF intends for the ADRF to retrieve and store analytics, which may be used to train a ML model. The NWDAF asks the ADRF to retrieve and store information from a specific Data Source, regarding a recurring event. The ADRF may use the DCCF to subscribe to the information, and the DCCF relays the request, specifying that the data should be sent to the Messaging Framework. When using the Messaging Framework, the DCCF also has to provide it with configuration information on how to handle the data it receives from particular Data Sources. The Data Source sends notifications when an event occurs, and the Messaging Framework sends the information to the configured Notification Endpoints, i.e., the ADRF. 2.2.5 Integrated Architecture For a vehicle to choose and offload data through 3GPP and/or N3GPP access networks to an edge server, the 5G network must support the aforementioned 5G features. To this end, Figure 25 exemplifies how a vehicle may use the features to realize our use case. In the sequence diagram in Figure 25, the UE first authenticates and registers through both 3GPP and N3GPP access networks, which is required to create an MA PDU Session and use ATSSS. Once registered, the UE queries the 5GCN NFs (i.e., an ECS within the MNO’s domain) to discover an EDN that can suit its needs. With the EDN information collected from the 5GCN, the UE establishes an MA PDU Session with the EDN and follows the procedures described in Subsection 2.2.3 to connect to the EASs. Currently, in version 17.2.1 of TS 23.502 [10], clause 4.22.2.1 specifies that the AMF should reject requests for MA PDU Sessions towards an LADN. The statement regarding the rejection of MA PDU Sessions for LADNs was
2.2. 5G Architecture 37 Figure 25: UML sequence diagram example of interactions between a vehicle’s UE, EDN, and 5G network, to support MEC offloading in 5G NR and Wi-Fi access networks.
2.3. Related Work 38 added following CR (Change Request) 2515 for TS 23.501, since clause 5.6.5 of the same standard mentions that the "LADN service applies only to 3GPP accesses", and area control cannot be enforced in MA PDU Sessions when the UE is in 3GPP idle mode. This restricts the use of ATSSS for accessing edge resources, since it is expected that EDNs will be deployed as LADNs. However, experts from Samsung and Qualcomm Incorporated have presented CR 25654and 26605for TS 23.501, in which they request the possibility of an AMF allowing MA PDU Sessions for LADN services based on its configuration. Considering that the CRs are agreed upon by 3GPP and that ATSSS can be used to access an EDN, the UE may gather network monitoring and throughput data from the ADRF, or from an EAS. If the UE uses the data analytics framework of the 5GCN, the ADRF will autonomously collect data from the RAN and UEs, such as throughput measurements, and make them available to the UEs. A UE may request the data and use it to predict its current throughput. A more flexible alternative is for the UE to collect and aggregate the data, and send it to an EAS in the EDN for storage. The UE has greater freedom over which metrics it collects, and may retrieve information that may be irretrievable by other entities, such as its precise GPS coordinates. The first alternative may be improved upon with UE-assisted data collection, where UEs may aggregate and process data from its sensors and store them in the ADRF, which can coupled them together with other metrics retrieved from the RAN. The two alternatives can also be merged together, with the EAS retrieving information from the ADRF which can be coupled with the measurements received from the UE, or it can send the measurements to the ADRF for it to process and aggregate. After receiving the information, the UE shall predict the throughput with a history-based algorithm. If a ML- based approach was considered instead, the same data collection scheme can be used to train ML models in NWDAF MTLF instances or in the edge servers. Instead of collecting data and locally processing it to predict the throughput, the UE may request the ML models to predict the throughput by sending a set of input features. The ML-based method may also be hosted locally in each UE, in which case the UE is responsible for taking measurements and collecting metrics from the network to train the model, and to use as input to predict the throughput. Likewise, in formula-based methods the UE only has to collect the variables needed and to perform a local computation which, in principle, is simpler and faster than an ML model prediction. After predicting the throughput, the UE uses the prediction to choose which access network to use in offloading sensor data to the edge servers for VRU detection/protection applications. 2.3 RELATED WORK In this section we highlight the most relevant literature regarding the research topics at hand. Firstly, we analyze the state-of-the-art of throughput prediction methods for mobile nodes. That is followed by the review of research on the use of edge computing for offloading data and tasks. 4 http://netovate.com/doc-search/?fname=S2-2100371 5 http://netovate.com/doc-search/?fname=S2-2100892
3.3. System Architecture 45 CHANNEL STATE INFORMATION COLLECTION:Periodically poll passive measurements and parameters accessible through the wireless interface drivers, such as RSSI and the channel busy time. G P S DATA P R O C E S S I N G :Process GPS NMEA messages to maintain up-to-date information regarding the vehicle’s position, speed, heading, among other parameters. WiPerf must use channel state information and GPS data to estimate throughput using an estimation model, and then combine the data (and the throughput measurements, if enabled) in a local georeferenced database. Using a georeferencing allows us to explore mobility-based forecasting methods, such as those proposed in [35]. In wireless networks, signal attenuation and loss of line-of-sight may result in packet loss and, consequently, in differences between the number of bytes sent by the transmitter and those received by the receiver. In WiPerf the throughput is measured up-link, by having the vehicle transmit as much data as it can to an access point, representing an offloading scenario. Therefore, a feedback mechanism must exist between the access point and the vehicle, where the access point informs the vehicle of the actual throughput, allowing it to store the information in its local database. Apart from up-link and down-link, the transport protocol used for transmitting traffic can also influence throughput. For instance, while TCP and UDP traffic may be sent through the same wireless channel, they will be processed differently by the operating system. Among TCP and UDP, the latter is typically used for video and other time-sensitive applications, while the former is used by applications that require lost data to be re-transmitted. Since UDP is the most appropriate for our use case, this must be the protocol used by the throughput measurement module. 3.3 SYSTEM ARCHITECTURE The WiPerf system is composed by a stationary Access Point — corresponding to an RSU co-located with a MEC platform (edge computing servers) — and a Mobile Client, as shown in Figure 27. Both are equipped with GPS Receivers, to keep themselves time-synchronized. 3.3.1 GPS Processing Both the Mobile Client and the Access Point are equipped with a GPS device, composed by an antenna that receives GPS signals, and a receiver that processes said signals to calculate the node’s coordinates and extrapolate mobility information. The GPS receiver then transmits the information to our GPS module, where it is processed and made available to the remaining components. The GPS receiver uses the National Marine Electronics Association (NMEA) standard for sending messages to the GPS module. NMEA is a standard format for GPS data supported universally by GPS devices, independently of manufacturer and target constellation. It includes multiple message types, each containing different pieces of mandatory and non-mandatory information that needs to be merged for it to represent the current position and mobility state.
3.3. System Architecture 46 Throughput Measurement Mobile Client Local Database Access Point GPS Network Perf. Data GPS Receiver Data Sender Feedback Receiver Channel Monitor Data Receiver Feedback Sender GPS GPS Receiver GPS Data Random UDP Data Rx Throughput Feedback Throughput RAN Metrics Decision Maker Figure 27: WiPerf logical and physical architecture. Red arrows depict the direction of data flows within the system; green arrow represents the AP selection decision. Below is an example of an NMEA Recommended Minimum Specific GPS/Transit Data message. The first field ($GNRMC) indicates with its first two letters the corresponding constellation (e.g., GP for GPS, GL Galileo, and GN for multi-constellation devices), and the remaining three denote the message type, in this case RMC corresponds to "Recommended Minimum Specific GPS/Transit Data". The second field contains the current time in a "HHMMSS.ss" format and the tenth field gives us the date in "ddmmyy", thus the message corresponds to 23:49:07.26 July 20 2022. The fourth to seventh fields represent the latitude and longitude coordinates, while the eighth denotes speed in knots. The last field is a mandatory checksum. $GNRMC,234907.26,A,4110.68601,N,00835.68074,W,0.529„200722„,D*73 Our GPS module processes the NMEA messages to derive the vehicle’s position and mobility state, as well as GPS time information, and stores it as a structure in shared memory. Every time a new message is received, the module updates the shared memory segment. Typically, commodity GPS receivers operate at 1 Hz frequency, but our module is frequency-agnostic and can support higher and lower frequencies. The Haversine formula is used to calculate the distance between vehicle and access point in meters. This formula is used to determine the great-circle distance between two points located in the surface of a sphere. Since the Earth is not perfectly spherical, there are more accurate models to determine the geographical distance between two sets of coordinates, but the Haversine is a near-perfect fit for short distances of less than 1 km. The formula is expressed in Equation 1. d=haversine(lat1, lon1) = R×c c=2·atan2(√a,√1−a) a=sin(lat0−lat1 2)2+cos(lat1)·cos(lat0)·sin(lon0−lon1 2)2 (1) where Ris Earth’s radius in meters, lat0and lon0are the constant coordinates of the stationary access point, and lat1and lon1are those of the vehicle, expressed in radians.
3.3. System Architecture 47 0 31 Number of Networks Network ID Timestamp (ms) Throughput (Kbps) Entry t (12 B) Entry t−1 Entry t−2 Network Entry (40 B) Other Networks ... Figure 28: Throughput feedback message format. Other modules may access the GPS information through its shared memory, to synchronize themselves with the GPS clock or to retrieve the current mobility state. 3.3.2 Throughput Measurement WiPerf actively measures throughput by having the vehicle transmit pseudo-random UDP datagrams to the AP node. These measurements are conducted simultaneously across all wireless interfaces, allowing for a reliable comparison among different access networks. We rely on up-link UDP throughput measurements to accurately represent our use case, where a vehicle offloads video data to edge servers. The Mobile Client uses the Data Sender module to measure the throughput by transmitting as much data as it can through multiple interfaces in parallel. The packets are received by the Data Receiver module in the AP, whereupon it updates a set of counters that register the number of bytes received in each interface. These counters are used to calculate the throughput, which is given by the amount of data that makes it successfully through to the AP per unit of time. The throughput is computed in the AP and needs to be present in the Mobile Client. The Feedback Sender module is responsible for sending throughput in feedback messages to the Mobile Client. When the Feedback Receiver module receives the feedback messages it aggregates the throughput values with GPS data and stores them in the vehicle’s local database. The feedback messages follow the structure outlined in Figure 28. A message has information regarding multiple networks, with each network organized into blocks of 40 B. Each block begins with a Network ID, identifying the corresponding network, as is followed by three pairs htimestamp,throughputi, pertaining to the current instant and the previous two. This is to increase the reliability and prevent data losses from short-term disconnections.
3.3. System Architecture 48 Considering 802.11n/ac/ad Wi-Fi networks, each wireless interface exhibits very different transmission ranges, with 802.11n having the longest and 802.11ad the shortest range. To further increase the probability that a message is properly delivered, we send the feedback messages through the interface with longest range, i.e., 802.11n interface, which acts as an "umbrella" network. This simple approach is effective when the three networks are co-located. Additionally, in more complex scenarios, Feedback Sender could send the same feedback message through all interfaces. It could also send the same message multiple times within a time-frame, e.g., if throughput is computed at 1 Hz, feedback messages could be sent at 3 Hz. 3.3.3 Channel State Monitor While measuring throughput and processing feedback messages, the Mobile Client uses the Channel Monitor module to gather PHY/MAC and network-level metrics from the wireless interfaces, such as Received Signal Strength Indicator (RSSI) and Signal-to-Noise Ratio (SNR). These are passive measurements kept by the wireless interface drivers and can be accessed directly — through system calls to the drivers’ APIs — or indirectly — through higher-level applications and services. Considering direct access, in Linux systems the two main methods to collect information are through ioctl2system calls, or through the nl802113user-kernel interface, which uses netlink messages to communicate with interface drivers. Both methods allow for a user process to gather data from kernel processes and drivers, but nl80211 is better suited for retrieving bulks of data asynchronously and was focused specifically for wireless interfaces, while ioctl is preferred to control a generic device. Therefore, we chose to rely on the nl80211 interface. Documentation for how to use the nl80211 interface and how to send, receive, and handle netlink messages is scarce. However, the popular iw4utility tool uses nl80211 and is seen as an example. Thus, the module’s code is based on iw tool, and gathers data by sending periodic netlink messages to each interface’s driver. After compiling the current channel state, the data is aggregated with the GPS state and stored on the local database. The channel state information and the throughput measurements are not aggregated by their individual modules and are, instead, merged together in the database. But to merge them, we need to ensure that they pertain to the same instant. To address this requirement, we use the GPS clocks to synchronize the Channel Monitor in the Mobile Client with the Feedback Sender in the AP. This means that both modules remain dormant, and activate at the same time, ensuring that the throughput is calculated at the same time that the channel state information is gathered. It is also in the Channel Monitor that the estimation model is implemented. This is an algorithm that estimates throughput with, e.g., a regression model, using the channel state information and GPS data. The estimated throughput is also combined with the remaining data and stored in the database. 2 https://man7.org/linux/man-pages/man2/ioctl.2.html 3 https://wireless.wiki.kernel.org/en/developers/documentation/nl80211 4 https://wireless.wiki.kernel.org/en/users/documentation/iw
3.3. System Architecture 49 history_id location_id (FK) network_id throughput channel_info rssi speed orientation moving hdop vdop pdop timestamp location_id latitude longitude HISTORY LOCATION GPS State Information Channel State Information Throughput Figure 29: Mobile Client’s relational database model. 3.3.4 Local Database In the system developed by Azevedo et al. [13], data is stored in an external History Station that the vehicles had to query to predict throughput. We opted for a simplified approach by including a local database in the Mobile Client. With a local database, the Mobile Client is able to easily aggregate throughput measurements, channel state information and GPS data into a ready-to-use dataset.. We decided to use a PostgreSQL relational database as the local database, and the corresponding data model is depicted in Figure 29. It is composed by a Location table, where unique combinations of latitude and longitude are used as georeference indices, and by a History table that stores throughput, channel state and GPS information. The channel state information is organized as Comma-Separated Values (CSV) inside the channel_info column, and the RSSI value is copied into its own column so that it can be easily accessed and processed. The GPS mobility information includes the vehicle’s speed, orientation, whether the vehicle is moving or not (based on its speed), and Dilution of Precision (DOP) values. The DOP values reflect how errors in measurements may lead to errors in the final state estimate. The HDOP and VDOP correspond to the dilution of precision in horizontal and vertical planes, and PDOP consists of a merge of HDOP and VDOP. While both the Channel Monitor and Feedback Receiver modules bind their data with GPS mobility information, it is in the database that throughput and channel state information are aggregated. For them to add a new sample to the database, one of them must create a new entry in the History table, leaving some of its attributes empty, and the next module fills the information gaps. This is implemented through an SQL INSERT command if the entry does not yet exist, or an UPDATE otherwise. When both modules access the database at the same time, the database will grant a ROW EXCLUSIVE lock to one of the modules, ensuring that the first module does an INSERT and the second an UPDATE operation.
3.3. System Architecture 50 3.3.5 Decision Maker WiPerf leverages a Decision Maker module that predicts future throughput and schedules which actions the vehicle must take to maximize the amount of offloadable data. To predict future throughput, the module relies on historic samples stored in the database. For instance, this module can implement one of the spatial-clustering forecasting models proposed by Meireles et al. in [35], which rely on a georeferenced database with additional mobility data, such as speed, direction, and distance. With the predicted throughput, the Decision Maker must decide when it is beneficial to switch networks, considering the associated downtime/cost. The Decision Maker models and algorithms will be explored in detail in Chapter 5,Chapter 6, and Chapter 7. 3.3.6 Configuration WiPerf relies on information stored in a configuration file to configure its modules. The configuration file also allows us to use WiPerf in multiple setups that may require different configurations. The structure of the configuration file is as follows: [gpsinfo] shm-path = /wiperf-gpsinfo # path to shared memory segment [mygpsd] serial-device = /dev/ttyACM0 # path to GPS receiver serial port log-level = 2 [database] db-name = wiperf-database host = localhost user = user password = password [data-sender] ifaces = 802.11ac 10.0.0.1, 802.11n 10.0.1.1, 802.11ad 10.0.2.1 # <if-name> <ip-address> port = 44443 log-level = 4 decision-level = 0 [data-receiver] ifaces = 802.11ac 10.0.0.2, 802.11n 10.0.1.2, 802.11ad 10.0.2.2 port = 44444 log-level = 4 [feedback-sender] ifaces = 802.11n 10.0.1.2 port = 44445 log-level = 4 feedback-interval = 1000 # interval between throughput samples (in ms) [feedback-receiver] ifaces = 802.11n 10.0.1.1 port = 44446
3.3. System Architecture 51 log-level = 4 [channel-monitor] ifaces = 802.11ac, 802.11n, 802.11ad sampling-interval = 1000 # interval between channel state samples (in ms) The "gpsinfo" section includes the "shm-path" parameter, that specifies the path to the shared-memory segment containing the updated GPS information. The "database" section defines the parameters to connect to the database, such as the username and password. The "mygpsd" section identifies the serial port where the GPS receiver is connected to, allowing the GPS module to receive NMEA messages. The "data-sender" and "data-receiver" sections identify the interfaces, IP addresses and UDP port numbers used in sending and receiving traffic to measure throughput. The "feedback-receiver" and "feedback-sender" contain information that is used to transmit the feedback messages, in particular, the "feedback-interval" define the interval between feedback messages and, consequently, the rate at which throughput is measured. Finally, the "channel-monitor" section tells the Channel Monitor module of which interfaces it needs to monitor and the interval between samples, i.e., the "sampling-interval", which must be equal to the "feedback-interval" for the Feedback Sender and Channel Monitor to be synchronized. The "data-sender" section also includes the "decision-level" parameter, that allows us to control its mode of operation: (0) send data through every interface simultaneously, to measure throughput; (1) send only through the interface with the highest estimated throughput, chosen by the Decision Maker; (2) send through an interface at random. Mode 0 is used alongside the active throughput measurement components to measure throughput and collect ground truth datasets to train estimation and forecasting models; mode 1 is used for demonstrations and represents how the system would operate in a real-world scenario of MEC offloading; and mode 2 can be used to collect datasets in sequence, measuring throughput one interface at a time.
4 VEHICULAR EXPERIMENT RESULTS In this chapter we describe how we implemented WiPerf in a real-world vehicular environment to validate its performance. To test WiPerf, we collected a vehicular Wi-Fi dataset with throughput, channel state, and GPS information, which we analyze at the end of this chapter. 4.1 EXPERIMENTAL SETUP To implement WiPerf, we used two TP-Link Talon AD7200 routers. These devices are equipped with three parallel 802.11n, 802.11ac, and 802.11ad wireless interfaces, allowing us to measure throughput for the three interfaces simultaneously. Since the native operating system is not user-programmable, we replaced it with the LEDE-AD7200 operating system, created by researchers from the Technical University of Darmstadt [72]. This is an adaptation of the popular Linux-based OpenWrt/LEDE [73] operating system that has been custom-made for TP-Link Talon AD7200 devices, since the original version does not support 802.11ad wireless interface drivers. To execute WiPerf in this platform, the source code had to be cross-compiled in a LEDE-AD7200 virtual machine and transferred to the respective devices. The Mobile Client was provided location and time information by a MikroElektronika GNSS 5 Click receiver [?], with a frequency of 10 Hz. Since we had no other GNSS 5 click receiver available, we equipped the stationary AP with a commodity 1 Hz GPS receiver. However, since the AP node remains static throughout the experiment and only needs GPS to synchronize clocks, the commodity receiver satisfies our requirements. Despite LEDE-AD7200 being user-programmable, it is based on version v17.01 of OpenWrt/LEDE, which supports a more limited set of software packages than the newer v21.xx and v22.xx versions. While database access packages are available to v17.01, some core database packages were only developed for more recent versions. This forced us to deploy the database in a laptop directly connected to the router with an Ethernet cable. The routers were placed on the rooftop of two vehicles, as illustrated in Figure 30. In this setup, we used the Renault as a stationary AP and the Honda as the Mobile Client. The Mobile Client’s router and database were powered using the automobile auxiliary power outlet. We performed the experiments at Rua D. Frei Vicente da Soledade e Castro, in Porto, Portugal, as depicted by Figure 31, on June 14th, 2022. The street is outlined by trees on both sides, that may cut-off the line-of-sight. Weather was cloudy and slightly humid, with temperatures of around 22 °C. 52
4.1. Experimental Setup 53 Stationary Access Point (2006 Renault Megane Break) Mobile client (2002 Honda Jazz) Application data Throughput feedback Router (sender) GPS Database Router (receiver)GPS 1476 mm 1525 mm Figure 30: Experimental setup, with vehicles are drawn to scale. Blueprints courtesy of getoutlines.com [ 14 ], and of Rui Meireles. Access Point Client 240 m N S EW Figure 31: Experiment’s location and Mobile Client’s path. Access point GPS coordinates: 41.177, -8.59585. Imagery ©2022 CNES / Airbus, IGP/DGRF, Maxar Technologies, Map data ©2022 Google. We drove the Mobile Client around the stationary AP while measuring throughput for 802.11n, 802.11ac, and 802.11ad Wi-Fi standards. The vehicle performed 10 laps following the path highlighted in Figure 31. We experienced road traffic and had to adapt the vehicle’s speed to such conditions. Table 2 details the radio channels used for measuring throughput. We relied on three wireless interfaces, using the 802.11n, 802.11ac, and 802.11ad standards, each on its own distinct frequency band, minimizing the possibility for adjacent-channel interface. Standard Channel #Center freq. (GHz) Bandwidth (MHz) 802.11n 6 2.437 20 801.11ac 40 5.2 40 802.11ad 2 60.48 2160 Table 2: Wi-Fi channels used for the experiments.
4.2. Dataset Analysis 54 50 100 150 200 250 802.11n -70 -60 -50 -40 -30 50 100 150 200 250 802.11ac -70 -60 -50 -40 -30 Signal Strength (dBm) 50 100 150 200 250 802.11ad -80 -70 -60 -50 -40 -30 10 20 30 40 Speed -125 -100 -75 -50 -25 0 7.5 25 50 75 100 Longitudinal position relative to Static Node (m) 0 0.5 1 HDOP Throughput (Mbps) Signal Strength (dBm) Speed (Kmph) GPS HDOP Figure 32: Throughput, RSSI, speed, and GPS horizontal dilution of precision as a function of the Mobile Client’s longitudinal position relative (negative for West and positive for East) to the AP. The red vertical dotted line denotes the AP’s position; the green vertical dotted line indicates the mobile client’s initial/final position. Ranges represent the 95 % confidence intervals. 4.2 DATASET ANALYSIS From the experiments we could gather a dataset with over 3750 samples, with 1250 per Wi-Fi network, containing throughput, channel state, and GPS information. The dataset is openly available and can be accessed in [16]. 4.2.1 Throughput, Signal Strength and Mobility Figure 32 summarizes the collected dataset through its most important metrics, i.e., measured throughput, vehicle’s speed, and GPS horizontal dilution of precision (HDOP). In [74] Isik et al. suggest the use of dilution of precision values to validate the integrity of GPS estimates, wherein values between 1 and 2 are "excellent", while <1 are "ideal". Following these guidelines, we consider the collected GPS data as being highly reliable, as HDOP values were consistently <1.
5.2. Initial Data Analysis 61 Throughput (Mbps) Density 0 100 200 300 400 500 600 0.000 0.010 SNR (dB) Density −100 −60 −20 0 20 40 0.00 0.04 0.08 Distance (meters) Density 0 50 100 150 0.000 0.010 0.020 Speed (m/s) Density 0 5 10 15 0.00 0.10 0.20 0.30 Mean IBT (ms) Density 0 20 40 60 80 0.00 0.05 0.10 0.15 0.20 Num. Beacons Density 0 2 4 6 8 10 0.0 0.2 0.4 0.6 Figure 36: Histograms and density functions of all features for 802.11ad. correlated with throughput, this could be due to the effect of signal quality and that in an estimation model the distance and speed will be less relevant than what it seems from the correlation analysis. To uncover more information on how to model throughput, we performed linear and polynomial regressions, considering the previous features and the number of active clients connected to the AP, which also influences the throughput that a single client can achieve. Table 3 shows the goodness-of-fit for the regressions as given by the adjusted R2metric. For 802.11ad we used only entries with throughput greater than zero. While 802.11n and 802.11ac show high R2, 802.11ad has much lower R2values for linear, quadratic, and cubic regressions alike, confirming the hard-to-predict nature of throughput for this standard. Equation 2 presents the trained linear regression models for 802.11n/ac/ad. The bias terms illustrate the difference in maximum throughput for each network, with values of 67.13 , 211.95 , and 350.27 tputn=67.13 −0.046 ∗distance −0.672 ∗speed +0.476 ∗RSSI −5.37 ∗nrClients −0.135 ∗meanIbt +0.079 ∗beaconRSSI −0.190 ∗nrBeacons tputac =211.95 −0.477 ∗distance −3.314 ∗speed +0.902 ∗RSSI −7.63 ∗nrClients +0.305 ∗meanIbt +0.052 ∗beaconRSSI −10.03 ∗nrBeacons tputad =350.27 −0.777 ∗distance −21.37 ∗speed +1.14 ∗SNR −44.90 ∗nrClients −8.42 ∗meanIbt −0.729 ∗nrBeacons (2)
5.2. Initial Data Analysis 62 Table 3: Linear, quadratic and cubic regression goodness-of-fit and root-mean-squared errors regarding throughput for 802.11n, 802.11ac, and 802.11ad (for throughput greater than zero). Wi-Fi Stand. Linear R2and RMSE Quadratic R2and RMSE Cubic R2and RMSE 802.11n 0.6823 0.7313 0.7664 802.11ac 0.6631 0.7208 0.7609 802.11ad 0.1489 0.1955 0.2194 −100 −50 0 50 100 −40 0 20 40 receiverDist | others tghptConsumer | others 15130 9110 6794 11348 −5 0 5 10 −40 0 20 40 receiverSpeed | others tghptConsumer | others 15130 9110 15342 15344 −60 −40 −20 0 20 40 −40 0 20 40 rssiMean | others tghptConsumer | others 15130 9110 1669 4544 −1.5 −1.0 −0.5 0.0 0.5 1.0 1.5 −40 0 20 nrClients | others tghptConsumer | others 15130 9110 7283 7669 −60 −40 −20 0 20 40 −40 −10 10 30 meanBeaconRssi | others tghptConsumer | others 15130 9110 14560 14552 −2 0 2 4 6 8 −40 0 20 meanInterBeaconTime | others tghptConsumer | others 15130 9110 2296 2284 −5 0 5 10 15 −40 0 20 nBeacons | others tghptConsumer | others 15130 9110 2296 2297 Added−Variable Plots Figure 37: Added-variable plots of 802.11n linear regression model. These plots depict the relationship between the dependent variable (i.e., throughput), and each independent variable, holding all other predictor variables constant. −10 0 10 20 30 40 0.0 0.5 1.0 1.5 2.0 Fitted values Standardized residuals lm(tghptConsumer ~ receiverDist + receiverSpeed + rssiMean + nrClients + me ... Scale−Location 151309110 15127 (a) Homoskedasticity −4 −2 0 2 4 −4 −2 0 2 4 Theoretical Quantiles Standardized residuals lm(tghptConsumer ~ receiverDist + receiverSpeed + rssiMean + nrClients + me ... Normal Q−Q 15130 9110 15127 (b) Residuals’ Normality Figure 38: Diagnostic plots for 802.11n linear regression model.
5.3. Machine Learning 63 Despite the acceptable results of the linear regressions for 802.11n and 802.11ac, none of the models comply with the necessary assumptions. Considering the assumption of linearity of the independent variables, multiple variables have non-linear relations with throughput as shown in Figure 37. Furthermore, the residuals are heteroskedastic and do not follow a Gaussian distribution, as seen in Figure 38, and as statistically proven through the Anderson-Darling normality test with P<.001. Not complying with the assumptions means that the model will have poor performance, but this also indicates that we can improve upon the performance of these models by applying transformations, doing feature engineering, or exploring non-linear alternatives. 5.3 MACHINE LEARNING With Machine Learning we can predict throughput based on easily-accessible real-time channel state information, such as RSSI, and mobility/GPS data, only requiring an initial throughput measurement campaign to train the models. Several studies have previously used ML to estimate throughput. In [78], Hameed et al. use MLR, Gradient Boosted Regression Tree, SVR, K-Nearest Neighbors Regression and a Decision Tree (DT) to estimate throughput in an IoT environment, considering multiple IoT applications. Mivoski et al., in [79], analyzed throughput estimation in LTE and 5G networks with models based on channel measurements, i.e., RSSI, Signal-to- Interference-plus-Noise Ration, cell load, among other metrics. The authors trained Random Forest (RF), SVR, XGBoost, and Multilayer Perceptron models for a wide range of environments, from urban and sub-urban driving to subway and mining use cases. Mobile networks were also the focus of Eyceyurt et al. [80], where they tried to estimate up-link throughput for LTE networks based on a dataset collected from multiple cities. Linear Regression, Gradient Descent, Gradient Boosting Regression, Decision Trees, and K-Nearest Neighbors Regression were trained based on signal strength and noise measurements. Based on the review of previous works, we decided to use Multiple Linear Regression, Decision Tree Regression, Random Forest Regression, Support-Vector Regression with Gaussian, Linear and Polynomial kernels, and a Shallow Neural Network. Figure 39 illustrates the procedure that we adopted to train the ML models. First, we process the training dataset and split it into five folds (slices of data) of equal size, using them to perform k-fold cross-validation. This consists on using k−1folds to train the model and reserve one last fold to validate its performance based on RMSE. This process is repeated ktimes, each time using a different combination of training and validation folds. The results from cross-validation are used by a Bayes optimization algorithm to fine-tune the configuration of the ML model. More concretely, the Bayes optimization step will try to minimize the RMSE by manipulating the model’s hyperparameters, as in arg minΘp∑(y−ˆ y)2, where Θis the set of hyperparameters, yis the actual throughput, and ˆ yis our estimation. The hyperparameters are specific to the algorithm in use, e.g., for neural networks it includes the number of hidden layers and the number of neurons per layer. The MLR model is an exception to this procedure because it has no hyperparameters that need optimization; the model is trained on the full training dataset and has only a training and a testing step.
5.3. Machine Learning 64 Meireles Dataset (training + validation) Fold 1 Fold K . . . Teixeira Dataset (testing) ML Model Training Validation Bayes Optimization Optimize Hyperparameters K-Fold Cross-Validation Trained and Optimized ML Model Testing Results Data Processing Data Processing Figure 39: Methodology used in training, validating and testing the ML models. The data processing steps consist on filtering out the features in each dataset that do not exist in the other, as to build a compatible model. For instance, in the 802.11ad datasets we removed the signal strength values because the training set uses SNR while the testing set uses RSSI. Since signal strength is the most influential feature with regards to throughput, the model will have a mediocre performance at best. In a future chapter we discuss how we can bypass this issue by generating synthetic data. By following the mentioned procedure we were able to obtain the results shown in Table 4, where the RMSE was calculated using the training set (in-sample) and using testing set (out-sample). The out-sample 802.11ad RMSE for Linear and Polynomial SVR models were too large compared with the remaining models and were kept out to avoid confusion. The DT, RF and Gaussian SVR algorithms showed the best performance across the three standards, while the MLR and the linear and polynomial SVR models showed the worst performance based on both in-sample and out-sample errors. Regarding model transferability, we compare the in-sample to the out-sample errors. Since the environment changes, it is expected that the models’ performance deteriorates, as seen across every model. For instance, considering the RF, we see an increase in RMSE of 278.90 %,104.81 %, and 74.98 % for 802.11n/ac/ad. The change in the environment also appears to impact all models similarly, except for the polynomial SVR models that saw a performance improvement for 802.11ac and a severe performance degradation for 802.11ad. Despite the proficiency of ML models, they may be ill-suited for embedded systems with limited computational and memory resources; particularly when considering more complex models such as NNs, RF and SVR. Recently, many researchers have introduced techniques to "squeeze" ML algorithms into resource-constrained devices using optimization, quantization, and model pruning [81]. However, to use such techniques means to add more complexity to the implementation of trained models. Alternatively, formula-based throughput estimation introduces models that are easier to implement and faster to compute, even in embedded devices. This approach focuses on trying to devise a formula that reasonably models the throughput as a function of the channel and network properties. While in ML the algorithms try to
5.4. Symbolic Regression 65 Table 4: Comparison of the performance results for the ML models based on RMSE. ML Model 802.11n 802.11ac 802.11ad RMSE in RMSE out RMSE in RMSE out RMSE in RMSE out MLR 8.4348 13.7745 30.5379 124.9374 85.9641 108.9542 RF 3.3368 12.4630 19.1662 39.2553 48.0373 84.0596 NN 6.1106 13.0709 22.2550 129.0205 52.6715 84.9364 DT 5.0941 12.1020 19.1173 41.7669 52.1556 84.9143 SVR Gaussian 6.3585 12.7587 21.8131 39.6247 53.6106 84.4562 SVR Linear 8.6305 13.3962 30.6403 130.3777 90.5264 — SVR 2D 7.8461 14.4228 52.6235 39.7370 87.4019 — SVR 3D 7.5990 21.2945 53.2809 39.9547 87.4200 — optimize a set of parameters (i.e., weights) of a pre-specified structured model (e.g., a linear equation or a neural network with tanh activation function) on the data, in formula-based approaches the goal is to find an equation that can explain the data without preconceived assumptions for model structure, replacing the black-box models with interpretable expressions. While these methods are the most suited for vehicles due to low computational requirements, the large majority of literature on formula-based models focuses on TCP sessions and transport-level metrics, which are not as relevant when measuring throughput in access networks. Therefore, in the remainder of this chapter we will focus on discovering a closed-form expression to model throughput in Wi-Fi access networks, given channel and mobility features. We intend for the formula to be used in WiPerf to estimate throughput in real-time. 5.4 SYMBOLIC REGRESSION The MLR models could be used to model the throughput, but as seen in the data analysis section Section 5.2, the models’ residual are heteroscedastic and do not follow Gaussian distributions. This means that the model may not present a good fit on the data, but it also means that the model can be improved upon if we perform feature engineering. For feature engineering, we could follow a trial-and-error approach and introduce new features such as log(RSSI distance )or eRSSI, making the regression model capable of non-linear fitting. To avoid this costly and time-inefficient procedure, we opted for an automatic approach, using an algorithm that performs ordinaryleast-squares regression but chooses its own combination of features to perform advanced feature engineering: Symbolic Regression (SR). This is an ML method that tries to uncover the hidden relationships within data to create a mathematical expression that can be used in estimation. Researchers have used SR to solve problems in the fields of biology and physics. In [82], Searson et al. presents the GPTIPS2 algorithm. GPTIPS2 is a genetic-programming-based algorithm that searches for linear combinations of mathematical functions and input variables to fit a dataset. It formulates an equation similar to the linear regression model, but the terms of the model can be both linear and non-linear. These terms are defined as tree structures, where its leaves are variables and constants, and its intermediary nodes are mathematical operators. An example of such structures is given in Figure 40. The algorithm creates
5.4. Symbolic Regression 66 Figure 40: Example of an expression as interpreted by the GPTIPS2 algorithm. random expressions and uses genetic programming to mutate the terms (tree structures) and to iteratively evolve the expressions to try to improve their fitness. After mutating the terms, the algorithm applies ordinary-least- squares regression to compute the θjcoefficients. This algorithm can be interpreted as a linear regression where a genetic algorithm is used for automatic feature engineering, trying to create new features based on the original ones to optimize fitness. In [83], Udrescu et al. present the AI Feynman algorithm, after the late theoretical physicist Richard Feynman. The algorithm consists on a sequence of modules using polynomial regression, brute force methods and neural networks to segment and compute expressions. It was built to simulate how a scientist may approach the problem of finding an equation, applying different strategies and dividing the problem into smaller sub-problems. The authors successfully used the algorithm to find well-known equations, of which those found in a book written by Feynman. Sahoo et al., in [84], propose a neural network model for SR where the network’s nodes correspond to mathematical operators, e.g., multiplications, logarithms, cosines, among others. If the network is sparse, with few layers and connections, the algorithm may not be able to find an appropriate expression, being heavily dependent on its configuration; if it is too dense, the resulting expression will be overly complex. Therefore, the authors use dense networks, and apply regularization methods which effectively remove useless connections. The AI Feynman and neural network-based algorithms are new and exciting approaches to physics-based symbolic regression, but genetic programming has been the primary focus of research on this topic. The amount of literature surrounding genetic-programming SR confers reliability to these approaches and serves as proof of their effectiveness in generalized problem solving. Therefore, we decided to use GPTIPS2 instead of the remaining two methods. Besides being a genetic-programming-based algorithm, GPTIPS2 is also available in MATLAB with detailed instructions, has been used and cited in over 400 publications, and offers a strong platform to analyze the discovered models in terms of both performance and expressional complexity.
5.4. Symbolic Regression 67 Meireles Dataset (training + validation) Training Set Validation Set Teixeira Dataset (testing) Testing Results Random Split 70-30% GPTIPS2 Training Trained Models Choose the best model Run the algo. 25 times for 100 generations Population size of 300 Max. depth of 4 nodes Max. of 6 genes/terms per model Chosen Model Pareto front with complexity and R2 fit Elbow method GPTIPS2 Algorithm Data Processing Data Processing Figure 41: Symbolic regression pipeline methodology for training, validating and testing the discovered models. 5.4.1 Methodology To train and test a model, we used a similar methodology to the one applied to the ML algorithms. This methodology, illustrated in Figure 41, consists of applying training, validation and testing steps to the GPTIPS2 models. First, we randomly splitting the Meireles et al. 2020 dataset into training and validation considering a 70-30 ratio. The GPTIPS2 uses the training set to perform genetic-programming and evolve a set of models. To ensure that the trained models are kept simple do not over-fit the data, we limited their structure to six terms, each represented by a tree with maximum depth of four. The algorithm was executed 25 times and in each run it evolved 300 models through 100 generations, resulting in a set of 7500 trained models. At the end of each generation, the algorithm runs a tournament selection with a size of 30, to select the best models for cross-over. To choose a model, we plotted the Pareto front with regards to the models’ goodness-of-fit, based on the validation set, and their expressional complexity. The expressional complexity is calculated as defined in [85], i.e., as the sum of the nodes of all sub-trees. The model is chosen by applying the "elbow" method, which consists on choosing the Pareto front model that provides the best trade-off between performance and complexity. We then predict throughput for the test set using the model. 5.4.2 Results After training the models following the detailed methodology, we plot the Pareto front as shown in Figure 42. In this figure the green dots correspond to the models that constitute the Pareto front; the model with the best performance is circled in red; the chosen model, based on the empirical "elbow" method, is given by the magenta dot. What we define as the "elbow" method consists on choosing the Pareto front model that provides the best trade-off between performance and complexity. The magenta dots in Figure 42 correspond to the following models: ˆ tputn=0.7111 ∗RSSI −2.479 ∗nrClients +11.88 ∗e−nrClients +62.02 (3)
5.4. Symbolic Regression 68 0 50 100 150 200 250 300 Expressional complexity 0 0.2 0.4 0.6 0.8 1 1-R2 (testing) (a) 802.11n 0 50 100 150 200 250 300 Expressional complexity 0 0.2 0.4 0.6 0.8 1 1-R2 (testing) (b) 802.11ac 0 100 200 300 400 Expressional complexity 0 0.2 0.4 0.6 0.8 1 1-R2 (testing) (c) 802.11ad Figure 42: Pareto front plots for GPTIPS2 trained SR models. ˆ tputac =1.409 ∗RSSI −2.667 ∗speed +44311 ∗cos(nrClients RSSI ) −11.14 ∗cos(nrClients)−36.77 ∗distance1 4−44022 (4) ˆ tputad =67.75 ∗nRetries1 4−88.18 ∗tanh(speed)−6.348 ∗√nRetries −75.37 ∗e−(speed+nBeacons)3+88.83 (5) In the 802.11n and 802.11ac equations, the RSSI and the number of connected clients are the main features, and in the 802.11ad equation the signal strength gives way to lesser features — i.e., the number of retries — since both SNR and RSSI are removed from the training and testing sets. Since the number of clients in the testing dataset is always equal to one, we may simplify the 802.11n and 802.11ac formulas as being: ˆ tputn=0.7111 ∗RSSI +63.9114 ˆ tputac =1.409 ∗RSSI −2.667 ∗speed +44311 ∗cos(RSSI−1) −36.77 ∗distance1 4−44028.0189 (6) Table 5 presents the RMSE for the SR models, and compares them with MLR and with the two ML models with best performance. Considering the in-sample RMSE, the SR models outperform the MLR models by a small margin for 802.11ac/ad, and are outperformed by MLR for 802.11n. However, the out-sample errors shows that SR can match and, in some cases, surpass the performance of DT and RF models. This reveals that the trained SR models are much more transferable then the best ML models with their pre-specified black-box structures.
5.5. Data Processing using Synthetic Data Generation 69 Table 5: Comparison of the performance results between a set of ML models and SR. Model 802.11n 802.11ac 802.11ad RMSE in RMSE out RMSE in RMSE out RMSE in RMSE out MLR 8.43 13.77 30.54 124.94 85.96 108.95 RF 3.34 12.46 19.17 39.26 48.04 84.06 DT 5.09 12.10 19.12 41.77 52.16 84.91 SR 8.90 12.49 29.30 31.23 72.00 85.92 5.5 DATA PROCESSING USING SYNTHETIC DATA GENERATION In the previous sections we have shown how ML and SR models can estimate throughput in 802.11n/ac/ad Wi-Fi access networks, but the datasets for 802.11ad did not allow for a well performing model since we removed the signal strength features in the data processing steps. Instead of removing features to turn both datasets compatible, we can add the missing features to the training set by synthetically generating RSSI values. While, ideally, we would not be looking into creating synthetic data — since we will be adding bias — this will allow us to better understand the performance differences between the multiple models. Furthermore, the synthetic RSSI values will only be added to the training set and can be easily collected in the future using the WiPerf framework. To generate synthetic RSSI values, we relied on the simplified log-distance path loss model, through which we define RSSI as: RSSI =RSSI0−10 γlog10 d d0+X X∼ N(0, σ) (7) where d0is the reference distance (i.e., one meter), RSSI0is the RSSI at d0,dis the distance between transmitter and receiver, γis the path loss exponent, and Xis a zero-mean Gaussian random variable with σstandard deviation, reflecting the effect of fading. The path loss exponent and the fading standard deviation were set to γ=1.59 and σ=2.1, following the results of Karedal et al. for suburban environments [86]. The RSSI0was measured for the TP-Link Talon AD7200 access points considering a 1 m distance and defined as −53 dBm. 5.5.1 Synthetic Data Results We re-ran the ML and SR methodologies using the synthetic RSSI data, for which the results are presented in Table 6. By including the synthetic RSSI values, we improved the models’ performance by 7.90 to 9.88 % for in-sample errors, and 29.25 to 31.51 % for out-sample errors, considering RF, NN, and DT models. With SR, we can push our predictions even further, achieving an out-sample RMSE of 57.01, with a 33.65 % improvement over the dataset without RSSI values. However, in 802.11ad the large majority of samples relate to periods of disconnection, and the imbalance between connected and disconnected samples can impact the performance results.
5.5. Data Processing using Synthetic Data Generation 70 Table 6: Performance results for the 802.11ad models with and without the synthetic RSSI values. ML Model 802.11ad 802.11ad with RSSI RMSE in RMSE out RMSE in (%) RMSE out (%) MLR 85.96 108.96 71.99 -16.26 74.96 -31.20 RF 48.04 84.06 44.24 -07.90 59.47 -29.25 NN 52.67 84.94 47.71 -09.42 58.17 -31.51 DT 52.16 84.91 47.00 -09.88 58.74 -30.82 SVR Gaussian 53.61 84.46 56.61 +05.60 83.71 -00.89 SVR Linear 90.53 — 73.78 -18.50 61.07 — SVR 2D 87.40 — 63.34 -27.53 — — SVR 3D 87.42 — 61.59 -29.54 — — SR 72.00 85.92 64.39 -10.56 57.01 -33.65 Figure 43 compares the predictions of the ML and SR models with the actual throughput. From this figure we can see that the Gaussian SVR has under-fitted the data and estimates a constant 10 Mbit/s, which cannot be perceived from analyzing the RMSE alone. The NN, RF and DT models predicted the throughput in the early phases, when the connectivity was stable, but failed to do so when the vehicle was in motion. On the other hand, the Linear SVR, MLR and SR models managed to predict throughput when the more advanced models could not. In the Linear SVR, we see that it predicts some of the moments where connectivity can be re-established, and predicts 0 Mbit/s otherwise. Interestingly, the SR and MLR models predict the same moments of connectivity as the Linear SVR model, but the MLR model predicts throughput even when devices are out-of-communication- range and the SR is very conservative in its predictions, i.e., average of 70 Mbit/s at connected periods. 5.5.2 Discarding Zero Throughput Samples The generation of synthetic RSSI values drastically improves the out-sample performance and the models’ transferability, but they still suffer from the imbalance in the number of connected versus disconnected (i.e., zero throughput) samples in the 802.11ad dataset. An alternative is to think of this problem as a classification of connected versus disconnected periods, where a regression model is used to predict throughput when the devices are connected. The classification part of the problem is solvable by accessing the wireless interfaces and verifying whether or not they are connected to another device. Therefore, we may confidently discard all zero throughput samples and re-train the models. The ML and SR models were trained solely based on the connected samples of the training dataset, following the same cross-validation and optimization procedures. When testing the models, we used them to predict the
5.6. Symbolic Regression and Kalman Filters 77 xk=x− k+Kk(zk−Zk) Pk= (I−KkTk)P− k 5.6.1 Modeling the System To use the UKF, we must model our system using state-transition and observation non-linear functions, as well as state and observation vectors. xk= lon lat v θ d RSSI tput ,zk= lon lat v θ d RSSI tput where lat and lon are the geographical coordinates of the moving vehicle in decimal degrees, vis the vehicle’s speed, θis its heading, and dis the distance between vehicle and stationary access point. The state-transition function f(x)and the observations function h(x)are defined as f(xk−1) = lonk=lonk−1+∆lon ∗180 π latk=latk−1+∆lat ∗180 π vk=vk−1 θk=θk−1 dk=haversine(lonk, latk) RSSIk=fRSSI(dk,vk) tputk=ftput(dk,vk, RSSIk) h(xk−1) = xk−1 ∆lon =cos(θk−1)∗vk−1 R∗cos(latk−1∗π 180 ),∆lat =sin(θk−1)∗vk−1 R where Ris the radius of the earth rounded as 6 371 000 m, the haversine(lonk,latk)is the formula used to calculate the distance between two sets of coordinates (see Equation 1), frssi(dk,vk)is a function that estimates the RSSI using the log-distance path loss model, and ftput(dk,vk,rssik)corresponds to our trained SR models (see Equation 3,Equation 4,Equation 9). Since we adopt the same format for both the state xkand the observation zkvectors, we defined h(xk−1)as an identity function, with equal input and output.
5.6. Symbolic Regression and Kalman Filters 78 Table 8: Reference RSSI at 1 m distance, for 802.11n/ac/ad. 802.11n 802.11ac 802.11ad RSSI0(dBm) -34.2 -32.2 -53.0 Regarding the fRSSI(dk,vk)function, for 802.11ad this corresponds to the log-distance path loss model defined in Equation 7, but for the remaining 802.11n/ac we can either use the log-distance path loss model defined in Equation 7 or attempt to discover a better equation through SR. We considered both approaches and will compare them to decide upon which to consider in the UKF’s implementation. The SR models for RSSI were computed considering the same configuration used for the throughput SR models, with respects to the maximum number of terms and tree depth. The computed models are expressed in Equation 11 and Equation 12. Interestingly, while the 802.11n model include speed and distance into the calculations, the 802.11ac model only includes the distance. Furthermore, the 802.11ac model is corresponds to a log-distance path loss model with RSSI0=−16.24 and γ=1.243, discarding the fading random variable X. RSSIn=0.05006 ∗v−2.739 ∗log(d3)−1.09 ∗√v+d−23.22 (11) RSSIac =−16.24 −12.43 ∗log(d)(12) For the log-distance path loss model, we defined the path loss exponent and the fading standard deviation parameters as γ=1.59 and σ=2.1, as recommended in [86]. We calculated RSSI0based on the collected dataset, taking a weighted average of samples from 0to 2 m distance, resulting in Table 8. Figure 45 shows the RSSI prediction using both the log-distance path loss and the SR models discovered using the training dataset. The log-distance path loss model with the suggested γ=1.59 seems to estimate a lower quality RSSI than measured by the access points during the experiments. This was expected, since the signal’s path attenuation is environment-dependent. We fitted a second log-distance path loss model on the training dataset and found that γ=0.86 gives better estimates for both 802.11n and 802.11ac. However, the SR models seems to outperform the log-distance path loss models considering both 802.11n and 802.11ad, and both training and testing datasets. Therefore, we will adopt the SR models in the UKF implementation. 5.6.2 Process and Measurements Noise As with the KF and EKF, the UKF is regulated by a process noise matrix Qkand a measurement noise matrix Rkthat define the variance of the state and the variance of the measurements. The model is sensitive to how these matrices are defined and incorrect matrices may lead to sub-optimal performance and even divergence. We can find several different approaches in the literature for discovering the correct matrices for the filters. For instance, in [89] use Adaptive Kalman Filters to estimate Rkand Qkbased on the predicted covariance Pkand on the innovation of the Kalman gain. In [90], Nilsson proposes a new KF formulation that substitutes the matrices
5.6. Symbolic Regression and Kalman Filters 79 Figure 45: Comparison of actual RSSI values with those predicted using SR and the log-distance path loss model. by a single tuning parameter. The state-of-the-art in terms of noise matrix estimation is the Autocovariance Least-Squares method proposed by Odelson et al. in [91], and uses the prediction errors to deduce the noise matrices. We opted to use a simpler approach and attempted to apply our domain knowledge in defining the matrices, followed by the manual tuning of values to try and minimize the RMSE. To further simplify, we expressed the noise matrices as being diagonal matrices. This approach is bound to result in sub-optimal performance, but serves as a fast way to implement the system and to demonstrate its potential when coupled with SR models. The manual tuning of the noise matrices was conducted using the Teixeira et al. dataset [16] for both validation and testing, which will introduce biases when measuring the model’s performance. However, we expect the introduced bias to be negligible since our approach will naturally lead to a poorer choice of matrices as compared to statistically advanced approaches, such as adaptive filters and the autocovariance least-squares method. The computed set of matrices are given by their diagonals as follows: Qn= 0.0000 0.0000 0.0000 0.0000 10.0000 30.6388 10.1544 ,Rn= 0.0000 0.0000 0.3877 2.6987 32.9556 20.6388 10.1544 ,Qac = 0.0000 0.0000 0.0000 0.0000 10.0000 30.8301 20.4826 ,Rac = 0.0000 0.0000 0.3877 2.6987 32.9556 24.4496 10.3485 ,
5.7. Evaluation and Discussion 80 Qad = 0.0000 0.0000 0.0000 0.0000 10.0000 30.8301 20.4826 ,Rad = 0.0000 0.0000 0.3877 2.6987 32.9556 24.4496 10.3485 5.6.3 Results Figure 46 shows the predicted throughput values using the UKF-SR model, where the true throughput values are displayed in blue, the SR predictions in orange, and the UKF-SR predicted state x− kand corrected state estimate xkcorrespond to the yellow and purple lines, respectively. The predicted state x− kis given by the state-space model alone, while the corrected state estimate xkis, in essence, the Kalman gain weighted average between the predicted state and the measurements. Even though the UKF-SR predictions were not as accurate as those of the SR model, when coupled together in the filter’s correction step they were able to improve upon each other and predict with greater accuracy. Table 9 compares the UKF-SR performance with SR and ML models considering out-sample RMSE. The ML and SR models for 802.11ad were those trained based on connected samples with synthetic RSSI. The UKF-SR model outperformed the advanced and complex ML models, such as RF and DT. Furthermore, the UKF-SR managed to improve upon SR model’s performance by 7.57 %,8.99 %, and 12.23 % for 802.11n, 802.11ac, and 802.11ad. While these results are, by themselves, promising, we expect the performance of the UKF-SR to be further improved through using state-of-the-art techniques for noise matrices estimation. Table 9: Performance comparison between the UKF-SR, SR, and ML models. Model 802.11n 802.11ac 802.11ad RF 12.46 39.26 50.92 DT 12.10 41.77 42.41 SR 12.49 31.23 44.56 UKF-SR 11.53 28.43 39.11 5.7 EVALUATION AND DISCUSSION In this section we analyze and compare the performance of the ML, SR, and UKF-SR models. The evaluation is based on the models’ transferability, perceived as how well it adapts to a new environment, and accuracy, based on the out-sample errors. In Figure 47 we show the empirical cumulative distribution function plots for the absolute out-sample errors of the trained models. For the 802.11n standard, the performance was similar across the multiple models, with
5.7. Evaluation and Discussion 81 0 50 100 802.11n 0 100 200 Throughput (Mbps) 802.11ac 0 200 400 600 800 1000 1200 time (s) 0 200 400 600 802.11ad actual SR UKF Predicted UKF Corrected Figure 46: Estimated throughput using SR and UKF-SR models; UKF Predicted corresponds to x− k , while UKF Corrected is xk.
5.7. Evaluation and Discussion 82 0 10 20 30 40 50 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 ECDF 802.11n 0 50 100 150 200 Absolute Errors (Mbps) 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1802.11ac 0 100 200 300 0.9 0.91 0.92 0.93 0.94 0.95 0.96 0.97 0.98 0.99 1802.11ad SVM Gaussian SVM Linear NN RF DT MLR SR UKF-SR Figure 47: ECDF plots of the absolute out-sample errors for the ML, SR and UKF-SR models. all presenting similar error curves. The SR model is depicted in orange and shows competitive performance, outclassing the NN, RF and DT models for errors smaller than 10 Mbit/s. The UKF-SR model is represented in the figure as a dotted line highlighted in red, and is the best performing model, improving on the SR predictions for over 90 % of errors. Considering 802.11ac, two distinct groups are formed: a better performing group consisting of SR, UKF-SR, RF, DT and Gaussian SVR models; and a worse performing group of Linear SVR, MLR and NN models. Again, the SR and UKF-SR outclass all other models in terms of out-sample errors. For 802.11ad, the models were trained using a set of only connected samples with synthetic RSSI values, and tested using both connected and disconnected samples (Subsection 5.5.2). Due to the large proportion of zero throughput samples (disconnected), around 90 % predictions are error-free. Therefore, in Figure 47 we analyze the remaining 10 % of predictions related to the connected samples. The models’ performance was much closer than in 802.11ac. The SR model shows good results, but is surpassed by the NN, DT, and Gaussian SVR models. However, the UKF-SR, despite being based on the SR, improves it and is able to compete with the computationally demanding algorithms. Table 10 shows the RMSE for all models described in the previous sections, always as a percentage comparing its RMSE with that of the best model. The two best models for each standard have their RMSE values highlighted in bold. As in Figure 47, the UKF-SR shows the best results across all models in terms of RMSE, being only outperformed by the Gaussian SVR for 802.11ad, although by a very small margin, i.e., <1 Mbit/s (1.06 %). For 802.11n, DT is the second best performing model, with an RMSE 4.94 % higher than the UKF-SR model, followed by the RF model with 8.07 %. As for 802.11ac, the second best is SR with a 9.85 % difference, and the third, the RF model, is far behind with 38.09 % higher RMSE.
5.7. Evaluation and Discussion 83 Table 10: Performance results of the ML, SR and UKF-SR models for 802.11n/ac/ad, considering out-sample RMSE. Models 802.11n 802.11ac 802.11ad RMSE % RMSE % RMSE % MLR 13.77 (+19.43) 124.94 (+339.47) 51.90 (+34.11) RF 12.46 (+08.07) 39.26 (+38.09) 50.92 (+30.58) NN 13.07 (+13.36) 129.02 (+353.82) 42.41 (+09.59) DT 12.10 (+04.94) 41.77 (+46.92) 42.41 (+09.59) SVR Gaussian 12.76 (+10.67) 39.62 (+39.36) 38.70 — SVR Linear 13.40 (+16.22) 130.38 (+358.60) 116.09 (+199.97) SVR 2D 14.42 (+25.07) 39.74 (+39.78) — — SVR 3D 21.29 (+84.65) 39.95 (+40.52) 40.92 (+05.74) SR 12.49 (+08.33) 31.23 (+09.85) 44.56 (+15.14) UKF-SR 11.53 —28.43 —39.11 (+01.06) These results demonstrate the potential of SR for throughput estimation. With SR we were able to create nonlinear models with no pre-defined structure, that are capable of capturing underlying patterns in the data that other more complex models may not be capable of doing. These models are simple and easily implemented in embedded systems, even on those that due to CPU and memory limitations cannot run advanced ML algorithms (e.g., NN, RF, DT, and SVR models). Furthermore, we have successfully used SR to discover a non-linear state-space model for non-linear Kalman filters. While in the works of Wu et al. [92] and Moreno-Salinas et al. [93] SR and KF are used to solve problems in marine vehicles, they are seen as two separate alternatives. As far as we know, this is the first time that SR and KF have been used together, to improve on the predictions of the SR model by integrating observations and knowledge of process and observation noise.
6 THROUGHPUT FORECASTING In the previous chapter we focused on how to estimate throughput based on channel state information and mobility data. The trained estimation models can predict throughput in real-time using SR and UKF. However, the throughput may change rapidly as a vehicle moves through the environment, and approaches or distances itself from the AP. Another influential factor is how signal quality shifts with loss of line-of-sight or changes in the direction of the wireless antennas. Therefore, the best choice at a given instant may not be the correct choice in the near future. The vehicle may also benefit by anticipating a connection loss by switching networks earlier, which will optimize the amount of offloadable data. To incorporate this knowledge and make such decisions, the vehicle must predict the future throughput for each network. In this chapter we will focus on throughput forecasting, i.e., predicting the future throughput. We will describe forecasting models, analyze the performance of each and show how we can integrate throughput estimation and forecasting in the WiPerf system. 6.1 TIME-SERIES FORECASTING There are multiple approaches to forecasting, each with its own methods and assumptions. In this section, we consider a time-series-based approach, where throughput is modelled as a time-series, and we apply time-series forecasting algorithms for predicting throughput. These techniques may range from weighted average methods, to more statistically sophisticated models such as ARIMA and VAR. Similarly to supervised ML, some forecasting models may require separate training and testing phases, preferably using different sets of data to reduce biases. However, in time-series forecasting, the training and testing sets must be part of the same time-series and, hence, belong to the same dataset. Therefore, we used the dataset described in Chapter 4 and split it into two halves: the first half for training and the second half for testing. The training set was used to estimate the weights of the models, such as required by ARIMA models. 6.1.1 Smoothing Techniques First, we start with forecasting using smoothing techniques. These are methods used to smooth noisy data in an attempt to remove the noise. When applying them to forecasting, the goal is to predict t+1by smoothing the 84
6.1. Time-Series Forecasting 85 previous nvalues. To exemplify, consider the Simple Moving Average (SMA) method, where yt+1is given by the arithmetic average of the past nvalues: yt+1=1 n n ∑ i=0 yt−i To predict yt+2we follow the same process, and add the yt+1forecast to the set of past samples. This results in the recursive propagation of the previous forecasts. In the context of the Moving Average (MA) class of methods, the previous values are defined as lags. The SMA assigns equal importance to each lag term, but the more recent lags may be more important for the forecast than the older lags. To assign different importance to the multiple lag terms, we use the Weighted Moving Average (WMA), which is given by the following equation: yt+1= n ∑ i=0 wiyt−i where wiare the weights that regulate the importance of each lag yt−i. The weights can be calculated following one of many approaches, and in our case we consider two main ones: the Exponentially-Weighted MA (EWMA), and the Gaussian-Weighted MA (GWMA). In EWMA, weights are computed in an exponential manner, such that the importance of each lag is exponentially reduced from the more recent to the older terms. On the other hand, the GMA calculates the weights based on a Gaussian distribution, where values closer to the mean are given a larger weight than those farther away. Apart from the conventional MA models, we may also use a technique called "local regression". Local regression is a generalization of MA where a weighted regression model is used to smooth the data. The idea is to fit a regression model over the previous nlag terms and use it to predict yt+i. We used the Locally Weighted Scatterplot Smoothing (LOWESS) and the Locally Estimated Scatter Smoothing (LOESS) algorithms. Each one consists on a weighted least-squares regression to fit the set constituted by the nlag terms, but the former considers a linear regression, and the latter uses a quadratic regression. We have also applied the Savitzky-Golay filter. This method fits a quadratic function on the data, similarly to the LOESS filter, but it chooses a fixed set of weights that is applied to every sample, while the LOESS recalculates the weights for each new iteration. In large time-series and in embedded applications, this method is far more efficient. Figure 48 depicts the performance of the aforementioned techniques in forecasting the throughput, considering a forecast window of 40 s and a historic window (number of lag terms) of 5, 10, 20, and 30 samples. The performance was measured using the Mean Absolute Scaled Error (MASE) metric, introduced by Hyndman and Koehler in [94]. The MASE is a scaled measurement given by dividing a model’s MAE by the MAE of an insample naïve random walk model. In this case, we consider a naïve random walk model without drift that can be formulated as yt+i=ytfor i=1, ..., 40, i.e., predicting the next 40 seconds of throughput as being equal to the current throughput. The results show that the moving average models, i.e., MA, SMA, GMA, and EWMA, outperform the LOWESS, LOESS, and Savitzky-Golay local regression models, for all values of mathrmn and across the three standards.
6.1. Time-Series Forecasting 86 Forecast (s) Mean Absolute Scaled Error (MASE) 802.11n 10 20 30 40 0 0.2 0.4 0.6 0.8 1 1.2 n = 5 10 20 30 40 0 0.2 0.4 0.6 0.8 1 1.2 1.4 n = 10 10 20 30 40 0 0.5 1 1.5 2 2.5 3 n = 20 10 20 30 40 0 1 2 3 4 5 6n = 30 MA Gaussian LOWESS LOESS Savitzky-Golay SMA EWMA 802.11ac 10 20 30 40 0 0.5 1 1.5 10 20 30 40 0 0.5 1 1.5 10 20 30 40 0 1 2 3 4 5 10 20 30 40 0 2 4 6 8 802.11ad 10 20 30 40 0 0.5 1 1.5 10 20 30 40 0 0.5 1 1.5 2 2.5 10 20 30 40 0 2 4 6 8 10 20 30 40 0 2 4 6 8 10 12 Figure 48: Performance of moving average methods and filtering techniques for throughput forecasting. While the MA models are trained on the training set and then applied to forecast throughput in the testing set, the local regression models only fit their linear and polynomial models based on the nlags, considering all terms to be equally important prior to fitting. Because of this, the local regressors perform better for smaller values of n. This is shown in the figure, where the models are close to the MA models for n=5, and give increasingly worse results as nincreases. Moreover, the local regression models were designed to smooth a function based on the previous and the succeeding samples, and only having the previous values will result in poor performance. This suggests that local regressors are ill-suited for forecasting. Considering the MA models’ performance in 802.11n and 802.11ac, they are less accurate than the in-sample naïve random walk for 1to 10 s forecasts, but surpass this model when forecasting more than 10 s into the future. When analyzing the performance for the 802.11ad standard we see that the models’ MASE was always above the naïve baseline, except for the MA, SMA, and EWMA models that managed to outperform the naïve forecasts for more than 38 s. This means that for 802.11ad we are likely to get better results by predicting future throughput as equal to the current throughput (naïve assumption) than to use MA or local regression.
6.1. Time-Series Forecasting 93 Table 11: ARIMA and ARIMAX model evaluation based on AIC and BIC. Models AIC BIC Norm. AIC Norm. BIC 802.11n ARIMA (0,1,0) 4131.5 (+80.2) 4135.9 (+61.6) 7.0264 7.0338 ARIMA (0,1,1) 4086.3 (+35.0) 4095.0 (+20.7) 6.9494 6.9643 ARIMA (4,1,0) 4052.4 (+01.1) 4074.3 — 6.8918 6.9290 ARIMA (4,1,1) 4051.3 — 4077.6 (+03.3) 6.8900 6.9346 ARIMAX (0,1,0) 3942.9 (+81.6) 3960.4 (+61.5) 6.7056 6.7353 ARIMAX (0,1,1) 3913.6 (+52.3) 3935.5 (+36.6) 6.6558 6.6930 ARIMAX (4,1,0) 3863.8 (+02.5) 3898.9 — 6.5712 6.6307 ARIMAX (4,1,1) 3861.3 — 3900.7 (+01.8) 6.5669 6.6339 802.11ac ARIMA (0,1,0) 5370.1 (+35.2) 5374.5 (+18.7) 9.1329 9.1403 ARIMA (0,1,1) 5368.9 (+34.0) 5377.6 (+21.8) 9.1307 9.1456 ARIMA (2,1,0) 5353.4 (+18.5) 5366.5 (+10.7) 9.1044 9.1268 ARIMA (2,1,1) 5338.3 (+03.4) 5355.8 — 9.0788 9.1086 ARIMA (11,1,0) 5338.1 (+03.2) 5390.6 (+34.8) 9.0783 9.1677 ARIMA (11,1,1) 5334.9 — 5391.8 (+36.0) 9.0729 9.1697 ARIMAX (0,1,0) 5163.0 (+51.7) 5180.5 (+10.6) 8.7806 8.8104 ARIMAX (0,1,1) 5161.8 (+50.5) 5183.7 (+13.8) 8.7786 8.8158 ARIMAX (2,1,0) 5148.1 (+36.8) 5174.3 (+04.4) 8.7552 8.7999 ARIMAX (2,1,1) 5139.3 (+28.0) 5169.9 — 8.7403 8.7924 ARIMAX (11,1,0) 5111.3 — 5177.0 (+07.1) 8.6927 8.8043 ARIMAX (11,1,1) 5111.8 (+00.5) 5181.8 (+11.9) 8.6935 8.8126 802.11ac ARIMA (0,1,0) 6708.1 (+145.9) 6712.5 (+113.0) 11.4084 11.4158 ARIMA (0,1,1) 6645.4 (+83.2) 6654.1 (+54.6) 11.3017 11.3166 ARIMA (2,1,0) 6618.1 (+55.9) 6631.2 (+31.7) 11.2552 11.2776 ARIMA (2,1,1) 6582.0 (+19.8) 6599.5 — 11.1939 11.2237 ARIMA (5,1,0) 6602.8 (+40.6) 6629.0 (+29.5) 11.2292 11.2739 ARIMA (5,1,1) 6570.2 (+08.0) 6600.8 (+01.3) 11.1737 11.2259 ARIMA (10,1,0) 6572.9 (+10.7) 6621.0 (+21.5) 11.1784 11.2603 ARIMA (10,1,1) 6562.2 — 6614.7 (+15.2) 11.1602 11.2495 ARIMAX (0,1,0) 6433.8 (+128.3) 6451.3 (+102.0) 10.9418 10.9716 ARIMAX (0,1,1) 6386.3 (+80.8) 6408.1 (+58.8) 10.8610 10.8982 ARIMAX (2,1,0) 6352.9 (+47.4) 6379.2 (+29.9) 10.8043 10.8490 ARIMAX (2,1,1) 6322.2 (+16.7) 6352.8 (+03.5) 10.7520 10.8041 ARIMAX (5,1,0) 6339.7 (+34.2) 6379.1 (+29.8) 10.7818 10.8488 ARIMAX (5,1,1) 6305.5 —6349.3 —10.7236 10.7981 ARIMAX (10,1,0) 6313.5 (+08.0) 6374.8 (+25.5) 10.7373 10.8415 ARIMAX (10,1,1) 6315.2 (+09.7) 6380.9 (+31.6) 10.7402 10.8518
6.1. Time-Series Forecasting 94 to the model, i.e., they are all related features that evolve through time and can be forecasted by a multivariate model. The Vector Autoregression (VAR) is a multivariate model that tries to forecast multiple time-series of endogenous variables simultaneously, and is given by the following formula2: y1,t=c1+φ11,1 y1,t−1+φ12,1 y2,t−1+e1,t y2,t=c2+φ21,1 y1,t−1+φ22,1 y2,t−1+e2,t where c1and c2are constants, e1,tand e2,tare random noise variables, and the φparameters are weights applied to the previous lag terms. In VAR models, the forecast of each variable takes into account the lags for every endogenous variable in the model, as seen in the previous equations, where y1,tconsiders the lags y1,t−1 and y2,t−1. Figure 53 shows the performance results for the VAR models, using different pvalues and considering throughput, distance, and signal strength as endogenous variables. The figure shows that the best performing models are the VAR(10) (p=10) for 802.11n, VAR(10) (p=10) and VAR(11) (p=11) for 802.11ac, and VAR(7) (p=7)and VAR(11) (p=11)for 802.11ad. While with previous models we were not able to obtain results consistently below the naïve threshold, with VAR we have multiple models outperforming the naïve random walk forecasts for 802.11n and 802.11ac. While we expect performance to gradually degrade as we forecast farther into the future, with VAR models the MAE seems to stabilize, as compared with the ARIMA and ARIMAX models. 6.1.4 Comparison and Discussion We selected the EWMA and Gaussian-weighted MA as the best models among the smoothing techniques, considering n=5(where nrepresents the number of lags). For ARIMA, ARIMAX, and VAR models, we chose the best performing configuration based on the testing set. Figure 54 shows the corresponding MAE and MASE results for the selected models. For 802.11n, the Gaussian-weighted MA, EWMA, ARIMA, and ARIMAX models show similar performance, with ARIMAX, in particular, beginning as the one with the best performance, but deteriorating at a faster rate than the remaining techniques. The same behavior is seen for 802.11ac, but with a larger disparity between EWMA, Gaussian-weighted MA, and ARIMA models. For both 802.11n and 802.11ac, the VAR (10) model consistently outperformed the remaining models and was the only model that managed to remain below the naïve threshold throughput the forecasting window (from 1 to 40 seconds). For 802.11ad, the results demonstrate that, independently of the model, it is always preferable to use the naïve forecasts. This is explained by the fact that the 802.11ad throughput comes in very short bursts and has long periods of non-connectivity. In this scenario, the time series models will not be able to predict any meaningful patterns, since it will appear as if throughput is constant but exhibits some outliers, i.e., connectivity periods. Despite the good results of the VAR models, by modelling our problem as a time series we are taking advantage of our experimental setup and introducing biases into our analysis. In a real-world scenario, the vehicle 2 Based on the notation used in https://otexts.com/fpp2/VAR.html
6.1. Time-Series Forecasting 95 Mean Absolute Scaled Error (MASE) 0 5 10 15 20 25 30 35 40 0 0.5 1 802.11n 0 5 10 15 20 25 30 35 40 0 0.5 1 802.11ac 0 5 10 15 20 25 30 35 40 Forecast (s) 0 1 2 802.11ad VAR(1) VAR(2) VAR(3) VAR(4) VAR(5) VAR(6) VAR(7) VAR(8) VAR(9) VAR(10) VAR(11) VAR(12) Figure 53: Performance of the VAR models of variable p.
6.1. Time-Series Forecasting 96 Table 12: VAR model evaluation based on AIC and BIC. Models AIC BIC Norm. AIC Norm. BIC 802.11n VAR (1) 11308 (+13.98) 11313 (+13.43) 19.2321 19.2396 VAR (2) 10400 (+04.83) 10409 (+04.37) 17.6879 17.7028 VAR (3) 10279 (+03.61) 10292 (+03.19) 17.4818 17.5041 VAR (4) 10222 (+03.03) 10240 (+02.67) 17.3850 17.4148 VAR (5) 10181 (+02.62) 10203 (+02.30) 17.3145 17.3517 VAR (6) 10104 (+01.84) 10130 (+01.57) 17.1836 17.2282 VAR (7) 10052 (+01.32) 10083 (+01.10) 17.0952 17.1473 VAR (8) 10029 (+01.09) 10064 (+00.91) 17.0554 17.1150 VAR (9) 9996.9 (+00.76) 10036 (+00.63) 17.0016 17.0686 VAR (10) 9966.7 (+00.46) 10010 (+00.36) 16.9501 17.0246 VAR (11) 9937.6 (+00.17) 9985.8 (+00.12) 16.9008 16.9826 VAR (12) 9921.1 — 9973.6 — 16.8726 16.9619 802.11ac VAR (1) 12441 (+12.83) 12446 (+12.35) 21.1585 21.1660 VAR (2) 11573 (+04.96) 11582 (+04.55) 19.6824 19.6973 VAR (3) 11445 (+03.80) 11458 (+03.43) 19.4648 19.4871 VAR (4) 11382 (+03.23) 11400 (+02.91) 19.3579 19.3877 VAR (5) 11344 (+02.88) 11366 (+02.60) 19.2929 19.3302 VAR (6) 11294 (+02.43) 11320 (+02.18) 19.2070 19.2517 VAR (7) 11263 (+02.15) 11294 (+01.94) 19.1548 19.2069 VAR (8) 11224 (+01.80) 11259 (+01.63) 19.0890 19.1486 VAR (9) 11188 (+01.47) 11228 (+01.35) 19.0277 19.0947 VAR (10) 11123 (+00.88) 11167 (+00.80) 18.9164 18.9908 VAR (11) 11063 (+00.34) 11111 (+00.30) 18.8142 18.8961 VAR (12) 11026 — 11078 — 18.7510 18.8403 802.11ad VAR (1) 16592 (+11.41) 16596 (+11.04) 28.2169 28.2243 VAR (2) 15568 (+04.53) 15577 (+04.22) 26.4761 26.4910 VAR (3) 15377 (+03.25) 15390 (+02.97) 26.1513 26.1736 VAR (4) 15312 (+02.81) 15330 (+02.57) 26.0410 26.0708 VAR (5) 15253 (+02.42) 15275 (+02.20) 25.9402 25.9774 VAR (6) 15211 (+02.14) 15238 (+01.95) 25.8695 25.9142 VAR (7) 15183 (+01.95) 15213 (+01.79) 25.8209 25.8730 VAR (8) 15142 (+01.67) 15177 (+01.55) 25.7512 25.8107 VAR (9) 15068 (+01.18) 15107 (+01.08) 25.6259 25.6929 VAR (10) 15025 (+00.89) 15068 (+00.82) 25.5520 25.6264 VAR (11) 14944 (+00.34) 14993 (+00.31) 25.4156 25.4975 VAR (12) 14893 — 14946 — 25.3286 25.4179
6.1. Time-Series Forecasting 97 Forecast (s) 0 5 10 15 20 25 30 35 40 0 2 4 6 8 802.11n Mean Absolute Error (MAE) EWMA(5) Gauss-MA(5) ARIMA(4,1,1) ARIMAX(4,1,1) VAR(10) 0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 802.11ac EWMA(5) Gauss-MA(5) ARIMA(2,1,1) ARIMAX(11,1,0) VAR(10) 0 5 10 15 20 25 30 35 40 0 10 20 30 802.11ad EWMA(5) Gauss-MA(5) ARIMA(5,1,0) ARIMAX(5,1,1) VAR(7) 0 5 10 15 20 25 30 35 40 0 0.5 1 Mean Absolute Scaled Error (MASE) EWMA (5) Gauss-MA (5) ARIMA (4,1,1) ARIMAX (4,1,1) VAR (10) 0 5 10 15 20 25 30 35 40 0 0.5 1 EWMA (5) Gauss-MA (5) ARIMA (2,1,1) ARIMAX (11,1,0) VAR (10) 0 5 10 15 20 25 30 35 40 0 0.5 1 1.5 EWMA (5) Gauss-MA (5) ARIMA (5,1,0) ARIMAX (5,1,1) VAR (7) Figure 54: Performance comparison of the EWMA, Gaussian-weighted MA, ARIMA, ARIMAX and VAR models, based on MAE and MASE metrics.
6.2. Spatial-Clustering Forecasting 98 would not move in circles with continuous connectivity; instead, it would begin by having no connectivity, and it would move along the road, from one end to the other, gaining connectivity and losing it again after distancing itself from the access point. Therefore, we consider these methods to be ill-suited with regards to our forecasting problem. 6.2 SPAT I A L -CLUSTERING FORECASTING An interesting alternative to time-series forecasting in our scenario is to take advantage of the georeferenced dataset to try to predict the vehicle’s path and to compute the throughput based on the average of the samples close-by. This method is similar to spatial clustering and KNN algorithms, and was used by Meireles et al. [35] for forecasting throughput in a similar setup as ours. The models developed relied on a database of samples that contain throughput, signal strength and mobility information, i.e., identification of the road segment, direction of movement (vehicle’s heading), distance between the vehicle and the access point, and whether the vehicle is moving or not. In this section we explore how to adapt these methods to our system and we will try to improve them. 6.2.1 Meireles Clustering Models Each of the models developed by Meireles et al. takes the current state of the vehicle and tries to identify the similar samples based on a set of criteria, such as signal strength. That is, given the set of samples S, identify the subset SK∈Sthat matches the current state of the vehicle based on criteria K. The goal is then to use the samples SK={sK 1,sK 2, ..., sK n}to forecast the throughput for jseconds into the future, where j=1, ..., winf. To do so, the models offset the SKsamples by jseconds, resulting in subset SKj ∈S, and the forecast is given by the average of throughput in subset SKj. The authors define the following models, based on the criteria sets: S Q :Match the current signal quality (e.g., signal strength) level. MRD+S Q :Match the road segment (R) and the vehicle’s direction (D) given as South, East, North, and West, as well as the signal quality level. MRDP:Match the road, direction, and position (P). The position is given by the distance between the vehicle and the AP. MRDP+S Q :Combine MRDP with SQ. MRDPS:Match the road, direction, position, and whether the vehicle is moving or not (S). Using a set of restrictive criteria may result in smaller sets of similar samples, or even empty ones. To avoid such cases, when a non-empty set is returned the process is repeated with less restrictive criteria. For example, if the MRDP+SQ method returns an empty set, the algorithm removes the signal strength criteria, leaving only
6.2. Spatial-Clustering Forecasting 99 the road, direction and position. This is a gradual process that continues until a non-empty set is found, or until it is not possible to reduce the set of criteria. 6.2.2 Methodology To adapt the spatial-clustering models to our scenario, we discarded the road segment criteria, since we consider a single road segment. Regarding the direction, we relied on the four main cardinal points and segmented the vehicle’s heading into four segments of 90°each. The distance and signal strength were both discretized into blocks of 10 m and 10 dBm. instead of the four cardinal points we used the heading in degrees rounded to the nearest 10. Because our setup runs from east to west, this change allows us to have less diversity in each subset SK, making for more accurate predictions if enough samples are found. The distance was also rounded to increments of 10 m. In [35], the throughput forecast was calculated by taking the arithmetic average of the SKj. This is a simple way of computing the throughput, but as samples are propagated into the future and jincreases, the set of SKj samples begin to diverge, where some of the samples are clearly less important than the remaining ones. To improve this method we may use weighted averaging, where weights are attributed to each sample and throughput. The generalized weighted average formula is given as: y=∑n i=0wiyi ∑n i=0wi where wiare a set of computed weights, and yiare the samples’ throughput values. The arithmetic average can be seen as a variation of the generalized weighted average where the weights are given by a uniform distribution, i.e., wi=cfor all i, where cis a positive constant. The weights of the generalized weighted average can be computed following multiple approaches. To exemplify, let us consider Figure 55, where the pulses depicted near the x axis were sampled from three distinct Gaussian distributions, and the goal is to attribute weights to each sample. A simple method is to calculate the mean and standard deviation of the sample set and use them to fit a Gaussian distribution from which to sample the weights. This approach is illustrated in Figure 55 in blue and corresponds to a Gaussian-weighted average, where the samples farther from the mean are given less weight than those closer to the mean. In red we have a depiction of the real distribution, obtained by using Kernel Density Estimation (KDE) with a Gaussian kernel. In the example, the Gaussian is fitted over a univariate set of samples that can represent throughput values. However, a more interesting approach would be to use the geographical coordinates of the samples (i.e., latitude and longitude) to fit a multivariate Gaussian from which to sample the weights. The idea behind this is that the samples correspond to the past trajectories, and if in one of those trajectories the vehicle moved at a higher speed, than that sample will diverge from the rest. By fitting a Gaussian over latitude and longitude, we predict that the vehicle’s position in the next jseconds will be in the center of the Gaussian, and consider samples closer to the center to be more relevant than those farther away. When running the forecasts, we shall compare not only the performance of each spatial-clustering method (with different sets of criteria), as well as how each method performs given different weighted average functions.
6.2. Spatial-Clustering Forecasting 100 −10 0 10 20 30 0.00 0.01 0.02 0.03 0.04 0.05 Density Gaussian Dist. Gaussian KDE Figure 55: Example of weight sampling based on probability density functions. For these functions we will use the described arithmetic average (uniformly distributed weights), a Gaussianweighted average applied to throughput, and another Gaussian-weighted average considering the geographical coordinates (latitude and longitude). Furthermore, we will also experiment with sampling of weights from a distribution estimated via KDE with a Gaussian kernel. Again, we will consider a model based on the univariate distribution of throughput and a second one based on the multivariate distribution of latitude and longitude. 6.2.3 Evaluation and Discussion Figure 56 shows the results for the SQ, MRD+SQ, MRDP, MRDP+SQ, and MRDPS models. Apart from these, we have also included the MRP+SQ, MRPD, MRPD+SQ, and MRPDS models, that use the distance between vehicle and access point as the fallback criteria — e.g., in MRDP if an empty set is returned the process is repeated without the distance (P) criteria, whereas for MRPD is it repeated without the direction (D) criteria. As previously mentioned, we ran each model considering an arithmetic average and various weighted-average functions, based on a Gaussian distribution and based on a non-parametric distribution estimated via KDE. We used the first half of the dataset as the historic set to which the models apply the corresponding criteria and filter an initial set of samples to propagate. The second half is used for testing, but is also incrementally added to the historic set, i.e.: the model begins by using half of the dataset, but ends with the entire dataset being used to identify relevant samples. For 802.11n and 802.11ac the results are consistent and depict MRDP+SQ and MRPD+SQ as the best performing mdeols, except for when sampling weights from a Gaussian distribution based on throughput, where MRDP and MRPD had the best results. The differences between the averaging functions seem to be negligible, with all models having very similar performance with different functions. Despite this, the arithmetic average
6.2. Spatial-Clustering Forecasting 101 Forecast (s) Mean Absolute Scaled Error (MASE) 802.11n 10 20 30 40 0 0.5 1 1.5 2Arith. Mean 10 20 30 40 0 0.5 1 1.5 2Guassian Mean 10 20 30 40 0 0.5 1 1.5 2Guassian KDE 10 20 30 40 0 0.5 1 1.5 2 Geo Guassian 10 20 30 40 0 0.5 1 1.5 2 Geo Guassian KDE SQ MRD+SQ MRDP MRDP+SQ MRDPS MRP+SQ MRPD MRPD+SQ MRPDS 802.11ac 10 20 30 40 0 0.5 1 1.5 2 10 20 30 40 0 0.5 1 1.5 2 10 20 30 40 0 0.5 1 1.5 2 10 20 30 40 0 0.5 1 1.5 2 10 20 30 40 0 0.5 1 1.5 2 802.11ad 10 20 30 40 0 0.5 1 1.5 10 20 30 40 0 0.2 0.4 0.6 0.8 1 10 20 30 40 0 0.2 0.4 0.6 0.8 1 1.2 10 20 30 40 0 0.5 1 1.5 10 20 30 40 0 0.5 1 Figure 56: MASE results for the spatial-clustering forecasting methods using uniform (arithmetic), Gaussianbased, and KDE-based-weighted average functions.
6.3. Discussion 102 function has the faster initial decline to MASE values below the 1.0 threshold compared with the remaining weighted functions. Regarding 802.11ad, the averaging functions have a higher impact than in previous standards, with models’ performance varying between functions. The throughput-based Gaussian-weighted average function shows the best results, with models remaining close to 0.6 MASE, expect for the SQ and MRP+SQ models with 0.7 MASE. The throughput-based KDE-weighted average function is next in line with MASE values of around 0.65 and 0.75. The position-based and arithmetic averages have similar results, with some of the models with MASE values at around 0.8 and others surpassing the naïve threshold of 1.0. Among the forecasting models, the MRD+SQ outperforms the remaining models when considering the Gaussian-weighted average, positioning itself as the best model combination. This model also has good performance for KDE-weighted functions (both univariate and multivariate), but is outclassed by MRDPS, MRPDS, MRDP+SQ and MRPD+SQ for multivariate Gaussianweighted and arithmetic averages. 6.3 DISCUSSION When analyzing the results for the time-series model, we must understand that these could only be used because to collect our dataset we moved along a closed circuit. In a real-world environment, a vehicle will go in and out of an access point’s transmission range, making it more difficult to model throughput as a time-series since it will not evolve as a function of time, and as a function of the vehicle’s movement and the channel’s conditions. This, naturally, introduces a bias, meaning that the performance of time-series methods in this section will be better than the reality. While spatial-clustering models are definitely more suitable to our setup and use case, it is still valuable to compare these two approaches and look into how we can improve spatial-clustering. Figure 57 compares the time-series with spatial-clustering MRDP and MRDP+SQ models using arithmetic average functions. The MAE values for the time-series models increase as the models forecast further into the future, but this is not the case for spatial-clustering, where the error increases slightly or remains stable throughout. The VAR seems to follow the same pattern as the remaining time-series models, but with much better performance and lower MAE. Furthermore, while the spatial-clustering is better in the long-term, the VAR model shows promising results in the 1to 5 s range, drawing very close to the naïve forecast results. This is to be expected from the time-series models, since they are likely to predict that the throughput for time t=1is similar to t=0, due to their use of past throughput values. The MRDP and MRDP+SQ performance over the time-series indicate that the use of the vehicle’s mobility, in terms of distance and direction, is largely beneficial. But so is the relationship between endogenous variables and simultaneous forecasting, explored by the VAR model and shown to produce good results, specially in the short-term, for both 802.11n/ac/ad. Intuitively, the short-term forecasts are the most decisive for the vehicle to choose which network it must use, conferring even greater importance to the VAR results. We believe that by integrating knowledge of mobility with endogenous variables, we might improve the forecasting accuracy. Both the time-series and the spatial-clustering models were trained and tested based on the actual throughput measurements; However, as stated in previous chapters, measuring throughput puts the network under a heavy
7.3. Discussion 109 Time (s) Throughput (Mbps) 0 50 100 History/Training Testing Measured Throughput SR-Estimated Throughput 0 100 200 300 History/Training Testing 0 500 1000 1500 2000 2500 3000 0 200 400 600 History/Training Testing Figure 60: Comparison of measured and SR-estimated throughput. 7.3 DISCUSSION We implemented the DP scheduling algorithm in the WiPerf’s Decision Making module, alongside the integrated estimation and forecasting models, following the pipeline illustrated in Figure 59. The setup is the same as described in Section 4.1, with two vehicles, one of them serving as a stationary access point, and three 802.11n, 802.11ac, and 802.11ad Wi-Fi access networks. We drove the vehicle following the same path and mobility patterns, with constant speed. For the demonstration, we estimated throughput with the SR model, applied the MRDP forecasting model on top of the estimates, and ran the scheduling algorithm considering a network switching time of 2 s. The estimation results are shown in Figure 60, where the red line corresponds to the real/measured throughput, and the green one to the SR-estimated throughput values. For 802.11ac, the estimation seems fairly accurate, being able to capture the moments with higher and lower throughput, and reaching an RMSE of 43.14. Regarding 802.11n, the RMSE is of 17.30, but the model had some problems identifying the high and low throughput instances; in fact, it seems that the model estimated high throughput when it was low, and vice-versa. As for 802.11ad, the model constantly estimated null values, not being able to accurately detect the moments of connectivity. These results can be better explained if we compare them with the estimation results using the WiPerf dataset, used to validate the SR model and shown in Figure 61. With the validation set, the SR model was able to capture the increasing and decreasing throughput patterns of 802.11n, and even managed to detect connectivity instances for 802.11ad, by identifying some of the periodic spikes. The most likely cause for the difference in
7.3. Discussion 110 Time (s) Throughput (Mbps) 0 50 100 Measured Throughput SR-Estimated Throughput 0 100 200 0 200 400 600 800 1000 1200 0 200 400 600 Figure 61: Comparison of measured with SR-estimated throughput values for the WiPerf dataset (available at [16]). performance between validation and demonstration datasets is differences in the scenarios themselves, i.e., in environmental conditions, road traffic, and possible differences in the placement of the AP on top of each vehicle. The scheduling results are shown in Figure 62, with the real-time decisions based on the predicted throughput. The decisions made based on the predicted throughput are depicted in green, while the optimal decisions are highlighted in red. The optimal approach is to favor the 802.11ad whenever the connectivity period and the throughput justify switching networks, and use the 802.11ac network as a fall-back. However, these opportunities are harder to identify when using the predicted throughput values, due to the instability of the 802.11ad network. Therefore, the prediction-based decision making algorithm relies on 802.11ac and rarely tries to switch to another network. The sudden drops to zero in the prediction-based approach indicate that the model predicted that switching networks would provide higher throughput; But many times this proved to be a mistake since it instantly reverted back to the 802.11ac network. The bottom graph shows the cumulative sum of throughput for optimal and predicted-throughput-based decision making, and also for throughput forecasts based on the real throughput measurements (without using estimation models). With optimal decision making we obtain an average throughput of 79.97 Mbit/s, which is only 4.66 % more than the prediction-based model, with an average of 76.41 Mbit/s. Furthermore, the total amount of data that can be offloaded following the prediction-based decisions is of 11.43 GB, only 4.43 % less than the 11.96 GB achieved with optimal decision making. If we take the estimation out of the picture and use the measured throughput, we can only improve the average throughput and the total amount of offloadable data by 2.22 % and 2.27 %, respectively. Looking back at Figure 60 and Figure 61, we see that despite the worse performance of estimation compared with the testing and validation datasets, we were still able to make accurate
7.3. Discussion 111 0 200 400 600 800 1000 1200 0 100 200 300 400 500 600 Throughput (Mbps) 802.11n 802.11ac 802.11ad Opt. Schedule Est. Schedule 0 200 400 600 800 1000 1200 Time (s) 0 2 4 6 8 10 12 Cumulative Throughput (Mbps) 104 Est. Tput Schedule Real Tput Schedule Opt. Schedule Figure 62: Dynamic programming results considering real and SR-estimated throughput. decisions. But this can be improved, through analyzing the collected dataset and understanding why our model behave so differently with the same physical setup and devices. The results show that our prediction-based decision-making model is highly efficient for the described setup, with a difference of less than 5 % compared with the optimal solution. Furthermore, we see that the SR model previously identified the connectivity moments with great accuracy: by correcting the model, we might draw even closer to the optimal solution.
8 CONCLUSION 8.1 CONCLUSIONS In this dissertation we reviewed the 5G system and ITS architectures with regards to how to implement a VRU detection use case leveraging MEC offloading. Through the study of the standards released by the 3GPP, we describe how 5G services and features — i.e., non-3GPP access, ATSSS, edge computing, and data analytics monitoring — may be used to support ITS applications. The 5G standards give a very detailed description of Non-3GPP use within the 5G system and how we can leverage both 3GPP and Non-3GPP through ATSSS. While ATSSS has yet to be integrated with MEC — since there is no support for MA PDU Sessions (used by ATSSS) to access MEC resources in LADNs — the 3GPP are planning to solve this issue in the current Release-17, where they have also extensively improve the monitoring capabilities of the 5G system through the NWDAF and new auxiliary NFs. Following the description of our use case, as well as an overview of the relevant standards, we developed the WiPerf framework. WiPerf is a system that allows vehicles to optimize the amount of data they can offload to edge computing platforms by leveraging Wi-Fi access points. More specifically, WiPerf provides vehicles with the ability to: (i) monitor the wireless communications in an heterogeneous wireless network environment; (ii) estimate the current throughput based on GPS and channel state information; (iii) predict the next 40 s of throughput values; (iv) select the best Wi-Fi access point based on estimated and predicted throughput. We implemented WiPerf in a physical setup, with two Wi-Fi access points placed on top of two vehicles. This setup was used to collect a vehicular Wi-Fi performance dataset, considering three 802.11n, 802.11ac, and 802.11ad Wi-Fi networks. The dataset was used to train and validate a decision-making system that integrates throughput estimation — using Symbolic Regression and Kalman Filters — and forecasting — with spatial-clustering — with a scheduling algorithm that determines the decisions that the vehicle must take to maximize offloading. The developed UKF-SR estimation models were compared with MLR, RF, NN, DT, and SVR models, having shown better performance for the 802.11n/ac/ad standards; Even the standalone SR models showed promising results, being able to compete with much more complex solutions and being at less than 10 % from the best solution for 802.11n/ac, and at 15.14 % for 802.11ad. For forecasting we compared time-series forecasting models, and spatial-clustering, with the latter showing the better results, despite the potential biases that benefit the time-series approach. With our integrated solution using SR and MRDP models (among the best 112
8.2. Future Work 113 for estimation and forecasting), the system was able to accurately choose the best network, deviating from the optimal solution by only less than 5 % (in terms of average throughput). 8.2 FUTURE WO R K In the future we plan to improve the UKF-SR algorithm by implementing automatic approaches for estimating the Kalman Filter’s noise matrices. We predict that this will allow the algorithm to better adapt to different environments and to improve its already promising results. Considering the forecasting methods, we intend to sub-divide the spatial-clustering procedure into (i) predicting the path that the vehicle will take, and then (ii) predicting the throughput of each point throughout the path. By dividing it into two smaller and more specific problems, we will be able to have a better understanding of the properties of the relevant data and the of algorithms themselves. Ultimately, this will give us a greater flexibility and insight into how to improve the procedure. Our goal for these algorithms if for them to be of fast computation, even in devices with limited computational and memory resources. Recent developments in computer science has given rise to the concept of weightless neural networks: advanced neural models in which neurons are given boolean inputs and produce boolean outputs [96]. We think that embedded systems can benefit from this new paradigm of light-weight neural models. Another avenue of future work is to formulate throughput estimation and/or forecasting as a problem solvable using weightless neural networks. We have also set our sights on enriching our physical setup. Having three co-located Wi-Fi networks makes the setup easier to implement, but it also limits it: when selecting an access point, the 802.11n will almost never be chosen since 802.11ac has a wide-enough range to cover the entire road and provides higher throughput. For the future we will try to distribute multiple access points throughout the road, making the access point selection much more challenging and allowing us to better analyze our models.
BIBLIOGRAPHY [1] ETSI, “EN 302 665 - V1.1.1 - Intelligent Transport Systems (ITS); Communications Architecture,” tech. rep., 2010. [2] ETSI, “TR 102 638 - V1.1.1 - Intelligent Transport Systems (ITS); Vehicular Communications; Basic Set of Applications; Definitions,” tech. rep., 2009. [3] ETSI, “EN 302 895 - V1.1.1 - Intelligent Transport Systems (ITS); Vehicular Communications; Basic Set of Applications; Local Dynamic Map (LDM),” tech. rep., 2014. [4] ETSI, “EN 302 637-2 - V1.4.1 - Intelligent Transport Systems (ITS); Vehicular Communications; Basic Set of Applications; Part 2: Specification of Cooperative Awareness Basic Service,” tech. rep., 2019. [5] ETSI, “EN 302 637-3 - V1.3.1 - Intelligent Transport Systems (ITS); Vehicular Communications; Basic Set of Applications; Part 3: Specifications of Decentralized Environmental Notification Basic Service,” tech. rep., 2019. [6] ETSI, “TR 103 562 - V2.1.1 - Intelligent Transport Systems (ITS); Vehicular Communications; Basic Set of Applications; Analysis of the Collective Perception Service (CPS); Release 2,” tech. rep., 2019. [7] ETSI, “TS 103 300-2 - V2.2.1 - Intelligent Transport Systems (ITS); Vulnerable Road Users (VRU) awareness; Part 2: Functional Architecture and Requirements definition; Release 2,” tech. rep., 2021. [8] ETSI, “TS 103 300-3 - V2.1.2 - Intelligent Transport Systems (ITS); Vulnerable Road Users (VRU) awareness; Part 3: Specification of VRU awareness basic service; Release 2,” tech. rep., 2021. [9] 3GPP, “TS 23.501 - V17.2.0 - System architecture for the 5G System (5GS),” tech. rep., 2021. [10] 3GPP, “TS 23.502 - V16.10.0 - 5G; Procedures for the 5G System (5GS),” tech. rep., 2021. [11] 3GPP, “TS 23.558 - V17.2.0 - Architecture for enabling Edge Applications,” tech. rep., 2021. [12] E. Pateromichelakis, F. Moggio, C. Mannweiler, P. Arnold, M. Shariat, M. Einhaus, Q. Wei, O. Bulakci, and A. De Domenico, “End-to-End Data Analytics Framework for 5G Architecture,” IEEE Access, vol. 7, pp. 40295–40312, 2019. [13] A. Azevedo and A. Aguiar, “Edge computing for VRU protection: empirical evaluation of 5G and 802.11 communication technologies,” Faculty of Engineering of University of Porto, 2021. [14] Outlines, “Car blueprints and vector drawings,” 2022. (accessed on 2022-06-16). 114
BIBLIOGRAPHY 115 [15] E. Wan and R. Van Der Merwe, “The unscented kalman filter for nonlinear estimation,” in Proceedings of the IEEE 2000 Adaptive Systems for Signal Processing, Communications, and Control Symposium (Cat. No.00EX373), pp. 153–158, 2000. [16] D. Teixeira, R. Meireles, and A. Aguiar, “WiPerf Vehicular Wi-Fi Performance Monitoring Dataset,” 2022. [17] WHO, “Road traffic injuries,” tech. rep., World Health Organization, 2021. [18] WHO, “Global Plan for the Decade of Action for Road Safety 2021-2030,” tech. rep., World Health Organization, 2021. [19] ETSI, “TS 101 539-1 - V1.1.1 - Intelligent Transport Systems (ITS); V2X Applications; Part 1: Road Hazard Signalling (RHS) application requirements specification,” tech. rep., 2013. [20] G. Pereira, P. M. Dorey, and A. Aguiar, “Poster: Cooperative Perception Platform for Intelligent Transportation Systems,” IEEE Vehicular Networking Conference (VNC), 2020. [21] ETSI, “Automotive Intelligent Transport Systems (ITS),” 2021. [22] ETSI, “TS 102 940 - V2.1.1 - Intelligent Transport Systems (ITS); Security; ITS communications security architecture and security management; Release 2,” tech. rep., 2021. [23] ETSI, “TS 103 175 - V1.1.1 - Intelligent Transport Systems (ITS); Cross Layer DCC Management Entity for operation in the ITS G5A and ITS G5B medium,” tech. rep., 2015. [24] ETSI, “EN 302 890-2 - V2.1.1 - Intelligent Transport Systems (ITS); Facilities Layer function; Part 2: Position and Time management (PoTi); Release 2,” tech. rep., 2020. [25] ETSI, “TS 102 637-2 - V1.2.1 - Intelligent Transport Systems (ITS); Vehicular Communications; Basic Set of Applications; Part 2: Specification of Cooperative Awareness Basic Service,” tech. rep., 2011. [26] ETSI, “TS 102 637-3 - V1.1.1 - Intelligent Transport Systems (ITS); Vehicular Communications; Basic Set of Applications; Part 3: Specifications of Decentralized Environmental Notification Basic Service,” tech. rep., 2010. [27] ETSI, “TR 103 300-1 - V2.2.1 - Intelligent Transport Systems (ITS); Vulnerable Road Users (VRU) awareness; Part 1: Use Cases definition; Release 2,” tech. rep., 2021. [28] SAE, “J2945/9: Vulnerable Road User Safety Message Minimum Performance Requirements,” tech. rep., 2017. [29] 3GPP, “TR 38.889 - V16.0.0 - Study on NR-based access to unlicensed spectrum,” tech. rep., 2018. [30] 3GPP, “TR 37.890 - V0.13.0 - Feasibility Study on 6 GHz for LTE and NR in Licensed and Unlicensed Operations,” tech. rep., 2021.
BIBLIOGRAPHY 116 [31] National Instruments, “Unlicensed Spectrum May Be Critical to 5G,” IEEE Spectrum, 2019. (accessed on 2021-12-01). [32] 3GPP, “3GPP TSG-RAN 86 Meeting: Study on supporting NR from 52 . 6 GHz to 71 GHz,” tech. rep., 2019. [33] 3GPP, “3GPP TSG-RAN 86 Meeting: Extending current NR operation to 71GHz,” tech. rep., 2019. [34] J. G. P. Rodrigues, A. Aguiar, and J. Barros, “SenseMyCity: Crowdsourcing an Urban Sensor,” 2014. [35] R. Meireles, A. Rodrigues, A. Stanciu, A. Aguiar, and P. Steenkiste, “Exploring Wi-Fi Network Diversity for Vehicle-To-Infrastructure Communication,” IEEE Vehicular Networking Conference, VNC, vol. 2020-Decem, 2020. [36] A. K. Salkintzis, “Interworking techniques and architectures for WLAN/3G integration toward 4G mobile data networks,” IEEE Wireless Communications, vol. 11, no. 3, pp. 50–61, 2004. [37] 3GPP, “TS 23.234 - V6.0.0 - 3GPP system to Wireless Local Area Network (WLAN) interworking; System description,” tech. rep., 2004. [38] 3GPP, “TS 24.302 - V13.4.0 - Universal Mobile Telecommunications System (UMTS); LTE; Access to the 3GPP Evolved Packet Core (EPC) via non-3GPP access networks; Stage 3,” tech. rep., 2016. [39] M. T. Lemes, C. B. Both, A. C. de Oliveira Jr., and K. V. Cardoso, “A Tutorial on Trusted and Untrusted non-3GPP Accesses in 5G Systems – First Steps Towards a Unified Communications Infrastructure,” 2021. [40] 3GPP, “TS 24.502 - V16.5.0 - 5G; Access to the 3GPP 5G Core Network (5GCN) via non-3GPP access networks,” tech. rep., 2020. [41] C. Kaufman, P. Hoffman, Y. Nir, P. Eronen, and T. Kivinen, “RFC 7296 - Internet Key Exchange Protocol Version 2 (IKEv2),” tech. rep., Internet Engineering Task Force, 2014. [42] F. Zampognaro, “ATSSS in 5G networks.” https://romars.tech/pubblicazioni/ atsss/, 2021. [43] O. Bonaventure, M. Boucadair, S. Gundavelli, S. Seo, and B. Hesmans, “RFC 8803 - 0-RTT TCP Convert Protocol,” tech. rep., Internet Engineering Task Force, 2020. [44] 3GPP, “TS 24.193 - V17.2.0 - 5G System; Access Traffic Steering, Switching and Splitting (ATSSS); Stage 3,” tech. rep., 2021. [45] 3GPP, “TS 23.548 - V17.2.0 - 5G System Enhancements for Edge Computing; Stage 2,” tech. rep., 2021. [46] 3GPP, “TS 23.288 - V17.2.0 - Architecture enhancements for 5G System (5GS) to support network data analytics services,” tech. rep., 2021.
BIBLIOGRAPHY 117 [47] R. Ferrus, O. Sallent, and J. Perez-Romero, “Data analytics architectural framework for smarter radio resource management in 5G radio access networks,” IEEE Communications Magazine, vol. 58, no. 5, pp. 98– 104, 2020. [48] H. Jain, V. Chamola, Y. Jain, and Naren, “5G network slice for digital real-time healthcare system powered by network data analytics,” Internet of Things and Cyber-Physical Systems, vol. 1, pp. 14–21, 2021. [49] E. Pencheva, I. Atanasov, I. Asenov, and V. Trifonov, “Provisioning of UE behavior prognostics at the network edge,” 2019 28th International Scientific Conference Electronics, ET 2019 - Proceedings, 2019. [50] ETSI MEC, “GS MEC 012 - V2.1.1 - Multi-access Edge Computing (MEC); Radio Network Information API,” tech. rep., European Telecommunications Standards Institute, 2019. [51] Y. Liu and J. Y. B. Lee, “An Empirical Study of Throughput Prediction in Mobile Data Networks,” pp. 1–6, 2016. [52] M. Mathis, J. Semke, J. Mahdavi, and T. Ott, “The Macroscopic Behavior of the TCP Congestion Avoidance Algorithm,” SIGCOMM Comput. Commun. Rev., vol. 27, no. 3, 1997. [53] J. Padhye, V. Firoiu, D. Towsley, and J. Kurose, “Modeling TCP Throughput: A Simple Model and its Empirical Validation,” ACM SIGCOMM Computer Communication Review, vol. 28, no. 4, pp. 303–314, 1998. [54] B. Sikdar, S. Kalyanaraman, and K. S. Vastola, “Analytic Models for the Latency and Steady-State Throughput of TCP Tahoe, Reno, and SACK,” IEEE/ACM Transactions on Networking, vol. 11, no. 6, pp. 959–971, 2003. [55] H. Yoshida, K. Satoda, and T. Murase, “Constructing stochastic model of TCP throughput on basis of stationarity analysis,” GLOBECOM - IEEE Global Telecommunications Conference, pp. 1544–1550, 2013. [56] Q. He, C. Dovrolis, and M. Ammar, “On the Predictability of Large Transfer TCP Throughput,” ACM SIGCOMM Computer Communication Review, vol. 35, no. 4, pp. 145–156, 2005. [57] B. Wei, W. Kawakami, K. Kanai, J. Katto, and S. Wang, “TRUST: A TCP Throughput Prediction Method in Mobile Networks,” 2018 IEEE Global Communications Conference, GLOBECOM 2018 - Proceedings, 2018. [58] N. Bui, F. Michelinakis, and J. Widmer, “A Model for Throughput Prediction for Mobile Users,” 20th European Wireless Conference, 2014. [59] M. Mattos, A. Rodrigues, R. Meireles, and A. Aguiar, “Geolocation-based Sector Selection for Vehicle-to- Infrastructure 802.11ad Communication,” pp. 1–7, 2021. [60] J. Xu, Z. Wei, Z. Lyu, L. Shi, and J. Han, “Throughput Maximization of Offloading Tasks in Multi-Access Edge Computing Networks for High-Speed Railways,” IEEE Transactions on Vehicular Technology, vol. 70, no. 9, pp. 9525–9539, 2021.
BIBLIOGRAPHY 118 [61] J. Du, F. R. Yu, X. Chu, J. Feng, and G. Lu, “Computation offloading and resource allocation in vehicular networks based on dual-side cost minimization,” IEEE Transactions on Vehicular Technology, vol. 68, no. 2, pp. 1079–1092, 2019. [62] Cisco, “Cisco annual internet report (2018-2023),” 2020. (accessed online). [63] Y. He, M. Chen, B. Ge, and M. Guizani, “On wifi offloading in heterogeneous networks: Various incentives and trade-off strategies,” IEEE Communications Surveys and Tutorials, vol. 18, pp. 2345–2385, 2016. [64] K. Yang, G. Iqbal, B. Qiu, and L. S. Dooley, “Combined sinr based vertical handoff algorithm for next generation heterogeneous wireless networks,” GLOBECOM - IEEE Global Telecommunications Conference, pp. 4483–4487, 2007. [65] K. Yang, I. Gondal, and B. Qiu, “Multi-dimensional adaptive sinr based vertical handoff for heterogeneous wireless networks,” IEEE Communications Letters, vol. 12, pp. 438–440, 2008. [66] K. S. Jang, J. S. Kim, H. J. Shin, and D. R. Shin, “A novel vertical handoff strategy for integrated ieee802.11 wlan/cdma networks,” Proceedings - Fourth Annual ACIS International Conference on Computer and Information Science, ICIS 2005, vol. 2005, pp. 616–621, 2005. [67] A. H. Zahran, B. Liang, A. Saleh, A. H. Zahran, B. Liang, and A. Saleh, “Signal threshold adaptation for vertical handoff in heterogeneous wireless networks,” Mobile Networks and Applications 2006 11:4, vol. 11, pp. 625–640, 2006. [68] M. Liu, Z. Li, X. Guo, and E. Dutkiewicz, “Performance analysis and optimization of handoff algorithms in heterogeneous wireless networks,” IEEE Transactions on Mobile Computing, vol. 7, pp. 846–857, 2008. [69] J. Chen, Y. Wang, Y. Li, and E. Wang, “Qoe-aware intelligent vertical handoff scheme over heterogeneous wireless access networks,” IEEE Access, vol. 6, pp. 38285–38293, 2018. [70] J. M. Marquez-Barja, H. Ahmadi, S. M. Tornell, C. T. Calafate, J. C. Cano, P. Manzoni, and L. A. DaSilva, “Breaking the vehicular wireless communications barriers: Vertical handover techniques for heterogeneous networks,” IEEE Transactions on Vehicular Technology, vol. 64, pp. 5878–5890, 2015. [71] D. Teixeira, R. Meireles, and A. Aguiar, “WiPerf: Wi-Fi Performance Monitoring Framework (version 1.0),” 2022. [72] D. Steinmetzer, D. Wegemer, and M. Hollick, “Talon Tools: The Framework for Practical IEEE 802.11ad Research,” 2017. (accessed on 2022-05-30). [73] OpenWrt, “OpenWrt Project.” (accessed online). [74] O. K. Isik, J. Hong, I. Petrunin, and A. Tsourdos, “Integrity Analysis for GPS-Based Navigation of UAVs in Urban Environment,” Robotics, vol. 9, no. 3, 2020.