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. JBPM学习第1篇:入门与安装

    1.相关关键词 BPM:全称Business Process Management,即业务流程管理 BPEL:全称为Business Process Execution Language,即业务流程执 ...

  2. JS原型链继承

    继承普通版 继承逻辑上都差不多,普通版调用方式比较繁琐,不利于反复大量的使用: (function (){ //创建一个人员类 function Person(name){ this.name = n ...

  3. (转) 在PHP中使用全局变量

    简介 即使开发一个新的大型PHP程序,你也不可避免的要使用到全局数据,因为有些数据是需要用到你的代码的不同部分的.一些常见的全局数据有:程序设定类.数据库连接类.用户资料等等.有很多方法能够使这些数据 ...

  4. 什么是延展性(Malleability,可鍛性)

    原文:http://8btc.com/forum.php?mod=viewthread&tid=23878&page=1#pid270878 1. 什么是延展性(Malleabilit ...

  5. 微信小程序支付返回信息为空

    1.昨天公司说要实现微信小程序的支付,于是看了下微信小程序的开发api文档,和之前的app  端以及pc端基本相似:于是让他们把参数改了下,把之前的trade_type 由 app 改成 小程序要求的 ...

  6. javax.swing.JComponent 调用顺序

    网上截取的,感觉挺有用,记录下来. http://bbs.csdn.net/topics/310041707 java swing 感觉好复杂啊…………一点都不想用但是作业要用到 >_<; ...

  7. java面试题----IO流种类及接口方法

    java中有几种类型的流?JDK为每种类型的流提供了一些抽象类以供继承,请说出他们分别是哪些类? Java中的流分为两种,一种是字节流,另一种是字符流,分别由四个抽象类来表示(每种流包括输入和输出两种 ...

  8. js 日期格式化及日期增减

    //Demo:new Date().format("yyyy-MM-dd hh:mm:ss.SSS") Date.prototype.format = function (form ...

  9. Linq中使用Left Join 和 Right Join

    原文地址:http://www.cnblogs.com/xinjian/archive/2010/11/17/1879959.html 准备一些测试数据,如下: use Test Create tab ...

  10. 【Leetcode】【Medium】Rotate List

    Given a list, rotate the list to the right by k places, where k is non-negative. For example:Given 1 ...