TCP stands for Transmission Control Protocol and is one of the core protocols of the Internet Protocol Suite. TCP complements the Internet Protocol (IP), and therefore the entire suite is commonly referred to as TCP/IP.

learn more… | top users | synonyms

34
votes
11answers
29k views

What is the difference between UDP and TCP?

My router has two protocols (and a "both" option) that I can select when setting up port forwarding: UDP and TCP. What is the difference between these two protocols and when would you select one over ...
8
votes
4answers
362 views

Simulate slow connection between two ubuntu server machines

I want to simulate the following scenario: given that I have 4 ubuntu server machines A,B,C and D. I want to reduce the network bandwidth by 20% between machine A and machine C and 10% between A and ...
1
vote
2answers
60 views

Clients phone provider claiming high latency over UDP, how do I test?

A client of our uses a hosted phone solution for his 50 agent call centre. They use a hosted dialer who make the out going calls, once the connection is made the call is passed to my clients user ...
1
vote
0answers
153 views

Always keep socat alive

I have a socat running nicely, executing my command when a connection comes in with the arguments provided. However, the issue I am having is that the socket is at EOF and the next time a connection ...
1
vote
0answers
146 views

trying to reach a port forwarded server from the subnet using the public IP not working

I set up a server which is connected to my router. The router forwards a port of my server. So when I scan that port using http://www.t1shopper.com/tools/port-scan/ I got: 188.143.126.14 is ...
0
votes
2answers
123 views

TCP - TAP performance

Linux. Is there a performance loss from using a tap device vs a hardware one like eth0 ? The goal is to create a user space tcp/ip stack and avoid the kernel as much as possible. I would like to be ...
1
vote
2answers
3k views

Implementing TCP Sticky Sessions With HAProxy to Handle SSL Pass-through Traffic

How can we implement session stickiness in HAProxy when SSL must terminate on the backend servers? We need the stickiness because backends cannot share sessions. This is my original configuration: # ...
0
votes
1answer
84 views

Proxy-attack simulation

I have a WS2008 x64 server, that has NodeJS application working on its 80 port. Server constantly receives queries from different IP-addresses that are trying to use my application as a proxy. NodeJS ...
1
vote
0answers
629 views

Cannot make TCP Connection with OpenVPN Server

Client OpenVPN assigned IP: 10.8.0.2 ↓ TCP on 1194 Internet ↓ Router port-forwards 1194 to server- Public IP 104.162.67.198 ↓ Server LAN IP: 10.8.0.1 I think the above is what I am trying ...
0
votes
2answers
114 views

Display IP & TCP statistics per interface (netstat -s with interface)

Linux has the ability to display protocol statistics with netstat -s. The output looks something like: Excerpt: 7487 times unabled to send RST due to no memory TCPDSACKIgnoredOld: 817 ...
0
votes
0answers
958 views

WSAECONNREFUSED SAP Gui unable to connect on SAP server on hp ux - inetd.conf file reference

I have a sap server installed on HP-UX vm, up and running. when I try to connect to the server from SAP client GUI installed on windows machine I get the following error --------------------------- ...
1
vote
2answers
274 views

How is a TCP request routed from a virtual machine to an outside resource and back again?

Scenario: Computer A has a local ip of 192.168.1.100, which is running a VM inside of it. The VM now makes a tcp request to an external IP address (74.125.225.98). Could someone explain how the ...
1
vote
0answers
74 views

delay in ACK packets for ldap abandon request

we have migrated from an openldap server on linux to a DirX on windows 2008. The ldap server und normal serch request behaves as expected. However with some applications (weblogic deployed webapps) ...
-1
votes
1answer
114 views

Is ARP Connection oriented or connectionless?

Is ARP Connection oriented or connectionless? It uses TCP, but does that consider it connection oriented?
0
votes
1answer
36 views

What is the maximum number of characters in a service name?

In TCP/IP, a service name (like http or smtp) is an alias name for the port number. What is the maximum number of characters that can be used in a service name?
3
votes
1answer
3k views

Block all incoming DNS requests EXCEPT from IPs x,y,

I want to block all incoming requests on my two DNS servers APART FROM certain IP addresses e.g. IP of 1.2.3.4 will be allowed to make requests but NOBODY else will. How do you do this with iptables? ...
1
vote
1answer
143 views

Limit Number of TCP connections in Linux Server, to avoid attack

