WO2015024477A1 - Routing update method and device - Google Patents

Routing update method and device Download PDF

Info

Publication number
WO2015024477A1
WO2015024477A1 PCT/CN2014/084418 CN2014084418W WO2015024477A1 WO 2015024477 A1 WO2015024477 A1 WO 2015024477A1 CN 2014084418 W CN2014084418 W CN 2014084418W WO 2015024477 A1 WO2015024477 A1 WO 2015024477A1
Authority
WO
WIPO (PCT)
Prior art keywords
switching
route
routing
access device
aging
Prior art date
Application number
PCT/CN2014/084418
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2015024477A1 publication Critical patent/WO2015024477A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Definitions

  • the present invention relates to the field of computer communication technologies, and in particular, to a method and an apparatus for implementing route update.
  • the switching system is used to complete high-speed and high-capacity information exchange of network packets.
  • the switching system consists of a switching access device and a switching network, which are connected by a link.
  • the switching access device is divided into two functional roles: a source switching access device 101 and a destination switching access device 102.
  • the switching network is composed of a switching network element 103.
  • the source switching access device 101 receives the network packet and cuts it into a cell.
  • the cell is a transmission form unique to the switching system and is transmitted to the switching network.
  • the switching network completes the delivery and copying of cells.
  • the destination switching access device 102 receives the cells from the switching network and reassembles them into network messages and sends them out.
  • a switched access device is both a source switching access device and a destination switching access device. What the switching system does is the exchange of network messages from one switching access device to another or multiple switching access devices.
  • the routing information refers to the exchanges between the switching devices of the primary switching device and the destination switching access device through which links the cells in the switching system can complete.
  • the routing table is a collection of routing information, including routing information from the switching device of the current level to all destination switching access devices.
  • the routing table can be established and updated by self-routing.
  • Self-routing means that the switching access device and the switching network element in the switching system establish and update the routing table by transmitting the cells carrying the routing information.
  • the self-routing establishes and updates a routing table according to the manner in which the destination switching device is a switching network element and a source switching device.
  • the process specifically includes: Step 201: The destination switching access device sends routing information to the switch. a network element; Step 202, the switching network element establishes its routing table according to the routing information; Step 203: The switching network element sends routing information to the source switching access device; Step 204, the source switching access device establishes its routing table according to the routing information. .
  • a single-level networking switching system as shown in FIG. 3, is composed of two switching access devices and two switching network elements, and the switching access device chip IDs are respectively configured as 0# and 1#. Because the chip ID of the 1# switching access device changes for some reason, the routing entries of the 1# switching access device in the routing table originally established by the switching network cannot be updated because the self-routing is established by receiving routing information. Update the routing table.
  • the switching network After the chip ID is changed, the switching network no longer receives the routing information of the 1# switching access device, and the routing entries corresponding to the 1# switching access device in the routing table cannot be cleared, that is, the routing table. Cannot be updated correctly.
  • the switching network sends the actual unreachable routing information (such as the routing information of the 1# switching access device at this time) as reachable routing information to all switching access devices, causing an error. This error occurs not only in the networking structure shown in FIG. 3, but also in the networking structure as shown in FIGS. 4 and 5.
  • the traditional processing method is to intervene through software, that is, after the switching access device chip ID changes, the routing table is forced to be cleared by software intervention. This method is slow to process, does not guarantee stability and reliability during data exchange, and requires additional CPU resources.
  • the technical problem to be solved by the embodiments of the present invention is to provide a method and a device for implementing route update, which ensure stability and reliability in the data exchange process.
  • the implementation of the routing update is performed in a switching device, including:
  • Step 1 Establish a route aging table according to the received routing information.
  • Step 2 Perform consistency synchronization on the routing table based on the routing entries in the route aging table.
  • Step 3 After the synchronization is complete, clear the route aging table to 0. Repeat step 1.
  • the received routing information is cached during the execution of the consistency synchronization operation in step 2 and the clearing operation in step 3, and is used to establish a route aging table when step 1 is performed.
  • the method further includes:
  • the switching device comprises: a switching access device and/or a switching network element; In the routing table and the route aging table, the correspondence between the destination switching access device chip ID and the available link of the switching device that can reach the destination switching access device is recorded.
  • the method is applied to a switching system in which the switching access device is connected to the switching network element, and a switching system interconnected by the switching access device.
  • the embodiment of the present invention further provides an apparatus for implementing a route update, which is located in a switching device, where the device includes:
  • a route establishment module configured to establish a route aging table according to the received routing information
  • a route update module configured to perform consistent synchronization on the routing table based on the routing entry in the route aging table
  • the route aging module is configured to clear the route aging table after the synchronization is completed, and invoke the route establishment module.
  • the device further includes:
  • the route cache module is configured to buffer the received route information and send it to the route establishment module during a period in which the route update module performs the consistency synchronization operation and the route aging module performs the clear operation.
  • the device further includes:
  • the route aging control module is configured to set an execution duration for the route establishment module, the route update module, and the route aging module respectively, in the order of the route establishment module, the route update module, and the route aging module, in each set At the end of the execution time, the corresponding module is called in turn.
  • the switching device comprises: a switching access device and/or a switching network element;
  • the routing table and the route aging table the correspondence between the destination switching access device chip ID and the available link of the switching device that can reach the destination switching access device is recorded.
  • the apparatus is applied to a switching system in which the switching access device is connected to the switching network element, and a switching system interconnected by the switching access device.
  • Embodiments of the present invention also provide a computer program comprising program instructions that, when executed by a switching device, cause the switching device to perform the method described above.
  • Embodiments of the present invention also provide a carrier carrying the above computer program.
  • the method and device for implementing the route update according to the embodiment of the present invention can be updated by routing aging to ensure the stability and reliability of the switching system. Compared with related technologies, although the route aging function adds extra system resource overhead, the system resources consumed occupy only a small part and can be ignored. If the device in the embodiment of the present invention is implemented by hardware, the route update speed is faster than the related technology, and the CPU resources are not occupied. BRIEF abstract
  • Figure 1 is a schematic structural diagram of a switching system
  • FIG. 2 is a schematic diagram of a process of self-routing in accordance with a manner in which a switching access device, a switching network element, and a source switching device are switched;
  • Figure 3 is a schematic structural diagram of a single-stage networking switching system
  • Figure 4 is a schematic structural diagram of a CLOS networking switching system
  • FIG. 5 is a schematic structural diagram of a MESH networking switching system
  • FIG. 6 is a flowchart of a method for implementing route update according to a first embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of an apparatus for implementing route update according to a second embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a switching system according to an application example of the present invention.
  • FIG. 9 is a schematic diagram of a routing table of a switching network element according to an application example of the present invention.
  • FIG. 10 is a schematic diagram of a routing table of a switching access device according to an application example of the present invention.
  • FIG. 11 is a schematic diagram of a route aging processing procedure of an application instance according to the present invention.
  • FIG. 12 is a schematic diagram showing a three-stage conversion relationship of an aging process according to an application example of the present invention.
  • a first embodiment of the present invention performs the following steps in a switching access device and/or a switching network element:
  • Step S101 Establish a route aging table according to the received routing information.
  • the switching access device or the switching network element when the routing is established, the switching access device itself may have two functional roles: a source switching access device and a destination switching access device, and one switching The access device can receive routing information sent by the corresponding destination switching access device through all its available links.
  • a switching network element can also receive routing information sent by the corresponding switching access device through all available links.
  • Step S102 Perform consistency synchronization on the routing table based on the routing entry in the route aging table.
  • the routing table and the route aging table the correspondence between the destination switch access device chip ID and the available link of the local switching device that can reach the destination switching access device is recorded.
  • the switching device may be a switching access device or a switching network element.
  • Step S103 After the synchronization is completed, clear the route aging table, and repeat step S101.
  • the embodiment of the present invention follows the usage mode of the prior art, and the switching device (ie, the switching access device or the switching network element) periodically sends the routing information in the routing table through all available links.
  • the routing information sent via all available links may also be generated during the period of performing the consistency synchronization operation in step S102 and the clearing operation in step S103, but cannot be used for immediate establishment or Updating the routing entries in the routing aging table, in order to further improve the stability and reliability of the switching system, the routing information received through all available links received during the period is cached, and is used to perform step S101. Establish a route aging table.
  • all available links refer to all available links of the switching access device or the switching network element to the outside world.
  • the execution time length may be separately set in steps S101 and S103, and the corresponding execution time length is sequentially called according to the state machine in the order of steps S101 and S103. The steps are performed.
  • the implementation method of the route update in this embodiment may be applied to a switching system in which a switching access device is connected to a switching network element, and a switching system interconnected by the switching access device.
  • the second embodiment of the present invention is related to the implementation method of the route update in the first embodiment.
  • the embodiment is a device for implementing route update, which is located in a switching access device and/or a switching network element, as shown in FIG. 7. As shown, the includes:
  • the route establishment module 100 is configured to establish a route aging table according to the received routing information. Wherein, because the switching access device or the switching network element is in the network, when establishing the route, the switching access device itself may have two functional roles: the source switching access device and the destination switching access device, and one switching access
  • the route establishment module 100 in the device can receive routing information sent by the corresponding destination switching access device through all available links thereof.
  • the route establishing module 100 in a switching network element can also receive routing information sent by the corresponding switching access device through all available links thereof.
  • the routing update module 200 is configured to perform consistent synchronization on the routing table based on routing entries in the routing aging table.
  • the mapping between the destination switching access device chip ID and the available link of the local switching device that can reach the destination switching access device is recorded in the routing table and the routing aging table.
  • the switching device may be a switching access device or a switching network element.
  • the route aging module 300 is configured to clear the route aging table to the call routing establishment module 100 after the synchronization is completed.
  • the embodiment of the present invention follows the usage mode of the prior art, and the switching device (ie, the switching access device or the switching network element) periodically sends the routing information in the routing table through all available links.
  • the switching device ie, the switching access device or the switching network element
  • routing update module 200 performs the consistency synchronization operation and the routing aging module 300 performs the clearing operation, routing information sent via all available links may also be generated, but this time cannot be used immediately.
  • the device for implementing the route update in this embodiment further includes:
  • the route cache module 400 is configured to receive the received all available links during the period in which the routing update module 200 performs the consistency synchronization operation and the route aging module 300 performs the clear operation.
  • the sent routing information is cached and sent to the route establishment module 100 for establishing a route aging table.
  • the device further includes:
  • the route aging control module 500 is configured to set an execution duration for the route establishment module 100, the route update module 200, and the route aging module 300, and according to the state machine, according to the slave route establishment module 100, the route update module 200, and the route aging.
  • the order of the modules 300 calls the corresponding module run at the end of each set execution time.
  • the apparatus for implementing route update in this embodiment may be applied to a switching system in which a switching access device is connected to a switching network element, and a switching system in which the switching access device is interconnected.
  • Embodiments of the present invention also provide a computer program comprising program instructions that, when executed by a switching device, cause the switching device to perform the method described above.
  • Embodiments of the present invention also provide a carrier carrying the above computer program.
  • the switching system of this application example is composed as shown in FIG. 8, and includes two switching access devices 801.
  • the switching access device 801 has a chip ID configured to 0 (hereinafter referred to as a zero-number switching access device), and the switching access device 802 has a chip ID configured to 1 (hereinafter referred to as a switching device No. 1).
  • the links 0, 1, and 2 of the switching access device 801 are respectively connected to the links 0, 2, and 4 of the switching network element, and the links 0 and 1 of the switching access device 802 are respectively connected to the links 1 and 3 of the switching network element.
  • the connection relationship between the switching access device and the switching network element may be arbitrary.
  • Step 001 The destination switching access device sends routing information to all available links, and notifies the switching network element that the switching access device can reach the destination switching access device.
  • Step 002 The switching network element establishes its routing table by receiving routing information.
  • the index 901 is the destination switching access device chip ID
  • the data bit width 902 is the switching network element and the switching access device.
  • the content 903 is the bit map of the link of the currently reachable destination switching access device.
  • Step 003 The switching network element sends routing information to all available links to notify the source switching access device of which destination switching access devices can reach through the links.
  • Step 004 The source switching access device receives the routing information to establish a routing table, and the routing table established in the current switching access device No. 0 and the switching access device No. 1 is as shown in FIG. 10( a ).
  • Step 005 No. 1 exchange access device for some reason, its chip ID is modified to 2, modified to be called the number 2 exchange access device.
  • step 006 If there is no route aging process, the process proceeds to step 006 after step 005. If the route aging process is performed, the process proceeds to step 106.
  • Step 006 The switching network element receives the routing information sent by the switching access device No. 2, and establishes a routing table as shown in Figure 9 (b). It can be seen from the routing table that the switching network element can still send a cell to the No. 1 switching access device, that is, the originally established routing table cannot be corrected.
  • Step 007 The switching network element sends routing information to the source switching access device, and the source switching access device is established as shown in FIG. 10(b), and the routing update process ends. It can be seen from the routing table that the 0th switching access device can still exchange the cell to the No. 1 switching access device, and the originally established routing table cannot be corrected; the No. 2 switching access device can also exchange the cell to In the switching access device No. 1, the switching network element transmits the wrong routing information to the source switching access device.
  • Step 106 Under the control of the route aging controller, all the switching access devices and the routing table of the switching network element periodically perform route aging processing, and all routing table contents are cleared.
  • Figure 11 is a schematic diagram of the foregoing route aging process, which mainly involves a routing table, a routing aging table, and a route aging controller, which are located in each switching access device and switching network element.
  • the routing table stores the routing information of the switching device of the current level (the switching device here refers to: the switching network element or the switching access device), and provides available links for cell transmission and replication.
  • the routing table is periodically updated under the control of the route aging controller. At the same time, the routing table sends the routing information of the local level to the upstream switching device.
  • the route aging table receives the routing information of the downstream switching device, establishes the local routing table, performs periodic clearing and updating under the control of the route aging controller, and the routing aging table updates the correct routing information after aging update to the routing. Go in the table.
  • the destination switching device that is reachable in the process of route establishment and update is called the downstream switching device, and the source switching device is called the upstream switching device.
  • the route aging controller divides the route aging process into three phases. As shown in FIG. 12, the route establishment phase 701, the route update phase 702, and the route aging phase 703. These three stages are looped, In the route construction phase, the route aging table is established by receiving the routing information. In the route update phase, the routing information in the routing aging table is updated to the routing table. In the aging phase of the route, the routing aging table is cleared.
  • Step 107 After the switching access device is disconnected from the switching system, the switching network element does not continue to receive the routing information sent by the switching access device, and the routing table re-established by the switching network element is as shown in FIG. 9(c). The switching network element can only send cells to the switching access devices No. 0 and No. 2, and the routing table is correctly updated.
  • Step 108 The switching network element sends the correct updated routing information to the source switching access device, and the routing table re-established by the switching access device is shown in FIG. 10(c), and the switching network element no longer transmits the wrong routing information and routes.
  • the update process ends.
  • the embodiment of the invention provides a design idea and a method, which can solve the problem that the routing table cannot be correctly updated when self-routing, and ensures the stability and reliability in the data exchange process.
  • the embodiment of the invention implements the correct update of the routing table by adding route aging processing in the process of routing update. That is, the switching access device or the switching network element establishes a routing table by receiving routing information, and periodically clears the routing table. After the processing is completed, the routing table is re-established by receiving new routing information. The old routing information is cleared in the process of aging the route, ensuring that the incorrect routing information is not transmitted to the upstream switching device, and that the cells are not incorrectly delivered to the downstream switching device.
  • the method and device for implementing route update according to the embodiment of the present invention are updated by route aging. The stability and reliability of the switching system can be ensured.

Landscapes

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

Abstract

Embodiments of the present invention disclose a routing update method and device. The method is executed in a switching device: step 1, according to received routing information, establishing a routing update table; step 2, according to the routing entries in the routing update table, performing consistent synchronization; step 3, upon the completion of synchronization, clearing the routing update table, and repeating step 1.

Description

一种路由更新的实现方法及装置  Method and device for implementing route update
技术领域 Technical field
本发明涉及计算机通信技术领域, 尤其涉及一种路由更新的实现方法及 装置。  The present invention relates to the field of computer communication technologies, and in particular, to a method and an apparatus for implementing route update.
背景技术 Background technique
交换系统用于完成网络报文的高速度高容量信息交换。 交换系统由交换 接入装置和交换网组成, 它们之间通过链路进行连接。 如图 1所示, 交换接 入装置分为源端交换接入装置 101和目的交换接入装置 102两种功能角色, 交换网由交换网元 103组成。 源端交换接入装置 101接收网络报文, 并将其 切割为信元, 信元是交换系统特有的传递形式, 传递给交换网。 交换网完成 信元的传递和复制。 目的交换接入装置 102从交换网接收信元并重组为网络 报文后将其发送出去。 在物理上, 一个交换接入装置既是源端交换接入装置, 也是目的交换接入装置。 交换系统完成的是网络报文从一个交换接入装置到 另外一个或者多个交换接入装置的交换。  The switching system is used to complete high-speed and high-capacity information exchange of network packets. The switching system consists of a switching access device and a switching network, which are connected by a link. As shown in FIG. 1, the switching access device is divided into two functional roles: a source switching access device 101 and a destination switching access device 102. The switching network is composed of a switching network element 103. The source switching access device 101 receives the network packet and cuts it into a cell. The cell is a transmission form unique to the switching system and is transmitted to the switching network. The switching network completes the delivery and copying of cells. The destination switching access device 102 receives the cells from the switching network and reassembles them into network messages and sends them out. Physically, a switched access device is both a source switching access device and a destination switching access device. What the switching system does is the exchange of network messages from one switching access device to another or multiple switching access devices.
路由信息是指交换系统中信元可以通过哪些链路完成从本级交换设备到 目的交换接入装置的交换。 路由表是路由信息的集合, 包含了本级交换设备 到所有目的交换接入装置的路由信息。  The routing information refers to the exchanges between the switching devices of the primary switching device and the destination switching access device through which links the cells in the switching system can complete. The routing table is a collection of routing information, including routing information from the switching device of the current level to all destination switching access devices.
路由表可以通过自路由的方式建立和更新。 自路由是指交换系统内交换 接入装置和交换网元通过传递携带路由信息的信元来建立和更新路由表。 自 路由按照目的交换接入装置一交换网元一源端交换装置的方式来建立和更新 路由表, 如图 2所示, 其过程具体包括: 步骤 201 , 目的交换接入装置发送 路由信息给交换网元; 步骤 202, 交换网元根据路由信息建立其路由表; 步 骤 203 , 交换网元发送路由信息给源端交换接入装置; 步骤 204, 源端交换接 入装置根据路由信息建立其路由表。 同理, 目的交换接入装置和源端交换接 入装置的角色交换后, 按照上述过程执行, 交换系统中所有的交换设备都建 立了路由表, 可以进行数据交换。 一个单级组网交换系统, 如图 3所示, 由两个交换接入装置和两个交换 网元组成, 交换接入装置芯片 ID分别配置为 0#和 1#。 因为某种原因导致 1# 交换接入装置的芯片 ID发生变化, 交换网原先建立的路由表中 1#交换接入 装置的路由表项无法得到更新, 这是因为自路由通过接收路由信息建立和更 新路由表, 当芯片 ID变更后, 交换网不再接收 1#交换接入装置的路由信息, 而路由表中与 1#交换接入装置相对应的路由表项又不能被清除, 即路由表不 能被正确更新。 这种错误发生后, 交换网会把实际不可达的路由信息 (比如 此时的 1#交换接入装置的路由信息) 当作可达的路由信息发送给所有交换接 入装置, 造成错误。 这种错误不仅仅发生在如图 3所示的组网结构中, 也发 生在如图 4和图 5所示的组网结构中。 The routing table can be established and updated by self-routing. Self-routing means that the switching access device and the switching network element in the switching system establish and update the routing table by transmitting the cells carrying the routing information. The self-routing establishes and updates a routing table according to the manner in which the destination switching device is a switching network element and a source switching device. As shown in FIG. 2, the process specifically includes: Step 201: The destination switching access device sends routing information to the switch. a network element; Step 202, the switching network element establishes its routing table according to the routing information; Step 203: The switching network element sends routing information to the source switching access device; Step 204, the source switching access device establishes its routing table according to the routing information. . For the same reason, after the roles exchange between the destination switching access device and the source switching access device are performed, according to the above process, all switching devices in the switching system establish a routing table, and data exchange can be performed. A single-level networking switching system, as shown in FIG. 3, is composed of two switching access devices and two switching network elements, and the switching access device chip IDs are respectively configured as 0# and 1#. Because the chip ID of the 1# switching access device changes for some reason, the routing entries of the 1# switching access device in the routing table originally established by the switching network cannot be updated because the self-routing is established by receiving routing information. Update the routing table. After the chip ID is changed, the switching network no longer receives the routing information of the 1# switching access device, and the routing entries corresponding to the 1# switching access device in the routing table cannot be cleared, that is, the routing table. Cannot be updated correctly. After the error occurs, the switching network sends the actual unreachable routing information (such as the routing information of the 1# switching access device at this time) as reachable routing information to all switching access devices, causing an error. This error occurs not only in the networking structure shown in FIG. 3, but also in the networking structure as shown in FIGS. 4 and 5.
传统的处理方法是通过软件进行干预,即当发生交换接入装置芯片 ID变 更之后, 通过软件干预, 强制将路由表进行清零处理。 这种方法处理起来速 度緩慢, 不能保证数据交换过程中的稳定性和可靠性, 且需占用额外的 CPU 资源。  The traditional processing method is to intervene through software, that is, after the switching access device chip ID changes, the routing table is forced to be cleared by software intervention. This method is slow to process, does not guarantee stability and reliability during data exchange, and requires additional CPU resources.
发明内容 Summary of the invention
本发明实施例要解决的技术问题是, 提供一种路由更新的实现方法及装 置, 保证了数据交换过程中的稳定性和可靠性。  The technical problem to be solved by the embodiments of the present invention is to provide a method and a device for implementing route update, which ensure stability and reliability in the data exchange process.
所述路由更新的实现方法, 在交换设备中执行, 包括:  The implementation of the routing update is performed in a switching device, including:
步骤 1 , 根据接收到的路由信息, 建立路由老化表;  Step 1: Establish a route aging table according to the received routing information.
步骤 2 , 基于路由老化表中的路由表项对路由表作一致性同步; 步骤 3 , 在同步完成后, 将路由老化表清零, 重复执行步骤 1。  Step 2: Perform consistency synchronization on the routing table based on the routing entries in the route aging table. Step 3: After the synchronization is complete, clear the route aging table to 0. Repeat step 1.
较佳地, 在执行步骤 2中的一致性同步操作和步骤 3中清零操作的时间 段内, 将接收到的路由信息緩存起来, 用于在执行步骤 1时建立路由老化表。  Preferably, the received routing information is cached during the execution of the consistency synchronization operation in step 2 and the clearing operation in step 3, and is used to establish a route aging table when step 1 is performed.
较佳地, 所述方法还包括:  Preferably, the method further includes:
为步骤 1~3分别设定执行时长, 按照步骤 1~3的顺序, 在每个设定的执 行时长结束时依次调用相应的步骤执行。  Set the execution time for steps 1~3. In the order of steps 1~3, the corresponding steps are executed in sequence at the end of each set execution time.
较佳地, 所述交换设备包括: 交换接入装置和 /或交换网元; 在路由表和路由老化表中,均记录的是目的交换接入装置芯片 ID与本交 换设备上能够到达该目的交换接入装置的可用链路的对应关系。 Preferably, the switching device comprises: a switching access device and/or a switching network element; In the routing table and the route aging table, the correspondence between the destination switching access device chip ID and the available link of the switching device that can reach the destination switching access device is recorded.
较佳地, 所述方法应用于交换接入装置与交换网元连接的交换系统、 以 及由交换接入装置互联的交换系统。  Preferably, the method is applied to a switching system in which the switching access device is connected to the switching network element, and a switching system interconnected by the switching access device.
本发明实施例还提供一种路由更新的实现装置, 位于交换设备中, 所述 装置包括: The embodiment of the present invention further provides an apparatus for implementing a route update, which is located in a switching device, where the device includes:
路由建立模块, 其设置为根据接收到的路由信息, 建立路由老化表; 路由更新模块, 其设置为基于路由老化表中的路由表项对路由表作一致 性同步; 以及  a route establishment module, configured to establish a route aging table according to the received routing information; and a route update module configured to perform consistent synchronization on the routing table based on the routing entry in the route aging table;
路由老化模块, 其设置为在同步完成后, 将路由老化表清零, 调用路由 建立模块。  The route aging module is configured to clear the route aging table after the synchronization is completed, and invoke the route establishment module.
较佳地, 所述装置还包括:  Preferably, the device further includes:
路由緩存模块, 其设置为在路由更新模块执行一致性同步操作和路由老 化模块执行清零操作的时间段内, 将接收到的路由信息緩存起来, 发送给路 由建立模块。  The route cache module is configured to buffer the received route information and send it to the route establishment module during a period in which the route update module performs the consistency synchronization operation and the route aging module performs the clear operation.
较佳地, 所述装置还包括:  Preferably, the device further includes:
路由老化控制模块, 其设置为为路由建立模块、 路由更新模块和路由老 化模块分别设定执行时长, 按照从路由建立模块、 经路由更新模块、 到路由 老化模块的顺序, 在每个设定的执行时长结束时依次调用相应的模块运行。  The route aging control module is configured to set an execution duration for the route establishment module, the route update module, and the route aging module respectively, in the order of the route establishment module, the route update module, and the route aging module, in each set At the end of the execution time, the corresponding module is called in turn.
较佳地, 所述交换设备包括: 交换接入装置和 /或交换网元;  Preferably, the switching device comprises: a switching access device and/or a switching network element;
在路由表和路由老化表中,均记录的是目的交换接入装置芯片 ID与本交 换设备上能够到达该目的交换接入装置的可用链路的对应关系。  In the routing table and the route aging table, the correspondence between the destination switching access device chip ID and the available link of the switching device that can reach the destination switching access device is recorded.
较佳地, 所述装置应用于交换接入装置与交换网元连接的交换系统、 以 及由交换接入装置互联的交换系统。  Preferably, the apparatus is applied to a switching system in which the switching access device is connected to the switching network element, and a switching system interconnected by the switching access device.
本发明实施例还提供一种计算机程序, 包括程序指令, 当该程序指令被 交换设备执行时, 使得该交换设备可执行上面所述的方法。 本发明实施例还提供一种载有上述计算机程序的载体。 Embodiments of the present invention also provide a computer program comprising program instructions that, when executed by a switching device, cause the switching device to perform the method described above. Embodiments of the present invention also provide a carrier carrying the above computer program.
本发明实施例所述路由更新的实现方法及装置,通过路由老化进行更新, 能保证交换系统的稳定性和可靠性。 与相关技术相比, 虽然路由老化功能会 增加额外的系统资源开销, 但是所消耗的系统资源只占用很少的一部分, 是 可以忽略的。 若本发明实施例所述装置由硬件实现, 其路由更新速度比相关 技术更快, 也不会占用 CPU资源。 附图概述 The method and device for implementing the route update according to the embodiment of the present invention can be updated by routing aging to ensure the stability and reliability of the switching system. Compared with related technologies, although the route aging function adds extra system resource overhead, the system resources consumed occupy only a small part and can be ignored. If the device in the embodiment of the present invention is implemented by hardware, the route update speed is faster than the related technology, and the CPU resources are not occupied. BRIEF abstract
图 1 为交换系统的结构示意图;  Figure 1 is a schematic structural diagram of a switching system;
图 2 为按照目的交换接入装置一交换网元一源端交换装置的方式进行自 路由的过程示意图;  2 is a schematic diagram of a process of self-routing in accordance with a manner in which a switching access device, a switching network element, and a source switching device are switched;
图 3 为一个单级组网交换系统的结构示意图;  Figure 3 is a schematic structural diagram of a single-stage networking switching system;
图 4 为一个 CLOS组网交换系统的结构示意图;  Figure 4 is a schematic structural diagram of a CLOS networking switching system;
图 5 为一个 MESH组网交换系统的结构示意图;  Figure 5 is a schematic structural diagram of a MESH networking switching system;
图 6 为本发明第一实施例的路由更新的实现方法流程图;  6 is a flowchart of a method for implementing route update according to a first embodiment of the present invention;
图 7 为本发明第二实施例的路由更新的实现装置组成示意图;  7 is a schematic structural diagram of an apparatus for implementing route update according to a second embodiment of the present invention;
图 8 为本发明应用实例的交换系统的结构示意图;  8 is a schematic structural diagram of a switching system according to an application example of the present invention;
图 9 为本发明应用实例的交换网元的路由表示意图;  9 is a schematic diagram of a routing table of a switching network element according to an application example of the present invention;
图 10 为本发明应用实例的交换接入装置的路由表示意图;  10 is a schematic diagram of a routing table of a switching access device according to an application example of the present invention;
图 11 为本发明应用实例路由老化处理流程的示意图;  11 is a schematic diagram of a route aging processing procedure of an application instance according to the present invention;
图 12 为本发明应用实例的老化处理三个阶段转化关系示意图。  FIG. 12 is a schematic diagram showing a three-stage conversion relationship of an aging process according to an application example of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
以下结合附图对本发明的较佳实施方式进行详细说明。 在不冲突的情况 下, 本申请实施例及实施例中的特征可以相互任意组合。 本发明第一实施例, 一种路由更新的实现方法, 如图 6所示, 在交换接 入装置和 /或交换网元中执行以下步骤: The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings. The features in the embodiments and the embodiments of the present application may be arbitrarily combined with each other without conflict. A first embodiment of the present invention, a method for implementing route update, as shown in FIG. 6, performs the following steps in a switching access device and/or a switching network element:
步骤 S101 , 根据接收到的路由信息, 建立路由老化表。  Step S101: Establish a route aging table according to the received routing information.
该步骤中, 因为交换接入装置或者交换网元均处于网络中, 在建立路由 时, 交换接入装置本身可以具有源端交换接入装置和目的交换接入装置两种 功能角色, 一台交换接入装置可以通过其所有可用链路接收相应的目的交换 接入装置发来的路由信息。 另外, 根据交换网元的基本功能, 一台交换网元 也可以通过其所有可用链路接收相应的交换接入装置发来的路由信息。  In this step, because the switching access device or the switching network element is in the network, when the routing is established, the switching access device itself may have two functional roles: a source switching access device and a destination switching access device, and one switching The access device can receive routing information sent by the corresponding destination switching access device through all its available links. In addition, according to the basic functions of the switching network element, a switching network element can also receive routing information sent by the corresponding switching access device through all available links.
步骤 S102, 基于路由老化表中的路由表项对路由表作一致性同步。 该步骤中, 在路由表和路由老化表中, 均记录的是目的交换接入装置芯 片 ID 与本级交换设备上能够到达该目的交换接入装置的可用链路的对应关 系。 这里, 交换设备可以是交换接入装置, 也可以是交换网元。  Step S102: Perform consistency synchronization on the routing table based on the routing entry in the route aging table. In this step, in the routing table and the route aging table, the correspondence between the destination switch access device chip ID and the available link of the local switching device that can reach the destination switching access device is recorded. Here, the switching device may be a switching access device or a switching network element.
步骤 S103 , 在同步完成后, 将路由老化表清零, 重复执行步骤 S101。 对于路由表的使用, 本发明实施例遵从现有技术的使用方式, 交换设备 (即交换接入装置或交换网元)定期将路由表中的路由信息通过所有可用链 路发送出去。  Step S103: After the synchronization is completed, clear the route aging table, and repeat step S101. For the use of the routing table, the embodiment of the present invention follows the usage mode of the prior art, and the switching device (ie, the switching access device or the switching network element) periodically sends the routing information in the routing table through all available links.
优选的, 由于在执行步骤 S102中的一致性同步操作和步骤 S103中清零 操作的时间段内, 可能还会产生经由所有可用链路发来的路由信息, 但此时 不能用于立即建立或更新路由老化表中的路由表项, 为了进一步提高交换系 统的稳定性和可靠性, 将这段时间内接收到的经由所有可用链路发来的路由 信息緩存起来, 用于在执行步骤 S101时建立路由老化表。 本领域技术人员应 当理解到, 所有可用链路指的是本交换接入装置或者本交换网元与外界相连 的所有可用链路。  Preferably, the routing information sent via all available links may also be generated during the period of performing the consistency synchronization operation in step S102 and the clearing operation in step S103, but cannot be used for immediate establishment or Updating the routing entries in the routing aging table, in order to further improve the stability and reliability of the switching system, the routing information received through all available links received during the period is cached, and is used to perform step S101. Establish a route aging table. Those skilled in the art should understand that all available links refer to all available links of the switching access device or the switching network element to the outside world.
优选的, 本实施例路由更新的实现方法, 还可以为步骤 S101 S103分别 设定执行时长, 根据状态机的方式、 按照步骤 S101 S103的顺序, 在每个设 定的执行时长结束时依次调用相应的步骤执行。  Preferably, in the implementation method of the route update in this embodiment, the execution time length may be separately set in steps S101 and S103, and the corresponding execution time length is sequentially called according to the state machine in the order of steps S101 and S103. The steps are performed.
本实施例路由更新的实现方法, 可以应用于交换接入装置与交换网元连 接的交换系统、 以及由交换接入装置互联的交换系统。 本发明第二实施例, 与第一实施例的所述路由更新的实现方法对应, 本 实施例是一种路由更新的实现装置, 位于交换接入装置和 /或交换网元中, 如 图 7所示, 所述包括: The implementation method of the route update in this embodiment may be applied to a switching system in which a switching access device is connected to a switching network element, and a switching system interconnected by the switching access device. The second embodiment of the present invention is related to the implementation method of the route update in the first embodiment. The embodiment is a device for implementing route update, which is located in a switching access device and/or a switching network element, as shown in FIG. 7. As shown, the includes:
路由建立模块 100, 设置为根据接收到的路由信息, 建立路由老化表。 其中, 因为交换接入装置或者交换网元均处于网络中, 在建立路由时, 交换接入装置本身可以具有源端交换接入装置和目的交换接入装置两种功能 角色, 一台交换接入装置中的路由建立模块 100可以通过其所有可用链路接 收相应的目的交换接入装置发来的路由信息。 另外, 根据交换网元的基本功 能, 一台交换网元中的路由建立模块 100也可以通过其所有可用链路接收相 应的交换接入装置发来的路由信息  The route establishment module 100 is configured to establish a route aging table according to the received routing information. Wherein, because the switching access device or the switching network element is in the network, when establishing the route, the switching access device itself may have two functional roles: the source switching access device and the destination switching access device, and one switching access The route establishment module 100 in the device can receive routing information sent by the corresponding destination switching access device through all available links thereof. In addition, according to the basic functions of the switching network element, the route establishing module 100 in a switching network element can also receive routing information sent by the corresponding switching access device through all available links thereof.
路由更新模块 200 , 设置为基于路由老化表中的路由表项对路由表作一 致性同步。  The routing update module 200 is configured to perform consistent synchronization on the routing table based on routing entries in the routing aging table.
其中, 在路由表和路由老化表中, 均记录的是目的交换接入装置芯片 ID 与本级交换设备上能够到达该目的交换接入装置的可用链路的对应关系。 这 里, 交换设备可以是交换接入装置, 也可以是交换网元。  The mapping between the destination switching access device chip ID and the available link of the local switching device that can reach the destination switching access device is recorded in the routing table and the routing aging table. Here, the switching device may be a switching access device or a switching network element.
路由老化模块 300 , 设置为在同步完成后, 将路由老化表清零调用路由 建立模块 100。  The route aging module 300 is configured to clear the route aging table to the call routing establishment module 100 after the synchronization is completed.
对于路由表的使用, 本发明实施例遵从现有技术的使用方式, 交换设备 (即交换接入装置或交换网元)定期将路由表中的路由信息通过所有可用链 路发送出去。  For the use of the routing table, the embodiment of the present invention follows the usage mode of the prior art, and the switching device (ie, the switching access device or the switching network element) periodically sends the routing information in the routing table through all available links.
优选的, 由于在路由更新模块 200执行一致性同步操作和路由老化模块 300执行清零操作的时间段内, 可能还会产生经由所有可用链路发来的路由 信息, 但此时不能用于立即建立或更新路由老化表中的路由表项, 为了进一 步提高交换系统的稳定性和可靠性, 本实施例所述路由更新的实现装置还包 括:  Preferably, since the routing update module 200 performs the consistency synchronization operation and the routing aging module 300 performs the clearing operation, routing information sent via all available links may also be generated, but this time cannot be used immediately. The device for implementing the route update in this embodiment further includes:
路由緩存模块 400, 设置为在路由更新模块 200执行一致性同步操作和 路由老化模块 300执行清零操作的时间段内, 将接收到的经由所有可用链路 发来的路由信息緩存起来, 发送给路由建立模块 100, 用于一并建立路由老 化表。 The route cache module 400 is configured to receive the received all available links during the period in which the routing update module 200 performs the consistency synchronization operation and the route aging module 300 performs the clear operation. The sent routing information is cached and sent to the route establishment module 100 for establishing a route aging table.
优选的, 所述装置还包括:  Preferably, the device further includes:
路由老化控制模块 500, 设置为为路由建立模块 100、 路由更新模块 200 和路由老化模块 300分别设定执行时长, 根据状态机的方式按照从路由建立 模块 100、 经路由更新模块 200、 到路由老化模块 300的顺序, 在每个设定的 执行时长结束时依次调用相应的模块运行。  The route aging control module 500 is configured to set an execution duration for the route establishment module 100, the route update module 200, and the route aging module 300, and according to the state machine, according to the slave route establishment module 100, the route update module 200, and the route aging. The order of the modules 300, in turn, calls the corresponding module run at the end of each set execution time.
本实施例路由更新的实现装置, 可以应用于交换接入装置与交换网元连 接的交换系统、 以及由交换接入装置互联的交换系统。  The apparatus for implementing route update in this embodiment may be applied to a switching system in which a switching access device is connected to a switching network element, and a switching system in which the switching access device is interconnected.
本发明实施例还提供一种计算机程序, 包括程序指令, 当该程序指令被 交换设备执行时, 使得该交换设备可执行上面所述的方法。  Embodiments of the present invention also provide a computer program comprising program instructions that, when executed by a switching device, cause the switching device to perform the method described above.
本发明实施例还提供一种载有上述计算机程序的载体。  Embodiments of the present invention also provide a carrier carrying the above computer program.
下面基于上述实施例介绍一个本发明的应用实例。 An application example of the present invention will be described below based on the above embodiment.
本应用实例的交换系统组成如图 8所示, 包括两个交换接入装置 801、 The switching system of this application example is composed as shown in FIG. 8, and includes two switching access devices 801.
802和一个交换网元 803。 交换接入装置 801 芯片 ID配置为 0 (后文称为 0 号交换接入装置), 交换接入装置 802 芯片 ID配置为 1 (后文称为 1号交换 接入装置)。 交换接入装置 801的链路 0、 1、 2分别连接交换网元的链路 0、 2、 4, 交换接入装置 802的链路 0、 1分别连接交换网元的链路 1、 3 , 但实 际中交换接入装置和交换网元的连接关系可以是任意的。 802 and a switching network element 803. The switching access device 801 has a chip ID configured to 0 (hereinafter referred to as a zero-number switching access device), and the switching access device 802 has a chip ID configured to 1 (hereinafter referred to as a switching device No. 1). The links 0, 1, and 2 of the switching access device 801 are respectively connected to the links 0, 2, and 4 of the switching network element, and the links 0 and 1 of the switching access device 802 are respectively connected to the links 1 and 3 of the switching network element. However, in practice, the connection relationship between the switching access device and the switching network element may be arbitrary.
步骤 001、 目的交换接入装置向其所有可用链路发送路由信息, 通知交 换网元通过这些链路可以到达本目的交换接入装置。  Step 001: The destination switching access device sends routing information to all available links, and notifies the switching network element that the switching access device can reach the destination switching access device.
步骤 002、 交换网元通过接收路由信息建立其路由表, 如图 9 ( a )所示, 其索引 901为目的交换接入装置芯片 ID, 其数据位宽 902为交换网元和交换 接入装置最大可能相连链路数, 内容 903为当前可达的目的交换接入装置的 链路的比特位映射。  Step 002: The switching network element establishes its routing table by receiving routing information. As shown in FIG. 9( a ), the index 901 is the destination switching access device chip ID, and the data bit width 902 is the switching network element and the switching access device. The maximum number of possible links, the content 903 is the bit map of the link of the currently reachable destination switching access device.
步骤 003、 交换网元向其所有可用链路发送路由信息, 通知源端交换接 入装置通过这些链路可以到达哪些目的交换接入装置。 步骤 004、 源端交换接入装置接收路由信息建立其路由表, 当前的 0号 交换接入装置和 1号交换接入装置中建立的路由表如图 10 ( a )所示。 Step 003: The switching network element sends routing information to all available links to notify the source switching access device of which destination switching access devices can reach through the links. Step 004: The source switching access device receives the routing information to establish a routing table, and the routing table established in the current switching access device No. 0 and the switching access device No. 1 is as shown in FIG. 10( a ).
步骤 005、 1号交换接入装置因某种原因, 其芯片 ID被修改为 2, 修改 后称为 2号交换接入装置。  Step 005, No. 1 exchange access device for some reason, its chip ID is modified to 2, modified to be called the number 2 exchange access device.
在没有路由老化处理时, 步骤 005之后进入步骤 006, 有路由老化处理 时则进入步骤 106。  If there is no route aging process, the process proceeds to step 006 after step 005. If the route aging process is performed, the process proceeds to step 106.
步骤 006、 交换网元接收到 2号交换接入装置发送的路由信息, 建立如 图 9 ( b )所示路由表。 从该路由表可以看出, 该交换网元仍旧可以向 1号交 换接入装置发送信元, 即原先建立的路由表无法得到更正。  Step 006: The switching network element receives the routing information sent by the switching access device No. 2, and establishes a routing table as shown in Figure 9 (b). It can be seen from the routing table that the switching network element can still send a cell to the No. 1 switching access device, that is, the originally established routing table cannot be corrected.
步骤 007、 交换网元向源端交换接入装置发送路由信息, 源端交换接入 装置建立如图 10 ( b )所示, 路由更新流程结束。 从该路由表可以看出, 0号 交换接入装置仍旧可以将信元交换到 1号交换接入装置, 原先建立的路由表 无法得到更正; 2号交换接入装置也可以将信元交换到 1 号交换接入装置, 交换网元将错误的路由信息传递到了源端交换接入装置。  Step 007: The switching network element sends routing information to the source switching access device, and the source switching access device is established as shown in FIG. 10(b), and the routing update process ends. It can be seen from the routing table that the 0th switching access device can still exchange the cell to the No. 1 switching access device, and the originally established routing table cannot be corrected; the No. 2 switching access device can also exchange the cell to In the switching access device No. 1, the switching network element transmits the wrong routing information to the source switching access device.
步骤 106、 在路由老化控制器的控制下, 所有交换接入装置及交换网元 的路由表都周期性的进行路由老化处理, 所有的路由表内容都被清除。  Step 106: Under the control of the route aging controller, all the switching access devices and the routing table of the switching network element periodically perform route aging processing, and all routing table contents are cleared.
图 11是上述路由老化处理流程的示意图, 主要涉及一张路由表、 一张路 由老化表和一个路由老化控制器,均位于每一个交换接入装置及交换网元中。  Figure 11 is a schematic diagram of the foregoing route aging process, which mainly involves a routing table, a routing aging table, and a route aging controller, which are located in each switching access device and switching network element.
路由表中存储着本级交换设备(此处的交换设备指的是: 交换网元或者 交换接入装置) 的路由信息, 提供可用的链路进行信元的传递和复制。 路由 表在路由老化控制器的控制下进行周期性的更新。 同时路由表将本级路由信 息发送给上游交换设备。  The routing table stores the routing information of the switching device of the current level (the switching device here refers to: the switching network element or the switching access device), and provides available links for cell transmission and replication. The routing table is periodically updated under the control of the route aging controller. At the same time, the routing table sends the routing information of the local level to the upstream switching device.
路由老化表接收下游交换设备的路由信息, 建立本级路由表, 在路由老 化控制器的控制下进行周期性的清零和更新, 同时路由老化表将老化更新后 的正确的路由信息更新到路由表中去。 在路由建立和更新的过程中可达的目 的交换设备称为下游交换设备, 源端交换设备称为上游交换设备。  The route aging table receives the routing information of the downstream switching device, establishes the local routing table, performs periodic clearing and updating under the control of the route aging controller, and the routing aging table updates the correct routing information after aging update to the routing. Go in the table. The destination switching device that is reachable in the process of route establishment and update is called the downstream switching device, and the source switching device is called the upstream switching device.
路由老化控制器将路由老化处理分为三个阶段, 如图 12所示, 路由建表 阶段 701、路由更新阶段 702和路由老化阶段 703。这三个阶段进行循环处理, 在路由建表阶段, 通过接收路由信息建立路由老化表; 在路由更新阶段, 将 路由老化表中的路由信息更新到路由表中去; 在路由老化阶段, 对路由老化 表进行清零处理。 The route aging controller divides the route aging process into three phases. As shown in FIG. 12, the route establishment phase 701, the route update phase 702, and the route aging phase 703. These three stages are looped, In the route construction phase, the route aging table is established by receiving the routing information. In the route update phase, the routing information in the routing aging table is updated to the routing table. In the aging phase of the route, the routing aging table is cleared.
步骤 107、 当 1 号交换接入装置脱离交换系统后, 交换网元不在继续收 到该交换接入装置发出的路由信息, 交换网元重新建立的路由表如图 9 ( c ) 所示, 该交换网元只能往 0号和 2号交换接入装置发送信元, 路由表被正确 更新。  Step 107: After the switching access device is disconnected from the switching system, the switching network element does not continue to receive the routing information sent by the switching access device, and the routing table re-established by the switching network element is as shown in FIG. 9(c). The switching network element can only send cells to the switching access devices No. 0 and No. 2, and the routing table is correctly updated.
步骤 108、 交换网元向源端交换接入装置发送正确更新后路由信息, 交 换接入装置重新建立的路由表如图 10 ( c )所示, 交换网元不再传递错误的路 由信息, 路由更新流程结束。  Step 108: The switching network element sends the correct updated routing information to the source switching access device, and the routing table re-established by the switching access device is shown in FIG. 10(c), and the switching network element no longer transmits the wrong routing information and routes. The update process ends.
本发明实施例提供一种设计思路和方法, 能够解决自路由时路由表不能 正确更新的问题, 保证了数据交换过程中的稳定性和可靠性。 本发明实施例 通过在路由更新的过程中加入路由老化处理, 实现了路由表的正确更新。 即 交换接入装置或者交换网元通过接收路由信息来建立路由表, 并周期性的对 路由表进行清零处理, 待处理完成后, 再通过接收新的路由信息重新建立路 由表。 旧的路由信息在路由老化的过程中被清除, 保证错误的路由信息不会 往上游交换设备传递, 也保证信元不会被错误的传递到下游交换设备。  The embodiment of the invention provides a design idea and a method, which can solve the problem that the routing table cannot be correctly updated when self-routing, and ensures the stability and reliability in the data exchange process. The embodiment of the invention implements the correct update of the routing table by adding route aging processing in the process of routing update. That is, the switching access device or the switching network element establishes a routing table by receiving routing information, and periodically clears the routing table. After the processing is completed, the routing table is re-established by receiving new routing information. The old routing information is cleared in the process of aging the route, ensuring that the incorrect routing information is not transmitted to the upstream switching device, and that the cells are not incorrectly delivered to the downstream switching device.
通过具体实施方式的说明, 应当可对本发明为达成预定目的所釆取的技 术手段及功效得以更加深入且具体的了解, 然而所附图示仅是提供参考与说 明之用, 并非用来对本发明加以限制。  The technical means and functions of the present invention for achieving the intended purpose can be more deeply and specifically understood by the description of the specific embodiments. However, the accompanying drawings are only for the purpose of reference and description, and are not intended to be Limit it.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如, 只 读存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使 用一个或多个集成电路来实现, 相应地, 上述实施例中的各模块 /单元可以釆 用硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于 任何特定形式的硬件和软件的结合。  One of ordinary skill in the art will appreciate that all or a portion of the steps described above can be accomplished by a program that instructs the associated hardware to be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Optionally, all or part of the steps of the foregoing embodiments may also be implemented by using one or more integrated circuits. Accordingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may use software functions. The form of the module is implemented. The invention is not limited to any specific form of combination of hardware and software.
工业实用性 本发明实施例所述路由更新的实现方法及装置,通过路由老化进行更新 . 能保证交换系统的稳定性和可靠性。 Industrial applicability The method and device for implementing route update according to the embodiment of the present invention are updated by route aging. The stability and reliability of the switching system can be ensured.

Claims

权 利 要 求 书 claims
1、 一种路由更新的实现方法, 包括在交换设备中执行以下步骤: 步骤 1 , 根据接收到的路由信息, 建立路由老化表; 1. A method for implementing route update, including performing the following steps in a switching device: Step 1. Establish a route aging table based on the received routing information;
步骤 2 , 基于所述路由老化表中的路由表项对路由表作一致性同步; 步骤 3 , 在同步完成后, 将所述路由老化表清零, 重复执行步骤 1。 Step 2: Consistently synchronize the routing table based on the routing table entries in the routing aging table; Step 3: After the synchronization is completed, clear the routing aging table and repeat step 1.
2、 根据权利要求 1所述的路由更新的实现方法, 其中, 在执行步骤 2中 的一致性同步操作和步骤 3中清零操作的时间段内, 将接收到的路由信息緩 存起来, 緩存的路由信息用于在执行步骤 1时建立路由老化表。 2. The implementation method of routing update according to claim 1, wherein the received routing information is cached during the time period during which the consistency synchronization operation in step 2 and the clearing operation in step 3 are performed, and the cached routing information is cached. The routing information is used to establish the routing aging table when performing step 1.
3、 根据权利要求 1所述的路由更新的实现方法, 所述方法还包括: 为步骤 1~3分别设定执行时长, 按照步骤 1~3的顺序, 在每个设定的执 行时长结束时依次调用相应的步骤执行。 3. The method for implementing routing update according to claim 1, the method further comprising: setting the execution duration for steps 1 to 3 respectively, and following the order of steps 1 to 3, at the end of each set execution duration Call the corresponding steps in sequence.
4、 根据权利要求 1所述的路由更新的实现方法, 其中, 所述交换设备包 括: 交换接入装置和 /或交换网元; 4. The method for implementing route update according to claim 1, wherein the switching device includes: a switching access device and/or a switching network element;
在路由表和路由老化表中, 均记录的是目的交换接入装置芯片标识与本 交换设备上能够到达该目的交换接入装置的可用链路的对应关系。 In the routing table and the route aging table, what is recorded is the corresponding relationship between the chip identification of the destination switching access device and the available link on the switching device that can reach the destination switching access device.
5、 根据权利要求 1~4中任一项所述的路由更新的实现方法, 其中, 所述 方法应用于交换接入装置与交换网元连接的交换系统、 以及由交换接入装置 互联的交换系统。 5. The method for implementing route update according to any one of claims 1 to 4, wherein the method is applied to a switching system in which a switching access device is connected to a switching network element, and a switching system interconnected by a switching access device. system.
6、 一种路由更新的实现装置, 位于交换设备中, 所述装置包括: 路由建立模块, 其设置为根据接收到的路由信息, 建立路由老化表; 路由更新模块, 其设置为基于路由老化表中的路由表项对路由表作一致 性同步; 以及 6. A device for implementing route update, located in a switching device. The device includes: a route establishment module, which is configured to establish a route aging table based on the received routing information; a route update module, which is configured to establish a route aging table based on the route aging table. The routing table entries in the routing table are consistently synchronized; and
路由老化模块, 其设置为在同步完成后, 将路由老化表清零, 调用路由 建立模块。 The route aging module is configured to clear the route aging table and call the route establishment module after synchronization is completed.
7、 根据权利要求 6所述的路由更新的实现装置, 所述装置还包括: 路由緩存模块, 其设置为在所述路由更新模块执行一致性同步操作和所 述路由老化模块执行清零操作的时间段内, 将接收到的路由信息緩存起来, 发送给所述路由建立模块。 7. The device for implementing route update according to claim 6, the device further comprising: a route cache module configured to perform a consistency synchronization operation in the route update module and a clearing operation in the route aging module. Within the time period, the received routing information is cached, Sent to the route establishment module.
8、 根据权利要求 6所述的路由更新的实现装置, 所述装置还包括: 路由老化控制模块, 其设置为为所述路由建立模块、 所述路由更新模块 和所述路由老化模块分别设定执行时长, 按照从所述路由建立模块、 经所述 路由更新模块、 到所述路由老化模块的顺序, 在每个设定的执行时长结束时 依次调用相应的模块运行。 8. The device for implementing route update according to claim 6, the device further comprising: a route aging control module, which is configured to set settings for the route establishment module, the route update module and the route aging module respectively. The execution duration is in the order from the route establishment module, through the route update module, to the route aging module, and the corresponding modules are sequentially called to run at the end of each set execution duration.
9、 根据权利要求 6所述的路由更新的实现装置, 其中, 所述交换设备包 括: 交换接入装置和 /或交换网元; 9. The device for implementing route update according to claim 6, wherein the switching device includes: a switching access device and/or a switching network element;
在路由表和路由老化表中,均记录的是目的交换接入装置芯片 ID与本交 换设备上能够到达该目的交换接入装置的可用链路的对应关系。 Both the routing table and the route aging table record the correspondence between the chip ID of the destination switching access device and the available links on the switching device that can reach the destination switching access device.
10、 根据权利要求 6~9中任一项所述的路由更新的实现装置, 其中, 所 述装置应用于交换接入装置与交换网元连接的交换系统、 以及由交换接入装 置互联的交换系统。 10. The device for implementing route update according to any one of claims 6 to 9, wherein the device is applied to a switching system in which a switching access device is connected to a switching network element, and a switching system interconnected by a switching access device. system.
11、 一种计算机程序, 包括程序指令, 当该程序指令被交换设备执行时, 使得该交换设备可执行权利要求 1-5任一项所述的方法。 11. A computer program, including program instructions, which when executed by a switching device, enable the switching device to execute the method described in any one of claims 1-5.
12、 一种载有权利要求 11所述的计算机程序的载体。 12. A carrier carrying the computer program of claim 11.
PCT/CN2014/084418 2013-08-19 2014-08-14 Routing update method and device WO2015024477A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310362058.6A CN104426775B (en) 2013-08-19 2013-08-19 A kind of implementation method and device of routing update
CN201310362058.6 2013-08-19

Publications (1)

Publication Number Publication Date
WO2015024477A1 true WO2015024477A1 (en) 2015-02-26

Family

ID=52483071

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/084418 WO2015024477A1 (en) 2013-08-19 2014-08-14 Routing update method and device

Country Status (2)

Country Link
CN (1) CN104426775B (en)
WO (1) WO2015024477A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112583746A (en) * 2019-09-30 2021-03-30 深圳市中兴微电子技术有限公司 Cell transmission method and device, storage medium and electronic device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330726B (en) * 2015-06-24 2020-02-21 深圳市中兴微电子技术有限公司 Route management method and device
CN106302251B (en) * 2015-06-26 2019-09-06 深圳市中兴微电子技术有限公司 A kind of exchange network synchronous method and switch, access device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159664A (en) * 2007-11-01 2008-04-09 中兴通讯股份有限公司 Method of reducing synchronous information content when synchronizing multicast routing information
CN101179514A (en) * 2007-12-18 2008-05-14 杭州华三通信技术有限公司 Method and device of maintaining MAC item of distributed network processing system
CN101267348A (en) * 2008-04-29 2008-09-17 华为技术有限公司 A method and device for table time content aging
WO2013014360A1 (en) * 2011-07-25 2013-01-31 France Telecom Method of routing synchronisation messages

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100411383C (en) * 2003-08-22 2008-08-13 华为技术有限公司 Method for realizing message retransmission under routing device
CN101022413B (en) * 2007-03-26 2010-10-13 杭州华三通信技术有限公司 Load equalizing method and route server
CN101110846B (en) * 2007-08-29 2011-08-31 杭州华三通信技术有限公司 Management method and equipment for MAC address table item
CN101510889A (en) * 2009-04-03 2009-08-19 杭州华三通信技术有限公司 Method and equipment for obtaining dynamic route
CN101588302B (en) * 2009-06-26 2011-08-31 杭州华三通信技术有限公司 Method and apparatus for updating router
CN101599898B (en) * 2009-07-01 2012-07-25 北京邮电大学 Method for avoiding loop for routers adopting LFA mode in multilink fault environment
CN101656680B (en) * 2009-10-20 2012-03-14 杭州华三通信技术有限公司 Method and device for optimizing routing information protocol
US8484375B2 (en) * 2010-07-12 2013-07-09 Fujitsu Limited Systems and methods for removing stale mapping entries for network element
CN102186221B (en) * 2011-04-25 2013-11-20 北京星网锐捷网络技术有限公司 Method and device for updating routing table item
CN102821168B (en) * 2012-08-09 2015-08-12 中兴通讯股份有限公司 Based on method and the device of the MAC address aging of VPLS

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159664A (en) * 2007-11-01 2008-04-09 中兴通讯股份有限公司 Method of reducing synchronous information content when synchronizing multicast routing information
CN101179514A (en) * 2007-12-18 2008-05-14 杭州华三通信技术有限公司 Method and device of maintaining MAC item of distributed network processing system
CN101267348A (en) * 2008-04-29 2008-09-17 华为技术有限公司 A method and device for table time content aging
WO2013014360A1 (en) * 2011-07-25 2013-01-31 France Telecom Method of routing synchronisation messages

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112583746A (en) * 2019-09-30 2021-03-30 深圳市中兴微电子技术有限公司 Cell transmission method and device, storage medium and electronic device
CN112583746B (en) * 2019-09-30 2024-03-22 深圳市中兴微电子技术有限公司 Cell transmission method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN104426775A (en) 2015-03-18
CN104426775B (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN101573940B (en) System and method for TCP high availability
EP2274880B1 (en) Method and apparatus for link-state handshake for loop prevention
US9013978B2 (en) Synchronization between active TCP application and standby TCP application
US9705782B2 (en) Method and system for efficient graceful restart in an open shortest path first (OSPF) network
WO2021043181A1 (en) Data transmission method and device
CN101471940B (en) Method, system and device for synchronizing BGP route
WO2014183519A1 (en) Network topology discovery method and system
CN108337161B (en) Method for smoothly switching three-layer data flow of MLAG interface fault
CN103200109B (en) A kind of ospf neighbor relationship management method and equipment
CN107528706A (en) A kind of equipment main and standby rearranging method and device based on link protocol
JP2010035171A (en) Multi-router for time-controlled communication system
WO2017000832A1 (en) Mac address synchronization method, device and system
WO2014127629A1 (en) Message forwarding system, method and device
WO2014090083A1 (en) Service bearing method and apparatus during distributed resilient network interconnect
WO2019076046A1 (en) Transmission path configuration method, apparatus, and device
CN110768823A (en) Software defined network topology discovery method based on LLDP
CN103560947B (en) A kind of method and device avoiding intermediate system neighborhood to shake
WO2012065425A1 (en) Data stream framing method and apparatus
CN108616455A (en) A kind of route synchronization method of single machine pile system
US8848739B2 (en) Efficient switch fabric bandwidth distribution
WO2015024477A1 (en) Routing update method and device
WO2011113395A2 (en) A method and apparatus for load balance
WO2011120360A1 (en) Method and system for realizing hot standby in centralized network nodes
WO2013083013A1 (en) Synchronization method among network devices, network device and system
WO2017117955A1 (en) Route synchronizing method, device and communication system

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: 14838680

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14838680

Country of ref document: EP

Kind code of ref document: A1