当前位置:网站首页>1. Internet foundation
1. Internet foundation
2022-07-19 01:22:00 【Xiao Li, a coal digger】
Catalog
application layer (HTTP agreement )
More knowledge , Look at this.
The Internet foundation 1
Internet Protocol
In order to enable network devices to communicate correctly , Use language that can be understood by each other , We call it an agreement
The Internet uses --TCP/IP agreement Protocol group

The link layer
The main function is to realize the The physical connection , for instance , What we use WIFI It is a single kind of link layer protocol
ESP8266 utilize WIFI When networking Three Working mode
1. Access point mode

ESP8266 Launch to the outside WiFi The signal Be able to build a WIFI The Internet
2. Wireless terminal mode

By connecting WiFi The router realizes the communication between the Internet
3. Mixed mode

The network layer
IP Address
: Usually we say IP Most addresses refer to those connected to the Internet IP Address , We know that every computer connected to the Internet will be assigned a IP,IP The address is provided by the network provider , You can also know the general direction according to its address ,

Key studies IPV4

In the picture 3 All devices are connected to wifi When it comes to routers ,WIFI The router will allocate Independent Of IP Address

For example, when the mobile phone sends data packets , Must indicate what happened IP Address , Can be sent to

This is on my own computer At present LAN Upper IP Address ( stay win+r Output cmd, play ipconfig Inquire about )

gateway
wifi The router is in this LAN gateway
The above IP The addresses are all in the LAN IP Address ,
When in China Unicom server or other time , Meeting Assign other Of IP Address

When the computer accesses the website server , The process of sending packets
Subnet mask

The Internet foundation 2
TCP agreement
characteristic : steady
· Guarantee all Data can be received by the receiving end ( Not at all 100% Can be accepted , Just want to be more stable )
· The data transmission sequence will not be disturbed
· If the transmission data is damaged, resend the damaged data
shortcoming : Slow speed
Application field
· File transfer
.....
UDP agreement
characteristic : fast
·UDP Than TCP Fast
· It is not guaranteed that all data can be received by the receiving end ( It's all relative )
· Once the data is damaged , Will be directly abandoned
· If there is data corruption, it will not resend the damaged data

application layer (HTTP agreement )

give an example :
Enter web address in browser , Press enter , The browser will convert it into a request Data packets , Send to the Internet
Then send it to the website server
After the website server receives it , Generate a response ( It is also a packet ), Send it to my computer through the Internet
Finally, the corresponding interface is displayed on the browser of the computer
HTTP Request example

If sending a message GET become POST

HTTP Response example


or 
When we use the development board , It's not the computer that sends the request and receives the response , Instead, use the development board directly
More knowledge , Look at this.
边栏推荐
猜你喜欢
随机推荐
JVM内存模型
Initial understanding of functions - Part 1
正则,JWT token,容联云,celery,频道组,SKU,SPU,request对象的属性和方法的补充知识
Day07-ORM表关系及操作
Pytorch手动实现softmax回归
kq-权限控制
Oracle database parameter change
json相关图形
C 1 to 100 sum 9*9 multiplication table grade ABCDE
毕设之旅
[MD5] quickly realize MD5 encryption and decryption (salt value)
flask报错No matching distribution found for flask._compat的一种解决方法
关于自定义监听器 onApplicationEvent方法被执行多次的问题
2021-3-23-美团-优先队列
2022.7.1
數學03-導數與微分(待補)
[singleton mode] hungry, lazy, double lock security verification
Matlab drawing heart
Oracle Database 12c 参数文件(Spfile 和 Pfile)
Pytorch简单使用MINIST数据集

![The eye of Depth III - - (3)] Mathematics: Matrix eigenvalue and eigenvector 1](/img/81/7ad44da70eaf1d92b126c567766577.png)








