[go: up one dir, main page]

CN1697337A - Rearrangement method in communication system - Google Patents

Rearrangement method in communication system Download PDF

Info

Publication number
CN1697337A
CN1697337A CN200410044466.8A CN200410044466A CN1697337A CN 1697337 A CN1697337 A CN 1697337A CN 200410044466 A CN200410044466 A CN 200410044466A CN 1697337 A CN1697337 A CN 1697337A
Authority
CN
China
Prior art keywords
veneer
board
switching
control
slot
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.)
Granted
Application number
CN200410044466.8A
Other languages
Chinese (zh)
Other versions
CN100342666C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100444668A priority Critical patent/CN100342666C/en
Priority to PCT/CN2005/000637 priority patent/WO2005109665A1/en
Publication of CN1697337A publication Critical patent/CN1697337A/en
Application granted granted Critical
Publication of CN100342666C publication Critical patent/CN100342666C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/15Interconnection of switching modules
    • H04L49/1515Non-blocking multistage, e.g. Clos
    • H04L49/1523Parallel switch fabric planes

Landscapes

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

Abstract

本发明涉及一种通信方法,公开了一种通信系统中的倒换方法,使得倒换前后业务通道的切换操作简单可靠、快速高效,满足电信级设备的倒换要求。这种通信系统中的倒换方法在基于共享内存通信方式的通信系统中用控制单板集中控制总线上单板的倒换操作,框内单板通过逻辑槽位和物理槽位映射机制来实现透明倒换,倒换时只需更新逻辑槽位和物理槽位映射表,在框间通信下还需要更新发送和接收通道映射信息以及控制命令字地址等进行倒换,包括控制单板倒换和设备单板倒换两种操作方式。

Figure 200410044466

The invention relates to a communication method, and discloses a switching method in a communication system, which makes the switching operation of service channels before and after switching simple, reliable, fast and efficient, and meets the switching requirements of telecom-level equipment. This switching method in the communication system uses the control board to centrally control the switching operation of the single board on the bus in the communication system based on the shared memory communication mode, and the single board in the frame realizes transparent switching through the logic slot and physical slot mapping mechanism During the switchover, only the logical slot and physical slot mapping table need to be updated, and the sending and receiving channel mapping information and the control command word address need to be updated under the inter-chassis communication, including control board switching and equipment board switching. way of operation.

Figure 200410044466

Description

通信系统中的倒换方法Switching method in communication system

技术领域technical field

本发明涉及一种通信方法,特别涉及基于共享内存通信方式的通信系统中单板的倒换方法。The invention relates to a communication method, in particular to a single board switching method in a communication system based on a shared memory communication mode.

背景技术Background technique

电信网络要求能为其用户提供可靠的不间断的服务,尤其是在一些重要业务的应用中,如电子货币、订单处理、客户服务、库存管理、电子邮件和国际互联网接入等,业务生存性变得比以往更加重要,其可用性要求能达到99.999%甚至更高。因此,网络生存能力成为影响网络设计与构建的重要因素,而在电信网络中使用的设备也相应的需要有很高的可靠性。Telecommunications networks are required to provide reliable and uninterrupted services to their users, especially in some important business applications, such as electronic money, order processing, customer service, inventory management, e-mail and Internet access, etc., business survivability becomes more important than ever, with availability requirements of 99.999% and beyond. Therefore, the network survivability has become an important factor affecting network design and construction, and the equipment used in the telecommunication network also needs to have high reliability accordingly.

冗余备份和主备倒换技术是一种常用的解决方法。冗余备份和主备倒换技术有多种备份模式,比如1+1,1∶1,1∶N等。1+1备份是一种简单的保护方式,系统中的主备用单元组成一个逻辑上的业务功能单元,即被保护设备单元拥有一个备用单元,主用模块负责业务的实时处理,备用业务保持与主用单元的数据一致,在检测到原主用单元故障时发起倒换,接管原主用单元上的业务。与1+1备份不同的式1∶1备份中备用单元只在出现故障后开始工作。而1∶N备份就是多个设备单元共享一个备用单元,当任意一个主用单元出现故障时,备用单元即接替其工作。Redundant backup and master-standby switching technology is a commonly used solution. Redundant backup and active-standby switching technologies have various backup modes, such as 1+1, 1:1, 1:N, etc. 1+1 backup is a simple protection method. The main and backup units in the system form a logical business function unit, that is, the protected equipment unit has a backup unit, and the main module is responsible for real-time processing of services. The data of the active unit is consistent, and a switchover is initiated when a failure of the original active unit is detected, and services on the original active unit are taken over. In the 1:1 backup, which is different from the 1+1 backup, the backup unit only starts to work after a failure occurs. The 1:N backup means that multiple equipment units share a backup unit. When any active unit fails, the backup unit will take over its work.

通常,一个复杂的电信设备包含多个处理单元协同工作,各单元之间需要进行通信;而在整个通信网络中,不同节点设备之间也需要通信。为了保证在网络故障条件下设备自愈能力、确保数据的完整性和维持服务质量,倒换必须在指定的时限内完成,尽快恢复业务,使对通信系统影响最小。可见,保护倒换机制的性能对于系统的可靠性乃至整个网络的生存能力都有着重大的影响。Usually, a complex telecommunication device includes multiple processing units working together, and communication between the units is required; and in the entire communication network, communication between different node devices is also required. In order to ensure the self-healing ability of equipment under network failure conditions, ensure data integrity and maintain service quality, the switching must be completed within the specified time limit, and the business can be restored as soon as possible, so as to minimize the impact on the communication system. It can be seen that the performance of the protection switching mechanism has a significant impact on the reliability of the system and even the survivability of the entire network.

目前通信系统中采用的倒换方法主要有基于电路交换和基于网际协议(Internet Protocol,简称“IP”)通信等倒换方法。Switching methods currently used in communication systems mainly include switching methods based on circuit switching and Internet Protocol (Internet Protocol, referred to as "IP") communication.

图1(a)示出了传统的电路交换系统中的倒换装置。电路交换机是通过“交换网络”实现的,交换网络单元包含主备交换平面两个单元,达到冗余备份的效果。各业务处理单元都与主备交换单元都保持物理连接,并且从两个交换平面上都可以收发数据,但正常工作时只选用主用平面上的数据处理。当交换网络单元发生倒换时,会通知所有指示各业务模块切换到新的交换平面上。为了保证倒换操作在规定的时限内完成,交换网络单元的倒换必须通过硬件方式实现。另外,每个业务处理单元也包含主备业务处理单元,用于保护各自的业务通信。对于主备业务处理单元,交换网络采用“一发双收”的工作模式,即将业务数据同时交换到主备业务处理单元的输入/输出端口上。主备业务模块之间通过仲裁或心跳握手方式确定端口收发的操作方式。正常工作时,只有主用单元会处理业务并发送数据,备用模块的输出端口处于断开连接或高阻状态;发生倒换时,主备单元根据仲裁结果决定断开或操作连接输入/输出端口。Fig. 1(a) shows a switching device in a traditional circuit switching system. The circuit switch is realized through the "switching network". The switching network unit includes two units of the active and standby switching planes to achieve the effect of redundant backup. Each service processing unit is physically connected to the active and standby switching units, and data can be sent and received from both switching planes, but only the data processing on the active plane is used during normal operation. When the switchover of the switching network unit occurs, it will notify all instructing service modules to switch to the new switching plane. In order to ensure that the switching operation is completed within the specified time limit, the switching of the switching network unit must be realized by hardware. In addition, each business processing unit also includes an active and standby business processing unit for protecting respective business communications. For the active and standby service processing units, the switching network adopts the working mode of "one send and two receive", that is, the service data is simultaneously switched to the input/output ports of the active and standby service processing units. The operation mode of port sending and receiving is determined by arbitration or heartbeat handshake between the active and standby service modules. During normal operation, only the active unit will process business and send data, and the output port of the standby module is disconnected or in a high-impedance state; when switching occurs, the active and standby units decide to disconnect or operate the input/output port according to the arbitration result.

