slides12 Flashcards
wat do routers do
The basic idea is that a packet does not know how to get from source to destination: this is the routers’ job (and it can be quite complex: see later)
is datagrm a synonym for packet
the word packet should only be used when the communication is reliable, e.g. IP over TCP. A datagram is used when the communication is unreliable, e.g. IP over UDP.
ip Version
Four bit field containing the value 4. A later version of IP (IPv6) contains 6
ip Header length
There are some optional fields, so the header can vary in size, so this is needed to distinguish the end of the header. Given as a number of 4 byte words. Four bits, maximum value 15, so maximum header length of 60 bytes
ip Type of service
Eight bits. To indicate to a router how this datagram should be treated in terms of cost, speed and reliability (if possible)
E.g., for audio it is better to get data through quickly rather than 100% reliably as the human ear is more sensitive to gaps than occasional errors
ip TOS field
Differentiated Services Field (DS field), is to inform routers on the best way to treat this datagram
This allows the implementation of Quality of Service (QoS)
ip Minimise delay
Do not hold onto this datagram longer than necessary, and perhaps prioritise it over others
ip Maximise throughput
Not quite the same as minimising delay, since collecting together several small datagrams and sending them off together may be more bandwidth efficient
ip Maximise reliability
Try not to drop this datagram if the router is becoming overloaded; drop another datagram first
ip Minimise cost
For this datagram cost is more important than reliability or speed. This datagram can be delayed if it makes transmission cheaper
EX problems with Explicit Congestion Notification
In routers and switches, active queue management (AQM) is the intelligent drop of network packets inside a buffer associated with a network interface controller (NIC), when that buffer becomes full or gets close to becoming full, often with the larger goal of reducing network congestion.
Use of ECN has been found to be detrimental to performance on highly congested networks when using AQM algorithms that never drop packets.[9] Modern AQM implementations avoid this pitfall by dropping rather than marking packets at very high load.
ip Total Length
Of the entire datagram, including header, in bytes. 16 bits, so giving a maximum size of 65535 bytes. Much larger than domestic networks need, but too small for high-speed networks
ip Identification
16 bits. A value that is unique to each (source) datagram, often incrementing by 1 for each successive datagram sent
Used in fragmentation to reassemble the fragments of a single datagram. All the fragments get their own IP header, but share the same identification
when is fragmentation useful
If a big datagram hits a part of the Internet that only allows small datagrams, there is a problem
ip Flags
Three bits: two used and one reserved
- RF. Reserved for later use, must be 0 (see RFC3514 for a
suggested use) - DF. Don’t fragment. If a host can’t (or doesn’t want to) deal with fragments this bit is set to inform the routers on the path to the destination. A router might choose an alternative non-fragmenting route, or simply drop the datagram and send an error message back to the source which can then send smaller datagrams
All hosts are required to be able to accept datagrams of 576 bytes - MF. More fragments. All fragments except the last have this set