Subnet Addressing

  • To better utilize IP address
  • Subnet addressing introduces another hierarchical(分层) level
  • Transparent to remote networks
  • Simplifies management of multiplicity(多样性) of LANs
  • Masking used to find subnet number(By devide Host ID into Subnet ID and Host ID)

Subnetting Scheme(体系)

  1. Organization has Class B address (16 host ID bits) with network ID: 150.100.0.0
  2. Create subnets with up to 100 hosts each
  • We need one hundred hosts, so we need at least 7 bit(2^7=128>100)for host ID.
  • 7 bits sufficient for each subnet (IP mask 7 bits)
  • 16-7 = 9 bits for** subnet ID** (2^9 – 2 = 510 subnets)
  1. Apply subnet mask to IP addresses to help outside packet find corresponding subnet
  • Example: Find subnet for 150.100.12.176
  • Theory: We use "and operation" to get the subnet ID, compare every bit
  • IP address = 10010110 01100100 00001100 10110000
  • Mask = 11111111 11111111 11111111 10000000 (7 0s)
  • AND = 10010110 01100100 00001100 10000000
  • Subnet = 150.100.12.128
  • Subnet address used by routers within organization

Subnet Range

Given the subnet 150.100.12.128

  • IP address 150.100.12.128 is used to identify the subnetwork
  • IP address 150.100.12.255 is used to broadcast packets in the subnet
  • Range of the subnet IP address is between
    • IP address = 10010110 01100100 00001100 10000001
      to
      IP address = 10010110 01100100 00001100 11111110
      That is, 150.100.12.129 to 150.100.12.254

Subnet Example

  • The subnetting can hide the configuration details from outside

    Routing with Subnetworks

  1. IP layer in hosts and routers maintain a routing table
  2. Originating host(源主机): To send an IP packet, consult routing table
  • If destination host is in same network, send packet directly using appropriate network interface
  • Otherwise, send packet indirectly; typically, routing table indicates a default router
  1. Router: Examine IP destination address in arriving packet
  • If destination IP address not own, router consults routing table to determine next-hop and associated network interface & forwards packet

Subnetting的更多相关文章

  1. subnetting and the subnet mask

    原文:https://www.techopedia.com/6/28587/internet/8-steps-to-understanding-ip-subnetting/5 Step 4 - Sub ...

  2. 【转】IP协议详解之子网寻址、子网掩码、构造超网

    子网寻址 1. 从两级IP地址到三级IP地址 <1>. IP地址利用率有时很低. <2>. 给每一个物理网络分配一个网络号会使路由表变得太大而使网络性能变坏. <3> ...

  3. [转]CIDR简介

    IP Subnetting and Variable Length Subnet Masks Subnetting Basics 子网划分(subnetting)的优点: 1.减少网络流量 2.提高网 ...

  4. IP子网划分

    CIDR值: 1.掩码255.0.0.0:/8(A类地址默认掩码) 2.掩码255.128.0.0:/9 3.掩码255.192.0.0:/10 4.掩码255.224.0.0:/11 5.掩码255 ...

  5. Linux就这个范儿 第13章 打通任督二脉

    Linux就这个范儿 第13章 打通任督二脉 0111010110……你有没有想过,数据从看得见或看不见的线缆上飞来飞去,是怎么实现的呢?数据传输业务的未来又在哪里?在前面两章中我们学习了Linux网 ...

  6. TCP/IP协议原理与应用笔记18:构成子网和超网

    1. 引言: (1)类别IP编址(Classful IP)的缺陷 • 固定的3种IP网络规模      C类地址:少于255台主机的网络      B类地址:介于255~65535台主机的网络     ...

  7. ip 子网掩码 网关 DNS

    这一篇文章也很好: 原文引用于:  http://www.cnblogs.com/jiqing9006/p/3365939.html 内外网ip: IP地址: IPv4地址分为A.B.C.D.E五类, ...

  8. IP子网掩码划分及设置

    IP子网掩码划分及设置 定长子网掩码: 一.子网掩码的计算 TCP/IP网间网技术产生于大型主流机环境中,它能发展到今天的规模是当初的设计者们始料未及的.网间网规模的迅速扩展对IP地址模式的威胁并不是 ...

  9. IP地址、子网掩码详解

    如何通过子网掩码划分网段 资料一: 一.缺省A.B.C类地址,子网掩码:  二.子网掩码的作用:  code:  IP地址 192.20.15.5 11000000 00010100 00001111 ...

随机推荐

  1. springMVC基于注解的控制器

    springMVC基于注解的控制器 springMVC基于注解的控制器的优点有两个: 1.控制器可以处理多个动作,这就允许将相关操作写在一个类中. 2.控制器的请求映射不需要存储在配置文件中.使用re ...

  2. dockerfile 踩坑记录

    1.使用ADD/COPY命令 源文件必须和Dockfile位于同一目录下(使用绝对路径是没用的,会提示找不到你的源文件) 2.ADD命令会自动解压 3.尽量耗时且不容易变的部分放在dockerfile ...

  3. async await基本使用

    //——<ES6经典入门到进阶>牧码人-Strive 学习笔记//express示例 const fs = require('fs'); //简单封装 fs封装成一个promise con ...

  4. String Control

    using System; using System.Collections.Generic; using System.Text; using System.Web; using System.We ...

  5. Centos 7 系统安装(简单步骤)

    前面步骤忽略.进入安装步骤. 运行安装 到选择语言的时候最好选英文版,这里做模板,用的中文版 接着下一步到安装选项 在日期和时间里,选择上海时区 紧接着进行软件安装选择,如图安装就好 接着进行分区,也 ...

  6. chrome中常用的快捷键

    ctrl+n 新建窗口ctrl+shift+n 无痕模式新建窗口ctrl+t 打开新标签页ctrl+shift+t 打开最近关闭的标签页ctrl+tab 标签页之间切换ctrl+w/ctrl+F4 关 ...

  7. Android MediaRecorder实现暂停断点录音功能

    基本原理如下:MediaRecorder通过MIC录音,系统没有自带的pause功能,每次暂停录音,都会结束本次的录音.现在本人的设计思路是:MediaRecorder录音暂停时,保存这段所录下的音频 ...

  8. Android错题集

    在Android学习的过程中,遇到过很多迷之问题,在这里记下以防以后忘记,也可以顺便帮助一下遇到了相同问题的朋友. 1.自定义控件文字大小错误: 在自定义控件中获取的getDimension值为px值 ...

  9. 【源码分析】cocos2dx的Action

    第一次去学习Action,总会找到一篇入门的帖子(官网:http://cn.cocos2d-x.org/article/index?type=cocos2d-x&url=/doc/cocos- ...

  10. ubuntu install chrome

    sudo wget https://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/ wget -q -O - h ...