• he/him

one more cute disaster… it’s hard here in paradise

last.fm listening



cathoderaydude
@cathoderaydude

EDIT: updated with clarifying details

fascinating new discovery: softmodems introduced an equivalent to AUI/MII. let me explain

ethernet is one of the only communications protocols i'm aware of that was designed with extreme modularity and flexibility from the get-go. for some reason, its designers understood that someday, the first idea they had for the physical layer on which ethernet would travel would get replaced with a new idea, and that at that point they would not want to have to redesign all their hardware from the ground up

so the first 15-20 years of ethernet cards did not actually have a "native medium." you couldn't buy a "thicknet card" or "thinnet card" - all Ethernet ports were AUI, or Attachment Unit Interface connectors. that was a DA15 plug, like on a PC joystick, and it spoke a completely universal, all-digital Ethernet protocol.

instead of plugging the actual "ethernet cable" into the AUI port, you connected an MAU (Medium Attachment Unit.) That contained electronics to convert from the simple TTL-digital protocol into whatever weird horseshit was being used on the actual wire.

if you were using thicknet or thinnet, the digital signals were turned into RF warblings that would survive travel down a coax cable; once twisted-pair Ethernet became a thing, your MAU produced differential digital signals. i don't know what other MAUs were ever sold, but in theory you could have one that produced open-air radio signals, or transmitted over a pair of IR LEDs. the important thing is that the card didn't know shit about any of this.

the electronics on the card were called the MAC (yes, as in "MAC address.") the MAC only understood packets, and only spoke AUI. it didn't know about analog voltages or coax or any of the stuff going on outside the PC; all that stuff is part of what Ethernet called the PHY, or physical layer interface.

everything was very cleanly segmented, so you could design a single MAC (probably where 90% of the design cost went anyway) without needing to be married to a specific medium - the end user provided an appropriate MAU, and if they ever changed media, they could simply swap that out to change PHYs.

it was honestly brilliant, and the concept persists to the present day. the later 100mbps standard is actually a completely distinct protocol called Fast Ethernet, which diverges so greatly that it replaced AUI with a new interface called MII, and in turn MII developed into eight or ten newer, faster interfaces, but they all do the same basic thing: isolate MAC from PHY.

critically however, the external transceiver basically disappeared; MII exists on all Ethernet devices, but almost invariably as an internal board-level connection between two chips, not an exposed plug that an end user interacts with. it now largely exists to make life easier for manufacturers, since end users virtually never change media.

for that reason, 99% of computer users have never seen an MAU these days, and the term is technically not applied to anything from Fast Ethernet onwards - but the concept absolutely still exists!

for one thing: SFPs, as used in enterprise networking, are functionally MAUs: they separate the MAC from the medium (or "PHY"), they just use MII instead of AUI under the hood.

if you have a 48-port 10-gig switch, there's a good chance that the entire thing is SFP ports. that means you can still do what we were doing in 1990: when you need to change media, you just switch out a transceiver - an SFP module - and the rest of the switch is none the wiser. the MAC only cares about medium present or medium not present, and the transceiver worries about all that.

so if your switch is all fiber, but you need a copper port in an emergency - just swap a module. done, medium changed. if you need to connect two switches together - just use a direct attach cable. that's literally ethernet with no MAU. direct PHY-to-PHY communication over the MII protocol. incredible!

in addition, early Fast Ethernet cards actually had exposed MII ports and supported external transceivers, exactly as Ethernet did with AUI. see followup post for image. these are stupid rare!

so this is all very cool - and apparently modems did the same thing. this makes sense! late-era dialup modems, even if they're softmodems, had to have a DSP somewhere. DSPs, AFAIK, do not output analog signals directly, you still need a DAC for that. well, the people who design DSPs are not necessarily the people who know best how to make DACs; you're going to end up buying them from two different companies, but since modem signals conform very reliably to known specs, why use different interfaces?

who wants to reprogram their DSP for every DAC they choose on a given day? and who wants to buy a generic DAC, then still have to build the rest of the "front end" - the circuitry that handles ring detection, onhook-offhook, tone decoding, etc.? so, they apparently came up with "MII for modems." cool!


cathoderaydude
@cathoderaydude

early Fast Ethernet cards had MII ports just like how Ethernet had AUI


You must log in to comment.

in reply to @cathoderaydude's post:

huh! yeah! that's a neat way to look at it

from the marketing material there we're pretty sure the actual use of this chip was primarily in what the Linux kernel people at the time called "winmodems" - the vast majority of the DSP was implemented in software, in a proprietary driver that only existed on Windows and ran on the main CPU. this allowed modems to be very cheap. it also made it completely impossible, for the first couple years, for them to be used with Linux, and people were PISSED.

(eventually somebody wrote a "linmodem" driver. then the use of modems as part of the computer went away entirely for a while, although it circled back around a few years later with pluggable cell modems, and similar stuff also happens inside the firmware of cable and DSL modems.)

none of that contradicts anything you're saying, we just wanted to add more context

oh my god I had no idea SFP modules were MAUs! I assumed they had cooked up some new special bullshit but that is so so fucking elegant. I have this ultra cheap 10Gbps switch that has 1 ethernet port and 4 SFP+ ports so I have dealt with SFP a lot more than one would expect for some random person but knew basically nothing about it.

in reply to @cathoderaydude's post:

MII has evolved some variants these days, including RMII which has fewer pins but a higher data rate and RGMII for gigabit. It's also even more useful now because rather than having your MAC on a dedicated chip, you have a built-in peripheral on your SoC or microcontroller, and then you just need a separate PHY chip for all the messy analog bits, and there is a convenient standard for those two pieces to communicate.

I remember reading a dude's blog about using LEDs and some fancy lenses to send ethernet wirelessly across a city, was a bunch of custom electronics connected to the MII/UAI port of ethernet cards. Got 10M across a couple of kilometers, I remember fog being a problem, but rain was fine unless it was really bucketing

This was probably ~20 years ago and either google and bing have been enshittified, the blog is gone or my search skills are lacking cos I can not find it any more :(

I remember being fascinated by it and wanting to try it out, but my budget as a student not really stretching and not really having a purpose for it meant I never did!