Linux Wi-Fi 驅動程式切割與效能分析

Linux Wi-Fi Driver Partitioning and Profiling

檔案

日期

2023

類型

語言

中文

摘要

近年來,Wi-Fi為了符合更多應用場景的需求,追求更大的頻寬、超低的延遲、超高的可靠性、精準的時鐘同步與更好的流量控制(QoS),而提出新的協定。並且隨著Wi-Fi標準的更新,演算法也越來越複雜,在軟硬體的實作上也更難找出效能瓶頸在哪,因此需要一個機制來進行線上效能分析,找出瓶頸位置。本論文是以Wi-Fi接取點 (Access Point)的系統為目標,提出一個即時(Realtime)分析Wi-Fi軟硬體效能瓶頸的機制。
現今,一般Wi-Fi接取點都是執行Linux作業系統,主系統透過Wi-Fi驅動程式和Wi-Fi硬體溝通。在Wi-Fi的架構下,媒體存取控制層(MAC)被細分成Low MAC與High MAC。Low MAC負責CSMA/CA與OFDM等即時運算的需求,通常以硬體實作。而High MAC負責802.11高層次的協定處理,通常以軟體實作。另外,也有諸多研究將原本應用在乙太網路的協定加入High MAC做使用,每個模組通常是以核心模組(Kernel Module)的方式加進Linux裡,若直接對整個Linux分析Wi-Fi效能瓶頸,還需要考慮虛擬位址對應的問題。因此,將Linux Wi-Fi相關的驅動程式負責計算的部份割切出來,並放進一個單純以實體位址執行軟體的Wi-Fi子系統(內含獨立處理器及瓶頸分析電路),將可以簡化即時效能分析。在本論文提出的架構下,原本Linux的Wi-Fi驅動程式則僅僅只用來提供虛擬位址轉換和主系統跟子系統的命令介面,不會是計算瓶頸。
本論文基於開源專案OpenWiFi與兩顆RISC-V處理器CVA6與Aquila。將OpenWiFi驅動從Linux系統切出,放進以Aquila為處理器的Wi-Fi子系統執行。之後以CVA6作為主系統處理器取代原本OpenWiFi 所支援的Arm Cortex-A9來執行Linux,並加上硬體Profiler來找出OpenWiFi系統的瓶頸。本論文最終在Digilent Genesys2 FPGA平台上進行驗證,並且依據Profiler提供的資訊對系統進行修改,提升效能。
In recent years, in order to meet the demands of various application scenarios, Wi-Fi has pursued new protocols aiming for greater bandwidth, ultra-low latency, ultra-high reliability, precise clock synchronization, and improved Quality of Service (QoS). As the Wi-Fi standards continue to evolve, algorithms have become complex, and identifying performance bottlenecks in both software and hardware implementations has become more challenging than ever. Therefore, there is a need for a mechanism to conduct performance analysis and identify bottlenecks in an online system. This thesis focuses on the Wi-Fi Access Point systems and proposes a real-time mechanism for analyzing Wi-Fi software and hardware performance bottlenecks.
Currently, most Wi-Fi Access Points run on the Linux operating system, with the main system communicating with Wi-Fi hardware through Wi-Fi drivers. In the architecture of Wi-Fi, the Media Access Control (MAC) layer is divided into the Low MAC and High MAC sublayers. Low MAC handles real-time operations like CSMA/CA and OFDM, typically implemented in hardware. On the other hand, High MAC manages higher-level 802.11 protocol processing, usually implemented in software. Additionally, several protocols originally designed for Ethernet networks have been incorporated into High MAC, and each module is often added to Linux as a Kernel Module. Analyzing Wi-Fi performance bottlenecks directly across the entire Linux system requires dealing with the issue of virtual address mapping. Therefore, the part of Linux Wi-Fi related drivers for computations are separated out and placed within a Wi-Fi subsystem that runs software purely based on the physical addresses. This subsystem contains an embedded processor and profiling analysis circuit, which simplifies real-time performance analysis. In the proposed architecture, the original Linux Wi-Fi drivers are used solely to provide virtual address translation and a command interface between the main system and the subsystem, and they do not perform bottleneck calculations.
This paper is based on the open-source project OpenWiFi and two RISC-V processors, the 64-bit CVA6 and the 32-bit Aquila processors. The OpenWiFi driver is separated from the Linux system and placed within the Wi-Fi subsystem and executed by the Aquila processor. The CVA6 processor replaces the original Arm Cortex-A9 in OpenWiFi to run Linux as the main system processor. A hardware profiler is integrated into the Wi-Fi subsystem to identify the bottlenecks in the OpenWiFi system. The proposed architecture is validated on the Digilent Genesys2 FPGA platform. The system is then modified based on information provided by the profiler to enhance performance.
顯示完整詮釋資料 統計資料

引用此條目

吳哲宇 (2023). Linux Wi-Fi 驅動程式切割與效能分析. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/352

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/352