The Transport Control Protocol (TCP) is a low-level part of the protocol stack used by the Internet. It sits directly above the IP layer and is responsible for making sure that dropped packets are resent.

learn more… | top users | synonyms

4
votes
1answer
358 views

How to investigate a random reset on TCP client port connected via loopback interface to a server

I have a test suite which initializes a server on the localhost and then runs thousands of stress tests which include starting and stopping clients connecting to this local server on same machine. I ...
3
votes
1answer
93 views

Why are these connections not classified as “established” under conntrack?

I have the following rule for iptables: -A OUTPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT such that outgoing connections not classified as established will be logged. Occasionally, the ...
3
votes
1answer
65 views

Force application to use specific port on Fedora machine

I have an application on my fedora machine that sends SIP TCP requests to the server. The application chooses a random source port to send the requests. Is there some way I can force the application ...
3
votes
1answer
118 views

detect process that executes portscans

I have to administer an ubuntu 12.04 server, where there seem to go portscans to the whole subnet. How can I find out the process that does the scans? pstree init─┬─acpid ...
2
votes
1answer
37 views

bound, but not listening process

python code for simple daemon import socket import time import signal s=socket.socket() s.bind(('127.0.1.1', 20201)) def stop(*a, **k): global work work = False ...
1
vote
1answer
37 views

Relay server for generic TCP traffic?

Here's my situation: I have a computer (Mac) on a school network that I want to port forward TCP 5222 to for ejabberd, but of course I can't. I have a server at home (Mac with FreeBSD VM) that I can ...
1
vote
1answer
387 views

How to limit all tcp traffic to the network interface the session was initiated on?

I have an embedded linux system with two network interfaces (lan0, wlan0) that are configured to the same subnet. A server on this system accepts tcp connections on both interfaces. How I can assure ...
0
votes
1answer
15 views

tcpdump Filter with certain file types?

I use the unix command tcpdump with these extensions -A -s0 -ien0 port 80 I know how to add, for example a new host, that would be and \ host random.com Can I sniff for certain filetypes? I have ...
0
votes
1answer
100 views

What are the other congestion control algorithms specially designed for lossy Wireless Networks like LTE and WiMax?

I am trying different congestion control algorithms for getting maximum throughput and minimum delay across my setup for TCP flow.Please suggest other available algorithms apart from Veno, ...
4
votes
0answers
196 views

Socksifying a qemu-kvm using tsocks

I'm trying to socksify a qemu-kvm using tsocks, but I have no success. I don't know if qemu access directly the hardware, skipping the OS or something like that, but I wasn't able to do this feat. ...
2
votes
0answers
47 views

How do I find out how long a socket is in CLOSE_WAIT?

I have a server relatively with a high number of sockets in CLOSE_WAIT I want to know the age of each socket, to know if it's a real problem (sockets not getting closed) or that the sockets are ...
2
votes
0answers
42 views

Exclude a loopback interface or address from processes listening on the “any” address

