基础计算机网络——应用层(Application Layer)笔记

这篇笔记详细介绍了计算机网络应用层的基础知识,包括客户端-服务器(CS)与点对点(P2P)架构的对比,HTTP的POST和GET传参方法,Cookie与Web缓存的工作原理,FTP文件传输协议的双连接特性,DNS域名服务器的作用,以及电子邮件系统的组成和工作流程。此外,还讨论了去中心化设计的优势。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

【CS架构与P2P架构】

CS:

1.      Always-on server;

2.      Permanent IP address;

3.      Server farms for scaling;

P2P:

1.      No always-on server;

2.      Arbitrary end system;

3.      Hard to manage;

4.      Easy to expand;

5.      Communicate directly;

6.      Peers are intermittentlyconnected and change IP addresses;

 

【Post传参方法与URL(Get)传参方法】

Post:

  Input is uploaded to server in entity body;

URL:

  Input is uploaded in the URL filed of request line

 

【Cookie与Web Cache】

Cookie components:

1.      Cookie header lines in responseand request message;

2.      Cookie file is kept on user’shost; ( 存储在client上与3对应的文件)

3.      Back-end database at the website; (存储在server上与2对应的文件)

Web cache:

1.      Goal: satisfy client requestwithout involving original server;

2.      Approach: use proxy server;

3.      Effect: reduce response timeand reduce traffic;

 

【FTP文件传输协议】

Two connections: control connection anddata connection

 

【DNS域名服务器】

1.      Domain Name Server: translatehostname to IP address

2.      Protocol: UDP

3.      Functionality: host aliasing,mail server aliasing and load distribution;

 

【Electronic Mail电子邮件】

1.      3 components: user agents, mailservers, SMTP(between mail servers to send mail message)

2.      Sequence:

Message from A->user agentA->mail server A->mail server B->user agent B->message to B

3.      Mail access protocols: Pop,IMAP, HTTP, which are used to fetch mails from server to user agent.

 

【Decentralized Design去中心化设计】

   Advantages:

1.      Avoid single point of failure;

2.      Reduce traffic volume;

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值