计算机网络与因特网读书笔记(一)

Chapter 26 Client-Server Interaction

Focus on high-level services available on an internet and the application software that provides such services.

 

Protocol software does not have a mechanism analogous to a telephone bell – there is no way for protocol software to inform an application that communication has arrived, and no way for an application to agree to accept arbitrary incoming messages.

 

One application must actively initiate interaction, while the other application passively waits.

The application that actively initiates contact is called a client, while the application that passively waits for contact is called a server.

 

The term “server” refers to a program that waits passively for communication, and not to the computer on which it executes.

 

Information can flow in either or both directions between a client and server.

 

A client or server application interacts directly with a transport-layer protocol to establish communication and to send or receive information.

 

TCP uses 16-bit integer values known as protocol port numbers to identify services, and assigns a unique protocol port number to each services.

 

In fact, the server program is constructed in two parts: one that accepts requests and creates a new thread for the request, and another that consists of the code to handle an individual request.

 

On the server’s computer, TCP uses the combination of source and destination protocol port numbers (as well as client and server IP address) to identify a particular communication.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值