I'm trying to create a setup where I can connect to some service running on a host only reachable through a SOCKS proxy by the host's actual name and the port the service actually uses (so that ...
2
votes
0answers
318 views

graph TCP connection performance based on `ss -i`

A nearby question has brought to my attention the ss utility on Linux, another utility to investigate sockets. It would appear that it may be a great tool to monitor the performance of, say, an ssh ...
2
votes
0answers
76 views

Why isn't hydra being disconnected?

I have SSHD running on port 5800 on some machine. (It is a my machine at home.) If I run this manually in a terminal: # ssh someIP -p 5800 The connection is lost because I am disconnected after 3 ...
1
vote
0answers
14 views

Capturing data from a Fluke 1620a via Bash /dev/tcp file descriptor

I am currently trying to develop a script that will connect to a Fluke DewK 1620a Themo-Hygrometer and pull the current temperature and humidity readings from the device. While these devices have a ...
1
vote
0answers
95 views

Rsync - Corrupted MAC on input

Background I have a script on my NAS which is a Synology DS212J which is running on a special distro where uname -a gives me Linux DS212J 2.6.32.12 #4493 Wed Jul 16 11:37:16 CST 2014 armv5tel ...
1
vote
0answers
249 views

tcpdump not capturing http or tcp/ssl traffic

I have been trying to learn tcpdump and I am using this command to attempt to monitor my network: sudo tcpdump -I -i en1 But this gives me a bunch of stuff I don't want, so I used this version to ...
1
vote
0answers
298 views

Improving TCP performance over a gigabit network

I have two machines both network cards speed is 10Gbps. The inbound bandwidth between the two machines is 10Gbps, the outbound bandwidth internet bandwidth is 500Mpbs. Both machines are using public ...
1
vote
0answers
119 views

Command for finding open ports

On my linux servers I have this alias set: alias ns="sudo lsof -Pi|grep -v ESTABL|grep -v CLOSED|grep -v -e '->' | tr -s ' ' '\t' | awk '{print $3 "\t" $8 "\t" $5 "\t" $9 "\t" $1}'| column ...
1
vote
0answers
362 views

How to redirect/forward between a tun/tap device and a socket using linux tools?

I have a socks5 proxy that is bind to eth0. It opens two ports, Port1 is used to connect to remote (for example a http server), Port2 is to listen for clients to connect. Then I created a tun device. ...
1
vote
0answers
61 views

configure allowed_tcp_congestion_control via config files in linux kernel

I am trying to come up with a custom set of TCP congestion control variants as part of the tcp_allowed_congestion_control. I do have multiple variants on my tcp_available_congestion_control list but ...
1
vote
0answers
55 views

Can we Bring Up eth1 after removing e1000e modules?

I am trying to setup TCP in RTnet. I am not sure whether its possible. I read that RTnet is not supporting TCP. Is that so? So now I am trying to setup rteth0 as server and eth1 as client. To setup ...
0
votes
0answers
3 views

MPTCP don't create multiple subflows

That's it. I've installed it in one machine, and tested it in https://amiusingmptcp.com and gave positive. Now, when I do iperf -c multipath-tcp.org like they say here: ...
0
votes
0answers
22 views

different ways how Linux TCP/IP stack terminates connection

I have a Linux machine which connects to SSH server with SSH client(OpenSSH_4.1p1). SSH client machine has IP address 10.10.11.1 and SSH server has IP address 10.10.10.1. SSH client has kernel version ...
0
votes
0answers
36 views

Socat execute commands on remote

I am playing around with socat and wanted to execute commands to hosts that connect to my IP PORT running socat. In this case I am trying to dump a file on localhost and this is how I am trying to ...
0
votes
0answers
29 views

Can spawn-fcgi be user for tcp/udp server

Spawn-fcgi by lighty labs It only uses unix socket functions socket(), bind(), connect(), listen(). Is it possible to use it not for FastCGI server, but TCP or UDP server?
0
votes
0answers
97 views

How to set sctp_nodelay to enable piggybacking while replying back

Problem: We are hosting a telecom application that receives traffic from the network at > 500 TPS. The packets are piggybacked so each sctp packet contains multiple application layer packets lets say ...
0
votes
0answers
36 views

Dropping unnecesery TCP connections

I use Enigma based satbox as live stream source. I noticed that sometimes connection established from my server based streaming application to satbox is still keep as ESTABLISHED, even after stopping ...
0
votes
0answers
69 views

Is it possible to move established connections on one port, to another without dropping data?

this problem has been bugging me for a couple of days now. I can't figure out a good enough solution using iptables without having dropped packets. So here is the back story. Say I have a client ...
0
votes
0answers
115 views

How to make Network alive but speed low, slow for upload, download?

I have own application written (Python, Java) which does upload/download for streaming. Now in my local office network and home network setup i can't simulate slow/low latency network (as a result i ...
0
votes
0answers
212 views

No ports can be found using port scan

Problem: I have a laptop and a server (Home-Server) with fc17. They are both using the desktop environment. I am trying to set up a VNC server on Home-Server so that I can set everything up without ...