-
Notifications
You must be signed in to change notification settings - Fork 0
/
Lecture35.sql
86 lines (61 loc) · 2.12 KB
/
Lecture35.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Lecture 35
# Distributed Computing
"""
Multiple programs running on multiple computers that together
coordinate to perform some task.
"""
# Network Messages
"""
Computers communicate via messages: sequences of bytes transmitted
over a network.
Messages can serve many purposes:
Send data to another computersRequest data from another computer
Instruct a program to call a function on some arguments
Transfer a program to be executed by another computer.
"""
"""
Messages conform to a message protocol adopted by both the sender
and the receiver
"""
# Internet Protocol
"""
The Internet Protocol (IP) specifies how to transfer packets of data
among networks.
Networks are inherently unrelialbe at any point
The structure of a network is dynamic, not static
No system exists to monitor or track communications
"""
# Transmission Control Protocol
"""
Ordered, reliable transmission of arbitrary byte streams
Implemented using the IP. Every TCP connection involves sending IP
packets
Each packet in a TCP session has a sequence order
* Receiver can correctly order packets
* Receiver can ignore duplicate packets
"""
# TCP Handshakes
"""
All TCP connections begin with a sequence of messages called a 'handshake'
which verifies that communication is possible
Handshake Goals:
Computer A knows it can send data to and receive data from Computer B
Computer B knows it can send data to and receive data from Computer A
Lots of separate connections can exist without any confusion
The number of required messages is minimized
Communication Rules
Computer A can send an initial messsage to Computer B request a new connection
Computer B can respond to A and vice versa
"""
# Client/Server Architecture
"""
In WWW, Web browser and Web server talk to each other.
A web browser is an interpreter for a bunch of different programming languages
"""
# Peer-to-peer architecture
"""
Skype is a Voice Over IP (VOIP) system that uses a hybrid peer-to-peer architecture
Login and contacts are handled via a centralized server
Conversations between two computers that cannot send messages
to each other can send to a third party computer, a supernode.
"""