CN102185754A - Method for upgrading board card in switch system - Google Patents

Method for upgrading board card in switch system Download PDF

Info

Publication number
CN102185754A
CN102185754A CN 201110032239 CN201110032239A CN102185754A CN 102185754 A CN102185754 A CN 102185754A CN 201110032239 CN201110032239 CN 201110032239 CN 201110032239 A CN201110032239 A CN 201110032239A CN 102185754 A CN102185754 A CN 102185754A
Authority
CN
China
Prior art keywords
upgrade
voip gateway
board
service
step
Prior art date
Application number
CN 201110032239
Other languages
Chinese (zh)
Other versions
CN102185754B (en
Inventor
伍木飞
张勇胜
粟兵
黄俊良
黄燕杭
Original Assignee
广东佳和通信技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东佳和通信技术有限公司 filed Critical 广东佳和通信技术有限公司
Priority to CN201110032239.3A priority Critical patent/CN102185754B/en
Publication of CN102185754A publication Critical patent/CN102185754A/en
Application granted granted Critical
Publication of CN102185754B publication Critical patent/CN102185754B/en

Links

Abstract

The invention discloses a method for upgrading a board card in a switch system, belonging to the technical field of communication and information technological products. The method is characterized by comprising the following steps: adopting an HDCL link to connect with a VOIP (voice over internet protocol) gateway and a service board card to be upgraded; and sending upgrade packet data codes to an application program area of the service board card by frame sequence numbers in accordance with an order of the frame sequence numbers and then executing an upgrade command so as to upgrade the service board card in the switch system remotely. By adopting the technical scheme and the method, because original hardware equipment is mainly used, any change is not required, thus reducing the difficulty of hardware design; and the purpose that engineers are not required to carry out upgrade and maintenance in field can be reached.

Description

交换机系统中板卡的升级方法 Upgrade the switching system board

技术领域 FIELD

[0001] 本发明涉及一种交换机系统中板卡的升级方法,属于通讯和信息技术产品升级更新方法的技术领域,具体说属于通讯和信息技术产品中主要涉及交换机系统板卡升级更新方法的技术领域。 [0001] The present invention relates to a method for upgrading the switching system board, and belongs to the communication technical field of information technology upgrades updating method, particularly belonging to the communication and information technology products relates update method switching system board technology upgrade field.

背景技术 Background technique

[0002] 在现代通讯技术的飞速发展中,交换机容量迅猛增长。 [0002] In the rapid development of modern communication technology, the switch capacity has increased rapidly. 在交换系统中必不可少的业务板卡数量也随之增长,由此带来的一个问题就是各种业务板卡的软件版本维护的维护量较之前大大增加。 Essential in switching systems also will increase the number of business cards, a resulting problem is the maintenance software maintenance release of various business cards greatly increased than before. 而通常情况下,一般的用户板卡升级都会采取串口升级的方式,即需要工程人员到现场进行操作;或者是增加一条利用IP协议进行升级的网络通道。 And usually, the average user will be taken to upgrade card upgrade serial manner, the need to operate engineering personnel to the scene; an increase or upgrade the network channel using an IP protocol. 由于终端的使用人员通常都不具备相关的计算机知识,因此一般需要维护人员到现场进行升级。 Due to the use of terminal personnel do not usually have the relevant computer knowledge, and therefore generally require maintenance personnel to the site to be upgraded. 由于终端的分布范围广、距离远,一直采用的常规升级方法,即现场升级往往会使得人工成本增大、并且效率低下。 Due to the wide distribution terminal, distance, conventional upgrade method has been used, i.e. such that the field upgrade often increases labor costs, and inefficient. 技术人员一直以来试图寻找一种更经济实惠的方法来取代传统的现场升级方法,首选的方法是如果能够在网管侧完成远端板卡的升级,即远程完成交换机设备中业务板卡的升级无疑将大大降低工程技术人员的工作量,同时会有效的提高工作效率, 节省人工成本。 Technical staff have been trying to find a more affordable way to replace the traditional on-site upgrade method if the preferred method is able to complete the distal end of the board to upgrade the network management side, that is done remotely switch equipment business card upgrade doubt will greatly reduce the workload of engineering and technical personnel, and it will effectively improve work efficiency, saving labor costs.

发明内容 SUMMARY

[0003] 本发明提供了一种交换机系统中板卡的升级方法,以实现远程完成交换机设备中业务板卡的升级的目的。 [0003] The present invention provides a method of upgrading system switch board, in order to complete the object of the remote upgrade operations of the switch device board.

[0004] 为达到所述的目的本发明的技术方案和方法是: [0004] For the purposes of the technical solutions and methods of the present invention are:

[0005] 一种交换机系统,包括网管、服务器、VOIP网关及至少一块各类业务板卡,该业务板卡与VOIP网关之间采用ST-BUS串行通信总线物理连接并通过HDLC高级数据链路控制规程协议进行通讯;所述的网管、服务器与VOIP网关之间通过IP连接进行通信。 [0005] An exchange system, comprising a network management server, at least one of various types of VOIP gateways and service cards, and cards using the service between VOIP gateway ST-BUS serial communication bus and physically connected via HDLC High-level Data Link protocol communication control procedure; the network management, communication connection between VOIP gateway and the server over IP.

[0006] 一种基于如上所述的交换机系统中板卡的升级方法,包括如下步骤: [0006] The method of upgrading the switch system as described above based board, comprising the steps of:

[0007] (100)、网管选择需要升级的业务板卡,然后将包括升级包和待升级的业务板卡号及升级指令的数据通过IP发送至VOIP网关; [0007] (100), select the network service cards need to be upgraded, and the upgrade package including data to be upgraded and the upgraded service card ID number and transmits commands to the VOIP gateway through the IP;

[0008] (110) ,VOIP网关根据网管发来的数据通过主控板卡确定业务板卡,然后以指令的方式通知待升级业务板卡复位; [0008] (110), VOIP gateway according to the network data sent by the master board Board determines the service, and then notifies the instruction in a manner to be updated business card reset;

[0009] (130)、业务板卡接收到复位指令后,关闭看门狗,板卡复位;开始运行Boot程序; After [0009] (130), receiving a reset command service cards, off watchdog, reset card; Boot application starts running;

[0010] (140)、首先通过应用层协议来保证和VOIP网关之间的HDLC链路连接,即建立HDLC链路,采取的方式是业务板卡主动向VOIP网关发送建链信息,VOIP网关在收到建链信息后回送给业务板卡一个响应信息,则标识建链成功;如果建链不成功或链路不正常则进入步骤120,输出错误信息,然后再进入步骤110,业务板卡重新复位,重新开始升级过程; HDLC link connection between the [0010] (140), first application layer protocol VOIP gateway and to ensure that the HDLC link is established, the approach taken is to build the business card sends information to link VOIP gateways, VOIP gateway after receiving the link setup message back to the business card in response to a message, identifying the link establishment successfully; unsuccessful or if the link establishment proceeds to a link 120 is not normal, outputs error information step, and then proceeds to step 110, re-service cards reset, restart the upgrade process;

[0011] (150)、业务板卡判断是否收到VOIP网关的升级指令,如果收到的不是升级指令而是正常运行指示,则业务板卡跳转到步骤230,执行正常的应用程序;[0012] (160)、启动一个超时定时器,判断在指定的时间是否收到升级包,若在定时器设定的超时时间内没有收到升级包则业务板卡进入步骤250和步骤120,向主控板卡发送升级失败指示,然后进入步骤130 ; [0011] (150), determines whether or not the business card upgrading instruction VOIP gateway, if the received command is not an upgrade but indicates normal operation, the business card jumps to step 230, the normal application; [ 0012] (160), start a timeout timer, determines whether or not the upgrade package at the designated time, if the packet is not received within the timeout update timer set the business card and step 120 proceeds to step 250, to master card upgrade transmission failure indication, and then proceeds to step 130;

[0013] (170)、业务板卡接收从VOIP网关发来的升级包,发送准备就绪响应;VOIP网关收到业务板卡的就绪确认信息后开始按帧序号采取每次一帧的方式一帧一帧的向业务板卡发送升级程序包; [0013] (170), receiving from the service cards sent VOIP gateway upgrade package in response to the transmission ready; Start frame number adopted by the receipt-ready confirmation VOIP gateway information service cards each one a manner transmitting an update package to the service cards;

[0014] (180)、业务板卡收到升级包后,按顺序检查帧序号是否正确;若检查帧序号顺序有误,进入步骤250发送升级失败指示后输出错误信息步骤120,然后再进入步骤110,重新开始升级过程;VOIP网关将重新从第一帧开始发送升级包至业务板卡; [0014] (180), after receipt of the business card upgrade package, in order to check whether the correct frame number; if the error check frame step number in the wrong order, proceeds to step 250 after transmitting the upgrade failure indication output 120, and then proceeds to step 110, restart the upgrade process; upgrade the VOIP gateway will resend first frame from the packet to the service board;

[0015] (190)、帧序号顺序正确,业务板卡将接收到的代码写入应用程序区; [0015] (190), the frame number of the correct order, the business card received code written to the application area;

[0016] (200)、业务板卡向VOIP网关回送一个帧确认信息; [0016] (200), the service cards VOIP gateway sends back an acknowledgment message frame;

[0017] 010)、业务板卡检查收到的数据包是否是最后一包,如果不是最后一包,则会进入步骤170,VOIP网关继续向用户业务板卡发送下一帧序号的数据包; [0017] 010), business card checks whether the received packet is the last packet, if the packet is not the last one, will proceeds to step 170, VOIP gateway sends the next data packet frame number to a user service cards;