图1(b)示出了传统的IP网络中的倒换装置。IP网络中每个设备或网络节点都分配有一个独立的IP地址,通过切换IP地址实现倒换操作。比如网络上有一个双机备份的网络服务器,当正在提供服务的一台服务器突然掉电或者发生异常宕机了,另一台备用的服务器会立刻切换为它的IP地址接管服务。Fig. 1(b) shows a switching device in a traditional IP network. Each device or network node in the IP network is assigned an independent IP address, and the switching operation is realized by switching the IP address. For example, there is a dual-machine backup network server on the network. When one server that is providing services suddenly loses power or goes down abnormally, the other backup server will immediately switch to its IP address to take over the service.

可见,对于传统的基于电路交换实现的倒换技术,由于主备仲裁、倒换通知等都需要直接由硬件实现,因此必须背板连接或配线,其通用性和可扩展性差,成本高。对于基于IP的双机备份实现的倒换技术,其倒换性能直接受IP技术局限性的限制,如传输时延不确定、传输带宽不保证等,导致在电信网络中远远不能满足实时业务、高服务质量的需求。It can be seen that for the traditional switching technology based on circuit switching, since the active/standby arbitration and switching notification need to be directly implemented by hardware, it must be connected or wired on the backplane, which has poor versatility and scalability and high cost. For the switching technology based on IP-based dual-system backup, its switching performance is directly limited by the limitations of IP technology, such as uncertain transmission delay and unguaranteed transmission bandwidth, which makes it far from being able to meet real-time business and high-service requirements in telecom networks. quality needs.

在实际应用中,上述方案存在以下问题:基于电路交换的倒换技术必须采用硬件实现,通用性和可扩展性差,成本高;基于IP的倒换技术不能应用于实时、高质量的电信业务中。In practical application, the above solutions have the following problems: the switching technology based on circuit switching must be implemented by hardware, which has poor versatility and scalability and high cost; the switching technology based on IP cannot be applied to real-time, high-quality telecommunication services.

造成这种情况的主要原因在于,硬件实现的倒换装置必须针对具体系统电路设计,不易升级和测试,而且成本较高;IP地址切换的倒换技术直接受IP技术的限制,而IP技术具有传输时延不确定、传输带宽不保证和传输质量不高等缺点。The main reason for this situation is that the switching device implemented by hardware must be designed for specific system circuits, which is not easy to upgrade and test, and the cost is high; the switching technology of IP address switching is directly limited by IP technology, and IP technology has transmission time Uncertain delay, transmission bandwidth is not guaranteed and transmission quality is not high.

发明内容Contents of the invention

有鉴于此,本发明的主要目的在于提供一种通信系统中的倒换方法,使得倒换前后业务通道的切换操作简单可靠、快速高效,满足电信级设备的倒换要求。In view of this, the main purpose of the present invention is to provide a switching method in a communication system, which makes the switching operation of service channels before and after switching simple, reliable, fast and efficient, and meets the switching requirements of telecom-grade equipment.

为实现上述目的,本发明提供了一种通信系统中的倒换方法,所述系统包含多块单板,其中包含至少一块控制单板,用于通过总线集中控制所有所述单板进行共享内存通信;所述单板上还包含逻辑槽位和物理槽位映射表,用于指示所有单板的逻辑槽位和物理槽位之间的映射关系,所述单板需要倒换时包含以下步骤:To achieve the above object, the present invention provides a switching method in a communication system, the system includes a plurality of single boards, including at least one control single board, which is used to centrally control all the single boards through the bus to perform shared memory communication ; The single board also includes a logical slot and a physical slot mapping table, which is used to indicate the mapping relationship between the logical slots and the physical slots of all single boards, and the single board needs to be switched. The following steps are included:

A所述控制单板修改所有所述单板上的逻辑槽位和物理槽位映射表,将原先主用的单板的逻辑槽位号映射到原先备用的单板的物理槽位号;The control single board of A modifies the logical slots and the physical slot mapping tables on all the single boards, and maps the logical slot number of the original active single board to the physical slot number of the original standby single board;

B所述控制单板修改所述原先主用和备用的单板上所存储的自身逻辑槽位号。B. The control single board modifies its own logic slot numbers stored on the original active and standby single boards.

其中,所述步骤A还进一步包含以下子步骤:Wherein, said step A further includes the following sub-steps:

A1所述控制单板修改本板上的逻辑槽位和物理槽位映射表,将原先主用的单板的逻辑槽位号映射到原先备用的单板的物理槽位号,将原先备用的单板的逻辑槽位号映射到原先主用的单板的物理槽位号;The control single board described in A1 modifies the logical slot and physical slot mapping table on this board, maps the logical slot number of the original primary board to the physical slot number of the original standby board, and maps the original The logical slot number of the board is mapped to the physical slot number of the original main board;

A2所述控制单板将本板更新的逻辑槽位和物理槽位映射表内容同步到所有其他单板上的逻辑槽位和物理槽位映射表中。The control single board described in A2 synchronizes the contents of the updated logical slot and physical slot mapping table of this board to the logical slot and physical slot mapping tables of all other single boards.

所述通信系统基于紧凑外围设备互连总线平台。The communication system is based on the Compact Peripheral Interconnect bus platform.

本发明还提供了一种通信系统中的倒换方法,所述系统包含至少两个相互通信的框,每一个框包含多块单板,其中包含至少一块控制单板,用于通过总线集中控制该框中所有所述单板进行共享内存通信;所述控制单板还包含通道信息表,用于保存框内所有单板的逻辑槽位号与收发数据存储区基址的映射关系,所述控制单板需要倒换时包含以下步骤:The present invention also provides a switching method in a communication system, the system includes at least two frames communicating with each other, each frame includes a plurality of single boards, including at least one control single board, which is used to centrally control the All the single boards in the frame perform shared memory communication; the control single board also includes a channel information table, which is used to save the mapping relationship between the logical slot numbers of all the single boards in the frame and the base address of the sending and receiving data storage area, and the control When a board needs to be switched, the following steps are involved:

D进行总线控制切换,原主用控制单板释放总线控制权,原备用控制单板接管所述总线控制权;D performs bus control switching, the original main control single board releases the bus control right, and the original standby control single board takes over the bus control right;

E更新存储在所述原主用控制单板和所述原备用控制单板上的通道信息表,将所述原主用控制单板的逻辑槽位号映射到所述原备用控制单板的收发数据存储区基址;E updates the channel information table stored on the original active control single board and the original standby control single board, and maps the logical slot number of the original active control single board to the sending and receiving data of the original standby control single board storage area base address;

F禁止所述原主用控制单板向所述设备单板分配接收通道。F prohibits the original active control board from allocating receiving channels to the device board.

其中,当系统中控制单板以外的单板发生倒换时,包含以下步骤:Among them, when the boards other than the control board in the system are switched, the following steps are included:

G更新存储在所述控制单板上的通道信息表,将原主用单板的逻辑槽位号映射到原备用单板的收发数据存储区基址;G updates the channel information table stored on the control single board, and maps the logical slot number of the original active single board to the base address of the sending and receiving data storage area of the original standby single board;

H更新所述原主用单板和原备用单板上用于实现底层驱动模块之间共享内存通信的控制命令字地址信息;H updates the control command word address information used to realize the shared memory communication between the bottom drive modules on the original active single board and the original standby single board;

I所述控制单板修改所述原主用单板和原备用单板上存储的自身逻辑槽位号。1. The control single board modifies the self-logic slot numbers stored on the original active single board and the original standby single board.

在倒换以前,检查倒换涉及的主用和备用单板是否都在使用,如果是则开始倒换。Before the switchover, check whether the active and standby boards involved in the switchover are in use, and if so, start the switchover.

所述通信系统基于紧凑外围设备互连总线平台。The communication system is based on the Compact Peripheral Interconnect bus platform.

所述框之间可以通过异步传输模式进行通信。The blocks can communicate through asynchronous transfer mode.

