WO2014166356A1 - 一种实现ip地址通告的方法、装置及计算机存储介质 - Google Patents

一种实现ip地址通告的方法、装置及计算机存储介质 Download PDF

Info

Publication number
WO2014166356A1
WO2014166356A1 PCT/CN2014/074766 CN2014074766W WO2014166356A1 WO 2014166356 A1 WO2014166356 A1 WO 2014166356A1 CN 2014074766 W CN2014074766 W CN 2014074766W WO 2014166356 A1 WO2014166356 A1 WO 2014166356A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
notification
router
opaque
lsa
Prior art date
Application number
PCT/CN2014/074766
Other languages
English (en)
French (fr)
Inventor
孟伟
向燕
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to US14/781,830 priority Critical patent/US9832100B2/en
Priority to EP14783356.0A priority patent/EP2985967B1/en
Publication of WO2014166356A1 publication Critical patent/WO2014166356A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/03Topology update or discovery by updating link state protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/021Ensuring consistency of routing table updates, e.g. by using epoch numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/60Router architectures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/32Flooding

Definitions

  • the present invention relates to the field of communications, and in particular, to a method, an apparatus, and a computer storage medium for implementing IP address advertisement. Background technique
  • the Open Shortest Path First (OSPF) protocol is an Interior Gateway Protocol (IGP) for deciding routes within a single autonomous system (AS).
  • IGP Interior Gateway Protocol
  • LSA Link-State Advertisement
  • LSA 1 Router LSA (outer LSA);
  • LSA 2 Network LSA (Network LSA);
  • LSA 3 Network Summary LSA (Network summary LSA);
  • LSA4 Autonomous System Border Router Summary LSA (ASB summary LSA);
  • LSA 5 Autonomous system external LSA (Autonomous system external LSA);
  • LSA 6 Group member LSA (Group membership LSA);
  • LSA 7 Autonomous System External LSA (NSSA External LSA) specific to the last stub area;
  • LSA 8 External attributes LSA (External attributes LSA for BGP);
  • LSA 9 Link-scoped opaque LSA (link-scoped opaque LSA);
  • LSA 10 Area-wide opaque LSA (area-scoped opaque LSA);
  • LSA 11 AS-scoped opaque LSA for AS range.
  • the OSPF protocol can advertise the LSAs of the 32-bit IP address.
  • the LSAs 5 and LSAs 7 are the external LSAs of the AS. These types of LSAs can be advertised as follows. Bit IP address:
  • LSA 1 advertises a 32-bit IP address: Configure the interface as a 32-bit IP address and configure the interface as a Point-to-Multipoint (PTMP) interface.
  • PTMP Point-to-Multipoint
  • the LSA 3 advertises the 32-bit IP address:
  • the LSA 1 is converted to other areas in the form of LSA 3.
  • the corresponding route is 32-bit.
  • embodiments of the present invention provide a method, an apparatus, and a computer storage medium for implementing IP address advertisement.
  • An embodiment of the present invention provides a method for implementing IP address advertisement, where an advertisement of an LSA 11 and a flooding notification control switch are added to a router.
  • the method further includes:
  • the router advertises or floods the IP address for the LSA 11 encapsulating the IP address according to the status indicated by the notification control switch.
  • the notification control switch is named ospf address ⁇ announce
  • the advertising or flooding of the IP address for the LSA 11 encapsulating the IP address according to the status indicated by the notification control switch includes:
  • the router When the notification control switch is in the ospf address announce state, the router performs IP Notice of address; and / or,
  • the router floods the IP address.
  • the router advertises the IP address as follows: The router packages the 32-bit IP address to be advertised in the LSA 11, and sends the packetized LSA 11 to the neighboring router.
  • the router floods the IP address to: The router floods the received LSA 11 to the neighboring router.
  • the method further includes: the router determining whether the neighboring router has the opaque opaque capability, whether the opaque capability of the neighboring router and the advertised control switch set by the router are in an announce state, and confirming that the neighboring router has the opaque capability. And the opaque capability itself and the notification control switch set by itself are in an announce state; and/or,
  • the method further includes: the router determining whether it has the opaque capability, whether the notification control switch set by itself is in the forward state, and confirming that it has the opaque capability, and the notification control switch set by itself is Forward state.
  • the embodiment of the present invention further provides an apparatus for implementing an IP address advertisement, where the apparatus is a router; the apparatus includes: an announcement switch control module and a notification module;
  • the notification switch control module is configured to control notification and flooding of the LSA 11;
  • the notification module is configured to advertise or flood the IP address of the LSA 11 encapsulating the IP address according to the status indicated by the notification switch control module.
  • the notification switch control module is named ospf address ⁇ announce
  • the notification module is configured to: notify the IP address when the notification switch control module is in the ospf address announce state; and/or, when the notification switch control module is In the ospf address forward ⁇ dog state, the IP address is flooded.
  • the advertising of the IP address is: The 32-bit IP address to be advertised is packaged in the LSA 11, and the LSA 11 is sent to the neighboring router.
  • the flooding of the IP address is: flooding the received LSA 11 to the neighboring router.
  • the notification module includes an IP address advertisement unit and/or an IP address flooding unit; wherein the IP address advertisement unit is configured to perform an operation related to the IP address advertisement; the IP address flooding unit is configured to execute the involved The operation of flooding IP addresses.
  • the IP address notification unit is further configured to: determine whether the neighbor router has opaque capability, whether the router in which the router is located has opaque capability, and whether the notification switch control module is in an announce state, and confirm the neighbor router before performing the IP address advertisement.
  • An opaque capable, and the router on which the router is located has the opaque capability and the notification control switch set in the router in which it is located is in the announce state; and/or,
  • the IP address flooding unit is further configured to: before performing flooding of the IP address, determine whether the router in which the router is located has opaque capability, whether the notification switch control module is in a forward state, and confirm that the router on which the router is located has an opaque Capability, and the notification switch control module is in the forward state.
  • the embodiment of the present invention further provides a computer storage medium, the computer storage medium comprising a set of instructions, when executing the instruction, causing at least one processor to perform the foregoing method for implementing IP address advertisement.
  • the embodiment of the present invention implements the technology of IP address advertisement, and can advertise a 32-bit IP address under any interface type.
  • the IP address can be from the interface IP address of the router itself or from the IP address in the address pool configured by the router.
  • the embodiment of the present invention overcomes the limitation that the interface type between the routers must be configured as PTMP to advertise the IP address in the prior art, and the limitation of only the IP address of the loopback interface of the router itself can be overcome.
  • FIG. 1 is a network topology diagram for implementing IP address advertisement according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a " ⁇ text" for implementing IP address advertisement according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an opaque (Opaque) type field according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an Opaque information field according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of implementing IP address advertisement according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an apparatus for implementing IP address advertisement according to an embodiment of the present invention. detailed description
  • the 32-bit IP address can be advertised by extending the AS-scoped Opaque LSA (that is, the aforementioned LSA 11) in the OSPF protocol.
  • AS-scoped Opaque LSA that is, the aforementioned LSA 11
  • the basic framework of LSA 11 already exists, and its flooding range is the entire OSPF domain.
  • the LSA 11 can carry non-routing information of OSPF or other services for specific service applications and related scenarios. Because the generation of AS-scoped Opaque LSA is controlled by the source router's opaque capability (flood suppression capability). If the source router does not have opaque capability, LSA 11 will not be generated, and the corresponding data will not be advertised. Therefore, if the address information to be advertised (for example, 32 is the IP address information) is carried in the LSA 11, the range can be realized. Controllable 32-bit IP address advertisement.
  • the flooding of the AS-scoped Opaque LSA is controlled by the opaque capabilities of neighboring routers. If the neighboring router does not have the opaque capability, the source router will know that the neighboring router does not have the opaque capability when the packet exchange occurs during the link establishment process, so the corresponding data will not be flooded to the neighboring router.
  • Whether the router has opaque capability is related to an enable switch set in the router.
  • the enable switch is an Opaque capability switch.
  • the Opaque Capability Switch currently controls the generation and flooding of three types of LSAs (LSA 9, LSA 10, LSA 11).
  • an announcement control switch can also be added to the router to specifically control Announcement and flooding of AS-scoped Opaque LSA.
  • the notification control switch can be named ospf address ⁇ announce
  • the ospf IP address advertisement ( address announce ) is used to control the notification of the 32-bit IP address; the ospf IP address forwarding ( address forward ) is used to control the flooding of the 32-bit IP address.
  • the advertisement control switch is in the ospf address announce state, the 32-bit IP address can be advertised; when the advertisement control switch is in the ospf address forward state, the 32-bit IP address can be flooded.
  • the router After the router is configured as the source router, the router can be used as the source router. After the source router is started and connected to the network, the neighbor relationship can be discovered through the OSPF link-building packet (hello packet). Opaque ability. If the neighbor router does not have the opaque capability, the source router does not advertise the AS-scoped Opaque LSA. If the neighbor router is enabled with opaque capability (that is, the neighbor router has opaque capability), the source router. Then, it is judged whether it has the opaque capability and whether the notification control switch set by itself is in the announce state. If the source router has the opaque capability and the advertisement control switch is in the announce state, the source router packages the 32-bit IP address to be advertised. In the AS-scoped Opaque LSA, the AS-scoped Opaque LSA is sent to the neighboring router.
  • the AS-scoped Opaque LSA the AS-scoped Opaque LSA is sent to the neighboring router.
  • the specific AS-scoped Opaque LSA structure is shown in Figures 2 through 4.
  • the Opaque type field fills the Opaque type value shown in Figure 3, and 5 is the new Opaque type value in the embodiment of the present invention.
  • the Opaque Information field is populated with the IP address shown in Figure 4, which is used as the message encapsulation format for Opaque information.
  • the destination router receives the AS-scoped Opaque LSA with the packet structure shown in Figure 2, Figure 3, and Figure 4, and determines whether it has opaque capability. If the destination router does not have opaque capability, Discard the received AS-scoped Opaque LSA.
  • the destination router If the destination router has opaque capability, the destination router loads the received AS-scoped 32-bit IP address in the Opaque LSA. After that, the destination router determines whether the advertisement control switch set by itself is in the forward state. If it is in the forward state, the destination router floods the received AS-scoped Opaque LSA to the neighbor router; if it is not in the forward state, the shell 1 J does not Flooding.
  • the LSA's transmission, reception, and flooding procedures enable the notification of 32-bit IP addresses.
  • Rl, R2, R3, and R4 can establish neighbor relationships based on the network topology.
  • R4 supports opaque capability, and R2 does not support opaque capability. Therefore, R1 advertises the AS-scoped Opaque LSA to R4 through OSPF protocol without flooding.
  • R4 judges that it is in the ospf address forward state, and learns that the adjacent R3 has opaque capability, so R4 floods the AS-scoped Opaque LSA to R3.
  • R3 judges that it is not in the ospf address forward state, so it does not perform subsequent flooding for the R4-flooded AS-scoped Opaque LSA.
  • R3 and R4 obtain the 32-bit IP address configured on R1.
  • the specific data of the notification control switch can be recorded in the parameter configuration table and the like, so that the query of the corresponding entry can be used to know whether the current notification control switch of the router is in the announce state or the forward state.
  • the above content takes 32 as an IP address as an example, and may actually be an IP address of another bit.
  • the operation of the IP address advertisement in the embodiment of the present invention may be as shown in FIG. 5, and the process includes the following steps:
  • Step 510 Add an announcement and a flooding notification control switch for controlling the LSA 11 in the router.
  • the device for implementing the IP address advertisement is located in the router. As shown in FIG. 6, the device includes: an announcement switch control module 61 and a notification module 62;
  • the notification switch control module 61 is configured to control the notification and flooding of the LSA 11;
  • the notification module 62 is configured to perform IP address notification and/or flooding for the LSA 11 encapsulating the IP address according to the status indicated by the notification switch control module 61.
  • the notification switch control module 61 may be named ospf address ⁇ announce
  • the notification module 62 is specifically configured to: when the notification switch control module 61 is in the ospf address announce state, perform an IP address notification; and/or, when the notification switch control module 61 is in the ospf address forward state At the time, the IP address is flooded.
  • the notification module includes an IP address advertisement unit and/or an IP address flooding unit; wherein the IP address advertisement unit is configured to perform an operation related to the IP address advertisement; the IP address flooding unit is configured to execute the involved The operation of flooding IP addresses.
  • the IP address advertisement unit is further configured to determine whether the neighbor router has an opaque opaque capability, whether the router in which the router is located has the opaque capability, and whether the notification switch control module 61 is in the announcement state, and confirms the IP address notification unit.
  • the neighbor router has opaque capability, and the router in which it is located has opaque capability and the notification switch control module 61 is in an announce state.
  • the IP address flooding unit is further configured to determine whether the router in which the router is located has the opaque capability before the flooding of the IP address, whether the notification switch control module 61 is in the forward state, and confirm that the router in which the router is located has the opaque Capability, and the notification switch control module 61 is in a forward state.
  • the notification switch control module 61 can implement an analog switch or a control switch in the device for advertising the IP address
  • the notification module 62 can be implemented by a central processing unit (CPU) in the device that implements the IP address notification.
  • CPU central processing unit
  • a digital signal processor (DSP) or a Field-Programmable Gate Array (FPGA) is implemented in combination with a transceiver; the determination module can be implemented by a CPU, DSP or FPGA in a device that implements IP address notification.
  • DSP digital signal processor
  • FPGA Field-Programmable Gate Array
  • the present invention implements the technology of IP address advertisement, whether it is a method or a device, and can advertise a 32-bit IP address under any interface type.
  • the IP address can be from the interface IP address of the router itself, or can be from a router.
  • the IP address in the configured address pool.
  • the present invention overcomes the limitation in the prior art that the interface type between routers must be configured as PTMP to advertise the IP address, and the limitation of only the IP address of the loopback interface of the router itself can be overcome.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may employ hardware embodiments, software embodiments, or junctions. In the form of an embodiment of the software and hardware aspects. Moreover, the invention can be embodied in the form of one or more computer program products embodied on a computer usable storage medium (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
  • a computer usable storage medium including but not limited to disk storage and optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种实现IP地址通告的方法、装置及计算机存储介质,在路由器中增加控制LSA11的通告和洪泛的通告控制开关;路由器根据所述通告控制开关所表明的状态,针对封装有IP地址的LSA11进行IP地址的通告或洪泛。

Description

一种实现 IP地址通告的方法、 装置及计算机存储介质 技术领域
本发明涉及通信领域, 具体涉及一种实现 IP地址通告的方法、 装置及 计算机存储介质。 背景技术
开放式最短路径优先( OSPF, Open Shortest Path First )协议是一种内 部网关协议( IGP, Interior Gateway Protocol ), 用于在单一自治系统( AS, Autonomous System ) 内决策路由。
链路状态广播 ( LSA, Link-State Advertisement )是链接状态协议使用 的一个分组, 它包括有关邻居和通道成本的信息, LSA被路由器用于维护 路由选择表。 0SPF的 LSA类型一共有十一种, 分别是:
LSA 1: 路由器 LSA ( outer LSA );
LSA 2: 网络 LSA ( Network LSA );
LSA 3: 网络汇总 LSA ( Network summary LSA );
LSA4: 自治系统边界路由器汇总 LSA ( ASB summary LSA );
LSA 5: 自治系统夕卜部 LSA ( Autonomous system external LSA );
LSA 6: 组成员 LSA ( Group membership LSA );
LSA 7: 次末节区域特有的自治系统外部 LSA ( NSSA External LSA );
LSA 8: 边界网关协议的外部属性 LSA ( External attributes LSA for BGP );
LSA 9: 链路范围的不透明 LSA ( link-scoped opaque LSA );
LSA 10: 区域范围的不透明 LSA ( area-scoped opaque LSA );
LSA 11 : AS范围的不透明 LSA ( AS-scoped opaque LSA )。 OSPF协议当前可以通告 32位 IP地址的 LSA有 LSA 1、 LSA 3、 LSA 5、 LSA 7四种, 其中, LSA 5和 LSA 7都属于自治系统外部 LSA, 这些类型的 LSA可以通过如下方式通告 32位 IP地址:
( 1 ) LSA 1通告 32位 IP地址的方法: 将接口配置成 32位 IP地址, 并将接口配置成点到多点 ( PTMP, Point-to-Multipoint )接口。
( 2 ) LSA 3通告 32位 IP地址的方法: 将 LSA 1以 LSA 3的形式转化 到其他区域, 对应路由是 32位的。
( 3 ) 当前尚不存在用于 LSA 5、 LSA 7通告 32位 IP地址的方法。 在实际应用中,应用 LSA 1通告 32位 IP地址时,只有环回( loopback ) 接口可以实现 32位 IP地址的通告, 并且需要将所有接口配置成 PTMP接 口,但这并不现实。应用 LSA 3通告 32位 IP地址时, 由于 LSA 3是从 LSA 1转换来的, 因此其他节点不能准确得出地址和节点的对应关系。 发明内容
为解决现有存在的技术问题, 本发明实施例提供一种实现 IP地址通告 的方法、 装置及计算机存储介质。
本发明实施例提供了一种实现 IP 地址通告的方法, 在路由器中增加 LSA 11的通告和洪泛的通告控制开关; 所述还方法包括:
路由器根据所述通告控制开关所表明的状态, 针对封装有 IP 地址的 LSA 11进行 IP地址的通告或洪泛。
所述通告控制开关命名为 ospf address { announce | forward } ; 其中, ospf address announce用于控制 32位 IP地址的通告; ospf IP地址转发 address forward用于控制 32位 IP地址的洪泛。
所述根据所述通告控制开关所表明的状态, 针对封装有 IP地址的 LSA 11进行 IP地址的通告或洪泛, 包括:
当所述通告控制开关处于 ospf address announce状态时,路由器进行 IP 地址的通告; 和 /或,
当所述通告控制开关处于 ospf address forward状态时, 路由器进行 IP 地址的洪泛。
所述路由器进行 IP地址的通告为: 路由器将需要通告的 32位 IP地址 打包在 LSA 11中, 并将打包后的 LSA 11发送到邻居路由器。
所述路由器进行 IP地址的洪泛为: 路由器将收到的 LSA 11洪泛至邻 居路由器。
所述进行 IP地址的通告之前, 所述方法还包括: 路由器判断邻居路由 器是否具有不透明 opaque能力, 自身是否具有 opaque能力以及自身设置的 通告控制开关是否处于 announce状态,并确认邻居路由器具有 opaque能力, 且自身具有 opaque能力以及自身设置的通告控制开关处于 announce状态; 和 /或,
所述进行 IP地址的洪泛之前, 所述方法还包括: 路由器判断自身是否 具有 opaque能力, 自身设置的通告控制开关是否处于 forward状态, 并确 认自身具有 opaque能力, 且自身设置的通告控制开关处于 forward状态。
本发明实施例还提供了一种实现 IP地址通告的装置, 所述装置为路由 器; 所述装置包括: 通告开关控制模块及通告模块; 其中,
所述通告开关控制模块, 配置为控制 LSA 11的通告和洪泛;
所述通告模块, 配置为根据所述通告开关控制模块所表明的状态, 针 对封装有 IP地址的 LSA 11进行 IP地址的通告或洪泛。
所述通告开关控制模块命名为 ospf address { announce | forward } ; 其 中, ospf address announce用于控制 32位 IP地址的通告; ospf address forward 用于控制 32位 IP地址的洪泛。
所述通告模块, 配置为: 当所述通告开关控制模块处于 ospf address announce状态时, 进行 IP地址的通告; 和 /或, 当所述通告开关控制模块处 于 ospf address forward ^犬态时, 进行 IP地址的洪泛。
所述进行 IP地址的通告为: 将需要通告的 32位 IP地址打包在 LSA 11 中, 并将该 LSA 11发送到邻居路由器。
所述进行 IP地址的洪泛为: 将收到的 LSA 11洪泛至邻居路由器。 所述通告模块包括 IP地址通告单元和 /或 IP地址洪泛单元; 其中, 所述 IP地址通告单元配置为执行涉及所述 IP地址通告的操作; 所述 IP地址洪泛单元配置为执行涉及所述 IP地址洪泛的操作。
所述 IP地址通告单元还配置为: 进行 IP地址的通告之前, 判断邻居路 由器是否具有 opaque能力, 自身所处的路由器是否具有 opaque能力以及所 述通告开关控制模块是否处于 announce 状态, 并确认邻居路由器具有 opaque能力, 且自身所处的路由器具有 opaque能力以及自身所处的路由器 中所设置的通告控制开关处于 announce状态; 和 /或,
所述 IP地址洪泛单元还配置为: 进行 IP地址的洪泛之前, 判断自身所 处的路由器是否具有 opaque能力,所述通告开关控制模块是否处于 forward 状态, 并确认自身所处的路由器具有 opaque能力, 且所述通告开关控制模 块处于 forward ^犬态。
本发明实施例又提供了一种计算机存储介质, 所述计算机存储介质包 括一组指令, 当执行所述指令时, 引起至少一个处理器执行上述的实现 IP 地址通告的方法。
本发明实施例实现 IP地址通告的技术, 能够在任何接口类型下进行 32 位 IP地址的通告, IP地址可以来自路由器自身的接口 IP地址, 也可以来 自路由器所配置的地址池中的 IP地址。 本发明实施例克服了现有技术中必 须将路由器之间的接口类型配置为 PTMP才能通告 IP地址的限制, 也克服 了仅能通告路由器自身的环回接口 IP地址的限制。 附图说明
图 1为本发明实施例实现 IP地址通告的网络拓朴图;
图 2为本发明实施例实现 IP地址通告的 "^文结构示意图;
图 3为本发明实施例的不透明 (Opaque )类型字段示意图;
图 4为本发明实施例的 Opaque信息字段示意图;
图 5为本发明实施例实现 IP地址通告的流程简图;
图 6为本发明实施例实现 IP地址通告的装置结构示意图。 具体实施方式
总体而言, 可以通过扩充 OSPF协议中的 AS-scoped Opaque LSA (即 前述的 LSA 11 ) 实现 32位 IP地址的通告。 LSA 11的基本框架已经存在, 它的洪泛范围是整个 OSPF域。
LSA 11能够携带 OSPF或者其他业务的非路由信息, 用于具体业务的 应用及相关场景。 因为 AS-scoped Opaque LSA 的产生受控于源路由器的 opaque能力 (洪泛抑制能力)。 如果源路由器不具有 opaque能力, 就不会 产生 LSA 11, 那么就不会通告相应的数据, 因此如果将需要通告的地址信 息 (如 32为 IP地址信息 )携带在 LSA 11里, 就可以实现范围可控的 32 位 IP地址通告。
AS-scoped Opaque LSA的洪泛受控于邻居路由器的 opaque能力。 如果 邻居路由器不具有 opaque能力, 那么建立链接过程中发生报文交互时, 源 路由器会得知邻居路由器不具有 opaque能力, 因此不会把相应数据洪泛给 邻居路由器。
路由器是否具有 opaque能力与路由器中设置的一个使能开关相关, 该 使能开关为 Opaque能力开关。 Opaque能力开关目前可以总体控制三种类 型的 LSA ( LSA 9、 LSA 10, LSA 11 ) 的产生和洪泛。
在实际应用中, 还可以在路由器中增加一个通告控制开关, 以具体控 制 AS-scoped Opaque LSA的通告和洪泛。 可以将所述通告控制开关命名为 ospf address { announce | forward }。 其中, ospf IP 地址通告 ( address announce )用于控制 32位 IP地址的通告; ospf IP地址转发( address forward ) 用于控制 32位 IP地址的洪泛。 总体而言, 当所述通告控制开关处于 ospf address announce状态时, 可以进行 32位 IP地址的通告; 当所述通告控制 开关处于 ospf address forward状态时, 可以进行 32位 IP地址的洪泛。
针对路由器完成上述设置之后, 当路由器作为源路由器时, 在源路由 器启动并接入网络后, 可以通过 OSPF的建链报文(hello报文)发现邻居 关系, 据此判断邻居路由器是否使能了 opaque能力。 如果邻居路由器没有 使能 opaque能力 (即邻居路由器不具有 opaque能力), 则源路由器不进行 AS-scoped Opaque LSA的通告; 如果邻居路由器使能了 opaque能力 (即邻 居路由器具有 opaque能力), 源路由器则判断自身是否具有 opaque能力以 及自身设置的所述通告控制开关是否处于 announce状态, 如果源路由器具 有 opaque能力并且所述通告控制开关处于 announce状态,则源路由器将需 要通告的 32位 IP地址打包在 AS-scoped Opaque LSA中,并将该 AS-scoped Opaque LSA发送到邻居路由器。
具体的 AS-scoped Opaque LSA结构如图 2至 4所示。 图 2中, Opaque 类型 ( Type )字段填充图 3所示的 Opaque类型值, 5是本发明实施例新增 的 Opaque类型值。 Opaque信息 (Information ) 字段填充图 4所示的 IP地 址, 该 IP地址作为 Opaque信息的报文封装格式。
当路由器作为目的路由器时, 目的路由器收到具有如图 2、 图 3和图 4 所示报文结构的 AS-scoped Opaque LSA后,判断自身是否具有 opaque能力, 如果目的路由器不具有 opaque能力, 则丟弃收到的所述 AS-scoped Opaque LSA。
如果目的路由器具有 opaque能力,则目的路由器加载收到的 AS-scoped Opaque LSA中的 32位 IP地址。 之后, 目的路由器判断自身设置的所述通 告控制开关是否处于 forward状态, 如果是 forward状态, 则目的路由器将 收到的 AS-scoped Opaque LSA洪泛至邻居路由器; 如果不是 forward状态, 贝1 J不进行洪泛。
可见,通过前述的控制开关的设置,以及路由器针对 AS-scoped Opaque
LSA的发送、 接收和洪泛过程, 就实现了 32位 IP地址的通告。
以图 1 为例, 假设有四个路由器, 分别为 Rl、 R2、 R3、 R4, 且分别 存在以下设置:
1上酉己置: 支持 opaque能力, ospf address announce 态;
R2上配置: 不支持 opaque能力;
R3上配置: 支持 opaque能力;
4上酉己置: 支持 opaque能力, ospf address forward 态。
首先, Rl、 R2、 R3、 R4可以根据网络拓朴建立邻居关系。
1可以将需要通告的 32位 IP地址 (如自身配置的所有 IP地址)封装 到 AS-scoped Opaque LSA的数据区中。
1发现 R4支持 opaque能力, 而 R2不支持 opaque能力; 因此 R1将 所述 AS-scoped Opaque LSA通过 OSPF协议 ^艮文洪泛给 R4, 而不洪泛给
R2。
4收到 R1洪泛的 AS-scoped Opaque LSA之后, 判断自身具有 opaque 能力, 则将 R1在该 AS-scoped Opaque LSA的数据区中所封装的 32位 IP 地址加载到 R4的应用模块中。
R4判断自身处于 ospf address forward状态, 并且获知相邻的 R3具有 opaque能力, 因此 R4将所述 AS-scoped Opaque LSA洪泛给 R3。
3收到 R4洪泛的 AS-scoped Opaque LSA之后, 判断自身具有 opaque 能力, 则将该 AS-scoped Opaque LSA的数据区中封装的 32位 IP地址加载 到 R3的应用模块中。
R3判断自身不处于 ospf address forward状态, 因此不再针对 R4洪泛 的 AS-scoped Opaque LSA进行后续的洪泛。
经过上述操作后, R3和 R4获取了 R1上配置的 32位 IP地址。
需要说明的是, 可以将所述通告控制开关的具体数据记录于参数配置 表等表项中, 这样就可以通过对相应表项的查询获知路由器当前的通告控 制开关处于 announce状态还是 forward状态。上述内容以 32为 IP地址为例, 实际上也可以是其它位的 IP地址。
结合以上描述可知, 本发明实施例实现 IP地址通告的操作思路可以表 示如图 5所示的流程, 该流程包括以下步骤:
步骤 510:在路由器中增加控制 LSA 11的通告和洪泛的通告控制开关; 步骤 520:路由器根据所述通告控制开关所表明的状态,针对封装有 IP 地址的 LSA 11进行 IP地址的通告或洪泛。
综合以上描述可知, 本发明实施例实现 IP地址通告的装置, 位于路由 器中, 如图 6所示, 该装置包括: 通告开关控制模块 61及通告模块 62; 其 中,
通告开关控制模块 61, 配置为控制 LSA 11的通告和洪泛;
通告模块 62, 用于根据通告开关控制模块 61所表明的状态,针对封装 有 IP地址的 LSA 11进行 IP地址的通告和 /或洪泛。
具体地, 通告开关控制模块 61 可以命名为 ospf address { announce | forward } ; 其中, ospf address announce用于控制 32位 IP地址的通告; ospf address forward用于控制 32位 IP地址的洪泛。
相应地, 通告模块 62, 具体用于: 当所述通告开关控制模块 61 处于 ospf address announce 犬态时, 进行 IP地址的通告; 和 /或, 当所述通告开 关控制模块 61处于 ospf address forward状态时, 进行 IP地址的洪泛。 所述通告模块包括 IP地址通告单元和 /或 IP地址洪泛单元; 其中, 所述 IP地址通告单元配置为执行涉及所述 IP地址通告的操作; 所述 IP地址洪泛单元配置为执行涉及所述 IP地址洪泛的操作。
其中, 所述 IP地址通告单元, 还配置为进行 IP地址的通告之前, 判断 邻居路由器是否具有不透明 opaque能力, 自身所在路由器是否具有 opaque 能力以及所述通告开关控制模块 61是否处于 announce状态,并确认邻居路 由器具有 opaque能力,且自身所处路由器具有 opaque能力以及所述通告开 关控制模块 61处于 announce状态。
所述 IP地址洪泛单元,还配置为进行 IP地址的洪泛之前, 判断自身所 处路由器是否具有 opaque能力,所述通告开关控制模块 61是否处于 forward 状态, 并确认自身所处的路由器具有 opaque能力, 且所述通告开关控制模 块 61处于 forward状态。
实际应用时,通告开关控制模块 61可以实现 IP地址通告的装置中的模 拟开关或控制开关等实现,通告模块 62可以由实现 IP地址通告的装置中的 中央处理器(CPU, Central Processing Unit ),数字信号处理器(DSP, Digital Signal Processor ) 或可编程逻辑阵列 ( FPGA, Field - Programmable Gate Array )结合收发机实现;判断模块可以由实现 IP地址通告的装置中的 CPU、 DSP或 FPGA实现。
综上所述可见,无论是方法还是装置,本发明实现 IP地址通告的技术, 能够在任何接口类型下进行 32位 IP地址的通告, IP地址可以来自路由器 自身的接口 IP地址, 也可以来自路由器所配置的地址池中的 IP地址。本发 明克服了现有技术中必须将路由器之间的接口类型配置为 PTMP才能通告 IP地址的限制, 也克服了仅能通告路由器自身的环回接口 IP地址的限制。
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可釆用硬件实施例、 软件实施例、 或结 合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个或多个其 中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器和光学存储器等 )上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程 图和 /或方框图中的每一流程和 /或方框、以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的步骤。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。

