传输控制协议和网际协议的研究与应用计算机系毕业论文中英文翻译对照.doc

上传人:laozhun 文档编号:2400612 上传时间:2023-02-17 格式:DOC 页数:26 大小:72.50KB
返回 下载 相关 举报
传输控制协议和网际协议的研究与应用计算机系毕业论文中英文翻译对照.doc_第1页
第1页 / 共26页
传输控制协议和网际协议的研究与应用计算机系毕业论文中英文翻译对照.doc_第2页
第2页 / 共26页
传输控制协议和网际协议的研究与应用计算机系毕业论文中英文翻译对照.doc_第3页
第3页 / 共26页
传输控制协议和网际协议的研究与应用计算机系毕业论文中英文翻译对照.doc_第4页
第4页 / 共26页
传输控制协议和网际协议的研究与应用计算机系毕业论文中英文翻译对照.doc_第5页
第5页 / 共26页
点击查看更多>>
资源描述

《传输控制协议和网际协议的研究与应用计算机系毕业论文中英文翻译对照.doc》由会员分享,可在线阅读,更多相关《传输控制协议和网际协议的研究与应用计算机系毕业论文中英文翻译对照.doc(26页珍藏版)》请在三一办公上搜索。

1、传输控制协议和网际协议的研究与应用一、 简介作为 Internet 的网络协议, TCP/IP 的成功在很大程度上归功于它将不同大小的网络和不同类型的系统连接在一起的能力。这些网络被强制定义为具有预定义大小的三个主要类(还有其他一些类别),每一类都可以由系统管理员分成更小的子网。子网掩码用于将 IP 地址分成两个部分。一部分标识主机(计算机),另一部分标识它所属的网络。查看 IP(Internet 协议)地址并研究它的组织方式可以帮助您更好地理解 IP 地址和子网掩码的工作方式。在 Microsoft Windows 计算机上配置 TCP/IP 协议时, TCP/IP 配置设置中需要 IP 地

2、址和子网掩码,通常还需要一个默认网关。要正确配置 TCP/IP ,有必要了解 TCP/IP 网络的寻址方式以及网络和子网的划分方式。本文旨在对 IP 网络和子网的概念进行一般性介绍。本文结尾包含一个术语表。IP 地址包括网络和主机,它是一个 32 位数字,它唯一地标识 TCP/IP 网络上的主机(计算机或其他设备,如打印机或路由器)。IP 地址通常以点分十进制格式表示,四个数字由句点分隔,例如 192.168.123.132。要了解子网掩码如何用于区分不同的主机、网络和子网,请查看以二进制表示的 IP 地址。例如,点分十进制 IP 地址 192.168.123.132 在二进制表示法中为 32

3、 位数字:110000000101000111101110000100此数字的含义可能很难理解,因此它被分成四个部分,每个部分有八个二进制数字。这些八位部分称为八位组。示例 IP 地址于是变成:11000000.10101000.01111011.10000100。此数字表示的含义只是稍微明白了一点,因此在大多数应用中,会将二进制地址转换为点分十进制格式 (192.168.123.132)。点分十进制数字是从二进制转换为十进制表示法的八位组。二、 IP的基本工作原理作为参考,请记住,IP是TCP/IP整套协议中的一个协议。TCP完成开放系统互连(OSI)模型中传输层,即第四层的功能。它的主要责

4、任是确保端至端之间的可靠连接。IP位于下一层,在OSI的网络层,即第三层,把每个包的发送者和接收者地址告诉一路上各个路由器。路由器和第三层交换器可以读出IP和其他的第三层协议。这些信息与路由表以及其他网络智能结合在一起,能通过TCP/IP在整个房间或围绕地球进行传递。路由过程始于对发送端站而言是唯一的一个IP地址,端站可以被分配永久的IP地址,或者按需要从动态主机配置协议(DHCP)服务器或其他服务中借用。每个包携带一个源地址,在目前(IPv4)规范下,包长度是32位。在报头中,每个包也携带最终目的地的IP地址。如果发送端站确定目的地址不在本地,该包就被送到第一跳路由器,一般来说,该路由器是在

