环球雅思学校,北京环球雅思,北京雅思学校
当前位置:中招首页 -> 外语培训 -> 外语天地 -> 行业英语 -> 计算机英语 -> 
TCP/IP是如何工作

2007-09-19 10:14:09 来源:未知

  How TCP/IP Works

  Over the past few years, one of the most written-about network topics has been IP. But even with all this attention, few, if any, stories have traced the protocol/'s basic workings, that is, how routers and Layer 3 switches act upon IP information to move Ethernet packets across the network.

  As a point of referenced, bear in mind that IP is a member of the TCP/IP protocol suite.
环球雅思-中国第一雅思品牌 名师阵容
国内最大的连锁外语培训机构,被评为全国十大知名学校,连续多年荣膺中国最具影响力培训集团称号...
北京新航道学校-胡敏“中国雅思之父”
多所世界名校,可根据意愿选择留学国家与学校、国内两年、国外两年,节省大量费用与一年学习时间
北京雅思学校-刘洪波、张皓亲自授课
北雅 IELTS 培训基地是全国最早、最权威进行 IELTS 考试培训研究的专业化、正规化机构,强大的师资。
上海朗阁雅思学校-南方雅思培训首选
国内最大的雅思培训基地。拥有上百位全职中外雅思专家,25人小班授课、中外专家联合执教、保分承诺
  韩企、日企定向培养 北京理工大学校本部招生
  中国人民大学计划外 北京文理研修学院招生

  TCP functions at the Open Systems Interconnection(OSI)transport layer, or Layer 4.Its chief responsibility is to ensure reliable end-to-end connectivity. IP, located one layer down, at the OSI network layer, or Layer 3, communicates the addresses of each packet/'s sender and receiver to the routers along the way. Routers and Layer 3 switches can read IP and other Layer 3 protocols .This information, combined with routing tables and other network intelligence, is all it takes to get across the room or around the world via TCP/IP.

  The routing process begins with an IP address that is unique to the sending end station .End stations may be assigned permanent IP addresses or they may borrow them as needed from a Dynamic Host Configuration Protocol(DHCP)server or other service.

  Each packet carries a source address, which under current(IPv4)specifications is 32 bits long .In its header, each packet also carries the IP address of the final destination.

  If the sending end station determines that the destination address is not local, the packet goes to a first-hop router, typically one that is close and has been preassigned to the sender.

  The router inspects the packet/'s IP address and performs a route table lookup to see if the destination end station resides on the local(physically connected)network, typically called an IP subnet .An IP subnet usually is assigned to each of the router/'s network interfaces.

  If the destination IP address is local, the router searches an internal store of IP addresses and local-device Media Access Control(MAC)addresses. This store is known as the Address Resolution Protocol(ARP)cache. ARP is the universal tool for matching IP addresses to MAC addresses. If the destination/'s MAC address appears, the router installs that MAC address in the packet header(removing its own MAC address because that/'s no longer needed)and sends the packet to the destination end station.

  In the event that the destination MAC address does not appear in the ARP cache ―it might have timed out, for instance― the router must broadcast an ARP request to the subnet referenced by the packet/'s destination IP address. The end station with that IP address responds, sending back its MAC address .The router updates its cache, installs the new MAC address into the packet header and launches the packet. If the route table lookup shows that the packet is destined for a non-local subnet, the router forwards the packet to the next-hop router using the next-hop router/'s MAC address. Routing tables are continuously built and rebuilt by intelligent discovery protocols, such as Routing Information Protocol or Open Shortest Path First(OSPF). Each router/'s routing table shows the best route to the destination address; for addresses that may be several hops away, it shows the best next-hop router.

  在过去几年中,写得最多的网络题目之一就是IP。但是,即使引起了这么多的注意,仍很少有(如果有的话)文章介绍此协议的基本工作原理,即路由器和第三层交换器是如何对IP信息起作用,以便在整个网络中传递以太网包的。

  作为参考,请记住,IP是TCP/IP整套协议中的一个协议。

  TCP完成开放系统互连(OSI)模型中传输层,即第四层的功能。它的主要责任是确保端至端之间的可靠连接。IP位于下一层,在OSI的网络层,即第三层,把每个包的发送者和接收者地址告诉一路上各个路由器。路由器和第三层交换器可以读出IP和其他的第三层协议。这些信息与路由表以及其他网络智能结合在一起,能通过TCP/IP在整个房间或围绕地球进行传递。

  路由过程始于对发送端站而言是唯一的一个IP地址,端站可以被分配永久的IP地址,或者按需要从动态主机配置协议(DHCP)服务器或其他服务中借用。

  每个包携带一个源地址,在目前(IPv4)规范下,包长度是32位。在报头中,每个包也携带最终目的地的IP地址。

  如果发送端站确定目的地址不在本地,该包就被送到第一跳路由器,一般来说,该路由器是在附近的,并已被预先分配给发送者。

  该路由器检查包的IP地址,查找路由表,看看目的端点是否位于本地(物理位置)网络,它通常叫做IP子网,IP子网一般被分配到路由器的每个网络接口上。

  如果目的IP地址为本地的,该路由器就搜寻存储着IP地址和本地设备介质访问控制(MAC)地址的内部存储器,这个存储器叫作地址分辨协议(ARP) 高速缓存。ARP是把IP地址映射到MAC地址的通用工具。如果目的地的MAC地址出现了,该路由器就把这个MAC地址装进包的报头中(取掉自己的MAC 地址,因为不再需要它了),把该包送到目的端站。

  万一目的地的MAC地址没有出现在ARP高速缓存中(例如,有可能超时了),路由器必须向与包的目的IP地址有关的子网广播一个ARP请求,拥有此IP地址的端站就作出响应,把MAC地址发送回去,路由器因此更新高速缓存,把新的MAC地址装进包的报头并发送该包。

  如果查找路由表显示包的目的地不在本地子网,路由器就利用下一跳路由器的MAC地址把包转发给下一跳路由器。路由表由智能发现协议,如路由信息协议或者开放最短路径优先协议,不断地被建立和再建立。每个路由器的路由表显示了到达目的地址的最佳路径,对于要有几跳的地址,它显示出最佳的下一跳路由器。

   关键词  >>计算机英语
 
