728x90
Application architectures
- peer-to-peer(P2P)
- client-server
Client-server architecture
- server
- always-on host
- permanent IP address
- data centers for scaling
- clients
- communicate with server
- do not communicate directly with each other
- may be intermittently connected
- may have dynamic IP address
P2P architecture
- no always-on server
- arbitrary end systems directly communicate
- peers request service from other peers, provide service in return to other peers
- self scalability - new peers bring new service capacity, as well as new service demands
- peers are intermittently connected and change IP address
- complex management
Processes communicating
- process : program running within a host
- within same host
- different hosts by messages
- server-client
- client process : initiates communication
- server process: waits to be contacted
- P2P
- can be client or server each peers
Sockets
- process sends/receives msg to/from its socket
- analogous to door
![[컴퓨터네트워크]4. Application Layer - Processes communicating [컴퓨터네트워크]4. Application Layer - Processes communicating](https://blog.kakaocdn.net/dn/BLilE/btr6eUMYtHU/hOS1uyXA8myScJQGdKKrj1/img.png)
Addressing processes
- process must have identifier
- identifier includes both IP address and port numbers(host device has unique 32bit IP address)
- well known port
- HTTP server: 80
- mail server: 25
what transport service does an app need?
- data integrity
- timing : require low delay to be effective
- throughput : require minimum amount of throughput to be effective
![[컴퓨터네트워크]4. Application Layer - what transport service does an app need? [컴퓨터네트워크]4. Application Layer - what transport service does an app need?](https://blog.kakaocdn.net/dn/cWaKo7/btr6AgpUZdF/fX6N7A8TIJNkrmcGbDVaPK/img.png)
Internet transport protocols services
![[컴퓨터네트워크]4. Application Layer - Internet transport protocols services [컴퓨터네트워크]4. Application Layer - Internet transport protocols services](https://blog.kakaocdn.net/dn/p2SlJ/btr6rx6QVUI/Y6Zmej0RwtnhoqFop4GlS1/img.png)
- transport 계층에서 패킷을 갖고 있으면 minimum throughput 보장 못함
Internet apps : application, layer protocol, transport protocol
![[컴퓨터네트워크]4. Application Layer - Internet apps : application, layer protocol, transport protocol [컴퓨터네트워크]4. Application Layer - Internet apps : application, layer protocol, transport protocol](https://blog.kakaocdn.net/dn/bKGEfi/btr6Cfcsg4Y/4nbxkQprFZmqGqtKe9jSCk/img.png)
App-layer protocol defines
![[컴퓨터네트워크]4. Application Layer - App-layer protocol defines [컴퓨터네트워크]4. Application Layer - App-layer protocol defines](https://blog.kakaocdn.net/dn/E5GZs/btr6ryxVYdY/y6uTAQ7vVYkAaMXIEsaKX1/img.png)
Web and HTTP
![[컴퓨터네트워크]4. Application Layer - Web and HTTP [컴퓨터네트워크]4. Application Layer - Web and HTTP](https://blog.kakaocdn.net/dn/eyNfC5/btr6EUZXsyv/hLfudZamcU9uDEuFpua951/img.png)
![[컴퓨터네트워크]4. Application Layer - Web and HTTP [컴퓨터네트워크]4. Application Layer - Web and HTTP](https://blog.kakaocdn.net/dn/JmgwM/btr6tWZDHZ8/RTGGaMUtnrrOZLyqifCwdK/img.png)
![[컴퓨터네트워크]4. Application Layer - Web and HTTP [컴퓨터네트워크]4. Application Layer - Web and HTTP](https://blog.kakaocdn.net/dn/VUq0n/btr6EUMpytJ/yl4zcvck0Aj79J15Au1bb1/img.png)
![[컴퓨터네트워크]4. Application Layer - Web and HTTP [컴퓨터네트워크]4. Application Layer - Web and HTTP](https://blog.kakaocdn.net/dn/1qpoK/btr6rwNJHXU/GtxP1AiVycx8HJIWblyEs0/img.png)
![[컴퓨터네트워크]4. Application Layer - Web and HTTP [컴퓨터네트워크]4. Application Layer - Web and HTTP](https://blog.kakaocdn.net/dn/cQljL7/btr6srZE183/ek7F2g1WXVKiZo5KKnMnpk/img.png)
![[컴퓨터네트워크]4. Application Layer - Web and HTTP [컴퓨터네트워크]4. Application Layer - Web and HTTP](https://blog.kakaocdn.net/dn/cF0cNP/btr6tYJVzCF/DrXtEN7oCWsFuPrEsu3YN0/img.png)
728x90
'프로그래밍공부(Programming Study) > 네트워크(Network)' 카테고리의 다른 글
[컴퓨터네트워크]6. Cookie, web cache (0) | 2023.03.28 |
---|---|
[컴퓨터네트워크]5. HTTP (0) | 2023.03.28 |
[컴퓨터네트워크]3. delay, loss, throughput, protocol (0) | 2023.03.25 |
[컴퓨터네트워크]2. Network edge, Network core (0) | 2023.03.25 |
[컴퓨터네트워크]1.What is Internet? (2) | 2023.03.25 |
댓글