5、附近的,并已被预先分配给发送者。如果发送端站确定目的地址不在本地,该包就被送到第一跳路由器,一般来说,该路由器是在附近的,并已被预先分配给发送者。该路由器检查包的IP地址,查找路由表,看看目的端点是否位于本地(物理位置)网络,它通常叫做IP子网,IP子网一般被分配到路由器的每个网络接口上。如果目的IP地址为本地的,该路由器就搜寻存储着IP地址和本地设备介质访问控制(MAC)地址的内部存储器,这个存储器叫做地址分辨协议(ARP)高速缓存。ARP是把IP地址映射到MAC地址的通用工具。如果目的地的MAC地址出现了,该路由器就把这个MAC地址装进包的报头中(取掉自己的MAC 地址,因为不再需要它了)

6、,把该包送到目的端站。万一目的地的MAC地址没有出现在ARP高速缓存中(例如,有可能超时了),路由器必须向与包的目的IP地址有关的子网广播一个ARP请求,拥有此IP地址的端站就作出响应,把MAC地址发送回去,路由器因此更新高速缓存,把新的MAC地址装进包的报头并发送该包。如果查找路由表显示包的目的地不在本地子网,路由器就利用下一跳路由器的MAC地址把包转发给下一跳路由器。路由表由智能发现协议,如路由信息协议或者开放最短路径优先协议,不断地被建立和再建立。每个路由器的路由表显示了到达目的地址的最佳路径,对于要有几跳的地址,它显示出最佳的下一跳路由器。为了让 TCP/IP 广域网 (WAN) 以一

7、个网络集的形式高效工作,在网络间传递数据包的路由器并不知道信息包的目标主机的确切位置。路由器只知道主机是哪一个网络的成员,并使用存储在路由表中的信息来确定如何将数据包送达目标主机的网络。当数据包被传送到目标网络后,该数据包就会被传送到相应的主机。为了让此过程顺利进行, IP 地址分为两个部分。 IP 地址的前一部分作为网络地址,后一部分作为主机地址。以 192.168.123.132 为例,将它分为这两个部分之后,会得到:(192.168.123.网络,.132主机)或(192.168.123.0网络地址,0.0.0.132主机地址)。三、 子网掩码子网掩码是 TCP/IP 正常工作所必需的。

8、TCP/IP 协议使用子网掩码确定主机是在本地子网中还是在远程网络中。在 TCP/IP 中,将哪部分 IP 地址用作网络地址和主机地址并不固定,所以除非您掌握详细的信息,否则无法确定上述网络地址和主机地址。此信息在另一个 32 位数字中提供,称为子网掩码。在本例中,子网掩码为 255.255.255.0。如果您不知道二进制表示法中的 255 等于 11111111,可能并不清楚该数字表示的含义;照此分析,子网掩码为:11111111.11111111.11111111.0000000。将 IP 地址和子网掩码排列在一起比较,就可以分清该地址的网络部分和主机部分:11000000.1010100

9、0.01111011.10000100-IP 地址(192.168.123.132)11111111.11111111.11111111.00000000-子网掩码(255.255.255.0)前24位(子网掩码中的数字1)被标识为网络地址,后8位(子网掩码中剩余的数字0)被标识为主机地址。据此可以得到:11000000.10101000.01111011.00000000-网络地址(192.168.123.0)00000000.00000000.00000000.10000100-主机地址(000.000.000.132)这样,我们就可以知道,在这个使用 255.255.255.0 子网掩码

10、的示例中,网络ID为192.168.123.0,主机地址为0.0.0.132。当数据包到达192.168.123.0子网(从本地子网或远程网络),而且它的目标地址为192.168.123.132时,您的计算机将从网络接收它并对它进行处理。几乎所有十进制子网掩码都转换为左侧全部是一、右侧全部是零的二进制数字。其他一些常见的子网掩码有:十进制 二进制255.255.255.192 1111111.11111111.1111111.11000000255.255.255.224 1111111.11111111.1111111.11100000Internet RFC 1878 描述了 TCP/IP

11、 网络中使用的有效子网和子网掩码。四、 网络类Internet地址由管理Internet的机构Inter NIC来分配。这些IP地址分成若干类。其中最常见的是 A、B 和 C 类。也有 D 和 E类,但是最终用户通常不会使用。每个地址类都有不同的默认子网掩码。可以通过查看 IP 地址的第一个八位组来识别该 IP 地址的类别。下面是 A、B 和 C 类 Internet 地址的范围,每一类地址都有一个示例:A 类网络使用的默认子网掩码为255.0.0.0,第一个八位组为0-127。地址10.52.36.11就是一个A类地址。它的第一个八位组为10,介于1至126之间(包括1和126)。B 类网络

