Andrea Rossi
Andrea Rossi

Reputation: 1061

What ARQ protocol do Java Sockets implement by default?

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?

Upvotes: 0

Views: 392

Answers (1)

Matthias247
Matthias247

Reputation: 10426

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.

Upvotes: 2

Related Questions