[0018] (220)、如果是最后一包,则业务板卡向VOIP网关发送升级成功指示; [0018] (220), if the packet is the last one, the upgraded service cards transmit a success indication to the VOIP gateway;

[0019] (230)、跳转到应用程序区,执行软件代码或升级后的软件代码。 [0019] (230), jumps to the application area, the executing software code or software code upgrades.

[0020] 该升级指令的格式为由四个字节构成,其中前三个字节为普通的协议字节,最后一个字节则称之为工作方式描述字节,该字节通过不同的值来标识不同的行为;当该字节值为1时,表示工作方式设定为升级,即前述的升级指令;当该值为2时则为正常运行工作方式,业务板卡收到后进入正常的应用程序。 [0020] format by the upgrading instruction is four bytes configuration, wherein the first three bytes common protocol bytes, the last byte is called the work described byte that different values ​​of to identify different behavior; when the value of 1 byte indicating the work mode is set to the upgrade, i.e. the upgrade instructions; when compared with the normal run mode of operation when the value is 2, after receiving the service cards into normal s application.

[0021] 该VOIP网关发送给业务板卡的升级包拆分成结合应用程序与驱动程序的要求进行安排的N帧的帧长传送,每帧帧长小于4096字节。 [0021] The frame length VOIP gateway to a transport service upgrade package board split into binding requirements of the application and the driver arrangements of N frames, the frame length is less than 4096 bytes per frame.

[0022] 该每帧为1¾字节,N帧满足计算公式N =升级包总大小/1¾字节。 [0022] This is 1¾ bytes per frame, N frames is calculated to meet the total size of N = upgrade package / 1¾ bytes.

[0023] 该帧序号从1开始按顺序编号。 [0023] The frame number sequentially numbered starting with one.

[0024] 该业务板卡每收到一帧后都会给VOIP网关回送响应;该响应由三个字节构成,其中前两个字节为一般协议字节,最后一个字节则通过置0标识升级成功,置1标识升级失败。 [0024] After receiving the service cards each to a VOIP gateway will send back a response; the response is composed of three bytes, two bytes of which the first general protocol bytes, the last byte is set to 0 by the identifier successful upgrade, set to identify the upgrade fails.

