mid 1 Flashcards

(48 cards)

1
Q

circuit switched (pros, cons, ex)

A
  • dedicated comunication path

pros:
- no path sharing
- ensures reliable connection

cons:
- inefficient for short data bursts
- lots of idle time

ex: landline

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

packet switched (pros, cons, ex)

A

msg is broken into packets
packets travel indep accross network

pros:
- efficient use of bandwidth
- more reliable: can choose a diff path
- supports multiple users at once

ex: Internet

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

FDM (what, cons, ex)

A
  • multiplexing strategy
  • mult. signals can be sent at once using diff frequencies

cons:
- can have interference
- less efficient if a frequency is not used

ex: radio

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

TDM (what, cons, ex)

A
  • multiplexing strategy
  • divid time slots for each user
  • trans 1 signal at a time

pros:
- efficient, unused time slots are reasigned
- less interference

ex: ethernet

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

statistical multiplexing

A
  • in a switch
  • packets buffered until sent
  • diff techniques for queueing.
  • if packet arrives and buff is full, packet is dropped
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is encapsulation

A
  • when a datagram (packet, frame…) is passed to the next layer it get “encapsulated” by headers and footers by that next layer.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is bandwidth

A

max amount of data that can be transmitted per second

measured in bps

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

what is throughput

A

actual amount of data that can be transmitted per second

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

what is latency

A

the total time it takes for a message to completely arrive at the destination

latency = Pd + Td + Qd + (Procc d)

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

transmission delay

A

how long it takes for host to push entire message onto link

data size / bandwidth

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

propagation delay

A

amount of time for 1 bit to travel from one end of link to other end of link.

Pd = distance / signal speed

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

RTT

A

round trip delay
time for a bit to be sent + time for ack to be received.

RTT = 2*Pd

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

Services of the data link layer

A
  • encoding
  • framing
  • reliable delivery between adjacent nodes
  • flow control
  • error detection
  • error correction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what is encoding

A

converting bits to signals to be sent over a link (high / low)

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

NRZ pros, cons

A

1 =>high
0 => low

cons:
- long consecutive 1 or 0 cause baseline to wonder and clock sync problems

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

NRZI pros, cons

A

1 => transition
0 =>maintain

pros:
- solves long consecutive 1s

cons:
- does not solve 0s

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

manchester encoding pros, cons

A

1 = -|_
0 = _|-

pros:
- solves 1s and 0s

cons:
- only 50% efficient since it needs to at most 50% more transitions than bits

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

4B / 5B pros

A

-insert extra bit to break 1s and 0s
- use table to convert 4bits to 5bit codes
- then encode with NRZI

pros:
- 4B 5B solves 0s then NRZI solves 1s
- 80% efficinet

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

why framing (objective, challenges)

A
  • obj: need to transit a stream of bits
  • chal: how to mark start and end of a stream?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

sentinel framing cons

A
  • mark end of fram with a special bit pattern

con:
- the bit pattern might exist in data

21
Q

length-based framing

A
  • frame length is a field in the header
  • end of frame calculated from length sent at start of frame

cons:
- length field could be corupted

22
Q

clock based framing

A
  • continous stream of fixed length frames
  • clocks must be synchronized
23
Q

error detection: what is it

A

add edc to determine if errors are present in data

24
Q

2D parity

A
  • split data into 7 bit blocks
  • add 1 parity bit to end of blocks
  • add 1 or 0 and make sure resulting 8 bits have even # of 1s
  • do same for columns
  • can detect 1, 2, or 3 bit errors
  • receiver can correct 1-bit errors without retransmission.
25
internet checksum
add 16bit words together. the final carry is added to sum again. then do ones complement on the sum. pros: - less redundent bits - easy to impliment cons: - not robust
26
CRC
pros: - good protection - minimal redundent bits you know how it goes...
27
what is multi media access
when there are multiple senders on the same media (link)
28
Ethernet frame
preamble, dest addr, src addr, type, body, crc - body: min 46B max 1500B - min is to detect errors
29
when does reciver A accept a frame
- addressed to A - multicasted - broadcasted - if A is in promiscous mode
30
CSMA/CD (what, the process)
- MAC alg for ethernet - fair access to shared medium - if idle: send imidiatly, wait 9.6mu s send again - if busy: wait until idle - send - if collision: stop sending, send 32bit jam signal + 64bit preamble at failure N: 1) pick random # out of {0, ..., 2^(N-1)} = k 2) wait for k * 51.2 mu s
31
CSMA/CA
- MAC alg for wireless - need to request to send, clear to send - since cant transimit and recive at same time - 2 nodes could send to 3rd node at once.
32
what is stop and wait
- SWS = 1 RWS = 1 - sender sends a frame, waits for ack then sends next frame. - if TO then send frame again cons: - reciver might get duplicate copy if ack lost or delayed - limits throughput as pipe isnt full sol: - use seq # to determine if its 2nd copy
33
GBN
- sliding window - SWS = N - RWS = 1 - sender can send all frames in window. - when reciver gets expected frame it slides to next. - if frame is lost then sender resends all frames up to N in window.
34
selective repeat
- SWS = RWS - if frame is lost than a NAK is sent - only lost frame is resent.
35
constraints on SWS
= delay * bandwidth
36
constraint on maxSeqNum
GBN: SWS < MaxSeq -1 SR: SWS < (MAXSeq +1) / 2 then log_2(N) for num of bits round up
37
why switching
- forward packets from one node to another - can make large networks - large numebr host adding new hosts doesnt affect performance of old hosts.
38
3 main challenges of switching
- forwarding - contention (who goes first) - routing
39
3 methods of forwarding
- datagram - virtual circuits - source routing
40
datagram forwarding pros cons
use forwarding table to direct packets pros: - packets travel indep - no setup needed cons: - host A does not know if it can deliver to dest - overhead for table
41
virtual circuits
- connection based - setup / teardown of circuit pros: - good for telephony cons: - setup tear down overhead - table storage overhead
42
source routing
- packet header specifies directions cons: - host needs to know topo - large header
43
what is a bridge
- a L3 device - to build extended LAN -
44
what is a learning bridge
- bridge learn routing table entires based on src addr of packets - challenge: inf loops
45
spanning tree alg
you know the drill
46
What is IP, why
- network protocol L3 - to determine what network a host belongs to
47
IPv4, model, classes, # nets and hosts of each
- 32bit = 4B - network, subnet, host class A: 0 network = 7bits = 2^7 - 2 networks host = 24 bits = 2^24 -2 hosts 0 to 127 class B: 10 network = 14bits = 2^14 - 2 networks host = 16 bits = 2^16 -2 hosts 128 to 191 class C: 110 network = 21bits = 2^21 - 2 networks host = 8 bits = 2^8 -2 hosts 192 to 223
48
subnet mask
specifies the network portion of the IP. AND submask with IP and see if it matches the subnet address.