Ip Address; Sub Net Mask - Hitachi HIDIC EH-150 Applications Manual

Programable controller; ethernet module(eh-eth)
Hide thumbs Also See for HIDIC EH-150:
Table of Contents

Advertisement

Appendix
Fundamentals of TCP/IP
A.1

IP address

In general, 32 bits logical address called IP address is used in TCP/IP and UDP/IP protocol. IP address is
consisted by Network address and Host address. The boundary of Network address and Host address has three
types upper 8bits, 16bits or 24bits. Each types are called Class A, B and C.
In general, Class C is mainly used in industrial field.
31
Class A
0
Class B
1 0
Class C
1 1 0
And then, IP address is indicated by decimal with dot character "." every 8 bits. For example, IP address of
Class C is indicated as follow.
1 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
192.
In general, it is possible to use the address area called "private internet address" when to make the local
network system. (Following is the description of RFC1918)
Class A :
Class B :
Class A :
Class B :
Class C :
A.2

Sub net mask

Sub Net is used for specifying how many bits of Host address be used as Network address among of the IP
address with each Class. Sub Net Mask has 32 bits and is used for specifying how many bits among IP
address be used as Network address. Network address can be calculated by logical and operation this Sub
Net Mask value and IP address.
24 23
Network
8bits (0 to 127)
Network
16 bits (128 to 191)
24 bits (192 to 223)
Figure A..1.1.1 Classification of IP address
168.
Network address
Figure A.1.1.2 The example of Class C IP address Ethernet
10.0.0.0
-
172.16.0.0
-
10.255.255.255
-
172.16.0.0
-
192.168.0.0
-
- IP address
192.
168.
11000000
10101000
- Sub Net mask
255.
255.
11111111
11111111
- Network IP address
- Host IP address
Figure A.2.1 The configuration method for Sub Net Mask
16 15
Host
24bits (0 to 16777212)
Network
0.
10.255.255.255
172.31.255.255
10.255.255.255
172.31.255.255
192.168.255.255
10.
129
00001010
10000001
255.
128
11110000
10000000
192.168.10.128
192.168.10.1
APP-1
Appendix Fundamenntals of TCP/IP
8 7
Host
16 bits (0 to 65532)
Host
7 bits (0 to 255)
1
Host address
0

Advertisement

Table of Contents
loading

Table of Contents