[0025] 采用本发明的技术方案和方法由于利用了原有的硬件设备,不需要作任何改动, 降低了硬件设计难度;同时也达到并实现避免工程人员到现场进行升级维护的效果。 [0025] The technical solutions and methods of the present invention, since the use of existing hardware devices without any change, reducing the difficulty of hardware design; and also to achieve the engineering staff to implement to avoid the effect of site upgrade and maintenance.

附图说明 BRIEF DESCRIPTION

[0026] 图1为本发明业务板卡升级过程的流程图; [0026] FIG. 1 is a flowchart of business card upgrade process of the present invention;

[0027] 图2为本发明交换机系统结构示意图。 [0027] FIG. 2 is a schematic structure of the present invention, the switching system.

具体实施方式 detailed description

[0028] 为了使本发明的技术方案、优点更加清晰、将结合附图对本发明进行更详尽地说明。 [0028] In order to make the technical solutions of the present invention, more clearly the advantages of the present invention in conjunction with the accompanying drawings described in more detail.

[0029] 如图2所示,本发明涉及的交换机系统中主要包括如下几个部份:网管、服务器、 VOIP网关、各类业务板卡(VoIP是Voice over Internet Protocol的缩写,指的是将模拟的声音讯号经过压缩与封包之后,以数据封包的形式在IP网络的环境进行语音讯号的传输,通俗来说也就是互联网电话、网络电话或者简称IP电话的意思)。 [0029] As shown, the switching system according to the present invention mainly includes the following several part 2: the network management server, VOIP gateway, various types of service cards (VoIP is an abbreviation of Voice over Internet Protocol, refers to the analog audio signal after compression and packet data in a packet form for transmission of voice signals in IP network environment, which is popular for Internet telephony, Internet telephony or IP telephony meant for short). 业务板卡与VOIP网关之间的通讯方式采用的是HDLC协议(HDLC-High Level Data Link Control,高级数据链路控制规程,是一种面向比特的同步协议),物理连接方式是ST-BUS (Serial Telecom BUS, 串行通信总线)。 Communication between the service cards and VOIP gateway uses a HDLC protocol (HDLC-High Level Data Link Control, High-level Data Link Control, is a bit-oriented synchronous protocol), a physical connection is ST-BUS ( serial Telecom bUS, serial communication bus). HDLC协议是一种面向比特的链路控制协议,具有透明传输、传输效率高、 灵活性大,且传输数据包帧长不定,可以由用户指定。 HDLC protocol is a bit-oriented link control protocol, having a transparent transmission, high transmission efficiency, flexibility, and the variable frame length of the transport packet can be specified by the user. VOIP网管与网关之间通过IP进行通信(IP是英文hternet Protocol (网络之间互连的协议)的缩写,中文简称为“网协”,也就是为计算机网络相互连接进行通信而设计的协议。在因特网中,它是能使连接到网上的所有计算机网络实现相互通信的一套规则,规定了计算机在因特网上进行通信时应当遵守的规则。任何厂家生产的计算机系统,只要遵守IP协议就可以与因特网互连互通。IP地址具有唯一性,根据用户性质的不同,可以分为5类。) Abbreviations for communication (IP English hternet Protocol (interconnection protocol between networks) via an IP network and between VOIP gateway, Chinese referred to as "Tennis Federation", i.e. a network of interconnected computer communication protocols designed. in the Internet, which is connected to all the computer network enables the Internet communicate with each other to achieve a set of rules, the rules specified computers to communicate over the Internet to be observed. any computer system manufacturers, as long as the IP protocol may comply .IP interconnection with the Internet address is unique, depending on the nature of the user, it can be divided into five categories.)

[0030] 在设计中,HDLC链路被用来作为网关与业务板之间的信令通道,即把业务板卡与网关之间的信令数据通过HDLC链路来进行传输。 [0030] In the design, HDLC links are used as the signaling channel between the gateway and the service board, i.e. the signaling data between the gateway and the service cards for transmission via HDLC link.

[0031] 板卡升级的协议主要包含如下所述几种类型: [0031] The main board upgrade protocol comprises the following types:

[0032] 1.文件传输类型 [0032] 1. The file transfer type

[0033] 2.文件传输应答 [0033] 2. The file transfer response

[0034] 3.升级状态报告 [0034] 3. Upgrade Status Report

[0035] 文件传输类型协议是VOIP网关向业务板卡发送升级包的协议,格式如下: [0035] The file transfer protocol is a protocol VOIP gateway service board sends the upgrade package, the following format:

[0036] [0036]

帧编号 协议属性 数据长度 固件包内容 The frame number data length attribute protocol firmware package contents

[0037] 帧编号即用来进行帧序号校验的,协议属性是标识了该协议是用来进行升级用的。 [0037] The frame number of the frame number that is used for verification, and protocol attributes are used to identify the protocol is used to upgrade. 文件传输采用的是ACK机制,每传输一个帧给业务板卡,VOIP网关都需要检查ACK应答帧,即文件传输应答帧,格式如下所示: File transfer mechanism used is an ACK, the transmission of each frame to a business card, VOIP gateway needs to check ACK response frame, i.e., the file transfer response frame, in the following format:

[0038] [0038]

帧编号协议属性ACK标识 ACK frame number identification protocol properties

[0039] 当ACK标识=0时表示升级成功;当ACK标识=1时表示升级失败。 [0039] When ACK = 0 indicates identification upgrade is successful; represents identification upgrade fails when ACK = 1.

[0040] 升级状态报告帧结构如下所示: [0040] upgrade status report frame structure is shown below:

[0041] [0041]

帧编号 协议属性 固件升级控制 升级状态标识 Frame number control protocol upgrade status property identification firmware upgrade

[0042] 升级状态报告帧主要用于向VOIP网关报告当前的业务板卡升级状态,当升级状态标识=0时,表示业务板卡最后升级成功;当升级状态标识=1时,表示业务板卡最后升级失败。 [0042] upgrade status report frame primarily for reporting the current service state to upgrade VOIP gateway card, when the upgrade state flag = 0 indicates that the last successful upgrade service cards; when the upgrade state identifier = 1, represents a business card Finally, the upgrade fails.

