Chapter3 Packet
Chapter3 Packet
COURSE
BASIC COMPUTER NETWORK
3/23
/50 4/23
/50
1. Packet Delay 1. Packet Delay
Assume:
Store-and-forward delay Delay examples. Queuing delay = 0
The time spent reading in the entire packet before any of it can be Case 1: A------------------B Store-and-forward delay = 0
retransmitted. o Propagation delay is 40 µsec
o Bandwidth is 1 byte/µsec (1 MB/sec, 8 Mbit/sec)
o Packet size is 200 bytes (200 µsec bandwidth delay)
One-way transmit time = µsec
Queuing delay A B
5/23
/50 6/23
/50
7/23
/50 8/23
/50
1. Packet Delay 1. Packet Delay
Round-trip time (RTT) Bandwidth x Delay
At most non-LAN scales, the delay is typically simplified to the RTT. Represents how much we can send before we hear anything back.
o The time between sending a packet and receiving a response. (Delay: usually involving RTT)
o Mobile nodes are involved, then the distance and thus the
propagation delay can change. to be the time it takes to transmit a packet from A to B,
and receive an acknowledgment back, with no queuing delay.
We will usually assume that is fixed and well-defined
11/23
/50 12/23
/50
2. Packet Size
How big should packets be?
Should they be large ( 64 kB)
or small ( 48 bytes)?
2 Packet Size Large packets would not allow other senders timely access to
transmit.
Large packets waste a smaller percentage of bandwidth on headers.
In store-and-forward switches, smaller packets have much better
throughput.
13 14/23
/50
To be fair, very large packets can be sent reliably on most cable links
(e.g., TDM and SONET). Limited to the maximum Ethernet packet size.
Wireless, however, is more of a problem. o IPv4: 1500 bytes
o IPv6: 2000 bytes
15/23
/50 16/23
/50
3. Error Detection
Packet error detection is to add some extra bits (or called error-
detection code)
Allow the receiver to determine if the packet has been corrupted in
transit.
A corrupted packet will then be discarded by the receiver.
3 Error Detection
Reasons:
Low-frequency bit errors due to things like
cosmic rays.
Interference errors, typically generated by
nearby electrical equipment.
17 18/23
/50
o Receive: 10110
A weakness of any error-detecting code based on sums is that
Check: 1^0^1^1^0 = 1 0 transposing words leads to the same sum, and the error is not
Data is corrupted. detected.
o In particular, if a message is fragmented and the fragments are
reassembled in the wrong order, the ones-complement sum will
likely not detect it.
19/23
/50 20/23
/50
3. Error Detection 3. Error Detection
Cyclical Redundancy Check (CRC) Error-Correcting Codes (also called forward error correction)
Ethernet frame. That allows the receiver in many cases to figure out which bits are
corrupted, and fix them.
21/23
/50 22/23
/50