12、使用的默认子网掩码为255.255.0.0,第一个八位组为128-191。地址172.16.52.63就是一个B类地址。它的第一个八位组为172,介于128至191之间(包括128和191)。C 类网络使用的默认子网掩码为255.255.255.0,第一个八位组为192-223。地址192.168.123.132 就是一个C类地址。它的第一个八位组为192,介于192至223之间(包括192和223)。在某些情况下,由于网络的物理拓扑或因为网络(或主机)的数目在默认的子网掩码限制之下并不适用,所以默认子网掩码值可能不适合机构的需要。下一部分将解释如何使用子网掩码划分网络。五、 子网配置系统管理

13、员可以进一步划分A、B或C类TCP/IP网络或对这些网络进行子网配置。当您将 Internet 的逻辑地址结构(IP地址和子网的抽象世界)与真实世界中使用的物理网络进行协调时,就有必要进行子网配置。接受IP地址块分配的系统管理员可以用轻松符合这些地址的方式管理未经组织的网络。例如,您有一个广域网,在该广域网中,TCP/IP 路由器连接的三个网络(位于不同城市)中有 150 个主机。这三个网络中的每个网络都有50个主机。向您分配了C类网络192.168.123.0。(此地址是为了便于说明,实际上来自Internet中未分配的范围。)这意味着可以将地址192.168.123.1至192.168.1

14、23.254用于您的150个主机。在示例中不能使用的两个地址为192.168.123.0和192.168.123.255,因为主机部分全部为一和全部为零的二进制地址无效。零地址无效的原因是使用它在未指定主机的情况下指定了网络。255地址(在二进制表示法中全部为一的主机地址)用来向网络中的每个主机广播消息。只需记住,任何网络或子网中的第一个地址和最后一个地址不能分配给任何单独主机。现在,您应该能够将IP地址给予254个主机。如果所有150台计算机都在一个网络中,则此操作会进行得很顺利。但是,您的150台计算机位于三个单独的物理网络中。不用为每个网络请求更多地址块,只需将网络分成使您可以在多个物理

15、网络中使用一个地址块的子网。在此情况下,使用使网络地址更大和可能的主机地址范围更小的子网掩码将网络分成四个子网。也就是说,您正在“借用”某些通常用于主机地址的位,并将它们用于地址的网络部分。子网掩码 255.255.255.192 给予您四个网络,每个网络有62个主机。由于用二进制表示255.255.255.192与 1111111.11111111.1111111.11000000 相同,所以此操作可以顺利进行。最后一个八位组的前两位数字变为网络地址,所以您获得了附加网络00000000(0)、01000000(64)、10000000 (128)和11000000(192)。(某些管理员只

16、使用将255.255.255.192作为子网掩码的其中两个子网。有关此主题的更多信息,请参阅RFC1878。)在这四个网络中,最后6个二进制数字可用于主机地址。使用子网掩码255.255.255.192,则您的192.168.123.0网络变为四个网络192.168.123.0、192.168.123.64、192.168.123.128和192.168.123.192。这四个网络将拥有以下有效主机地址:192.168.123.1-62192.168.123.65-126192.168.123.129-190192.168.123.193-254再次重审,全部为一或全部为零的二进制主机地址无效

17、,所以您不能使用最后一个八位组为0、63、64、127、128、191、192或255的地址。现在,看两个主机地址 192.168.123.71 和 192.168.123.133,您就会了解其原理。如果使用默认 C 类子网掩码 255.255.255.0,则这两个地址都位于 192.168.123.0 网络中。但是,如果使用子网掩码 255.255.255.192,则它们位于不同网络中;192.168.123.71 位于 192.168.123.64 网络中,192.168.123.133 位于 192.168.123.128 网络中。六、 默认网关如果TCP/IP计算机需要与另一个网络中的

18、主机进行通信,它通常通过称为路由器的设备进行通信。在TCP/IP术语中,主机中指定的、用于将主机子网链接到其他网络的路由器称为默认网关。本节解释TCP/IP如何确定是否将数据包发送到其默认网关以到达网络中的另一台计算机或设备。当主机尝试使用TCP/IP与另一个设备进行通信时,它会使用已定义的子网掩码和目标 IP 地址针对子网掩码和其自己的IP地址进行比较。此结果会告诉计算机目标是本地主机还是远程主机。如果此过程的结果确定目标是本地主机,则计算机只将数据包发送到本地子网。如果比较结果确定目标是远程主机,则计算机将数据包转发到其TCP/IP属性中定义的默认网关。然后,路由器负责将数据包转发到正确的

