当前位置:网站首页>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
边栏推荐
- Comprehensive application of OpenCV in contour detection and threshold processing
- 011 C language basics: C scope rules
- [C language] keyword supplement
- leetcode299周赛记录
- 008 C language foundation: C judgment
- stm32读取IO高低电平状态
- ES6 0622 III
- Asp. Net core6 websocket simple case
- STM32 MCU pin_ How to configure the pin of single chip microcomputer as pull-up input
- AcWing 第 57 场周赛---BC题挺好
猜你喜欢

Double position relay jdp-1440/dc110v

流媒体协议初探(MPEG2-TS、RTSP、RTP、RTCP、SDP、RTMP、HLS、HDS、HSS、MPEG-DASH)

Microservice system design -- microservice invocation design
![Golang Hello installation environment exception [resolved]](/img/30/bddba695e4c0059102e86de346b58d.png)
Golang Hello installation environment exception [resolved]
![[nips 2017] pointnet++: deep feature learning of point set in metric space](/img/3e/0a47eecc27f236d629c611e683b37a.png)
[nips 2017] pointnet++: deep feature learning of point set in metric space

认知篇----2022高考志愿该如何填报

双位置继电器RXMVB2 R251 204 110DC
![[station B up dr_can learning notes] Kalman filter 2](/img/52/777f2ad2db786c38fd9cd3fe55142c.gif)
[station B up dr_can learning notes] Kalman filter 2

Remapping (STM32)

How pychart installs packages
随机推荐
Pycharm 中 Terminal 无法进入 venv 环境的问题
Qt使用Valgrind分析内存泄漏
Pytest框架的执行规则
齐纳二极管 稳压二极管 SOD123封装 正负区分
unity点光源消失
015 basics of C language: C structure and common body
019 basics of C language: C preprocessing
C language implementation timer
Microservice system design -- distributed cache service design
Some articles about component packaging and my experience
Microservice system design -- service registration, discovery and configuration design
DAST black box vulnerability scanner part 6: operation (final)
013 basics of C language: C pointer
面试:Selenium 中有哪几种定位方式?你最常用的是哪一种?
Vue学习笔记(五)Vue2页面跳转问题 | vue-router路由概念、分类与使用 | 编程式路由导航 | 路由组件的缓存 | 5种路由导航守卫 | 嵌套路由 | Vue2项目的打包与部署
stm32单片机引脚_如何将单片机的引脚配置为上拉输入
【FPGA】UART串口_V1.1
Py2neo basic syntax
Reading graph augmentations to learn graph representations (lg2ar)
leetcode298周赛记录