HN Simulatornew | past | comments | lists | submit | concerned_user's commentslogin

Back in the day you needed a modified cable for this with RX/TX swapped on one end but nowadays probably all nic chips have auto-detect so you can take a normal patch cable and do it.


Gigabit Ethernet sends and receive over the 4 pairs simultaneously using echo cancellation, so it doesn't need crossover cables.


Yeah, I remember those. When setting up an ad-hoc network, you were like; "where the eff is the crossover cable!" :D


it was the red one, right?


Mine was just a custom made gray one, but I have seen those red ones, yes :D


I bought bunch of ready made 10 meter cables for lan party dunno 15 or 20 years ago... Used with switch... Grey with nice paper label at end with "Cross over"...

Haven't had any issues with them ever in regular use... So pointless even back then...


If using a switch, there isn't any need for crossover cables, is it?


yes

(, except if you lack an additional power slot or have no switch available)


Mine were grey same as the normal patch cables but had red Hellerman sleeves at the ends.

Look at you with your fancy red Cat5 ;-)


Yeah so called crossover cables. But that's like decades ago.


Yeah it's been about 20 years since there was a risk this didn't work.


In fact you just need one of the two ends to be able to auto swap RX/TX.


When I hacked a USB2-GigE adapter into my old Toughbook CF-m34 to replace the stock 10/100 adapter, it wasn't for the speed. I didn't need the speed, and of course USB2 wouldn't let me use the whole gig anyway.

But GigE uses all four pairs, so the hardware has transceivers behind all four pairs, which means even when they're running at 10 or 100, the chipset can choose which pairs to transmit and receive on. Thus all GigE adapters are Auto-MDIX, and it meant I no longer needed to carry a crossover cable, no matter what other device I was talking to.

It's funny how 10/100 cards with Auto-MDIX capability were exotic and expensive, but once GigE had it by default, it became ubiquitous, cheap, and quickly forgotten.


Not really modified, you could buy them pre terminated or put on your own rj45 and just wire it as crossover.


If page has 15 requests and needs data from all of them to work correctly, then with 20% failure rate you are suddenly close to 100% non-functional page from the user perspective.


+1. This is a very real problem in practice.

A technique we've used to deal with this situation: in the overloaded backend (that has to reject some percentage of incoming requests), group the incoming requests by the parent request (the one with the 1:15 fan out) and reject according to the parent request. One way to put it, simply (though somewhat inaccurately), would be: reject 100% of traffic from 20% of users, rather than 20% of traffic across all users (causing essentially full failure for all users).

We typically implemented this by propagating an ID of the parent request down to the backend. I'm simplifying a lot in this description (e.g. have to deal with the parent requests landing on different backend tasks; also rotate the IDs gradually to introduce some fairness).


A nice technique to learn of this situation is to fail ("black hole") random resources in synthetic loads of the frontend. This lets you find out 'bout these single points of failure, and then you can start adding fallbacks.

This is a pretty ancient thing as far as the FE goes: https://www.stevesouders.com/blog/2010/06/01/frontend-spof/


It's easier to create a nice worst-case failure UX this way too. Rather than a page that sorta kinda loads but doesn't actually work at all you can unambiguously put up a "oops we're broken right now try again later" page whenever that top-level endpoint returns a non-retryable error.

But that of course begs the question--why is the frontend retrieving all these data from 16 different endpoints instead of just one? It would be less overhead (http, auth, serialization, compression) to just serve it all in one request even if the http layer needs to fan out 15 rpc calls... this is why we can't have nice things.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: