Networking Basics For Automation Engineers: Page 1 of 10 Mac-Solutions - Co.uk v1.0 Oct 2014
Networking Basics For Automation Engineers: Page 1 of 10 Mac-Solutions - Co.uk v1.0 Oct 2014
Networking Basics For Automation Engineers: Page 1 of 10 Mac-Solutions - Co.uk v1.0 Oct 2014
Automation Engineers
2. Types of Networks
Networks come in different shapes and sizes. They are usually based on the following factors:
In order to talk with devices outside of their network, routers are required - routers are gateways to other networks.
These devices connect networks which are dissimilar from each other.
Figure 1 Relationship of LAN and WAN using special hardware called router
Networks using the TCP/IP protocol route messages, based on the IP address of the destination device.
It is easier for us to remember decimals than it is to remember binary numbers, so we use decimals to represent the
IP addresses when describing them. However, the binary number is important because that will determine which
class of network the IP address belongs to. (For details on classes see Appendix A)
Individuals, ISPs, and companies will have a public Internet IP address, given to them by their Internet Broadband
provider.
On the internal network, all of the devices will use private IP addresses.
Private IP Addresses are listed below:
10.0.0.x
172.16.x.x
192.168.x.x
These are the IP addresses we use to configure our private network (e.g. eWON’s LAN network). Depending on the
number of the devices in the network, one of the above IP ranges can be selected.
Like an IP address, a subnet mask contains four bytes (32 bits) and is often written using the same "dotted-decimal"
notation. For example, a very common subnet mask in its binary representation is as shown below:
11111111.11111111.11111111.00000000
Network Address Host Address
However, subnet mask is typically shown in decimals, which
is a more readable form
11111111.11111111.11111111.00000000 =
255 . 255 . 255 . 0
A subnet mask and an IP address work together. Applying the subnet mask to an IP address splits the address into
two parts
the "network address" is the part of the IP address that is common to all devices on the network
the “host address” is the part of the IP address that is specific to each specific device
In the example,
from 192.168.5.001
to 192.168.5. 254
WAN
(Internet)
192.168.5.44
eWON LAN IP
192.168.5.11 192.168.5.33
192.168.5.22
Network Address
Host Address
When configuring Ethernet devices on the eWON LAN side of the eWON, all of these devices should have the same
‘Network Address’ and different ‘Host Address’.
However, it is possible to configure the WAN port of the eWON to automatically obtain an IP address from the
customer network, at the final site location, to allow it connect to the internet.
During the start-up process, the eWON WAN port transmit a ‘broadcast’ message, saying "I need network settings!".
A DHCP server (typically a Windows Server PC or a router / firewall / WiFi access point) listens for these requests and
gives suitable network settings to the WAN port of the eWON.
7. Default Gateway
A default gateway is required if a device needs to communicate with devices outside a local network. If the Gateway
setting is left blank, or is incorrect, network is isolated from the outside world.
When configuring a device (e.g. a PLC, HMI, etc.) which is connected on the LAN side of the eWON (e.g. the machine
network), it is necessary to configure the Gateway setting in this device.
This Gateway setting must be the IP address of the eWON LAN port.
2. Set-up the IP address and subnet mask for each device on the machine LAN (e.g. PLC, HMI, etc.), using the
appropriate software. These IP addresses and the eWON’s LAN address must all be part of the same IP
network.
3. Set-up the Gateway address for each device on the machine LAN – this address must be the IP address of the
eWON’s LAN.
4. Ensure that the IP address for the eWON WAN and the IP address for the eWON LAN are in different IP
ranges. In general, the WAN port of the eWON should be set to use DHCP, so that it receives network
settings which are compatible with the site network, where the eWON is be installed.
5. Ensure that the IP address for the ‘company HQ network’ (the network, from where the engineer will
connect) and the IP address for the eWON LAN are in different networks. This is illustrated in the examples
below.
Network 3 = Machine Network = machine devices, with addresses all in same range
Network 2 = Site network = addresses that are used on the network at the site
Network 1 = Company HQ network’ = addresses that are used on the network at the ‘HQ’ of the company that
built the machine
1 2 3
Site LAN affects the eWON’s WAN. This is where eWON gets its internet connection from. Therefore usually when
going through the internet connection wizard on eWON it is set to DHCP (as shown in the diagram below). This
option gives the site the control to assign IP address to eWON’s WAN. Enabling eWON to stay connected to the
internet. No matter what changes on the Site LAN, eWON still stays connected to the internet (provided that the site
has internet from service provider)
Another way to change IP Address of an eWON is using eBuddy (eWON Maintenance Utility). This is useful when the
IP Address of a particular eWON is unknown.
Class A
Class A addresses are assigned to networks with a very large number of hosts. Each slot in the diagram below
represents a bit. The first octet (first 8 bits) defines the network address. The remaining 24 bits (the last three octets)
represent the host address. This allows for 126 networks and 16,777,214 hosts per network.
Class A
Class B
Class B addresses are assigned to medium-sized to large-sized networks. The first two octets represent the network
address. The remaining 16 bits (last two octets) represent the host address. This allows for 16,384 networks and
65,534 hosts per network.
Class B
Class C
Class C addresses are used for small networks. The first three octets represent the network address. The remaining 8
bits (last octet) represent the host address. This allows for 2,097,152 networks and 254 hosts per network
Class C