当前位置:网站首页>Network - data link layer
Network - data link layer
2022-07-28 06:54:00 【Xiao Qiao】
One 、 Data link layer functions
① Receive data in the form of bitstreams from the physical layer , And encapsulate it into frames , Send to the next level ; Again , The data frame of the upper layer , Data in the form of bitstream is forwarded to the physical layer
② Error detection function , Turn the physical channel with large errors into error free 、 A data link that can reliably transmit data frames ;
Two 、 Knowledge involved in the data link layer
Ethernet
It's not a specific network , It's a technical standard ; It includes the contents of the data link layer , It also contains some contents of the physical layer , for example : Specifies the network topology 、 Access control mode 、 Transmission rate, etc .
Encapsulation of data link layer 、 Sub use is based on Ethernet data format ( Contains source mac、 Purpose mac)
contrast MAC and IP Address
IP The address describes the overall starting and ending point of the road ,MAC The address describes the beginning and end of each interval on the road ;
MTU
A regulation at the data link layer , Datagrams larger than a certain size , To slice ( to subcontract ) after , Send again , Different data link layers ,MTU The standards are different ;
MTU Yes IP The impact of the agreement
Because of the data link layer MTU The limitation of , For the larger IP Packets are to be sub contracted
① Will be bigger IP The package is divided into several small packages , And label each bag ,
② Every little bag of IP The head of the agreement 16 Bit mark (id) It's all the same ,
③ Every little bag of IP The head of the agreement 3 Bit flag field , The first 2 The position is 0, Indicates that fragmentation is allowed , The first 3 Bit indicates the end tag ,
④ Once any one of these packets is lost , The reorganization of the receiver will fail , but IP Layer will not retransmit ;
MTU Yes UDP The impact of the agreement
After slicing , Any one is lost , Whole UDP The datagram will lose packets ;
MTU Yes TCP The impact of the agreement
After slicing , Any one is lost , Whole TCP The datagram will lose packets , but TCP There is a timeout retransmission mechanism , Is reliable ;
ARP agreement
ARP Protocol is a protocol between data link layer and network layer
effect : Host and router , There is one. ARP Cache table , Record IP and MAC The mapping relation of , Can pass IP look for MAC
How to determine the purpose MAC, First, you need to know which device to send data to ?
① Determine whether the destination is in the same network segment ,
② Not in the same segment , I don't know how to send , Give it to the router ,
③ The source host passes through the local ARP Cache table , Router based IP To find the corresponding MAC,
④ Purpose of datagram sent MAC: Router MAC;
边栏推荐
- @Postconstruct annotations and useful examples
- MySQL index optimization
- rancher部署实战
- C language memcpy library functions and the role of memmove
- How to store floating point data in memory
- MySQL主从
- prometheus监控nacos
- NAT和PAT的原理及配置
- Optimization ideas from ordinary query commodities to highly concurrent query commodities
- 技术分享 | 实战详解接口测试请求方式Get、post
猜你喜欢

What is the good brand of air conduction Bluetooth headset and the best brand recommendation of air conduction headset

VMware Workstation 配置net模式

FTP服务

2022 Tanabata gift recommendation! Nice, cheap and practical gift recommendation

Personal understanding of Chinese remainder theorem

Technology sharing | send requests using postman
![[c language] - step by step to achieve minesweeping games](/img/ee/49ddfcd948ccd5c8c9dec3c48c6112.png)
[c language] - step by step to achieve minesweeping games

Iptables firewall
![[C language] string library function introduction and simulation](/img/83/b23fdcbbbd792029083b310c89d4bc.png)
[C language] string library function introduction and simulation

JS reverse question 100 - question 1
随机推荐
网络——传输层(详细版)
Elastic common high frequency commands
Ubuntu18.04+centos7 configure redis master-slave [learning notes]
rancher部署实战
TCP/IP五层模型
Hdu-5783 divide the sequence (greedy water question)
How about air conduction Bluetooth headset? It's the most worthwhile air conduction headset to start with
Cocos2d-x learning notes Tile Map tiledmap
SSAO by computer shader (III)
elastic常用高频命令
About the collation of shader keyword
MySQL主主
DNS domain name resolution service
Installation and configuration of unit test framework jest with typescript
软件测试的生命周期(流程)
Brief analysis of order transaction
ISO 3.0-server three power separation configuration
HDU-5805-NanoApe Loves Sequence(思维题)
[explain in detail how to realize Sanzi chess step by step]
KVM hot migration