What ARQ protocol do Java Sockets implement by default?

371 Views Asked by At

I'm using Java Sockets from package java.net. I read that they use TCP, so I was curious to know which ARQ (Automatic Repeat reQuest) protocol they implement by default. I've looked in the documentation but could not find any information about this.

I know there are three main ARQ algorithms: stop-and-wait, go-back-n and selective repeat. Which one do Java Sockets use?

1

There are 1 best solutions below

0
Matthias247 On BEST ANSWER

The Java Socket APIs are typically wrappers around the operating systems socket APIs. The java APIs do simply instruct the operating system to create/bind/close sockets and to read or write data from them. The internal behavior of the sockets depends on the operating systems implementation. Sou would need to look up what the operating system you use (Windows/Linux/MacOS/etc.) uses and whether that is configurable.