通过比较可以发现,本发明的技术方案与现有技术的区别在于,在基于共享内存通信方式的通信系统中用控制单板集中控制总线上单板的倒换操作,框内单板通过逻辑槽位和物理槽位映射机制来实现透明倒换,倒换时只需更新逻辑槽位和物理槽位映射表,在框间通信下还需要更新发送和接收通道映射信息以及控制命令字地址等进行倒换,包括控制单板倒换和设备单板倒换两种操作方式。Through comparison, it can be found that the difference between the technical solution of the present invention and the prior art is that in a communication system based on a shared memory communication mode, the control single board is used to centrally control the switching operation of the single board on the bus, and the single board in the frame passes through the logical slot and physical slot mapping mechanism to realize transparent switching. During switching, it is only necessary to update the logical slot and physical slot mapping table. Under inter-chassis communication, it is also necessary to update the sending and receiving channel mapping information and the control command word address for switching, including There are two operation modes: control board switching and device board switching.

这种技术方案上的区别,带来了较为明显的有益效果,即由于共享内存通信方式提供了方便的总线操作,逻辑槽位和物理槽位映射机制提供了简单的倒换操作方式,总线的集中控制保证了倒换的可靠性和实时性,通道映射机制实现了框间通信情况下的倒换,该倒换方法提供了无缝的保护机制,保证倒换的实时性和可靠性,降低了网络成本,大大提高了系统可扩展性和网络生存能力。The difference in this technical solution has brought obvious beneficial effects, that is, because the shared memory communication method provides convenient bus operation, the logical slot and physical slot mapping mechanism provides a simple switching operation mode, and the centralized bus The control ensures the reliability and real-time performance of the switching, and the channel mapping mechanism realizes the switching under the condition of inter-frame communication. Improved system scalability and network survivability.

附图说明Description of drawings

图1为现有的倒换技术的原理示意图;FIG. 1 is a schematic diagram of the principle of an existing switching technology;

图2为PSM框的结构、共享内存通信机制和框间通信机制示意图;Figure 2 is a schematic diagram of the structure of the PSM frame, the shared memory communication mechanism and the inter-frame communication mechanism;

图3为根据本发明的一个实施例的通过修改逻辑槽位和物理槽位映射表实现的倒换方法流程图;FIG. 3 is a flow chart of a switching method implemented by modifying a logical slot and a physical slot mapping table according to an embodiment of the present invention;

图4为根据本发明的一个实施例的框间通信下通过修改通道信息表实现的倒换方法流程图。Fig. 4 is a flowchart of a switching method implemented by modifying a channel information table under inter-frame communication according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings.

本发明基于共享内存通信技术,通过地址映射的修改完成设备单元的倒换操作,能满足实时性、透明性的要求。The invention is based on the shared memory communication technology, completes the switching operation of the equipment unit through the modification of the address mapping, and can meet the requirements of real-time performance and transparency.

在共享内存通信中,多个设备单元通过总线访问实现内存共享,同一总线上的各个单板通过共享内存区的读写实现数据通信,而不同总线之间可以通过其他接口技术实现通信。在本发明中,总线上各个单板的物理位置和逻辑位置之间存在映射关系,通过映射关系的修改实现设备单元的透明倒换,其可扩展性和实时性较好。In shared memory communication, multiple equipment units realize memory sharing through bus access, each single board on the same bus realizes data communication through reading and writing of shared memory area, and communication between different buses can be realized through other interface technologies. In the present invention, there is a mapping relationship between the physical position and the logical position of each single board on the bus, and the transparent switching of the equipment unit is realized through the modification of the mapping relationship, which has good scalability and real-time performance.

在本发明的一个实施例中,采用基于紧凑外围设备互连(CompactPeripheral Component Interconnect,简称“CPCI”)总线平台的PSM框实现总线上各个单板的倒换,即设备单元的倒换。In one embodiment of the present invention, a PSM frame based on a Compact Peripheral Component Interconnect (CPCI) bus platform is used to realize switching of individual boards on the bus, that is, switching of equipment units.

CPCI是一种基于外围设备互连(Peripheral Component Interconnect,简称“PCI”)标准的高性能工业总线,同时继承了欧式板卡的机械特性以实现可靠结构。PSM机框有16个槽位,前后都可以插板,处理的单板主要有4类,分别称为URCU、UACU、UGPU、UFIU以及通用的PCI扣板(PCIMezzanine Card,简称“PMC”)。其中,URCU板为PSM框中的控制单板,负责PSM框的管理功能,采用1+1备份;UACU板为PSM框中的辅助控制单板,辅助URCU板完成控制功能,主要用于实现PSM框中物理上不同段总线之间的互连,与URCU板成对使用;UGPU板为PSM框中的业务处理单元,支持各种业务类型,1个PSM框中最多配置12块UGPU板,系统可根据业务类型配置成1+1备份或1+N备份等。PMC即为CPCI系统中的小扣板,可根据配置需要扣在URCU单板或UGPU单板上,URCU和UGPU都提供通用的PMC接口,PMC一般用于完成特定的功能或增强处理功能;UFIU板用于实现框间连接,专门用于异步传输模式(Asynchronous TransferMode,简称“ATM”)光网络的光接口板,是一种PMC扣板,采用PMC接口,扣在URCU板上使用。CPCI is a high-performance industrial bus based on the Peripheral Component Interconnect ("PCI") standard, and at the same time inherits the mechanical characteristics of European boards to achieve a reliable structure. There are 16 slots in the PSM frame, and boards can be inserted in the front and rear. There are four main types of boards, which are called URCU, UACU, UGPU, UFIU, and the general-purpose PCI Mezzanine Card ("PMC"). Among them, the URCU board is the control single board in the PSM frame, responsible for the management function of the PSM frame, and adopts 1+1 backup; the UACU board is the auxiliary control single board in the PSM frame, which assists the URCU board to complete the control function and is mainly used to implement the PSM The interconnection between physically different segments of the bus in the frame is used in pairs with the URCU board; the UGPU board is the business processing unit in the PSM frame and supports various business types. A maximum of 12 UGPU boards can be configured in a PSM frame. It can be configured as 1+1 backup or 1+N backup according to the business type. PMC is a small subboard in the CPCI system, which can be attached to the URCU board or UGPU board according to the configuration needs. Both URCU and UGPU provide a common PMC interface. PMC is generally used to complete specific functions or enhance processing functions; UFIU The board is used to realize the connection between the frames, and it is specially used for the optical interface board of the asynchronous transfer mode (Asynchronous Transfer Mode, referred to as "ATM") optical network.

图2(a)示出了PSM框的结构、组成部分以及框间通信连接方式。Figure 2(a) shows the structure, components and inter-frame communication connections of the PSM frame.

在PSM框中,各单板之间的通信主要基于PCI总线技术,URCU板与各UGPU板之间的通信基于CPCI背板总线,URCU板或UGPU板与PMC扣板的通信则基于承载板内部的PCI总线。各单板间通过PCI桥等专用集成电路(Application Specific Integrated Circuits,简称“ASIC”)芯片来实现电气连接和地址转换功能,即只要对各桥片进行正确配置,CPCI平台中的所有单板都可以相互访问彼此的内存空间,这种通过访问共享内存实现的通信方式即为共享内存通信。根据PCI总线规范,PCI总线可以通过PCI桥进行级联,但由于受到电气等特性的限制,每一段PCI总线上最多只能挂8个PCI设备,所以16槽位的PSM框的背板实际由两段CPCI总线组成。两段CPCI总线之间通过UACU板完成桥接,实现跨总线的访问和总线之间的通信。但对于每一段CPCI总线同时只能有一个PCI主设备完成总线仲裁,因此URCU板在主备工作模式下只有1块主用单板用于控制两段CPCI总线,备用URCU板则与两段CPCI总线都断开URCU板倒换时,备用URCU板抢占总线控制权,主用URCU板释放总线控制权,相应的UACU板也与URCU一起倒换。In the PSM frame, the communication between the boards is mainly based on the PCI bus technology, the communication between the URCU board and each UGPU board is based on the CPCI backplane bus, and the communication between the URCU board or UGPU board and the PMC daughter board is based on the internal load board PCI bus. The electrical connection and address conversion functions are realized by Application Specific Integrated Circuits (ASIC) chips such as PCI bridges among the boards, that is, as long as the bridges are correctly configured, all boards in the CPCI platform can The memory space of each other can be accessed each other, and this communication method realized by accessing shared memory is shared memory communication. According to the PCI bus specification, the PCI bus can be cascaded through the PCI bridge. However, due to the limitation of electrical characteristics, only 8 PCI devices can be connected to each section of the PCI bus. Therefore, the backplane of the PSM frame with 16 slots is actually Composed of two sections of CPCI bus. The bridge between the two CPCI buses is completed through the UACU board to realize cross-bus access and communication between buses. But for each segment of CPCI bus, only one PCI master device can complete the bus arbitration at the same time, so the URCU board has only one master board to control the two segments of CPCI bus in the active and standby mode, and the standby URCU board is connected with the two segments of CPCI When the bus is disconnected and the URCU board is switched, the standby URCU board seizes the bus control right, the active URCU board releases the bus control right, and the corresponding UACU board is also switched together with the URCU board.

