-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
# 第二章 应用层 | ||
|
||
## 2.1 应用层协议原理 | ||
- **2.1.1 网络应用程序体系结构:** 由程序研发者设计,规定了如何在各种端系统上组织应用程序。 | ||
- **客户-服务器体系结构:** 有一个总是打开的主机,称为服务器,以及一个或多个客户端,这些客户端通过服务器的IP地址发送请求,服务器响应请求。客户之间不能直接通信。 | ||
- **P2P体系结构:** 对等连接,没有固定的客户端和服务器。应用程序在间断连接的主机对之间直接通信。 | ||
- **2.1.2 进程通信:** 在两个不同端系统上的进程,通过跨越计算机网络交换报文而通信。在同一个端系统上的多个进程通过操作系统的进程通信机制相互通信。 | ||
- **客户端和服务器进程:** 在每对通信通信进程中,通常将发起通信的进程标识为客户,在会话开始等待联系的进程标识为服务器 | ||
- **进程与计算机网络之间的接口:** 进程通过套接字接口向网络发送报文,套接字是同一台主机内应用层与运输层之间的接口。 | ||
- **进程寻址:** 为了标识一个进程,需要两个信息:主机的IP地址和应用的端口号。 | ||
- **2.1.3 可供应用程序使用的运输服务** | ||
- **可靠的数据传输:** 一个协议提供了可靠的数据传输服务,需确保应用程序的一端发送的数据正确,完全的交付给应用程序的另一端。 | ||
- **吞吐量:** 带宽敏感的应用具有特定的吞吐量要求,需要运输协议能够确保可用吞吐量总是至少为r比特/秒。 | ||
- **定时:** 运输层协议能够提供定时保证,如发送方注入进套接字的每个比特到达接收方的套接字不迟于100ms。 |