Can Reliable Data Transfer Be Guaranteed in Communication Networks?

  • Thread starter Thread starter Bipolarity
  • Start date Start date
  • Tags Tags
    Data
AI Thread Summary
Reliable data transfer in communication networks can be compromised by packet corruption, affecting both data packets and acknowledgments. When a sender transmits a packet that gets corrupted, the receiver typically does not send a negative acknowledgment (NACK) for corrupted packets, as they are filtered out at the data link layer. Instead, transport-layer protocols rely on positive acknowledgments (ACKs) for correctly received packets, and the sender must retransmit packets until an ACK is received. Sequence numbers can also be corrupted, complicating the identification of retransmissions versus new packets. Overall, robust protocols implement mechanisms like error correction codes (ECCs) and sequence tracking to ensure reliable communication.
Bipolarity
Messages
773
Reaction score
2
Not sure if this is the right forum, but I'l give it a shot. This question regards reliable data transfer in the context of transport-layer protocols in communication networks.
Let's say a sender sends a packet of information over a channel. The packet is corrupted, and the receiver replies with a negative acknowledgment (telling the sender that the packet wasn't properly transmitted).

However, the acknowledgment is corrupted during transmission, so the sender doesn't realize that the packet he originally sent wasn't properly transmitted. He therefore proceeds to send the next packet, with a different sequence number.

However, suppose the sequence number is corrupted during transmission. Then the receiver has no way of knowing whether the packet received is retransmission of the original packet, or transmission of the next packet.
This raises an issue and I am rather confused on how protocols would deal with this. Is it even possible for the sequence number to be corrupted during transmission?

Thanks!

BiP
 
Engineering news on Phys.org
Bipolarity said:
Not sure if this is the right forum, but I'l give it a shot. This question regards reliable data transfer in the context of transport-layer protocols in communication networks.
Let's say a sender sends a packet of information over a channel. The packet is corrupted, and the receiver replies with a negative acknowledgment (telling the sender that the packet wasn't properly transmitted).

However, the acknowledgment is corrupted during transmission, so the sender doesn't realize that the packet he originally sent wasn't properly transmitted. He therefore proceeds to send the next packet, with a different sequence number.

However, suppose the sequence number is corrupted during transmission. Then the receiver has no way of knowing whether the packet received is retransmission of the original packet, or transmission of the next packet.
This raises an issue and I am rather confused on how protocols would deal with this. Is it even possible for the sequence number to be corrupted during transmission?

Thanks!

BiP

It depends on the protocol, but in general everything has a CRC as part of the packet, so it is very unlikely that a corrupted packet will be interpreted as anything. So the sending node knows that it never got an ACK for some packet it sent, and it has to retry that packet again. It will retry until it gets a positive ACK for that packet, or until the configured number of retries is exceeded.

BTW, if the receiver receives a corrupted packet, it does not NACK, at least not in the protocols I'm familiar with. I suppose that in some point-to-point applications, the receiver could NACK in response to a CRC error. The times I've seen NACKs coming back from receivers is not for physical errors, but instead for logical errors in a packet that has a valid CRC. For example, if the receiver is told to write some memory that is write-protected, or out of range, etc.
 
  • Like
Likes davenn
Bipolarity said:
Not sure if this is the right forum, but I'l give it a shot. This question regards reliable data transfer in the context of transport-layer protocols in communication networks.
Let's say a sender sends a packet of information over a channel. The packet is corrupted, and the receiver replies with a negative acknowledgment (telling the sender that the packet wasn't properly transmitted).

However, the acknowledgment is corrupted during transmission, so the sender doesn't realize that the packet he originally sent wasn't properly transmitted. He therefore proceeds to send the next packet, with a different sequence number.

However, suppose the sequence number is corrupted during transmission. Then the receiver has no way of knowing whether the packet received is retransmission of the original packet, or transmission of the next packet.
This raises an issue and I am rather confused on how protocols would deal with this. Is it even possible for the sequence number to be corrupted during transmission?

Thanks!

BiP

depending on the expected environment and how robust you need your system to be a few steps can be taken.

You can have a hard interrupt line to signal an error.
you can use ECCs
you can put in logic that tracks the sequence number order, and flags an error if they come out of order.

and finally you can use a better transmission system
 
Bipolarity said:
Let's say a sender sends a packet of information over a channel. The packet is corrupted, and the receiver replies with a negative acknowledgment (telling the sender that the packet wasn't properly transmitted).
In modern networking, transport layer protocols do not even receive corrupted packets - they are deleted in the data link layer.
The receiving end of the transport layer only acknowledges perfect packets, using the packet number. It is the responsibility of the transmitting end of transport layer to figure out whether or not to retransmit a packet.
There are several timers involved in each end, since not only can data packets get lost, but so also can acknowledgments.
 
  • Like
Likes berkeman
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...
Back
Top