论文部分内容阅读
一个IP地址由4个字节共32位的数字串组成,这4个字节通常用小数点分隔。每个字节可用十进制或十六进制表示,如129.45.8.22或0x8.0x43.0x10.0x26就是用十进制或十六进制表示的IP地址。IP地址也可以用二进制表示。一个IP地址包括两个标识码(ID),即网络ID和宿主机ID。同一个物理网络上的所有主机都用同一个网络ID,网络上的一个主机(包括网络上工作站、服务器和路由器等)有一个主机ID与其对应。据此把IP地址的4个字节划分为2个部分,一部分用以标明具体的网络段,即网络ID;另一部分用以标明具体的节点,即宿主机ID。在这32位地址信息内有五种定位的划分方式,这五种划分方法分别对应于A、B、C、D和E类IP地址。 A类一个A类IP地址由1个字节的网络地址和3个字节主机地址组成,网络地址的最高位必须是“0”(每个字节有
An IP address consists of a 4-byte, 32-bit string of numbers, usually separated by a decimal point. Each byte can be expressed in decimal or hexadecimal, such as 129.45.8.22 or 0x8.0x43.0x10.0x26 is the decimal or hexadecimal representation of the IP address. IP address can also be expressed in binary. One IP address includes two identification numbers (IDs), that is, the network ID and the host ID. All hosts on the same physical network use the same network ID, and a host ID on the network (including workstations, servers and routers on the network) has a host ID corresponding to it. Accordingly, the 4 bytes of the IP address are divided into two parts, one part is used to indicate a specific network segment, that is, a network ID, and the other part is used to indicate a specific node, namely, a host ID. Within the 32-bit address information, there are five ways of positioning, which correspond to the IP addresses of A, B, C, D and E, respectively. A class A class A IP address consists of a 1-byte network address and a 3-byte host address, the highest bit of the network address must be “0 ” (each byte has