TCP/IP Layered Model Flashcards

1
Q

Layers

A

+ 5: Application Layer + 4: Transport Layer + 3: Network Layer + 2: Data Link Layer + 1: Physical Layer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Layer 1 Encoding Schemes

A

Manchester (clock XOR data = code) 8b/10b -> Block encoding. 80% efficient 64b/66b -> 10 Gigabit Ethernet. 97% efficient.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Layer 1: Shannon’s theorem

A

Taking into account signal to noise ratio: Max Data rate = Hlog2 where H = bandwidth. S = Signal Power. N = Noise power.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Layer 2:

A

Link Layer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Layer 2 Functions:

A

Receive datagrams from Network Layer Transmission of frames over physical media. Synchronisation Detection of Transmission errors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Data Link Layer

A

Transforms raw transmission facility into a line ‘free of errors’ to the network layer. Lets sender break transmission into frames. May regulate flow of data - Stops slow receiver being overwhelmed by fast sender.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Link Layer Acknowledgements

A

Three models for acknowledging: + Connectionless (no ack’s) -> Low error rate networks eg. Ethernet + Acknowledge, connectionless service. -> e.g. 802.11 + Acknowledged connection-oriented services -> For long, unreliable links e.g. satellite.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Handling Acknowledgements & Errors using Automatic Repeat and reQuest (ARQ).

A

+ Stop and Wait. Send frame, wait for ACK. Send next frame. Fails error check if no ACK. + Improved by pipelining. Send multiple frames before receiving ACK. 1. Go-back-N ARQ. Re-Send window of transmitted frames. 2. Selective-Reject ARQ: Transmit only lost frames. Difficult to implement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Framing

A

Each sequence of bits needs to be framed. Use channel bandwidth to indicate start and end of frame. + Use FLAG to mark start and end: If FLAG - Use ESC byte When received: Strip first ESC byte. If ESC occurs in data -> ESC it. Used by Point-to-Point protocol (PPP)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Detecting Errors

A

Parity Bit - Simplest -> Not efficient. Cyclic Redundancy Check (CRC) - Used by Ethernet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Ethernet.

A

Originally shared media. Later became switched to handle media contention. No contention if fully duplex

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

CSMA/CD

A

Carrier Sense Multiple Access with Collision Detection. Detects collisions in Ethernet. +Sender listens to channel to see if it is busy. If so, wait. + When the channel is free, start talking. Listen whilst sending. + Stop if collision occurs. +Back off before retransmitting after time delay t (where t is increasing time value)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Ethernet Frame

A

+48 bit source and destination address. + Preamble: 7 bytes plus 1 byte SFD to sync Tx and Rx. +Min Data Size: 46 bytes -> To detect collisions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Ethernet Networks: Link layer elements

A

+ Logical Link Control (LLC): Provides interface to Layer 3. Supports error detection, ARQ pipelining. May use ACKs. + Medium Access Control protocol (MAC): Controls accessto broadcast media. Handles multiple host access to same collision domain.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

MAC Addresses.

A

Need to be unique. 24bit allocated to vendor. 24bit allocated by vendor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Ethernet Reliability

A

Uses CRC checksum to detect errors. On error, bad frame is dropped. Recovery handled by higher layer. Wired Ethernet is reliable.

17
Q

Address Resolution Protocol (ARP)

A

Determines receiving hosts MAC address. Uses link layer broadcast message. Seen by all hosts in same layer network..

18
Q

ARP disadvantages:

A

+ Open to spoofing. + Host can change MAC address. + Sleeping nodes + Change of IP or MAC address. + ARP probe to detect IP clashes.

19
Q

Data link network classes:

A

Broadcast: + Multiple hosts in one Layer 2 broadcast domain. Hosts in same broadcast domain fall into same LAN. + Layer 2 broadcast domain controls where. Point to Point: + Typically router to router.

20
Q

Ethernet Switching.

A

+ Now 1Gbit/s switches + One switch port connects hosts + Run Cat5 1GBit/s for 100m

21
Q

Ethernet Switching: MAC Learning

A

Allows bridge or switch to only forward frames to ports which serve devices they are addressed to. Uses Ethernet (MAC) table per port. Observes incoming source MAC address. Then forward frames for that address to that port and that port only. Purge MAC tables periodically

22
Q

Ethernet Switching: Spanning Tree

A

Let’s you create physical loops. Refers to bridges (switched) Algorithm elects root bridge Determines lowest cost paths to root. Enables root ports on each switch Other ports with a path to root are blocked. Alternative paths may be enabled if topology changes.

23
Q

Virtual LANs

A

+ Used to create virtual switched networks. + Ethernet frame may include a VLAN identifier. + Avoids need to physically re-cable a network

24
Q

Layer 3: Network Later

A

+ Receives services from the link layer + Offers services to the transport layer + In TCP/IP model, IP is the network layer.

25
Q

Network Layer Functions

A

+ Internetworking - Internet as network of networks. Layer 2 LANS at the the edges of each networks, served by routers. + Transmitting: Packetising -> Processing and Routing IP Datagrams -> Fragmenting + Receiving: Error Checking and Reassembly