Distributed Systems & Networks Flashcards
(167 cards)
What 5 layers are in the Open Systems Interconnection model highest to lowest?
Application
Transport
Internet/Network
Link
Physical
What are data frames?
A structured way of packaging & sending data between devices
Contain a header, payload, and trailer contained in a packet
What is framing?
The transmission of frames over physical media
What are FLAG bytes and Escape bytes?
A FLAG byte value marks the start and end of a frame
If data contains a byte sequence that could be misinterpreted as a FLAG byte sequence, use an Escape byte to signal different treatment
If data contains a byte sequence that could be misinterpreted as an Escape byte sequence, use another escape byte
What is flow control?
Regulates flow of data
Receiver sends messages to sender saying if more data can be sent
What are the 3 link layer models?
Connectionless, no acknowledgements
Connectionless, acknowledged
Connection-oriented services, acknowledged
What is an ARQ?
Automatic Repeat reQuest
What 3 ways can link layers handle ACKs?
Stop-and-wait ARQ: send frame(s), wait for ACK, send next frame(s)
Go-back-N ARQ: frames labelled with sequence numbers, send frames, if ACK missed retransmit from that frame
Selective-repeat ARQ: same as GBN ARQ but only retransmit lost frames
What 2 ways are errors handled in the link layer?
Parity bit: used to check if number of 1’s is even or odd
Cyclic redundancy check: checksum (based on data) appended to data, checksum re-calculated by receiver, compared with sender’s checksum
What 3 ways is link layer media contention handled?
Frequency channels
CSMA/CD (carrier sense multiple access w/ collision detection), for ethernet networks: listens whilst sending on a channel; if collision detected, stops and retransmits
CSMA/CA (CSMA w/ collision avoidance), for wireless networks: instead of listening, waits for frame ACK
What is CSMA?
Carrier Sense Multiple Access
What are the 3 functions of the Internet layer?
Internetworks: hiding routing from transport layer
Transmits packets: packetises data stream into datagrams (small, distinct units) and fragments them
Receives packets: reassembles fragments
What does each router do in store-and-forward packet switching?
Stores the packet, checks & processes it, forwards it to the next hop
What is fragmentation?
When a Protocol Data Unit (PDU), which has a header and data, is split into smaller packets, which have the header and a fraction of the data
When does fragmentation occur?
When Protocol Data Units (PDUs) are larger than the Maximum Transmission Unit (MTU)
What are the address sizes of IPv4 and IPv6?
32-bit and 128-bit
What are the header sizes of IPv4 and IPv6?
IPv4: variable, at least 20 bytes
IPv6: fixed, 40 bytes
How are IPv6 addresses shortened?
Leading 0s in blocks are omitted
0 blocks (:0000:) are replaced by ::
When is IP fragmentation performed in IPv4 and IPv6?
IPv4: can be at any routing hop, re-assembled at receiving host
IPv6: at sending host
What IPv4 address portions are there?
Network portion: first 16 bits e.g. 192.168.123.45 –> 192.168 network portion
Host portion: last 16 bits e.g. 192.168.123.45 –> 123.45 host portion
Why can’t all addresses in a subnet be used?
First address is reserved
Last address is broadcast address
Another address is required for the router (first or last usable address)
IPv4 subnet notation
For 152.78.70.0/23
The subnet /23 leaves 2^(32-23) = 512 addresses to work with
Leaves address range 152.78.70.1 to 152.78.70.254
IPv6 server portion notation
Server portion can be from 64 bits to 127 (leaves 2 usable addresses): /64 to /127
What is NAT (Network Address and Port Translation) and CGNAT (Carrier-Grade NAT)?
NAT: manages IP address allocation. for IPv4 networks using private addresses but need Internet access
CGNAT: extension of NAT that handles the running out of IP addresses