Skip to main content

All Questions

Tagged with
3 votes
2 answers
2k views

Are FIN packets guaranteed to arrive?

In the 4-way handshake, we have the following: FIN -------> <------- ACK <---x--- FIN (what if this packet is lost?) ACK -------> What happens if the third packet is lost, will it be re-...
user454606's user avatar
0 votes
1 answer
2k views

List all open sockets in /dev/tcp/localhost/

Is it possible to list all open sockets in /dev/tcp/localhost/ on a Linux machine? I want to list all sockets where the following command would return 0: timeout 2 bash -c "cat < /dev/null > /...
Harold L. Brown's user avatar
0 votes
0 answers
16 views

What happens when I terminate a process and the socket send buffer is not empty? [duplicate]

In Windows (and probably in other operating systems), if a process has a TCP connection with another process on another machine, and then I terminate the process, an RST packet will be sent to the ...
user avatar
4 votes
1 answer
929 views

What happens when I terminate a process and the socket send buffer is not empty?

In Windows (and probably in other operating systems), if a process has a TCP connection with another process on another machine, and then I terminate the process, an RST packet will be sent to the ...
user424014's user avatar
0 votes
3 answers
1k views

What happens when 2 hosts simultaneous establish a connection in a 3-way handshake

Say two hosts, A and B, both attempt to start a connection with each other, but the SYN from A gets to B before B's SYN arrives at A. My answer is that A would sent SYN ACK and would ignore the SYN ...
orange's user avatar
  • 900
3 votes
1 answer
3k views

Does an open TCP socket connection consume data when not used?

I have a TCP socket connection established between my server and a modem which has a active GSM module and sim card installed. I create this wirless 3G connection via socat: /usr/bin/socat open:/dev/...
DarkLeafyGreen's user avatar
1 vote
1 answer
1k views

Linux Kernel TCP socket functions

So I have been looking through the Linux Kernel v3.8.0-19-generic source code and I noticed that the proto struct, whose members are virtual functions for socket operations depending on the particular ...
Mr X's user avatar
  • 215
3 votes
1 answer
6k views

SYN-ACK not received

On a standard TCP connection between server and client, I have this issue: the SYN-ACK is not received from the client, while it is sent from the server. I could see this on Wireshark from both server ...
Fra H's user avatar
  • 131
1 vote
1 answer
166 views

Why is it possible to continue working in a ssh session after a network disruption?

What enables the Secure Shell client and server to resume communication after one or several network interfaces in the communication path between them is shut down and re-appears some moments later? ...
Ярослав Рахматуллин's user avatar
2 votes
1 answer
4k views

How to Maintain an Inactive Tcp Connection?

If a TCP server establishes a TCP connection with a TCP client and the TCP client never sends any packet to the server. I roughly know firewalls near the TCP server may send an RST to it. Or there is ...
misteryes's user avatar
  • 3,055
1 vote
1 answer
654 views

TCP vs UDP Error-Checking

I've bounced upon two articles that describe in-depth on how TCP and UDP connections work. However there is some kind of inconsistency. Where one article tells me that UDP does no Error-Checking at ...
Dempsey FoxDie Van Assche's user avatar
4 votes
2 answers
18k views

TCP: Maximum number of connections (client and server)

In the description of TCP in the Wikipedia, it is stated that The number of sessions in the server side is limited only by memory and can grow as new connections arrive, but the client must ...
lxgr's user avatar
  • 1,311
1 vote
1 answer
1k views

ARP: 'Who has' broadcast resulting in TCP segment losses

I have an issue with a simple TCP connection between two PCs (both Windows XP SP3) connected by direct wire to each other. These PCs have IP address 10.10.10.1 (server) and 10.10.10.2 on the network ...
nietras's user avatar
  • 83
5 votes
1 answer
1k views

Does TCP/UDP send file sequentially or randomnly?

Does TCP/UDP protocol always send or receive file packets sequentially? Would it possible to make a choice which data packets will be sent first using sockets API?
user9441231's user avatar
1 vote
1 answer
1k views

Sending a file via TCP/UDP socket

I'm reading about TCP and UDP from a article. In the end what I understood is that UDP is faster than TCP but it is unreliable. So if I'm going to a send a file, If use UDP, would it be faster than ...
user9423112's user avatar

15 30 50 per page