Linux Wi-Fi 驅動程式切割與效能分析
顯示簡易詮釋資料 統計資料| 欄位 | 內容 | 語言 |
|---|---|---|
dc.catalog.0080 |
241015 | |
dc.catalog.00818 |
a | |
dc.catalog.00818 |
d | |
dc.catalog.00818 |
| | |
dc.catalog.00818 |
| | |
dc.catalog.0087 |
2023 | |
dc.catalog.020 |
平裝 | |
dc.catalog.041 |
chi | |
dc.catalog.041 |
eng | |
dc.catalog.300c |
30 | |
dc.contributor.advisor |
蔡淳仁 | |
dc.contributor.advisor |
Tsai, Chun-Jen | |
dc.contributor.author |
吳哲宇 | |
dc.contributor.author |
Wu, Che-Yu | |
dc.contributor.campus |
光復 | |
dc.contributor.college |
資訊學院 | |
dc.contributor.committee |
黃俊銘 | |
dc.contributor.committee |
吳建明 | |
dc.contributor.committee |
蔡淳仁 | |
dc.contributor.committee |
Huang, Chun-Ming | |
dc.contributor.committee |
Wu, Chien-Ming | |
dc.contributor.committee |
Tsai, Chun-Jen | |
dc.contributor.department |
資訊科學與工程研究所 | |
dc.contributor.dpcode |
CSAEG | |
dc.contributor.idpcode |
3551 | |
dc.contributor.studentid |
310551117 | |
dc.date.NCLavailable |
2025/09/01 | |
dc.date.USTavailable |
2025/09/01 | |
dc.date.issued |
2023 | |
dc.date.issuedROC |
112 | |
dc.date.paperavailable |
2025/09/01 | |
dc.date.schoolyear |
112 | |
dc.description.abstract |
近年來,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提供的資訊對系統進行修改,提升效能。 | |
dc.description.abstract |
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. | |
dc.description.abstractopendate |
2023/09/01 | |
dc.description.degree |
碩士 | |
dc.description.tableofcontents |
摘要 i Abstract iii 目錄 v 圖目錄 vii 表目錄 ix 一、 前言 1 1.1 研究動機 1 1.2 研究成果 2 1.3 論文架構 2 二、 相關研究 4 2.1 軟體定義無線電(SDR)與Wi-Fi架構介紹 4 2.2 OpenWiFi 介紹 5 2.2.1 OpenWiFi硬體架構 5 2.2.2 OpenWiFi軟體架構 8 2.3 TSN與W-TSN相關研究介紹 11 2.3.1 OpenWiFi與W-TSN 11 2.4 Aquila介紹 13 2.4.1 Aquila SoC架構介紹 13 2.5 CVA6介紹 14 2.5.1 CVA6 SoC架構 14 2.6 Profiler介紹 15 2.6.1 GProf介紹 15 2.6.2 SnoopP介紹 16 2.6.3 Airwolf介紹 17 2.6.4 Aquila Profiler介紹 18 三、 Wi-Fi子系統架構設計 21 3.1 AD9361 Driver移植 21 3.1.1 No-OS AD9361 Driver 21 3.2 OpenWiFi驅動移植 25 3.2.1 主系統與子系統介面 25 3.2.2 子系統與硬體介面 27 四、 移植Wi-Fi子系統到CVA6 28 4.1 Wi-Fi子系統IP 28 4.1.1 圖形化設計轉HDL型式注意事項 28 4.1.2 Wi-Fi子系統IP架構 29 4.2 Wi-Fi子系統掛接CVA6 30 4.3 CVA6軟體更改 32 五、 實驗結果 35 5.1 實驗環境 35 5.2 資源使用量 36 5.3 效能量測 37 5.3.1 量測方法 37 5.3.2 效能量測結果 37 六、 結論與未來展望 47 6.1 論文成果總結 47 6.2 未來展望 48 參考文獻 49 附錄一 52 | |
dc.identifier.citation |
[1] Xilinx. (2023, Jun. 30). Zynq-7000 SoC Technical Reference Manual (UG585) [Online]. Available: https://docs.xilinx.com/r/en-US/ug585-zynq-7000-SoC-TRM [2] Information technology—Telecommunications and information exchange between systems Local and metropolitan area networks—Specific requirements - Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications, IEEE standard 802.11-2016, 2016. [3] J. H. Shi. (2017). OpenOFDM: Synthesizable, Modular Verilog Implementation of 802.11 OFDM Decoder [Online]. Available: https://openofdm.readthedocs.io [4] E. Sourour, H. El-Ghoroury and D. McNeill, “Frequency offset estimation and correction in the IEEE 802.11a WLAN,” in IEEE 60th Vehicular Technology Conference, Los Angeles, CA, 2004, pp.4923-4927. [5] F. Zaruba and L. Benini, “The Cost of Application-Class Processing: Energy and Performance Analysis of a Linux-Ready 1.7-GHz 64-Bit RISC-V Core in 22-nm FDSOI Technology,” IEEE Transactions on Very Large Scale Integration (VLSI) Systems, vol. 27, issue 11, pp. 2629-2640, Nov. 2019. [6] OpenHW Group, ETH, Zurich, Switzerland. (2023). CVA6 [Online]. Available: https://github.com/openhwgroup/cva6 [7] Embedded Intelligent Systems Lab, NYCU, Hsinchu, Taiwan. (2022). The Aquila SoC [Online]. Available: https://github.com/eisl-nctu/aquila [8] X. Jiao, W. Liu, and M. Mehari. (2023). OpenWiFi [Online]. Available: https://github.com/open-sdr/openwifi [9] X. Jiao, W. Liu, M. Mehari, M. Aslam and I. Moerman, “openwifi: a free and open-source IEEE802.11 SDR implementation on SoC,” in IEEE 91st Vehicular Technology Conference, Antwerp, Belgium, 2020, pp.1-2. [10] J. Y. Wu, “The Design and Implementation of an SoC based on the RISC-V Instruction Set Architecture,” Mater thesis, Dept. C.S., NCTU, Hsinchu, Taiwan, 2019. [11] J. Zhao, B. Korpan, A. Gonzalez, and K. Asanovic, “Sonicboom: The 3rd generation berkeley out-of-order machine,” in Fourth Workshop on Computer Architecture Research with RISC-V(CARRV 2020), 2020. [12] A. Waterman, K. Asanovic, and SiFive Inc, The RISC-V Instruction Set Manual Volume I: Unprivileged ISA, Document Version 20191213, Dec. 2019. [Online]. Available: https://riscv.org/technical/specifications [13] A. Waterman, K. Asanovic, J. Hauser and SiFive Inc, The RISC-V Instruction Set Manual Volume II: Privileged Architecture, Document Version 20211203, Dec. 2021. [Online]. Available: https://riscv.org/technical/specifications [14] T. Newsome and M. Wachs, RISC-V External Debug Support Version 0.13.2, Mar. 2019. [Online]. Available: https://github.com/riscv/riscv-debug-spec/raw/release/riscv-debug-release.pdf [15] Arm. (2022). Arm Generic Interrupt Controller Architecture Specification GIC architecture version 3 and version 4 [Online]. Available: https://developer.arm.com/documentation/ihi0069 [16] Digilent. (2017, Aug. 24). Genesys 2 Reference Manual [Online]. Available: https://digilent.com/reference/programmable-logic/genesys-2/reference-manual [17] Xilinx. (2019, Aug. 6). ZC706 Evaluation Board for the Zynq-7000 XC7Z045 SoC User Guide [Online]. Available: https://docs.xilinx.com/v/u/en-US/ug954-zc706-eval-board-xc7z045-ap-soc [18] S. L. Graham, P. B. Kessler, and M. K. Mckusick, “GPROF: A call graph execution profiler,” ACM SIGPLAN Notices, vol. 17, no. 6, pp. 120–126, 1982. [19] L. Shannon, P. Chow, “Using Reconfigurability to Achieve Real-Time Profiling for Hardware/Software Codesign”, in 12th international symposium on Field Programmable Gate Arrays, 2004, pp. 190-199. [20] J. G. Tong, M.A.S.Khalid, “Profiling Tools for FPGA-Based Embedded Systems: Survey and Quantitative Comparison”, Journal of Computers, Vol. 3, No.6, June 2008, pp. 1-14. [21] T. Havinga, X. Jiao, W. Liu and I. Moerman, "Accelerating FPGA-Based Wi-Fi Transceiver Design and Prototyping by High-Level Synthesis," 2023 IEEE 31st Annual International Symposium on Field-Programmable Custom Computing Machines (FCCM), Marina Del Rey, CA, USA, 2023, pp. 219-219. [22] J. Sachs, G. Wikstrom, T. Dudda, R. Baldemair and K. Kittichokechai, "5G Radio Network Design for Ultra-Reliable Low-Latency Communication," in IEEE Network, vol. 32, no. 2, pp. 24-31, March-April 2018. [23] T. Adame, M. Carrascosa, and B. Bellalta, “Time-sensitive networking in IEEE 802.11be: On the way to low-latency Wifi 7,” Sensors, vol. 21, 2021, Art. no. 4954. [24] M. Aslam et al., "Hardware Efficient Clock Synchronization Across Wi-Fi and Ethernet-Based Network Using PTP," in IEEE Transactions on Industrial Informatics, vol. 18, no. 6, pp. 3808-3819, June 2022. [25] J. Haxhibeqiri, X. Jiao, P. A. Campos, I. Moerman and J. Hoebeke, "To Update or Not: Dynamic Traffic Classification for High Priority Traffic in Wireless TSN," 2023 IEEE 19th International Conference on Factory Communication Systems (WFCS), Pavia, Italy, 2023, pp. 1-8. | |
dc.identifier.uri |
https://hdl.handle.net/20.500.14371/352 | |
dc.language.iso |
中文 | |
dc.relation.page |
67 | |
dc.subject.keyword |
RISC-V | |
dc.subject.keyword |
Wi-Fi | |
dc.subject.keyword |
網路功能 | |
dc.subject.keyword |
效能分析 | |
dc.subject.keyword |
驅動切割 | |
dc.subject.keyword |
軟體定義無線電 | |
dc.subject.keyword |
Network functionality | |
dc.subject.keyword |
Performance analysis | |
dc.subject.keyword |
Driver partitioning | |
dc.subject.keyword |
SDR | |
dc.title |
Linux Wi-Fi 驅動程式切割與效能分析 | zh-TW |
dc.title |
Linux Wi-Fi Driver Partitioning and Profiling | en |
dc.type |
Thesis | zh-TW |
檔案
- 1OunFVhU2.pdf (3.13 MB, Adobe PDF)
所屬典藏: 資訊科學與工程研究所