PSM框的共享内存通信主要由UFIU底层驱动、CPCI底层驱动和PMC扣板底层驱动模块完成。PSM框之间通过ATM的服务器+客户端模式实现,采用ATM光传输网络承载。UFIU所带有的光接口连到ATM光传输网络,UFIU底层驱动模块完成PSM框间的通信。CPCI底层驱动模块完成PSM框内URCU板与各UGPU板之间的通信。每块PMC扣板底层通信模块完成其承载板与PMC扣板间的通信。可见,URCU或UGPU板的倒换发生时,与倒换相关的通信模块只涉及负责框间通信的UFIU底层驱动模块或负责框内通信的CPCI底层驱动模块。The shared memory communication of the PSM box is mainly completed by the UFIU bottom driver, the CPCI bottom driver and the PMC subboard bottom driver module. The PSM frame is implemented through the ATM server + client mode, and is carried by the ATM optical transmission network. The optical interface of the UFIU is connected to the ATM optical transmission network, and the underlying driver module of the UFIU completes the communication between the PSM frames. The CPCI underlying driver module completes the communication between the URCU board and each UGPU board in the PSM frame. The communication module at the bottom of each PMC subboard completes the communication between its load board and the PMC subboard. It can be seen that when the switching of the URCU or UGPU board occurs, the communication modules related to the switching only involve the UFIU bottom-layer driver module responsible for inter-frame communication or the CPCI bottom-layer driver module responsible for intra-frame communication.

图2(b)示出了CPCI总线上各个单板之间内存共享机制。CPCI底层通信模块的工作原理就是各单板之间的内存共享。每块单板都为其它板预留出一块共享物理内存,通过PCI桥片映射到CPCI总线上,再通过PCI桥片映射到其他单板的PCI存储空间,当其他板访问这段PCI存储空间时,实际上就访问到了源板的物理内存。可见,PCI桥片的映射实现了不同单板之间的内存共享。Figure 2(b) shows the memory sharing mechanism among the individual boards on the CPCI bus. The working principle of the communication module at the bottom of CPCI is the memory sharing among the boards. Each single board reserves a shared physical memory for other boards, which is mapped to the CPCI bus through the PCI bridge, and then mapped to the PCI storage space of other boards through the PCI bridge. When other boards access this PCI storage space , the physical memory of the source board is actually accessed. It can be seen that the mapping of the PCI bridge achieves memory sharing between different boards.

图2(c)示出了采用UFIU实现PSM框间通信的机制。UFIU底层通讯模块的设计思想同CPCI相似,同样是基于共享内存以及CPCI地址空间映射,不同之处UFIU通信模块基于ATM服务器+客户端的模式实现。在连接机制上,UFIU通过光接口与ATM光网络相连,在ATM服务器+客户端的模式交换下,实现与其他PSM框或节点之间的通信。在PSM框内部,UFIU又与各个UGPU板通信之间通过共享内存的方式实现各个UGPU板的收发数据功能。每块UGPU板为UFIU预留一定的共享内存,通过前述CPCI地址空间映射方式,能被其它CPCI单板,自然也包括URCU板上的UFIU扣板访问。当UFIU从光口接收到数据时,由UFIU板上的ATM适应层(ATMadaptation layer 5,简称“AAL5”)的分段与重组子层(Segmentation andReassemble,简称“SAR”)专用处理芯片,比如型号为CN8236的ASIC芯片等,直接访问并存储在对应的接收UGPU板的UFIU接收共享内存区;当各UGPU板的数据发往PSM框外时,只需拷贝在UFIU发送共享内存区,由UFIU板上的SAR专用处理芯片自动取出并通过光接口转发到ATM网上。Figure 2(c) shows the mechanism of implementing PSM inter-frame communication using UFIU. The design idea of UFIU's underlying communication module is similar to that of CPCI. It is also based on shared memory and CPCI address space mapping. The difference is that UFIU's communication module is implemented based on the mode of ATM server + client. In terms of connection mechanism, UFIU is connected to ATM optical network through optical interface, and realizes communication with other PSM boxes or nodes under the mode switching of ATM server + client. Inside the PSM box, UFIU communicates with each UGPU board to realize the function of sending and receiving data of each UGPU board by sharing memory. Each UGPU board reserves a certain amount of shared memory for UFIU. Through the aforementioned CPCI address space mapping method, it can be accessed by other CPCI boards, including the UFIU daughter board on the URCU board. When the UFIU receives data from the optical port, the Segmentation and Reassemble (SAR) dedicated processing chip of the ATM adaptation layer (ATMadaptation layer 5, referred to as "AAL5") on the UFIU board, such as the model CN8236 ASIC chips, etc., directly access and store in the UFIU receiving shared memory area of the corresponding receiving UGPU board; when the data of each UGPU board is sent out of the PSM box, it only needs to be copied in the UFIU sending shared memory area, and the UFIU board The SAR dedicated processing chip on the device is automatically taken out and forwarded to the ATM network through the optical interface.

在承载PSM框间互连的ATM网中,ATM交换机通过信头中的虚通道(Virtual Path,简称“VP”)指示符VPI和虚通路(Virtual Channel,简称“VC”)指示符VCI寻路。在组成上,一条VP承载多条VC,因此VP可以看成是多个具有相同VPI值的VC集合。VP间具有不同的VPI值,同属一个VP的各VC具有不同的VCI,而分属不同的VP的VC可以具有相同的VCI值。通常,VC可以用于直接完成两个用户间的连接,VP则可用于不同网段间的连接。VP交换只切换VPI,信元的VCI在整个VP链路的传输过程中保持不变。VC连接在交换节点处,根据虚通路中信元的VPI和VCI查找映射表,获得相应新的VPI、VCI。In the ATM network that bears the interconnection between PSM frames, the ATM switch uses the virtual channel (Virtual Path, referred to as "VP") indicator VPI and virtual channel (Virtual Channel, referred to as "VC") indicator VCI in the header to find the path. . In terms of composition, one VP bears multiple VCs, so a VP can be regarded as a collection of multiple VCs with the same VPI value. VPs have different VPI values, VCs belonging to the same VP have different VCIs, and VCs belonging to different VPs may have the same VCI value. Usually, VC can be used to directly complete the connection between two users, and VP can be used for the connection between different network segments. VP switching only switches the VPI, and the VCI of the cell remains unchanged during the transmission of the entire VP link. The VC is connected at the switching node, and looks up the mapping table according to the VPI and VCI of the cells in the virtual path to obtain the corresponding new VPI and VCI.

由于PSM框间的网络结构相对稳定,因此一般采用永久虚通道(Perpetual Virtual Path,简称“PVP”)和永久虚通路(Perpetual VirtualChannel,简称“PVC”),PVP和PVC的建立是根据预期的需要通过预先规定好相应连接的VPI/VCI以及在各交换节点处的输入VPI/VCI与输出VPI/VCI间映射关系来完成。Since the network structure between PSM frames is relatively stable, Perpetual Virtual Channel (PVP for short) and Perpetual Virtual Channel (PVC for short) are generally used. The establishment of PVP and PVC is based on expected needs It is accomplished by pre-specifying the VPI/VCI of the corresponding connection and the mapping relationship between the input VPI/VCI and the output VPI/VCI at each switching node.

