IP包分类算法研究 硕士毕业论文
原站著录信息
摘要
摘要:随着Internet规模的日益扩大,各种应用以及网络流量迅速增长,需要网络设备提供更高的带宽和数据分析处理能力。数据包分类技术对于防火墙、入侵检测、Qos、虚拟专用网、流量测量等方面的应用具有重要的意义,广泛应用在路由器、高层交换机等网络设备上。 IP包分类是根据IP包的多个域,从分类器数据库中匹配每个输入包,确定包转发规则的技术。IP包分类算法根据IP包头的各个域进行分类,把不同的包归为不同的流,以便为不同的流提供有差别的服务。 本文对IP包分类技术的研究背景、研究现状、应用等进行了系统的论文定制阐述。分析…
摘要:随着Internet规模的日益扩大,各种应用以及网络流量迅速增长,需要网络设备提供更高的带宽和数据分析处理能力。数据包分类技术对于防火墙、入侵检测、Qos、虚拟专用网、流量测量等方面的应用具有重要的意义,广泛应用在路由器、高层交换机等网络设备上。
IP包分类是根据IP包的多个域,从分类器数据库中匹配每个输入包,确定包转发规则的技术。IP包分类算法根据IP包头的各个域进行分类,把不同的包归为不同的流,以便为不同的流提供有差别的服务。
本文对IP包分类技术的研究背景、研究现状、应用等进行了系统的论文定制阐述。分析了现有的主流IP包分类算法的主要思想和优缺点,并对各种算法的查找性能和存储空间需求进行了比较。在此基础上,针对Hash包分类算法、AQT包分类算法、决策树包分类算法在大规则集、多维的应用环境下出现的多种问题提出了基于Hash和AQT的类决策树包分类算法。论文详细的给出了该算法的基本思想,预处理过程,包匹配过程,并对最优匹配和规则优先权给出了明确的定义。理论分析与仿真实验表明该算法是有效的。
Abstract
With the rapid development of Internet, various network traffics are emerging ,this requires the network device to provide wider bandwidth and quicker process ability. Packet classification is essential for policy-based firewall,intrusion detection,Qos,virtual private network,traffic billing and so others, and is widely deployed within network devices such as routers and high-level switches.
Packet classification is a technique to match each incoming packet at a muter against a database of classifier and specify forwarding rules for the packets.Generally speaking,in order to provide different service for different flow,IP packet classification algorithms classify the different packets into different flow according to the fields.
In this paper, it introduces IP packet classification technology research background current status, applications. Analysis of the leading IP packet classification algorithm's main idea and the advantages and disadvantages.In addition, to draw comparisons with various algorithms’s performance and storage space requirements.www.51lunwen.org On this basis, for the Hash algorithm, AQT algorithm, Decision Tree algorithm,whose issues in the large rule set and the application of multi-dimensional environment ,this paper shows a new IP packet classification algorithm which is base on Hash function , AQT and decision tree. Give a detailed description of the algorithm’s basic idea, pre-treatment process, the matching process, and the priority rules.Theoretical analysis and simulation results show that the algorithm is effective.
目 录
摘 要 I
ABSTRACT II
目 录 III
第一章 绪论 1
1.1 包分类技术研究背景和研究意义 1
1.2 包分类技术研究现状 1
1.3 本文研究内容和章节安排 2
第二章IP包分类的相关研究 4
2.1 IP包分类问题概述 4
2.1.1 IP包分类的相关术语 4
2.1.2 分类器和分类规则 5
2.1.3数据包分类技术的划分 6
2.1.4数据包分类的要求 6
2.2 IP包分类的性能评价指标 7
2.3 IP包分类算法的工作原理 8
第三章IP包分类的基本算法 10
3.1 传统的IP数据包分类算法 11
3.1.1 IP数据包分类算法的划分 11
3.1.2基于线性的分类算法 11
3.1.3 基于树型的算法(Trie-based Algorithm) 12
3.1.4基于哈希函数的算法 15
3.1.5并行查找算法 17
3.1.6启发式算法 18
3.1.7基于硬件的包分类方法 21
3.2 层次包分类划分方法 23
3.3 各种IP包分类算法的性能与分析 24
3.4本章小结 25
第四章 基于HASH和AQT的类决策树IP数据包分类算法 26
4.1 概述 26
4.1.1 Hash函数IP包分类算法 26
4.1.2 AQT数据包分类算法 28
4.1.3决策树IP包分类算法 29
4.2基于HASH和毕业论文AQT的类决策树IP数据包分类算法 29
4.2.1算法概述及组成 30
4.2.2算法具体实现 32
4.3仿真实验与算法性能分析 41
4.3.1 实验条件及结果 41
4.3.2 算法性能分析 43
4.4本章小结 44
第五章 结论及下一步的工作 45
5.1结论 45
5.2下一步的工作 45
致 谢 46
参考文献 47
附录A 50
参考文献
[1]Milani,Simone;Calvagno,Giancarlo;Bernardini,Riccardo;Rinaldo,Roberto;Alow-complexity packet classification algorithm for multiple description video streaming over IEEE802.11E networks Image Processing,2008.ICIP2008. 15th IEEE International Conference on 12-15 Oct.2008 :3072-3075 [2]Phang,Seongwww.51lunwen.org-Yee;Lee,HoonJae;Lim, Hyotaek; Design and Implementation of V6GEN and V6PCF: A Compact IPv6 Packet Generator and a New Packet Classification Framework for IPv6.Convergence and Hybrid Information Technology,2008,ICCIT '08,Third International Conference on Volume 2, 11-13 Nov,2008 :38- 43
[3]李振强,张圣亮,马严,赵晓宇.多决策树包分类算法[J].电子与信息学报,2008,30(4):
976-978
[4]李英毅,贾雨.用Hash表技术实现快速流分类[J].成都理工大学学报,2008,35(1):109
-111.
[5]王林.位并行多维数据包分类算法研究[J].计算机工程,2007,33(14):46-48
[6]甘利杰.路由器中的包分类算法研究[J].计算机科学,2006,33(11):54-56
[7]余磊.IP包分类算法研究[D].硕士学位论文,重庆邮电大学,2007:05-30
[8]彭芸,刘琼.Internet流分类方法的比较研究[J].计算机科学,2007,34(8):58-60
[9]谢文亮,王大星.基于FPGA技术的网络包头分类的研究[J].广州大学学报,2007,
6(3):51-53
[10]冯海涛.包分类算法研究与实现[D].博士学位论文,中国科学技术大学,2004:33-56
[11]简建红.快速IP包分类算法及实现[D].硕士学位论文,华南理工大学,2004:20-60
[12]江朝勇.IP数据包分类算法的研究[D].硕士学位论文,重庆邮电大学,2006:04-20
[13]关爱方,高德远.基于聚合折叠向量的多维包分类算法[J].计算机应用研究,2007,
24(9): 276-278
[14]戴雪龙,王永纲,张万生. 并行层压缩树包分类算法[J].中国科学技术大学学报,
2006,36(3):297-300
[15]周晓飞,杨静宇,姜文瀚. 核最近邻凸包分类算法[J].中国图象图形学报,200,12(7):
1209-1222
[16]关爱芳.网络处理器中包分类引擎设计[D].硕士学位论文,西北工业大学,2007:10-
39
[17]刘铎.快速包分类算法的研究[D].硕士学位论文,中国科学技术大学,2006:09-27
[18]钱萌,董小明等.基于统计决策树的包分类算法[J]. 华东理工大学学报,2008,34(3):
432-435
[19]徐恪,徐明伟,吴建平,喻中超.IP分类技术研究综述[J].小型计算机系统,2002,123
(7):773-779
[20]田立勤,林闯.报文分类技术的研究及其应用[J].计算机研究与发展,2003,40(6):
765-775
[21]冯东雷,张勇,白英彩.线速数据包输入处理技术[J].计算机研究与发展,2002,39(1):
41-48
[22]喻中超,徐恪,吴建平.一种适用于多维的快速IP分类算法[J].软件学报,2001,12(12)
:1801-1808
[23]徐恪,吴建平,徐明伟.算法设计与路由器技术[M].北京机械工业出版社,2003,519-
558
[24]V.Srinivasan.Fast and Efficient Internet Lookups[D].Ph.D.Thesis Washington Univer
-sity,1999:89-97
[25]M.Berg,M.Krevdd,M.Ovennars.Computational Geometry:Algorithmsand Application
[M],Springer-Verlag,2000:78-84
[26]A.Feldman,S.Muthukrishnan.Tradeoffs for packet classification[C],Proceedings of INFOCOM, march 2000:65-73
[27]S.Bellovin, w.Cheswick.Network firewall.IEEE Communications Magazine.1994,32
(9):50-57
[28]W.Weiss.QoS with differentiated services[J].Technical Journal,1998,3(4):48-62
[29]Y.Jyh-haw,C.Randy,N.Richard.Interdomain access control with policy routing[C].
Proceedings of the IEEE Computer Society Workshop on Future Trends of Distribut
-ed Computing Systems,Oct,1997:46-52
[30]R.Guerin,A.Orda,D.Williams.QoS routig mechanisms and OSPF. extensions [C].
Proceedings of IEEE Global Telecommunications Mini-Conference, Nov,1997:
1903-1908
[31]胡光岷,李乐民.流分类算法研究综述[J].通信技术,2002,25(1):52-54
[32]彭元喜.高速IP分组分类算法及其实现技术的研究[D].长沙国防科学技术大学研究生院,2001,24-57
[33]V.Srinivasan,S.Suri,G.Varghese,M.Waldvogel[C].Fast and Scalable Layer four Switching,Proceedings of ACM SIGCOMM,1998,203-214
[34]S.Nilsson, G.Karlsson.IP Address Lookup Using LC-Tries[J].IEEE Journal on Selected Areas in Communications,1999,17(6):1083-1092
[35]Sklower,Keith.A tree-based routing table for Berkeley.Unix[R] Technical Report.
Berkeley:University of California,1993
[36]M.DegerMark, A www.51lunwen
IP包分类是根据IP包的多个域,从分类器数据库中匹配每个输入包,确定包转发规则的技术。IP包分类算法根据IP包头的各个域进行分类,把不同的包归为不同的流,以便为不同的流提供有差别的服务。
本文对IP包分类技术的研究背景、研究现状、应用等进行了系统的论文定制阐述。分析了现有的主流IP包分类算法的主要思想和优缺点,并对各种算法的查找性能和存储空间需求进行了比较。在此基础上,针对Hash包分类算法、AQT包分类算法、决策树包分类算法在大规则集、多维的应用环境下出现的多种问题提出了基于Hash和AQT的类决策树包分类算法。论文详细的给出了该算法的基本思想,预处理过程,包匹配过程,并对最优匹配和规则优先权给出了明确的定义。理论分析与仿真实验表明该算法是有效的。
Abstract
With the rapid development of Internet, various network traffics are emerging ,this requires the network device to provide wider bandwidth and quicker process ability. Packet classification is essential for policy-based firewall,intrusion detection,Qos,virtual private network,traffic billing and so others, and is widely deployed within network devices such as routers and high-level switches.
Packet classification is a technique to match each incoming packet at a muter against a database of classifier and specify forwarding rules for the packets.Generally speaking,in order to provide different service for different flow,IP packet classification algorithms classify the different packets into different flow according to the fields.
In this paper, it introduces IP packet classification technology research background current status, applications. Analysis of the leading IP packet classification algorithm's main idea and the advantages and disadvantages.In addition, to draw comparisons with various algorithms’s performance and storage space requirements.www.51lunwen.org On this basis, for the Hash algorithm, AQT algorithm, Decision Tree algorithm,whose issues in the large rule set and the application of multi-dimensional environment ,this paper shows a new IP packet classification algorithm which is base on Hash function , AQT and decision tree. Give a detailed description of the algorithm’s basic idea, pre-treatment process, the matching process, and the priority rules.Theoretical analysis and simulation results show that the algorithm is effective.
目 录
摘 要 I
ABSTRACT II
目 录 III
第一章 绪论 1
1.1 包分类技术研究背景和研究意义 1
1.2 包分类技术研究现状 1
1.3 本文研究内容和章节安排 2
第二章IP包分类的相关研究 4
2.1 IP包分类问题概述 4
2.1.1 IP包分类的相关术语 4
2.1.2 分类器和分类规则 5
2.1.3数据包分类技术的划分 6
2.1.4数据包分类的要求 6
2.2 IP包分类的性能评价指标 7
2.3 IP包分类算法的工作原理 8
第三章IP包分类的基本算法 10
3.1 传统的IP数据包分类算法 11
3.1.1 IP数据包分类算法的划分 11
3.1.2基于线性的分类算法 11
3.1.3 基于树型的算法(Trie-based Algorithm) 12
3.1.4基于哈希函数的算法 15
3.1.5并行查找算法 17
3.1.6启发式算法 18
3.1.7基于硬件的包分类方法 21
3.2 层次包分类划分方法 23
3.3 各种IP包分类算法的性能与分析 24
3.4本章小结 25
第四章 基于HASH和AQT的类决策树IP数据包分类算法 26
4.1 概述 26
4.1.1 Hash函数IP包分类算法 26
4.1.2 AQT数据包分类算法 28
4.1.3决策树IP包分类算法 29
4.2基于HASH和毕业论文AQT的类决策树IP数据包分类算法 29
4.2.1算法概述及组成 30
4.2.2算法具体实现 32
4.3仿真实验与算法性能分析 41
4.3.1 实验条件及结果 41
4.3.2 算法性能分析 43
4.4本章小结 44
第五章 结论及下一步的工作 45
5.1结论 45
5.2下一步的工作 45
致 谢 46
参考文献 47
附录A 50
参考文献
[1]Milani,Simone;Calvagno,Giancarlo;Bernardini,Riccardo;Rinaldo,Roberto;Alow-complexity packet classification algorithm for multiple description video streaming over IEEE802.11E networks Image Processing,2008.ICIP2008. 15th IEEE International Conference on 12-15 Oct.2008 :3072-3075 [2]Phang,Seongwww.51lunwen.org-Yee;Lee,HoonJae;Lim, Hyotaek; Design and Implementation of V6GEN and V6PCF: A Compact IPv6 Packet Generator and a New Packet Classification Framework for IPv6.Convergence and Hybrid Information Technology,2008,ICCIT '08,Third International Conference on Volume 2, 11-13 Nov,2008 :38- 43
[3]李振强,张圣亮,马严,赵晓宇.多决策树包分类算法[J].电子与信息学报,2008,30(4):
976-978
[4]李英毅,贾雨.用Hash表技术实现快速流分类[J].成都理工大学学报,2008,35(1):109
-111.
[5]王林.位并行多维数据包分类算法研究[J].计算机工程,2007,33(14):46-48
[6]甘利杰.路由器中的包分类算法研究[J].计算机科学,2006,33(11):54-56
[7]余磊.IP包分类算法研究[D].硕士学位论文,重庆邮电大学,2007:05-30
[8]彭芸,刘琼.Internet流分类方法的比较研究[J].计算机科学,2007,34(8):58-60
[9]谢文亮,王大星.基于FPGA技术的网络包头分类的研究[J].广州大学学报,2007,
6(3):51-53
[10]冯海涛.包分类算法研究与实现[D].博士学位论文,中国科学技术大学,2004:33-56
[11]简建红.快速IP包分类算法及实现[D].硕士学位论文,华南理工大学,2004:20-60
[12]江朝勇.IP数据包分类算法的研究[D].硕士学位论文,重庆邮电大学,2006:04-20
[13]关爱方,高德远.基于聚合折叠向量的多维包分类算法[J].计算机应用研究,2007,
24(9): 276-278
[14]戴雪龙,王永纲,张万生. 并行层压缩树包分类算法[J].中国科学技术大学学报,
2006,36(3):297-300
[15]周晓飞,杨静宇,姜文瀚. 核最近邻凸包分类算法[J].中国图象图形学报,200,12(7):
1209-1222
[16]关爱芳.网络处理器中包分类引擎设计[D].硕士学位论文,西北工业大学,2007:10-
39
[17]刘铎.快速包分类算法的研究[D].硕士学位论文,中国科学技术大学,2006:09-27
[18]钱萌,董小明等.基于统计决策树的包分类算法[J]. 华东理工大学学报,2008,34(3):
432-435
[19]徐恪,徐明伟,吴建平,喻中超.IP分类技术研究综述[J].小型计算机系统,2002,123
(7):773-779
[20]田立勤,林闯.报文分类技术的研究及其应用[J].计算机研究与发展,2003,40(6):
765-775
[21]冯东雷,张勇,白英彩.线速数据包输入处理技术[J].计算机研究与发展,2002,39(1):
41-48
[22]喻中超,徐恪,吴建平.一种适用于多维的快速IP分类算法[J].软件学报,2001,12(12)
:1801-1808
[23]徐恪,吴建平,徐明伟.算法设计与路由器技术[M].北京机械工业出版社,2003,519-
558
[24]V.Srinivasan.Fast and Efficient Internet Lookups[D].Ph.D.Thesis Washington Univer
-sity,1999:89-97
[25]M.Berg,M.Krevdd,M.Ovennars.Computational Geometry:Algorithmsand Application
[M],Springer-Verlag,2000:78-84
[26]A.Feldman,S.Muthukrishnan.Tradeoffs for packet classification[C],Proceedings of INFOCOM, march 2000:65-73
[27]S.Bellovin, w.Cheswick.Network firewall.IEEE Communications Magazine.1994,32
(9):50-57
[28]W.Weiss.QoS with differentiated services[J].Technical Journal,1998,3(4):48-62
[29]Y.Jyh-haw,C.Randy,N.Richard.Interdomain access control with policy routing[C].
Proceedings of the IEEE Computer Society Workshop on Future Trends of Distribut
-ed Computing Systems,Oct,1997:46-52
[30]R.Guerin,A.Orda,D.Williams.QoS routig mechanisms and OSPF. extensions [C].
Proceedings of IEEE Global Telecommunications Mini-Conference, Nov,1997:
1903-1908
[31]胡光岷,李乐民.流分类算法研究综述[J].通信技术,2002,25(1):52-54
[32]彭元喜.高速IP分组分类算法及其实现技术的研究[D].长沙国防科学技术大学研究生院,2001,24-57
[33]V.Srinivasan,S.Suri,G.Varghese,M.Waldvogel[C].Fast and Scalable Layer four Switching,Proceedings of ACM SIGCOMM,1998,203-214
[34]S.Nilsson, G.Karlsson.IP Address Lookup Using LC-Tries[J].IEEE Journal on Selected Areas in Communications,1999,17(6):1083-1092
[35]Sklower,Keith.A tree-based routing table for Berkeley.Unix[R] Technical Report.
Berkeley:University of California,1993
[36]M.DegerMark, A www.51lunwen
