Documente Academic
Documente Profesional
Documente Cultură
Fundamentals
Topics of Discussion
• Definitions
• Topologies, Message Types
• Hardware Building Blocks
• IP Addressing
• TCP and UDP
• BootP, Ping, and Ipconfig
• Web Based Management
• WAGO Ethernet Settings
What is Ethernet?
1
Normal Ethernet Operation
B C
Address mismatch Address mismatch
packet discarded packet discarded
Data
Ethernet Collisions
Both station “A” and “C” send a message at the same time
B C
Collision
CSMA/CD
A B
Carrier-Sense Multiple-Access
with Collision-Detection
CS-Carrier Sense: All stations must listen
to the network medium at all times
2
CSMA/CD
Station Ready to
Transmit Data New attempt
Wait Random
Back-off Time
Medium idle?
No
Yes Collision
Transmit Data and Detected Transmit Jam
Sense Collision Signal
No Collision
Transmit
Complete
Message Types
Unicast Broadcast
•One or multiple nodes can be listening on the same or different network segments.
•Used in one-to-many communications
MAC_ID: 00:30:DE:00:1E:95
Example: 00-30-DE-00-00-0A
3
Ethernet Building Blocks
A Repeater refreshes data without intelligence, corrupted data is not recognized and is
passed on.
A Hub is a repeater with multi-outputs to build a star topology. All stations receive
every message.
A Switch is multi-output bridge. The switch learns about the connected nodes and
filters the information to unload the network.
A Router is a device that acts like bridge or switch, but provides more functionality.
In moving data between different network segments, routers examine a packet header
to determine the best path for the packet to travel.
Shared Ethernet
With Shared Ethernet, devices are link via a hub and communicate on a
common medium. A Message sent from one device is broadcast to all devices,
but only the correct device responds. With this configuration more collisions
occur and messages need to be retransmitted. The delay time in a Shared
Network cannot be easily calculated or predicted (non-deterministic).
Hub
Switched Ethernet
When an Ethernet Switch receives a message from a host, it saves the data and
determines the destination device. It only sends the message to the device at the
correct address. This reduces overall network traffic, and extends the
bandwidth. In many configurations, runtimes can be defined and calculated,
making it deterministic.
Switch
buffer
buffer buffer
buffer
4
Internet Protocol (IP)
IP
IP Data
Header
IP Datagram
Ethernet
Ethernet Data FCS
Header
Ethernet Frame
IP Configuration
Three Parameters
1) IP Address
2) Subnet mask
3) Default Gateway
Dotted Dotted
Binary Notation
Decimal Decimal
IP 10.5.3.1 00001010 00000101 00000011 00000001
Subnet Mask 255.255.0.0 11111111 11111111 00000000 00000000
• A binary “1” in the Subnet Mask indicates that the corresponding IP bit is
part of the Network ID
• A binary “0” in the Subnet Mask indicates that the corresponding IP bit is
part of the Host ID
5
Default Gateway
1
• Is destination local (same Network ID)?
3
Yes, add the destination MAC address to packet. • Verify packet.
No, add Default Gateway’s (router) MAC address. • Verify IP Address.
• Always add the destination’s IP address. • Send the packet up to the next layer.
2
• Verify packet.
• Decrease TTL.
• Is destination local?
Yes, add the destination MAC address.
No, add another router’s MAC address
A C
Router
B D
Router
Port Address
TCP and UDP use an abstract destination point called a port. It’s used to route
data to a particular application program on a device. Ports are identified by a
positive integer.
TCP UDP
IP – Internet Layer
Ethernet Cable
Network Access Layer
Ethernet Cable
TCP/IP Protocol
TCP
TCP Data
Header
TCP Segment
IP
IP Data
Header
IP Datagram
Ethernet
Ethernet Data FCS
Header
Ethernet Frame
6
Characteristics of TCP
TCP Segment
Ethernet TCP
IP header TCP Data FCS
header header
• Connection-based protocol;
Source Port Destination Port therefore, reliable.
Sequence Number
• TCP uses IP to deliver datagrams
Acknowledgement Number to the right host.
URG
ACK
PSH
RST
SYN
Data
FIN
Reserved Window
Offset • TCP uses ports to provide
Checksum Urgent Pointer communication services to
Options Padding individual processes.
Connection-based
Connection
TCP peer
initiator
CLOSED LISTEN
SYN
SYN SENT SYN RCVD
SYN-ACK
ESTABLISHED
ACK
ESTABLISHED
Data transfer
7
TCP Connection Termination
Termination
initiator TCP peer
Data transfer
ESTABLISHED ESTABLISHED
FIN-ACK
FIN WAIT-1 CLOSE WAIT
ACK
FIN WAIT-2
FIN-ACK
LAST ACK
ACK
TIME WAIT
CLOSED
(after 2*MSL)
CLOSED
The TCP requester sends the message on the network and the
target device acknowledges the request.
The target device then sends the reply and the requester
acknowledges the reply.
Characteristics of UDP
Ethernet UDP
IP header UDP Data (length varies) FCS
header header
Length Checksum
8
UDP Transmission
Ping Utility
Ipconfig Utility
9
BootP Protocol
BootP Server
Ethernet I/O
10
Network Setup
10 .5 .0 .1 10 .5 .0 .2
255.255.255.0 255.255.0.0
User: admin
Password: wago
WAGO Corporation
P.O. Box 1015
Germantown, WI 53022
E-Mail: info.us@wago.com
Internet: www.wago.com
11