已阅读5页,还剩8页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
understanding tcpip addressing and subnetting basicsn introductionwhen 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 divided 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.back to the topn more informationthe success of tcp/ip as the network protocol of the 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 system 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 it is organized.back to the topl ip addresses: networks and hostsan ip address is a 32-bit number that uniquely identifies a host (computer or other device, such as a printer or router) on a tcp/ip network.ip addresses are normally expressed in dotted-decimal format, with four numbers separated by periods, such as 32. to understand how subnet masks are used to distinguish between hosts, networks, and subnetworks, examine an ip address in binary notation.for example, the dotted-decimal ip address 32 is (in binary notation) the 32 bit number 110000000101000111101110000100. this 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 example 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 (32). the decimal numbers separated by periods are the octets converted from binary to decimal notation.for a tcp/ip wide area network (wan) to work efficiently 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 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 address. if you take the example 32 and divide it into these two parts you get the following: 192.168.123. network .132 host-or- - network address.32 - host address.back to the topl subnet maskthe second item, which is required for tcp/ip to work, is the subnet mask. the subnet mask is used by 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 information is supplied in another 32-bit number called a subnet mask. in this example, the subnet mask is . 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.0000000lining up the ip address and the subnet mask together, the network and host portions of the address can be separated: 11000000.10101000.01111011.10000100 - ip address (32) 11111111.11111111.11111111.00000000 - subnet mask ()the first 24 bits (the number of ones in the subnet mask) are identified as the 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 () 00000000.00000000.00000000.10000100 - host address (000.000.000.132)so now you know, for this example using a subnet mask, that the network id is , and the host address is 32. when a packet arrives on the subnet (from the local subnet or a remote network), and it has a destination address of 32, your computer will receive it from the network and process it.almost all decimal subnet masks convert to binary numbers that are all ones on the left and all zeros on the right. some other common subnet masks are: decimal binary 92 1111111.11111111.1111111.11000000 24 1111111.11111111.1111111.11100000internet rfc 1878 (available from ) describes the valid subnets and subnet masks that can be used on tcp/ip networks.back to the topl network classesinternet addresses are allocated by the internic ( ), the organization that administers the internet. these ip addresses are divided into classes. the most common of these are classes a, b, and c. classes d and e exist, but are not generally used by end users. each of the address classes has a different default subnet mask. you can identify the class of an ip address by looking at its first octet. following are the ranges of class a, b, and c internet addresses, each with an example address:class a networks use a default subnet mask of and have 0-127 as their first octet. the address 1 is a class a address. its first octet is 10, which is between 1 and 126, inclusive.class b networks use a default subnet mask of and have 128-191 as their first octet. the address 3 is a class b address. its first octet is 172, which is between 128 and 191, inclusive.class c networks use a default subnet mask of and have 192-223 as their first octet. the address 32 is a class c address. its first octet is 192, which is between 192 and 223, inclusive.in some scenarios, the default subnet mask values do not fit the needs of the organization, because of the physical topology of the network, or because the numbers of networks (or hosts) do not fit within the default subnet mask restrictions. the next section explains how networks can be divided using subnet masks.back to the topl subnettinga class a, b, or c tcp/ip network can be further divided, or subnetted, by a system administrator. this becomes necessary as you reconcile the logical address scheme of the internet (the abstract world of ip addresses and subnets) with the physical networks in use by the real world.a system administrator who is allocated a block of ip addresses may be administering networks that are not organized in a way that easily fits these addresses. for example, you have a wide area network with 150 hosts on three networks (in different cities) that are connected by a tcp/ip router. each of these three networks has 50 hosts. you are allocated the class c network . (for illustration, this address is actually from a range that is not allocated on the internet.) this means that you can use the addresses to 54 for your 150 hosts.two addresses that cannot be used in your example are and 55 because binary addresses with a host portion of all ones and all zeros are invalid. the zero address is invalid because it is used to specify a network without specifying a host. the 255 address (in binary notation, a host address of all ones) is used to broadcast a message to every host on a network. just remember that the first and last address in any network or subnet cannot be assigned to any individual host.you should now be able to give ip addresses to 254 hosts. this works fine if all 150 computers are on a single network. however, your 150 computers are on three separate physical networks. instead of requesting more address blocks for each network, you divide your network into subnets that enable you to use one block of addresses on multiple physical networks.in this case, you divide your network into four subnets by using a subnet mask that makes the network address larger and the possible range of host addresses smaller. in other words, you are borrowing some of the bits usually used for the host address, and using them for the network portion of the address. the subnet mask 92 gives you four networks of 62 hosts each. this works because in binary notation, 92 is the same as 1111111.11111111.1111111.11000000. the first two digits of the last octet become network addresses, so you get the additional networks 00000000 (0), 01000000 (64), 10000000 (128) and 11000000 (192). (some administrators will only use two of the subnetworks using 92 as a subnet mask. for more information on this topic, see rfc 1878.) in these four networks, the last 6 binary digits can be used for host addresses.using a subnet mask of 92, your network then becomes the four networks , 4, 28 and 92. these four networks would have as valid host addresses: -62 5-126 29-190 93-254remember, again, that binary host addresses with all ones or all zeros are invalid, so you cannot use addresses with the last octet of 0, 63, 64, 127, 128, 191, 192, or 255.you can see how this works by looking at two host addresses, 1 and 33. if you used the default class c subnet mask of , both addresses are on the network. however, if you use the subnet mask of 92, they are on different networks; 1 is on the 4 network, 33 is on the 28 network.back to the topl default gatewaysif a tcp/ip computer needs to communicate with a host on another network, it will usually communicate through a device called a router. in tcp/ip terms, a router that is specified on a host, which links the hosts subnet to other networks, is called a default gateway. this section explains how tcp/ip determines whether or not to send packets to its default gateway to reach another computer or device on the network.when a host attempts to communicate with another device using tcp/ip, it performs a comparison process using the defined subnet mask and the destination ip address versus the subnet mask and its own ip address. the result of this comparison tells the computer whether the destination is a local host or a remote host.if the result of this process determines the destination to be a local host, then the computer will simply send the packet on the local subnet. if the result of the comparison determines the destination to be a remote host, then the computer will forward the packet to the default gateway defined in its tcp/ip properties. it is then the responsibility of the router to forward the packet to the correct subnet.back to the topl troubleshootingtcp/ip network problems are often caused by incorrect configuration of the three main entries in a computers tcp/ip properties. by understanding how errors in tcp/ip configuration affect network operations, you can solve many common tcp/ip problems.incorrect subnet mask: if a network uses a subnet mask other than the default mask for its address class, and a client is still configured with the default subnet mask for the address class, communication will fail to some nearby networks but not to distant ones. as an example, if you create four subnets (such as in the subnetting example) but use the incorrect subnet mask of in your tcp/ip configuration, hosts will not be able to determine that some computers are on different subnets than their own. when this happens, packets destined for hosts on different physical networks that are part of the same class c address will not be sent to a default gateway for delivery. a common symptom of this is when a computer can communicate with hosts that are on its local network and can talk to all remote networks except those that are nearby and have the same class a, b, or c address. to fix this problem, just enter the correct subnet mask in the tcp/ip configuration for that host.incorrect ip address: if you put computers with ip addresses that should be on separate subnets on a local network with each other, they will not be able to communicate. they will try to send packets to each other through a router that will not be able to forward them correctly. a symptom of this problem is a computer that can talk to hosts on remote networks, but cannot communicate with some or all computers on their local network. to correct this problem, make sure all computers on the same physical network have ip addresses on the same ip subnet. if you run out of ip addresses on a single network segment, there are solutions that go beyond the scope of this article.incorrect default gateway: a computer configured with an incorrect default gateway will be able to communicate with hosts on its own network segment, but will fail to communicate with hosts on some or all remote networks. if a single physical network has more than one router, and the wrong router is configured as a default gateway, a host will be able to communicate with some remote networks, but not others. this problem is common if an organization has a router to an internal tcp/ip network and another router connected to the internet.n referencestwo popular references on tcp/ip are:tcp/ip illustrated, volume 1: the protocols, richard stevens, addison wesley, 1994internetworking with tcp/ip, volume 1: principles, protocols, and architecture, douglas e. comer, prentice hall, 1995it is strongly recommended that a system administrator responsible for tcp/ip networks have at least one of these references available.l glossarybroadcast address - an ip address with a host portion that is all ones.host - a computer or other device on a tcp/ip network.internet - the global collection of networks that are connected together and share a common range of ip addresses.internic - the organization responsible for administration of ip addresses on the internet.ip - the network protocol used for sending network packets over a tcp/ip network or the internet.ip address - a unique 32-bit address for a host on a tcp/ip network or internetwork.network - there are two uses of the term network in this article. one is a group of computers on a single physical network segment; the other is an ip network address range that is allocated by a system administrator.network address - an ip address with a host portion that is all zeros.octet - an 8-bit number, 4 of which comprise a 32-bit ip address. they have a range of 00000000-11111111 that correspond to the decimal values 0- 255.packet - a unit of data passed over a tcp/ip network or wide area network.rfc (request for comment) - a document used to define standards on the internet.router - a device that passes network traffic between different ip networks.subnet mask - a 32-bit number used to distinguish the network and host portions of an ip address.subnet or subnetwork - a smaller network created by dividing a larger network into equal parts.tcp/ip - used broadly, the set of protocols, standards and utilities commonly used on the internet and large networks.wide area network (wan) - a large network that is a collection of smaller networks separated by routers. the internet is an example of a very large wan.了解 tcpip 寻址和子网配置基础知识n 简介在 microsoft windows 计算机上配置 tcp/ip 协议时,tcp/ip 配置设置中需要 ip 地址和子网掩码,通常还需要一个默认网关。要正确配置 tcp/ip,有必要了解 tcp/ip 网络的寻址方式以及网络和子网的划分方式。本文旨在对 ip 网络和子网的概念进行一般性介绍。本文结尾包含一个术语表。n 更多信息作为 internet 的网络协议,tcp/ip 的成功在很大程度上归功于它将不同大小的网络和不同类型的系统连接在一起的能力。这些网络被强制定义为具有预定义大小的三个主要类(还有其他一些类别),每一类都可以由系统管理员分成更小的子网。子网掩码用于将 ip 地址分成两个部分。一部分标识主机(计算机),另一部分标识它所属的网络。查看 ip(internet 协议)地址并研究它的组织方式可以帮助您更好地理解 ip 地址和子网掩码的工作方式。l ip 地址:网络和主机ip 地址是一个 32 位数字,它唯一地标识 tcp/ip 网络上的主机(计算机或其他设备,如打印机或路由器)。ip 地址通常以点分十进制格式表示,四个数字由句点分隔,例如 32。要了解子网掩码如何用于区分不同的主机、网络和子网,请查看以二进制表示的 ip 地址。例如,点分十进制 ip 地址 32 在二进制表示法中为 32 位数字 110000000101000111101110000100。此数字的含义可能很难理解,因此它被分成四个部分,每个部分有八个二进制数字。这些八位部分称为八位组。示例 ip 地址于是变成 11000000.10101000.01111011.10000100。此数字表示的含义只是稍微明白了一点,因此在大多数应用中,会将二进制地址转换为点分十进制格式 (32)。点分十进制数字是从二进制转换为十进制表示法的八位组。为了让 tcp/ip 广域网 (wan) 以一个网络集的形式高效工作,在网络间传递数据包的路由器并不知道信息包的目标主机的确切位置。路由器只知道主机是哪一个网络的成员,并使用存储在路由表中的信息来确定如何将数据包送达目标主机的网络。当数据包被传送到目标网络后,该数据包就会被传送到相应的主机。为了让此过程顺利进行,ip 地址分为两个部分。ip 地址的前一部分作为网络地址,后一部分作为主机地址。以 32 为例,将它分为这两个部分之后,会得到:192.168.123. 网络 .132 主机- 或 - 网络地址。32 主机地址。l 子网掩码第二项是子网掩码,它是 tcp/ip 正常工作所必需的。tcp/ip 协议使用子网掩码确定主机是在本地子网中还是在远程网络中。在 tcp/ip 中,将哪部分 ip 地址用作网络地址和主机地址并不固定,所以除非您掌握详细的信息,否则无法确定上述网络地址和主机地址。此信息在另一个 32 位数字中提供,称为子网掩码。在本例中,子网掩码为 。如果您不知道二进制表示法中的 255 等于 11111111,可能并不清楚该数字表示的含义;照此分析,子网掩码为:11111111.11111111.11111111.0000000将 ip 地址和子网掩码排列在一起比较,就可以分清该地址的网络部分和主机部分:11000000.10101000.01111011.10000100 - ip 地址 (32)11111111.11111111.11111111.00000000 - 子网掩码 ()前 24 位(子网掩码中的数字 1)被标识为网络地址,后 8 位(子网掩码中剩余的数字 0)被标识为主机地址。据此可以得到:11000000.10101000.01111011.00
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 纪念白求恩课件结构
- 高中英语教学中的差异化教学策略研究教学研究课题报告
- 酸洗钝化工安全生产知识评优考核试卷含答案
- 肿瘤内科治疗新策略
- 眼科检查与护理操作规范
- 小学道德与法治教育中的道德情感体验教学设计探讨教学研究课题报告
- 天然气提氦操作工岗前技术改进考核试卷含答案
- 医疗机构内部培训课程设计与实施
- 2026年农业量子容错农业合同
- 人工智能教育技术融合创新与教师培训体系构建策略探讨教学研究课题报告
- 2024年11月-矿山隐蔽致灾因素普查
- 六年级下册英语书湘少版单词表
- 2025中国电信校园招聘易考易错模拟试题(共500题)试卷后附参考答案
- AI与智慧图书馆双向赋能
- 《中药的现代化》课件
- 生物专业英语翻译-蒋悟生
- 高速铁路客运规章(第2版)课件 项目五 高速铁路旅客运输服务管理
- 基础医学概论期末考试试卷
- 自愿离婚协议书标准样本(八篇)
- 重庆市两江新区2022-2023学年五年级下学期期末数学试题
- 闺蜜测试卷试题
评论
0/150
提交评论