[0043] 另外还有一条业务板卡工作方式设定协议,该协议主要用来设定板卡是进行升级还是工作在正常应用状态。 [0043] Further there is a service cards set the operating mode protocol is primarily used to set the board in a normal application upgrade or working state. 当业务板卡复位后,VOIP网关需要向业务板卡发送该条信息, 以通知业务板卡是工作在升级状态还是正常运行状态。 When the business card is reset, VOIP gateway needs to send a piece of information to business cards, business cards is to inform the work in upgrading state or normal operation. 协议格式如下所示: Protocol format is as follows:

[0044] [0044]

帧编号 协议属性 板卡工作方式 方式 Frame number Protocol Properties board work mode

[0045] 当方式字节=1时,表示工作在升级状态;当方式字节=2时,表示工作在正常运 [0045] When the mode byte = 1, showing the operation state of the upgrade; when the mode byte = 2, showing the operation in the normal operation

6行状态。 6 row status.

[0046] 业务板卡上使用的是单片机系统,该单片机的程序存储区分为2个部份,一部份为启动程序区,装载的是Boot程序,Boot程序一般是固定的,不需要进行升级;一部分是应用程序区,装载的是正常运行是需要执行的代码,这些代码即为我们要升级的对象。 [0046] The operational board is used SCM system, the SCM program memory area is divided into two segments, one to start the program area, is loaded Boot Program, Boot Program generally fixed, it does not need to be upgraded ; part of the application area, the load is running the code to be executed, the code is, we want to upgrade the object. 每次升级时,必须先运行Boot程序,Boot程序会检查VOIP网关是否向业务板卡发送了升级指令, 若有,则会进入等待升级状态,等待VOIP网关将代码传送至本业务板,然后将下载的代码写入应用程序区,跳转到应用程序区执行更新后的代码;若没有收到升级指令,则直接跳转到应用程序区,执行应用程序区中原有的代码。 Each time the upgrade, the program must be running Boot, Boot VOIP gateway program will check whether the instruction to send the upgrade service cards, if, upgrade will enter wait state, waiting for the VOIP gateway transmitting the code to the service board of the present, and then Download the code into the application area, execution jumps to the application area code update; if not received the upgrade instructions, then jump directly into the application area, the implementation of any original application area code. VOIP网关在与业务板数据链路建立成功后向业务板发送板卡工作方式设定命令,该命令通常由四个字节构成,其中前三个字节为普通的协议字节,最后一个字节则称之为工作方式描述字节,该字节通过不同的值来标识不同的行为。 VOIP gateway after establishing a successful transmission service board data link to the service panel board set the operating mode command, typically composed of four bytes, of which the first three bytes common protocol bytes, the last word section is called the work described byte which identifies the different behavior of different values. 例如当该字节值为1时,表示工作方式设定为升级,即前述的升级指令;该值为2时则为正常运行工作方式,业务板卡收到后进入正常的应用程序。 For example, when the value of 1 byte indicating the work mode is set to the upgrade, i.e. the upgrade instructions; compared with the normal run mode of operation, the business card is received into the normal application when the value 2.

[0047] 网管通过IP协议将升级程序发送到VOIP网关,而VOIP网关将升级程序发送到业务板卡;当维护人员需要升级业务板卡时,会远程将新的软件包通过网管发送到VOIP网关上。 [0047] The network upgrade program sent via IP protocol to VOIP gateways, VOIP gateway and sends the program to upgrade service cards; when maintenance personnel need to upgrade service cards, the new remote will send the package to the VOIP gateway network management on. VOIP网关收到升级包后向业务板卡发送复位指令。 VOIP gateway receives the packet sends a reset command to upgrade service cards. 业务板卡收到VOIP网关的升级指令立即复位,进入Boot程序。 Business card received VOIP gateway upgrade immediately reset command to enter the Boot program.

[0048] 业务板卡在Boot程序中会首先通过HDLC协议和VOIP网关进行通讯。 [0048] Boot business cards in the program will first communicate via HDLC protocol and VOIP gateway. 此时,HDLC 链路是作为升级链路而不是正常的信令链路。 At this time, HDLC link as a link instead of the normal upgrade signaling link. VOIP网关会检测自身是否有升级业务板卡的需求,如果有需求,就会继续向业务板发送升级的指令,业务板卡收到升级指令后会响应VOIP网关已进入等待升级的状态,准备接收来自于VOIP网关的升级包。 VOIP gateways will detect if there is a demand to upgrade their business card, and if there is demand, there will continue to send commands to upgrade service board, the board will respond after the receipt of business VOIP gateway upgrade instructions have been upgraded into a wait state, ready to receive VOIP gateway from the upgrade package.

[0049] VOIP网关发送给业务板的升级包会拆分成N帧,每帧占一定字节大小。 [0049] VOIP gateway upgrade package to a service board is split into N frames, each representing a certain size in bytes. 帧长可结合应用程序与驱动程序的要求进行安排,本发明中所使用的HDLC控制器要求帧长小于4096字节即可。 Frame length may be combined with the requirements of the application and the driver arrangements, the present invention is used in the HDLC controller 4096 bytes less than the frame length required to. 例如,当每帧定为USByte时,则计算公式为:N =升级包总大小/USByte。 For example, when each frame is defined as USByte, the formula is: N = the total size of the upgrade packet / USByte. 一般情况下,每帧的长度应该一致,仅最后一帧的长度是由整个数据包的实际长度所决定。 In general, the length of each frame should be the same, only the length of the last one is determined by the actual length of the entire packet. 每帧从1开始按顺序编号,方便业务板在接收到升级包时进行帧序号校验,如发现当前收到的帧序号不对时进行纠错。 Each frame are sequentially numbered starting with 1, the frame number plate to facilitate business check upon receipt of the update package, such as found in the currently received frame number when the error correction does not. VOIP网关收到业务板卡的等待升级确认信息后会按帧序号采取每次一帧的方式将升级包发送到业务板上,业务板每收到一帧后都会给VOIP网关回送响应。 VOIP gateway receives upgrade waiting service confirmation message boards will take each frame number according to a manner upgrade package is sent to the service board, after receiving each service board will give a VOIP gateway sends a response back. 这个响应是必须的,因为不如此,则VOIP网关无法判断发送给业务板的的数据业务板是否正确收到,若出现错误则VOIP网关无法进行下一步工作。 This response is a must, because it is not so, VOIP gateway service board can not judge sent to the data service board is properly received, if an error occurs VOIP gateway can not be the next step. 在本发明中,该响应由三个字节构成,其中前两个字节为一般协议字节,最后一个字节则通过置0或置1标识成功或失败。 In the present invention, the response consists of three bytes, two bytes of which the first general protocol bytes, the last byte is set to 1 or 0 by setting the success or failure identification. 在升级过程中,如遇到异常问题,即链路硬件故障或断电引起断链时,VOIP网关会无法收到来自于业务板的响应,于是会主动向网管报告升级错误,由网管按照前述流程重新进行升级。 During the upgrade process, such as exception is encountered a problem that when the link hardware failure or power outage caused by chain scission, VOIP gateway will not receive a response from the service board, then will take the initiative to update the error report NMS, the NMS of the preceding process re-upgrade.

