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

92
votes
13answers
9k views

Must TCP use IP?

Is it true that TCP is short for TCP/IP and they mean the same thing? Is it possible for TCP to be built on top of another protocol besides IP?
26
votes
4answers
56k views

What does “On-link” mean on the result of “route print” command?

I'm using Windows 7. When I type "route print" under command prompt, I get a IPv4 Route Table with several "On-link" values under the Gateway column. For example, like this one: IPv4 Route Table ...
26
votes
13answers
54k views

How do I kill a process that is dead but listening?

I'm developing an app that listens on port 3000. Apparently there's an instance of it still listening to the port because whenever I start it, it can't create a listener (C#, TcpListener, but that's ...
24
votes
4answers
4k views

How does HTTP become stateless?

HTTP is said to be stateless. Meaning, it doesn’t need to store information for the transmission of data. But HTTP uses TCP, which is state oriented. If that's the case, how does HTTP becomes ...
24
votes
3answers
10k views

How does Router know where to forward packet

If several computers with local addresses (192.168.0.#) are connected to a router and each computer opens a web browser and requests a page over HTTP, when these TCP:80 packets are sent out, the ...
17
votes
5answers
9k views

Ethernet vs TCP vs IP?

What is the difference between Ethernet, TCP, and IP in simple (simple abstract) terms? Please do not copy from Wikipedia...
14
votes
7answers
15k views

Why is it bad to have open ports?

Here's something that has always baffled me. Why is it bad to have open ports on your computer? Assuming you don't have a virus on your computer or some other program listening to a port that may ...
10
votes
2answers
5k views

On the Performance of TCP implementations of Linux and Windows

As I understand the implementation of TCP stack in windows and Linux are different. Windows uses a congestion control algorithm known as the TCP Reno while Linux uses Cubic. How do the 2 protocols ...
9
votes
3answers
1k views

What do the numbers used in a IPV6 address mean?

I am trying to understand IPV6. I have a server with the following IPV6 address: 2607:f750:0:3f::f59. I don't understand what the numbers mean. It looks totally different from an IPV4 address. ...
9
votes
5answers
10k views

How do IP answer packets reach their destination inside of a private LAN?

This is a little theory question that has been confusing me for a pretty long time. Basically, if we are inside of a private LAN, and we want incoming packets to reach, for example, an HTTP server ...
9
votes
2answers
4k views

Do browsers create new TCP connections for each HTTP requests?

So I know that HTTP is basically just a text protocol over TCP, and that TCP is state / connection based. That means that the browser has to connect over TCP to a server before doing an HTTP request. ...
9
votes
6answers
6k views

Port scan revealed port 1111 open. What is it?

I am new to systems administration and have a new server running a website with http (at port 80), https (at port 443) and ssh (at port 22). I did an nmap port scan using my personal laptop and other ...
9
votes
2answers
11k views

How does circumventing IP restrictions through DNS work in the case of hulu.com?

I just heard from an australian guy that it is possible to watch hulu.com from Australia (which is actually restricted by country IP checks) by using certain DNS servers. Now I was wondering, how ...
8
votes
4answers
13k views

What's the minimum size of a TCP packet

A post here: http://blogs.adobe.com/dreamweaver/2011/02/optimal-css-tiled-background-image-size.html staes that "The smallest download that browsers can do is 1K bytes." Is this due to minimum size ...
8
votes
4answers
6k views

Why is multi thread downloading faster than single thread?

There is one large file in my server. I find that multi thread download can get 20Mbs, but single thread can get 10Mbps, can anyone explain this?
8
votes
2answers
787 views

Puzzling TCP performance over 3G / UMTS

I'm using 3G as my primary internet connection, and TCP over this thing is getting more puzzling every day. For example: Downloading from kernel.org is crazy fast: $wget ...
8
votes
1answer
4k views

Why Windows 7 / PuTTY drop TCP connections even on very brief outages?

I have a small local network that piggybacks on a captive WiFi, and I use ssh on OS X with -oServerAliveInterval=240 and PuTTY 0.62 on Windows 7 Professional for establishing connections to my Linode, ...
7
votes
5answers
2k views

How does a server get notified about the HTTP request?

I have a basic understanding of how HTTP works. I understand the client (web browser) makes a request and server responds back to the request. However, the thing I don't understand is how does a web ...
7
votes
4answers
50k views

Open a test TCP connection to a specified IP/Port

I'm looking for a tool that works across windows (xp through 7) that will allow me to open a TCP connection to a specified ip and port. This functionality used to exist in windows xp (netsh diag ...
7
votes
2answers
840 views

if a TCP packet got partially acknowledged, how will the retransmission mechanism react?

if a tcp client send a packet, with sequence number from 10000 to 20000, to a tcp server. the tcp will respond with an ACK with seq_ack 20001. if I intercept the TCP packet from the client, and ...
6
votes
3answers
3k views

Good process specific packet sniffer / viewer?

I am looking for a good, free or not free, packet sniffer. The main feature I am looking for is an ability to watch a chosen process and view / read all of the data it is sending or receving. Also I ...
5
votes
1answer
10k views

Is there a hard limit of 65536 open TCP connections per IP address on linux?

Is there a hard limit of 65536 open TCP connections per IP address on linux? I read somewhere that there was, but someone is asking for confirmation and i just can't find it. I seem to remember it ...
5
votes
2answers
10k views

For what does ssh use UDP?

Wile doing research I noticed that SSH both uses TCP and UDP. I completely understand the use of TCP, but UDP seems a bit strange. Why would I use an "unreliable" transport protocol with minimal ...
5
votes
1answer
428 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?
5
votes
3answers
11k views

TCP Retransmission vs. TCP Fast Retransmission

In Wireshark I can see things that say "TCP Retransmission" and "TCP Fast Retransmission." What's the difference? How is Wireshark able to tell the difference?
5
votes
1answer
238 views

How does TCP get the MSS values for a certain path?

when a TCP client initiates a TCP connection with a remote TCP server, it will announce its MSS in the TCP option. I'm at a loss how TCP knows the path MSS value. This value is specific to the path ...
5
votes
1answer
2k views

In TCPView, why does the svchost.exe process need to listen on so many TCP and UDP ports

Looking at TCPView I can see over 25 svchost processes using TCP and UDP ports. If these svchost processes are the various services required by Windows, then why would so many be using the network?
5
votes
1answer
442 views

What type of TCP connections are counted?

In Windows 7's Resource Monitor, in the TCP Connections graph at the top right -- how are those connections being counted? Does a "listening" state count, for example? Does it matter what state a ...
5
votes
1answer
242 views

Find processes listening on the wildcard address in `lsof`

Using lsof, I can find all of the processes with a TCP socket listening for connections: lsof -Pni -sTCP:LISTEN e.g.: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME cupsd 662 ...
5
votes
3answers
10k views

How exactly does a proxy work?

If I want to connect to say, IP 100.100.100.100, Port 80, my computer will send a tcp packet with this adress into the wire. Now If I use a proxy server say, 200.200.200.200 Port 8080 (such kind of ...
4
votes
3answers
1k views

How to force a process transmit over UDP instead of TCP?

I 'm running an ffserver process on a Linux machine, in order to achieve video streaming via ffmpeg. However, there is a delay on video streaming. On ffserver configuration file I define Port 8090. ...
4
votes
1answer
1k views

What is the purpose of ports?

I have a few questions in regard to the following explanation of ports I found. The Application layer talks to the Transport layer through a port. Ports are numbered and standard ...
4
votes
2answers
6k views

How to make tcpdump (or other tool) to actually dump TCP stream?

I expect something like this: $ nc example.com 80 GET / HTTP/1.0 HTTP/1.0 500 K.O. Content-Type: application/null Content-Length: -1 $ Meanwhile: # tcpdump -i eth0 --actually-dump-all-tcp ...
4
votes
2answers
4k views

Get the current/default value of TCP initcwnd on Linux

I can manipulate such value with: ip route change ... initcwnd 10 and then have a feedback with: ip route show But what about the default value before any modification? Is there a way to query ...
4
votes
2answers
12k views

what is TCP Half Open Connection and TCP half closed connection

I am trying to understand what is the difference between TCP Half Open Connection and TCP Half closed connection can any one tell what exactly are they?
4
votes
3answers
4k views

How to use DNS over TCP?

Google DNS (8.8.8.8 and 8.8.4.4) are blocked (or polluted) by all ISPs available to me (and DNS by ISPs just return wrong answers for some sensitive sites!!), and it is said that if we change DNS from ...
4
votes
1answer
8k views

Is there a half-open TCP connection limit in Win 7?

Or at least, is it a low limit like 10 or 50? It was present since XP SP2 (I think), and was finally cancelled (= I think now the user can set the limit manually) in Vista SP2. What is the current ...
4
votes
3answers
8k views

Cannot connect to guest OS from host OS

I have installed OpenSUSE on VMWare player as guest OS and my host OS is Windows XP. What I want to achieve is to send message from my host (i.e XP), say on port 7000 and receive it on a specific port ...
4
votes
1answer
259 views

Why does writing IP addresses this alternate way work, and is there a practical use case for it? [duplicate]

Recently I saw an incorrectly typed telnet command, and I saw that "regular" numbers were interpreted to IP addresses. I tried this myself in Windows and the same behavior is shown there, so obviously ...
4
votes
2answers
1k views

How does the link speed affect TCP throughput? [closed]

Can someone explain to me how data is transmitted over a network using TCP/IP? Let's say I currently receive 500 Mbps of data over a 1 Gbps line right now. If I upgrade the line to 10 Gbps, would my ...
4
votes
3answers
5k views

iptables for transparent TCP proxy

Here's my situation. I have an iPad, a TiVo, and an dd-wrt router on my network, along with a machine that I'd like to use to sniff/decrypt draffic between the iPad and the TiVo. The iPad has an app ...
4
votes
2answers
2k views

TCP Implementation on Mac OS X

How can I find the type of TCP running on my Mac OS X? (TCP Reno, Fast TCP, ...)
4
votes
1answer
3k views

Is there a way to kill an open connection without killing the process?

I've search around and all the suggestions just say to kill the process. But I'm surprised I can't find any simple way to force a "connection" to close, without killing a pid associated with it. ...
3
votes
3answers
404 views

How can I open a TCP/UDP connection on Linux?

I am looking for a simple command line tool to open TCP/UDP server/client on a desired port on a Linux machine. Are there any applications or commands that I can use to achieve this?
3
votes
2answers
1k views

How to manually do a TCP handshake

Telnet can be used to manually do things that programs do automatically. When I connect to a server I noticed that it automatically does the 3-way handshake to establish a TCP connection. Can it be ...
3
votes
3answers
3k views

How to pipe data over tcp from the command line?

I would like to pipe data from one machine in the command line to another machine over tcp. I guess I could write a socket server but this must already be implemented. For example I could use it to xz ...
3
votes
4answers
89 views

TCP/IP on the transport level

I'm trying to understand what happens when I send a packet using a socket on the transport level. Do all packets which leave my computer go first to a geographical location designated by my ISP? Then ...
3
votes
2answers
7k views

What do these remote addresses, local addresses, and states in TCPview mean?

I have been using TCPview lately to see what connections are made by different processes on my PC. Would somebody please explain what the following situations mean? Thanks. TCP Local Address: ...
3
votes
2answers
9k views

How can I show only 127.0.0.1 traffic using Wireshark?

Every time I try to filter to just show a specific IP address, I get an error indicating that it is "not an interface or a field." I have no idea what that means. Furthermore, I don’t really see any ...
3
votes
1answer
2k views

What's up with port 8080 on my OSX box?

I thought a web server process I brought up was listening on localhost:8080, and tried to connect to it, but kept getting connection reset errors. As it turns out, I was mistaken and my process was ...