隨著網路應用的日益成長,新的網路管理設備相繼產生,如入侵防禦系統(IPS)及防火牆(Firewall)。然而,伴隨著網路頻寬倍數於處理器(CPU)計算速度的快速成長,即使以現有最高效能的單一處理器仍無法即時處理龐大的網路資料流量。為了要使網路設備不成為整個的網路瓶頸,許多系統設計師選擇在對稱式多處理器平台(SMP)上進行研發網路設備,期許經由倍數化處理器數量來提升系統效能。然而,隨著處理器數量的增加,許多技術上的瓶頸相繼出現,增加了開發系統的難度以及延長了開發時間。如何克服這些瓶頸並且將網路流量有效率的平均分配到每一顆處理器上成為了重要的議題。 這篇論文主要在提出一個新的系統架構,適用於所有網路管理設備。我們提出了以多層的負載平衡器(Load balancers)來平均分派網路流量到不同的處理器進行運算,同時保持相同連線內的封包先後順序。為了要降低多處理器內Locking機制所帶來的系統負擔,並增加cache的一致性,我們提出Locking-Free的架構,藉由這樣的架構來簡化系統開發的難度。並且提出Early Filtering的機制,藉由快速處理Layer 3封包,來提升整體效能以及降低記憶體使用。隨著處理器數目的增加,更能突顯我們架構的優越性。在經由現實封包的模擬以及驗證下,實驗結果證實了我們的架構可以大幅的提升系統效能,平均化處理器使用率並簡化網路設備開發的流程。
The continuing Internet bandwidth explosion and the advent of new applications have created great challenges for network forwarding devices, e.g., IPS and Firewall. With network bandwidth doubling about twice as fast as CPU performance, the problem shows. Consequently, more and more systems designers are choosing to distribute the workload across multiple CPUs, using symmetric multi-processing (SMP). Workload distribution is critical to the performance of SMP architecture. This thesis introduces a novel system to balance the scheduled traffic over multiple processing cores maintaining in-order service. We present a multi-layered load-balancer which provides higher performance and better distribution as number of processors increases. Also, we introduce early filtering mechanism which can higher system performance, decrease memory usage and lower packet latency. Based on measurements of Internet traffic, the simulation results show that our mechanism provides lower average delay and better workload distribution compared with other load-balancing system.