[0050] 在本发明中,待升级的业务板卡有可能是多块,而VOIP网关只有一块。 [0050] In the present invention, to be upgraded service cards there may be a plurality, but only a VOIP gateway. VOIP网关与每块业务板卡之间都有独立的ST-BUS总线相连接。 Between VOIP gateway and each of the service card has a separate ST-BUS connected to the bus. 业务板卡是一个单片机系统,由CPU 最小系统、HDLC控制器以及其它控制芯片组成。 Business card is a single-chip system, a CPU minimum system, HDLC controller and other control chips. 单片机最小系统的程序存储器中分为两个部分,一部分是Boot区;一部分是应用程序区。 Single-chip program memory is divided into two minimal system parts, the Boot area; part of the application area. Boot区放置的Boot程序一般是固定的、不需要升级的Boot程序,该程序的主要用途即为从VOIP网关上下载应用程序并将程序写入应用程序区;应用程序区放置的是应用程序,也即我们的业务板卡在正常运行时运行的程序,是需要升级的对象。 Boot area placed Boot Program generally fixed, need to upgrade the Boot Program, the main purpose of the program is the downloaded application program from the VOIP gateway and written to the application area; application region is disposed applications, that is our business card program running in normal operation, it is the need to upgrade the object. 在本发明中,业务板上的Boot程序是每次升级板卡时必须先运行的。 In the present invention, Boot program service board that must be run each time the card upgrade. 只要对板卡进行了复位(包括硬件复位和软件复位),则无论业务板当前是运行何种程序(Boot程序或应用程序)都会重新开始运行Boot程序。 As long as the board has been reset (including hardware reset and software reset), regardless of what the current board business programs (Boot program or application) running Boot program will start running again. 业务板的升级流程主要是在Boot程序中完成的。 LPU upgrade process is mainly done in the Boot program. 详细升级过程如图1所述步骤如下: The upgrade process in detail in FIG. 1 the following steps:

[0051] (100)、网管选择需要升级的业务板卡,然后将包括升级包和待升级的业务板卡号及升级指令的数据通过IP发送至VOIP网关; [0051] (100), select the network service cards need to be upgraded, and the upgrade package including data to be upgraded and the upgraded service card ID number and transmits commands to the VOIP gateway through the IP;

[0052] (110) ,VOIP网关根据网管发来的数据通过主控板卡确定业务板卡,然后以指令的方式通知待升级业务板卡复位;VOIP网关需判明应升级哪一个业务板卡,然后以指令的方式通知待升级业务板卡复位。 [0052] (110), VOIP gateway determined according to the network data sent by the master card business card, then the notification instruction as to upgrade service cards to be reset; the VOIP gateway needs a service card which was found to be upgraded, and instructions as to upgrade notification service cards to be reset. 该指令是业务协议中的一条,其中的一个字节标识了这是一条复位指令。 This instruction is a service protocol, which is a byte that identifies a reset command. 业务板卡收到该指令后,于是板卡复位。 After receiving the instruction, service cards, so the board is reset.

[0053] (130)、业务板卡接收到复位指令后,关闭看门狗(进入死循环,看门狗溢出),板卡复位;开始运行Boot程序; After [0053] (130), receiving a reset instruction business card, the watchdog off (into the loop, watchdog timeout), card reset; Boot application starts running;

[0054] (140)、首先通过应用层协议来保证和VOIP网关之间的HDLC链路连接,即建立HDLC链路,采取的方式是业务板卡主动向VOIP网关发送建链信息,VOIP网关在收到建链信息后回送给业务板卡一个响应信息,则标识建链成功;如果建链不成功或链路不正常则进入步骤120,输出错误信息,然后再进入步骤110,业务板卡重新复位,重新开始升级过程; HDLC link connection between the [0054] (140), first application layer protocol VOIP gateway and to ensure that the HDLC link is established, the approach taken is to build the business card sends information to link VOIP gateways, VOIP gateway after receiving the link setup message back to the business card in response to a message, identifying the link establishment successfully; unsuccessful or if the link establishment proceeds to a link 120 is not normal, outputs error information step, and then proceeds to step 110, re-service cards reset, restart the upgrade process;

[0055] 本发明中的HDLC控制器会自动给数据包添加CRC校验,但只能保证接收到的数据的准确性,而此建链过程是通过应用层协议来保证链路的正常运行。 [0055] In the present invention, the HDLC controller is automatically added to the packet CRC check, but only to ensure the accuracy of the received data, and this process chain is built by the application layer protocol to ensure the normal operation of the link. 如果链路能够正常建立,则VOIP网关会根据自身当前的状态,向待升级业务板卡发送升级或不升级指示,进入步骤150。 If the link can be established normally, the VOIP gateway based on its current state, transmitting upgrade instructions to upgrade or service cards to be upgraded, proceeds to step 150. 若链路无法正常建立,则进入步骤120,输出错误信息,然后再进入步骤110,重新开始升级过程。 If the link can not be established, the process proceeds to 120, the step of outputting the error message, and then proceeds to step 110 to restart the upgrade process.