I want to limit the number of TCP connections in Linux server, I have used the following command. iptables -A INPUT -p tcp --syn --dport 80 -m connlimit --connlimit-above 25 --connlimit-mask 32 ...
4
votes
1answer
144 views

Change TCP wait for ACK timeouts in Win7/WinServer

Is there any possibility to change default wait for ACK timeout in TCP network on Windows 7 or Windows Server ? I'm using very slow network ( 1200 bps ) and want to tweak TCP. When using default ...
-2
votes
1answer
294 views

What is the best way to measure latency via a “telnet to port” test, preferably with built-in Linux tools?

I'm writing a Graphite/Diamond collector measuring network latency. Specifically it should measure the time it takes to open up a connection to a port on a remote server. And it needs to work via ...
1
vote
1answer
153 views

Tuning Linux TCP for large number of TIME_WAIT

It looks like we have a bunch of tcp connections hanging around on a busy webserver, this is the output from ss -s: Total: 366 (kernel 1037) TCP: 72108 (estab 130, closed 71964, orphaned 0, synrecv ...
0
votes
0answers
131 views

windows firewall , some ports not listening

I've added an inbound connection rule for my windows 8 firewall on windows server 2012: I've restarted the Windows Firewall. When I check that port using this program, it says that it is not ...
1
vote
4answers
269 views

Is there a netstat -s equivalent for windows?

I know that netstat -s exists on Windows, but it displays way less informations than on Linux/OS X. It only gives 8 counters about TCP, while on Linux it's more than 50. I'm looking for any ...
0
votes
1answer
44 views

Solaris 11 / OpenSolaris - stop processes from listening?

I would like to write a script to secure Solaris 11 servers in preparation for internet access. In addition to enabling ipfilter, I would like to disable network-accessible services that are not ...
0
votes
0answers
56 views

Dropped TCP Packets over two-stage IKEv2 VPNs

Something of a weird setup this: There are two Virtual Private Clouds (10.100.240.0/20 = prod1 and 10.101.0.0/24 = control), which have a valid router between them. Control hosts a VPN that is meant ...
5
votes
1answer
2k views

Finding short-lived TCP connections owner process

Running tcpdump on local connections to an apache server, I found TCP connections being established and closed immediately every 2 seconds. How do I find which process is responsible for these? ...
3
votes
3answers
4k views

Easy way to “edit” the traffic coming from a tcp host (linux)

I need to make some small modification to incoming traffic from a known tcp host:port before the process handling the connection get the stream. For example, let 192.168.1.88 be a remote host which ...
1
vote
5answers
223 views

Get number of TCP established connections

On a Linux server one can use netstat -tan | grep ESTABLISHED| wc -l but this will not work on a high load server with watch -n1. Such approach works fine if the server is not very busy or the ...
11
votes
13answers
23k views

How to discover the MAC address of machines in a network?

How do I discover the MAC address of machines in a network? I need to discover the machines that are available just with only BIOS installed (no operating system). And I need to find the MAC address ...
0
votes
1answer
143 views

TCP Load balancing

I need to implement an architecture that can serve 3 million GPS Devices sending Location Updates/Alerts (every 10 secs) to our system for processing. Features: 1) TCP communication. 1) Long lived ...
5
votes
2answers
3k views

Netstat -s showing (and growing) “packets pruned from receive queue” and “packets collapsed in receive queue”

we are seeing the following: [root@primary data]# netstat -s | grep buffer ; sleep 10 ; netstat -s | grep buffer 20560 packets pruned from receive queue because of socket buffer overrun ...
0
votes
1answer
95 views

How does an IP address goes down from an Application Layer to IP Layer? [closed]

Using the classical TCP/IP layers model, I am thinking about an application (for example a browser) acting as a client wanting to talk with a server (e.g. a web server). Of course it has to use the ...
2
votes
1answer
190 views

TCP piggybacking introduced by a man-in-the-middle network node beween the client and server?

When wireshark trace taken on the client side it appears to be: ---SYN---> <-SYN-ACK- ---ACK---> -HTTPGET-> But when wireshark trace taken for the same traffic on the server side it ...
7
votes
2answers
1k views

Varnish running out of open ports, lots of SYN_SENT connections

Recently we've been experiencing issues with our Varnish (3x) -> Apache (3x) setup, resulting in a huge spike in SYN_SENT connections. The spike itself is due to the amount of new traffic hitting the ...
3
votes
0answers
193 views

