文档介绍:华中科技大学
硕士学位论文
基于ARM的网络地址转换平台设计与实现
姓名:闻志专
申请学位级别:硕士
专业:电路与系统
指导教师:龙占超
20070608
摘要
随着计算机网络技术的发展,网络地址日益紧缺,已经被视为是一种宝贵的网
络资源。为了解决这个问题,网络地址转换技术被人们广泛使用,它将网络地址从
一个地址域映射到另一个地址域。网络地址转换是将私有 IP 地址保留出来供内部网
络重复使用,允许一个机构以一个 IP 地址出现在因特网上,以解决 IP 地址紧缺的
问题。实际中,通常使用路由器或者计算机配置网络地址转换软件将内部局域网接
入因特网,成本较高。针对这一状况,提出基于 ARM 处理器的的嵌入式系统解决方
案。该系统可以完成地址转换功能,适合办公室、家庭等应用场合。
本文以基于 S3C4510B 处理器的网络转换平台的软件设计和实现为主要内容,阐
述了其相关技术和具体实现流程,其中重点分析 uC/OS-II 嵌入式操作系统在 ARM
处理器上的移植和嵌入式网络协议栈在该操作系统上的实现。通过分析 uC/OS-II 的
任务调度切换机制和中断处理方式,并结合处理器的硬件资源和工作机制,对系统
的相关文件做必要的修改,实现系统内核在硬件平台上的移植;在网络通信协议方
面,选择 LwIP 协议栈实现系统的网络功能,根据 uC/OS-II 系统服务对相关的功能
做了具体的实现,实现了系统的网络服务;在地址转换功能设计中,采用网络地址
转换表的方案,为进一步的软件实现提供了参考。
本嵌入式网络地址转换系统平台设计与实现为后继的进一步开发打下了的基
础。
关键词 S3C4510B, 嵌入式操作系统, LwIP, 网络地址转换, ARM
I
Abstract
As the development work,IP which es less as time goes along
is thought to be costful resource. Network address translation technique is used widely by
peolpe to resolue this problem,it can change ip domain to anther ip work
address translation allows a instinution to appear as a ip on to resolve the puzzle
of ip ofen employ a router puter with nat software to make a inner
LAN access and this costs at this status,we put forward a solvtion of
embeded system based on S3C4510B resolvtion can also carry out the
function work address translation ,is suitable for r occasion such as offices,home.
Regarding the design and implement process work address translation platform
wich is based on S3C4510B processor,this paper describes relating technologe and its
specific processer,in which focuses on the transplant of the uC/OS-II embeded operating
system and the implement of work protocol on the operating system
analysing task scheduling mechanism and interruption manangement of
uC/OS-II system,basising hardware sources and work theory we change relating files of
uC/OS-II operating system and realize the target of system kerne