TCP/IP是如何工作的(一)

TCP/IP是如何工作的(一)
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.
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 inte***ces. (To Be Continued)
TCP/IP是如何工作的
在过去几年中,写得最多的网络题目之一就是IP。但是,即使引起了这么多的注意,仍很少有(如果有的话)文章介绍此协议的基本工作原理,即路由器和第三层交换器是如何对IP信息起作用,以便在整个网络中传递以太网包的。
作为参考,请记住,IP是TCP/IP整套协议中的一个协议。
TCP完成开放系统互连(OSI)模型中传输层,即第四层的功能。它的主要责任是确保端至端之间的可靠连接。IP位于下一层,在OSI的网络层,即第三层,把每个包的发送者和接收者地址告诉一路上各个路由器。路由器和第三层交换器可以读出IP和其他的第三层协议。这些信息与路由表以及其他网络智能结合在一起,能通过TCP/IP在整个房间或围绕地球进行传递。
路由过程始于对发送端站而言是唯一的一个IP地址,端站可以被分配永久的IP地址,或者按需要从动态主机配置协议(DHCP)服务器或其他服务中借用。
每个包携带一个源地址,在目前(IPv4)规范下,包长度是32位。在报头中,每个包也携带最终目的地的IP地址。
如果发送端站确定目的地址不在本地,该包就被送到第一跳路由器,一般来说,该路由器是在附近的,并已被预先分配给发送者。
该路由器检查包的IP地址,查找路由表,看看目的端点是否位于本地(物理位置)网络,它通常叫做IP子网,IP子网一般被分配到路由器的每个网络接口上。
标签: 电脑应用技巧

0 条评论:
发表评论
订阅 博文评论 [Atom]
<< 主页