[0056] (150)、业务板卡判断是否收到VOIP网关的升级指令,如果收到的不是升级指令而是正常运行指示,则业务板卡跳转到步骤230,执行正常的应用程序; [0056] (150), determines whether or not the business card upgrading instruction VOIP gateway, if the received command is not an upgrade but indicates normal operation, the business card jumps to step 230, the normal application;

[0057] (160)、启动一个超时定时器(例如设定定时器小于1秒),判断在指定的时间是否收到升级包,若在定时器设定的超时时间内没有收到升级包则业务板卡进入步骤250和步骤120,向主控板卡发送升级失败指示,然后进入步骤130 ; [0057] (160), start a timeout timer (e.g. less than 1 second timer is set), it determines whether or not the upgrade package at the designated time, if the packet is not received within the timeout update timer is set business card and step 120 proceeds to step 250, the upgrade transmission failure indication to the master board, and then proceeds to step 130;

[0058] (170)、业务板卡接收从VOIP网关发来的升级包,发送准备就绪响应;VOIP网关收到业务板卡的就绪确认信息后开始按帧序号采取每次一帧的方式一帧一帧的向业务板卡发送升级程序包; [0058] (170), receiving from the service cards sent VOIP gateway upgrade package in response to the transmission ready; Start frame number adopted by the receipt-ready confirmation VOIP gateway information service cards each one a manner transmitting an update package to the service cards;

[0059] VOIP网关收到业务板卡的就绪确认信息后在步骤170中开始按帧序号一帧一帧的向业务板发送升级程序包。 [0059] After the receipt-ready confirmation VOIP gateway service cards start transmitting the upgrade information package according to the frame number of a service board in a step 170. 业务板卡收到升级包后,首先检查帧序号是否正确。 After the service board receive an upgrade package, first check the frame number is correct. 若序号正确,说明发送过程无错误,业务板会将接收到的代码写入应用程序区,向VOIP网关回送一个帧确认信息,进入步骤210。 If the number is correct, the process described transmission error, service board copies of the received code into the application area, to send back a frame VOIP gateway acknowledgment information, proceeds to step 210. 在步骤180中,若检查帧序号有误,如当前收到的是第六帧, 上一次收到的是第四帧,则说明数据传输过程有误,业务板进入步骤120,输出错误信息,然后再进入步骤110,重新开始升级过程。 In step 180, if the error check frame number, such as the currently received frame is the sixth, received last time is the fourth frame, the data transfer process is incorrect, LPU proceeds to step 120 outputs an error message, and then proceeds to step 110 to restart the upgrade process. VOIP网关将重新从第一帧开始发送升级包至业务板卡。 VOIP gateway will re-send the package to upgrade service cards from the first frame.

[0060] (180)、业务板卡收到升级包后,按顺序检查帧序号是否正确;若检查帧序号顺序有误,进入步骤250发送升级失败指示后输出错误信息步骤120,然后再进入步骤110,重新开始升级过程;VOIP网关将重新从第一帧开始发送升级包至业务板卡;[0061] (190)、帧序号顺序正确,业务板卡将接收到的代码写入应用程序区; [0060] (180), after receipt of the business card upgrade package, in order to check whether the correct frame number; if the error check frame step number in the wrong order, proceeds to step 250 after transmitting the upgrade failure indication output 120, and then proceeds to step 110, restart the upgrade process; upgrade the VOIP gateway will resend first frame from the packet to the service board; [0061] (190), the frame number of the correct order, the business card received code written to the application area;

[0062] (200)、业务板卡向VOIP网关回送一个帧确认信息; [0062] (200), the service cards VOIP gateway sends back an acknowledgment message frame;

[0063] 010)、业务板卡检查收到的数据包是否是最后一包,如果不是最后一包,则会进入步骤170,VOIP网关继续向用户业务板卡发送下一帧序号的数据包; [0063] 010), business card checks whether the received packet is the last packet, if the packet is not the last one, will proceeds to step 170, VOIP gateway sends the next data packet frame number to a user service cards;

[0064] 在步骤210中,业务板会检查收到的数据包是否是最后一包,如果是最后一包,则业务板卡向VOIP网关发送升级成功指示;如果不是最后一包,则会进入步骤170,VOIP网关继续向用户板发送下一帧序号的数据包。 [0064] In step 210, the service board checks whether the received packet is the last packet, if the packet is the last one, the upgraded service cards transmit a success indication to the VOIP gateway; if not the last packet, will enter step 170, VOIP gateway sends the next frame number of a data packet to the user board.

[0065] (220)、如果是最后一包,则业务板卡向VOIP网关发送升级成功指示; [0065] (220), if the packet is the last one, the upgraded service cards transmit a success indication to the VOIP gateway;

[0066] (230)、跳转到应用程序区,执行软件代码或升级后的软件代码。 [0066] (230), jumps to the application area, the executing software code or software code upgrades.

[0067] 业务板卡接收数据包结束后,进入步骤230,跳转到应用程序区,执行升级后的软件代码。 After [0067] receiving a data packet service cards, proceeds to step 230, jump to the application area, the upgraded software code executed.

Claims (7)

