3.4-2 Principles of Reliable Data Transfer (Part 2)

  Переглядів 68,712

JimKurose

JimKurose

2 роки тому

Video presentation: "Transport layer: Principles of Reliable Data Transfer (Part 2)." Pipelining. Go-back-N. Selective Repeat.
Computer networks class.
Jim Kurose
Textbook reading: Section 3.1, Computer Networking: a Top-Down Approach (8th edition), J.F. Kurose, K.W. Ross, Pearson, 2020.
See gaia.cs.umass.edu/kurose_ross for more open student resources.

КОМЕНТАРІ: 51
@ayeyo4081
@ayeyo4081 10 місяців тому
Extra note: For Selective Repeat: Relationship between Sequence Number Size & Window Size The ppt slides include the issue where receiver accepts duplicate data packet when the sequence number & window sizes are not adjusted correctly. However, the video does not cover that. So here is the issue: Window Size, N = 4. Sequence Numbers = [0, 1, 2, 3] Sender sends Packets{0,1,2}. Receiver receives all Packets{0,1,2} and sends ACKs{0,1,2}. Then moves its window to [ 3 0 1 2 ], so that it is now ready to receive new Packets{3, 0, 1, 2}. However, ACK(0) gets lost and sender never receives ACK(0). So the sender's window is still sitting on [ 0 1 2 3 ]. Now, after a certain amount of time, the timer for Packet(0) runs out. Timeout(0) is called and Packet(0) is Re-Sent ! This Packet(0) is the SAME packet as the previous Packet(0). Receiver, however, receives the Packet(0) and treats it as a New Packet(0) since the receiver's window is sitting on [ 3 0 1 2 ]. Then the receiver will deliver this DUPLICATE data packet to upper layer, which is an issue. So the question is: What relationship do we need between the Sequence Numbers & Window Sizes? The answer is, simply increase the sequence numbers by doubling and leave the window size. So, that the window size is at least half or less than the amount of sequence numbers. If this is applied to the same situation as above, this is what happens: Window Size, N = 4. Sequence Numbers = [0, 1, 2, 3, 4, 5, 6, 7] Sender sends Packets{0, 1, 2} Receiver receives all Packets{0, 1, 2}, sends ACKs{0, 1, 2}, and moves its window to [ 3 4 5 6 ] However, ACK(0) gets lost and sender never receives ACK(0). So, the sender's window is still sitting on [ 0 1 2 3 ] Timeout(0) is called, and sender re-sends Packet(0). Receiver gets Packet(0), checks that it is out of its window [ 3 4 5 6 ]. So, it discards the data packet, and Re-Sends ACK(0). Now, the receiver side does not deliver duplicate packet to upper layer !
@ricp
@ricp Рік тому
Sir, this is a joy to watch. Your patient explanations are a huge help! - Thank you!
@hatsunemikuwannabe5419
@hatsunemikuwannabe5419 5 днів тому
thank you so much for these videos, it's really amazing that you are explaining such content on youtube, thank you so much for the content
@Daniel-iy1ed
@Daniel-iy1ed Рік тому
This video was fantastic. I've had issues understanding my class and this was absolutely magnificent
@karankishan7002
@karankishan7002 9 місяців тому
The most detailed video i have ever watched on reliable data transfer
@ayeyo4081
@ayeyo4081 10 місяців тому
Extra note: For Go-Back-N: How can Cumulative ACK actually work without an issue? On the slide it says, "cumulative ACK: ACK(n): ACKs all packets up to , including seq# n". This means that if the Sender receives ACK(5) - although never have received ACK(2), ACK(3) and ACK(4) - the Sender will ACK all of them anyway. You may think that this could cause some issues but that is not true. This is because the Receiver will only send ACK with the highest seq # out of the packets it received so far. If the Receiver did not get all or any of the Packets{2,3,4}, but got the Packet(5), it will never send ACK(5) because Packet(5) is not the in-order highest seq# of the packets it received so far. So, by the stage where the Receiver actually sends ACK(5), it means that the Receiver actually received all Packets{1,2,3,4,5}. Then, if sender gets ACK(5), although it didn't get ACKs{2,3,4}, the Sender can reasonably think that the Receiver actually has received all the packets correctly up to seq# 5. Thus, Sender does not have to worry about missing ACKs{2,3,4}, and it can just ACK them all when it gets ACK(5). At the Sender side, Packets{2,3,4,5} were accumulated to be waiting for ACKs, and all of them got ACKed once ACK(5) was received. Hence the name suggests, Cumulative ACK.
@asjadsalahuddin5918
@asjadsalahuddin5918 3 роки тому
Great Work
@wenyichen5515
@wenyichen5515 2 роки тому
I suppose the answer to that last question is: Sender starting transmission of pkt 6 to 9, with window transferred to new location of 6 to 9.
@jojiemancenido6226
@jojiemancenido6226 Рік тому
there! Thanks a lot for the help, I'm going to subscribe to your channel and keep up with all the videos!
@MayCodeGuide
@MayCodeGuide 9 місяців тому
Summarizing: The video discusses the development of a reliable data transfer protocol that accounts for both message corruption and loss. The protocol uses timeout retransmission and sequence numbers, and can be pipelined to improve utilization. Two approaches are presented, Go-Back-N and Selective-Repeat.
@devmahad
@devmahad 6 місяців тому
rdt protocol mechanisms: • error detection (e.g., checksum) • ACKs, NAKs • retransmission • sequence numbers (duplicate detection) • timeout-and-retransmit (lost messages)
@erandadhanushka
@erandadhanushka 4 місяці тому
clearly explained sir
@gummibare
@gummibare 2 роки тому
Why are we restarting the sequence and resending pkt0 after pkt1 (in all of the examples)? Isn't it supposed to be pkt2?
@sjhuz01
@sjhuz01 Рік тому
This is a bit confusing, since you'd think packet number = sequence number that correspond to the chunks of data being sent ... But this is not that. It's not resending the same data (though it looks that way) ... It's the state of the sending & receiving ticking back & forth. This pkt0 & pkt1 is only used in the explanation of basic Reliable Data Transfer to build up to the points shown at the end of this video. In the simplest model, we need sender & receiver to send, receive, acknowledge, and await confirmation. To cover all those bases, we only need 2 sequence numbers: 0 and 1. If you've sent 0, you await 0 and queue up 1. If you've sent 1 you await 1 and queue up the other one again (0). The packet currently being sent/received is either the next one, or it's a repeat of the previous packet that wasn't received / Ack'd (or it was corrupted). (In the book he calls this "the alternating bit protocol") This simple 0/1 binary approach is like a ticking grandfather clock. The pendulum either ticked the correct direction, or it doesn't. If a packet arrives swinging the wrong direction (not what's expected), that packet is acknowledged but thrown out, in the simple model. If it arrives with the expected direction, the packet is acknowledged and sent on to the application. As we see in this video though, that binary approach is extremely inefficient - it's far better to send/acknowledge > 1 packet at a time. Once he introduces pipelining of multiple packets at once, 0/1 alone is not adequate to track the packets so he does add more packet numbers.
@tawseeftaher9109
@tawseeftaher9109 2 місяці тому
0:50 rdt 3.0 15:15 selective repeat
@mailoisback
@mailoisback Місяць тому
In SR, can't we move the out-of-order ACKed packets outside the window? Why are we keeping them?
@mailoisback
@mailoisback Місяць тому
So is TCP a SR or a GBN protocol? I guess I will find out next...
@xiankunxu4432
@xiankunxu4432 2 роки тому
At time 8:08, what if the duplicate ack1 arrives the sender side after the sending of the last pkt1? Sender will think this ack1 is for the last pkt1, but actually it is for the previous duplicate pkt1.
@carlonnrivers
@carlonnrivers 2 роки тому
Interesting theory indeed.
@marshlee3733
@marshlee3733 2 роки тому
I think ack 0 will keep delaying until all duplicate ack 1 received
@QasimKhan-nd8og
@QasimKhan-nd8og 2 роки тому
add a time-to-live (TTL) in the ACK; if TTL is expired then that ACK is corrupt
@gummibare
@gummibare 2 роки тому
Shouldn't the packets (of same sequence #) be identical, in which case it doesn't matter which packet it's acknowledging?
@marshallokafor5034
@marshallokafor5034 2 роки тому
It will be ignored because it has already received an ACK 1 earlier and waiting for ACK 0 next.
@karanpreetsingh5966
@karanpreetsingh5966 2 роки тому
I love thee to the depth and breadth and height my soul can reach.
@vishweshgk6752
@vishweshgk6752 Рік тому
Sir Sakath video 😘
@suneetkamath2863
@suneetkamath2863 Рік тому
Hi bbg
@SantoshKumar-lz2ti
@SantoshKumar-lz2ti Рік тому
rdt2.2 is not there in lecture????????
@awbgaming2579
@awbgaming2579 4 місяці тому
rdt2.2 is same as 2.1 but without NAK
@suneetkamath2863
@suneetkamath2863 Рік тому
Comment here for finance with bob
@klevisimeri607
@klevisimeri607 Місяць тому
🧠
@suneetkamath2863
@suneetkamath2863 Рік тому
Hi guys I'm Bob finance advisor
@vigneshvinu1088
@vigneshvinu1088 Рік тому
Hii sir love from Pakistan
@vishweshgk6752
@vishweshgk6752 Рік тому
Sir how is market doing?
@Sudeep-dh7zo
@Sudeep-dh7zo Рік тому
I am ur big fan sirrrr
@vigneshvinu1088
@vigneshvinu1088 Рік тому
@@Sudeep-dh7zo Even im big fan of him...his videos r soo nice
@suneetkamath2863
@suneetkamath2863 Рік тому
@@vigneshvinu1088 hello Pakistan , i am from Malaysia
@user-bn7vg9vy1q
@user-bn7vg9vy1q 6 місяців тому
All other videos are excellet except these two of RDT, its boring doesnt serve any usecase
@ofaydn
@ofaydn 5 місяців тому
no they serve an usecase in midterms
@appletime101
@appletime101 20 днів тому
Apparently this is pretty similar to what wifi base stations do
@suneetkamath2863
@suneetkamath2863 Рік тому
LGBTQ+ i support, hence love video
3.5-1 TCP Reliability, Flow Control, and Connection Management
14:20
3.4-1 Principles of Reliable Data Transfer  (Part 1)
24:04
JimKurose
Переглядів 101 тис.
Godzilla Attacks Brawl Stars!!!
00:39
Brawl Stars
Переглядів 8 млн
Go Back N demonstration
1:39
ComExile
Переглядів 31 тис.
4.1 Introduction to the Network Layer
15:44
JimKurose
Переглядів 98 тис.
3.6 Principles of Congestion Control
15:00
JimKurose
Переглядів 69 тис.
SSL, TLS, HTTPS Explained
5:54
ByteByteGo
Переглядів 640 тис.
UDP doesn't suck! It's the BEST L4 protocol for THESE types of applications...
11:52
Go-Back-N ARQ
10:55
Neso Academy
Переглядів 688 тис.
i cant stop thinking about this bug
8:40
Low Level Learning
Переглядів 96 тис.