Escolar Documentos
Profissional Documentos
Cultura Documentos
Introduction to Ethernet
Communications
What is Ethernet
Layers in the TCP/IP Model
Network Architectures & Topologies
Physical Support
Ethernet Protocols and Services
Summary
What is Ethernet?
Invented in 1973-1975 by Xerox
Complex networking technology that defines wiring and signaling
standards for the physical layer through the means of the data link
layer and a common addressing format (IP address)
Standardized as IEEE 802.3
Allows computers and equipment to communicate to one another over
a common medium for Local Area Networks
Term derived from the combination of the Greek word aether (to
burn/shine/disperse) and network
CSMA/CD
Carrier Sense Multiple Access with Collision
Detection
Ethernet originally made the use of a shared co-axial cable to network
Prone to collision problems
CSMA/CD
Carrier Sense Multiple Access with Collision
Detection
Collision detected procedure
Continue transmission until minimum packet time is reached (jam
signal) to ensure that all receivers detect the collision
Is maximum number of transmission attempts reached? If so, abort
transmission.
Calculate and wait random back off period
Re-enter main procedure at stage 1
Types of Transmission
Simplex transmission: one-way
MAC Address
Media Access Control Address
A unique identifier attached to most network adapters (NICs)
A number that acts like a name for a particular network adapter
The network cards (or built-in network adapters) in two different
computers will have different names, or MAC addresses, as would
an Ethernet adapter and a wireless adapter in the same computer,
and as would multiple network cards in a router.
However, it is possible to change the MAC address on most of
today's hardware.
Example: MAC Address = 00-14-A5-60-A4-96
MAC Address
Ethernet Header
Number of bytes : 8
20
46 to 1500
4
FCS Check
TCP
IP
LLC (Type)
MAC
Source
MAC
Destination
Preamble
Ethernet header
20
Applications:
HTTP, IEC 61850, Modbus TCP, etc
Data
CRC
@ IP = network address
10
Destination Address
unique address of a station (unicast)
or group of stations address (multicast)
or all stations address (broadcast)
source Address
physical adresse of the sending station
11
Data + padding
size 1500 octets
size 46 octets
padding (octets sans signification)
when less of 46 octets of data to send
12
Or
field size" in the frame IEEE802.3
all the number of protocols are higher than the maximum size of the
data zone in a frame (1500)
a station can identify the frames
if value > 1500 frame Ethernet
if not frame IEEE802.3
Schneider Electric - Ethernet TCP/IP Overview
13
Multicast :
first bit (sent) =1 ---> 1er octet of @ is odd :
Shows a group of stations :
09-00-2B-00-00-0F protocol LAT de DEC
09-00-2B-01-00-00 LANbridge (pont) de DEC
14
15
10
194
30
00001010
11000010
00000001
00011110
1 byte
1 byte
1 byte
1 byte
NetID
HostID
Network
Equipment
16
SubnetMask
3 classes of networks
Class A
Class B
Class C
31
netID
31
Class B
Class C
hostID
26
netID
31
Min Value
Class A
24
netID
Max Value
hostID
Possible # of
Networks
Max # of devices
per Network
hostID
Typical Use
0.0.0.0
126.255.255.255
126
16777214
Large networks
128.0.0.0
191.255.255.255
16384
65534
Big organizations
192.0.0.0
223.255.255.255
2097152
254
Small networks
17
Ladressage IP
24
31
CLASSE A
netid
hostid
16
31
CLASSE B
10
hostid
netid
31
CLASSE C
110
netid
hostid
31
CLASSE D
1110
Classe
Val. Min.
octet 1
Val. Max.
octet 1
Nombre max.
rseaux
Nombre max.
stations
Usage
126
126
16 777 214
Grands
rseaux
128
191
16 384
65 534
Grosses
organisations
192
223
2 097 152
254
Petits
rseaux
224
231
239
254
18
SubnetMask
Ex: Extraction of Network Address
IP Address
10
194
30
Subnet Mask
255
255
255
IP Address
00001010
11000010
00000001
00011110
AND
Subnet Mask
11111111
11111111
11111111
00000000
00001010
11000010
00000001
00000000
10
Schneider Electric - Ethernet TCP/IP Overview
194
0
19
adresses IP subneting
255
255
254
Src IP
10
194
138
Dst IP
10
194
27
10
194
138
Dst IP
10
194
27
00011011
20
Ladressage IP
particular Case
0.0.0.0 no adress
127.0.0.1 itself (loopback, localhost)
all bits of hostid at 0 : the network
all bits of hostid at 1 : all the devices of the network (broadcast)
Private networks : usefull adresses free to use for internal network no
connected directly to Internet (connection possible via a proxy )
10.0.0.0 10.255.255.255 (10/8)
172.16.0.0 172.31.255.255 (172.16/12)
192.168.0.0 192.168.255.255 (192.168/16)
21
22
23
ARP (continued)
ARP is used in four cases when two hosts are communicating
1 Two hosts are on the same network and one sends a packet to the other
1.
2.
2 Two hosts are on different networks and must use a gateway to reach each
other
3 A router needs to forward a packet from a host through another router
3.
4.
4 A router needs to forward a packet from a host to another host on the same
network
The last three cases are mostly used over the Internet as two
computers on the internet are typically separated by more than 3
hops.
Imagine computer A sends a packet to computer D and there are two
routers, B & C, between them
Case 2 covers A sending to D
Case 3 covers B sending to C
Case 4 covers C sending to D
Schneider Electric - Ethernet TCP/IP Overview
24
25
26
Has 2
27
IPv6 Networks
Networks are written in CIDR (Classless Inter-Domain Routing)
notation
28
10
194
30
29
Introduction to Ethernet
Communications
What is Ethernet
Layers in the TCP/IP Model
Network Architectures & Topologies
Physical Support
Ethernet Protocols and Services
Summary
30
SOFTWARE
HARDWARE
APPLICATION LAYER
PRESENTATION
LAYER
SESSION LAYER
TRANSPORT LAYER
NETWORK LAYER
PHYSICAL LAYER
10BASE-T, 100BASE-T,
1000BASE-T, various
802.11 physical layers
31
APPLICATION LAYER
PRESENTATION LAYER
SESSION LAYER
TRANSPORT LAYER
NETWORK LAYER
DATA LINK LAYER
PHYSICAL LAYER
The application layer of the four layer and five layer TCP/IP models
corresponds to the application layer, the presentation layer and session
layer in the seven layer OSI models.
32
APPLICATION LAYER
PRESENTATION LAYER
SESSION LAYER
TRANSPORT LAYER
NETWORK LAYER
DATA LINK LAYER
PHYSICAL LAYER
33
APPLICATION LAYER
PRESENTATION LAYER
SESSION LAYER
TRANSPORT LAYER
NETWORK LAYER
DATA LINK LAYER
PHYSICAL LAYER
34
APPLICATION LAYER
PRESENTATION LAYER
SESSION LAYER
TRANSPORT LAYER
NETWORK LAYER
DATA LINK LAYER
PHYSICAL LAYER
Analogy:
Post Office, which deals with the dispatching and classification of mail and
parcels sent.
Schneider Electric - Ethernet TCP/IP Overview
35
Couche Transport
Ports
Just as every IP device has an IP address each service on
Ethernet has a port address.
The port address is needed to allow a end devices network stack
to pass the correct data to the correct application.
Ports allow a single Ethernet stack can handle data for many
different applications at the same time.
The port used by the source device to send the data is assigned
randomly from a pool.
The destination port that the data is sent to is defined for each
Ethernet service.
Some protocols are assigned well known numbers like FTP,
HTTP, Modbus
Other protocols take a socket from the available pool - this
does not guarantee compatibility across different networks and
systems.
Schneider Electric - Ethernet TCP/IP Overview
36
Couche Transport
Ports (cont.)
The port numbers are divided into three ranges: the Well Known
Ports, the Registered Ports, and the Dynamic and/or Private
Ports.
The Well Known Ports are those from 0 through 1023. Well
Known ports SHOULD NOT be used without IANA registration.
The Registered Ports are those from 1024 through 49151.
Registered ports SHOULD NOT be used without IANA
registration.
The Dynamic and/or Private Ports are those from 49152
through 65535.
37
Couche Transport
Ports (cont.)
Les ports usuels :
21 (tcp) : FTP (parfois coupl 20/tcp)
23 (tcp) : Telnet. On trouve par exemple des modems/routeurs en telnet.
25 (tcp) : SMTP, envoi d'email.
53 (tcp et udp) : DNS
67 (tcp et udp) : DHCP, gestion automatique des IP d'un rseau.
80 (tcp et udp) : HTTP
102 (tcp et udp) : ISO-TSAP Class 0 IEC 61850 / MMS over TCP/IP
110 (tcp et udp) : POP3, lecture de courrier.
123 (tcp et udp) : NTP (Network Time protocol), synchronisation de
l'heure.
502 (tcp et udp) : asa-appl-proto (Dennis Dube)
Modbus
38
39
40
Message
Message
TCP
Rcepteur
TCP
3 4
IP
IP
ETHERNET
Schneider Electric - Ethernet TCP/IP Overview
41
The Client then sends an ACK of the SYN from the Server,
this completes the Socket establishment.
42
APPLICATION LAYER
PRESENTATION LAYER
SESSION LAYER
TRANSPORT LAYER
NETWORK LAYER
DATA LINK LAYER
PHYSICAL LAYER
Analogy:
Air Mail or Consolidated Carrier that transfers the mail from Point A to Point
B
Schneider Electric - Ethernet TCP/IP Overview
43
APPLICATION LAYER
PRESENTATION LAYER
SESSION LAYER
TRANSPORT LAYER
NETWORK LAYER
DATA LINK LAYER
PHYSICAL LAYER
44
APPLICATION LAYER
PRESENTATION LAYER
SESSION LAYER
TRANSPORT LAYER
NETWORK LAYER
DATA LINK LAYER
PHYSICAL LAYER
45
TRANSPORT LAYER
NETWORK LAYER
TCP
Checking &
Correction
IP
Routing /
Addressing
TCP/IP
46
Introduction to Ethernet
Communications
What is Ethernet
Layers in the TCP/IP Model
Network Architectures & Topologies
Physical Support
Ethernet Protocols and Services
Summary
47
48
Cost Effective
Fewer switches are needed in multi-LAN networks
Interoperable
Is an IEEE standard adopted across the industry
Schneider Electric - Ethernet TCP/IP Overview
49
VLAN Network
L3
L2
L2
L2
L2
50
Tag
Each packet is identified by a VLAN tag
The tag is 4 bytes and identifies the VLAN number
Used to differentiate the packets between the different networks
One VLAN is allowed to stay untagged
51
VLAN Terms
Edge Port
Carries packets belonging to a single LAN
A port connected to an end station or device on the same LAN
Does not carry any VLAN tags
Trunk Port
Carries packets belonging to multiple VLANS.
Packets must be tagged with VLAN numbers, except the Trunk Native VLAN
Used to connect layer 2 devices (typically switches)
Tagged VLAN
VLAN packets sent from a trunk port
Each packet contains a tag with the VLAN ID
Untagged VLAN
VLAN packets sent from a trunk port without a VLAN tag
52
TCP
IP
LLC (Type)
MAC
Source
MAC
Destination
Preamble
TAGGED Frame
TCP
IP
LLC (Type)
MAC
Source
MAC
Destination
Preamble
4 Bytes
53
Tagged
Inserts a 4 byte tag into the header of the frame
Used by trunk ports to identify which VLAN the packet belongs to
VLAN ID has a range of 1-4095
Tag Protocol Identifier
Set to 0x8100 to identify the frame as belonging to a VLAN
TPID
PCP
CFI
16
Bi
ts
3 Bits
1 Bit
VID
12
Bi
ts
55
Introduction to Ethernet
Communications
What is Ethernet
Layers in the TCP/IP Model
Network Architectures & Topologies
Physical Support
Ethernet Protocols and Services
Summary
56
Hardware: Hub
Device for connecting multiple twisted pair or fibre optic Ethernet
devices together, making them act as a single segment.
A form of multiport repeater that restores timing and signal strength.
Responsible for forwarding a jam signal to all ports if it detects a
collision.
All devices are in the same collision domain (CSMA/CD)
Half duplex only
Operates in the physical layer (layer 1) of the OSI model.
57
Hardware: Switch
Connects devices within the same LAN
Is a networking device that performs transparent bridging (connection
of multiple network segments with forwarding based on MAC
addresses) at up to the speed of the hardware
Operates in the data link layer (layer 2) of the OSI model.
Each physical port is in a different collision domain
Allows full duplex
Stores MAC addresses in a database for fast referencing
Manages traffic by directing frames on necessary ports only
58
A switch isolates ports, meaning that every received packet is sent out
only to the port on which the target may be found
Since the switch intelligently sends packets where they need to go, the
performance of the network can be greatly increased.
59
Hardware: Router
Operates in the network layer (layer 3) of the OSI model.
Connects devices between different networks, making the internet
possible.
A router is a computer networking device that buffers and forwards
data packets across an inter-network toward their destinations, through
a process known as routing.
60
61
Data storage/aggregation
Email
File sharing
Printing
DHCP
Hardware configuration is particular to application
Client
Computer system that accesses a (remote) service on another computer by some
kind of network
62
63
64
1000BASE-T
Supports data transmission rates up to 1000Mbits/s
Uses all fours for simultaneous data transmission
Schneider Electric - Ethernet TCP/IP Overview
65
66
1000BASE-SX
Operates over multi-mode fibre using a 850nm NIR wavelength
Max distance: 220m (500m with good quality cable)
1000BASE-LX
Uses a long wavelength laser
Wavelength: 1270 to 1355 nm
Specified to work up to 2 km over 9 m single-mode fibre
Schneider Electric - Ethernet TCP/IP Overview
67
Introduction to Ethernet
Communications
What is Ethernet
Layers in the TCP/IP Model
Network Architectures & Topologies
Physical Support
Ethernet Protocols and Services
Summary
68
Internet Services
TCP: Transmission Control Protocol
Allows applications on networked hosts to establish connections to one another
Guarantees reliable delivery of data from sender to receiver
Distinguishes data for multiple connections by concurrent applications running on the
same host
Uses the notion of port numbers to identify sending and receiving application endpoints on a host
Some examples include: FTP (21), TELNET (23), SMTP (25) and HTTP (80)
69
HTTP
Hyper Text Transfer Protocol
Used to transfer or convey information on the World Wide Web
Request/response protocol between clients and servers
Client: Web browser
Server: Web server containing images and documents
70
FTP
File Transfer Protocol
Used to transfer data from one computer to another over the Internet,
or through a network
Client computer, running FTP client software, initiates connection to
server allowing client to perform various file manipulations
Some file managers and web browsers can support this function
71
DHCP
Dynamic Host Configuration Protocol
Allows a client device to request and obtain an IP address, subnet mask, and
gateway IP address from a server which has a list of addresses available for
assignment
Client sends out query prior to any IP communications
DHCP server to the client with the above information
Address = 10.195.229.130
IP Address?
Mask = 255.255.252.0
Subnet Mask?
IP = 10.195.288.1
Gateway IP?
Schneider Electric - Ethernet TCP/IP Overview
72
SNMP
Simple Network Management Protocol
SNMP is used by network administrators to manage devices on a
network
Performance
Find / Solve network problems
Plan network growth
Where?
Servers / Workstations
Routers / Switches / Hubs
Firewalls
Printers / IP Phones / Appliances
73
SNMP (cont)
Resides in the Application layer of the OSI model
Consists of managers and agents
Manager
Software / Network Management System running
on a network component
Interface between the system administrator and
the management system
MIB
Agent
Integrated firmware running on a network
component
Interface between the manager and the physical
managed device
Provides data about themselves to managers
using Management Information dataBases (MIB)
Ex. How many packets are sent/received
through the device
MIB
MIB
74
MMS
Manufacturing Message Specification
ISO 9506 (TC184) standard that defines how communications are
handled
Application level protocol that provides for 'peer to peer' real-time and
supervisory control communications over a network
Allows interoperable products to communicate between applications and
devices of different developers
75
SNTP
Simple Network Timing Protocol
Protocol for synchronizing the clocks of computer
systems over data networks
Less complex form of NTP
Uses UDP port 123 as its transport layer
Uses NTP timestamp format
Unsigned 64bit
32 bits for seconds
32 bits for fractions of seconds
# of seconds from Jan.1 1900
Accuracy
On the order of milliseconds (10) over the
Internet
On the order of microseconds (~200) over
the LAN under ideal conditions
Schneider Electric - Ethernet TCP/IP Overview
76
802.1d
802.1w
802.1d-2004
1990
1998
2004
77
Why is it Important?
Bridge Loops - Broadcast Storm
Can occur if there is a loop in the physical LAN
A single packet can travel through the loop without reaching a destination
Takes up bandwidth and floods the network with traffic
78
What is STP?
The Spanning Tree Protocol (STP) creates efficient links within a mesh network
of layer-2 devices called Bridges (typically switches)
It disables the ports on the switch that are not part of the tree, leaving a single
active path between devices
Flexible
Allows for redundant connections to provide automatic backup paths, without creating
bridge loops
The algorithm automatically changes based on the physical topology
Efficient
Devices automatically use the fastest connections between devices
Easy to configure
Interoperable
Is an IEEE standard adopted across the industry
Devices from different vendors can work together
Schneider Electric - Ethernet TCP/IP Overview
79
How it Works
Select a Root Bridge
The Bridge with the lowest Bridge ID
Root Bridge sets all ports to forwarding
80
81
RSTP Network
ROOT
Bridge A
MAC: 0000.0000.1001
Priority: 32,768
Designated
Bridge B
MAC: 0000.0000.3021
Priority: 32,768
Designated
Root
Designated
Designated
Root
Bridge D
MAC: 0000.0000.8117
Priority: 32,768
Schneider Electric - Ethernet TCP/IP Overview
Bridge C
MAC: 0000.0000.4362
Priority: 32,768
Root
Root
Designated
Blocking
Bridge E
MAC: 0000.0000.9901
Priority: 32,768
82
The Root Bridge of the network is the bridge with the smallest
Bridge ID.
At any time, a switch can become the root bridge by lowering its
Bridge ID
If manually selecting the Root Bridge, it should be as close to the center
of the network as possible
83
Bridge Identifier
The Bridge ID is a unique identifier used to select the root bridge in the network
and is made of two parts:
Priority
0 - 61,440 in steps of 4096 with default of 32,768
MAC Address
The Switch MAC Address - 6 bytes
To compare two Bridge IDs, the priority is compared first. If both bridges have
the same priority, the MAC addresses are compared
Used in tie-breakers when determining port roles and path costs
Switches A (MAC=0000.0000.1000) and B (MAC=0000.0000.2000) both have a
priority of 32,768.
Switch A will automatically be selected as the root bridge
If the user would like Switch B to become the root bridge, its priority must be set
less than 32,768
Schneider Electric - Ethernet TCP/IP Overview
84
85
86
Designated
A port on a LAN segment whos bridge has the lowest path cost back to the root bridge.
Each LAN segment (collision domain) can have only one designated port, but a bridge
could have multiple designated ports.
NOTE: If a segment has a root port, the other segment will automatically be a
designated port
Non-designated
All other ports that are not the root port or designated. Automatically in the blocking state
Alternate
A port that presents an alternate path to the root bridge without using the root port. Will
become the root port if the original fails.
Backup
A port that is a backup for the designated ports
Schneider Electric - Ethernet TCP/IP Overview
87
Listening
The port processes BPDUs, but not data frames.
Learning
The port still doesnt forward data frames, but will learn the source MAC Addresses
and add them to the switchs database
Forwarding
The port that sends and receives data normally. It will still monitor BPDUs that might
tell the port to return to the blocking state
Discarding
The port doesnt forward data frames or learn MAC Addresses
Disabled
A port that is manually disabled by a network administrator
Schneider Electric - Ethernet TCP/IP Overview
88
89
1 Mb/s
20 000 000
1-200000000
10 Mb/s
2 000 000
1-200000000
100 Mb/s
200 000
1-200000000
1 Gb/s
20 000
1-200000000
10 Gb/s
2 000
200 20 000
1-200000000
100 Gb/s
200
20 2 000
1-200000000
1 Tb/s
20
2 200
1-200000000
10 Tb/s
1 20
1-200000000
Recommended Range
Range
90
10 Gb/s
2000
1 Gb/s
20000
R
100 Mb/s
200000
D
D
100 Mb/s
200000
1 Gb/s
20000
10 Mb/s
2000000
R
D
10 Mb/s
2000000
91
Introduction to Ethernet
Communications
What is Ethernet
Layers in the TCP/IP Model
Network Architectures & Topologies
Physical Support
Ethernet Protocols and Services
Summary
92
Summary
CSMA/CD is used to avoid packet collisions
MAC Addresses are unique identifiers programmed into all Network
devices and used to send packets from one device to another
IP addressing is used to send packets across networks and the internet
93
Network Terminology
Important to be able to understand the various terms/acronyms used for
describing todays networking principles
CSMA/CD =Carrier Sense Multiple Access with Collision Detection
MAC Address = Media Access Control Address
TCP = Transmission Control Protocol
UDP = User Datagram Protocol
ARP= Address Resolution Protocol
HTTP = Hyper Text Transfer Protocol
FTP = File Transfer Protocol
SNMP = Simple Network Management Protocol
SNTP = Network Timing Protocol
DHCP = Dynamic Host Configuration Protocol (In Sepam is not present)
RSTP = Rapid Spanning Tree Protocol
Schneider Electric - Ethernet TCP/IP Overview
94