Claims

权利要求书
1、 一种实现 IP地址通告的方法, 在路由器中增加控制链路状态广播 LSA 11的通告和洪泛的通告控制开关; 所述方法还包括:
路由器根据所述通告控制开关所表明的状态, 针对封装有 IP 地址的 LSA 11进行 IP地址的通告或洪泛。
2、 根据权利要求 1所述的方法, 其中, 所述通告控制开关命名为 ospf address { announce | forward } ; 其中, 开放式最短路径优先地址通告 ospf address announce 用于控制 32位 IP地址的通告; ospf 地址转发 address forward用于控制 32位 IP地址的洪泛。
3、 根据权利要求 2所述的方法, 其中, 所述根据所述通告控制开关所 表明的状态, 针对封装有 IP地址的 LSA 11进行 IP地址的通告或洪泛, 包 括:
当所述通告控制开关处于 ospf address announce状态时,路由器进行 IP 地址的通告; 和 /或,
当所述通告控制开关处于 ospf address forward状态时, 路由器进行 IP 地址的洪泛。
4、 根据权利要求 3所述的方法, 其中,
所述路由器进行 IP地址的通告为: 路由器将需要通告的 32位 IP地址 打包在 LSA 11中, 并将打包后的 LSA 11发送到邻居路由器。
5、 根据权利要求 3所述的方法, 其中,
所述路由器进行 IP地址的洪泛为: 路由器将收到的 LSA 11洪泛至邻 居路由器。
6、根据权利要求 2至 5任一项所述的方法, 其中, 所述进行 IP地址的 通告之前, 所述方法还包括:
路由器判断邻居路由器是否具有不透明 opaque 能力, 自身是否具有 opaque能力以及自身设置的通告控制开关是否处于 announce状态, 并确认 邻居路由器具有 opaque能力,且自身具有 opaque能力以及自身设置的通告 控制开关处于 announce 态; 和 /或,
所述进行 IP地址的洪泛之前, 所述方法还包括:
路由器判断自身是否具有 opaque能力, 自身设置的通告控制开关是否 处于 forward状态, 并确认自身具有 opaque能力, 且自身设置的通告控制 开关处于 forward ^犬态。
7、 一种实现 IP地址通告的装置, 所述装置为路由器; 所述装置包括: 通告开关控制模块及通告模块; 其中,
所述通告开关控制模块, 配置为控制 LSA 11的通告和洪泛;
所述通告模块, 配置为根据所述通告开关控制模块所表明的状态, 针 对封装有 IP地址的 LSA 11进行 IP地址的通告或洪泛。
8、 根据权利要求 7所述的装置, 其中, 所述通告开关控制模块命名为 ospf address { announce | forward } ; 其中, ospf address announce用于控制 32位 IP地址的通告; ospf address forward用于控制 32位 IP地址的洪泛。
9、 根据权利要求 8所述的装置, 其中,
所述通告模块, 配置为: 当所述通告开关控制模块处于 ospf address announce状态时, 进行 IP地址的通告; 和 /或, 当所述通告开关控制模块处 于 ospf address forward ^犬态时, 进行 IP地址的洪泛。
10、 根据权利要求 9所述的装置, 其中,
所述进行 IP地址的通告为: 将需要通告的 32位 IP地址打包在 LSA 11 中, 并将打包后的 LSA 11发送到邻居路由器。
11、 根据权利要求 9所述的装置, 其中,
所述进行 IP地址的洪泛时为: 将收到的 LSA 11洪泛至邻居路由器。
12、 根据权利要求 8至 11任一项所述的装置, 其中, 所述通告模块包 括 IP地址通告单元和 /或 IP地址洪泛单元; 其中,
所述 IP地址通告单元配置为执行涉及所述 IP地址通告的操作; 所述 IP地址洪泛单元配置为执行涉及所述 IP地址洪泛的操作。
13、 根据权利要求 11所述的装置, 其中,
所述 IP地址通告单元还配置为: 进行 IP地址的通告之前, 判断邻居路 由器是否具有 opaque能力, 自身所处的路由器是否具有 opaque能力以及所 述通告开关控制模块是否处于 announce 状态, 并确认邻居路由器具有 opaque能力, 自身所处的路由器具有 opaque能力以及所述通告开关控制模 块处于 announce状态; 和 /或,
所述 IP地址洪泛单元还配置为: 进行 IP地址的洪泛之前, 判断自身所 处的路由器是否具有 opaque能力,所述通告开关控制模块是否处于 forward 状态, 并确认自身所处的路由器具有 opaque能力, 且所述通告开关控制模 块处于 forward ^犬态。
14、 一种计算机存储介质, 所述计算机存储介质包括一组指令, 当执 行所述指令时, 引起至少一个处理器执行所述如权利要求 1至 6任一项所 述的实现 IP地址通告的方法。
PCT/CN2014/074766 2013-04-09 2014-04-03 一种实现ip地址通告的方法、装置及计算机存储介质 WO2014166356A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US14/781,830 US9832100B2 (en) 2013-04-09 2014-04-03 Method, device, and computer storage medium for implementing IP address advertisement
EP14783356.0A EP2985967B1 (en) 2013-04-09 2014-04-03 Method, device, and computer storage medium for implementing ip address advertisement

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310121432.3A CN104104598B (zh) 2013-04-09 2013-04-09 一种实现ip地址通告的方法和装置
CN201310121432.3 2013-04-09

