当前位置:网站首页>Internet Protocol
Internet Protocol
2022-07-07 11:31:00 【Full stack programmer webmaster】
## Internet agreement – Generalization : From top to bottom , The closer you get to the user , The lower it goes, the closer it gets to the hardware – application layer : + Define the data format of the application + [HEAD( Ethernet header ) [HEAD(IP header ) [HEAD(TCP header ) DATA( Application layer packets )]]]
– Transport layer ( Port to port communication ): Define the port number + port : * 0 To 65535(2^16) The integer of * The process uses the number of the network card * adopt IP+mac Determine host , Just determine the host + port ( Socket socket), Communication between programs can be carried out + UDP agreement : * Add a new port dependent protocol to the packet * Data packets [HEAD( send out 、 receive mac) [HEAD( send out 、 receive ip) [HEAD( send out 、 Receive port ) DATA]]] * Simple , Poor reliability , I don't know whether the other party accepts the package + TCP agreement : * With confirmation mechanism UDP agreement * complicated , Difficult to achieve , Consumption of resources “` tcp/ip connect: tcp/ip Three handshakes of Be marked with syn Data packets of ————-> Be marked with syn/ack Data packets of client <————- server Be marked with ack Data packets of ————–> “`
– The network layer ( Host to host communication ): Definition IP “` tcp/ip finish: tcp/ip Four handshakes fin <————- ack client ————-> server fin ————-> ack <————- “`
– The network layer ( Host to host communication ): + IP agreement * ipv4: – 32 Binary bits indicate , It is composed of network part and host part , – Subnet mask : The network part is 1, The host part is 0, Purpose judgment ip The network part of , Such as 255.255.255.0(11111111.11111111.11111111.00000000) – IP Data packets : header Head+ data Data, Put into Ethernet packets Data part [HEAD [HEAD DATA]] – IP Packet delivery : + Not the same network : Can't get mac Address , Send data to gateway , Gateway processing – ARP(Address Resolation Protocol): Address Resolution Protocol , adopt ip analysis mac Address + The same network :mac Address FF:FF:FF:FF:FF:FF:FF, Broadcast data , contrast ip, Does not conform to packet loss
– Link layer : Definition mac + Define package ( frame Frame) * header (Head): Some description items of data package , Sender 、 The receiver 、 data type * data (Data): The specific content of the packet * Data packets :[HEAD DATA] + Define the network card and the unique network card mac Address * Ethernet stipulates that all terminals connected to the network should have network card interfaces , The packet must be from a network card mac Address to another network card interface mac Address * mac The only global ,16 position 16 Bitwise composition , front 6 Manufacturer number , after 6 Network card serial number + Broadcasting sends data * Send data packets to all devices in this network , Compare recipients mac Address , It's not packet loss , Is to accept
– Physical layer : The physical layer + terminal (pc,phone,pad…) The physical connection of ( optical cable , cable , route …), Responsible for delivering 0 and 1 The signal
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/113825.html Link to the original text :https://javaforall.cn
边栏推荐
- 自动化测试框架
- Basic knowledge of process (orphan, zombie process)
- What is cloud computing?
- 互联网协议
- 对比学习之 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
- STM32 entry development uses IIC hardware timing to read and write AT24C08 (EEPROM)
- audit 移植
- 聊聊SOC启动(九) 为uboot 添加新的board
- 【愚公系列】2022年7月 Go教学课程 005-变量
- How to use cherry pick?
猜你喜欢

The database synchronization tool dbsync adds support for mongodb and es

竟然有一半的人不知道 for 与 foreach 的区别???

聊聊SOC启动(七) uboot启动流程三

Electron adding SQLite database

What development models did you know during the interview? Just read this one

對比學習之 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments

The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
![Verilog realizes nixie tube display driver [with source code]](/img/ad/be94912bedc738f4b5f97138db7352.png)
Verilog realizes nixie tube display driver [with source code]

electron添加SQLite数据库

正在運行的Kubernetes集群想要調整Pod的網段地址
随机推荐
R language uses the quantile function to calculate the quantile of the score value (20%, 40%, 60%, 80%), uses the logical operator to encode the corresponding quantile interval (quantile) into the cla
The opacity value becomes 1%
《论文阅读》Neural Approaches to Conversational AI(1)
EasyUI learn to organize notes
Leetcode - interview question 17.24 maximum submatrix
R Language Using Image of magick package Mosaic Function and Image La fonction flatten empile plusieurs images ensemble pour former des couches empilées sur chaque autre
Case study of Jinshan API translation function based on retrofit framework
Poor math students who once dropped out of school won the fields award this year
关于在云服务器上(这里用腾讯云)安装mysql8.0并使本地可以远程连接的方法
There are so many factors that imprison you
简单介绍一下闭包及它的一些应用场景
基于华为云IOT设计智能称重系统(STM32)
关于jmeter中编写shell脚本json的应用
RationalDMIS2022阵列工件测量
Suggestions on one-stop development of testing life
Array object sorting
基于Retrofit框架的金山API翻译功能案例
自动化测试框架
禁锢自己的因素,原来有这么多
使用MeterSphere让你的测试工作持续高效