1. 一种交换机系统,其特征在于包括网管、服务器、VOIP网关及至少一块各类业务板卡,该业务板卡与VOIP网关之间采用ST-BUS串行通信总线物理连接并通过HDLC高级数据链路控制规程协议进行通讯;所述的网管、服务器与VOIP网关之间通过IP连接进行通信。 A switching system, comprising the network management server, at least one of various types of VOIP gateways and service cards, serial communication using the ST-BUS the bus traffic between the physical card and the VOIP gateway connected via HDLC High-level Data link control protocol for communication; the network management, communication connection between VOIP gateway and the server over IP.
2. 一种基于如权利要求1所述的交换机系统中板卡的升级方法,其特征在于包括如下步骤:(100)、网管选择需要升级的业务板卡,然后将包括升级包和待升级的业务板卡号及升级指令的数据通过IP发送至VOIP网关;(110)、V0IP网关根据网管发来的数据通过主控板卡确定业务板卡,然后以指令的方式通知待升级业务板卡复位;(130)、业务板卡接收到复位指令后,关闭看门狗,板卡复位;开始运行Boot程序; (140)、首先通过应用层协议来保证和VOIP网关之间的HDLC链路连接,即建立HDLC链路,采取的方式是业务板卡主动向VOIP网关发送建链信息,VOIP网关在收到建链信息后回送给业务板卡一个响应信息,则标识建链成功;如果建链不成功或链路不正常则进入步骤(120),该步骤(120)输出错误信息,然后再进入步骤(110),业务板卡重新复位,重新开始升级过程;(150)、业 A switch system as set forth based on the upgrade board 1, characterized in that comprising the steps of: (100), select the network to be upgraded service cards, including then be upgraded upgrade package and and the board number data service upgrade by sending command to the VOIP gateway IP; (110), V0IP gateway service cards determined by the main control board according to the network data sent, and then notifies the instruction in a manner to be reset to upgrade service cards ; (130), after receiving the service cards reset command, off the watchdog, reset card; Boot application starts running; (140), firstly to ensure that the application layer protocol HDLC link between VOIP gateway and the connection, that is the way to establish HDLC link, take the initiative to send a business card chain information to build VOIP gateways, VOIP gateway after receiving the construction chain information back to the business card a response message, the identity built a successful chain; if the chain is not built success or links are not normally proceeds to step (120), the step (120) outputs error information, and then proceeds to step (110), the business card reset, restart the upgrade process; (150), the industry 板卡判断是否收到VOIP网关的升级指令,如果收到的不是升级指令而是正常运行指示,则业务板卡跳转到步骤030),执行正常的应用程序;(160)、启动一个超时定时器,判断在指定的时间是否收到升级包,若在定时器设定的超时时间内没有收到升级包则业务板卡进入步骤(250)和步骤(120),该步骤(250)向主控板卡发送升级失败指示,然后进入步骤(130);(170)、业务板卡接收从VOIP网关发来的升级包,发送准备就绪响应;VOIP网关收到业务板卡的就绪确认信息后开始按帧序号采取每次一帧的方式一帧一帧的向业务板卡发送升级程序包;(180)、业务板卡收到升级包后,按顺序检查帧序号是否正确;若检查帧序号顺序有误, 进入步骤(250)发送升级失败指示后输出错误信息步骤(120),然后再进入步骤(110),重新开始升级过程;VOIP网关将重新从第一帧开始发送 Upgrading instruction determines whether or not the board VOIP gateway, if the received command is not an upgrade but indicates normal operation, the business card jumps to step 030), the normal applications; (160), start a timeout timer device, determines whether or not the upgrade package at the designated time, if the packet is not received within the timeout update timer set in step enters the service cards (250) and the step (120), the step (250) to the master control board upgrade transmission failure indication, and then proceeds to step (130); (170), receiving from the service cards sent VOIP gateway upgrade package in response to the transmission ready; VOIP gateway receives the start-ready acknowledgment information service cards each taken by a frame number of a send an update to the service package board; (180), after receipt of the business card upgrade package, in order to check whether the correct frame number; if the frame check sequence number error, go to step (250) outputs error information in step (120) a failure indication after sending the upgrade, and then proceeds to step (110), to restart the upgrade process; the VOIP gateway will resend first frame from the 级包至业务板卡; (190)、帧序号顺序正确,业务板卡将接收到的代码写入应用程序区; (200)、业务板卡向VOIP网关回送一个帧确认信息;010)、业务板卡检查收到的数据包是否是最后一包,如果不是最后一包,则会进入步骤(170),VOIP网关继续向用户业务板卡发送下一帧序号的数据包;(220)、如果是最后一包,则业务板卡向VOIP网关发送升级成功指示; 030)、跳转到应用程序区,执行软件代码或升级后的软件代码。 Level packet to the service board; (190), the frame number of the correct order, the business card received code written to the application area; (200), the business card is sent to a VOIP gateway back frame profile; 010), the business check whether the card receives a data packet is the last packet, if the packet is not the last one, it will enter step (170), VOIP gateway sends the next data packet frame number to a user service cards; (220), if is the last packet, send the upgrade service cards success indication to VOIP gateways; 030), jumps to the application area, after the execution of software code or update software code.
3.如权利要求2所述的交换机系统中板卡的升级方法,其特征在于该升级指令的格式为由四个字节构成,其中前三个字节为普通的协议字节,最后一个字节则称之为工作方式描述字节,该字节通过不同的值来标识不同的行为;当该字节值为1时,表示工作方式设定为升级,即前述的升级指令;当该值为2时则为正常运行工作方式,业务板卡收到后进入正常的应用程序。 3. The switching system of claim 2, claim upgrade board, wherein the upgrading instruction format by four bytes constituting, wherein the first three bytes common protocol bytes, the last word section is called the work described byte which identifies the different behavior of different values; when the value of 1 byte indicating the work mode is set to the upgrade, i.e. the upgrade instructions; when the value 2:00, compared to the normal run mode of operation, after receiving the service cards into the normal application.
4.如权利要求2所述的交换机系统中板卡的升级方法,其特征在于该VOIP网关发送给业务板卡的升级包拆分成结合应用程序与驱动程序的要求进行安排的N帧的帧长传送,每帧帧长小于4096字节。 4. The switching system of claim 2, claim upgrade board, characterized in that the VOIP gateway sends a packet to the service board upgrade split into conjunction with the application requirements of the driver frame N frame arrangements long transfer, the frame length is less than 4096 bytes per frame.
5.如权利要求4所述的交换机系统中板卡的升级方法,其特征在于该每帧为1¾字节, N帧满足计算公式N =升级包总大小/1¾字节。 5. The switch system according to the claim upgrade board, which is characterized in that the 1¾ bytes per frame, N frames is calculated to meet the total size of N = upgrade package / 1¾ bytes.
6.如权利要求2所述的交换机系统中板卡的升级方法,其特征在于该帧序号从1开始按顺序编号。 6. The switching system of claim 2, claim upgrade board, characterized in that the frame numbers are sequentially numbered starting with 1.
7.如权利要求2所述的交换机系统中板卡的升级方法,其特征在于该业务板卡每收到一帧后都会给VOIP网关回送响应;该响应由三个字节构成,其中前两个字节为一般协议字节,最后一个字节则通过置0标识升级成功,置1标识升级失败。 7. The switching system of claim 2, claim upgrade board, wherein each of the service after receiving a card will send a response back to the VOIP gateway; the response is composed of three bytes, wherein the first two bytes general protocol bytes, the last byte is set to 0 by identifying successful upgrade, the upgrade fails set identifier.
CN201110032239.3A 2011-01-30 2011-01-30 Method for upgrading board card in switch system CN102185754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110032239.3A CN102185754B (en) 2011-01-30 2011-01-30 Method for upgrading board card in switch system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110032239.3A CN102185754B (en) 2011-01-30 2011-01-30 Method for upgrading board card in switch system

