Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tcp]

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

0
votes
0answers
17 views

TCP tranferring a 10kb file from host A to host B and its segments [on hold]

I have two questions to ask here because my university sucks and I couldn't find any information in the lectures or the internet: The first one is: The network connection between Host A and Host B ...
0
votes
0answers
14 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
34 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
252 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
35 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
124 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
30 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
551 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
30 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
49 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
120 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
1answer
47 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
222 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
26 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
18 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
51 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
32 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 ...
3
votes
2answers
61 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
29 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
54 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 ...
0
votes
1answer
69 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 ...
5
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
60 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
39 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
52 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
16 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
19 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
55 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
66 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 ...
0
votes
0answers
37 views

What is the Acknowledgement number in connection synchronisation between client and server?

I came across this article in an attempt to understand sequence and acknowledgment numbers better. Here is the excerpt: Connection set-up uses the SYN flags. They are not used except for ...
0
votes
0answers
10 views

Role of TCP window header field [duplicate]

What is the role of that field in the header of a TCP segment? From what i understand,after the end hosts tell each other how much data they can send until the "buffer" fills up (what is the buffer?),...
-2
votes
1answer
112 views

How do TCP connections work?

The TCP establishes a connection between the source and the destination. My questions are: What do we mean by end-to-end communication? What is the role of that connection?Couldn't reliability be ...
-2
votes
2answers
52 views

Data Transmission Rate Video Stream

Given a web-server with an sd-card (storing 720p (7.2 Mbit/s) videos and 800 Mbit/s read-speed) and a wireless interface with 1200 Mbit/s transmission speed. I have to know how many clients can ...
1
vote
3answers
53 views

How do TCP/IP packets manifest in the RJ45 electric pinout?

Sorry if this is a stupid question. Given you could observe signals going through RJ45 pins, would you see single TCP packets or their fragments?
4
votes
1answer
85 views

How does the transport layer tell UDP apart from TCP?

So I'm reading Computer Networking: A top down approach (where these images are from) and I was looking at the Transport layer. A generic segment in the transport layer has a pretty simple structure: ...
1
vote
1answer
43 views

How MPTCP closed connection?

how MPTCP connection with more than one subflow closed? what would happen to MPTCP connection if a client decide to close one of the subflows? it would be very kind of you if you explain it step by ...
0
votes
1answer
68 views

Understanding acknowledgement mechanism in sliding window protocol

I came across following problem: Node A sends packets to B through router R. The link A-R is instantaneous , but the R->B link transmits only 1 packet each second , one at a time . Assume A sends ...
0
votes
1answer
62 views

How are websites accessed without port numbers?

I am confused on how requests to websites are received. If I type in 172.217.5.110 to my browser, google.com sends me its home page. I didn't have to specify the port number. How does that work? I ...
0
votes
1answer
26 views

Can a ACK or SEQ Number exceed a range and crash the NIC?

I was watching the TCP Stream out of pure curiosity of my FTP Server and saw that the ACK and SEQ number increases by one with each sequence being transmitted successfully. I am not sure, but ...
11
votes
3answers
2k views

acknowledgment by TCP does not guarantee that the data has been delivered

In RFC 793 there is a part about the acknowledgment of TCP segments: When the TCP transmits a segment containing data, it puts a copy on a retransmission queue and starts a timer; when the ...
0
votes
1answer
330 views

TCP errors explain

Could anyone explain these errors: TCP ACKed unseen segment TCP Dup ACK TCP Previous segment not captured TCP Out-Of-Order TCP Retransmission
2
votes
2answers
231 views

tcp connection and stream flow question

Could anyone explain the main principe of tcp flow when making a session ? I have take a tcp dump when i'm trying to browse a site. when I analyse the packet by wireshark, i have found many Three way ...
0
votes
1answer
36 views

Is it possible to make a TCP connection connect back to the destination port? [closed]

I'm new in this forum, I thought I could ask a question here. I've set up a proxy by using nginx and Openresty, which supports LUA scripts, that changes the body of a HTTP SOAP POST request. The ...
1
vote
1answer
97 views

Is there any video streaming online service that actually uses UDP?

We usually hear that UDP is used with data with which a few packets loss/out-of-order can be tolerated like video streaming. And the instructor typically goes on saying "so if you lose a few ...
1
vote
0answers
145 views

AWS tunnel TCP retransmissions and DUP ACKs

I have a IPsec tunnel from my firewall towards AWS, the tunnel is up in both phases. If I run traffic sniffer in the firewall, I can see interesting traffic going through, but there are MANY TCP ...
1
vote
2answers
78 views

Gather the BGP data by using TCP connection on port 179

In order to gather the information shared between BGP peers, what port number should be used to connect using TCP (I am using 179, and don't see the connection being established)? Will I be able to ...