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
0
votes
0answers
8 views

Can I use sockets to create a chatbot website [closed]

I want to create a Chatbot website that include the structure of distributed system. To be a distributed system, I thought there should be single server and multiple users concurrently accessing my ...
0
votes
0answers
11 views

Intermittent Connection Problem between two Computers [closed]

Hey guys I have an odd problem I'm trying to troubleshoot but can't figure out what's going on Setup: Computer A is on subnet 192.168.4.0 with ip 192.168.4.145 Computer B is on subnet 192.168.19.0 ...
6
votes
3answers
1k views

Sending less data than the TCP buffer could take

The accepted answer of this question explains: When you send data, your TCP buffers it. So if you send a character it won't send it immediately but wait to see if you've got more. But what if I ...
0
votes
0answers
13 views

Which is a typical retransmission timer in TCP three-way handshake [closed]

in a TCP three-way handshake scenario (SYN, SYN/ACK, ACK) what happens if each of the three segments is lost? E.g. if the SYN/ACK is lost, from my understanding SYN/ACK is resent after some period of ...
0
votes
0answers
6 views

Winsock throw errorcode 10061 when excecuted from different machine [closed]

I created two programs with Winsock, a server program and a client program. When I excecute them on my windows machine (in different cmd windows of course), I am able to receive a message from the ...
0
votes
0answers
17 views

Juniper EX Switch sending TCP reset on SSH connection randomly

So as stated in Title I'm observing that one of our switch randomly send RESET flag in TCP and ends the ssh connection in the middle and sends and Window size of 0 as well. Randomly it refuses to ...
1
vote
1answer
32 views

Does HTTP proxy sends its own TCP packets or bypasses clients packets?

Need help to understand what's happening on TCP level when http proxy is used. When client wants to open a website through a proxy, first connection is established between client and proxy. Then ...
0
votes
1answer
50 views

Sending TCP packet to the other device without connection

I think the sending packet to other device works like the following. 1. The server device listens with port. for example 80 2. The client connects to the server devices. for example, the port of ...
23
votes
7answers
5k views

Why isn't UDP with reliability (implemented at Application layer) a substitute of TCP?

TCP provides reliability at transport layer while UDP does not. So, UDP is fast. But, a protocol at application layer can implement reliable mechanism while using UDP. In this sense, why isn't UDP ...
0
votes
1answer
49 views

TCP sequence numbers in Actual Transmission vs. in Wireshark Capture

Whenever, we do a wireshark capture and Follow--> TCP Stream, we see the sequence numbers as fixed values. In reality, if this were the case, the intruder can easily predict the transmission patterns....
0
votes
1answer
42 views

Response time of TCP congestion control

I would like to know about the overall latency of the TCP congestion control for adapting to varying network conditions. Specifically, my questions are: How fast can the system react after a change ...
1
vote
2answers
80 views

How to measure max bandwidth with Wireshark?

I'm trying to measure the max bandwidth usage of my LAN with Wireshark. I´ve done several packet captures but I don't know how to obtain the max bandwidth usage. Any Idea? Thank you in advance
0
votes
1answer
54 views

Why the Ack number is bigger than the last Seq number?

Why the Ack number is bigger than the last Seq number? you see the Ack response for each two TCP packages. but there I have a question, you see the Ack response for Seq=19997, Seq=22893 and Seq=...
1
vote
1answer
62 views

Dropping packets between router and firewall without firewall rule

I have a user that is trying to access his company network resources on his home network. He is able to access SMB shares and other resources, but he is unable to access their AS400 on any computer in ...
0
votes
1answer
38 views

Wireshark captures TCP packet with no flag [closed]

In our network, I captured a TCP packet by Wireshark that has no flag set. What's that mean? Is it normal?
3
votes
0answers
69 views

Behaviour of TCP SACK

I will ask the question based on the following scenario. Assume I have to send 10 packets using TCP using a window size of 5. I send 1, 2 and receive ACK for them, I send 3 and the ACK is lost, I send ...
1
vote
1answer
49 views

Why server cannot send data in TCP three-way handshaking?

