Ethernet (w2-3) Flashcards

1
Q

what are the 7 OSI layers

A

(from top) Application, Presentation, Session, Transport, Network, Link, Physical

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

does an osi layer provide a service for the layer above or below?

A

layer above.

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

why is layering important?

A

for flexibility to modify one layer without affecting the others

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

What does the physical layer transfer?

A

bits across a physical link (ethernet)

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

Link Layer provides which feature? (and example of a link layer)

A

Addressing, for example, MAC addresses (eg Ethernet, Wi-Fi or 4g)

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

Network Layer provides which service?

A

Routing services, transfers packets across multiple links

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

explain the Transport Layer (and example)

A

transfers segments end to end from a process in one machine to a process in another (UDP or TCP)

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

Explain the Session Layer?

A

It allows information of different streams, perhaps originating from different sources, to be properly combined or synchronized.

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

explain Presentation Layer

A

Byte order, encoding of numbers, character codes and structures

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

Application layer incorporates which two layers?

A

Session and Presentation

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

Explain encapsulation in OSI

A

application data is encapsulated insude of packets with headers

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

CSMA/CD

A

Used in half duplex. Carrier Sense (don’t speak over top of broadcast) Multiple Access Collision Detection (if detected, back off then begin transmitting at random times)

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

Half vs Full Duplex, vs Simplex

A

Simplex: station can only either transmit or receive
Half duplex: Station can transmit and receive, but not at the same time
Full Duplex: Station can transmit and receive at the same time.

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

Catagory 5 cable vs Coaxial Cables

A

Coax is heavy and expensive. Also only half duplex where catagory 5 is full duplex

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

Difference between hub and switch

A

hub broadcasts information to all ports, switch learns which nodes transmit through which port, and sends out data only to the learned ports

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

What is one way computers can achieve some sort of timing immunity?

A

computers restart their timers every character, stops two timers drifting apart.

17
Q

what is the clock rate of manchester encoding

A

twice the data rate, (slow)

18
Q

what is the point of a crossover cable?

A

Crossover cables allow output of one device to be the input of the connect device. used when connecting two computers directly, or to link switches and hubs together.

19
Q

how does 4b5b help timing recovery?

A

by not allowing more than 3 zero’s in a row, ensuring at least two transitions, which helps the receiver in clock recover.

20
Q

how does 4b5b help recognize error/corruption in transmition?

A

4b5b output has 32 different patterns avaialbale (5^2), but only uses 16 of them. if the output is not one of those 16 options, you know you have a transmit/recieve error.

21
Q

multicast vs broadcast vs unicast

A

Broadcast addresses all machines on the network, where multicast addresses all machines who want to listen. unicast is the usual case where only the addressee uses the message.

22
Q

what does a network interface card receive by default, in terms of multicast vs broadcast vs unicast

A

all messages for its own unicast address, and all messages for broadcast.

23
Q

CSMA/CD vs CSMA/CA

A

CD is collision detection and CA is collision avoidance. CA is used in wireless, where sender cannot detect incoming data while sending. CA involves listening if the medium is being used before sending

24
Q

What is twisted pair and why is it used.

A

It is a type of wiring in which two conductors are twisted together, reducing electromagnetic radiation from the pair and improves rejection of external interference.

25
Q

In Ethernet Frames, the data is encapsulated with ethernet headers and trailers. What is in these?

A

Header: Dest. MAC address, Src MAC address and Ether type
Trailer: Cyclic Redundancy Check 4 bytes, or 32 bits

26
Q

what is the EtherType?

A

It is the protocol type, allowing multiple types of protocols to be carried (IPv4, IPv6)

27
Q

What is CRC32

A

Fairly strong error detection, used to detect errors in received messages.

28
Q

Before transmission of a frame, ethernet sends out a preamble for the receiver to synchronise its clock. WHat is contained in those 8 bytes

A

7 bytes of 10101010

final byte of 10101011

29
Q

How long must the delay be (in bytes) after transmitting a frame, before the node can send again?

A

12 byte delay

30
Q

woudl a software writer use ethernet addresses?

A

Mac addresses (Ethernet address) are handled by the operating systems, whereas the software writer would use IP addresses.

31
Q

which protocol would an operating system use to find out the destination mac address, when sending an IP packet?

A

the ARP, or address resolution protocol

32
Q

How does ARP work.

A

A wants to talk to C, but needs to fill ethernet feilds.
A broadcasts a packet saying who has ?
C replies is at (C’s MAC address)

33
Q

does a computer send out an arp everytime it wants to send something?

A

no, it holds a cache of recent replies to arp requests. periodically, they expire

34
Q

key difference in NPD vs ARP

A

ARP utilizes broadcast. every host recieves the ARP request.
NDP uses multicast. all hosts receive frame, but only hosts configured to process frames with the specific multicast address will pass the frame on to the operating system.
only hosts with the same last 24 bits in IPv6 address, whuch is usually only in one host.

35
Q

key difference in NPD vs ARP

A

ARP utilizes broadcast. every host recieves the ARP request.
NDP uses multicast. all hosts receive frame, but only hosts configured to process frames with the specific multicast address will pass the frame on to the operating system.
only hosts with the same last 24 bits in IPv6 address, whuch is usually only in one host.