在PSM框间通信时,一般采用不同VPI表示不同PSM框,而框内的不同单板则用VCI表示。因此在UFIU板上,必须完成VCI寻路功能,即映射各个单板的VC通道,这通过发送VCC表(SEG VCC)和接收VCC表(RSMVCC)的映射实现。During communication between PSM frames, different VPIs are generally used to indicate different PSM frames, and different boards in the frame are represented by VCIs. Therefore, on the UFIU board, the VCI pathfinding function must be completed, that is, to map the VC channels of each board, which is realized by mapping the sending VCC table (SEG VCC) and receiving VCC table (RSMVCC).

在UFIU的SAR专用处理芯片上的共享内存地址区域,分配了URCU板和同框各UGPU板的发送和接收队列、SEG VCC表和RSM VCC表以及发送缓冲区描述(Send Buffer Descriptor,简称“SBD”)表等。在URCU的共享内存地址区域,主要分配了URCU的操作管理维护(Operation,Administration,Maintenance,简称“OAM”)信元和数据信元的收发数据缓冲区、收发的状态队列、以及同框各UGPU板的发送数据缓冲区。在各UGPU板上的共享内存地址区域,分配了本地的收发缓冲区描述符、收发状态队列、本地的SEG VCC表和RSM VCC表及接收数据缓冲区。In the shared memory address area on the SAR dedicated processing chip of UFIU, the sending and receiving queues, SEG VCC table and RSM VCC table of the URCU board and each UGPU board in the same frame, as well as the description of the sending buffer (Send Buffer Descriptor, referred to as "SBD") are allocated. ”) tables, etc. In the shared memory address area of the URCU, it is mainly allocated the operation, administration, maintenance ("OAM") cells and data cells of the URCU to send and receive data buffers, status queues for sending and receiving, and UGPUs in the same frame The board's transmit data buffer. In the shared memory address area of each UGPU board, local send and receive buffer descriptors, send and receive status queues, local SEG VCC tables and RSM VCC tables and receive data buffers are allocated.

UFIU的SAR专用处理芯片主要依靠VCC表来与外界之间进行收发ATM信元。发送VCC表位于SAR的共享内存中,每个单板最多允许建立256条发送PVC,表项的索引值就是发送VCC索引;同样对于接收VCC表,每个单板最多允许建立256条接收PVC,表项的索引值就是接收VCC索引。一个VCC索引与一条VPI、VCI链路对应。UFIU的PVC配置就是为单板的框间收发建立一个VCC索引与PVC的对应关系,也即VPI、VCI链路与每块单板之间的映射关系。UFIU单板的PVC均采用单向PVC,因此发送PVC和接收PVC的建立和拆除是独立的,两者索引号也是各自分配的。The SAR special processing chip of UFIU mainly relies on the VCC table to send and receive ATM cells with the outside world. The sending VCC table is located in the shared memory of the SAR. Each board is allowed to create up to 256 sending PVCs, and the index value of the entry is the sending VCC index; for the receiving VCC table, each board is allowed to create up to 256 receiving PVCs. The index value of the entry is the receiving VCC index. One VCC index corresponds to one VPI and VCI link. The PVC configuration of the UFIU is to establish a corresponding relationship between the VCC index and the PVC for the inter-chassis transmission and reception of the single board, that is, the mapping relationship between the VPI, the VCI link and each single board. The PVCs of the UFIU boards all use unidirectional PVCs, so the establishment and removal of the sending PVC and the receiving PVC are independent, and the index numbers of the two are also assigned separately.

可见,在框间通信下,在PSM框内需要通过VCC表中的VCC索引与PVC的对应关系来寻址,即发送PVC按物理槽位号对主机发送VCC表进行索引配置;接收PVC则按逻辑槽位号对主机接收VCC表进行索引配置。当倒换发生时,外界ATM交换不会改变,即并不能对VPI、VCI链路相应的VCC索引倒换,因此实际倒换的就是这条VCC索引PVC通道的对应关系,即VCC项与接收物理槽位号的对应关系,以改变接收数据单元的流向。It can be seen that under inter-frame communication, the PSM frame needs to be addressed through the corresponding relationship between the VCC index in the VCC table and the PVC, that is, the sending PVC is indexed according to the physical slot number of the host sending VCC table; the receiving PVC is configured according to the The logical slot number performs index configuration on the host receiving VCC table. When the switching occurs, the external ATM switching will not change, that is, the VCC index corresponding to the VPI and VCI link cannot be switched, so the actual switching is the corresponding relationship between the VCC index PVC channel, that is, the VCC item and the receiving physical slot The corresponding relationship of numbers to change the flow direction of received data units.

在本发明的一个实施例中,采用逻辑槽位和物理槽位的映射转换关系实现了基于CPCI共享内存通信的倒换方法。系统给总线上的每个单板分配一个逻辑槽位,高层应用通过该逻辑槽位访问相应单板,同时在每块单板上的CPCI底层驱动模块中都配置有一张逻辑槽位与物理槽位的映射表,该表反映了物理位置上每个单板分配到的对应逻辑槽位。通信过程中,CPCI底层驱动模块根据该表来索引物理位置上的单板。系统初始状态下逻辑槽位和单板的实际物理槽位是一致的,高层应用模块将数据单元和目的单板的逻辑槽位传到CPCI底层驱动模块,根据该逻辑槽位CPCI底层驱动模块即可查找逻辑槽位与物理槽位映射表,转换为目的单板的实际物理槽位,再通过PCI桥的共享地址空间映射,转换成对应的共享内存的CPCI空间地址进行访问。该逻辑槽位与物理槽位映射表机制直接与PSM框的底层相关,可通过直接索引查找的方式完成,因此对CPCI通信的效率没有影响。In one embodiment of the present invention, the switching method based on CPCI shared memory communication is implemented by using the mapping conversion relationship between logical slots and physical slots. The system assigns a logical slot to each single board on the bus, and the high-level application accesses the corresponding single board through this logical slot. Bit mapping table, which reflects the corresponding logical slot assigned to each board at the physical location. During the communication process, the CPCI underlying driver module indexes the single board at the physical location according to the table. In the initial state of the system, the logical slots are consistent with the actual physical slots of the board. The high-level application module transmits the data unit and the logical slot of the target board to the CPCI bottom-layer driver module. According to the logical slot, the CPCI bottom-layer driver module is It can search the logical slot and physical slot mapping table, convert it into the actual physical slot of the target board, and then convert it into the corresponding CPCI space address of the shared memory through the shared address space mapping of the PCI bridge for access. The logical slot and physical slot mapping table mechanism is directly related to the bottom layer of the PSM frame, and can be completed by direct index search, so it has no impact on the efficiency of CPCI communication.

在某一块或多块单板发生倒换时,只需修改所有单板上的逻辑槽位和物理槽位映射关系表,即可等效的实现单板的倒换。比如,需要倒换的原主用单板的逻辑槽位号为1映射到其物理槽位号1,而其备用单板的逻辑槽位号为2映射到其物理槽位号2,则两块单板发生倒换时,将映射表改为逻辑槽位号1映射到物理槽位号2,逻辑槽位号2映射到物理槽位号1,即等效完成了主备单板的倒换操作。同理也可以方便的实现其他备用模式的倒换操作。可见,该倒换方法不但操作方便,而且可以高速完成,在该倒换操作前后,业务通信几乎没有受到影响,保证了业务的正常通信。When one or more single boards are switched, it is only necessary to modify the logical slot and physical slot mapping tables on all the single boards to equivalently realize the switching of single boards. For example, if the logical slot number 1 of the original main board to be switched is mapped to its physical slot number 1, and the logical slot number 2 of the standby board is mapped to its physical slot number 2, the two single boards When board switching occurs, change the mapping table so that logical slot number 1 is mapped to physical slot number 2, and logical slot number 2 is mapped to physical slot number 1, that is, the switching operation of the active and standby boards is equivalently completed. In the same way, the switching operations of other standby modes can also be realized conveniently. It can be seen that the switching method is not only convenient to operate, but also can be completed at a high speed. Before and after the switching operation, the service communication is hardly affected, which ensures the normal communication of the service.