In the three-way handshaking, only from the ACK packet we can send data. Why cannot the server send data with SYN-ACK packet? I understated why a client cannot send data to a server (preventing, for ...
0
votes
1answer
54 views

What's the use of an acknowledgement number without the ACK flag set?

Isn't it redundant if the ACK flag in the header isn't also on? Do you ever mix an acknowledgement with a normal message - send data and acknowledge a message in the same TCP segment? I feel like ...
0
votes
0answers
18 views

does ipsec phase1 renewal keep connections?

I have an IPSec tunnel UP and I open a TCP connection when the phase1 expire and is renewed, Is the TCP connection supposed to stay alive or drop ? both in the theory and practical (cisco, ...
1
vote
0answers
35 views

Why do I observe a 4-way TCP handshake instead of an expected 3-way when establishing a connection? [duplicate]

I'm doing a simple HTTP GET query on a localhost from curl to a local webserver. After I did a tcpdump I noticed these packets to be sent each time a request is done: 11:11:27.537300 IP 127.0.0.1....
1
vote
1answer
284 views

TCP Three Way Handshake?

I have the following query about the tcp handshake. To establish a connection the server must send a packet with SYN flag to 1 Then the server replies with a SYN,ACK flag to 1 , and afterwards the ...
2
votes
1answer
38 views

Why does TCP need segments if the network layer automatically breaks things up into fragments?

I'm trying to better understand the difference between IP fragments and TCP segments (https://www.shubhsblog.com/tech/difference-ip-fragmentation-tcp-segmentation.html) and there's one thing I'm not ...
2
votes
2answers
126 views

If an old FIN is delivered, will TCP terminate the new connection?

Two programs use a TCP connection (3-way handshake) to open, communicate, terminate the connection and open a new connection. If a FIN message sent to shut down the first connection is duplicated and ...
3
votes
0answers
32 views

Why does TCP exit out of slow-start faster than expected?

For context, I am testing a client-server TCP flow, where the client makes a request for a file, and the server sends the file using regular TCP streams. Both servers are using the "Cubic" ...
2
votes
2answers
556 views

Transferring data speed of Fast Ethernet

I am wondering that between 2 hosts in LAN, when i send one file which weights 1Mb versus 1 file weights 0.3Mb from the first host to the second host using TCP/IP protocol, would the latter come first?...
1
vote
0answers
34 views

Why do I not see slow start in this TCP packet capture?

I am looking at the packet flow between a server and a client (which is downloading a file from the server). As you can see in the packet capture below (with IP addresses omitted), after the initial ...
-2
votes
1answer
57 views

How to send data from one PC to another PC over internet? [closed]

I'm basically a developer, and this is the first time i'm trying to develop a chat application over internet without any servers in between. It's easy to send data from PC to server and then to ...
1
vote
3answers
124 views

Is IP an abstraction

If packets "hop" from network device to network device across networks using MAC addresses, resolved by ARP, does this suggest that IP is essentially an abstraction? By abstraction, I mean, the ...
2
votes
2answers
177 views

Can anyone Explain me difference Between PSH and URG flag in TCP segment

According to me when PSH flag is set , it indicates that data will have to be sent immediately to the wire and on receiving side the data has to be pushed to the application immediately . When URG ...
0
votes
0answers
24 views

What do the multiple occurencies mean in a packet trace file?

I have a trace file and I used tshark to find out the number of duplicate ACKs, with the following command: tshark -r file.pcap -T fields -e frame.number -e tcp.analysis.duplicate_ack After some ...
4
votes
2answers
228 views

Is a TCP segment with FIN but not ACK ever encountered today?

A fin-scan involves sending a TCP segment with FIN and no other flags other than (possibly) PSH and/or URG. Are such packets ever legitimately encountered in 2019? Note that in Is a FIN only segment ...
-1
votes
1answer
32 views

why can't we use the sequence number to distinguish them since every packet has a different sequence number? [closed]

It is a question from Networking stanford course. A server typically listens for TCP connections on a particular port (e.g. 80 for HTTP or 22 for SSH). Which fields can the server use to ...
0
votes
0answers
24 views

Which fields can the server use to distinguish packets for a particular client connection? [duplicate]

A server typically listens for TCP connections on a particular port (e.g. 80 for HTTP or 22 for SSH). Which fields can the server use to distinguish packets for a particular client connection?It is a ...
0
votes
0answers
9 views

How CUBIC TCP behaves when the sender doesn't use all the available bandwidth?

While I was reading about CUBIC TCP (https://en.wikipedia.org/wiki/CUBIC_TCP) I asked myself one question, what happens to the congestion window if the sender doesn't send much data (enough to trigger ...
4
votes
1answer
59 views

Is an RST only segment ever legitimate?

Is a TCP segment with RST but no ACK ever legitimately encountered today? While some kernels emit such an RST when a SYN segment is sent "illegitimately" from themselves (e.g., nmap half-syn, scapy, ...
3
votes
1answer
41 views

How is SampleRTT measured once every RTT, without measuring every segment?

According to the RFC, SampleRTT is measured once every RTT. My text: Computer Networking: A top-down approach (6ed By: Kurose & Ross) also states, that: Instead of measuring a SampleRTT for ...
4
votes
2answers
64 views

Is it correct to assume that ordering of frames at switch level is not important?

My understanding is that if the payload of the frame contains any data that needs to be reassembled, at least for TCP payload, it can be done at the OS level, once all the packets are received and ...
2
votes
1answer
32 views

Is WRED configured for TCP traffic only?

I am looking out for a practical usage of WRED. After reading/searching I found that it is more suitable for TCP traffic. When the queue is full, all the TCP session at that time will start with slow ...
0
votes
1answer
68 views

TCP - correlation between ACKs and receive window

EDIT: I think i get it now. So a simple sliding window mechanism basically assumes the correctly received data is processed immediately. Therefore an acknowledgement implies the data was received AND ...
1
vote
1answer
88 views

TCP or UDP for Stop & Wait / Go Back N

I'm creating server/client classes for "Stop & Wait" and "Go Back N" (variant of sliding window) protocols, though I'm unsure on whether I should pursue TCP or UDP. From my current understanding I ...
6
votes
4answers
1k views

Can throughput exceed the bandwidth of a network

I took an introductory course to networking this semester and I was wondering: looking at things at the layer 4 level using TCP can the throughput on the network exceed its bandwidth? According to the ...
0
votes
1answer
66 views

sequence number layer 4 vs sequence number LLC layer 2

I had read about TCP in layer 4 where sequence number and acknowledgment numbers were assigned to each segment so that each side of the connection could keep track of the process of sending/receiving ...
1
vote
1answer
53 views

Message formatting and encapsulation

I've gotten confused when reading about encapsulation and the OSI and TCP/IP models. I first read about message formatting and encapsulation and the diagram I read showed: Destination | Source and ...
0
votes
1answer
57 views

OSI Model vs Network Model: Does It Matter Which One You Use?

The OSI (Open Systems Interconnection) model is comprised of the following layers: 7. Application Layer 6. Presentation Layer 5. Session Layer 4. Transport Layer 3. Network Layer 2. Data Link ...
6
votes
2answers
2k views

Why maximum length of IP, TCP, UDP packet is not suit?

From many tutorials, I get follow knowledge(maybe I'm misunderstood) : maximum of an Ethernet packet is about 1500 bytes. maximum of an IP packet is about 65535 bytes. maximum of a UDP packet is ...
0
votes
0answers
18 views

Why maximum length of IP、TCP、UDP packet is not suit? [duplicate]

From many tutorials, I get follow knowledge(maybe I'm misunderstood) : maximum of an Ethernet packet is about 1500bytes. maximum of an IP packet is about 65535bytes. maximum of a UDP packet is 65515 ...
0
votes
1answer
20 views

ACL and ACEs Query

So i'm configuring a basic network and I need to create a couple of Extended ACLs. Now my question is, does this ACE permit any TCP connection to the following subnet? permit tcp 192.168.10.0 0.0.0....
1
vote
2answers
58 views

How are connections in TCP recorded for sending messages one after another?

In transport layer, TCP is connection oriented and UDP are connectionless. What is "connection" as in TCP then? In network layer, is it correct that there should be no distinction between TCP and ...
-3
votes
2answers
57 views

How can TCP be used in order to implement DHCP and under which circumstances is this preferable?

I am pretty new to the computer networking studies and was learning about the DHCP protocol. It is implemented based on UDP, as I've gathered, but is there a way for it to be implemented over TCP? ...
0
votes
1answer
83 views

Why do TCP/IP stacks send individual ACK packets?

I've been reading more about TCP and found out that since multiple flags can be set at once, basically every packet after the initial SYN has the ACK flag set, and serves as an acknowledgment of all ...