19、子网。七、 疑难解答TCP/IP网络问题通常是由计算机的TCP/IP属性中三个主要条目的错误配置导致的。了解TCP/IP配置中的错误如何影响网络操作后,您可以解决许多常见TCP/IP问题。错误的子网掩码:如果网络将默认掩码外的其他子网掩码用于其地址类,而客户端仍使用该地址类的默认子网掩码进行配置,则可以与远程网络进行通信但无法与某些附近网络进行通信。例如,如果创建四个子网(例如在子网配置示例中),但是在TCP/IP配置中使用错误的子网掩码255.255.255.0,则主机将无法确定某些计算机是否在与它们自己的子网不同的子网中。当发生此情况时,发送到作为相同C类地址一部分的不同物理网络中的主机的

20、数据包将不会发送到默认网关来进行传送。此问题的常见症状是计算机可以与其本地网络中的主机以及所有远程网络进行通信,但无法与位置在附近并具有相同的A、B或C类地址的网络进行通信。要解决此问题,只需在该主机的TCP/IP配置中输入正确的子网掩码。错误的IP地址:如果将那些IP地址在本地网络的不同子网中的计算机放在一起,则它们无法进行通信。它们会尝试通过路由器相互发送数据包,而该路由器却无法正确转发这些数据包。此问题的症状是计算机可以与远程网络中的主机进行通信,但是无法与其本地网络中的某些或全部计算机通信。要解决此问题,得保证同一物理网络中的所有计算机具有同一IP子网中的IP地址。如果一个网段中的IP

21、地址已用完,还可使用一些解决方案进行处理,但已超出本文范围。错误的默认网关:使用错误的默认网关配置的计算机能够与其自己网段中的主机进行通信,但是无法与某些或全部远程网络中的主机进行通信。如果一个物理网络有多个路由器,且将错误的路由器配置为默认网关,则主机能够与某些远程网络进行通信,但是无法与其他远程网络进行通信。如果组织中有一个路由器连接到内部TCP/IP网络,另一个路由器连接到 Internet,则此问题很常见。八、 参考TCP/IP 中的两个常用参考是:“TCP/IP Illustrated, Volume 1:The Protocols”,Richard Stevens、Addison

22、Wesley,1994“Internetworking with TCP/IP, Volume 1:Principles, Protocols, and Architecture”,Douglas E. Comer、Prentice Hall,1995极力建议负责TCP/IP网络的系统管理员至少使用其中一个参考。九、 术语表广播地址-主机部分全部为一的IP地址。主机-TCP/IP网络中的计算机或其他设备。Internet - 连接在一起并共享公共范围的IP地址的全球网络集合。Inter NIC-负责管理Internet中的IP地址的机构。IP-用于在TCP/IP网络或Internet上发送网络

23、数据包的网络协议。IP地址-TCP/IP网络或Internet主机的唯一32位地址。网络-在本文中,“网络”一词有两种含义。一种含义是指单一物理网段上的计算机组,另一种含义是指系统管理员分配的IP网络地址范围。网络地址 - 主机部分全部为零的IP地址。八位组-一个8位数字,4个八位组构成一个32位IP地址。它们的范围是 00000000-11111111,对应于十进制值0-255。数据包-通过TCP/IP网络或广域网传输的数据单位。RFC(Request for Comment,征求意见文件)-用于定义Internet标准的文档。路由器-在不同IP网络间传输网络通信的设备。子网掩码-一个32位

24、数字,用于区分IP地址的网络部分和主机部分。子网-通过将较大的网络分成相等的部分而创建的较小网络。TCP/IP - 通常在 Internet 和大型网络中广泛使用的协议、标准和实用工具的集合。广域网(WAN)-大型网络,它是路由器分隔的较小网络的集合。例如,Internet就是一个非常大的广域网。The Research and Application on Transmission Control Protocol and Internet ProtocolOne) IntroductionThe success of TCP/IP as the network protocol of th

25、e Internet is largely because of its ability to connect together networks of different sizes and systems of different types. These networks are arbitrarily defined into three main classes (along with a few others) that have predefined sizes, each of which can be divided into smaller subnetworks by s

