摘要在互联网不断发展的背景下,IPv4 地址已逐渐趋于匮乏,互联网发展必须满足有更 大地址空间、更高安全性、更好网络质量和更好地支持移动性等要求。当前是 IPv4 向 IPv6 过渡过程中不可逾越的一个重要阶段。 在 IPv4 向 IPv6 过渡的背景下研究传统路 由器的工作原理,不但有很强的理论价值,而且还极具现实意义。80379
本文首先对目前国内外的 IPv6 研究现状进行了调查,并对 IPv4 和 IPv6 以及路由 器的基本工作原理(路由选择、分组处理)进行了简要介绍。然后,从任务需求出发, 简要介绍了一下 RIP 协议,用 c++正确实现了 RIP 算法并且搭建运用 RIP 算法更新路由 表的验证方案。最后,着重介绍并研究 CIDR 的原理,用 c++正确实现了支持 CIDR 的分 组转发算法并且展示了支持 CIDR 的分组转发算法的工作流程,支持友好的人机交互。
毕业论文关键词:IPv6 路由器 RIP CIDR 分组转发
Abstract With the continuous development of the Internet, IPv4 address is on the verge of lack, the development of the Internet requires a larger address space and higher security, better network quality and better mobility support。 The current Internet transition from IPv4 to IPv6 is an important stage which is insurmountable。 Research on the principle of traditional router in the evolution of IPv4 to IPv6 background not only has a strong theoretical value, but also has great practical significance。
The main work of this paper is about the principle of traditional router。 Firstly,carrying out an investigation about the current domestic and foreign research status of IPv6,then IPv4 and IPv6 as well as the basic principle of the router (routing selection, packet processing) is briefly introduced。 Then starting from the mission requirements, the RIP protocol is briefly
introduced,using C++ to achieve the correct RIP algorithm and to update the routing table to
verify the program。 Finally,a brief introduction of the CIDR, using C++ to achieve a correct packet forwarding algorithm to support CIDR and demonstrate the workflow which shows support of CIDR packet forwarding algorithm , to support friendly human-computer interaction。
Keywords: ipv6; router; Rip; CIDR; packet forwarding
目录
第一章 绪论 1
1。1 引言 1
1。3 IP 层的过渡策略与技术 3
1。3。1 双协议栈技术 4
1。3。2 隧道技术 6
1。3。3 翻译技术 7
1。4 研究内容 8
第二章 路由器基础 10
2。1 路由器的概念 10
2。2 路由器的基本工作原理 10
2。2。1 路由选择 10
2。2。2 分组处理 13
第三章 路由选择协议 RIP 介绍及其算法实现 15
3。1 RIP 协议