2.5. Use of link-local addresses

  1. IPv6 link-local addresses are for use on a single link, for purposes
  2. of neighbor discovery, auto-configuration, etc. IPv6 routers do not
  3. forward IPv6 datagrams having link-local source addresses [Ref15].
  4. Link-local unicast addresses are assigned from the IPv6 address range
  5. FF80/10.
  6.  
  7. OSPF for IPv6 assumes that each router has been assigned link-local
  8. unicast addresses on each of the router's attached physical segments.
  9. On all OSPF interfaces except virtual links, OSPF packets are sent
  10. using the interface's associated link-local unicast address as
  11. source. A router learns the link-local addresses of all other
  12. routers attached to its links, and uses these addresses as next hop
  13. information during packet forwarding.
  14. OSPF包的源地址都是链路本地地址,包转发时,使用链路本地地址作为下一跳的信息。
  15. On virtual links, global scope or site-local IP addresses must be
  16. used as the source for OSPF protocol packets.
  1. Link-local addresses appear in OSPF Link-LSAs (see Section 3.4.3.6).
  2. However, link-local addresses are not allowed in other OSPF LSA
  3. types. In particular, link-local addresses must not be advertised in
  4. inter-area-prefix-LSAs (Section 3.4.3.3), AS-external-LSAs (Section
  5. 3.4.3.5) or intra-area-prefix-LSAs (Section 3.4.3.7).
    链路本地地址只在Link-LSA中出现,其它均不允许出现。

A.1 Encapsulation of OSPF packets

  1.  
  1. OSPF runs directly over the IPv6's network layer. OSPF packets are
  2. therefore encapsulated solely by IPv6 and local data-link headers.
  3.  
  4. OSPF does not define a way to fragment its protocol packets, and
  5. depends on IPv6 fragmentation when transmitting packets larger than
  6. the link MTU. If necessary, the length of OSPF packets can be up to
  7. 65,535 bytes. The OSPF packet types that are likely to be large
  8. (Database Description Packets, Link State Request, Link State Update,
  9. and Link State Acknowledgment packets) can usually be split into
  10. several separate protocol packets, without loss of functionality.
  11. This is recommended; IPv6 fragmentation should be avoided whenever
  12. possible. Using this reasoning, an attempt should be made to limit
  13. the sizes of OSPF packets sent over virtual links to 1280 bytes
  14. unless Path MTU Discovery is being performed [Ref14].
  15. OSPF没有定义分段机制,而是依赖于IPv6的分段机制。
    OSPF包大部分可以自己拆分,而不影响,这是推荐的做法。
    The other important features of OSPF's IPv6 encapsulation are:
  16.  
  17. o Use of IPv6 multicast. Some OSPF messages are multicast, when
  18. sent over broadcast networks. Two distinct IP multicast
  19. addresses are used. Packets sent to these multicast addresses
  20. should never be forwarded; they are meant to travel a single hop
  21. only. As such, the multicast addresses have been chosen with
  22. link-local scope, and packets sent to these addresses should have
  23. their IPv6 Hop Limit set to 1.
    发往多播地址的包不会被转发,是单跳的。
  1.  
  1. AllSPFRouters
  2. This multicast address has been assigned the value FF02::5. All
  3. routers running OSPF should be prepared to receive packets sent to
  4. this address. Hello packets are always sent to this destination.
  5. Also, certain OSPF protocol packets are sent to this address
  6. during the flooding procedure.
  7. Hello包的目的地址是ff02::5,某些OSPF协议包在洪泛过程中,会发到这个地址。
  8. AllDRouters
  9. This multicast address has been assigned the value FF02::6. Both
  10. the Designated Router and Backup Designated Router must be
  11. prepared to receive packets destined to this address. Certain
  12. OSPF protocol packets are sent to this address during the flooding
  13. procedure.
  1.  
  1. o Addresses in LSAs are now expressed as [prefix, prefix length]
  2. instead of [address, mask] (see Section A.4.1). The default route
  3. is expressed as a prefix with length 0.
  4. 地址由[地址,掩码]改变为[前缀,前缀长度]
  5. o The Router and Network LSAs now have no address information, and
  6. are network-protocol-independent.
    Router-LSA(只有Router ID)和Network-LSA(只有该网络中所有路由器的Router ID)中没有了地址信息,是网络协议独立的。
  1. In IPv4, the router-LSA carries a router's IPv4 interface
  2. addresses, the IPv4 equivalent of link-local addresses. These are
  3. only used when calculating next hops during the OSPF routing
  4. calculation (see Section 16.1.1 of [Ref1]), so they do not need to
  5. be flooded past the local link; hence using link-LSAs to
  6. distribute these addresses is more efficient.
    下一跳计算过程中会使用router-LSA中。

 关于DR和BDR选举

对于广播网络,比如以太网,如果所有路由器都分别互相交互信息,会造成较大开销。

可以利用广播特性,选择一个中心节点DR,先收集其它路由器的信息,然后,再广播出去。

步骤为:

先选举BDR,再选举DR

BDR,会首先看Router Priority,谁大,选谁;如果一样,看Router ID,谁大选谁。

    Router Priority默认是1,若是0,则没有被选举权。Router ID肯定唯一的,因此,肯定能否选出一个BDR来。

之后,会让BDR变为DR,再选举一个BDR出来。

 关于master和slave确定

只与Router ID相关,与优先级无关。

