透過您的圖書館登入
IP:3.133.148.77
  • 學位論文

低儲存空間消耗的錄製真實流量與回復有效狀態的重播真實流量技術

Low-Storage Capture and Loss-Recovery Stateful Replay of Real Flows

指導教授 : 林盈達

摘要


網路產品在真實流量上仍會遇到許多實驗室模擬網路流量測試所無法找到的問題,而這些問題可藉由重播真實流量的測試來找到。由於真實流量由許多真實使用者所產生,在錄製時會快速消耗儲存空間使得錄製時間無法很長,與漏錄影響重播的準確性。在重播時要追蹤流量的有效狀態以應付待測物對流量的反應,並且要能很快的重製事件的發生以便開發者除錯或尋找原因。因此本論文以(N, M, P)錄製機制針對每條連線只錄製連線的前N位元與錄製剩餘P個封包的前M幾位元來節省儲存空間,達到節省87%的儲存空間但保留99.74%的攻擊事件。並且實作實作SocketReplay重播工具以回復漏錄重播追蹤TCP串流使得漏錄對觸發事件的數量成比例的下降而不會驟降,有效狀態的重播使待測物認為流量是真實的,選擇性的重播以漸增方式階段性尋找造成事件的少數流量,達到重製事件僅需從千條的連線中挑出幾十條連線重製攻擊或病毒的事件。

關鍵字

流量重播 流量錄製 真實流量 測試 缺陷

並列摘要


Model-based traffic generated in the laboratory might not trigger some device defects found only by replaying traffic flows. However, capturing real flows might result in high storage cost and capture loss; the latter affects the accuracy of replay. Replaying real flows should be accurate and also stateful enough to adapt to device reaction. It should reproduce a defect efficiently in helping developers to identify the flows triggering the defect. Therefore, this work first presents the (N, M, P) capture scheme to capture N bytes per flow of data and M bytes of P packets after the N bytes. This scheme reduces 87% storage cost while retaining 99.74% of attack traffic. Next we develop a tool named SocketReplay with the mechanisms of loss-recovery, stateful replay, and selective replay to track TCP sequence numbers to identify capture loss, recover these incomplete flows, follow the TCP/IP protocol behavior, and incrementally select flows to replay. Numerical results show that SocketReplay retains the accuracy and statefulness in triggering device defects and could reduce replayed flows from thousands to tens.

並列關鍵字

traffic replay traffic capture real flows testing defects

參考文獻


[1] A. Turner, Tcpreplay, http://tcpreplay.synfin.net/trac/.
[6] A. Turner, “Flowreplay design notes,” http://synfin.net/papers/flowreplay.pdf.
[7] Weidong Cui, Vern Paxson, Nick C. Weaver, and Randy H. Katz., “Protocol-Independent Adaptive Replay of Application Dialog,” in Proceedings of the 13th Annual Network and Distributed System Security Symposium (NDSS), Feb 2006.
[9] F. Schneider, J. Wallerich, A Feldmann, “Packet Capture in 10-Gigabit Ethernet Environments Using Contemporary Commodity Hardware,” Passive and Active Measurement Conference , April 2007.
[10] S. Kornexl, V. Paxson, H. Dreger, A. Feldmann and R. Sommer, “Building a Time Machine for Efficient Recording and Retrieval of High-Volume Network Traffic,” in Proceedings of ACM Internet Measurement Conference, October 2005.

延伸閱讀