Practical TCP/IP and Ethernet Networking- P11

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 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 reserved for loop-back testing. In particular 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 IPv4 address range vs class 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 the IP address indicates the whole network. If all the bits of the HostID are set to 1 for example 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 .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.