OSPF RFC2740的更多相关文章

  1. (ospf、rip、isis、EIGRP)常见的动态路由协议简介

    路由器要转发数据必须先配置路由数据,通常根据网络规模的大小可设置静态路由或设置动态路由.静态路由配置方便,对系统要求低,适用于拓扑结构简单并且稳定的小型网络.缺点是不能自动适应网络拓扑的变化,需要人工 ...

  2. Ceph RGW 的 OSPF负载均衡 + quagga的配置

      随着开源技术的发展,以及商业设备价格的不断攀升.大公司总是希望能使用开源的方案来替换过去使用的商业设备.比如之前大家用的很多的F5和A10,现在已经在逐步被LVS替换.传统的单个lvs的性能是比不 ...

  3. 动态选路、RIP协议&&OSPF协议详解

    动态选路.RIP协议&&OSPF协议详解 概念 当相邻路由器之间进行通信,以告知对方每个路由器当前所连接的网络,这时就出现了动态选路.路由器之间必须采用选路协议进行通信,这样的选路协议 ...

  4. OSPF协议详解

    CCNP OSPF协议详解 2010-02-24 20:30:22 标签:CCNP 职场 OSPF 休闲 OSPF(Open Shortest Path Fitst,ospf)开放最短路径优先协议,是 ...

  5. RIP、OSPF、BGP、动态路由选路协议、自治域AS

    相关学习资料 tcp-ip详解卷1:协议.pdf http://www.rfc-editor.org/rfc/rfc1058.txt http://www.rfc-editor.org/rfc/rfc ...

  6. OSPF理解

    from http://kingdee.blog.51cto.com/98119/27310STP,PIM,OSPF,长的好像(*_*)可以把整个网络(一个自治系统AS)看成一个王国,这个王国可以分成 ...

  7. OSPF

    Ospf OSPF(开放最短路径优先协议)是一种无类内部网关协议(IGP):是一种链路状态路由选择协议: 入门: 可以把整个网络(一个自治系统AS)看成一个王国,这个王国可以分成几个 区(area), ...

  8. OSPF(Open Shortest Path First开放式最短路径优先 -链路状态路由协议

    OSPF分为OSPFv2和OSPFv3两个版本,其中OSPFv2用在IPv4网络,OSPFv3用在IPv6网络 思科OSPF的协议管理距离(AD)是110,华为OSPF的协议管理距离是10 通告网络接 ...

  9. OSPF虚链路配置.示例2

    先看一个拓扑图 黄色区域是area0,即骨干区域,如果如图示RT1与RT6之间的链路断了,那么会出现骨干区域被“分裂”的情况,很明显骨干区域是不能被分割开的,出现这种状况的时候可能会影响到整个自制系统 ...

随机推荐

  1. Django3.0.2学习踩坑记

    配置文件settings.py相关: 新增app INSTALLED_APPS = [ 'polls.apps.PollsConfig', # 这个是新增的APP 'django.contrib.ad ...

  2. const和volitale

    1. const只读变量 const修饰的变量是只读的,本质还是变量 const修饰的局部变量在栈上分配空间(可以通过指针修改) const修饰的全局变量在全局数据区分配空间(指针也修改不了) con ...

  3. cogs 2098. [SYOI 2015] Asm.Def的病毒 LCA 求两条路径是否相交

    2098. [SYOI 2015] Asm.Def的病毒 ★☆   输入文件:asm_virus.in   输出文件:asm_virus.out   简单对比时间限制:1 s   内存限制:256 M ...

  4. cogs 615. 韩国明星 STL map

    615. 韩国明星 ★★   输入文件:star.in   输出文件:star.out   简单对比时间限制:2 s   内存限制:128 MB [问题描述] 在LazyCat同学的影响下,Roby同 ...

  5. 基于javaSwing的贪食蛇游戏

    这个项目时,是我好几年前写的了.但对刚入门,或者想瞧瞧java的图形的界面swing的同学,还是有点用处的. 在这推荐给你. 涉及技术点 swing,多线程,文件读写,多媒体文件播放等 游戏简介 该游 ...

  6. sqli_labs学习笔记(一)Less-54~Less-65

    续上,开门见山 暴库: http://43.247.91.228:84/Less-54/?id=-1' union select 1,2,database() --+ challenges 爆表: h ...

  7. 了解人工智能?-百度AI

    了解人工智能? 什么是人工智能? 由人创造的"智慧能力",同样具备智慧生物的能力 耳朵=倾听=麦克风=语音识别 ASR Automatic Speech Recognition 嘴 ...

  8. Python3基础之数据类型(字符串和列表)

    1.Python字符串方法 1.1.如何在Python中使用字符串 a.使用单引号(') 用单引号括起来表示字符串,例如: str1="this is string"; print ...

  9. .net core 认证与授权(二)

    前言 这篇紧接着一来写的,在第一篇中介绍了认证与授权,同时提出了这套机制其实就是模拟现实中的认证与授权. 同样这篇介绍在这套机制下,用户信息管理机制?这里就会问了,上一篇中认证和授权不是都ok了吗,怎 ...

  10. JVM性能分析 | 一次生产系统Full GC问题分析与排查总结

    一次生产系统Full GC问题分析与排查总结 背景 最近某线上业务系统生产环境频频CPU使用率过低,频繁告警,通过重启可以缓解,但是过了一段时间又会继续预警,线上两个服务节点相继出现CPU资源紧张,导 ...