26、ystem administrators. A subnet mask is used to divide an IP address into two parts. One part identifies the host (computer), the other part identifies the network to which it belongs. To better understand how IP addresses and subnet masks work, look at an IP (Internet Protocol) address and see how i

27、t is organized.When you configure the TCP/IP protocol on a Microsoft Windows computer, an IP address, subnet mask, and usually a default gateway are required in the TCP/IP configuration settings.to configure TCP/IP correctly, it is necessary to understand how TCP/IP networks are addressed and divide

28、d into networks and subnetworks. This article is intended as a general introduction to the concepts of IP networks and subnetting. A glossary is included at the end of article.IP addresses included networks and hosts, An IP address is a 32-bit number that uniquely identifies a host (computer or othe

29、r device, such as a printer or router) on a TCP/IP networkIP addresses are normally expressed in dotted-decimal format, with four numbers separated by periods, such as 192.168.123.132. To understand how subnet masks are used to distinguish between hosts, networks, and subnetworks, examine an IP addr

30、ess in binary notation. For example, the dotted-decimal IP address 192.168.123.132 is (in binary notation) the 32 bit number:110000000101000111101110000100This number may be hard to make sense of, so divide it into four parts of eight binary digits. These eight bit sections are known as octets.The e

31、xample IP address, then, becomes 11000000.10101000.01111011.10000100. This number only makes a little more sense, so for most uses, convert the binary address into dotted-decimal format (192.168.123.132). The decimal numbers separated by periods are the octets converted from binary to decimal notati

32、on.Two) The basic working principle of Internet ProtocolAs 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 endtoend connectivity. IP,

33、 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 intellig

34、ence, 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)s

35、erver 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

36、a firsthop router, typically one that is close and has been press signed 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 u

37、sually 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 localdevice Media Access Control(MAC)addresses. This store is known as the Address Resolution Protocol(ARP)cache. ARP is the universal tool

38、for matching IP addresses to MAC addresses. If the destinations 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 addre

39、ss 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

40、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 nexthop router using the nexthop routers MAC address. Routing tables are continuously built and rebuilt by intellig

41、ent 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 nexthop router.For a TCP/IP wide area network (WAN) to work eff

42、iciently as a collection of networks, the routers that pass packets of data between networks do not know the exact location of a host for which a packet of information is destined. Routers only know what network the host is a member of and use information stored in their route table to determine how

43、 to get the packet to the destination hosts network. After the packet is delivered to the destinations network, the packet is delivered to the appropriate host.For this process to work, an IP address has two parts. The first part of an IP address is used as a network address, the last part as a host

44、 address. If you take the example 192.168.123.132 and divide it into these two parts you get the following: (192.168.123.-Network,.132-Host)or(192.168.123.0-network-address,0.0.0.132-host address).Three) Subnet maskWhich is required for TCP/IP to work, is the subnet mask. The subnet mask is used by

45、the TCP/IP protocol to determine whether a host is on the local subnet or on a remote network. In TCP/IP, the parts of the IP address that are used as the network and host addresses are not fixed, so the network and host addresses above cannot be determined unless you have more information. This inf

46、ormation is supplied in another 32-bit number called a subnet mask. In this example, the subnet mask is 255.255.255.0. It is not obvious what this number means unless you know that 255 in binary notation equals 11111111; so, the subnet mask is:11111111.11111111.11111111.0000000.Lining up the IP addr

47、ess and the subnet mask together, the network and host portions of the address can be separated:11000000.10101000.01111011.10000100-IP address(192.168.123.132)11111111.11111111.11111111.00000000-Subnet mask(255.255.255.0)The first 24 bits (the number of ones in the subnet mask) are identified as the

48、 network address, with the last 8 bits (the number of remaining zeros in the subnet mask) identified as the host address. This gives you the following:11000000.10101000.01111011.00000000-Network address(192.168.123.0)00000000.00000000.00000000.10000100-Host address(000.000.000.132)So now you know, for this example using a 255.255.255.0 subnet mask, that the network ID is 192.168.123.0, and the host address is 0.0.0.132. When a packet arrives on the 192.168.123.0 subnet (from the local subnet or a remote network), and it has a destination address of 192.168.123.132, your computer will r

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 建筑/施工/环境 > 项目建议


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号