在本发明的一个较佳实施例中,采用集中控制的方法实现倒换操作,使得设备单元的倒换更加简单可靠。比如,前述PSM框中,CPCI控制单板URCU板集中控制所有单板的逻辑物理槽位号映射表,每块单板将逻辑槽位与物理槽位映射表也放在单板的共享内存中,由URCU板集中同步修改,确保整个通信系统的正常运行。In a preferred embodiment of the present invention, a centralized control method is adopted to realize the switching operation, so that the switching of the equipment unit is simpler and more reliable. For example, in the aforementioned PSM box, the CPCI control board URCU centrally controls the logical and physical slot number mapping tables of all boards, and each board also puts the logical slot and physical slot mapping table in the shared memory of the board , is modified centrally and synchronously by the URCU board to ensure the normal operation of the entire communication system.

在本发明的另一个实施例中,每块单板还保存有自身的逻辑槽位和物理槽位信息,则在修改逻辑和物理槽位映射关系表的同时,需要修改相关的发生倒换的单板中所保存的自身的逻辑槽位信息。比如,前面所述的1号物理槽位的单板和2号物理槽位的单板发生倒换时,除了所有映射表需要修改以外,存储在1号物理槽位单板上的逻辑槽位号需要从原来的1号改为2号,而存储在2号物理槽位单板上的逻辑槽位号需要从原来的2号改为1号。In another embodiment of the present invention, each single board also saves its own logical slot and physical slot information, then when modifying the logical and physical slot mapping relationship table, it is necessary to modify the relevant switching unit Its own logical slot information saved in the board. For example, when the board in physical slot No. 1 and the board in physical slot No. 2 mentioned above are switched, in addition to all mapping tables needing to be modified, the logical slot number stored on the board in physical slot No. 1 The original No. 1 needs to be changed to No. 2, and the logical slot number stored on the board of the No. 2 physical slot needs to be changed from the original No. 2 to No. 1.

根据上述内容,图3示出了根据本发明的一个实施例的通过修改逻辑槽位和物理槽位映射表实现的倒换方法具体流程。该方法对于总线上各种单板的倒换都适用,包含控制单板和设备单板。According to the above content, FIG. 3 shows the specific flow of the switching method implemented by modifying the logical slot and physical slot mapping table according to an embodiment of the present invention. This method is applicable to the switching of various single boards on the bus, including control single boards and equipment single boards.

在步骤301中,控制单板根据单板倒换方式来更新本板上的逻辑槽位和物理槽位映射表。比如PSM框中,URCU修改自身所存储的映射表。In step 301, the control board updates the logical slot and physical slot mapping table on the board according to the board switching mode. For example, in the PSM box, the URCU modifies the mapping table stored by itself.

接着进入步骤302,控制单板同步所更新的逻辑槽位和物理槽位映射表内容到所有单板上的逻辑槽位和物理槽位映射表中。比如PSM框中,URCU接着修改每块UGPU板上的映射表。修改时将原先主用的单板的逻辑槽位号和原先备用的单板的物理槽位号对应起来,将原先备用的单板的逻辑槽位号和原先主用的单板的物理槽位号对应起来。其他单板是通过逻辑槽位号来发送数据的,数据到达时,控制单板可以根据映射表中的对应关系把该数据送到倒换后的主用单板。Then enter step 302, control the single board to synchronize the updated logical slot and physical slot mapping table content to the logical slot and physical slot mapping table on all single boards. For example, in the PSM box, URCU then modifies the mapping table on each UGPU board. When modifying, match the logical slot number of the originally active board with the physical slot number of the original standby board, and match the logical slot number of the original standby board with the physical slot number of the original active board numbers correspond. Other single boards send data through logical slot numbers. When the data arrives, the control single board can send the data to the master single board after switching according to the corresponding relationship in the mapping table.

接着进入步骤303,控制单板更新该倒换所涉及的每块单板上所存储的其自身逻辑槽位信息。Then enter step 303, the control board updates its own logical slot information stored on each board involved in the switching.

在本发明的一个实施例中,考虑到框间通信的情况,每个框的对外接口板保存有用于单板数据单元转发的通道信息映射表。这里的通道信息映射表是对外接口板用于根据对外通信的通道号来索引框内单板物理槽位号的信息,在PSM框中即为前述发送VCC表和接收VCC表。在倒换发生时,需要修改这些信息,才能保证框间通信的正常运行。比如,前述PSM框中,基于ATM光接口的UFIU接口板上保存有接收VCC表和发送VCC表等信息,根据这些信息来索引转发各个单板的数据单元,完成框间通信。因此,在单板倒换发生时,根据前述基于逻辑物理槽位映射表的倒换方法更新所有逻辑物理槽位表之后,还需要修改相关的发送VCC表和接收VCC表等信息;在控制单板发生倒换时,则需要进行总线切换操作,将总线控制权转交给备用单板,将存储在原主用控制单板上的信息更新到备用单板。需要说明的是,控制单板倒换时进行的主备板信息更新主要是与控制板本身相关的信息,如主备控制板自身的收发通道映射表和主备板之间通信的通道映射表修改。与UGPU单板相关的通道映射表在平时(配置/删除/UGPU板倒换)操作时就对主备控制板进行了同步,所以控制板倒换时这些信息不需要再更新。另外,由于设备单板与控制单板上均带有ATM驱动模块,而不同ATM驱动模块之间需要进行通信,该底层驱动模块通信也是通过共享内存的方式实现的,具体的说,就是通过往相应的控制命令字地址写控制命令字来实现,因此在倒换发生时还需要修改相应的控制命令字地址。可见,框架通信下另外需要的倒换操作只涉及接口板底层驱动模块,简单可靠,实时性较好。In one embodiment of the present invention, considering the inter-frame communication, the external interface board of each frame stores a channel information mapping table for single-board data unit forwarding. The channel information mapping table here is the information used by the external interface board to index the physical slot number of the single board in the frame according to the channel number for external communication. In the PSM frame, it is the aforementioned sending VCC table and receiving VCC table. When switching occurs, the information needs to be modified to ensure the normal operation of inter-chassis communication. For example, in the aforementioned PSM frame, the UFIU interface board based on the ATM optical interface stores information such as the receiving VCC table and the sending VCC table, and based on these information, the data units of each board are indexed and forwarded to complete inter-frame communication. Therefore, when board switching occurs, after updating all logical and physical slot tables according to the aforementioned switching method based on the logical and physical slot mapping table, it is also necessary to modify relevant information such as the sending VCC table and receiving VCC table; During switching, a bus switching operation is required to transfer the control right of the bus to the standby board, and update the information stored on the original active control board to the standby board. It should be noted that the information update of the active and standby boards during the switchover of the control board is mainly information related to the control board itself, such as the modification of the sending and receiving channel mapping table of the active and standby control boards and the communication channel mapping table between the active and standby boards . The channel mapping table related to the UGPU single board is synchronized with the active and standby control boards during normal operations (configuration/deletion/UGPU board switching), so the information does not need to be updated when the control boards are switched. In addition, because both the device board and the control board are equipped with ATM driver modules, and different ATM driver modules need to communicate with each other, the underlying driver module communication is also realized through shared memory, specifically, through the previous The corresponding control command word address is implemented by writing the control command word, so it is necessary to modify the corresponding control command word address when switching occurs. It can be seen that the additional switching operation required under the framework communication only involves the bottom driver module of the interface board, which is simple, reliable and has good real-time performance.

