The text of a manual · part 7 of 18
ControlLogix Ethernet Communication Interface Module 1756-ENET/B User Manual: 3 - Before You Configure Your Module
Pages 33 to 38 of 122, from ControlLogix Ethernet Communication Interface Module 1756-ENET/B User Manual
The original document is the PDF (1.5 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1756-ENET
Page 33
Chapter
3
Before You Configure Your Module
What This Chapter Contains This chapter describes some of the basics you should know about
Ethernet before you configure your Ethernet module. The following table describes where to find specific information in this chapter. For information about
Ethernet Protocols
See page
Ethernet Protocols
3-1
Transmission Control Protocol/Internet Protocol (TCP/IP)
3-1
User Datagram Protocol (UDP)
3-2
Simple Network Management Protocol (SNMP)
3-2
Configuration Requirements
3-3
IP Address
3-3
Gateways
3-4
Subnet Mask
3-5
For More Information
3-6
On the most basic level, Ethernet is a wire or cable that connects computers and peripheral devices so that they can communicate. The actual wire used for the network is referred to as the network “medium.” Beyond the physical medium, all Ethernet networks support protocols that provide sophisticated data transfer and network management functionality.
Transmission Control Protocol/Internet Protocol (TCP/IP) Transmission Control Protocol/Internet Protocol (TCP/IP) is a transport-layer protocol (TCP) and a network-layer protocol (IP) commonly used in business environments for communication within networks and across internetworks. The 1756-ENET/B module uses TCP/IP for “explicit” messaging, that is, messages in which time is not a critical factor, such as uploading or downloading programs.
1
Publication 1756-UM051B-EN-P - November 2000
Page 34
3-2
Before You Configure Your Module
User Datagram Protocol (UDP) UDP is a much simpler transport protocol. It is connectionless and provides a very simple capability to send datagrams between two devices. UDP is used by applications that implement their own handshaking between devices and only want a minimal transport service. UDP is smaller, simpler, and faster than TCP and can operate in unicast, multicast, or broadcast mode. The 1756-ENET/B module employs UDP for real time I/O messaging.
Ethernet/IP Ethernet/IP applies a common application layer over Ethernet by encapsulating messages in TCP/UDP/IP. This common application layer is the control and information protocol (CIP, see chapter 1), which provides interoperability and interchangeability of industrial automation and control devices on Ethernet. Ethernet/IP supports both real-time I/O (“implicit” messaging) and explicit messaging. Refer to the Ethernet/IP Performance and Application Guide, publication number ENET-AP001A-EN-P, for more information on the Ethernet/IP protocol.
Simple Network Management Protocol (SNMP) Simple Network Management Protocol (SNMP) is a standard for network management within TCP/IP environments. This lets client applications monitor and manage network information on host computers and gateways. SNMP uses a distributed architecture consisting of management systems and agents. Data is passed from SNMP agents, which are hardware and/or software processes reporting activity in each network device (switch, router, bridge, etc.) to the workstation console used to oversee the network. The agents return information contained in a MIB (Management Information Base), which is a data structure that defines what is obtainable from the device and what can be controlled (turned off, on, etc.). The ENET/B module is an agent, and its primary function is to process the operations requested by the management system. The Ethernet module supports the SNMP protocol at the MIB II level.
Publication 1756-UM051B-EN-P - November 2000
Page 35
Before You Configure Your Module
Configuration Requirements
3-3
Before you can use your Ethernet module, you must configure its IP address, gateway address, and subnet mask. The module ships with the Rockwell BootP utility, which you can use to perform the configuration. You can also use RSLinx software, generic BootP software, or, within some limitations, a DHCP server. These methods are described in chapter 4.
IP Address The IP address identifies each node on the IP network (or system of connected networks). Each TCP/IP node on a network (including the Ethernet module) must have a unique IP address. The IP address is 32 bits long and has a net ID part and a host ID part. Each network is a Class A, Class B, or Class C network. The class of a network determines how an IP address is formatted. 8
Class A
0 1 0 net ID
Class B
0 1 1 0 net ID
Class C
0 1 1 1
16
24
31 host ID 16
8
24
31 host ID
16
8
31
24 net ID
0 host ID
Each node on the same physical network must have an IP address of the same class and must have the same net ID. Each node on the same network must have a different host ID thus giving it a unique IP address. IP addresses are written as four decimal integers (0-255) separated by periods where each integer gives the value of one byte of the IP address. EXAMPLE
For example, the 32-bit IP address: 10000010 00000000 00000000 00000001 is written as 130.0.0.1. You can distinguish the class of an IP address from the first integer in its dotted-decimal IP address as follows: Range of first integer
Class
Range of first integer
Class
0 -127
A
192 - 223
C
128 -191
B
224 - 255 other
Publication 1756-UM051B-EN-P - November 2000
Page 36
3-4
Before You Configure Your Module
Contact your network administrator or the Network Information Center for a unique fixed IP address to assign to your module.
TIP
Tip For more information on Internet addressing, see Comer, Douglas E; Internetworking with TCP-IP, Volume 1: Protocols and Architecture; Englewood Cliffs, N.J.: Prentice-Hall, 1990.
Gateways A gateway connects individual physical networks into a system of networks. When a node needs to communicate with a node on another network, a gateway transfers the data between the two networks. The following figure shows gateway G connecting Network 1 with Network 2.
A 128.1.0.1
Network 1
128.1.0.2
G 128.2.0.3
C
B 128.2.0.1
128.2.0.2
Network 2
When host B with IP address 128.2.0.1 communicates with host C, it knows from C’s IP address that C is on the same network. In an Ethernet environment, B can then resolve C’s IP address to a MAC address and communicate with C directly. When host B communicates with host A, it knows from A’s IP address that A is on another network (the net IDs are different). In order to send data to A, B must have the IP address of the gateway connecting the two networks. In this example, the gateway’s IP address on Network 2 is 128.2.0.3. The gateway has two IP addresses (128.1.0.2 and 128.2.0.3). The first must be used by hosts on Network 1 and the second must be used by hosts on Network 2. To be usable, a host’s gateway must be addressed using a net ID matching its own.
Publication 1756-UM051B-EN-P - November 2000
Page 37
Before You Configure Your Module
3-5
Subnet Mask Subnet addressing is an extension of the IP address scheme that allows a site to use a single net ID for multiple physical networks. Routing outside of the site continues by dividing the IP address into a net ID and a host ID via the class. Inside a site, the subnet mask is used to redivide the IP address into a custom net ID portion and host ID portion. Take Network 2 (a Class B network) in the previous example and add another physical network. Selecting the following subnet mask would add two additional net ID bits allowing for four physical networks: EXAMPLE
11111111 11111111 11000000 00000000 = 255.255.192.0 Two bits of the Class B host ID have been used to extend the net ID. Each unique combination of bits in the part of the host ID where subnet mask bits are 1 specifies a different physical network. The new configuration is:
A 128.1.0.1
Network 1
128.1.0.2
G C
B 128.2.64.1
128.2.64.3 128.2.64.2
Network 2.1 G2 D
E 128.2.128.1
128.2.128.3 128.2.128.2
Network 2.2
A second network with Hosts D and E has been added. Gateway G2 connects Network 2.1 with Network 2.2. Hosts D and E will use Gateway G2 to communicate with hosts not on Network 2.2. Hosts B and C will use Gateway G to communicate with hosts not on Network 2.1. When B is communicating with D, G (the configured Gateway for B) will route the data from B to D through G2.
Publication 1756-UM051B-EN-P - November 2000
Page 38
3-6
Before You Configure Your Module
For More Information
What’s Next?
Publication 1756-UM051B-EN-P - November 2000
For more information about Ethernet, refer to the following publications: • Internetworking with TCP/IP Vol. 1, 2nd ed. by Douglas E. Comer
ISBN 0-13-216987-8
• The Ethernet Management Guide – Keeping The Link
ISBN 0-07-046320-4
• An Introduction to TCP/IP
ISBN 3-540-96651-X
• Computer Networks by Andrew S. Tanenbaum
ISBN 0-13-162959-X
The following chapter describes how to configure your Ethernet module.