* Re: Problems with thick vs thin ethernet
1993-08-07 4:11 ` Jack Twilley
@ 1993-08-08 16:59 ` Ron Natalie
1993-08-09 19:55 ` oberman
1993-08-09 20:02 ` oberman
2 siblings, 0 replies; 6+ messages in thread
From: Ron Natalie @ 1993-08-08 16:59 UTC (permalink / raw)
Heartbeat one major benefit, it provides feedback that the collision detect
line from the transceiver is still hooked up. The premise under which Ethernet
operates goes to pot pretty fast if you stop being able to detect collisions.
Heartbeat blips the CD line after each transmission so the host can detect
things gone awry and stop transmitting. Some systems also use this to verify
that the cable is plugged in at all, but this can be accomplished via other
means (like listening to ones own carrier).
-Ron
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problems with thick vs thin ethernet
1993-08-07 4:11 ` Jack Twilley
1993-08-08 16:59 ` Ron Natalie
@ 1993-08-09 19:55 ` oberman
1993-08-09 20:02 ` oberman
2 siblings, 0 replies; 6+ messages in thread
From: oberman @ 1993-08-09 19:55 UTC (permalink / raw)
In Article <TWILLEY.93Aug7001127@dewey.nl.nuwc.navy.mil>
twilley@dewey.nl.nuwc.navy.mil (Jack Twilley) writes:
>This may be off the topic a little, but what is the heartbeat for, and why
>would one want it at all?
This has been posted to other groups and is part of the BIG-LAN FAQ, but I
don't think I've ever posted it here, so here it be. Comments/corrections
galdly accepted.
R. Kevin Oberman Lawrence Livermore National Laboratory
Internet: koberman@llnl.gov (510) 422-6955
Disclaimer: Being a know-it-all isn't easy. It's especially tough when you
don't know that much. But I'll keep trying. (Both)
================================================================================
SQE, CPT, and Ethernet
(Or, Why does everyone look confused?)
This is a discussion of SQE Test and CPT (both commonly referred to as
"heartbeat") for IEEE 802.3 and Ethernet. For really gory details, see the
appropriate documents, ANSI/IEEE standard 802.3, ISO standard 8802-3, and the
DIX Ethernet V2 Standard. (The first 2 references are identical.) Ethernet V1
is a different beast and is not covered here. Besides, it did not have the
concept of heartbeat as discussed here.
First, SQE Test and CPT are not quite the same thing. CPT is a part of DIX
Ethernet Version 2 and is simply a test of collision detection functionality in
the MAU (that's the correct name for a transceiver, Media Access Unit). It is
ALWAYS present in Ethernet V2 MAUs and can't ever be disabled (without
modifying the hardware). It is required for correct operation of ALL Ethernet
V2 equipment.
SQE, on the other hand, is part of the 802.3 specification and performs a
number of MAU functions and "reports" to the controller. In the case of SQE
Test, the "report" is in the form of a pulse nearly identical to the V2 CPT
pulse, but with slightly differing timing and electrical specifications. It
should be switchable, as 802.3 requires SQE Test for all terminal equipment,
but prohibits it for repeaters.
SQE Test and CPT both appear as a signal in the collision lines from the MAU to
the controller after every write. This is why MAUs with SQE Test enabled and
with display LEDs show a collision every time they show a write. THIS IS
NORMAL!
You may notice the term SQE Test. SQE is Signal Quality Error and has three
major manifestations:
1. Report electrically incorrect signals on the medium.
2. Report collisions.
3. Test itself.
Of these, only the third is switchable, but when people refer to SQE, they
almost always mean SQE Test.
Quick digression: What is a collision? Of course, we all know that a collision
is when two controllers start to transmit at the same time (more of less) and
that when this happens both will stop and wait for a sort of random interval
and then retransmit if carrier is not present. This function is critical to
proper network operation. A MAU which can't detect a collision can mess up a
network badly. This makes it critical to be able to quickly isolate "broken"
MAUs. If you don't understand this, read any of the old papers on multiple
access nets, especially the old Aloha Net.
In practice, MAUs hardly ever fail. BUT IF ONE DOES, YOU MAY HAVE A BIG
PROBLEM!
While SQE covers a bit more than heartbeat did and SQE Test is slightly
different in both timing and electrical characteristics, they are essentially
the same from the perspective of most terminal equipment and you can replace an
Ethernet V2 MAU with an 802.3 MAU with SQE Test enabled most of the time. (A
notable exception is an Ethernet V2 repeater which really requires an Ethernet
V2 MAU. There may be others.) You can even replace an 802.3 MAU with an
Ethernet V2 one most of the time. In fact, there are "fixes" for some Ethernet
V2 MAUs to disable heartbeat and make them into something like an 802.3 MAU
with SQE Test disabled. This also seems to work almost all the time.
Anyone still with me? OK
RULE FOR SQE Test. Always turn it on EXCEPT for repeaters. There should be no
exceptions to this rule, but there are. Some manufacturers can't seem to read
standards (or just don't care). As a result there are some terminal devices
that get upset when they see SQE Test. I have been told that this is true of
the Cisco AGS, but not the IGS. Not that there is any documentation on this.
Several e-amil exchanges with Cisco folks have not clarified this.
There is one BIG special case, the Ethernet fan-out box, most commonly a DEC
DELNI. This box has only one MAU, so it repeats the CPT (it's a V2 device) that
it sees from the MAU on the "master" port. If the master port is disabled, CPT
is generated internally to keep things happy.
But what if you plug a repeater into a DELNI? You can disable CPT by using an
802.3 MAU with SQE Test disabled. or, if you don't use the master port, turn it
on and plug an Ethernet loopback connector into the master port. In either
case, CPT is disabled to ALL PORTS! No way to enable it on only certain ports.
DELNIs produce other oddities. They shorten the total maximum length of the AUI
cable used between the system and the MAU to 35 meters. (And don't forget to
include the length of the cable between the interface and the connector on the
rear of the cabinet.) This number is the sum of the cable from the host to the
DELNI and from the DELNI to the MAU. Two 20 meter cables and you are over the
limit! Because of these and other oddities, I try to avoid DELNIs. And I NEVER
EVER plug a repeater of any type into one.
Other companies make 802.3 equivalents to the DELNI on which SQE may be
switched on each port. While this fixes one problem, the timing concerns of
fan-out boxes remains. Buyer beware! Neither 802.3 nor Ethernet V2 standards
cover fan-out boxes in any way, so there is no way to really claim that they
meet standards (or don't).
We've now covered the basics. So what happens when a MAU fails? In theory,
every time it transmits a packet, an error is logged. This happens on some
equipment. But most software I've dealt with simply ignores the error flag and
does nothing. So SQE Test makes absolutely no difference to these systems. THIS
IS BAD SOFTWARE DESIGN. Unfortunately the first Berkeley Ethernet drivers did
not bother to report SQE Test failures and most Ethernet and 802.3 drivers are
built on this code.
Once in a while a MAU does fail. If it is on some device that does not log SQE
failures or has a MAU with SQE Test turned off, you don't know what is
happening. If you are on 10baseT, it may be isolated to a hub pretty quickly,
but on coax you are reduced to segmenting the cable (physically disconnecting
it) until you have isolated the problem. This is NOT fun and makes the network
manager very unpopular since the network tends to be down for a LONG time. It
took about 4 hours last time I had this problem and could have taken longer.
What's a network manager supposed to do? Complain vigorously to vendors of
equipment that don't adhere to the standard. Complain equally to vendors of
software that doesn't bother to log the failures. SNMP is no good if the agents
don't have any information to send out.
If anyone is not confused by now, congratulations. I think I may even have
confused myself.
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Problems with thick vs thin ethernet
1993-08-07 4:11 ` Jack Twilley
1993-08-08 16:59 ` Ron Natalie
1993-08-09 19:55 ` oberman
@ 1993-08-09 20:02 ` oberman
2 siblings, 0 replies; 6+ messages in thread
From: oberman @ 1993-08-09 20:02 UTC (permalink / raw)
In Article <TWILLEY.93Aug7001127@dewey.nl.nuwc.navy.mil>
twilley@dewey.nl.nuwc.navy.mil (Jack Twilley) writes:
>This may be off the topic a little, but what is the heartbeat for, and why
>would one want it at all?
This has been posted to other groups and is part of the BIG-LAN FAQ, but I
don't think I've ever posted it here, so here it be. Comments/corrections
galdly accepted.
R. Kevin Oberman Lawrence Livermore National Laboratory
Internet: koberman@llnl.gov (510) 422-6955
Disclaimer: Being a know-it-all isn't easy. It's especially tough when you
don't know that much. But I'll keep trying. (Both)
================================================================================
SQE, CPT, and Ethernet
(Or, Why does everyone look confused?)
This is a discussion of SQE Test and CPT (both commonly referred to as
"heartbeat") for IEEE 802.3 and Ethernet. For really gory details, see the
appropriate documents, ANSI/IEEE standard 802.3, ISO standard 8802-3, and the
DIX Ethernet V2 Standard. (The first 2 references are identical.) Ethernet V1
is a different beast and is not covered here. Besides, it did not have the
concept of heartbeat as discussed here.
First, SQE Test and CPT are not quite the same thing. CPT is a part of DIX
Ethernet Version 2 and is simply a test of collision detection functionality in
the MAU (that's the correct name for a transceiver, Media Access Unit). It is
ALWAYS present in Ethernet V2 MAUs and can't ever be disabled (without
modifying the hardware). It is required for correct operation of ALL Ethernet
V2 equipment.
SQE, on the other hand, is part of the 802.3 specification and performs a
number of MAU functions and "reports" to the controller. In the case of SQE
Test, the "report" is in the form of a pulse nearly identical to the V2 CPT
pulse, but with slightly differing timing and electrical specifications. It
should be switchable, as 802.3 requires SQE Test for all terminal equipment,
but prohibits it for repeaters.
SQE Test and CPT both appear as a signal in the collision lines from the MAU to
the controller after every write. This is why MAUs with SQE Test enabled and
with display LEDs show a collision every time they show a write. THIS IS
NORMAL!
You may notice the term SQE Test. SQE is Signal Quality Error and has three
major manifestations:
1. Report electrically incorrect signals on the medium.
2. Report collisions.
3. Test itself.
Of these, only the third is switchable, but when people refer to SQE, they
almost always mean SQE Test.
Quick digression: What is a collision? Of course, we all know that a collision
is when two controllers start to transmit at the same time (more of less) and
that when this happens both will stop and wait for a sort of random interval
and then retransmit if carrier is not present. This function is critical to
proper network operation. A MAU which can't detect a collision can mess up a
network badly. This makes it critical to be able to quickly isolate "broken"
MAUs. If you don't understand this, read any of the old papers on multiple
access nets, especially the old Aloha Net.
In practice, MAUs hardly ever fail. BUT IF ONE DOES, YOU MAY HAVE A BIG
PROBLEM!
While SQE covers a bit more than heartbeat did and SQE Test is slightly
different in both timing and electrical characteristics, they are essentially
the same from the perspective of most terminal equipment and you can replace an
Ethernet V2 MAU with an 802.3 MAU with SQE Test enabled most of the time. (A
notable exception is an Ethernet V2 repeater which really requires an Ethernet
V2 MAU. There may be others.) You can even replace an 802.3 MAU with an
Ethernet V2 one most of the time. In fact, there are "fixes" for some Ethernet
V2 MAUs to disable heartbeat and make them into something like an 802.3 MAU
with SQE Test disabled. This also seems to work almost all the time.
Anyone still with me? OK
RULE FOR SQE Test. Always turn it on EXCEPT for repeaters. There should be no
exceptions to this rule, but there are. Some manufacturers can't seem to read
standards (or just don't care). As a result there are some terminal devices
that get upset when they see SQE Test. I have been told that this is true of
the Cisco AGS, but not the IGS. Not that there is any documentation on this.
Several e-amil exchanges with Cisco folks have not clarified this.
There is one BIG special case, the Ethernet fan-out box, most commonly a DEC
DELNI. This box has only one MAU, so it repeats the CPT (it's a V2 device) that
it sees from the MAU on the "master" port. If the master port is disabled, CPT
is generated internally to keep things happy.
But what if you plug a repeater into a DELNI? You can disable CPT by using an
802.3 MAU with SQE Test disabled. or, if you don't use the master port, turn it
on and plug an Ethernet loopback connector into the master port. In either
case, CPT is disabled to ALL PORTS! No way to enable it on only certain ports.
DELNIs produce other oddities. They shorten the total maximum length of the AUI
cable used between the system and the MAU to 35 meters. (And don't forget to
include the length of the cable between the interface and the connector on the
rear of the cabinet.) This number is the sum of the cable from the host to the
DELNI and from the DELNI to the MAU. Two 20 meter cables and you are over the
limit! Because of these and other oddities, I try to avoid DELNIs. And I NEVER
EVER plug a repeater of any type into one.
Other companies make 802.3 equivalents to the DELNI on which SQE may be
switched on each port. While this fixes one problem, the timing concerns of
fan-out boxes remains. Buyer beware! Neither 802.3 nor Ethernet V2 standards
cover fan-out boxes in any way, so there is no way to really claim that they
meet standards (or don't).
We've now covered the basics. So what happens when a MAU fails? In theory,
every time it transmits a packet, an error is logged. This happens on some
equipment. But most software I've dealt with simply ignores the error flag and
does nothing. So SQE Test makes absolutely no difference to these systems. THIS
IS BAD SOFTWARE DESIGN. Unfortunately the first Berkeley Ethernet drivers did
not bother to report SQE Test failures and most Ethernet and 802.3 drivers are
built on this code.
Once in a while a MAU does fail. If it is on some device that does not log SQE
failures or has a MAU with SQE Test turned off, you don't know what is
happening. If you are on 10baseT, it may be isolated to a hub pretty quickly,
but on coax you are reduced to segmenting the cable (physically disconnecting
it) until you have isolated the problem. This is NOT fun and makes the network
manager very unpopular since the network tends to be down for a LONG time. It
took about 4 hours last time I had this problem and could have taken longer.
What's a network manager supposed to do? Complain vigorously to vendors of
equipment that don't adhere to the standard. Complain equally to vendors of
software that doesn't bother to log the failures. SNMP is no good if the agents
don't have any information to send out.
If anyone is not confused by now, congratulations. I think I may even have
confused myself.
^ permalink raw reply [flat|nested] 6+ messages in thread