Questions tagged [transport-protocol]

For questions about or in relation to the transport protocol or OSI layer 4. For instance the best-known transport protocol of TCP/IP is the Transmission Control Protocol (TCP).

Filter by
Sorted by
Tagged with
1
vote
2answers
1k views

How is UDP used in multimedia system inspite of being connectionless

We know that UDP does not care about segment (packet) in-order and their arrival on the destination.Then how on YouTube or VoIP (skype) are we able to stream videos? If a packets is lost (doesn't ...
0
votes
2answers
66 views

Is it possible for TCP can accept out of order segments?

TCP is connection-oriented protocol whereas IP isn't connection-oriented protocol. Any packets before sending into transport layer sorted operation must have been done in network layer. That's why we ...
0
votes
0answers
14 views

Definition of a socket [duplicate]

I wanted to confirm whether the definition of a socket I've understood in a computer network context is true. A socket is file who is unique and named by local IP,Local port, Foreign IP and foreign ...
0
votes
1answer
37 views

Is there any research that tracks fragmentation and drop rates of UDP packets based on size?

I'm designing a P2P system. I need to decide an ideal packet size that maximizes the efficiency of my system. This answer claims a 508 bytes is the maximum safe size, but I believe larger packets ...
3
votes
3answers
105 views

What's the advantage of IPSec over TLS/DTLS?

What's the benefit of IPSec over TLS and DTLS ? If someone's goal is to assure authentication, integrity and confidentiality, can't he/she simply encrypt the content with the two last protocols (on ...
1
vote
1answer
40 views

Does UDP can be exposed to stateful analysis?

From protocol theory we know that TCP is stateful protocol. Different stateful packet filters do filtration based on connection state. I.e. it can distinguish responses and replies. It's obviously for ...
0
votes
0answers
36 views

Why large queueing delays are experienced as a packet arrival rate nears the link's capacity? [duplicate]

From the book "Computer Networks A top Down Approach": It says if hosts A and B both are sending at rate R/2 and router's outgoing link has a capacity of R. There will be delays experienced ...
1
vote
0answers
24 views

How to create an internet protocol like HTTPS? [closed]

If I want to create my own internet protocol, what should I do? How can I create it? Will people be able to use my protocol in their internet browsers? I asked this question in a simple Discord server ...
1
vote
2answers
116 views

How TCP sequence numbers work in bidirectional communication/sliding window?

I was trying to understand how TCP works (not in detail of course). I was surfing the web for easy-to-understand flow diagrams and a question arose and couldn't find a straight answer. Let's suppose ...
1
vote
1answer
65 views

100BaseTX Ethernet Idle code ("/I/") 4B/5B origin

While searching how the PHY LINK status is determined, I stumbled across this answer : In 100BaseTX Ethernet, link pulses aren't used, but instead, link status is detected and maintained via the ...
1
vote
1answer
45 views

What happens to the packets in the sender buffer when "eventually a timeout would be reached" for a **delayed ACK** in a AIMD TCP connection?

In a AIMD TCP connection, What happens to the packets in the sender buffer when "eventually a timeout would be reached" for a delayed ACK for a specific packet at the sender side? Suppose ...
0
votes
3answers
159 views

What would happen if TCP flow control is turned off hypothetically? [closed]

I understand that TCP flow control provides a way for the receiver to backpressure the sender. But what if we eliminated this from the protocol. Of course, the receiver would still ACK everything ...
1
vote
1answer
88 views

I have issue with MSS and window size [duplicate]

I made a short example because I have tried understanding the difference between MSS and window size in tcp header when we consider a sender and a receiver. So let's say sender and receiver use the ...
1
vote
1answer
32 views

Nature of TCP Timeouts

Are timeouts in TCPs inherently part of sequence numbers, or is it an entirely different component of a TCP packet? I understand that timeouts provide some level of reliabilty to a data stream, in ...
0
votes
0answers
69 views

Is the TCP Reno Fast Recovery algorithm really linear?

I'm reading through Computer Networking, 8th Edition by Kurose & Ross, and I came upon this figure(Figure 3.52 pictured below), which graphs the operation of TCP Tahoe & TCP Reno. The graph ...
9
votes
5answers
2k views

Does the destination port change during TCP three-way handshake?

I'm learning networking programming in C and there is a question bothers me a lot, does the destination port change during TCP three-way handshake? Let's say I have a cilent application running on ...
0
votes
2answers
45 views

How are Ports Exposed to the Network?

When you register some server's port, whether it be an application, web, or something else - where exactly is this port registered? I understand how ports work in that they are essentially signposts ...
3
votes
3answers
809 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
1answer
498 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
vote
3answers
135 views

Why is a UDP port scan more complex than TCP port scan?

When I scour SO, I saw that it's a bit complex to port scan a UDP port than a TCP port, why?
0
votes
1answer
39 views

What is the relation between software and hardware ports?

A port number is a 16-bit unsigned integer, thus ranging from 0 to 65535 https://en.wikipedia.org/wiki/Port_(computer_networking) And I think computers have small number of hardware interfaces(ports) ...
1
vote
1answer
83 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
1answer
64 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
2
votes
1answer
136 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, ...
44
votes
7answers
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 ...
0
votes
2answers
87 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?
2
votes
2answers
249 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 ...
1
vote
2answers
195 views

Is this UDP diagram wrong?

I was just wondering if anyone can tell me why all UDP diagrams I have seen list a request from the server to the client as the first point of communication? Take a look at the following diagram for ...
0
votes
1answer
343 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 ...
-1
votes
2answers
282 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 ...
0
votes
1answer
191 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 ...
1
vote
2answers
124 views

how a transport-layer protocol can provide timing guarantees?

I'm reading a textbook which says: A transport-layer protocol can also provide timing guarantees. As with throughput guarantees, timing guarantees can come in many shapes and forms. An example ...
2
votes
1answer
201 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
2answers
48 views

Two PC on the same LAN, communicating the same Server

Assume that we have 2 pc on the same LAN, local IP of pc1: 192.168.1.5 local IP of pc2: 192.168.1.6 Now suppose that both pc1 and pc2 wants to connect to a server on the internet, we all know that the ...
0
votes
1answer
763 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 ...
1
vote
2answers
488 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
1answer
27 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
2answers
41 views

ICMP is a protocol working in the Network Layer. Why does it send few fields of the transport layer while reporting an error?

I was confused if ICMP is a network layer protocol why does it send transport layer fields in its error reporting messages.
0
votes
1answer
641 views

TCP Checksum Calculation

I recently started with networking and tcp/ip. The RFC 793 document tells the checksum is made of: pseudo header+tcp header+tcp payload+zeroes(if not divisible by 16). So I have to take 16bit ...
4
votes
1answer
155 views

Which exact bytes are transmitted while TCP zero window probing?

I read the post about TCP zero window probe and it seems that such a probing segments transmit some payload. But I can't figure out which exactly bytes are sent in probing segments? Is it one (or more)...
1
vote
2answers
147 views

Can TCP stand for "Transport Control Protocol"

I know it might sound like a silly question, but afaik TCP stands for transmission control protocol. However I found a couple of websites using the term Transport Control Protocol. So I was wondering ...
1
vote
1answer
97 views

How does triple handshake avoid establishing connection for duplicate packets(coming later down the line)

The idea behind triple handshake seems to be for duplicates to not cause issues. The way I understand it host sends a sequence x to server. Server acknowledges it and sends it's own sequence y. Host ...
1
vote
1answer
212 views

Do sequence and acknowledgment numbers treat 3-Way Handshake differently?

1- Just as the message ID that is assigned to each message in PAR, the "sequence number" is a means of providing reliability in a transfer of a byte stream. So sequence numbers are assigned to every ...
2
votes
1answer
86 views

Does UDP perform packet re-ordering at the destination?

User Datagram Protocol is a simpler message-based connectionless protocol. Connectionless protocols do not set up a dedicated end-to-end connection. Communication is achieved by transmitting ...
0
votes
1answer
262 views

Transport layer segmentation and Ip layer fragmentation [duplicate]

From the OSI Model's point of view: If we already have Ip fragmentation which happen due to the network limitation, why the transport layer provides the segmentation mechanism via TCP protocol? why ...
1
vote
1answer
83 views

TCP flow control active waiting

To perform flow control between a sender and a receiver during a TCP connection, the receiver includes in each packet to the sender, the size of available space ‘rwnd’ in its receiving buffer. This is ...
0
votes
4answers
205 views

How do networks protocols communicate with each other?

We know that before sending information, TCP has to establish a connection with another host. So, does the request from TCP get encapsulated by lower levels of stack protocols or is it just sent ...
1
vote
2answers
202 views

Which port determines the protocol?

If we have a common protocol port on both ends.. say source point is 443 and destination port is 80 (hypothetical situation, I know this combination of ports probably makes no sense).. how do we ...
1
vote
2answers
1k views

Sequence numbers of segments in three way handshakes of TCP connection establishment or termination

I was trying to understand TCP connection establishment and termination steps from Forouzan's book. In third step of three way handshake of connection establishment, it says following The client ...
0
votes
1answer
23 views

Question on windowing and determing connection speed

Hi i'm just learning computer networks and i have learned about windowing in tcp And my question is does we determine connection speed using windowing? I mean computer know the number of packets and ...