当前位置:网站首页>Unicast, multicast and broadcast of IP network communication
Unicast, multicast and broadcast of IP network communication
2022-06-27 05:28:00 【Barren insulator】
One 、 Judge whether the two devices are in the same LAN
View the... Of two devices ip4 Address and Subnet mask MASK.
- if MASK Dissimilarity , Is not in the same LAN .
- if MASK equally , Separate calculation IP&MASK. If they are the same , On the same LAN , Otherwise, they are not on the same LAN .
Two 、 unicast 、 The difference between multicast and broadcast
unicast : In the same LAN , Point to point communication between two devices is unicast communication . stay ifconfig To configure vlan when , Target of end-to-end equipment IP The address must be the same as that configured for the local device IP The address is consistent , And opposite end IP With the local IP In the same LAN .
Multicast : Within the reach of the same network , A network device communicates with some devices concerned with its data . stay ifconfig To configure vlan when , Target of end-to-end equipment IP Is the specified multicast address (224.0.0.0~239.255.255.255), And local IP And the opposite end IP In the same LAN . When the local device obtains data, it needs to filter the multicast address separately .
radio broadcast : Within the reach of the same network , A network device communicates with all devices in the network . stay ifconfig To configure vlan when , Target of end-to-end equipment IP by 255.255.255.255 Or can be associated with MASK Just right 255.255.255.255 Directional broadcast address of , And local IP And the opposite end IP In the same LAN .
reference
【1】 How to judge whether two devices are in the same LAN _guojunxiu The blog of
【3】 Multicast address classification _Mr. Sun_ The blog of -CSDN Blog _ Multicast address classification
边栏推荐
- Luogu p2939 [usaco09feb]revamping trails G
- leetcode298周赛记录
- [station B up dr_can learning notes] Kalman filter 2
- EPICS记录参考5 -- 数组模拟输入记录Array Analog Input (aai)
- Junda technology - centralized monitoring scheme for multi brand precision air conditioners
- Edge loads web pages in IE mode - edge sets ie compatibility
- pycharm 如何安装 package
- Two position relay xjls-8g/220
- Edge在IE模式下加载网页 - Edge设置IE兼容性
- 洛谷P4683 [IOI2008] Type Printer 题解
猜你喜欢
![Mechanical transcoding journal [17] template, STL introduction](/img/78/926db660139fda3d31cceccad7096c.png)
Mechanical transcoding journal [17] template, STL introduction

使用域名转发mqtt协议,避坑指南

Using domain name forwarding mqtt protocol, pit avoidance Guide

双位置继电器HJWS-9440

NLP-D62-nlp比赛D31&刷题D15

论文解读(LG2AR)《Learning Graph Augmentations to Learn Graph Representations》

ES6 0622 III

Microservice system design -- service registration, discovery and configuration design

Vue学习笔记(五)Vue2页面跳转问题 | vue-router路由概念、分类与使用 | 编程式路由导航 | 路由组件的缓存 | 5种路由导航守卫 | 嵌套路由 | Vue2项目的打包与部署

躲避小行星游戏
随机推荐
双位置继电器RXMVB2 R251 204 110DC
Unity中跨平台获取系统音量
什么是BFC?有什么用?
微信小程序WebSocket使用案例
[622. design cycle queue]
008 C language foundation: C judgment
【622. 设计循环队列】
DAST black box vulnerability scanner part 6: operation (final)
Double position relay jdp-1440/dc110v
Microservice system design -- unified authentication service design
Laptop does not have WiFi option solution
015 basics of C language: C structure and common body
Unity point light disappears
Unity中跨平臺獲取系統音量
牛客练习赛101-C 推理小丑---位运算+思维
021 basics of C language: recursion, variable parameters
Implementation of easyexcel's function of merging cells with the same content and dynamic title
Microservice system design -- microservice monitoring and system resource monitoring design
011 C language basics: C scope rules
Almost because of json Stringify lost his bonus