Week 6 Flashcards

(11 cards)

1
Q

Whats the purpose, process, goals, and features of GOSSIPING?

A

purpose - disseminate info accross network
process - nodes share info with a few peers, peers spread it
goals - ensure nodes receive the same info eventually, effeciently
features - fast, scalable, no guarantee of agreement (conflicting info is possible)

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

Whats the difference between gossiping and consensus?

A

gopssing - fast, scalable, nodes share data untill all receive it
consensus - slow, resource-intensive, all nodes musit agree to validity and order of data

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

when to flood vs gossip?

A

flood - need quick, reliable info to all nodes in network

gossip - fast, scalable communication without need for immediate validation or agreement

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

How should a blockchain react to a 51% attack, sybil attack, ddos?

A

51 - implement stronger proof of sake, increase cost of attack

sybil - use reputation systems, peer verification to limit malicious nodes

ddos - use rate limiting, distributed nodes, redundancy to mitigate overload

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

why should mining difficulty be recalculated periodically?

A
  • ensures blocks are mined at a consistent rate to balance performance
  • good time ensures blocks process transactions effeciently, but not quick enough to be vulnerable to attacks/forks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

is a blockchain secure?

A

yes, secure because each block has a unique hash and references previous hash, creating an immutable record. also consensus makes participants agree on a state

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

is the DHT in bittorrent similar to a fancy ring solution?

A

yes, uses dist. network where peers are organized in a ring-like structure to share files, tracker (known-host) allows users to connect to network, DHT allows peers to locate other sharing same file

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

how does a query work in a ring based system?

A

when query comes in, passed around the ring and each node checks if it has the relevant data, continues on until found

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

what could the message be in a ring-based query system? what how does it get back?

A

message typically contains the query itself, target data/result, and metadata like an identifier or timestamp. once correct node is located, it sends response back through same path/reverse route in the ring

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

Whats the cost if a node goes offline in a DHT?

A

if node goes offline, other nodes may lose access to the data that was stored by that node, so the system would need to reassign that data to another node. also queries would need ot be rerouted, so DHTs usually have replication/backup strategies to maintain performane

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