TCP Window Scaling Problem over MPLS

After extensive troubleshooting why the TCP speed over an MPLS circuit is slow in one direction, I figured out that by adjusting the TCP window size the situation improved a lot. Maybe you can tell me ...
1
vote
2answers
741 views

Proxying TCP by hostname

I've got multiple game servers TCP ports on my single host machine. The goal is to have users be able to connect to server1.domain.net and have their directed based on that subdomain. My first ...
0
votes
0answers
107 views

TCP ignores some packets for no reason

I have a weird problem which I can't understand. The actual network configuration is quite complex, because I am using Openstack and Docker to build a virtual network. However, the problem is not ...
32
votes
1answer
1k views

Random TCP RST's on certain websites, what's going on?

Short version: One Windows Server 2012 machine on my network is getting persistent but intermittent TCP RSTs when connecting to certain websites. Dunno where they're coming from. Check out the ...
-1
votes
2answers
126 views

TCP/UDP Small Package Size optimization [closed]

I currently have the problem, that when a LOT of RTP streams (>800) go to one server the max. speed is onlynabout 70-80 Mbit (on a Gigabit LAN - all Hardware components are Gigabit components) 130 ...
0
votes
0answers
48 views

Windows Server 2008 consuming a lot of bandwidth

My Windows Server 2008 has been consuming A LOT of bandwidth in the last days (990 GB). This is a development server so it should not consume more than 100mb aprox. We noticed this after the server ...
1
vote
2answers
59 views

Can't block spammy IP

I'm being attacked by 37.59.4.76. It's sending me a great amount of data, which is destroying my dataplan. I've added the iptables Chain num pkts bytes target prot opt in out ...
2
votes
1answer
324 views

Relationship between tcp state TIME_WAIT & HTTP keep-alive

What is the relationship between keep-alive on a HTTP request and a tcp socket in TIME_WAIT - should they be correlated? Furthermore, should system and web server settings be aligned e.g. ...
0
votes
0answers
47 views

Source ip based Anycast-BGP?

I'm just getting interested in networking so don't be too harsh on me :) Ideal: 2 servers with shared ip; ip X Client 1 pings ip X > always server A Client 2 pings ip X > always server B ...
-1
votes
1answer
54 views

Geo distributed ip [duplicate]

When i ping 8.8.8.8 from my home computer (europe) i get around 26 ms latency. When i ping 8.8.8.8 from a server(US) i get around 1 ms latency. When i ping my (US) server from home (europe) i have 130 ...
0
votes
1answer
359 views

How to trace dropped TCP connections?

Trying to help someone with a situation where TCP connections get mysteriously dropped after a few minutes for no apparent reason (this happens even with non idle connections). Both client and server ...
0
votes
0answers
264 views

HAProxy RTMP (TCP) load balancing

I am using HAProxy as load balancer for the RTMP protocol. For now it's working very very good but I have one small problem. I want to send the client's IP on the RTMP request after the load balancer. ...
0
votes
0answers
63 views

apache bench handshake failure server sending TCP FIN

I am trying to verify handshake performance by sending number of requests with out setting concurrency with below command. ab -k -n 18750 -c 1 -Z AES128-SHA -f TLS1.3 ...
0
votes
4answers
2k views

Cannot work out what is using port 8080

In Windows Server 2003 R2 64 Bit SP2 I have an app which will only use port 8080 but something is already using it. I would be happy to just kill whatever is using it but I can't work out what it is. ...
4
votes
2answers
6k views

Reduce firewall rules by half - one iptables rule for tcp and udp

I have a number of iptables rules on my firewall that look like this: iptables -A zone_lan_forward -p tcp -d 1.2.3.0/24 -j ACCEPT iptables -A zone_lan_forward -p udp -d 1.2.3.0/24 -j ACCEPT Is ...
0
votes
1answer
279 views

Existing TCP Relay Solutions [closed]

I have a scenario which requires the use of a TCP Relay. Before I set out to write something custom, I wanted to see if anyone knows of existing software that can do this for me. I have 2 devices on ...
-2
votes
1answer
52 views

TCP ports duplication [closed]

I need to communicate server1 to server2. Server1 should have to fetch some records from Server2 when we execute program.exe will make server1 to fetch server2 When I gave netstat -an | find ...