mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 14:54:05 -06:00
vault backup: 2022-10-17 12:28:03
This commit is contained in:
parent
8a5660f455
commit
f8f6368059
@ -4,6 +4,9 @@ aliases:
|
||||
tags:
|
||||
- cosc203
|
||||
- lecture
|
||||
sr-due: 2022-10-20
|
||||
sr-interval: 3
|
||||
sr-ease: 250
|
||||
---
|
||||
|
||||
# Client-server vs peer to peer
|
||||
@ -132,7 +135,43 @@ three components
|
||||
## DNS
|
||||
- ip adresses are hard to remember
|
||||
- need to map betwen host name and ip address
|
||||
-
|
||||
- hierarchical, domain-based naming scheme implemented using a distributed databse system
|
||||
- core internet function, but implemented as an application layer protocol
|
||||
|
||||
- tree structure 
|
||||
- domain name space
|
||||
- each node has a label : the root label is a null string
|
||||
- each node has a domain name: a sequence of labels separated by dots, reading from the node up to the root.
|
||||
- 
|
||||
- name servers
|
||||
- name space is divided into non-ovelapping zones
|
||||
- each zone had name servers to hold information
|
||||
- top level dns servers are responsible for domains such as .com .org .net and country domains
|
||||
- authoritative DNS servers: maintained by organization or service providers
|
||||
- 
|
||||
|
||||
DNS caching
|
||||
- once (any) name server learns mapping, it caches mapping, and immediately returns a cached mapping in response to a query
|
||||
- caching improves response time
|
||||
- cache entries timeout (disappear) after some time (TTL)
|
||||
- top-level domain names typically cached in local name servers
|
||||
- cached entries may be out-of-date
|
||||
- if named host changes IP address, may not be known Internet-wide until all TTLs expire!
|
||||
- best-effort name-to-address translation!
|
||||
|
||||
DNS name resolution: recursive query
|
||||
- e.g., host at cs.otago.ac.nz wants IP address for ai.cs.waikato.ac.nz
|
||||
- 
|
||||
|
||||
|
||||
# Socket programming
|
||||
- socket
|
||||
- software component that has
|
||||
- local/remote socket address: IP + port no.
|
||||
- transport layer protocol: TCP or UDP
|
||||
- socket api
|
||||
- application programming interface usually provided by the operating system
|
||||
- 
|
||||
|
||||

|
||||

|
||||
|
||||
9
content/notes/18-transport-layer.md
Normal file
9
content/notes/18-transport-layer.md
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
title: "18-transport-layer"
|
||||
aliases:
|
||||
tags:
|
||||
- cosc203
|
||||
- lecture
|
||||
---
|
||||
|
||||
#
|
||||
@ -46,7 +46,7 @@ tags:
|
||||
- [15-basic sql]
|
||||
- [16-networks](notes/16-networks)
|
||||
- [17-application layer](notes/17-app-layer)
|
||||
- [18-transport layer]
|
||||
- [18-transport layer](notes/18-transport-layer)
|
||||
- [19-network layer data plane]
|
||||
- [20-network layer control plane]
|
||||
- [21-data link layer and LAN]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user