Đang chuẩn bị liên kết để tải về tài liệu:
Practical TCP/IP and Ethernet Networking- P11
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Practical TCP/IP and Ethernet Networking- P11: One of the great protocols that has been inherited from the Internet is TCP/IP and this is being used as the open standard today for all network and communications systems. The reasons for this popularity are not hard to find. | 82 Practical TCP IP and Ethernet Networking 6.2.6 Determining the address class by inspection The NetID should normally not be all 0s as this indicates a local network. With this in mind analyze the first octet w . For class A the first bit is fixed at 0. The binary values for w can therefore only vary between 00 0 0 0 0 002 010 and 011111112 12710 . 0 is not allowed. However 127 is also a reserved number with 127.x.y.z reserved for loop-back testing. In particular 127.0.0.1 is used to test that the TCP IP protocol is properly configured by sending information in a loop back to the computer that originally sent the packet without it traveling over the network. The values for w can therefore only vary between 1 and 126 which allows for 126 possible class A NetIDs. For class B the first two bits are fixed at 10. The binary values for w can therefore only vary between 100000002 12810 and 101111112 19110 . For class C the first three bits are fixed at 110. The binary values for w can therefore only vary between 110000002 19210 and 110111112 22310 . The relationship between w and the address class can therefore be summarized as follows. Figure 6.3 IPv4 address range vs class 6.2.7 Number of networks and hosts per address class Note that there are two reserved host numbers irrespective of class. These are all zeros or all ones for HostID. An IP address with a host number of zero is used as the address of the whole network. For example on a class C network with the NetID 200.100.100 the IP address 200.100.100.0 indicates the whole network. If all the bits of the HostID are set to 1 for example 200.100.100.255 then a broadcast message will be sent to every host on that network. To summarize HostID all zeros means this network. HostID all ones means all hosts on this network For class A the number of NetIDs is determined by octet w . Unfortunately the first bit fixed at 0 is used to indicate class A and hence cannot be used. This leaves seven usable bits. Seven bits allow .