Publications (2)

Publication Number Publication Date
CN102185754A true CN102185754A (en) 2011-09-14
CN102185754B CN102185754B (en) 2014-03-12

Family

ID=44571825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110032239.3A CN102185754B (en) 2011-01-30 2011-01-30 Method for upgrading board card in switch system

Country Status (1)

Country Link
CN (1) CN102185754B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102347955A (en) * 2011-11-01 2012-02-08 杭州依赛通信有限公司 Reliable data transmission protocol based on virtual channels
CN103617061A (en) * 2013-12-05 2014-03-05 中国航空无线电电子研究所 Method for multi-node on-line software updating on basis of ARM
WO2016116013A1 (en) * 2015-01-19 2016-07-28 中兴通讯股份有限公司 Software upgrade method and system
CN106555743A (en) * 2015-09-30 2017-04-05 深圳市深蓝电子股份有限公司 A kind of motor compressor drive firmware update method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859205A (en) * 2006-03-18 2006-11-08 华为技术有限公司 Method and system for single board soft ware storage and loading
CN1928824A (en) * 2006-09-20 2007-03-14 华为技术有限公司 Method and system for loading FPGA target program
CN1992641A (en) * 2005-12-28 2007-07-04 华为技术有限公司 System and method for realizing board software loading
CN101145948A (en) * 2007-03-21 2008-03-19 中兴通讯股份有限公司 Software upgrade method, device and network element
CN101277223A (en) * 2008-05-07 2008-10-01 中兴通讯股份有限公司 Method for obtaining veneer software
CN101741593A (en) * 2008-11-19 2010-06-16 华为技术有限公司 Method for dynamically loading service boards and dynamic loading system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992641A (en) * 2005-12-28 2007-07-04 华为技术有限公司 System and method for realizing board software loading
CN1859205A (en) * 2006-03-18 2006-11-08 华为技术有限公司 Method and system for single board soft ware storage and loading
CN1928824A (en) * 2006-09-20 2007-03-14 华为技术有限公司 Method and system for loading FPGA target program
CN101145948A (en) * 2007-03-21 2008-03-19 中兴通讯股份有限公司 Software upgrade method, device and network element
CN101277223A (en) * 2008-05-07 2008-10-01 中兴通讯股份有限公司 Method for obtaining veneer software
CN101741593A (en) * 2008-11-19 2010-06-16 华为技术有限公司 Method for dynamically loading service boards and dynamic loading system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102347955A (en) * 2011-11-01 2012-02-08 杭州依赛通信有限公司 Reliable data transmission protocol based on virtual channels
CN103617061A (en) * 2013-12-05 2014-03-05 中国航空无线电电子研究所 Method for multi-node on-line software updating on basis of ARM
WO2016116013A1 (en) * 2015-01-19 2016-07-28 中兴通讯股份有限公司 Software upgrade method and system
CN106555743A (en) * 2015-09-30 2017-04-05 深圳市深蓝电子股份有限公司 A kind of motor compressor drive firmware update method and system

Also Published As

Publication number Publication date
CN102185754B (en) 2014-03-12

Similar Documents

Publication Publication Date Title
CN1137439C (en) Fault tolerant computer system
EP1697843B1 (en) System and method for managing protocol network failures in a cluster system
US20120063526A1 (en) Method and apparatus for transmitting data, and communication system
US7383541B1 (en) Method and apparatus providing interoperation of execution images of different versions
CN1838602A (en) Server system and online software update method
CN100407638C (en) A software upgrade and rollback methods
CN101217411B (en) A method, device and system realizing the upgrading of stacking device software
US8700760B2 (en) Method and systems for redundant server automatic failover
CN1361634A (en) Method for processing information in honeycomb base station system
CN100385862C (en) Method for edition upgrading of optical network unit ONU
TW200815987A (en) Device connection system and device connection method
KR20090032922A (en) In-service software upgrade utilizing metadata-driven state translation
CN102023876B (en) Embedded system capable of upgrading software on line and online upgrading method
CN1655552A (en) Managing transmission control protocol (TCP) connections
CN102419719A (en) Computer system and method for starting same
CN1960452A (en) Separate-type signal processing apparatus and software version updating method thereof
US20130144989A1 (en) Unified device management method and system
CN101079732A (en) Remote upgrade method of built-in system software based on FTP protocol
CN101072235B (en) Method for exchanging software information in a packet data communication system
CN100538634C (en) Method and equipment for updating firmware mounted on network elements of communications networks
CN1901569B (en) Remote regulating method and system
CN101808009B (en) Method and system for upgrading network equipment
WO2006096837A2 (en) System and method for managing software patches
CN1570863A (en) System and method for remotely loading or upgrading program
CN101814036A (en) RF remote upgrading method and system

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination