[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104065578B - IP router processing method and device based on ASON optical network - Google Patents

IP router processing method and device based on ASON optical network Download PDF

Info

Publication number
CN104065578B
CN104065578B CN201410306952.6A CN201410306952A CN104065578B CN 104065578 B CN104065578 B CN 104065578B CN 201410306952 A CN201410306952 A CN 201410306952A CN 104065578 B CN104065578 B CN 104065578B
Authority
CN
China
Prior art keywords
routing
backbone router
backbone
ason
network
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201410306952.6A
Other languages
Chinese (zh)
Other versions
CN104065578A (en
Inventor
彭伟
刘宇靖
王宝生
孙志刚
胡晓峰
赵锋
王小峰
邓文平
王飞
杨博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
National University of Defense Technology
Original Assignee
National University of Defense Technology
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 National University of Defense Technology filed Critical National University of Defense Technology
Priority to CN201410306952.6A priority Critical patent/CN104065578B/en
Publication of CN104065578A publication Critical patent/CN104065578A/en
Application granted granted Critical
Publication of CN104065578B publication Critical patent/CN104065578B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供一种基于ASON光网络的IP路由处理方法和装置,在ASON光网络上构建一个广播子网,则该方法包括:第一IP骨干路由器接收第一接入网发送的IP分组;根据IP分组中的IP目的地址,按照最长前缀匹配原则,查询本地路由信息库,若与IP目的地址匹配的路由表项的数量为多项时,则从多项路由表项中选择一个路由表项作为最优的路由表项,并以通告最优路由表项的IP骨干路由器作为第二IP骨干路由器;查询本地骨干路由器表,若存在第一IP骨干路由器到第二IP骨干路由器的ASON连接标识,则根据ASON连接标识,将IP分组通过该ASON连接发送给第二IP骨干路由器,以使得第二IP骨干路由器将接收到的IP分组发送到第二接入网中。

The present invention provides a kind of IP route processing method and device based on ASON optical network, build a broadcast subnet on ASON optical network, then this method comprises: the first IP backbone router receives the IP grouping sent by the first access network; The IP destination address in the IP packet, according to the longest prefix matching principle, queries the local routing information base, if the number of routing table entries matching the IP destination address is multiple, select a routing table from the multiple routing table entries entry as the optimal routing table entry, and the IP backbone router that advertises the optimal routing table entry as the second IP backbone router; query the local backbone router table, if there is an ASON connection from the first IP backbone router to the second IP backbone router ID, then according to the ASON connection ID, send the IP packet to the second IP backbone router through the ASON connection, so that the second IP backbone router sends the received IP packet to the second access network.

Description

一种基于ASON光网络的IP路由处理方法和装置An IP routing processing method and device based on ASON optical network

技术领域technical field

本发明涉及通信技术,尤其涉及一种基于ASON光网络的IP路由处理方法和装置。The invention relates to communication technology, in particular to an ASON optical network-based IP routing processing method and device.

背景技术Background technique

目前,互联网在路由结构上,可以分为域间(Inter-domain)和域内(Intra-domain)两个层次。针对域间层次,互联网由多个自治系统(Autonomous System;简称:AS)构成。其中,每个自治系统是一个独立的管理域,由具有相同的路由策略的一组路由器和其他网络设备相互连接构成,通常被某一个因特网服务提供商(Internet ServiceProvider;简称:ISP)拥有。另外,每个自治系统对应有一个编号,可以称为AS号,该AS号为一个无符号整数。该自治系统内运行域内路由协议或者域间路由协议;举例来说,该域内路由协议为开放式最短路径优先(Open Shortest Path First;简称:OSPF)或者中间系统到中间系统的路由选择协议(Intermediate System to Intermediate System RoutingProtocol;简称:IS-IS)。该域间路由协议为边界网关协议(Border Gateway Protocol;简称:BGP)。Currently, the Internet can be divided into two levels in terms of routing structure: Inter-domain and Intra-domain. For the inter-domain level, the Internet is composed of multiple autonomous systems (Autonomous Systems; AS for short). Wherein, each autonomous system is an independent management domain, which is composed of a group of routers and other network devices with the same routing policy connected to each other, and is usually owned by a certain Internet Service Provider (Internet Service Provider; ISP for short). In addition, each autonomous system corresponds to a number, which may be called an AS number, and the AS number is an unsigned integer. An intra-domain routing protocol or an inter-domain routing protocol is run in the autonomous system; for example, the intra-domain routing protocol is Open Shortest Path First (Open Shortest Path First; System to Intermediate System Routing Protocol; Abbreviation: IS-IS). The inter-domain routing protocol is Border Gateway Protocol (Border Gateway Protocol; BGP for short).

具体的,BGP负责在自治系统之间交换路由消息,选择到达目的网络的最佳AS路径。对每个目的网络,BGP路由器向邻居路由器通告包含多个属性的路由信息。其中,每个目的网络由一个IP地址前缀来表示,包含一个32位的IP地址和地址掩码长度。每个目的网络的路由信息包含AS路径(AS_PATH)、下一跳(NEXT_HOP)、路由源(ORIGIN)、MED(Multiple-Exit-Discriminator)等属性。所有这些属性都可能影响路由选择决策。在每个路由更新消息中,AS_PATH、NEXT_HOP和ORIGIN属性是强制要求的。另外,通过使用AS级的路径,BGP隐藏了每个AS内部的拓扑和路由细节信息,保证了该协议的可扩展性。Specifically, BGP is responsible for exchanging routing messages between autonomous systems and selecting the best AS path to the destination network. For each destination network, a BGP router advertises routing information including multiple attributes to neighboring routers. Wherein, each destination network is represented by an IP address prefix, including a 32-bit IP address and address mask length. The routing information of each destination network includes attributes such as AS path (AS_PATH), next hop (NEXT_HOP), routing source (ORIGIN), and MED (Multiple-Exit-Discriminator). All of these attributes can affect routing decisions. In every routing update message, the AS_PATH, NEXT_HOP and ORIGIN attributes are mandatory. In addition, by using AS-level paths, BGP hides the internal topology and routing details of each AS, ensuring the scalability of the protocol.

同时,BGP还可以进一步进行增量式更新,即只有当路由发生变化后才会生成和通告路由更新消息。另外,BGP还允许灵活的路由策略,即除了可以基于最短AS路径长度选择路由外,路由器还可以应用复杂的策略来影响每个目的网络最佳路由的选择,以及是否将选择的路由通告给邻居节点。这种策略的灵活性增加了BGP路由选择的复杂性。At the same time, BGP can further perform incremental updates, that is, route update messages will be generated and notified only when routes change. In addition, BGP also allows flexible routing policies, that is, in addition to selecting routes based on the shortest AS path length, routers can also apply complex policies to affect the selection of the best route for each destination network, and whether to advertise the selected route to neighbors node. The flexibility of this strategy increases the complexity of BGP route selection.

但是,互联网域间路由系统是一个大的分布式系统,路由信息的传播具有级联(cascading)效应。由于BGP和互联网拓扑结构的复杂性,使得这种级联效应可能会给互联网带来灾难性的影响,例如:在域间链路受到攻击时,可能会导致BGP会话中断,并进一步通过级联效应导致互联网的崩溃。因此,目前互联网亟需要一种路由协议系统,以使得互联网更为安全。However, the Internet inter-domain routing system is a large distributed system, and the propagation of routing information has a cascading effect. Due to the complexity of BGP and the Internet topology, this cascading effect may have a catastrophic impact on the Internet. For example, when the inter-domain link is attacked, it may cause the interruption of the BGP session and further pass the cascade The effect caused the collapse of the Internet. Therefore, at present, the Internet urgently needs a routing protocol system to make the Internet more secure.

发明内容Contents of the invention

本发明提供一种基于ASON光网络的IP路由处理方法和装置,用于解决现有技术中采用BGP而导致的互联网不稳定的问题,有效地提高了互联网的安全性。The invention provides an ASON optical network-based IP routing processing method and device, which are used to solve the problem of Internet instability caused by adopting BGP in the prior art, and effectively improve the security of the Internet.

本发明的第一个方面是提供一种基于ASON光网络的IP路由处理方法,在所述ASON光网络上构建一个广播子网,则所述方法包括:First aspect of the present invention provides a kind of IP route processing method based on ASON optical network, constructs a broadcast subnet on described ASON optical network, then described method comprises:

第一IP骨干路由器接收与所述第一IP骨干路由器连接的第一接入网发送的IP分组;The first IP backbone router receives the IP packet sent by the first access network connected to the first IP backbone router;

所述第一IP骨干路由器根据所述IP分组中的IP目的地址,按照最长前缀匹配原则,查询本地路由信息库,若与所述IP目的地址匹配的路由表项的数量为多项时,则从多项路由表项中选择一个路由表项作为最优的路由表项,并以通告所述最优路由表项的IP骨干路由器作为第二IP骨干路由器;The first IP backbone router queries the local routing information base according to the IP destination address in the IP group according to the longest prefix matching principle, and if the number of routing table entries matching the IP destination address is multiple, Then select a routing table item as the optimal routing table item from a plurality of routing table items, and use the IP backbone router of the optimal routing table item as the second IP backbone router;

所述第一IP骨干路由器查询本地骨干路由器表,若存在所述第一IP骨干路由器到所述第二IP骨干路由器的ASON连接标识,则根据所述ASON连接标识,将所述IP分组通过所述ASON连接标识对应的ASON连接发送给所述第二IP骨干路由器,以使得所述第二IP骨干路由器将接收到的所述IP分组发送到与所述第二IP骨干路由器连接的第二接入网中。The first IP backbone router queries the local backbone router table, and if there is an ASON connection identifier from the first IP backbone router to the second IP backbone router, according to the ASON connection identifier, the IP packet is passed through the The ASON connection corresponding to the ASON connection identifier is sent to the second IP backbone router, so that the second IP backbone router sends the received IP packet to the second interface connected to the second IP backbone router into the network.

本发明的另一个方面是提供一种基于ASON光网络的IP路由处理装置,在所述ASON光网络上构建一个广播子网,则该装置包括:Another aspect of the present invention provides a kind of IP route processing device based on ASON optical network, constructs a broadcast subnet on described ASON optical network, then this device comprises:

接入网路由模块,用于接收与所述IP路由处理装置连接的第一接入网发送的IP分组;An access network routing module, configured to receive IP packets sent by the first access network connected to the IP routing processing device;

骨干网路由模块,用于根据所述IP分组中的IP目的地址,按照最长前缀匹配原则,查询本地路由信息库,若与所述IP目的地址匹配的路由表项的数量为多项时,则从多项路由表项中选择一个路由表项作为最优的路由表项,并以通告所述最优路由表项的IP骨干路由器作为第二IP骨干路由器;The backbone network routing module is used to query the local routing information base according to the IP destination address in the IP packet according to the longest prefix matching principle. If the number of routing table entries matched with the IP destination address is multiple, Then select a routing table item as the optimal routing table item from a plurality of routing table items, and use the IP backbone router of the optimal routing table item as the second IP backbone router;

所述骨干路由模块还用于查询本地骨干路由器表,判断是否存在所述IP路由处理装置到所述第二IP骨干路由器的ASON连接标识;The backbone routing module is also used to query the local backbone router table to determine whether there is an ASON connection identifier from the IP routing processing device to the second IP backbone router;

光传送模块,用于若所述骨干路由模块判断出存在所述IP路由处理装置到所述第二IP骨干路由器的ASON连接标识,则根据所述ASON连接标识,将所述IP分组通过所述ASON连接标识对应的ASON连接发送给所述第二IP骨干路由器,以使得所述第二IP骨干路由器将接收到的所述IP分组发送到与所述第二IP骨干路由器连接的第二接入网中。an optical transmission module, configured to pass the IP packet through the sending the ASON connection corresponding to the ASON connection identifier to the second IP backbone router, so that the second IP backbone router sends the received IP packet to the second access link connected to the second IP backbone router in the net.

本发明的技术效果是:通过第一IP骨干路由器接收与该第一IP骨干路由器连接的第一接入网发送的IP分组,根据该IP分组中的IP目的地址,按照最长前缀匹配原则,查询本地路由信息库,若与该IP目的地址匹配的路由表项的数量为多项时,则从多项路由表项中选择一个路由表项作为最优的路由表项,并以通告该最优路由表项的IP骨干路由器作为第二IP骨干路由器;查询本地骨干路由器表,若存在该第一IP骨干路由器到该第二IP骨干路由器的ASON连接标识,则根据该ASON连接标识,将该IP分组发送给该第二IP骨干路由器,以使得该第二IP骨干路由器将接收到的该IP分组发送到与该第二IP骨干路由器连接的第二接入网中。由于该IP分组可以从源用户终端所在的接入网通过一条ASON连接直接传送到目的用户终端所在的接入网,因此有效地减少了IP分组传输路径的跳数,减少了在IP路由器上的光电转换操作,从而将减小IP分组传输延迟,并减小IP分组在中间路由器上排队带来的延迟抖动,进而解决了现有技术中采用BGP而导致的互联网不稳定的问题,有效地提高了互联网的健壮性。The technical effect of the present invention is: receive the IP grouping sent by the first access network connected with the first IP backbone router through the first IP backbone router, according to the IP destination address in the IP grouping, according to the longest prefix matching principle, Query the local routing information base, if there are multiple routing table entries matching the IP destination address, select a routing table entry from the multiple routing table entries as the optimal routing table entry, and notify the optimal routing table entry The IP backbone router of the optimal routing table item is used as the second IP backbone router; query the local backbone router table, if there is an ASON connection identifier from the first IP backbone router to the second IP backbone router, then according to the ASON connection identifier, the The IP packet is sent to the second IP backbone router, so that the second IP backbone router sends the received IP packet to a second access network connected to the second IP backbone router. Since the IP packet can be directly transmitted from the access network where the source user terminal is located to the access network where the destination user terminal is via an ASON connection, the number of hops in the transmission path of the IP packet is effectively reduced, and the traffic on the IP router is reduced. Photoelectric conversion operation, thereby reducing the delay of IP packet transmission, and reducing the delay jitter caused by IP packet queuing on the intermediate router, thereby solving the problem of Internet instability caused by the use of BGP in the prior art, and effectively improving robustness of the Internet.

附图说明Description of drawings

图1为本发明基于ASON光网络的IP路由处理方法所基于的ASON的IP网络的系统的结构示意图;Fig. 1 is the structural representation of the system of the IP network of ASON based on the IP routing processing method of ASON optical network of the present invention;

图2为本发明基于ASON光网络的IP路由处理方法的一个实施例的流程图;Fig. 2 is the flowchart of an embodiment of the IP route processing method based on ASON optical network of the present invention;

图3为本发明基于ASON光网络的IP路由处理方法的另一个实施例的流程图;Fig. 3 is the flow chart of another embodiment of the IP route processing method based on ASON optical network of the present invention;

图4为本发明基于ASON光网络的IP路由处理方法的又一个实施例的流程图;Fig. 4 is the flow chart of another embodiment of the IP route processing method based on ASON optical network of the present invention;

图5为本发明基于ASON光网络的IP路由处理装置的一个实施例的结构示意图。FIG. 5 is a schematic structural diagram of an embodiment of an ASON optical network-based IP routing processing device according to the present invention.

具体实施方式detailed description

图1为本发明基于ASON光网络的IP路由处理方法所基于的ASON的IP网络的系统的结构示意图,如图1所示,该系统包括:ASON光网络11、多台IP骨干路由器12、多个接入网13和多个用户终端14;其中,ASON光网络11和多台IP骨干路由器12共同充当了IP网络的系统的ASON骨干网。IP骨干路由器12将接入网13连接到ASON光网络11中。每一个接入网13至少通过一台IP骨干路由器12接入到ASON骨干网上,以使得用户终端14通过接入网13连接到ASON光网络11中。Fig. 1 is the structural representation of the system of the IP network of ASON based on the IP routing processing method of ASON optical network of the present invention, as shown in Fig. 1, this system comprises: ASON optical network 11, many IP backbone routers 12, multiple An access network 13 and a plurality of user terminals 14; wherein, the ASON optical network 11 and a plurality of IP backbone routers 12 act as the ASON backbone network of the IP network system. The IP backbone router 12 connects the access network 13 to the ASON optical network 11 . Each access network 13 is connected to the ASON backbone network through at least one IP backbone router 12 , so that user terminals 14 are connected to the ASON optical network 11 through the access network 13 .

同时,根据一定的网络规划,每一台IP骨干路由器12均与ASON骨干网上的其他某些骨干路由器12建立ASON永久连接。同时,称与某一台骨干路由器12存在ASON永久连接的骨干路由器12为它的固定邻居。永久连接的建立使得所有IP骨干路由器连接成为一个连通的网络,即任意一台骨干路由器12都可以通过由ASON永久连接构成的路径到达其他任意一台骨干路由器12。另外,该网络规划是根据网络规模和优化目标来实现的,其中,优化目标包括管理的复杂性、通信性能和容错能力等。该网络规划得到的网络拓扑可以是星型拓扑、全相连拓扑和层次拓扑等。At the same time, according to certain network planning, each IP backbone router 12 establishes ASON permanent connection with some other backbone routers 12 on the ASON backbone network. At the same time, the backbone router 12 that has an ASON permanent connection with a certain backbone router 12 is called its fixed neighbor. The establishment of the permanent connection makes all the IP backbone routers connected into a connected network, that is, any backbone router 12 can reach any other backbone router 12 through the path formed by the ASON permanent connection. In addition, the network planning is implemented according to the network scale and optimization objectives, wherein the optimization objectives include management complexity, communication performance, and fault tolerance. The network topology obtained by the network planning may be a star topology, a fully connected topology, and a hierarchical topology.

对于全相连拓扑,一台骨干路由器12上的IP路由信息可以直接分发给ASON骨干网上其他所有骨干路由器。在除了全相连拓扑之外的其他网络拓扑,例如星型拓扑或者层次拓扑等,还需要构建广播子网来分发网络路由信息(也可以称之为IP路由信息),该构建过程即是在网络中选择某些IP骨干路由器担当广播转发节点的过程。例如:在星型拓扑下,可以直接选择位于中心的骨干路由器作为广播转发节点。对于除了星型拓扑和全相连拓扑之外的其他网络拓扑,可以采用多点传递(Multi-point Relay)技术或者已有的最小连通支配集(Minimal Connected Dominating Set)算法来选择广播转发节点。For the fully connected topology, the IP routing information on one backbone router 12 can be directly distributed to all other backbone routers on the ASON backbone network. In other network topologies other than the fully connected topology, such as star topology or hierarchical topology, it is also necessary to build a broadcast subnet to distribute network routing information (also called IP routing information). The process of selecting some IP backbone routers to act as broadcast forwarding nodes. For example: under the star topology, you can directly select the backbone router at the center as the broadcast forwarding node. For network topologies other than star topology and fully connected topology, multi-point relay (Multi-point Relay) technology or existing Minimal Connected Dominating Set (Minimal Connected Dominating Set) algorithm can be used to select broadcast forwarding nodes.

还需要说明的是,每一台用户终端14至少有一个IP地址,代表其通信地址,例如:该IP地址具体为IPv4地址202.197.16.10。对于每一个接入网13有一个或多个IP地址前缀,代表接入网13中用户终端14所在的IP地址范围,例如:一个IPv4地址前缀为202.197.16.*/24,其中前缀长度为24。It should also be noted that each user terminal 14 has at least one IP address, representing its communication address, for example, the IP address is specifically the IPv4 address 202.197.16.10. There is one or more IP address prefixes for each access network 13, representing the IP address range where the user terminal 14 is located in the access network 13, for example: an IPv4 address prefix is 202.197.16.*/24, wherein the prefix length is twenty four.

图2为本发明基于ASON光网络的IP路由处理方法的一个实施例的流程图,在上述图1所示的基于ASON的IP网络的系统的基础上,在该ASON光网络上构建一个广播子网,如图2所示,本实施例的方法包括:Fig. 2 is the flow chart of an embodiment of the IP route processing method based on ASON optical network of the present invention, on the basis of the system based on the IP network of ASON shown in above-mentioned Fig. 1, construct a broadcast subnet on this ASON optical network Network, as shown in Figure 2, the method of the present embodiment comprises:

步骤101、第一IP骨干路由器接收与该第一IP骨干路由器连接的第一接入网发送的IP分组。Step 101, the first IP backbone router receives an IP packet sent by a first access network connected to the first IP backbone router.

在本实施例中,第一接入网中的源用户终端发送IP分组,以通过第一接入网中的IP路由器将该IP分组发送给与之连接的第一IP骨干路由器。In this embodiment, the source user terminal in the first access network sends the IP packet to send the IP packet to the first IP backbone router connected to it through the IP router in the first access network.

步骤102、第一IP骨干路由器根据该IP分组中的IP目的地址,按照最长前缀匹配原则,查询本地路由信息库,若与该IP目的地址匹配的路由表项的数量为多项时,则从多项路由表项中选择一个路由表项作为最优的路由表项,并以通告该最优路由表项的IP骨干路由器作为第二IP骨干路由器。Step 102, the first IP backbone router queries the local routing information base according to the IP destination address in the IP grouping according to the longest prefix matching principle, if the number of routing table entries matching the IP destination address is multiple, then Select a routing table item from multiple routing table items as the optimal routing table item, and use the IP backbone router that advertises the optimal routing table item as the second IP backbone router.

在本实施例中,每一个IP骨干路由器维护一个路由信息库,记录所有目的网络的路由信息。举例来说,第一IP骨干路由器的本地路由信息库包括:目的网络的IP地址前缀、通告该项路由信息的源骨干路由器的ID,路由度量值、路由有效期等。其中,目的网络的IP地址前缀包括IP地址以及地址掩码长度。In this embodiment, each IP backbone router maintains a routing information base, which records routing information of all destination networks. For example, the local routing information database of the first IP backbone router includes: the IP address prefix of the destination network, the ID of the source backbone router notifying the routing information, the routing metric value, and the validity period of the routing, etc. Wherein, the IP address prefix of the destination network includes an IP address and an address mask length.

步骤103、第一IP骨干路由器查询本地骨干路由器表,若存在该第一IP骨干路由器到该第二IP骨干路由器的ASON连接标识,则根据该ASON连接标识,将该IP分组通过该ASON连接标识对应的ASON连接发送给该第二IP骨干路由器,以使得该第二IP骨干路由器将接收到的该IP分组发送到与所述第二IP骨干路由器连接的第二接入网中。Step 103, the first IP backbone router queries the local backbone router table, if there is an ASON connection identifier from the first IP backbone router to the second IP backbone router, then according to the ASON connection identifier, the IP group is passed through the ASON connection identifier The corresponding ASON connection is sent to the second IP backbone router, so that the second IP backbone router sends the received IP packet to the second access network connected to the second IP backbone router.

在本实施例中,第二IP骨干路由器接收到IP分组后,将IP分组发送到第二接入网中,第二接入网按照传统的接入网路由方式将该IP分组传递到目的用户终端上。In this embodiment, after receiving the IP packet, the second IP backbone router sends the IP packet to the second access network, and the second access network delivers the IP packet to the destination user according to the traditional access network routing method on the terminal.

另外,在本实施例中,ASON骨干网中每一个IP骨干路由器分别用一个ID来表示,该ID可以为一个32位无符号整数。另外,每一个IP骨干路由器在ASON光网络中有一个标识,称为ASON标识。通过该ASON标识,对应的IP骨干路由器可以与另一IP骨干路由器之间建立ASON连接,并通过此连接进行数据传输。In addition, in this embodiment, each IP backbone router in the ASON backbone network is represented by an ID, and the ID may be a 32-bit unsigned integer. In addition, each IP backbone router has an ID in the ASON optical network, which is called the ASON ID. Through the ASON identifier, the corresponding IP backbone router can establish an ASON connection with another IP backbone router, and perform data transmission through this connection.

每一个IP骨干路由器以广播方式将它的ID以及它的ASON标识通告给ASON骨干网中的所有骨干路由器,以使得每一个IP骨干路由器维护一个骨干路由器表。举例来说,第一IP骨干路由器维护的本地骨干路由器表包括:第二IP骨干路由器的ID、第二IP骨干路由器的ASON标识,从该第一IP骨干路由器到第二IP骨干路由器的ASON连接标识,该ASON连接标识对应的生存期等。其中,ASON连接标识是ASON光网络系统中代表某一条连接的信息,通过该标识可以识别不同的ASON连接。该ASON连接标识对应的生存期表示一条ASON连接保持有效的时间。对于交换连接,其对应的生存期为一个32位正整数,表示ASON连接保持有效的剩余时间。Each IP backbone router notifies its ID and its ASON identifier to all backbone routers in the ASON backbone network in a broadcast manner, so that each IP backbone router maintains a backbone router table. For example, the local backbone router table maintained by the first IP backbone router includes: the ID of the second IP backbone router, the ASON identifier of the second IP backbone router, and the ASON connection from the first IP backbone router to the second IP backbone router. ID, the lifetime corresponding to the ASON connection ID, etc. Wherein, the ASON connection identifier is information representing a certain connection in the ASON optical network system, through which different ASON connections can be identified. The lifetime corresponding to the ASON connection identifier indicates the valid time of an ASON connection. For an exchange connection, its corresponding lifetime is a 32-bit positive integer, indicating the remaining time that the ASON connection remains valid.

在本实施例中,通过第一IP骨干路由器接收与该第一IP骨干路由器连接的第一接入网发送的IP分组,根据该IP分组中的IP目的地址,按照最长前缀匹配原则,查询本地路由信息库。若与该IP目的地址匹配的路由表项的数量为多项时,则从多项路由表项中选择一个路由表项作为最优的路由表项,并以通告该最优路由表项的IP骨干路由器作为第二IP骨干路由器;查询本地骨干路由器表,若存在该第一IP骨干路由器到该第二IP骨干路由器的ASON连接标识,则根据该ASON连接标识,将该IP分组发送给该第二IP骨干路由器,以使得该第二IP骨干路由器将接收到的该IP分组发送到与该第二IP骨干路由器连接的第二接入网中。由于该IP分组可以从源用户终端所在的接入网通过一条ASON连接直接传送到目的用户终端所在的接入网,因此有效地减少了IP分组传输路径的跳数,减少了在IP路由器上的光电转换操作,从而将减小IP分组传输延迟,并减小IP分组在中间路由器上排队带来的延迟抖动,进而解决了现有技术中采用BGP而导致的互联网不稳定的问题,有效地提高了互联网的健壮性。In this embodiment, the IP packet sent by the first access network connected to the first IP backbone router is received by the first IP backbone router, and according to the IP destination address in the IP packet, according to the longest prefix matching principle, query Local routing information base. If the number of routing table entries matching the IP destination address is multiple, select a routing table entry from the multiple routing table entries as the optimal routing table entry, and advertise the IP address of the optimal routing table entry The backbone router is used as the second IP backbone router; query the local backbone router table, if there is an ASON connection identifier from the first IP backbone router to the second IP backbone router, then according to the ASON connection identifier, send the IP grouping to the second IP backbone router an IP backbone router, so that the second IP backbone router sends the received IP packet to a second access network connected to the second IP backbone router. Since the IP packet can be directly transmitted from the access network where the source user terminal is located to the access network where the destination user terminal is via an ASON connection, the number of hops in the transmission path of the IP packet is effectively reduced, and the traffic on the IP router is reduced. Photoelectric conversion operation, thereby reducing the delay of IP packet transmission, and reducing the delay jitter caused by IP packet queuing on the intermediate router, thereby solving the problem of Internet instability caused by the use of BGP in the prior art, and effectively improving robustness of the Internet.

图3为本发明基于ASON光网络的IP路由处理方法的另一个实施例的流程图,在上述图1所示的基于的ASON的IP网络的系统的基础上,如图3所示,本实施例的方法包括:Fig. 3 is the flow chart of another embodiment of the IP routing processing method based on ASON optical network of the present invention, on the basis of the system based on the IP network of ASON shown in above Fig. 1, as shown in Fig. 3, this implementation Example methods include:

步骤201、第一IP骨干路由器接收与该第一IP骨干路由器连接的第一接入网发送的IP分组。Step 201. The first IP backbone router receives an IP packet sent by a first access network connected to the first IP backbone router.

在本实施例中,第一接入网中的源用户终端发送IP分组,以通过第一接入网中的IP路由器将该IP分组发送给与之连接的第一IP骨干路由器上。In this embodiment, the source user terminal in the first access network sends the IP packet to send the IP packet to the first IP backbone router connected to it through the IP router in the first access network.

步骤202、第一IP骨干路由器根据该IP分组中的IP目的地址,按照最长前缀匹配原则,查询本地路由信息库,若与该IP目的地址匹配的路由表项的数量为多项时,则从多项路由表项中选择一个路由表项作为最优的路由表项,并以通告该最优路由表项的IP骨干路由器作为第二IP骨干路由器。Step 202, the first IP backbone router queries the local routing information base according to the IP destination address in the IP group according to the longest prefix matching principle, if the number of routing table entries matching the IP destination address is multiple, then Select a routing table item from multiple routing table items as the optimal routing table item, and use the IP backbone router that advertises the optimal routing table item as the second IP backbone router.

在本实施例中,第一骨干路由器按照最长前缀匹配原则查询其路由表时,用IP目的地址与路由表项中的IP地址前缀进行匹配。与IP目的地址匹配的路由表项可能有多条,每条路由表项可能是由不同的骨干路由器通告的,因此需要从中选择一项作为最优的路由,其中,通告最优路由的IP骨干路由器就是被选作为下一跳的IP骨干路由器,即第二IP骨干路由器。In this embodiment, when the first backbone router queries its routing table according to the longest prefix matching principle, it uses the IP destination address to match the IP address prefix in the routing table entry. There may be multiple routing table entries that match the IP destination address, and each routing table entry may be advertised by a different backbone router, so one of them needs to be selected as the optimal route. Among them, the IP backbone that advertises the optimal route The router is the IP backbone router selected as the next hop, that is, the second IP backbone router.

还需要说明的是,若与IP目的地址匹配的路由表项为一条时,则将通告该条匹配的路由表项的IP骨干路由器作为第二IP骨干路由器。It should also be noted that, if there is only one routing table entry matching the IP destination address, the IP backbone router that advertises the matching routing table entry is taken as the second IP backbone router.

在本实施例中,当与IP目的地址匹配的路由表项为至少两条时,则从多项路由表项中选择一个路由表项作为最优的路由表项,并以通告该最优路由表项的IP骨干路由器作为第二IP骨干路由器,具体实现方式为:In this embodiment, when there are at least two routing table entries matching the IP destination address, one routing table entry is selected from multiple routing table entries as the optimal routing table entry, and the optimal route is advertised The IP backbone router of the table entry is used as the second IP backbone router, and the specific implementation method is as follows:

若与该IP目的地址匹配的路由表项的数量为多项时,则根据每个与该IP目的地址匹配的路由表项中的IP地址前缀和路由度量值,从该多项路由表项中选择一个路由项作为最优的路由表项,以通告该路由表项的IP骨干路由器作为该第二IP骨干路由器If the number of routing table entries matching the IP destination address is multiple, then according to the IP address prefix and routing metric value in each routing table entry matching the IP destination address, from the multiple routing table entries Select a routing entry as the optimal routing table entry, and advertise the IP backbone router of the routing table entry as the second IP backbone router

在本实施例中,具体的,首先按照最长前缀长度匹配原则选择路由,然后按照路由度量值的大小选择路由。举例来说,假设IP分组中的IP目的地址是IPv4地址202.197.16.99,第一IP骨干路由器(假设是IP骨干路由器A)的本地路由信息库中包含此地址的路由信息为:(202.197.16.*/22,IP骨干路由器B,10,1000)、(202.197.16.*/24,IP骨干路由器C,10,1020)和(202.197.16.*/24,IP骨干路由器D,8,1600)。由于第一条路由中地址前缀长度为22,因此从后两条路由中选择最佳路由。由于第三条路由的路由度量值为8,比第二条路由的路由度量值小,因此,选择第三条路由为最佳路由,即IP骨干路由器D作为第二IP骨干路由器。In this embodiment, specifically, the route is first selected according to the longest prefix length matching principle, and then the route is selected according to the magnitude of the route metric value. For example, assuming that the IP destination address in the IP packet is IPv4 address 202.197.16.99, the routing information containing this address in the local routing information base of the first IP backbone router (assumed to be IP backbone router A) is: (202.197.16 .*/22, IP backbone router B, 10, 1000), (202.197.16.*/24, IP backbone router C, 10, 1020) and (202.197.16.*/24, IP backbone router D, 8, 1600). Since the address prefix length in the first route is 22, choose the best route from the last two routes. Since the route metric value of the third route is 8, which is smaller than the route metric value of the second route, the third route is selected as the best route, that is, the IP backbone router D is used as the second IP backbone router.

步骤203、第一IP骨干路由器查询本地骨干路由器表,判断是否存在该第一IP骨干路由器到该第二IP骨干路由器的ASON连接标识;若存在,则执行步骤204;若不存在,则执行步骤205。Step 203, the first IP backbone router queries the local backbone router table, and judges whether there is an ASON connection identifier from the first IP backbone router to the second IP backbone router; if it exists, then execute step 204; if not, then execute step 205.

步骤204、第一IP骨干路由器根据该ASON连接标识,将该IP分组通过该ASON连接标识对应的ASON连接发送给该第二IP骨干路由器,以使得该第二IP骨干路由器将接收到的该IP分组发送到与该第二IP骨干路由器连接的第二接入网中。结束。Step 204: According to the ASON connection identifier, the first IP backbone router sends the IP packet to the second IP backbone router through the ASON connection corresponding to the ASON connection identifier, so that the second IP backbone router will receive the IP The packet is sent to the second access network connected to the second IP backbone router. End.

步骤205、第一IP骨干路由器在该第一IP骨干路由器和该第二IP骨干路由器之间建立ASON交换连接,并更新该本地骨干路由器表。Step 205, the first IP backbone router establishes an ASON switching connection between the first IP backbone router and the second IP backbone router, and updates the local backbone router table.

步骤206、第一IP骨干路由器根据该ASON连接标识,将该IP分组通过该ASON连接发送给该第二IP骨干路由器,以使得该第二IP骨干路由器将接收到的该IP分组发送到与该第二IP骨干路由器连接的第二接入网中。结束。Step 206, the first IP backbone router sends the IP packet to the second IP backbone router through the ASON connection according to the ASON connection identifier, so that the second IP backbone router sends the received IP packet to the In the second access network connected to the second IP backbone router. End.

在本实施例中,需要说明的是,若不存在该第一IP骨干路由器到该第二IP骨干路由器的ASON连接标识,则可以将该IP分组存储到IP分组缓存中,根据目的网络的IP骨干路由器的ASON标识,建立从第一IP骨干路由器到第二IP骨干路由器的ASON交换连接。在ASON交换连接建立成功之前,所有从第一IP骨干路由器到第二IP骨干路由器的IP分组都可以存储到IP分组缓存中排队。当ASON交换连接建立成功后,将IP分组缓存中保存的IP分组发送给第二IP骨干路由器。In this embodiment, it should be noted that if there is no ASON connection identifier from the first IP backbone router to the second IP backbone router, the IP packet can be stored in the IP packet cache, and the IP packet of the destination network The ASON identifier of the backbone router establishes an ASON switching connection from the first IP backbone router to the second IP backbone router. Before the ASON switching connection is successfully established, all IP packets from the first IP backbone router to the second IP backbone router can be stored in the IP packet cache and queued. When the ASON switching connection is successfully established, the IP packet stored in the IP packet cache is sent to the second IP backbone router.

图4为本发明基于ASON光网络的IP路由处理方法的又一个实施例的流程图,在上述图2或图3所示实施例的基础上,如图4所示,本实施例的方法包括:在步骤101或者步骤201之前,该方法还可以包括:Fig. 4 is the flow chart of another embodiment of the IP routing processing method based on the ASON optical network of the present invention, on the basis of the above-mentioned embodiment shown in Fig. 2 or Fig. 3, as shown in Fig. 4, the method of this embodiment includes : Before step 101 or step 201, the method may further include:

步骤301、第一IP骨干路由器接收该第一接入网发送的第一目的网络的路由信息,该第一目的网络的路由信息包括:第一目的网络的IP地址前缀和路由度量值。Step 301, the first IP backbone router receives the routing information of the first destination network sent by the first access network, and the routing information of the first destination network includes: an IP address prefix and a routing metric value of the first destination network.

步骤302、第一IP骨干路由器将该第一目的网络的路由信息保存在该本地路由信息库中。Step 302, the first IP backbone router saves the routing information of the first destination network in the local routing information base.

步骤303、第一IP骨干路由器将该第一IP骨干路由器的ID携带在该第一目的网络的路由信息中,并通过广播子网将携带有该第一IP骨干路由器的ID的第一目的网络的路由信息发送给该ASON骨干网中的除该第一IP骨干路由器之外的其他IP骨干路由器。Step 303, the first IP backbone router carries the ID of the first IP backbone router in the routing information of the first destination network, and broadcasts the first destination network carrying the ID of the first IP backbone router through the broadcast subnet The routing information is sent to other IP backbone routers in the ASON backbone network except the first IP backbone router.

在本实施例中,IP骨干路由器运行起来后,将与接入网中其他路由器交换路由信息,从而获取接入网中的目的网络的路由信息。每个目的网络的路由信息包括目的网络的IP地址前缀和路由度量值。IPv4网络中的IP地址前缀为32位的无符号整数和相应的地址掩码长度。IPv6网络中的IP地址前缀为128位无符号整数和相应的地址掩码长度。路由度量值为32位整数值,反应从IP骨干路由器到该目的网络的“距离”或路径容量或路由偏好度。当IP骨干路由器从接入网中获取某一目的网络的路由信息后,将该IP骨干路由器的ID携带在该目的网络的路由信息后,通过广播子网通告给ASON骨干网中的所有骨干路由器。In this embodiment, after the IP backbone router is running, it will exchange routing information with other routers in the access network, so as to obtain the routing information of the destination network in the access network. The routing information of each destination network includes the IP address prefix and routing metric value of the destination network. The IP address prefix in an IPv4 network is a 32-bit unsigned integer and the corresponding address mask length. The IP address prefix in the IPv6 network is a 128-bit unsigned integer and the corresponding address mask length. The routing metric is a 32-bit integer value, reflecting the "distance" or path capacity or routing preference from the IP backbone router to the destination network. After the IP backbone router obtains the routing information of a certain destination network from the access network, after carrying the ID of the IP backbone router in the routing information of the destination network, it notifies all the backbone routers in the ASON backbone network through the broadcast subnet .

另外,当IP骨干路由器发现到接入网中某一个目的网络的路由度量值发生改变时,该IP骨干路由器向ASON骨干网中其他骨干路由器通告新的路由度量值;当IP骨干路由器发现接入网中某一目的网络不可达时,该IP骨干路由器向ASON骨干网中其他骨干路由器通告路由撤销消息。可以通过将路由度量值设置为-1来表示撤销到某一目的网络的路由。In addition, when the IP backbone router discovers that the routing metric value of a destination network in the access network has changed, the IP backbone router notifies the new routing metric value to other backbone routers in the ASON backbone network; When a certain destination network in the network is unreachable, the IP backbone router notifies other backbone routers in the ASON backbone network of a route withdrawal message. You can withdraw the route to a certain destination network by setting the route metric value to -1.

为了避免发生路由振荡,IP骨干路由器连续两次通告到同一个目的网络的路由信息的时间间隔不小于一个最小路由更新时间间隔值,这个值可以由管理员配置,缺省为1秒。当IP骨干路由器从另一台IP骨干路由器接收到一条新的路由信息后,除了更新它的路由信息库,还可以将此路由信息以外部路由的形式分发到与之连接的接入网中。In order to avoid route flapping, the time interval between two consecutive announcements of routing information to the same destination network by the IP backbone router should not be less than a minimum route update time interval value, which can be configured by the administrator, and the default value is 1 second. When an IP backbone router receives a new routing information from another IP backbone router, in addition to updating its routing information database, it can also distribute this routing information to the access network connected to it in the form of external routing.

可选地,该方法还可以包括:Optionally, the method may also include:

第一IP骨干路由器接收第三IP骨干路由器发送的第二目的网络的路由信息,该第二目的网络的路由信息包括:第三IP骨干路由器的ID、第二目的网络的IP地址前缀和路由度量值;The first IP backbone router receives the routing information of the second destination network sent by the third IP backbone router, and the routing information of the second destination network includes: the ID of the third IP backbone router, the IP address prefix and the routing metric of the second destination network value;

第一IP骨干路由器将接收到的该第二目的网络的路由信息保存在该本地路由信息库中。The first IP backbone router saves the received routing information of the second destination network in the local routing information base.

在本实施例中,由于将IP路由信息分发路径与IP分组转发路径分离,撇弃了已有域间路由协议的复杂过程,实现了域间IP路由信息的快速交换,因此,有效地提高了IP路由信息交换的效率,还避免了现有BGP存在的稳定性和收敛性等问题。另外,通过将IP地址前缀和通告该地址前缀的路由信息的骨干路由器绑定,从而便于对通告该路由信息的骨干路由器进行鉴权,进而提高了域间路由信息交换的安全性,有利于解决IP地址前缀劫持等路由安全问题。In this embodiment, since the IP routing information distribution path is separated from the IP packet forwarding path, the complex process of the existing inter-domain routing protocol is abandoned, and the fast exchange of inter-domain IP routing information is realized. The efficiency of IP routing information exchange also avoids the problems of stability and convergence existing in the existing BGP. In addition, by binding the IP address prefix to the backbone router that notifies the routing information of the address prefix, it is convenient to authenticate the backbone router that notifies the routing information, thereby improving the security of inter-domain routing information exchange, and is conducive to solving Routing security issues such as IP address prefix hijacking.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

图5为本发明基于ASON光网络的IP路由处理装置的一个实施例的结构示意图,如图5所示,在该ASON光网络上构建一个广播子网,本实施例的IP路由处理装置可以具体为IP骨干路由器,该装置包括:接入网路由模块21、骨干网路由模块22和光传送模块23;其中,接入网路由模块21用于接收与该IP路由处理装置连接的第一接入网发送的IP分组;骨干网路由模块22用于根据该IP分组中的IP目的地址,按照最长前缀匹配原则,查询本地路由信息库,若与该IP目的地址匹配的路由表项的数量为多项时,则从多项路由表项中选择一个路由表项作为最优的路由表项,并以通告该最优路由表项的IP骨干路由器作为第二IP骨干路由器;骨干网路由模块22还用于查询本地骨干路由器表,判断是否存在该IP路由处理装置到该第二IP骨干路由器的ASON连接标识;光传送模块23用于若该骨干路由模块22判断出存在该IP路由处理装置到该第二IP骨干路由器的ASON连接标识,则根据该ASON连接标识,将该IP分组通过该ASON连接标识对应的ASON连接发送给该第二IP骨干路由器,以使得该第二IP骨干路由器将接收到的该IP分组发送到与该第二IP骨干路由器连接的第二接入网中。Fig. 5 is the structure schematic diagram of an embodiment of the IP route processing device based on ASON optical network of the present invention, as shown in Fig. 5, constructs a broadcast subnet on this ASON optical network, the IP route processing device of the present embodiment can specifically It is an IP backbone router, and the device includes: an access network routing module 21, a backbone network routing module 22, and an optical transmission module 23; wherein, the access network routing module 21 is used to receive the first access network connected to the IP routing processing device. The IP grouping that sends; The backbone network routing module 22 is used for according to the IP destination address in this IP grouping, according to the longest prefix matching principle, inquires about the local routing information storehouse, if the quantity of the routing table item matching with this IP destination address is more item, then select a routing table item as the optimal routing table item from a plurality of routing table items, and use the IP backbone router of the optimal routing table item as the second IP backbone router; the backbone network routing module 22 also It is used to query the local backbone router table to determine whether there is an ASON connection identifier from the IP routing processing device to the second IP backbone router; The ASON connection identification of the second IP backbone router, then according to the ASON connection identification, send the IP packet to the second IP backbone router through the ASON connection corresponding to the ASON connection identification, so that the second IP backbone router will receive The IP packet is sent to the second access network connected to the second IP backbone router.

本实施例的路由的处理装置可以执行图2所示方法的实施例,其实现原理相类似,此处不再赘述。The device for processing routing in this embodiment can execute the embodiment of the method shown in FIG. 2 , and its implementation principles are similar, so details are not repeated here.

在本实施例中,通过路由的处理装置接收与该路由的处理装置连接的第一接入网发送的IP分组,根据该IP分组中的IP目的地址,按照最长前缀匹配原则,查询本地路由信息库,若与该IP目的地址匹配的路由表项的数量为多项时,则从多项路由表项中选择一个路由表项作为最优的路由表项,并以通告该最优路由表项的IP骨干路由器作为第二IP骨干路由器;查询本地骨干路由器表,判断是否存在该IP路由处理装置到该第二IP骨干路由器的ASON连接标识,若存在该路由的处理装置到该第二IP骨干路由器的ASON连接标识,则根据该ASON连接标识,将该IP分组通过该ASON连接标识对应的ASON连接发送给该第二IP骨干路由器,以使得该第二IP骨干路由器将接收到的该IP分组发送到与该第二IP骨干路由器连接的第二接入网中,由于该IP分组可以从源用户终端所在的接入网通过一条ASON连接直接传送到目的用户终端所在的接入网,因此有效地减少了IP分组传输路径的跳数,减少了在IP路由器上的光电转换操作,从而将减小IP分组传输延迟,并减小IP分组在中间路由器上排队带来的延迟抖动,进而解决了现有技术中采用BGP而导致的互联网不稳定的问题,有效地提高了互联网的健壮性。In this embodiment, the routing processing device receives the IP packet sent by the first access network connected to the routing processing device, and queries the local routing according to the IP destination address in the IP packet and according to the longest prefix matching principle information base, if the number of routing table entries matching the IP destination address is multiple, select a routing table entry from the multiple routing table entries as the optimal routing table entry, and notify the optimal routing table entry The IP backbone router of the item is used as the second IP backbone router; query the local backbone router table to determine whether there is an ASON connection identifier from the IP routing processing device to the second IP backbone router, if there is an ASON connection identifier from the routing processing device to the second IP The ASON connection identifier of the backbone router, according to the ASON connection identifier, the IP packet is sent to the second IP backbone router through the ASON connection corresponding to the ASON connection identifier, so that the second IP backbone router will receive the IP The packet is sent to the second access network connected to the second IP backbone router, since the IP packet can be directly transmitted from the access network where the source user terminal is located to the access network where the destination user terminal is via an ASON connection, therefore It effectively reduces the number of hops in the IP packet transmission path and reduces the photoelectric conversion operation on the IP router, thereby reducing the transmission delay of the IP packet and reducing the delay jitter caused by the queuing of the IP packet on the intermediate router, thereby solving the problem of The problem of Internet instability caused by the adoption of BGP in the prior art is solved, and the robustness of the Internet is effectively improved.

进一步的,在本发明的另一个实施例中,在上述图5所示实施例的基础上,该骨干路由模块22还用于若判断没有存在该ASON连接标识,则在该IP路由处理装置和该第二IP骨干路由器之间建立ASON交换连接,并更新该本地骨干路由器表。Further, in another embodiment of the present invention, on the basis of the above-mentioned embodiment shown in FIG. 5 , the backbone routing module 22 is also configured to, if it is judged that the ASON connection identifier does not exist, then between the IP routing processing device and An ASON switching connection is established between the second IP backbone routers, and the local backbone router table is updated.

可选地,在该路由表项包括:通告该路由表项的IP骨干路由器的ID、对应的IP地址前缀和路由度量值时,该骨干路由模块22具体用于查询该本地路由信息库,按照最长前缀匹配原则获取与IP目的地址匹配的路由表项。若与该IP目的地址匹配的路由表项的数量为多项时,则根据每个与该IP目的地址匹配的路由表项中的IP地址前缀和路由度量值,从该多项路由表项中选择一个路由项作为最优的路由表项,以通告该路由表项的IP骨干路由器作为该第二IP骨干路由器。Optionally, when the routing table entry includes: the ID of the IP backbone router announcing the routing table entry, the corresponding IP address prefix and the routing metric value, the backbone routing module 22 is specifically used to query the local routing information base, according to The longest prefix matching principle obtains the routing table entries that match the IP destination address. If the number of routing table entries matching the IP destination address is multiple, then according to the IP address prefix and routing metric value in each routing table entry matching the IP destination address, from the multiple routing table entries A routing item is selected as the optimal routing table item, and the IP backbone router advertising the routing table item is used as the second IP backbone router.

更进一步的,在本发明的又一个实施例中,在上述图5所示实施例的基础上,该接入网路由模块21还用于接收该第一接入网发送的第一目的网络的路由信息,该第一目的网络的路由信息包括:第一目的网络的IP地址前缀和路由度量值;Furthermore, in yet another embodiment of the present invention, on the basis of the above-mentioned embodiment shown in FIG. 5 , the access network routing module 21 is also configured to receive the information of the first destination network sent by the first access network. Routing information, the routing information of the first destination network includes: the IP address prefix and routing metric value of the first destination network;

该骨干路由模块22还用于将该第一目的网络的路由信息保存在该本地路由信息库中;The backbone routing module 22 is also configured to store the routing information of the first destination network in the local routing information base;

该光传送模块23还用于将该路由处理装置的ID携带在该第一目的网络的路由信息中,以获取第二目的网络的路由信息,并通过广播子网将携带有该路由的处理装置的ID的第一目的网络的路由信息发送给该ASON骨干网中的除该IP路由处理装置之外的其他IP骨干路由器。The optical transmission module 23 is also used to carry the ID of the routing processing device in the routing information of the first destination network, so as to obtain the routing information of the second destination network, and broadcast the processing device carrying the routing information through the broadcast subnet The routing information of the first destination network with ID is sent to other IP backbone routers in the ASON backbone network except the IP routing processing device.

可选地,该光传送模块23还用于接收第三IP骨干路由器发送的第二目的网络的路由信息,该第二目的网络的路由信息包括:第三IP骨干路由器的ID、第二目的网络的IP地址前缀和路由度量值;Optionally, the optical transmission module 23 is also configured to receive the routing information of the second destination network sent by the third IP backbone router. The routing information of the second destination network includes: the ID of the third IP backbone router, the second destination network IP address prefixes and route metrics;

该骨干路由模块22还用于将接收到的该第二目的网络的路由信息保存在该本地路由信息库中。The backbone routing module 22 is also configured to save the received routing information of the second destination network in the local routing information base.

在本实施例中,接入网路由模块21实现与接入网内部相同的域内路由协议,例如:OSPF协议。骨干网路由模块22实现骨干网的路由协议(相当于域间路由协议),通过此协议与其他骨干路由器实现路由信息的交换。同时,通过接入网路由模块21、骨干网路由模块22和接入网中其他路由器进行路由信息交换,从而获取接入网内部的路由信息(即上述的目的网络的路由信息)。In this embodiment, the access network routing module 21 implements the same intra-domain routing protocol as that of the access network, for example, the OSPF protocol. The backbone network routing module 22 implements the routing protocol of the backbone network (equivalent to an inter-domain routing protocol), and exchanges routing information with other backbone routers through this protocol. At the same time, routing information is exchanged through the access network routing module 21, the backbone network routing module 22 and other routers in the access network, so as to obtain the routing information inside the access network (that is, the routing information of the above-mentioned destination network).

可选地,在接入网中允许使用现有的域内路由协议来建立路由,例如:OSPF协议。此时,接入网路由模块可以具体为OSPF路由协议模块。当接入网中出现链路中断或者增加新的链路时,这个链路状态的改变信息可以通过OSPF协议传播给接入网中的所有OSPF路由协议模块,该OSPF路由协议模块根据该链路状态的改变信息,计算获取对应的路由信息,并使得接入网路由模块21采用路由重发布的方式将改变了的路由信息传播给骨干网路由模块22。需要说明的是,链路状态的改变导致网络路径的改变,因此,导致了骨干路由器到某一个目的网络的路由度量值的改变。Optionally, an existing intra-domain routing protocol is allowed to be used in the access network to establish routes, for example, the OSPF protocol. In this case, the access network routing module may specifically be an OSPF routing protocol module. When a link is interrupted or a new link is added in the access network, the link state change information can be propagated to all OSPF routing protocol modules in the access network through the OSPF protocol, and the OSPF routing protocol module State change information, calculate and obtain corresponding routing information, and make the access network routing module 21 propagate the changed routing information to the backbone network routing module 22 in a route redistribution manner. It should be noted that the change of the link state leads to the change of the network path, therefore, it leads to the change of the route metric value from the backbone router to a certain destination network.

本发明还提供了一种路由的处理系统,包括:ASON骨干网和接入网,该ASON骨干网包括:ASON光网络系统和IP骨干路由器,其中,该IP骨干路由器为如上述的IP路由处理装置,且可以执行图2至图4任一路由的处理方法,其实现原理相类似,此处不再赘述。The present invention also provides a routing processing system, including: ASON backbone network and access network, the ASON backbone network includes: ASON optical network system and IP backbone router, wherein, the IP backbone router is the above-mentioned IP routing processing device, and can execute the processing method of any one of the routes shown in FIG. 2 to FIG.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (8)

1.一种基于ASON光网络的IP路由处理方法,其特征在于,在所述ASON光网络上构建一个广播子网,则所述方法包括:1. a kind of IP route processing method based on ASON optical network, it is characterized in that, build a broadcast subnet on described ASON optical network, then described method comprises: 第一IP骨干路由器接收与所述第一IP骨干路由器连接的第一接入网发送的IP分组;The first IP backbone router receives the IP packet sent by the first access network connected to the first IP backbone router; 所述第一IP骨干路由器根据所述IP分组中的IP目的地址,按照最长前缀匹配原则,查询本地路由信息库,若与所述IP目的地址匹配的路由表项的数量为多项时,则从多项路由表项中选择一个路由表项作为最优的路由表项,并以通告所述最优路由表项的IP骨干路由器作为第二IP骨干路由器;The first IP backbone router queries the local routing information base according to the IP destination address in the IP group according to the longest prefix matching principle, and if the number of routing table entries matching the IP destination address is multiple, Then select a routing table item as the optimal routing table item from a plurality of routing table items, and use the IP backbone router of the optimal routing table item as the second IP backbone router; 所述第一IP骨干路由器查询本地骨干路由器表,若存在所述第一IP骨干路由器到所述第二IP骨干路由器的ASON连接标识,则根据所述ASON连接标识,将所述IP分组通过所述ASON连接标识对应的ASON连接发送给所述第二IP骨干路由器,以使得所述第二IP骨干路由器将接收到的所述IP分组发送到与所述第二IP骨干路由器连接的第二接入网中;若不存在所述第一IP骨干路由器到所述第二IP骨干路由器的ASON连接标识,则所述第一IP骨干路由器在该第一IP骨干路由器和该第二IP骨干路由器之间建立ASON交换连接,并更新该本地骨干路由器表,所述第一IP骨干路由器根据该ASON连接标识,将该IP分组通过该ASON连接发送给该第二IP骨干路由器,以使得该第二IP骨干路由器将接收到的该IP分组发送到与该第二IP骨干路由器连接的第二接入网中。The first IP backbone router queries the local backbone router table, and if there is an ASON connection identifier from the first IP backbone router to the second IP backbone router, according to the ASON connection identifier, the IP packet is passed through the The ASON connection corresponding to the ASON connection identifier is sent to the second IP backbone router, so that the second IP backbone router sends the received IP packet to the second interface connected to the second IP backbone router In network access; if there is no ASON connection identifier from the first IP backbone router to the second IP backbone router, then the first IP backbone router is between the first IP backbone router and the second IP backbone router establish an ASON exchange connection between them, and update the local backbone router table, the first IP backbone router sends the IP packet to the second IP backbone router through the ASON connection according to the ASON connection identifier, so that the second IP The backbone router sends the received IP packet to the second access network connected to the second IP backbone router. 2.根据权利要求1所述的方法,其特征在于,所述路由表项包括:通告所述路由表项的IP骨干路由器的ID、对应的IP地址前缀和路由度量值;若与所述IP目的地址匹配的路由表项的数量为多项时,则根据每个与所述IP目的地址匹配的路由表项中的IP地址前缀和路由度量值,从所述多项路由表项中选择一个路由项作为最优的路由表项,以通告该路由表项的IP骨干路由器作为所述第二IP骨干路由器。2. The method according to claim 1, wherein the routing table item comprises: the ID of the IP backbone router announcing the routing table item, the corresponding IP address prefix and the routing metric value; When the number of routing table entries matching the destination address is multiple, select one of the multiple routing table entries according to the IP address prefix and routing metric value in each routing table entry matching the IP destination address The routing item is used as the optimal routing table item, and the IP backbone router advertising the routing table item is used as the second IP backbone router. 3.根据权利要求1所述的方法,其特征在于,还包括:3. The method according to claim 1, further comprising: 所述第一IP骨干路由器接收所述第一接入网发送的第一目的网络的路由信息,所述第一目的网络的路由信息包括:第一目的网络的IP地址前缀和路由度量值;The first IP backbone router receives routing information of the first destination network sent by the first access network, where the routing information of the first destination network includes: an IP address prefix and a routing metric value of the first destination network; 所述第一IP骨干路由器将所述第一目的网络的路由信息保存在所述本地路由信息库中;The first IP backbone router saves the routing information of the first destination network in the local routing information base; 所述第一IP骨干路由器将所述第一IP骨干路由器的ID携带在所述第一目的网络的路由信息中,并通过广播子网将携带有所述第一IP骨干路由器的ID的第一目的网络的路由信息发送给所述ASON骨干网中的除所述第一IP骨干路由器之外的其他IP骨干路由器。The first IP backbone router carries the ID of the first IP backbone router in the routing information of the first destination network, and broadcasts the first IP backbone router carrying the ID of the first IP backbone router through a broadcast subnet. The routing information of the destination network is sent to other IP backbone routers in the ASON backbone network except the first IP backbone router. 4.根据权利要求3所述的方法,其特征在于,还包括:4. The method according to claim 3, further comprising: 所述第一IP骨干路由器接收第三IP骨干路由器发送的第二目的网络的路由信息,所述第二目的网络的路由信息包括:第三IP骨干路由器的ID、第二目的网络的IP地址前缀和路由度量值;The first IP backbone router receives the routing information of the second destination network sent by the third IP backbone router, and the routing information of the second destination network includes: the ID of the third IP backbone router, the IP address prefix of the second destination network and routing metrics; 所述第一IP骨干路由器将接收到的所述第二目的网络的路由信息保存在所述本地路由信息库中。The first IP backbone router saves the received routing information of the second destination network in the local routing information base. 5.一种基于ASON光网络的IP路由处理装置,其特征在于,在所述ASON光网络上构建一个广播子网,则该装置包括:5. a kind of IP route processing device based on ASON optical network, it is characterized in that, build a broadcast subnet on described ASON optical network, then this device comprises: 接入网路由模块,用于接收与所述IP路由处理装置连接的第一接入网发送的IP分组;An access network routing module, configured to receive IP packets sent by the first access network connected to the IP routing processing device; 骨干网路由模块,用于根据所述IP分组中的IP目的地址,按照最长前缀匹配原则,查询本地路由信息库,若与所述IP目的地址匹配的路由表项的数量为多项时,则从多项路由表项中选择一个路由表项作为最优的路由表项,并以通告所述最优路由表项的IP骨干路由器作为第二IP骨干路由器;The backbone network routing module is used to query the local routing information base according to the IP destination address in the IP packet according to the longest prefix matching principle. If the number of routing table entries matched with the IP destination address is multiple, Then select a routing table item as the optimal routing table item from a plurality of routing table items, and use the IP backbone router of the optimal routing table item as the second IP backbone router; 所述骨干路由模块还用于查询本地骨干路由器表,判断是否存在所述IP路由处理装置到所述第二IP骨干路由器的ASON连接标识;The backbone routing module is also used to query the local backbone router table to determine whether there is an ASON connection identifier from the IP routing processing device to the second IP backbone router; 光传送模块,用于若所述骨干路由模块判断出存在所述IP路由处理装置到所述第二IP骨干路由器的ASON连接标识,则根据所述ASON连接标识,将所述IP分组通过所述ASON连接标识对应的ASON连接发送给所述第二IP骨干路由器,以使得所述第二IP骨干路由器将接收到的所述IP分组发送到与所述第二IP骨干路由器连接的第二接入网中;an optical transmission module, configured to pass the IP packet through the sending the ASON connection corresponding to the ASON connection identifier to the second IP backbone router, so that the second IP backbone router sends the received IP packet to the second access link connected to the second IP backbone router in the net; 所述骨干路由模块还用于判断若没有存在所述ASON连接标识,则在所述IP路由处理装置和所述第二IP骨干路由器之间建立ASON交换连接,并更新所述本地骨干路由器表。The backbone routing module is further configured to establish an ASON switching connection between the IP routing processing device and the second IP backbone router if there is no ASON connection identifier, and update the local backbone router table. 6.根据权利要求5所述的装置,其特征在于,所述路由表项包括:通告所述路由表项的IP骨干路由器的ID、对应的IP地址前缀和路由度量值;则所述骨干路由模块用于查询所述本地路由信息库,按照最长前缀匹配原则获取与IP目的地址匹配的路由表项;若与所述IP目的地址匹配的路由表项的数量为多项时,则根据每个与所述IP目的地址匹配的路由表项中的IP地址前缀和路由度量值,从所述多项路由表项中选择一个路由项作为最优的路由表项,以通告该路由表项的IP骨干路由器作为所述第二IP骨干路由器。6. The device according to claim 5, wherein the routing table item comprises: an ID of an IP backbone router advertising the routing table item, a corresponding IP address prefix and a routing metric value; The module is used to query the local routing information base, and obtain the routing table entry matching the IP destination address according to the longest prefix matching principle; if the number of routing table entries matching the IP destination address is multiple, then according to each The IP address prefix and the routing metric value in the routing table entry matching the IP destination address, select a routing entry as the optimal routing table entry from the multiple routing table entries, and notify the routing table entry of the routing table entry An IP backbone router serves as the second IP backbone router. 7.根据权利要求5所述的装置,其特征在于,所述接入网路由模块还用于接收所述第一接入网发送的第一目的网络的路由信息,所述第一目的网络的路由信息包括:第一目的网络的IP地址前缀和路由度量值;7. The device according to claim 5, wherein the access network routing module is further configured to receive the routing information of the first destination network sent by the first access network, and the routing information of the first destination network The routing information includes: the IP address prefix and the routing metric value of the first destination network; 所述骨干路由模块还用于将所述第一目的网络的路由信息保存在所述本地路由信息库中;The backbone routing module is further configured to save the routing information of the first destination network in the local routing information base; 所述光传送模块还用于将所述IP路由处理装置的ID携带在所述第一目的网络的路由信息中,并通过广播子网将携带有所述路由的处理装置的ID的第一目的网络的路由信息发送给所述ASON骨干网中的除所述IP路由处理装置之外的其他IP骨干路由器。The optical transmission module is also used to carry the ID of the IP routing processing device in the routing information of the first destination network, and send the ID of the processing device carrying the routing information to the first destination through the broadcast subnet. The routing information of the network is sent to other IP backbone routers in the ASON backbone network except the IP routing processing device. 8.根据权利要求7所述的装置,其特征在于,所述光传送模块还用于接收第三IP骨干路由器发送的第二目的网络的路由信息,所述第二目的网络的路由信息包括:第三IP骨干路由器的ID、第二目的网络的IP地址前缀和路由度量值;8. The device according to claim 7, wherein the optical transmission module is further configured to receive the routing information of the second destination network sent by the third IP backbone router, the routing information of the second destination network comprising: The ID of the third IP backbone router, the IP address prefix and routing metric value of the second destination network; 所述骨干路由模块还用于将接收到的所述第二目的网络的路由信息保存在所述本地路由信息库中。The backbone routing module is further configured to save the received routing information of the second destination network in the local routing information base.
CN201410306952.6A 2014-06-30 2014-06-30 IP router processing method and device based on ASON optical network Active CN104065578B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410306952.6A CN104065578B (en) 2014-06-30 2014-06-30 IP router processing method and device based on ASON optical network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410306952.6A CN104065578B (en) 2014-06-30 2014-06-30 IP router processing method and device based on ASON optical network

Publications (2)

Publication Number Publication Date
CN104065578A CN104065578A (en) 2014-09-24
CN104065578B true CN104065578B (en) 2017-04-19

Family

ID=51553116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410306952.6A Active CN104065578B (en) 2014-06-30 2014-06-30 IP router processing method and device based on ASON optical network

Country Status (1)

Country Link
CN (1) CN104065578B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107454069B (en) * 2017-07-21 2020-04-21 河南工程学院 A Mimic Protection Method for Inter-Domain Routing System Based on AS Security Association
CN112565094B (en) * 2020-12-09 2023-04-07 之江实验室 Multi-mode network topology structure

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1773947A (en) * 2004-11-09 2006-05-17 中兴通讯股份有限公司 Method of Realizing Optical Multicast in Intelligent Optical Network
CN1929447A (en) * 2006-06-01 2007-03-14 华为技术有限公司 Method and device for searching address prefixion and message transfer method and system
CN101184018A (en) * 2007-12-18 2008-05-21 中兴通讯股份有限公司 Automatic exchange optical network and traditional network interconnecting method
WO2008131802A1 (en) * 2007-05-01 2008-11-06 Telefonaktiebolaget Lm Ericsson (Publ) All optical processing circuit for conflict resolution and switch configuration in a 2x2 optical node
CN101572837A (en) * 2009-06-18 2009-11-04 烽火通信科技股份有限公司 Method for updating route information for ASON batch path computation
CN101741705A (en) * 2008-11-27 2010-06-16 华为技术有限公司 A method and device for processing routing update messages in parallel
CN102271080A (en) * 2010-06-03 2011-12-07 杭州华三通信技术有限公司 Method for preventing BGP (Border Gateway Protocol) session from being disconnected in the event of changing service, and applicable system thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9225624B2 (en) * 2012-12-20 2015-12-29 Dell Products L.P. Systems and methods for topology discovery and application in a border gateway protocol based data center

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1773947A (en) * 2004-11-09 2006-05-17 中兴通讯股份有限公司 Method of Realizing Optical Multicast in Intelligent Optical Network
CN1929447A (en) * 2006-06-01 2007-03-14 华为技术有限公司 Method and device for searching address prefixion and message transfer method and system
WO2008131802A1 (en) * 2007-05-01 2008-11-06 Telefonaktiebolaget Lm Ericsson (Publ) All optical processing circuit for conflict resolution and switch configuration in a 2x2 optical node
CN101184018A (en) * 2007-12-18 2008-05-21 中兴通讯股份有限公司 Automatic exchange optical network and traditional network interconnecting method
CN101741705A (en) * 2008-11-27 2010-06-16 华为技术有限公司 A method and device for processing routing update messages in parallel
CN101572837A (en) * 2009-06-18 2009-11-04 烽火通信科技股份有限公司 Method for updating route information for ASON batch path computation
CN102271080A (en) * 2010-06-03 2011-12-07 杭州华三通信技术有限公司 Method for preventing BGP (Border Gateway Protocol) session from being disconnected in the event of changing service, and applicable system thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于动态虚拟权重的自动交换光网络(ASON)域间路由优化;邓宇,张沛,顾畹仪;《高技术通讯》;20081130;第18卷(第11期);全文 *

Also Published As

Publication number Publication date
CN104065578A (en) 2014-09-24

Similar Documents

Publication Publication Date Title
US10541905B2 (en) Automatic optimal route reflector root address assignment to route reflector clients and fast failover in a network environment
US7978708B2 (en) Automatic route tagging of BGP next-hop routes in IGP
EP1997017B1 (en) Technique for preventing routing loops by disseminating bgp attribute information in an ospf-configured network
CN101455030B (en) Dynamic shared risk node group (srng) membership discovery
CN106063203B (en) Software Defined Networking (SDN) Specific Topology Information Discovery
US7865615B2 (en) Maintaining IGP transparency of VPN routes when BGP is used as a PE-CE protocol
CN100566267C (en) The method and apparatus that is used for the synchronous data communication network
Vetriselvan et al. Survey on the RIP, OSPF, EIGRP routing protocols
CN107968750B (en) Message transmission method, device and node
KR20140043778A (en) Method and node for supporting routing via inter as path
US9143431B2 (en) Hiding a service node in a network from a network routing topology
CN112953834A (en) Network area division method, network equipment and system
CN106878186B (en) The method of routing update, the network equipment and system in network
CN102045237A (en) Method, device and system for router cancellation
US8667174B2 (en) Method and system for survival of data plane through a total control plane failure
EP2638668A1 (en) Prioritization of routing information updates
RU2656709C1 (en) Method and device of flooding based on isis protocol
CN104168194A (en) Cluster network path control method equipment and cluster network system
WO2023036087A1 (en) Routing advertisement method, path establishment method, service data transmission method and autonomous system border router
CN104065578B (en) IP router processing method and device based on ASON optical network
CN106576076A (en) Route control for internet exchange point
Mitra et al. A comparative study of routing protocols
WO2023071359A1 (en) Method for receiving bgp-intent routing, and method for advertising bgp-intent routing
CN119155236A (en) Message notification method and device, storage medium and electronic device
CN103036786B9 (en) Performance-based routing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant