Questions tagged [tcp]
For questions about Transmission Control Protocol (TCP), a transport protocol used to encapsulate data across a network for reliable communication.
792
questions
3
votes
3
answers
1k
views
Do these 2 packets belong to the same tcp socket?
Let's say we have two packets A and B.
A: Has source-IP S1 , destination-IP D1 , source-port SP1 , destination-port DP1
B: Has source-IP S2 , destination-IP D1 , source-port SP2 , destination-port DP1
...
1
vote
1
answer
45
views
tcp how the receiver behaves if it received an incomplete window
Suppose, for example, that the window has a size of 5 MSS, the sender sends 5 segments to the network, the fifth is lost. Actually the question: how does the recipient behave? It just doesn't ...
1
vote
1
answer
5k
views
What is "TIME_WAIT" connection in a TCP connection and what is it's purpose?
I am requesting a webpage running on local server port 8080 and was expecting one connection to be established between the server (port 8080) and client (random port). But one additional port is also ...
-1
votes
1
answer
32
views
Would a bidirectional exchange of data between two hosts, one using TCP Reno and the other using TCP Tahoe, be possible?
I know Reno and Tahoe are TCP congestion control algorithms and one recovers much faster than the other when a packet is lost, but would they affect how data are exchanged between the hosts? ...
0
votes
1
answer
615
views
TCP Congestion Window
Looking at example of congestion window graph pasted below and wanted to confirm my understanding.
Looking at the red bar would that be the timeout happening here due to ACK being lost? and the b1 ...
0
votes
1
answer
190
views
How to connect to a machine which is sitting behind NAT router?
I have a server that needs to push a message to a client from which it received a request a few days ago. Now request which was received has the IP address of the NAT router behind which the client ...
1
vote
1
answer
309
views
Does the first TCP FIN packet (active close) goes with just only FIN bit set?
Suppose we have established TCP connection. The active close process assumes the FIN packet been sent to trigger TCP connection closing.
But I can't figure out, is this first (active close) FIN packet ...
1
vote
1
answer
243
views
Is there any other network protocol than tcp/udp that works with ports?
Do you know at least one protocol (any OSI layer) that, like tcp and udp, works with ports ?
Thank you
1
vote
1
answer
68
views
what is happening when a host receives a datagram with its MAC address as a destination but different destination IP
In a specific network say the host receives this datagram what is happening ?
2
votes
2
answers
319
views
Why is delayed segment prevention (TIME_WAIT) in TCP only done for one side?
One of the reasons for TIME_WAIT is to prevent old packets/duplicates, coming in late, to screw up subsequent connections on the same (src ip, src port, dst ip, dst port) quadruplet.
That makes sense, ...
2
votes
2
answers
830
views
How does a device get a response from a HTTP request without an open port on the router?
I don't know much about how TCP/IP works, so please bear with me here.
I was wondering how, when your computer makes an HTTP request from a random port(on that device) to port 80 on a server, it gets ...
3
votes
1
answer
976
views
How to use the TCP traceroute in Juniper?
How to use the TCP traceroute in Juniper?
In Juniper OS I only know
traceroute ip_address
I don't know how to traceroute a destination with TCP protocol. is it possible to implement it?
0
votes
2
answers
87
views
How to find the client's application port during communication [closed]
After reading firewall rules about inbound and outbount I have some questions and the most sources focus on the server's ports.
What happens to the client side when is trying to make a connection to ...
2
votes
1
answer
808
views
IPv4 and UDP/TCP packets inside of ICMP packet?
A week ago, after opening wireshark, i was surprised by seing a storm of ICMP packets from different IP addresses. While deep analysing of thoses packets, i noticed that those ICMP packets contains ...
0
votes
1
answer
113
views
RFC 6298 application
I got this?
How many Fragments that are going to be sent are:
10800 / 1200 = 9 segments to Host B.
And the full time is:
(9*1200) / 1600000 = 6.75 ms
According to RFC 6298 [1]: (2.2)
When the first ...
1
vote
1
answer
455
views
how data are fragmented based on MTU and MSS?
just to be clear.. if a sender wants to send a data of 1800bytes ( assuming MTU be 1500bytes
so MSS = 1500-40 (taking min ip and tcp header) = 1460bytes)
Then there will be three segments 750 + 750 + ...
44
votes
7
answers
16k
views
Does UDP do anything at all?
It's my understanding that TCP has logic for ensuring reliable communication, but UDP just naively sends information along the channel set up for it using IP and things in lower layers.
Does UDP ...
0
votes
1
answer
174
views
What flow control mechanism does ethernet uses?
Datalink layer is basically responsible for 3 major functions -
Error detection/correction - CRC is used by ethernet
Collision detection - CSMA/CD is used by ethernet
But I couldn't find what flow ...
0
votes
1
answer
178
views
What if receiver changes its IP address during the transmission process?
Suppose I am sending data to a laptop with IP address say x but before data could reach its destination the laptop is moved to another network and now its IP address becomes Y.
Will the receiver still ...
0
votes
2
answers
236
views
Congestion control in transport and network layers in TCP/IP
Why do we need congestion control in BOTH the transport layer and network layer in TCP/IP model. Cant we be good enough with control in just one of the layers only? And how do they differ?
0
votes
1
answer
395
views
Suspect MTR showing incorrect packet loss through router; other tools are not showing loss
Using MTR (sending TCP with or without SYN), I'm consistently seeing packet loss on one intermediate router in the path. UDP does the same. I'm use TCP to avoid the ICMP packet flood limits set.
I ...
1
vote
1
answer
47
views
Propogation delay vs time required to send out a complete frame on channel
I was reading Data Communications and Networking by Behrouz A. Forouzan in which for simple Aloha protocol the vulnerable time given was T(fr) (time required to send out a complete frame on the ...
3
votes
2
answers
2k
views
What will happen if a server receives a duplicate SYN for an existing connection?
If a server receives a fresh SYN packet for a connection that is already established, what should it do?
I have already seen What will happen at server side if it received 2 SYN packet from the same ...
0
votes
1
answer
960
views
How do I properly serialize a network packet [closed]
So I'm currently writing a program that is essentially just a server and a client. The idea is that I want them to be able to communicate with one and other by sending packets back and forth. And I'm ...
0
votes
1
answer
1k
views
what does PSH flag in TCP header do when the receiver is not reading data?
we know that when TCP data is received with PSH set, it will immediately transfer the received data to the application.and let's when pushed data arrives the receiver side and the receiver application ...
-1
votes
2
answers
1k
views
What is the window size of TCP pipelined sending?
We know that instead of sending a packet and waiting a RTT then sending another (stop and wait), TCP uses pipelined sending as picture below shows:
So, my question is, what's the maximum number of ...
2
votes
1
answer
325
views
TCP Congestion Control, Sender window = minimum ( Congestion window, Receiver window)
When can the congestion window size be greater than the receiver window size? An example of a scenario will be helpful.
I know that the congestion window is used by the sender to gauge the network ...
0
votes
1
answer
1k
views
what's the acknowledgement number after retransmitting the missing segment [duplicate]
I was reading a textbook which describes TCP fast tetransmit, below is a picture
If the TCP sender receives three duplicate ACKs for the same data, it takes this as an indication that the segment ...
0
votes
1
answer
362
views
why double TimeoutInterval to avoid a premature timeout occurring for a subsequent segment that will soon be acknowledged?
I was reading a textbook which describes how TCP managing the retransmission timeout interval as:
TimeoutInterval = EstimatedRTT + 4 *DevRTT
An initial TimeoutInterval value of 1 second is recommended....
2
votes
2
answers
1k
views
Estimating the Round-Trip Time in TCP
I was reading a textbook which says:
Let’s begin our study of TCP timer management by considering how TCP estimates
the round-trip time between sender and receiver. This is accomplished as follows.
...
0
votes
1
answer
284
views
Sequence number in acknowledgement
Let's say there are two host A and B, and host A sends data to host B and host B only sends ack segement(I know TCP is full-duplex but in this scenario, only A sends data to B, B only sends ack to A).
...
0
votes
1
answer
335
views
Confused with packet reordering
I was reading a textbook which says about TCP protocol "Selective Repeat":
We have assumed that packets cannot be reordered within the channel between the sender and receiver. This is ...
1
vote
1
answer
370
views
no way of knowing whether or not the receiver has correctly received the last piece of transmitted data when checksum is corrupted? [closed]
I was reading a text book which shows a simple reliable data transfer service that is similiar to TCP:
And the author said:
Protocol rdt2.0 may look as if it works but, unfortunately, it has a fatal ...
0
votes
1
answer
864
views
Sequence numbers and wrap around concept
I was reading an article about the topic and I came across this :"During connection establishment each party uses a Random number generator to create initial sequence number (ISN), which is ...
0
votes
1
answer
27
views
Connecting to device which requires specific IP [closed]
[Disclaimer: I'm a complete networking novice, and this question might not even be well suited for this site. I welcome pointers to other stack exchanges if appropriate.]
I'm trying to connect a ...
1
vote
2
answers
1k
views
How does UDP control the flow of data in file transferring?
I know that transferring files over UDP is possible even though TCP is preferred.
My question is how does the server know how much the client can handle or vice versa, or any router in between.
TCP ...
2
votes
1
answer
739
views
Do both sides need to agree on MSS value?
By definition, The TCP Maximum Segment Size (MSS) is the maximum amount of data that a host is willing to accept in a single TCP/IPv4 datagram. And MSS is one of the parameters which is negotiated ...
0
votes
1
answer
187
views
TCP/IP conditions to end an etabilished connection
What happens if the Client crashes and never closes the connection?
Or the server crashes before being able to send a ACK FIN packet.
Are those cases implemented in software?
1
vote
3
answers
806
views
Can the network devices run out of ephemeral ports due to high use of websockets?
This might be a really stupid question, but something I really want to understand.
My understanding is a tcp connections staying open indicates that each of the network devices between the client and ...
0
votes
1
answer
1k
views
how to send a number of TCP packets and capture only those packets using tshark?
I'm using iperf3 to send 1005 TCP packets with the commands:
iperf3 -s -i 1 -f m -p 5200 -D
iperf3 -c 10.60.0.113 -k 1005 -bitrate 0 --reverse --omit 2 -p 5200
In server, client respectively.
The ...
0
votes
2
answers
107
views
multicast udp streaming dst and src address assignment
If I am streaming on a host using the internet outside my nat, how is multcast addressing work with respect to streaming for example, if the application outside sends to 224.0.0.1 how is the packet ...
0
votes
1
answer
3k
views
TCP Handshaking Meaning of RST
I am trying to implement TCP handshaking but receive RST instead of ACK:
No. Time Source Destination Protocol Length Info
62 24.622012890 192.168.0.147 ...
0
votes
2
answers
848
views
Is TCP's MSL value equivalent to IP's TTL value?
Definition of MSL according to RFC 793:
Maximum Segment Lifetime, the time a TCP segment can exist in the internetwork system. Arbitrarily defined to be 2 minutes.
Definition of TTL according to ...
1
vote
2
answers
762
views
Prevent TCP sequence prediction attack
Let's say an attacker gets the sequence number between me and my client. Now he continues the conversation with me and has changed the IP address.
How do I prevent packages from being sent to ...
0
votes
2
answers
800
views
Modify the IP in TCP/IP packet
My ip address is specified in the ip packet sent to the next node. I wonder if a device that handles this packet can modify the ip address before forwarding it to the final destination?
In theory ...
0
votes
1
answer
197
views
Why we use IP address in sockets? [closed]
When a server want to create a socket, it will use a combination of its IP address and some well-known port, let us say 80.
So, when a segment arrived, both the server IP and port 80 will be used to ...
0
votes
1
answer
389
views
Is it valid to send consecutive tcp packets having overlapping data?
Assuming:
TCP Window Size of client: 2000 bytes
MSS (maximum segment size) of client: 1500 bytes
Now server want to send 3000 bytes to client B1..B3000. Server sends:
Packet-1: Contains B1..B1500 ...
0
votes
1
answer
23
views
Length of Version field in IP Datagram header
I have doubt regarding length of "version" field in IP datagram. I have read the possible values are either 4 or 6 but they can represented in binary as 100 and 110, which are 3 bits in length. Then ...
0
votes
1
answer
48
views
re transmission happened before receiving Three ACKs packets
In the following wireshark trace, the packet with seq=41030 was sent, after some time the packet before it got acknowledged. after that a retransmission happened the packet seq=41030, then 3 ACKs ...
0
votes
1
answer
64
views
What is the relationship between message size and message loss rate under different network delays?
I am trying to develop a real time data streaming application with different size of messages using tcp. In fault injection tests it is observed that when the network delay is less than 150 ms, ...