1

For example, how does a servers NIC know that the client side is running a fibre optic connection and so it can send more packets down the bandwidth?

Like, I'm confused as to how more data comes through the connection to the client based on their connection speed. Is this negotiated with the server in some way when the connection is established, or how does that work?

Thanks

0

3 Answers 3

2

how does a servers NIC know that the client side is running a fibre optic connection and so it can send more packets down the bandwidth?

It has no knowledge of the client, or even whether anything is receiving the data.

The NIC knows what kind of physical interface it has (fiber, copper), and it knows its interface speed (line rate). It will send packets at the line rate as long as the upper layers keep sending it data.

1
  • 1
    That's the short answer. ;-)
    – Zac67
    Dec 8, 2020 at 19:41
2

For example, how does a servers NIC know that the client side is running a fibre optic connection

A NIC knows what kind of PHY is fitted. The physical-layer component is either part of the NIC or it's a modular transceiver (commonly SFP). A transceiver module includes an I²C chip that identifies it to the NIC (supported media, wavelength, speeds, reach, ...).

and so it can send more packets down the bandwidth?

Link speed is either implied by the type/module or negotiated. That speed is used for all data sent over the link.

The link speed is sometimes called raw bandwidth. The actual bandwidth depends on a lot more factors: data source, backplanes, possibly bottlenecks in the path, data sink and such. The actual throughput also depends on network congestion, send window and round-trip time, and so on.

Also, client and server aren't usually connected directly, so their respective link speeds can be vastly different. A server could be linked at 10 Gbit/s and serve a client dialed into a router with an analog modem with just 56 kbit/s. Effectively, that server could serve 178,000 such clients at their full speed simultaneously (provided there are no bottlenecks).

How does a NIC know how much data to send?

The NIC simply sends the data it is given, at the rate it is linked with. The data is provided by the application(s), passing through the OS's network stack.

If a transport-layer protocol like TCP is used that provides reliable delivery it'll throttle the data flow from the application to what the network can handle (by tracking acknowledgments from the flow partner and detecting network congestion - quite complex).

The NIC output may also be throttled at the data link layer by Ethernet pause frames, but that isn't widely used.

1

For example, how does a servers NIC know that the client side is running a fibre optic connection and so it can send more packets down the bandwidth?

It doesn't. The NIC knows the bandwidth of it's immediate link, but it doesn't know anything about the network beyond that.

I'm confused as to how more data comes through the connection to the client based on their connection speed. Is this negotiated with the server in some way when the connection is established, or how does that work?

Trial and error!

The server starts off sending packets relatively slowly, and gradually increases the rate until it detects congestion. Traditionally congestion was detected through dropped packets. In more recent years a mechanism called "explicit congestion notification" was added to the standards, to allow routers to notify clients and servers of congested links before starting to drop packets, however most operating systems have not yet enabled it by default.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.