Questions tagged [tcp]

For questions about Transmission Control Protocol (TCP), a transport protocol used to encapsulate data across a network for reliable communication.

Filter by
Sorted by
Tagged with
3 votes
3 answers
999 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 ...
user avatar
  • 133
1 vote
1 answer
33 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
  • 139
-1 votes
1 answer
31 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? ...
user avatar
0 votes
1 answer
264 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 ...
user avatar
0 votes
1 answer
61 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 ...
user avatar
1 vote
1 answer
151 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 ...
user avatar
1 vote
1 answer
84 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
user avatar
  • 13
1 vote
1 answer
66 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 ?
user avatar
2 votes
2 answers
201 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, ...
user avatar
1 vote
2 answers
428 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 ...
user avatar
3 votes
1 answer
489 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?
user avatar
  • 1,737
0 votes
2 answers
41 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 ...
user avatar
2 votes
1 answer
330 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 ...
user avatar
  • 23
0 votes
1 answer
83 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 ...
user avatar
  • 147
1 vote
1 answer
207 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 + ...
user avatar
  • 13
44 votes
7 answers
15k 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 ...
user avatar
  • 559
0 votes
1 answer
126 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 ...
user avatar
0 votes
1 answer
79 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 ...
user avatar
0 votes
2 answers
114 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?
user avatar
  • 3
0 votes
1 answer
185 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 ...
user avatar
  • 3
1 vote
1 answer
31 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 ...
user avatar
2 votes
2 answers
730 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 ...
user avatar
  • 138
0 votes
1 answer
597 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 ...
user avatar
  • 103
0 votes
1 answer
322 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 ...
user avatar
  • 401
-1 votes
2 answers
549 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 ...
user avatar
  • 119
2 votes
1 answer
116 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 ...
user avatar
0 votes
1 answer
467 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 ...
user avatar
  • 401
0 votes
1 answer
148 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....
user avatar
  • 401
1 vote
2 answers
323 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. ...
user avatar
  • 401
0 votes
1 answer
99 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). ...
user avatar
  • 401
0 votes
1 answer
151 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 ...
user avatar
  • 401
1 vote
1 answer
145 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 ...
user avatar
  • 119
0 votes
1 answer
372 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 ...
user avatar
0 votes
1 answer
26 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 ...
user avatar
  • 101
1 vote
2 answers
765 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 ...
user avatar
2 votes
1 answer
346 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 ...
user avatar
0 votes
1 answer
74 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?
user avatar
1 vote
3 answers
485 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 ...
user avatar
  • 111
0 votes
1 answer
456 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 ...
user avatar
  • 121
0 votes
2 answers
61 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
0 votes
2 answers
649 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 ...
user avatar
  • 113
1 vote
2 answers
563 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 ...
user avatar
  • 15
0 votes
2 answers
394 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 ...
user avatar
  • 15
0 votes
1 answer
51 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 ...
user avatar
0 votes
1 answer
245 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 ...
user avatar
  • 101
0 votes
1 answer
22 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 ...
user avatar
0 votes
1 answer
28 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 ...
user avatar
0 votes
1 answer
53 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, ...
user avatar

1 2
3
4 5
15