From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,273b2feaa8504d79 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-08-09 13:36:23 PST Path: gmd.de!xlink.net!sol.ctr.columbia.edu!usc!elroy.jpl.nasa.gov!ames!koriel!lll-winken.llnl.gov!usenet From: oberman@ptavv.llnl.gov Newsgroups: comp.sys.dec Subject: Re: Problems with thick vs thin ethernet Date: Mon, 9 Aug 93 20:02:37 GMT Organization: Lawrence Livermore National Laboratory Message-ID: <246ag9$f74@lll-winken.llnl.gov> References: <23c37o$i9@lll-winken.llnl.gov>, NNTP-Posting-Host: ptavv.llnl.gov In Article 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.