当前位置:网站首页>Network of test and development - Common Service Protocols
Network of test and development - Common Service Protocols
2022-06-24 10:04:00 【Chenqichan test】
agreement , It's short for network protocol , Network protocol is a set of agreement that both sides of communication computer must comply with . How to establish a connection 、 How to identify each other, etc . Only by following this Agreement , Computers can communicate with each other . The three elements of it are : grammar 、 semantics 、 sequential . (1) grammar : That is, the structure or format of data and control information ; (2) semantics : That is, what kind of control information needs to be sent , What actions to complete and what responses to make ; (3) sequential ( Sync ), That is, a detailed description of the sequence of event implementation .
TCP/IP
TCP/IP Protocol is the protocol used in today's Internet . It's not just about TCP、IP Two parts , But by the FTP、SMTP、TCP、UDP、IP And so on .TCP/IP Of the agreement 4 layer - The network layer , Responsible for creating network connection between hosts , And the completion of IP Addressing and forwarding function of .
DNS
DNS(Domain Name System, The domain name system ) It's a domain name resolution service . It resolves the domain name into IP Address , In order to facilitate the use of easy to remember English letters , To access the Internet . The following example completes a parse , adopt ping domain name , We can get it IP Address .
Local domain name resolution
Except with the help of DNS, When we access internal servers through domain names , You can use local HOSTS File to complete the domain name resolution , Note that this process takes precedence over DNS Of . Windows The next file is C:\WINDOWS\system32\drivers\etc\hosts,Linux Next in /etc/hosts, Here is an example .
DHCP
DHCP(Dynamic Host Configuration Protocol, Dynamic Host Configuration Protocol ) It is used to dynamically allocate available IP Address . stay Windows Next , Use ipconfig command , You can view the assigned IP Address ,Linux Please use the ifconfig Instead of .
Two are shown here IP Address :
- lo0 127.0.0.1 Is the loopback address used for internal communication of this machine . It's the same for every machine 、 Permanent virtual machine local IP Address ;
- en0 192.168.0.100 yes DHCP The server's dynamic allocation for the first Ethernet card IP Address . When the machine is shut down ,DHCP It'll be for the machine ( network card ) Keep this address for a while .
HTTP/HTTPS
HTTP(HyperText Transfer Protocol, Hypertext transfer protocol ) It's the most widely used protocol on the Internet . This article you are reading in your browser , This is the protocol used to transmit .HTTPS On the basis of it , Implemented encryption . HTTP/HTTPS It's a connectionless 、 Stateless application layer protocol . in other words , The browser sends a request to the server through it to get the response , The connection is closed . Between the browser and the server , It uses a method called Session( conversation ) The mechanism of , When the next request comes , The server still knows who the visitor is . Server identification Session Methods , It's usually a request URL or Header A unique identification carried in ( Such as jsessionid、bearer token、cookie) To work . Next, when we introduce interface testing , We'll go further .
WebSocket
WebSocket Establish a persistent connection between the client and the server , Allows the server to actively push data to the client , To achieve real-time two-way data transmission . It solves the problem of using in the past HTTP When the agreement , You can only pull data , Or use HTTP When simulating long connections ,Long Polling The problem of excessive consumption of resources . WebSocket It's the application layer protocol , yes TCP/IP A subset of protocols , It connects through HTTP Agreement complete handshake .
RPC
RPC(Remote Procedure Call Protocol, Remote procedure call protocol ) Most of them are used in the current popular microservice architecture , It is convenient for one computer to call the program on another directly , You don't need to know the underlying network technology / agreement .RPC Can be based on HTTP( application layer ) agreement , You can also directly TCP( Transport layer ) The protocol realizes
边栏推荐
- Literature Research Report
- canvas 绘制图片
- 小程序学习之获取用户信息(getUserProfile and getUserInfo)
- How to manage massive network infrastructure?
- Latex formula and table recognition
- 新手怎么选择投资理财产品的等级?
- Practical analysis: implementation principle of APP scanning code landing (app+ detailed logic on the web side) with source code
- [custom endpoint and implementation principle]
- Cookie encryption 4 RPC method determines cookie encryption
- Tnsnames Ora file configuration
猜你喜欢

Grpc local test joint debugging tool bloomrpc

如何让社交媒体成为跨境电商驱动力?这款独立站工具不能错过!

《MATLAB 神经网络43个案例分析》:第32章 小波神经网络的时间序列预测——短时交通流量预测

如何解决独立站多渠道客户沟通难题?这款跨境电商插件一定要知道!

Ora-28000 error after upgrading Oracle 12C to 19C

二叉樹第一部分

生产者/消费者模型

How to standardize data center infrastructure management process

深度学习论文阅读目标检测篇(七)中英对照版:YOLOv4《Optimal Speed and Accuracy of Object Detection》

415-二叉树(144. 二叉树的前序遍历、145. 二叉树的后序遍历、94. 二叉树的中序遍历)
随机推荐
微信小程序学习之 实现列表渲染和条件渲染.
Practical analysis: implementation principle of APP scanning code landing (app+ detailed logic on the web side) with source code
Recursive traversal of 414 binary tree
Conseils étonnants pour promouvoir les ventes d'entreprise avec le chat en direct
El table Click to add row style
LeetCode: 240. Search 2D matrix II
415-二叉树(144. 二叉树的前序遍历、145. 二叉树的后序遍历、94. 二叉树的中序遍历)
Phpstrom code formatting settings
记录一下MySql update会锁定哪些范围的数据
In depth study paper reading target detection (VII) Chinese English Bilingual Edition: yolov4 optimal speed and accuracy of object detection
Impdp leading schema message ora-31625 exception handling
队列Queue
顶刊TPAMI 2022!基于不同数据模态的行为识别:最新综述
Detailed explanation of ThinkPHP 5.0 Model Association
十大证券公司哪个佣金最低,最安全可靠?有知道的吗
5 minutes, excellent customer service chat handling skills
Tnsnames Ora file configuration
Endgame P.O.O
算法--找到和最大的长度为 K 的子序列(Kotlin)
Observer mode