在框间通信下,控制单板发生倒换和各设备单板发生倒换时有不同的处理步骤。图4(a)示出了根据本发明的一个实施例的框间通信下通过修改通道信息表实现的控制单板倒换方法。Under the inter-chassis communication, the processing steps are different when the control board is switched and when the equipment boards are switched. Fig. 4(a) shows a method for controlling switching of a single board realized by modifying a channel information table under inter-frame communication according to an embodiment of the present invention.

在步骤411中,进行总线控制切换,原主用控制单板释放总线控制权,原备用控制单板接管总线控制权。比如在PSM框中,原备用URCU处在总线断开状态,倒换发生时,原主用URCU通过握手转交总线控制权给原备用URCU。In step 411, bus control switching is performed, the original active control board releases the bus control right, and the original standby control single board takes over the bus control right. For example, in the PSM frame, the original standby URCU is in the bus disconnection state. When a switchover occurs, the original active URCU transfers the bus control right to the original standby URCU through handshaking.

接着进入步骤412,更新主备控制单板上的控制单板对应的通道信息表。比如在PSM框中,URCU板发生倒换时,需要更新主备URCU自身的发送VCC表和接收VCC表等信息,而这些发送VCC表和接收VCC表都存储在URCU上。发送VCC表和接收VCC表中包含了每一块单板收发数据存储区的基址,所谓基址是指基本的地址,可以根据这个基值找到收发数据存储区的起始位置,然后根据收发数据存储区内现有数据的情况经过计算得到当前需要收发的数据应该存放的位置。通过把原主用控制单板的逻辑槽位号映射到原备用控制单板的收发数据存储区基址,发向原先主用控制单板的数据现在就送到原先的备用控制单板中,从而实现倒换。Then enter step 412, and update the channel information table corresponding to the control board on the active and standby control boards. For example, in the PSM frame, when the URCU board is switched, it is necessary to update information such as the sending VCC table and receiving VCC table of the active and standby URCUs, and these sending VCC tables and receiving VCC tables are stored on the URCU. The sending VCC table and receiving VCC table contain the base address of each board’s transceiver data storage area. The so-called base address refers to the basic address. You can find the starting The situation of the existing data in the storage area is calculated to obtain the location where the current data that needs to be sent and received should be stored. By mapping the logical slot number of the original active control board to the base address of the sending and receiving data storage area of the original standby control board, the data sent to the original active control board is now sent to the original standby control board, thereby Implement switching.

接着进入步骤413,禁止原主用控制单板分配给各设备单板接收通道。比如在PSM框中,原主用URCU板上控制UGPU板,因此不能再分配给各设备单板接收通道。Then enter step 413, prohibiting the original active control board from being allocated to receiving channels of each device board. For example, in the PSM box, the original master board controls the UGPU board on the URCU board, so it cannot be assigned to the receiving channel of each device board.

图4(b)示出了根据本发明的一个实施例的框间通信下通过修改收发通道信息实现的设备单板(除控制单板以外的其他单板)倒换方法。Fig. 4(b) shows a method for switching equipment boards (other boards except the control board) by modifying sending and receiving channel information under inter-frame communication according to an embodiment of the present invention.

在步骤421中,更新存储在主备用控制单板上的倒换所涉及的设备单板相应的通道信息表。比如在PSM框中,需要更新主备URCU上所存储的倒换涉及的UGPU相应的发送VCC表和接收VCC表等信息。如前所述,所有UGPU的发送VCC表和接收VCC表等信息都是存储在URCU上的,同时每个UGPU还存储有自身的发送VCC表和接收VCC表等信息。In step 421, the channel information table corresponding to the equipment boards involved in the switchover stored on the active and standby control boards is updated. For example, in the PSM box, it is necessary to update information such as the corresponding sending VCC table and receiving VCC table of the UGPU involved in the switchover stored on the active and standby URCUs. As mentioned above, information such as the sending VCC table and receiving VCC table of all UGPUs are stored on the URCU, and each UGPU also stores information such as its own sending VCC table and receiving VCC table.

接着进入步骤422,更新倒换涉及的设备单板上的控制命令字地址信息,这里的控制命令字地址是用于实现底层驱动模块之间的共享内存通信。比如PSM框中,UGPU板与URCU板的底层ATM驱动模块需要通过往控制命令字地址上写控制命令字来实现通信,因此倒换时需要更新相应的控制命令字地址。Then enter step 422, update the control command word address information on the device board involved in the switchover, where the control command word address is used to realize the shared memory communication between the underlying driver modules. For example, in the PSM frame, the underlying ATM driver modules of the UGPU board and the URCU board need to write the control command word to the control command word address to achieve communication, so the corresponding control command word address needs to be updated during switching.

接着进入步骤423,控制单板修改倒换所涉及的主备设备单板的发送通道信息和接收通道信息。这里的发送通道信息和接收通道信息对每一块单板来说类似于自身逻辑槽位号的作用。Then enter step 423, the control single board modifies the sending channel information and receiving channel information of the active and standby equipment boards involved in the switchover. The sending channel information and receiving channel information here are similar to the role of its own logical slot number for each single board.

在实际应用中,为了保证切换的顺利,一般在倒换以前,还要检查倒换涉及的主用和备用单板是否都在使用,如果是则开始倒换,否则向网管系统报警。In practical application, in order to ensure smooth switching, generally before the switching, it is necessary to check whether the active and standby boards involved in the switching are in use.

熟悉本领域的技术人员可以理解,除了CPCI平台或PSM框以外,在其他基于共享内存通信方式的通信系统中,均可以采用本发明给出的倒换方法实现设备倒换,而不影响本发明的实质和范围。Those skilled in the art can understand that in addition to the CPCI platform or PSM frame, in other communication systems based on shared memory communication, the switching method provided by the present invention can be used to realize device switching without affecting the essence of the present invention and range.

在本发明中实施例中PSM框间级联方案主要采用UFIU扣板和ATM光接口实现,熟悉本领域的技术人员可以理解,采用其他物理接口实现不同PSM框之间或者不同CPCI总线之间的通信时,本发明所给出的倒换方法照样能完成设备倒换,而不影响本发明的实质和范围。In the embodiment of the present invention, the cascading scheme between PSM frames is mainly realized by using UFIU subboards and ATM optical interfaces. Those skilled in the art can understand that other physical interfaces are used to realize the connection between different PSM frames or between different CPCI buses. During communication, the switching method provided by the present invention can still complete equipment switching without affecting the essence and scope of the present invention.