Publications (1)

Publication Number Publication Date
WO2014166356A1 true WO2014166356A1 (zh) 2014-10-16

Family

ID=51672410

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/074766 WO2014166356A1 (zh) 2013-04-09 2014-04-03 一种实现ip地址通告的方法、装置及计算机存储介质

Country Status (4)

Country Link
US (1) US9832100B2 (zh)
EP (1) EP2985967B1 (zh)
CN (1) CN104104598B (zh)
WO (1) WO2014166356A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506438A (zh) * 2015-01-09 2015-04-08 烽火通信科技股份有限公司 一种dcn自通的方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1350387A (zh) * 2000-10-23 2002-05-22 阿尔卡塔尔公司 指示电信网络节点具体处理能力的方法
CN101155135A (zh) * 2006-09-28 2008-04-02 华为技术有限公司 一种泛洪自治系统边界路由器能力信息的方法及装置
CN102457407A (zh) * 2010-10-30 2012-05-16 华为技术有限公司 检测自治系统内ip地址冲突的方法及设备
US20130077476A1 (en) * 2011-09-27 2013-03-28 Telefonaktiebolaget L M Ericsson (Publ) Incremental Deployment of MRT Based IPFRR

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6944159B1 (en) 2001-04-12 2005-09-13 Force10 Networks, Inc. Method and apparatus for providing virtual point to point connections in a network
US7742431B2 (en) * 2004-12-22 2010-06-22 Cisco Technology, Inc. Selectively sending link state messages in a network link state protocol based on interest of network nodes
CN103004147B (zh) * 2012-09-25 2015-07-08 华为技术有限公司 报文转发路径确定方法及网络设备、控制设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1350387A (zh) * 2000-10-23 2002-05-22 阿尔卡塔尔公司 指示电信网络节点具体处理能力的方法
CN101155135A (zh) * 2006-09-28 2008-04-02 华为技术有限公司 一种泛洪自治系统边界路由器能力信息的方法及装置
CN102457407A (zh) * 2010-10-30 2012-05-16 华为技术有限公司 检测自治系统内ip地址冲突的方法及设备
US20130077476A1 (en) * 2011-09-27 2013-03-28 Telefonaktiebolaget L M Ericsson (Publ) Incremental Deployment of MRT Based IPFRR

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2985967A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506438A (zh) * 2015-01-09 2015-04-08 烽火通信科技股份有限公司 一种dcn自通的方法及系统
CN104506438B (zh) * 2015-01-09 2017-06-20 烽火通信科技股份有限公司 一种dcn自通的方法及系统

