16
1 IPv6 路路路路路路路路路路 路路 路路路路路路路路路路路路路 路路 路路路 路路9601 路路路

IPv6 路由搜尋演算法的探討

Embed Size (px)

DESCRIPTION

IPv6 路由搜尋演算法的探討. 出處:中山大學資工研究所碩士論文 作者:張瑋哲 資碩一 9601 郇智喬. 目錄. 簡介 相關文獻 Modified Memory Access Algorithm for IPv6 模擬及結果 結論. 簡介. IPv4 遇到的問題 IPv4 上的 routing lookup 方法 Conventional algorithm Hardware and caching solutions Protocol based solution New algorithm. 相關文獻. IPv4 IPv6 - PowerPoint PPT Presentation

Citation preview

Page 1: IPv6 路由搜尋演算法的探討

1

IPv6路由搜尋演算法的探討

出處:中山大學資工研究所碩士論文作者:張瑋哲

資碩一 9601 郇智喬

Page 2: IPv6 路由搜尋演算法的探討

2

目錄

簡介 相關文獻 Modified Memory Access Algorithm for IPv6 模擬及結果 結論

Page 3: IPv6 路由搜尋演算法的探討

3

簡介

IPv4 遇到的問題 IPv4 上的 routing lookup 方法

Conventional algorithm Hardware and caching solutions Protocol based solution New algorithm

Page 4: IPv6 路由搜尋演算法的探討

4

相關文獻

IPv4 IPv6

文字表示法: X:X:X:X:X:X:X:X 例如 ABCD:EF10:2345:6789:0120:0204:0106:1045

Address type Unicast :Aggregatable Global , Link-Local , Site-Local Anycast Multicast 8bits 4bits 4bits 80bits 32bits

11111111 flags scope 0 IPv4 multicast address

Page 5: IPv6 路由搜尋演算法的探討

5

Page 6: IPv6 路由搜尋演算法的探討

6

相關文獻

Routing Lookup on IPv4 Dynamic Prefix Trie Fast Routing Tale Lookup Using CAM High-Performance IP Routing Table Lookup Using CPU Ca

ching Routing Lookups in Hardware at Memory Access Speeds Scalable High Speed IP Routing Lookups IP Lookups using Multiway and Multicolumn Search Small Forwarding Tables for Fast Routing Table Faster IP Lookups using Controlled Prefix Expansion

Page 7: IPv6 路由搜尋演算法的探討

7

相關文獻

Routing Lookup for IPv6 Scalable High Speed IP Routing Lookups IP Lookups using Multiway and Multicolumn Sear

ch Faster IP Lookups using Controlled Prefix Expan

sion

Page 8: IPv6 路由搜尋演算法的探討

8

名稱 技術基礎 Memory reference

(worst case)

Memory space

缺點 優點

DP-Trie Trie O( w ) Large 速度慢

CAM Hardware Depend on hardware design

Large 成本過高IPv6 上效能不好

搜尋速度快

High-Performance IP Routing Table Lookup Using CPU Caching

Hardware ? ? 相容性差IPv6 上必須大幅修改演算法

使用 CPU 快取速度快

Routing Lookups in Hardware at Memory Access Speeds

Hardware Depend on the level of table

Large 記憶體需求太高

記憶體讀取次數少

Binary Search on Prefix Length

New Algorithm

O( log w ) ? 更新耗時 速度快速度與表格大小無關

Multiway and Multicolumn Search

New Algorithm

15 memory access

? 記憶體讀取次數太多

Small Forwarding Tables New Algorithm

3-9 memory access

4-5 bytes /prefix+15.3KB

速度慢 記憶體需求小

Controlled Prefix Expansion New Algorithm

3 hash access

4 memory access

? 適當的 hash 方法難找

記憶體讀取次數少

Page 9: IPv6 路由搜尋演算法的探討

9

Modified Memory Access Algorithm for IPv6

目前 IPv6 位址只使用了 15% 位址分段

Multicast address Unicast address

總共切成 7 段一個 RT16 五個 RT8 一個 RT64

分成四種 Table RT16,RT8,RT8-end,RT64 Building Routing Table

Page 10: IPv6 路由搜尋演算法的探討

10

Page 11: IPv6 路由搜尋演算法的探討

11

模擬及結果

Test Pattern Design

24 bits 25-47 bits 48 bits 49-63 bits 64 bits 65-128bits

A n 4n 2n 8n 16n 1%

B n 4n 2n 16n 8n 1%

C n 8n 16n 4n 2n 1%

Page 12: IPv6 路由搜尋演算法的探討

12

模擬及結果

Number of Memory Access

Page 13: IPv6 路由搜尋演算法的探討

13

模擬及結果

Page 14: IPv6 路由搜尋演算法的探討

14

模擬及結果

Number of Memory Space

Page 15: IPv6 路由搜尋演算法的探討

15

模擬及結果

Routing Table 分層方法

Page 16: IPv6 路由搜尋演算法的探討

16

結論

用硬體或大量記憶體配置路由表是可行的