Anda di halaman 1dari 30

Ethernet

Comunicaciones II

Introduccin
Ethernet originated at Xerox Palo Alto Research Center (PARC) in the mid1970s. The basic philosophy was that any station could send a message at any
time, and the recipient had to acknowledge successful receipt of the
message. It was successful and in 1980 the DIX Consortium (Digital Equipment
Corp., Intel, and Xerox) was formed, issuing a specification, Ethernet Blue
Book 1, followed by Ethernet Blue Book 2. This was offered to the Institute of
Electrical and Electronics Engineers (IEEE, www.ieee.org), who in 1983 issued
the Carrier Sense, Multiple Access/Collision Detect (CSMA/CD) specification
their stamp of approval on the technology.
Ethernet has since evolved under IEEE to encompass a variety of standards for
copper, fiber, and wireless transmission at multiple data rates.
Ethernet is an excellent transmission medium for data, but by itself falls short
of offering a complete solution. A network protocol is also needed to make it
truly useful and what has evolved alongside of Ethernet is TCP/IP.

Introduccin
The big push toward TCP/IP came in the mid-1980s when 20 of the largest U.S.
government departments, including the U.S. Department of Defense, decreed that all
mainframes (read: expensive computers) to be purchased henceforth required a
commercially listed and available implementation of UNIX to be offered. The
department didnt necessarily need to use UNIX for the project at hand, but after the
project was completed, the government wanted the ready option to convert this
expensive computer into a general-purpose computer.
This soon meant that all serious computer systems in the world had relatively
interoperable Ethernet and TCP/IP implementations. So IBM had Systems Network
Architecture (SNA), TCP/IP, and Ethernet on all of its computers. Digital (DEC) had
DECnet, TCP/IP, and Ethernet on all of its computers. Add a few more examples (Cray,
Sun, CDC, Unisys, etc.) and you soon see that the only true standard available on all
computers was a TCP/IP plus Ethernet combination.
Both from a historical view as well as in todays industrial world, the TCP/IP plus
Ethernet marriage is a key combination. Neither would have survived or prospered
without the other.

Ethernet 10Mbps
10Base2 thin wire coaxial cable (6.3 mm/0.25
inch diameter), 10 Mbps baseband operation, bus
topology.
10Base5 thick wire coaxial cable (13 mm/0.5
inch diameter), 10 Mbps baseband operation, bus
topology.
10BaseT unscreened twisted pair cable (0.4 to
0.6 mm conductor diameter), 10 Mbps baseband
operation, hub topology.
10BaseF optical fiber cables, 10 Mbps, 10 Mbps
baseband operation, point-to-point topology.

10base2

10base5

10baseT

Colisiones en la red y arbitraje


Imagine that you are having dinner with five other people, but the dinner
table is 1 km wide instead of regular size. Assume for this illustration that you
can easily hear each speaker despite the large distance. Sound takes 3 s to
travel 1 km. So if you and your friend across the 1-km table both start
speaking at the same time, it will take 3 s before you know you are
interrupting each other.
Successful contention rules would require the following conditions to
be met:
The rules that determine retransmit times must provide for at least 3 s of
spacing between permitted transmissions.
It will take each speaker at least 6 s to be certain that he or she is not
being interrupted if you start talking, your voice takes 3 secs to reach the
other side. Assume the other guy starts talking 2.99 secs after you did. It
will now take 3 secs for his voice to reach you. That means you have to
listen out for the total Round Trip Time of 6 seconds.

Colisiones en la red y arbitraje