虽然通过参照本发明的某些优选实施例,已经对本发明进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种各样的改变,而不偏离所附权利要求书所限定的本发明的精神和范围。Although the present invention has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein, and without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1. the reverse method in the communication system, described system comprises the polylith veneer, wherein comprises at least one control veneer, is used for carrying out shared drive communication by all described veneers of bus centralized control; Also comprise logical slot and physical slot position mapping table on the described veneer, be used to indicate the logical slot of all veneers and the mapping relations between the physical slot position, it is characterized in that described veneer comprises following steps in the time of need switching:
The described control veneer of A is revised logical slot and the physical slot position mapping table on all described veneers, and the logical slot of the veneer that the former former head is used number is mapped to the physical slot item of original standby veneer;
The described control veneer of B is revised the inherent logic slot number of being stored on described original primary and backup veneer.
2. the reverse method in the communication system according to claim 1 is characterized in that, described steps A also further comprises following substep:
The described control veneer of A1 is revised logical slot and the physical slot position mapping table on this plate, the logical slot of the veneer that the former former head is used number is mapped to the physical slot item of original standby veneer, the logical slot of original standby veneer number is mapped to the physical slot item of the veneer that the former former head uses;
In logical slot that the described control veneer of A2 upgrades this plate and the physical slot position mapping table content synchronization logical slot and physical slot position mapping table to the every other veneer.
3. the reverse method in the communication system according to claim 1 and 2 is characterized in that, described communication system is based on compact interconnection bus of peripheral devices platform.
4. the reverse method in the communication system, described system comprises at least two frames of intercommunication mutually, each frame comprises the polylith veneer, wherein comprises at least one control veneer, is used for carrying out shared drive communication by all described veneers of this frame of bus centralized control; Described control veneer also comprises the channel information table, is used to preserve the mapping relations of logical slot number with the transceive data memory block plot of all veneers in the frame, it is characterized in that described control veneer comprises following steps in the time of need switching:
D carries out total line traffic control and switches, and former main with control veneer release bus control right, former standby control veneer is taken over described bus control right;
E updates stored in described former main with the channel information table on control veneer and the described former standby control veneer, with the described former main transceive data memory block plot that number is mapped to described former standby control veneer with the logical slot of controlling veneer;
F forbids described former main with controlling veneer to described equipment veneer distribution receive path.
5. the reverse method in the communication system according to claim 4 is characterized in that, when the veneer beyond the control veneer in the system is switched, comprises following steps:
G updates stored in the channel information table on the described control veneer, former main logical slot with veneer number is mapped to the transceive data memory block plot of former standby board;
H upgrades described former main with being used to realize shared drive control of communication command word address information between the bottom layer driving module on veneer and the former standby board;
The described control veneer of I is revised described former main with the inherent logic slot number of storing on veneer and the former standby board.
6. according to the reverse method in claim 4 or the 5 described communication systems, it is characterized in that, before switching, check and whether to switch the primary and backup veneer that relates to, switch if then begin all using.
7. according to the reverse method in claim 4 or the 5 described communication systems, it is characterized in that described communication system is based on compact interconnection bus of peripheral devices platform.
8. according to the reverse method in claim 4 or the 5 described communication systems, it is characterized in that, can communicate by asynchronous transfer mode between the described frame.
CNB2004100444668A 2004-05-10 2004-05-10 Rearrangement method in communication system Expired - Lifetime CN100342666C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB2004100444668A CN100342666C (en) 2004-05-10 2004-05-10 Rearrangement method in communication system
PCT/CN2005/000637 WO2005109665A1 (en) 2004-05-10 2005-05-09 Method to realize single plate reversion in communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100444668A CN100342666C (en) 2004-05-10 2004-05-10 Rearrangement method in communication system

Publications (2)

Publication Number Publication Date
CN1697337A true CN1697337A (en) 2005-11-16
CN100342666C CN100342666C (en) 2007-10-10

Family

ID=35320528

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100444668A Expired - Lifetime CN100342666C (en) 2004-05-10 2004-05-10 Rearrangement method in communication system

Country Status (2)

Country Link
CN (1) CN100342666C (en)
WO (1) WO2005109665A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100459503C (en) * 2006-08-25 2009-02-04 华为技术有限公司 A method and system for obtaining the physical slot number and slot type of a single board
CN101425929B (en) * 2008-12-01 2011-02-09 成都市华为赛门铁克科技有限公司 Board number table allocation method, device and system
CN103220373A (en) * 2012-01-19 2013-07-24 中兴通讯股份有限公司 Interchange method and interchange device and equipment of distributed logical address and physical address
CN106603303A (en) * 2016-12-30 2017-04-26 杭州迪普科技股份有限公司 Cloud aggregation board card switching method and device
CN107124316A (en) * 2017-05-23 2017-09-01 烽火通信科技股份有限公司 Hardware based quick switching action implementation method in a kind of data communications equipment
CN111049566A (en) * 2019-11-20 2020-04-21 中国航空工业集团公司西安航空计算技术研究所 Information transfer method and airborne LRM module
CN119363218A (en) * 2024-12-24 2025-01-24 苏州大学 Computing-network fusion protection method and storage medium for all-optical data center network

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207409B (en) * 2006-12-21 2012-01-04 华为技术有限公司 Method for taking business turns and single board
KR102897791B1 (en) * 2016-10-17 2025-12-10 에스케이하이닉스 주식회사 Memory system and operating method of memory system
CN111478947B (en) * 2020-03-20 2023-02-17 珠海高凌信息科技股份有限公司 Method and system for real-time synchronization of main control board and standby control board

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1109416C (en) * 2000-04-25 2003-05-21 华为技术有限公司 Method and equipment for swapping active with standby switches
TW542961B (en) * 2000-12-29 2003-07-21 Chunghwa Telecom Co Ltd Fault tolerance system for memory sharing by multiple buses
JP2002247017A (en) * 2001-02-20 2002-08-30 Yamatake Building Systems Co Ltd Communication line switching device
US6915445B2 (en) * 2002-05-08 2005-07-05 Pluris, Inc. Fault-protection mechanism for protecting multi-protocol-label switching (MPLS) capability within a distributed processor router operating in an MPLS network

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100459503C (en) * 2006-08-25 2009-02-04 华为技术有限公司 A method and system for obtaining the physical slot number and slot type of a single board
CN101425929B (en) * 2008-12-01 2011-02-09 成都市华为赛门铁克科技有限公司 Board number table allocation method, device and system
CN103220373A (en) * 2012-01-19 2013-07-24 中兴通讯股份有限公司 Interchange method and interchange device and equipment of distributed logical address and physical address
WO2013107087A1 (en) * 2012-01-19 2013-07-25 中兴通讯股份有限公司 Distributed logical address and physical address conversion method, apparatus and device
CN103220373B (en) * 2012-01-19 2018-05-04 中兴通讯股份有限公司 A kind of distributed logic address exchanges method, apparatus and equipment with physical address
CN106603303A (en) * 2016-12-30 2017-04-26 杭州迪普科技股份有限公司 Cloud aggregation board card switching method and device
CN107124316A (en) * 2017-05-23 2017-09-01 烽火通信科技股份有限公司 Hardware based quick switching action implementation method in a kind of data communications equipment
CN107124316B (en) * 2017-05-23 2019-10-11 烽火通信科技股份有限公司 Hardware based quick switching action implementation method in a kind of data communications equipment
CN111049566A (en) * 2019-11-20 2020-04-21 中国航空工业集团公司西安航空计算技术研究所 Information transfer method and airborne LRM module
CN111049566B (en) * 2019-11-20 2022-03-08 中国航空工业集团公司西安航空计算技术研究所 Information transfer method and airborne LRM module
CN119363218A (en) * 2024-12-24 2025-01-24 苏州大学 Computing-network fusion protection method and storage medium for all-optical data center network

Also Published As

Publication number Publication date
CN100342666C (en) 2007-10-10
WO2005109665A1 (en) 2005-11-17

Similar Documents

Publication Publication Date Title
TWI233018B (en) Multi-port high-speed serial fabric interconnect chip in a meshed configuration
CN101355430B (en) Exchange frame, cluster router
WO2023143103A1 (en) Message processing method, and gateway device and storage system
Malavalli High-speed fiber channel switching fabric services
JPH01502707A (en) Method and apparatus for providing variable reliability in telecommunications switching systems
CN100342666C (en) Rearrangement method in communication system
EP2355404A1 (en) Method, device and system for forwarding multicast packets
CN102103471B (en) Data transmission method and system
CN1859244A (en) Master and slave frame cascade system in cut-in device
CN1661936A (en) Device of implementing backup for communication equipment in multistage and method of rearranging main and standby devices
CN1725693A (en) Management information interaction system and dedicated interface card and main control card in network equipment
CN1620068A (en) Link aggregation apparatus and method
CN101404609A (en) Data exchange method, apparatus and system
CN101247663B (en) Considerable routing system and its forwarding table generation method
CN114884878A (en) MAC address synchronization method for multi-switch chip stacking in hardware learning mode
CN101635683A (en) Method and device for transmitting service based on link aggregation
US20060123139A1 (en) Intelligent memory interface
CN1288878C (en) Multi-user expansion system
WO2025007786A1 (en) Switch, switch cabinet, and data exchange method
CN115459968B (en) Isolation method for high performance computer system and high performance computer system
CN1620047A (en) Unified platform system of Ethernet exchanger and router
CN217088087U (en) Optical line terminal communication equipment
CN1731730A (en) Kern memory exchange platform system for mass memory system
CN100352227C (en) Multi-inserting frame interconnecting system
CN107465478A (en) A kind of service separated SDH/SONET transmission equipments

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20071010