02.02.2018 Views

Practical_modern_SCADA_protocols_-_dnp3,_60870-5_and_Related_Systems

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Ethernet <strong>and</strong> TCP/IP networks 339<br />

Finally, the source <strong>and</strong> destination addresses are the 32-bit IP addresses of the origin<br />

<strong>and</strong> the destination hosts of the datagram.<br />

IPv4 addressing<br />

The ultimate responsibility for the issuing of IP addresses is vested in the Internet<br />

Assigned Numbers Authority (IANA). This responsibility is, in turn, delegated to the three<br />

Regional Internet Registries (RIRs) viz. APNIC (Asia-Pacific Network=Information<br />

Centre), ARIN (American Registry for Internet Numbers), <strong>and</strong> RIPE NCC (Reseau IP<br />

Europeans). RIRs allocate blocks of IP addresses to Internet service providers (ISPs)<br />

under their jurisdiction, for subsequent issuing to users or sub-ISPs.<br />

The IPv4 address consists of 32 bits, e.g. 11000000011001000110010000000001. Since<br />

this number is fine for computers but a little difficult for human beings, it is divided into<br />

four octets w, x, y <strong>and</strong> z. Each octet is converted to its decimal equivalent. The result of the<br />

conversion is written in the format 192.100.100.1. This is known as the ‘dotted decimal’ or<br />

‘dotted quad’ notation. As mentioned earlier, one part of the IP address is known as the<br />

network ID or ‘NetID’ while the rest is known as the ‘HostID’.<br />

Originally, IP addresses were allocated in so-called address classes. Although the system<br />

proved to be problematic, <strong>and</strong> IP addresses are currently issued ‘classless’, the legacy of IP<br />

address classes remains <strong>and</strong> has to be understood. To provide for flexibility in assigning<br />

addresses to networks, the interpretation of the address field was coded to specify either a<br />

small number of networks with a large number of hosts (class A), or a moderate number of<br />

networks with a moderate number of hosts (class B), or a large number of networks with<br />

a small number of hosts (class C). There was also provision for extended addressing<br />

modes: class D was intended for multicasting whilst E was reserved for future use.<br />

Figure 12.15<br />

Address structure for IPv4<br />

For class A, the first bit is fixed at 0. The values for ‘w’ can therefore only vary between<br />

0 <strong>and</strong> 127 10<br />

. 0 is not allowed <strong>and</strong> 127 is a reserved number used for testing. This allows for<br />

126 class A NetIDs. The number of HostIDs is determined by octets ‘x’, ‘y’ <strong>and</strong> ‘z’. From<br />

these 24 bits, 2 24 = 16 777 218 combinations are available. All zeros <strong>and</strong> all ones are not<br />

permissible, which leaves 16 777 216 usable combinations.<br />

For class B, the first two bits are fixed at 10. The binary values for ‘w’ can therefore<br />

only vary between 128 10<br />

<strong>and</strong> 191 10<br />

. The number of NetIDs is determined by octets ‘w’ <strong>and</strong><br />

‘x’. The first 2 bits are used to indicate class B <strong>and</strong> hence cannot be used. This leaves

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!