Therefore each speaker must talk for more than 6 s every time he or she has something to
say. If two people simultaneously talked for only 2 s each, they would each hear the others
message clearly. The other speakers message would arrive 1 s after he finished speaking and
he could hear it, but others around the table would hear both messages mixed together.
The larger the table is, the longer the messages must be if everyone has equal opportunity to
talk.
In this example, message length was described in seconds, not bits or bytes. There is a direct
relationship between allowable network length and minimum message length. At this table,
if people speak at a rate of 4 words per second, then the minimum message size is 24 words.
Suppose the baud rate goes upextremely talkative speakers appear, who speak 40 words
per second instead of 4. Then the minimum message size is now 240 words! When you move
from 10-Mb Ethernet to 100-Mb or 1-Gb, the minimum required message length grows.
However to maintain compatibility, you cannot do this. So you have to reduce the size of the
table. So from 10 Mbps to 100Mbps the frame stayed at 64 Bytes min, so the collision
domain shrank from 2500 m (51.2 uS) to 250 m (5.12 uS). In Ethernet, a message must be
long enough to reach the other end of the network before the transmitter stops transmitting.
The minimum message length defines a maximum network length, which is called the
collision domain.

Cmo trabaja el protocolo CSMA/CD


This is exactly how Ethernet works in half-duplex mode. (CSMA/CD is
not required in full-duplex mode.)
Each node listens to the wire and if another node is transmitting,
the other nodes remain silent until the channel is free (i.e., no
carrier is sensed). When the bus is quiet, a node with data to
transmit will send it.
Its quite possible that another node also has data to send, and it
starts transmitting at the same time. A collision occurs, also
detected by both nodes. They stop and choose a random number
that indicates how long to wait to retransmit. The one with the
lowest number re-tries first, and the message can now successfully
be sent. The back-off algorithm for choosing this random number is
designed to minimize collisions and retransmissions, even when
many, many nodes (up to 1024) are involved. A 10-Mb system
generates backoff delay values ranging from 51 s to 53 ms.

Uso de CSMA/CD en la actualidad


CSMA/CD was used in now-obsolete shared media
Ethernet variants (10BASE5, 10BASE2) and in the early
versions of twisted-pair Ethernet which used repeater
hubs. Modern Ethernet networks, built with switches and
full-duplex connections, no longer need to utilize
CSMA/CD because each Ethernet segment, or collision
domain, is now isolated. CSMA/CD is still supported for
backwards compatibility and for half-duplex connections.
IEEE Std 802.3, which defines all Ethernet variants, for
historical reasons still bears the title "Carrier sense
multiple access with collision detection (CSMA/CD) access
method and physical layer specifications".

Reduciendo colisiones

The main contributors to collisions on an Ethernet network are:

The number of packets per second


The signal propagation delay between transmitting nodes
The number of stations initiating packets
The bandwidth utilization

A few suggestions on reducing collisions in an Ethernet network are:

Keep all cables as short as possible.


Keep all high activity sources and their destinations as close as possible.
Possibly, isolate these nodes from the main network backbone
withbridges/routers to reduce backbone traffic.
Separate segments with bridges and switches rather than with repeaters,
which do not truncate the collision domain.
Check for unnecessary broadcast packets.
Remember that the monitoring equipment to check out network traffic can
contribute to the traffic (and the collision rate).

Reglas de diseo
Longitud de los segmentos de cable

Tiempos de retraso

Ethernet 100 Mbps


100BaseT is the shorthand identifier for all
100 Mbps Ethernet systems, including twisted
pair copper and fiber versions. These include
100BaseTX, 100BaseFX, 100BaseT4 and
100BaseT2.
100BaseX is the designator for the 100BaseTX
(copper) and 100BaseFX (fiber).

Tiempos de retraso

Tiempos de retraso
The maximum round-trip delay for 100BaseT systems is the
time to transmit 64 bytes or 512 bits and equals 5.12 s. A
frame has to go from the transmitter to the most remote
node then back to the transmitter for collision detection
within this round trip time. Therefore the one-way time delay
will be half this.
The maximum sized collision domain can then be determined
by the following calculation:
Repeater delays + Cable delays + NIC delays + Safety factor (5 bits
minimum) <2.56 s