四级考试
BEC 四六级新托福
北京雅思学校
北京雅思学校
北京环球雅思学校
北京环球雅思学校
北京新航道学校
新航道学校秋季课程
李阳疯狂英语学校
李阳疯狂英语学校
上海环球雅思学校
上海环球雅思学校

  ■ 最新推荐课程

 ·新航道雅思高中生5.5保分班  ·雅思中学生半年脱产班保6分  ·北京雅思高中生5.5分保分班
 ·新航道雅思6分慢速精讲保分班  ·环球雅思中学生6段式保6分班  ·北京雅思基础6分保分培训班
 ·新航道雅思6.5慢速精讲保分班  ·环球雅思6.5高分保分培训班  ·北京雅思6.5高分保分培训班
相关文章
 ·计算机英语之“windows”
 ·常见计算机英语词汇解释(2)
 ·常见计算机英语词汇解释(1)
 ·计算机英语知识:Email地址中的@符号含义
 ·常见计算机英语词汇解释
论坛热贴
 【发表评论】
 昵称:
 内容:
 
 【最新评论】 更多...
中招在线版权与免责声明:
① 凡本站注明“稿件来源:中招在线”的所有文字、图片和音视频稿件,版权均属本网所有,任何媒体、网站或个人未经本网协议授权不得转载、链接、转贴或以其他方式复制发表。已经本站协议授权的媒体、网站,在下载使用时必须注明"稿件来源:中招在线",违者本站将依法追究责任。
② 本站注明稿件来源为其他媒体的文/图等稿件均为转载稿,本站转载出于非商业性的教育和科研之目的,并不意味着赞同其观点或证实其内容的真实性。如转载稿涉及版权等问题,请作者在两周内速来电或来函联系。
热点聚焦
  环球雅思半年脱产班  
英语实用信息
本周院校排行榜
最新资源排行榜
 
关于中招 - 广告服务 - 网站建设 - 版权声明 - 联系我们 - 英才加盟 - 网站地图 - 友情链接 - 免责声明 - 设为首页
Copyright @ 2005-2008 zhongzhao.com All Rights Reserved.
中招在线 版权所有