network layer Flashcards
role of routers
examines datagram headers and decides which port to send it to
forwarding
taking the packets at one port of the router and sending it to another based on the header contents
routing
determining the path of the packet from end system to end system
what is the role of the sender in the network layer
encapsulates segments into datagrams and passes them to the link layer
what is the role of the receiver in the network layer
delivers segments to the transport layer protocol
what are the two roles of the network layer
forwarding
routing
data plane
local per router function that determines how the datagram is forwarded between ports
control plane
network wide logic that determines how the datagram is routed between source and destination hosts
what kind of service is the network layer
best effort
decentralised switching
using header field values to lookup the output port using the forwarding table and input port memory
input port queueing
if datagrams arrive faster than the forwarding rate into switch fabric
destination based forwarding
forwarding based on the ip address
generalised forwarding
forwarding based on any set of header field values
how are ip addresses stored in the lookup table
each ip is represented by prefixes instead of the entire thing
longest prefix matching
uses the longest address prefix that matches the destination address
what are the 3 types of switch fabric
memory
bus
interconnection network
what do the memory and bus switch fabric have in common
the interfaces compete with eachother for access
if one is sending data on it already then it cant be used
head of line blocking
datagram at the front of the queue prevents others in the queue from moving forward
what do we use to switch through the interconnected network
CISCO CRS router
how does the cisco crs router work
uses parallel switching planes for faster performance and scalability
8 switching planes per unit
3 stage interconnection network in each plane
supports 100+ tbps switching capacity
why do we use buffering
its required when data arrives faster than the link transmission rate
drop policy
how we choose which packets to drop when the buffer is full
switching discipline
which packets to forward and in which order
priority scheduling
drops the packet with the least priority whilst maintaining network neutrality
network neutrality
scheduling policy shouldn’t give priority in order to favour some customers as this is against international law
what are the 4 types of packet scheduling
first come first served
priority scheduling
round robin scheduling
weighted fair queueing
priority scheduling in packet scheduling
the buffer sis split int different partitions based on priority and arriving packets are classified
what is one example of what we can base priority scheduling on
how delay tolerant it is
e.g. emails are whilst videos arent
round robin scheduling
packets are arranged by priority classification in the buffer and the server sends one packet from each class cyclically
weighted fair queueing
round robin plus each class has a weight which signifies how much time to give it once its its turn
higher priority gets more time
what happens when the buffer is too small
lots of packet loss and retransmission which isn’t good for the user experience or network utilisation
what happens when the buffer is too large
long queueing delays
what is the rule of thumb for buffer size
keep the bottle neck link just full enough so its busy but not fuller
how do we calculate the buffer size
(rtt * bottleneck link capacity) / sqrt number of concurrent flows in the network
host/router interface
connection between the host/router and a physical link
how many interfaces do hosts have
1 or 2
how many interfaces do routers have
multiple
subnet
device interfaces that can physically reach each other without passing through an intervening router
how do we find the subnet
removing all devices and creating an isolated network
class a
network = 8
host = 24