Also Published As

Publication number Publication date
CN104104598A (zh) 2014-10-15
EP2985967B1 (en) 2019-11-20
EP2985967A4 (en) 2016-04-13
CN104104598B (zh) 2019-05-17
US20160043930A1 (en) 2016-02-11
US9832100B2 (en) 2017-11-28
EP2985967A1 (en) 2016-02-17

Similar Documents

Publication Publication Date Title
WO2021063232A1 (zh) 建立bier转发表项的方法、装置和系统
EP3863237B1 (en) Packet forwarding method, packet transmission device, and packet reception device
EP3103230B1 (en) Software defined networking (sdn) specific topology information discovery
CN108737128B (zh) 一种实现带内操作管理维护ioam的方法及装置
JP5992602B2 (ja) IPv6ネットワークにおいてラベル配布プロトコル(LDP)を使用するためのシステムおよび方法
EP2548341B1 (en) Alternate down paths for directed acyclic graph (dag) routing
WO2016188501A1 (zh) 一种实现比特位索引显示复制的方法及比特位转发路由器
WO2018072704A1 (zh) 报文传输方法、装置、节点和计算机存储介质
EP3382955A1 (en) Service function chaining (sfc) communication method and device
WO2009111959A1 (zh) 路由安装、发布方法和设备
WO2015055016A1 (zh) 网元设备配置和管理方法、装置及网元设备
WO2018214809A1 (zh) 消息发送方法及装置、存储介质
WO2015024524A1 (zh) 转发邻接链路的发布方法
WO2015021832A1 (zh) 一种转发mpls数据包的方法及装置
KR101699643B1 (ko) 다중 프로토콜 라벨 스위칭에 기반한 oam 방법 및 장치
WO2021143279A1 (zh) 段路由业务处理方法和装置、路由设备及存储介质
CN107040441B (zh) 跨数据中心的数据传输方法、装置及系统
WO2018010658A1 (zh) 一种位索引显式复制信息传递方法及装置
WO2022021818A1 (zh) 数据报文的处理方法及装置、存储介质、电子装置
JP2016514934A (ja) 他のネットワークデバイスから受信したサイト−タイプ属性に基づくトンネル確立制御を備えたネットワークデバイス
CN107786442B (zh) 一种元数据的传输方法及装置
WO2021036482A1 (zh) 一种实现报文传输的方法及装置
WO2017140238A1 (zh) 一种报文传输方法及装置
WO2014166356A1 (zh) 一种实现ip地址通告的方法、装置及计算机存储介质
WO2018040941A1 (zh) 一种元数据的传输方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14783356

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14781830

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2014783356

Country of ref document: EP