What does OSI stand for?
Open System Interconnect
What constitutes a layer in the OSI model=
collection of conceptially similar functions
What is the interaction between layers?
layers offer services to layers above
and uses services offered by layer below
Does the OSI model specify how layers should offer services?
no it only specifis which services a layer might offer
Does the OSI model describe protocols?=
no, only functions of layers in an abstract way
How does the layering approach split up communication as a whole?
Thorugh layering, the communication process is divided an conquered
-> smaller and widely independently portions
What is an - theoretical - advantage of the differnet layers in terms of changing implementations?
through the more or less independent layers, the implementaiton of one should theoretically be able to change without affecting other layers…
What is horizontal communication and what gets exchanged?
sender and receiver exchange Protocol Data Units (PDU) at the same layer (e.g. TCP packet)
What is vertical communicatoin and what gets exchanged?
communication between layers in a single system -> e.g. Transport with network layer
higher layers provide PDU -> which is the SDU of lower layer (payload)
lower layers strip PDU and transmit SDU to higher layer…
What can the PDU minus SDU be seen as?
protocol specific information
-> how to proceed with the SDU…
Is OSI only used between networked machines?
no, can also be used for e.g. conceptualizing communication in single system like USB periphery
Are different layers strictly delimted from other layers?
no, sometimes layers may act very closely, -> merging through cross layer approaches
Does all OSI layers have to be implemented?
not neccesarry
What is the task of the applicatoin layer?
interface between running application on a node and protocols offered by OSI model
Name an example for an application layer protocol
HTTP
-> bworser itself not part of the OSI model
-> but HTTP as interface to the OSI transport stuff…
others: SMTP, telnet
What are the responsibilities of the Presentaiton and Session Layers?
not always implemented as dedicated protocols
presentation: formatting the data such that it is readable at the device at receiving side (e.g. JSON.…; -> serialization)
presentaiton might also provide encryption and compression servicves
session layer: establish and maintain logical session s
-> controls mode of operation e.g. simplex, duplex, …
=> e.g. used for RPC…
What are the tasks of the transport layer?
end-to-end communicatoin between applications -> using port numbers…
What are the well known ports?
0-1023
How many ports are there?
65535
What two types of servicves are offered by the transport layer?
TCP (slow reliable)
UDP (fast unreliable)
What does TCP ensure and what does it offer?
ensures that data at receiver can be fully reassembled
offer mechanisms to detect and revocer from transmisison errors
offers flow control and congestion control
What is flow control and congestion control?
flow control: receiver is not overwhelmed by sender
congestion control: data sent as fast as possibnle without exceeding network capacity
What are the guarantees of UDP?
none -> just sents it and hopes it arrives…
=> but minimal overhead -> minimal delay
e.g. video streaming…
How are PDU called in TCP?
segment
How are PDU called in UDP?
datagramm
What is the respobsinility of the Network Layer?
to allow addresation of nodes in a wide-spread network
enable routers to decide the next hop
What functionalities are needed in the network layer aside from the actual addressing?
detect and report errors
what is the currently predominant protocol in the network layer, what is getting increasingly present?
IP protocol
IPv6 protocol
What protocol is responsible for error reporting in the transport layer?
ICMP
ICMPv6
What are some old protocols in the network layer?
interwork packet exchange (IPX)
datagram delivery protocol (DDP)
What is the responsibility of the data link layer? Difference to network layer?
address the sender and receiver of the current hop
network -> address the general sender and receiver…
How is the data at the data link layer called?
frame
Is the network layer addressing scheme hierarchical? is the data link layer scheme?
network layer -> hierarchical
data link -> flat
What is a second respobsibility of the data link layer?
control access to the physical medium used for data transmission (CSMA/CD)
What does the physical layer do?
interaction between network hardware and physical medium
how are bits represented?
coding, modulation, voltage levels
pin layout of connectors
characteristics of cables
…
What is ethernet?
transmission technology for LAN
What is 10Base5? What is 10Base2?
first ethernet standard
following standard
thick vs thinner coaxial cables (thicknet vs thinnet)
Maximum datarate for 10Base5 and 10Base2?
10 Mbit/s
Duplex 10Base5 and 10Base2?
half duplex since single medium shared between devices
=> whole medium is single collision domain / segment
What is a collision domain?
portion of network where collision can occur when two stations send at the same time
-> corrupts data
What is a medium access protocol (MAC)?
control when station is allowed to send
e.g. CSMA/CD
Why is a MAC address needed?
since the medium broadcasts messages
-> specify for whom the message is… with medium access control
How many bits mac?
48bit
Is there a limit to ethernet length?
100m due to signal athenuation (wird schwächer…)
How can one overcome the 100m limit in ethernet?
repeater
fiber optic cables
Other limit to ethernet length?
CSMA/CD -> at some point does not work correctly anymore…
What is 10Base-T / 100Base-TX?
1990 standard T
twisted pair cable (4 copper cables)
one pair for receiving (RX) and one for transmitting (TX)
solely difference -> 100Base-TX 100Mbit/s
What is crossover cable?
two statoins connected directly
RX and TX exchanged
-> RX on one is TX on other and vice versa
-> allows for full duplex…
How have larger topologies changed from a bus one?
star
How do star topologies differ from bus?
only macro level
-> funcitonality same
-> straight through (no cross cable) to central hub
hub connects TX of each to RX of all others
-> same as bus as transmitted frames visible for all nodes…
On what does the implementation of the physical layer depend?
on respective ethernet standard
What ethernet standards do not use 2 pairs?
100Base-T4
Gigabit Ethernet over twisted pair cables
Common ethernet standard for small networks0
100Base-TX (and 1000Base-TX)
What is 4B5B?
Line Code
group of 4 bits (nibble) mapped to 5 bits
What is 4B5B used for=
e.g. ensure that at leas one 1 is present (0000 -> 1110…)
with MLT-3 guarantees change of voltage at least every 5 symbols
-> important for synchrnization (detect stard and end of symbol intervals)
-> allow to define command characters which do not represent data words but used for signaling (16 singaling characters possible…)
Drawback 4B5B?
overhead -> 1.25 symbols per bit needed
What is a symbol?
transmitted electrical 0 or 1
What is MLT-3?
multi level transmit
-> reduce frequency
cycle through -1,0,+1
change when 1, stay when 0
Frequencies of high and low vs MLT-3?
125MHz
31.25MHz
-> the one takes 1 0 for a cycle
-> MLT-3 takes 1 0 -1 0
Does 1000Base-T use 4B5B?
no
effective data rate 1000Base-T?
250MBit/s
How does 1000Base-T acheive 1GBit/s?
use all four pairs of cables to send or receive -> 4x 250MBit/s -> 1GBit/s
How does overlapping sending and receiving affect the transmission in 1000Base-T?
does not
-> sender knows what he sent
-> able to reconstruct the received stuff…
What doses CSMA/CD so?
carries sense multiple access / collisoin detection
-> control how nodes access shared medium and how collision are detected and handeled
How does CSMA/CD work?
each node listens to medium if there is already data sent
if medium idle -> start sending
assumed to be successful (only assumed) if no errors (i.e. no collision)
when collision -> stop current transmission and send jam signal
involved stations notified about collision
exponential back-off
How does exponential backoff work=?
each station choose random element from {0,1,2,4,8,…,2^i-1} wher i is number of successive collisions
i limited to max value of 10
host waits x time slots before allowed to send data again
What are time slots for differemt speeds?
100MBit/s 5.12 microseconds
10MBit/s 51.2 microseconds
What happens if the medium is busy after exponentiao backoff?
wait till its free…
=> basically exp backoff -> timeout before sense the carrier again…
What is a potential problem of CSMA/CD?
singals propagate with around 2/3 of light in vacuum
-> 100 meter segment requires 0.5 micro seconds for propagation
-> if longer -> node might have sent all and think it is no collision although node further away started to sent at the same time…
What can CSMA/CA be used for?
collision avoidance
-> has retransmission functionlaity
-> especially good for unreliable links -> e.g. wifi
How does a node know wether a frame is for it?
MAC header
compares destination to its own
What are OUI?
organizational unique identifier
-> first 24 bit of MAC that identify vendor/manufacturer of network hardware
What are the second 24 bit in MAC addresses used for?
assigned randomly
-> prevent duplicate MAC from same vendor…
=> errors and inability on same networks…
Structure ethernet frame
(preable (15 times 1010))
(SFD 1011)
Dst MAC 6 byte
Src MAC 6 byte
Type 2 byte
Payload 46-1500 byte
FCS 4 byte
inter frame gap 9.6 microseconds
What is preamble and SDF used for?
stricly speaking not part of ethernet frame
-> indicate start of frame and ensure spacing between subsequent frames (inter frame ga=
What is Type in ether frame?
e.g. IPv4 0x0800 ro IPv6 0x86DD
What is FCS?
frame check sequence
-> constitutes a trailer
contains CRC-32 checksum
over whole ether frame (incl src and dst mac)
What happens if an error (CRC) is detected in a frame?
discarded
What is minimum size of ethernet frame?
64 byte (46 byte payload plus 18 byte header)
Why minimum frame length?
otherwise cannot be guaranteed that sendng host recognizes collision in time
-> serialization too short…
maximum frame size?
1518 byte
Does the minimum frame size holds for gigabit ethernet?
yes, because it is backward compatible
-> but slot size increases (carrier event -> in case frame only 64 bit -> padding to 512 bytes)
-> called carrier extension
When are frames visible to all other nodes?
10Base-2 / 10Base-5
all other standards if Hubs are used
What do hubs do?
simply receive and amplify signals and forward to all ports except the one the frame was received from
What is the advantage of a switch?
has switching table to decide to what port forward the packet to …
(selective compared to hub)
Steps switching
receive packet
look at MAC
look up MAC in switching table
if MAC in switching table
forward to associated port
if not
broadcast
What dies a full-switched network allow?
full duplex communication
Can there be a bottleneck in switches?
yes if A and B send to C in full speed
-> might buffer one of the frames…
if buffer full -> drop further frames…
=> no notification
How can data loss due to full switch buffers be detected and handeled?
higher level protocols
-> flow control and congestion contro….
Does a switch interrupt a collision domain?
yes -> buffers message until medium is idle…
What is a segment in the scope of collisinos?
describes a part of a network where a collision can occur
What is micro segmentation?
each node forms its own collison domain
-> two nodes can communicate in full duplex (either RX TX pair or sophisticated modulation scheme)
What are broadcast domains=
include all nodes that can be reached with broadcast address
-> area where layer 2 broadcast is visible
MAC broadcast ff:ff:ff:ff:ff:ff
-> routers break broadcast domains
When is a broadcast domain equal to a collision domain?
if hubs are used
What is another nice effect of switches considering serialization speeds?
allow connecting hosts of different speeds
-> negotiate speed on per-host basis
What is a switchs responsibility considering physical layer protocols?
translate them
Other useful thing of switches considering layer 2 implementatins?
tranlate e.g. WLAN to Ether
Does MAC addressing scale well=
what is the problem of scaling layer 2 addresses?
flat hierarchy
-> no hierarchical structure requiring us to take all existing nodes into consideration…
Why do layer 3 addresses scale better?
hierarchical
-> split up network in smaller chunks through subnetting…
=> withih… -> mac uniquely identify
Different use mac and IP
-> MAC hop to hop
-> IP end to end
Size IP address (IPv4)
32 bit
Can a single interface have more than one IP address?
yes -> n:1 mapping of IP:MAC
What parts were IP adresses made up originally?
network part
identifies network
host part
identifies host in network
Example and explanation CIDR-Notation
192.168.1.1/16
-> 16 bits from left are network, 32-16 are host
What are the first and lats adress in a subnet used for?
first: reserved network address -> identifies network itself
last: broadcast address
Do routers forward broadcast packets?
usually not -> prevent flooding
What field does the IP header have?
Version (0x4 0x6)
Header length
DSCP
ECN
Total length
Identification
Flage
Fragment Offset
TTL
Protocol
Header Checksum
Source and Destinatino IP
What are the Versionsß
0x4; 0x6
How to determine header length?
header length = total length / 32 bit
what is DSCP?
differentiated service code point
first 6 bit -> codepoint
set priority
last 2 bit ->
=> QoS
What is ECN?
explicit congestion notification
-> can be set by intermediate routers to indicate congestion
=> rarely used as TCP implements congestion control
What is identificatoin?
16 bit value -> important when packet fragmented, as same ID means fragments belong together
What are the flags?
frst bit reserved -> 0
second bit -> dont fragment (0:n, 1:y)
third bit: packet is a fragment and more fragments follow
fragment offset:
points the position of the packet in the fragmented whole
-> given in multiples of eight bytes
TTL and use of it
each router forward decreases the TTL by one
-> TTL = 0 drop packet
=> avoids packet-forwardin loops in case of routing loops
header checksum
16 bit checksum (not CRC) protecting only header
Why introduce IPv6?
IPv4 address space exhausted
bit in IPv6 vs IPv4?
IPv6: 128 Bit
IPv4: 32 Bit
structure IPv6 address
eight groups
of four hex digits
seperated by colons
How to abreviate IPv6 addresses?
leav out leading zeroes in groups
concatenate longest group of 0000:0000:0000:…
-> to ::
!! but only one and must be longest!
What is a link-local IPv6 address?
fe80::
-> assigned to every network interface that has IPv6 enabled
=> can only be used for communicatoin in LAN -> routers must not forward if link lokal is source or dest
=> only valid in subnet the host is attached to
What is the reserved address range for multicast?
ff00::/8
How is a link local assigned?
SLAAC -> stateless address autoconfiguration
Fields of IPv6 header
Version 4 bit
Traffic Class 8 bit
Flow Label 20 bit
Payload Length 16 bit (includes extension header -> seen as payload)
Next Header 8 bit selector identifying header -> same values as IPv4 protocol field
Hop Limit 8 bit TTL equivalent
Source Address
Destination Address
(extension header)
What are extension headers?
located between IP and upper layer headers
-> can have 0, 1 or more extension headers
=> next header chain…
What is ARP?
Address Resolution Protocol
-> host: i have IP what is the corresponding MAC?
=> usually only IP is known…
Is arp a network layer protocol?
no!!
=> offer service for translation between physical and logical address
What types of messages does arp have?
request
replies
How are ARP requests built?
MAC header with broadcast destination
========
ARP header -> type ethernet (0x001)
-> protocol 0x0800 IP
Hardware Size, Proto Size,
Opcode 0x0001 requestL 0x0002 reply
==========
Sender MAC
Sender IP
Target MAC (00:00:00:00:00:00)
Target IP
How are ARP replies built?
Dest MAC -> sender from request
Src MAC -> own MAC
Type 0x0806
======
Type ethernet, proto, hwsize, protosize
opcode reply 0x0002
sender MAC
sender IP
target MAC
target IP
-> sender own target receiver (the one who did the request)
How does a node handle an ARP request=
compares IP contained with own IP
-> no match => ignore
-> match => reply
Is ARP a layer 2 protocol?
yes -> only works on layer 2; offers service to layer 3
What is NDP?
Neighbor Discovery Protocol
-> IPv6 equivalent to ARP
Does NDP have more fuinctionality than ARP?
yes!
-> check wether SLAAC assigned link local addresses are unique
find available neighbors or routers
What type of messages does NDP have?
router solicitation (type 133)
router advertisement (type 134)
neighbor solicitation (type 135)
neighbor advertisement (type 136)
redirect (type 137)
What is ICMP?
inernet control message protocol
-> used for error signaling and management
What is ICMPv6?
ICMP for IPv6
What header does ICMP have?
ICMP is encapsulated into IP header
Name two common applications of ICMP
ping -> echo reply
traceroute (uses TTL incrementing by 1 until target reached -> node that discards sends ICMP time exceeded…)
ICMP format
8 bit type
8 bit code
16 bit checksum
32 bit data (optional)
What ICMP code exist?
type 0 echo reply:
echo reply
type 3 destination unreachable:
destination network unreachable
destination host unreachable
destination protocol unreachable
destination port unreachable
fragmentation required and DF flag set
Destination network unknown
destination host unknown
type 5 redirect message:
redirect datagram from the network
redirect datafram from the host
type 8 echo request(ping):
echo request
type 11 timeexceeded:
TTL expired in transit
fragment reassembly time exceeded
What two common transport layer protocols are used with IP?
TCP
UDP
TCP tradeoffß
reliable data transfer at cost of overhead and complexity
UDP tradeoff?
minimalistic, low as possible overhead
unreliable, no sequencing (order of arrival), no flow and congestion control
What kind of service does IP offer?
connectionless, packet oriented service
-> purpose is uniqely identify sender and reveicer of messages
Has IP any guarantees?
no acknowledgement of
arrival
receipt
loss
How does TCP allow for reliable data transfer?
establishes logical connection
between sender and receiver
befor data transfer starts
=> connection oriented vs the connectionless in IP
How does TCP roughly work?
three way handshake (syn, syn ack; Ack)
incrementing seq number for sender and receiver (different one)
-> acknowledges always the next one -> kind of okay you can send seq xy…
How can TCP recognize the loss of a segment?
missing sequence number…
How can TCP control the data rate of the sender?
receiver window
-> satates max number of bytes sender is allowed to transmit before receiving an ack
How does TCP perform congestion control?
sliding windows
How are connections uniquely identified in L4 protocols?
IP-5 Tuple
Why is the unique identificaiton using IP-5 Tuple important?
e.g. wb server has to be able to differentiate differnet nodes and also concurrent connections from same node
physical representation of a bit or groups of bits
How to calcualte the data rate based on baud rate?
baud rate times number of bits per symbol which carry informatino (e.g. 4b5b -> 4)
What is the baud rate?
baud rate: number of signal units transferred per second
bit rate: number of information carrying bits transferred per second
How to calculate maximum distance in a collision domain?
minimum frame size * serialization time (bit rate…) (in 100mbits 5.12 micro seconds)
thus, RRT must be smaller than 5.12 micro seconds
in 2/3 of speed of ligth propagatoni
-> 512 meters…
What changes for gigabit ethernet in terms of minimum frane size and collision domain?
minimum frame size still the same
-> but slot size is increased to 512 byte (padded with extesion symbols… -> symbols that cannot occur in the payload)
=> called carrier extension
How does CSMA/CD handle the transport of data?
handle collisions
when divice whats to send data -> checks if so else is sending alreead
-> if so : waiting
when collision occurs -> waits for a time determined by random choice from backoff interval and then tries again
What is CRC in layer 2 used for?
detec tthat received frame is (probably) correct
Do hubs solely operate on the physical layer?
yes
-> only repeat incoming signals…
What does a swith do for an incoming frame?
reads dest MAC address and performs lookup to determine outgoing port
does not touch source and dest MAC because fully transparent to nodes
What is new in IPv6?
better support form mobile nodes with the binding update
supports resource reservation (QoS) based on flow labels and traffic class
standard header got shortened regarding the amount of different fields (faster processin in routers possible)
new address calss: anycast (to one member of a group)
NDP for configuration issues
suppport for authentication and data integrity
Can extension headres (IPv6) occur more than once in a packet?
no -> only the destination optinos header might occur twice
How to indicate if there is an option header in an IPv6 packet
each header has next header field that indicates, wether a header is following…
Why is a host that just changed its MAC on the local network not rachable anymore?
as the ARP cache still holds the old MAC for the respecitve IP
-> tries to reach old MAC…
How is neighobor discovery done in terms of IP address?
ff02::1::ff:24 bit interface ID -> which is a solicited node multicast address…
What is the NDP protofol flow?
request / response
NS -> What is the MAC of 2001:DB8::2?
NA -> MAC of 2001:DB8::2 is MAC xy…
Last changed2 years ago