Ejemplo de clculo
The following calculation is made to confirm whether it is
possible to connect two fast Ethernet nodes together using
two class II repeaters connected by 50-m fiber. One node is
connected to the first repeater with 50-m UTP while the other
has a 100-m fiber connection.
Class II
repeater

50m UTP

Ethernet
node

50m fiber

Class II
repeater

100m fiber

Ethernet
node

Ejemplo de clculo
Usando los valores de la Tabla anterior el retardo
total en un sentido es:
1.5*0.50+0.5*0.55+2*0.46+2*0.25=2.445s
La mitad del tiempo estipulado es 5.12/2=2.56s.
Se cumple con el factor de seguridad de 5bits?

Ethernet industrial
Early Ethernet was not entirely suitable for control
functions as it was primarily developed for office-type
environments. The Ethernet technology has, however,
made rapid advances over the past few years. It has gained
such widespread acceptance in industry that it is becoming
the de facto field bus technology.
EtherNet/IP is an application layer protocol that is
transferred inside a TCP/IP Packet. That means that
EtherNet/IP is simply the way data is organized in a TCP or
UDP packet.
EtherNet/IP was introduced in 2001 and today is the most
developed, proven and complete industrial Ethernet
network solution available for manufacturing automation.

Esquema para una red Ethernet/IP

Conectores y cableado
Most modern industrial Ethernet systems are, however,
based on a 10BaseT/100BaseTX configuration and thus
have to contend with RJ-45 connectors and (typically)
Cat5/Cat5e unshielded twisted pair (UTP) cable.
Despite its inherent resistance to electro-magnetically
induced interference, the UTP cable is not really suited
to industrial applications. The connectors are
problematic as well. The RJ-45 connectors are
everything but rugged and are suspect when subjected
to great temperature extremes, contact with oils and
other fluids, dirt, UV radiation, EMI as well as shock,
vibration and mechanical loading.

RJ-45 standard

Ethernet DB-9

M12 micro conector

Conectores

Cables
Existe una amplia variedad de cables
dependiendo del ambiente de aplicacin.

Resumen de caractersticas para


Ethernet/IP
1) EtherNet/IP is an application layer protocol that is transferred inside a TCP/IP Packet. That
means that EtherNet/IP is simply the way data is organized in a TCP or UDP packet.
2) All devices on an EtherNet/IP network present their data to the network as a series of data
values called attributes grouped with other similar data values into sets of attributes called
Objects.
3) There are EtherNet/IP Required Objects Identity, TCP, Router that every device must have.
The EtherNet/IP Specification defines those objects.
4) There are EtherNet/IP Application Objects that have the data for your specific device. For
example, an EtherNet/IP Drive device has a Motor Object. EtherNet/IP devices that support
specific devices all have the same set of EtherNet/IP application objects.
5) There are two kinds of messages that are transferred between an EtherNet/IP Scanner Device
(opens connections and initiates data transfers) and EtherNet/IP Adapter devices (provides data
to Scanners). These messages are Explicit Messages (asynchronous, as needed) and I/O Messages
(Data messages that are continuously transferred).
6) EtherNet/IP is part of CIP, the Common Industrial Protocol. CIP defines the Object structure
and specifies the message transfer. CIP protocol over CAN is DeviceNet. CIP protocol over
Ethernet is EtherNet/IP.

Ms material sobre Ethernet/IP


https://www.odva.org/Publication-Download

Circuitos de interfaz
https://www.odva.org/Portals/0/Library/Publications_Numbe
red/PUB00213R0_EtherNetIP_Developers_Guide.pdf
http://www.ti.com/tool/tidep0003
http://www.ti.com/lit/sl/slyy050b/slyy050b.pdf
https://www.maximintegrated.com/en/appnotes/index.mvp/id/5784
https://www.maximintegrated.com/en/appnotes/index.mvp/id/5821

Anda mungkin juga menyukai