CN108632151A - Cluster routers board access method, device and cluster routers - Google Patents

Cluster routers board access method, device and cluster routers Download PDF

Info

Publication number
CN108632151A
CN108632151A CN201710181220.2A CN201710181220A CN108632151A CN 108632151 A CN108632151 A CN 108632151A CN 201710181220 A CN201710181220 A CN 201710181220A CN 108632151 A CN108632151 A CN 108632151A
Authority
CN
China
Prior art keywords
board
backboard
access
daemon thread
hardware
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
CN201710181220.2A
Other languages
Chinese (zh)
Other versions
CN108632151B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710181220.2A priority Critical patent/CN108632151B/en
Publication of CN108632151A publication Critical patent/CN108632151A/en
Application granted granted Critical
Publication of CN108632151B publication Critical patent/CN108632151B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/30Decision processes by autonomous network management units using voting and bidding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/60Router architectures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Landscapes

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

Abstract

A kind of cluster routers board access method, device and cluster routers provided by the invention, belong to field of communication technology.Cluster routers include the first board and the second board, wherein hardware master are inserted on the first board, it is standby to be inserted with hardware on the second board.This method includes:Receive the access backboard information request that main business process is sent, wherein it is described access backboard information request for second board when the main business course allocation to the hardware for when be sent to the backboard daemon thread of first board;The backboard daemon thread for receiving the first board accesses the access result of backboard information;Result will be accessed and feed back to the main business process.It can realize that main business process can be assigned on any board, to realize the separation of business and board, in this way on the basis of cost-effective, improve the stabilization and reliability of cluster routers.

Description

Cluster routers board access method, device and cluster routers
Technical field
The present invention relates to a kind of field of communication technology more particularly to cluster routers board access method, device and clusters Router.
Background technology
In current cluster routers, business is existed in a manner of master (M) and standby (S).Wherein, the main execution of business Business function, and the standby mainly main work for taking over former master of standby turn of execution in main delay machine of business, ensure operational sustainability.Business It is main to need to inquire or change some machine frame relevant informations (such as GMAC) in the process of running, and these information industries are usually There are on subrack backboard.In order to ensure the safety to data manipulation, the board physical attribute to accessing backboard is limited, Only have the board of hardware master that could access.So in the main default allocation of current operation to the board of hardware master, and business back-up It is fitted on the standby board of hardware.Thus cause the active and standby result bound by force of hardware of the active and standby and board of business.Moreover, Inside group system, type of business is more, and board resource is limited, if according to the above-mentioned strategy bound by force, will aggravate The load of certain boards in system reduces the stability and reliability of system.
In view of the above-mentioned problems, the prior art is mainly by hardware logic modified technique.The first technology is:Hardware logic is done The active and standby mutual exclusion of hardware, i.e. hardware master or hardware are standby to be accessed, but can only be hardware master or the standby access of hardware in synchronization.The Two kinds of technologies are:When the content on subrack backboard being moved on on board, but the main modification information of business occurs, other are needed to be synchronized to Board and the information for updating corresponding board, i.e., will ensure the consistency of information on all boards.
Whether the first above-mentioned technology or second of technology are required for hardware logic to carry out upgrading correcting.Thus Will appear a problem is:For cannot effectively be improved in the board or equipment used.It can thus make The waste of forming apparatus resource, and the cost of enterprise operation is increased to a certain extent.Moreover, for second of technology, by machine The relevant information of frame is put on each board, is related to the maintenance that board storage resource occupies and data synchronize, this is invisible just Increase the load of each board.
Therefore, it is necessary to propose a kind of cluster routers board access method, device and cluster routers, above-mentioned feelings are avoided The generation of condition.
Invention content
It is a primary object of the present invention to propose a kind of on-line monitoring method, apparatus and system, veneer can be monitored on-line Operating condition, the reason of convenient for analysis communication abnormality, enhance the maintainability of veneer, and the hardware design letter of whole system List, maintenance cost are low.
To achieve the above object, the present invention provides a kind of cluster routers board access method, and cluster routers include the One board and the second board, wherein hardware master is inserted on first board, it is standby to be inserted with hardware on second board, described Method includes:Receive the access backboard information request that main business process is sent, wherein the access backboard information request is used for institute State the second board when the main business course allocation to the hardware for when be sent to the backboard daemon thread of first board; The backboard daemon thread for receiving first board accesses the access result of backboard information;The access result is fed back to described Main business process.
Optionally, the access backboard information request is additionally operable to first board when the main business course allocation to institute State hardware it is main when be sent to the backboard daemon thread of first board.
Optionally, before the access backboard information request that the reception main business process is sent, the method further includes: Start version;In the starting stage that the version starts, the backboard daemon thread of first board is set;Dynamic competition is elected Main business;According to election results, the corresponding main business process is created.
Optionally, before the backboard daemon thread for receiving first board accesses the access result of backboard information, institute The method of stating further includes:In the case of sending the time interval of the request in distance and reach preset time threshold, make described the One board or second board send the request to the backboard daemon thread of first board again.
Optionally, when the access backboard information request is read requests, the backboard for receiving first board Daemon thread accesses the access of backboard information as a result, including:The backboard daemon thread for receiving first board reads local delay The data deposited.
Optionally, when the access backboard information request is write request, the backboard for receiving first board Daemon thread accesses the access of backboard information as a result, including:Judge the backboard daemon thread write request of first board Whether data are consistent with the data of local cache, if it is not, being then updated to the backboard information.
In addition, to achieve the above object, the present invention also provides a kind of cluster routers board access mechanism, cluster routers Including the first board and the second board, wherein be inserted with hardware master on first board, hardware is inserted on second board Standby, described device includes:First receiving module, the access backboard information request for receiving the transmission of main business process, wherein institute State access backboard information request for second board when the main business course allocation to the hardware for when be sent to institute State the backboard daemon thread of the first board;Second receiving module, the backboard daemon thread for receiving first board access The access result of backboard information;Feedback module, for the access result to be fed back to the main business process.
Optionally, the access backboard information request is additionally operable to first board when the main business course allocation to institute State hardware it is main when be sent to the backboard daemon thread of first board.
Optionally, described device further includes:Starting module, for starting version;Setup module, for being opened in the version The backboard daemon thread of first board is arranged in the dynamic starting stage;Module is elected, main business is elected for dynamic competition; Creation module, for according to election results, creating the corresponding main business process.
Optionally, described device further includes:Judgment module, for judge the distance transmission request time interval whether Reach preset time threshold, if so, triggering sending module;The sending module, for making first board or institute State the backboard daemon thread that the second board sends the request to first board again.
Optionally, when the access backboard information request is read requests, second receiving module, specifically for connecing The backboard daemon thread for receiving first board reads the data of local cache.
Optionally, when the access backboard information request is write request, the judgment module is additionally operable to described in judgement Whether the data of the backboard daemon thread write request of the first board are consistent with the data of local cache, if it is not, then to described Backboard information is updated.
In addition, to achieve the above object, the present invention also provides a kind of cluster routers, including the first board and the second plate Card, wherein hardware master is inserted on first board, it is standby to be inserted with hardware on second board, second board, for working as Main business course allocation to hardware for when, by the main business process send access backboard information request be sent to described first The backboard daemon thread of board;First board accesses backboard information for triggering the backboard daemon thread, and will access As a result the main business process is fed back to.
Optionally, first board is additionally operable to when the main business course allocation is main to the hardware, is asked by described in Seek the backboard daemon thread for being sent to first board.
Optionally, when the request is reads notification message, first board is additionally operable to trigger the backboard and guard Thread reads the data of local cache.
Optionally, when appeal ask for write request when, first board is additionally operable to trigger the backboard daemon thread Judge whether the data of said write request are consistent with the data of local cache, if it is not, then being carried out more to the backboard information Newly.
Cluster routers board access method, device and cluster routers proposed by the present invention, by receive main business into The access backboard information request that journey is sent, wherein the access backboard information request works as the main business for second board Business course allocation to the hardware for when be sent to the backboard daemon thread of first board, the backboard for receiving the first board is kept Protect thread accesses backboard information access as a result, and by access result feed back to main business process, can realize main business process It can be assigned on any board, to realize the separation of business and board, in this way on the basis of cost-effective, improve collection The stabilization and reliability of group's router.
Description of the drawings
Fig. 1 is block schematic illustration that present pre-ferred embodiments provide and its route system;
Fig. 2 is the flow diagram for the cluster routers board access method that first embodiment of the invention provides;
Fig. 3 is the flow diagram of example one in first embodiment;
Fig. 4 is the flow diagram of example two in first embodiment;
Fig. 5 is the flow diagram of example three in first embodiment;
Fig. 6 is the flow diagram of example four in first embodiment;
Fig. 7 is the flow diagram for the cluster routers board access method that second embodiment of the invention provides;
Fig. 8 is the flow diagram for the cluster routers board access method that third embodiment of the invention provides;
Fig. 9 is the module diagram for the cluster routers board access mechanism that fourth embodiment of the invention provides.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
The present invention proposes a kind of cluster routers, which includes router cluster system centre frame (CCC) and router Group system Cluster Line-card Chassis (CLC).On router cluster system centre frame (CCC) and router cluster system Cluster Line-card Chassis (CLC) all Equipped with corresponding at least one machine frame and at least one board.Each board is connected by contact pin with backboard pin hole, is connected to each Control plane communication between a board and between backboard.By the way that each frame is cascaded up with optical module and optical fiber, realize Control plane communication between each frame.
Fig. 1 is please referred to, the cluster routers provided for first embodiment of the invention.The system is " 2+2 " cluster routers, It is by 2 CCC and 2 CLC made of optical module and optical fiber cascade respectively including 4 machine frames.Each CCC and CLC is wrapped respectively Rubbing board card 1, board 2 and backboard, each board are connected by contact pin with backboard pin hole, are connected between each board and and are carried on the back Control plane communication between plate.In other embodiments, cluster routers can also be " 1+2 " system, " 2+4 " system etc., this Invention is not specifically limited herein.
By taking one of machine frame as an example, machine frame includes the first board and the second board, wherein is inserted with hardware on the first board It is main, it is standby to be inserted with hardware on the second board.
First board, for when main business course allocation is main to the hardware, sending the request to described first The backboard daemon thread of board.
Second board, for when main business course allocation to hardware for when, the access backboard that main business process is sent is believed Breath request is sent to the backboard daemon thread of first board.
First board is additionally operable to trigger the backboard daemon thread access backboard information, and feeds back to institute by result is accessed State main business process.
Further, when the request is reads notification message, first board is additionally operable to trigger the backboard and keep Protect the data that thread reads local cache.
Further, when appeal ask for write request when, first board is additionally operable to trigger the backboard and guards line Journey judges whether the data of said write request are consistent with the data of local cache, if it is not, then being carried out to the backboard information Update.
Based on above-mentioned cluster routers, following embodiment is proposed.
Please refer to Fig. 2, the cluster routers board access method of first embodiment of the invention, in the present embodiment, machine frame Including the first board and the second board, wherein be inserted with hardware master on the first board, it is standby to be inserted with hardware on the second board.This method Include the following steps:
Step 201, the access backboard information request that main business process is sent is received.
Step 202, judge that the main business course allocation is standby to the hardware master or the hardware, if distributing to hardware It is main, then 203 are entered step, if distribution is standby to hardware, enters step 204.
Further, also standby to hardware without distributing if it is determined that both without distribution to hardware master, then it is considered as exception, and Restart veneer.
Step 203, the first board is made to send the request to the backboard daemon thread of first board.
Specifically, if main business is assigned to hardware Your Majesty, the process in main business is logical by special interface hair message Know the backboard daemon thread of this plate.
Step 204, the second board is made to send the request to the backboard daemon thread of first board.
Specifically, if main business is assigned to hardware for upper, it is logical that the process in main business by special interface sends out message Know the backboard daemon thread to plate.
Step 205, the backboard daemon thread for receiving the first board accesses the access result of backboard information.
Step 206, result will be accessed and feeds back to the main business process.
Specifically, the access result of the backboard daemon thread of the first board received is back to main business process.
Further, main business process receive backboard daemon thread return backboard access result after, main business into Journey can also continue to other operation flows.
In the present embodiment, if main business is in hardware Your Majesty, interacting message is not related to span centre central processor (Central Processing Unit, CPU), it is possible to ensure the reliability of message.And if main business in hardware for upper, interacting message It is exactly that the reliability of message is ensured by reliable interacting message mechanism across CPU.
In the present embodiment, backboard information is stored in by the way of local cache in local cpu, to reduce to the greatest extent pair The access of backboard information.
Illustratively, Fig. 3 is please referred to, if access backboard information request is read requests, and main business course allocation is to hard Part master, then step 203,205 include:
Step 310, so that the first board is sent to the backboard daemon thread of first board and read notification message.
Specifically, the first board is (i.e.:Hardware mainboard card) business process if there is read requests, hardware Your Majesty at this time The driving of backboard daemon thread adoption status machine has been in work (WORK) state, then directly transmits and read message informing this plate Backboard daemon thread.
Step 320, the backboard daemon thread for receiving the first board reads the data of local cache.
Specifically, the data of the local cache of this backboard plate daemon thread reading are received.Correspondingly, in follow-up step In (step 206), the data answering of reading is given to main business process.
Illustratively, Fig. 4 is please referred to, if access backboard information request is read requests, and main business course allocation is to hard Part is standby, then step 204,205 include:
Step 410, so that the second board is sent to the backboard daemon thread of first board and read notification message.
Specifically, the second board is (i.e.:Hardware main/standby board cards) business process if there is read requests, due to hardware main/standby board cards On backboard daemon thread adoption status machine driving in sleep (SLEEP) state, so need send out the first board of message informing (i.e.:Hardware mainboard card) backboard daemon thread.
Step 420, the backboard daemon thread for receiving the first board reads the data of local cache.
Specifically, the driving of the backboard daemon thread adoption status machine of hardware Your Majesty has been in work (WORK) state, it Directly receive the data of the local cache read.Correspondingly, in follow-up step (step 206), by the data answering of reading Give main business process.
Illustratively, Fig. 5 is please referred to, if access backboard information request is write request, and main business course allocation is to hard Part master, then step 203,205 include:
Step 510, the first board is made to send write-in notification message to the backboard daemon thread of first board.
Specifically, the first board is (i.e.:Hardware mainboard card) business process if there is write request, hardware Your Majesty at this time The driving of backboard daemon thread adoption status machine has been in work (WORK) state, then the backboard of directly this plate of hair message informing is kept Protect thread.
Step 520, judge the backboard daemon thread write request of the first board data and local cache data whether It is consistent, if it is not, 530 are then entered step, if so, entering step 206.
Specifically, the data of request write-in data and local cache are compared, if it is inconsistent, entering step 530, if it is not, then entering step 206, that is, the direct response of data will be written and give main business process.
Step 530, the backboard information is updated.
Specifically, if request write-in data and the data of local cache are inconsistent, backboard information is updated, subsequent In step (step 206), updated data answering is given to main business process.
Illustratively, Fig. 6 is please referred to, if access backboard information request is write request, and main business course allocation is to hard Part is standby, then step 204,205 include:
Step 610, the second board is made to send write-in notification message to the backboard daemon thread of first board.
Specifically, the second board is (i.e.:Hardware main/standby board cards) business process if there is write request, due to hardware main/standby board cards On backboard daemon thread adoption status machine driving in sleep (SLEEP) state, so need send out the first board of message informing (i.e.:Hardware mainboard card) backboard daemon thread.
Step 620, judge the backboard daemon thread write request of the first board data and local cache data whether It is consistent, if it is not, 630 are then entered step, if so, entering step 206.
Specifically, the driving of the backboard daemon thread adoption status machine of hardware Your Majesty has been in work (WORK) state, it The data of request write-in data and local cache are compared, if it is inconsistent, 630 are entered step, if it is not, then entering step Rapid 206, that is, the direct response of data will be written and give main business process.
Step 630, the backboard information is updated.
Specifically, if request write-in data and the data of local cache are inconsistent, backboard information is updated, subsequent In step (step 206), updated data answering is given to main business process.
Cluster routers board access method in the present embodiment is believed by receiving the access backboard that main business process is sent Breath request, when main business course allocation to hardware master either hardware for when make the first board or the second board by the request It is sent to the backboard daemon thread of the first board, the backboard daemon thread for receiving the first board accesses the access knot of backboard information Fruit, and main business process is fed back to by result is accessed, it can realize that main business process can be assigned on any board, to real The separation of existing business and board improves the stabilization and reliability of cluster routers in this way on the basis of cost-effective.
Fig. 7 is please referred to, second embodiment of the invention further provides for a kind of cluster routers board access method.Second In embodiment, the cluster routers board access method be it is made on the basis of first embodiment be further improved, It differs only in, further includes following steps before step 201 in the first embodiment:
Step 710, start version.
Specifically, after putting up router cluster system, start to start version.
Step 720, the backboard daemon thread of the first board is arranged in the starting stage started in version.
Specifically, starting initial phase, backboard daemon thread is being arranged to the first board, to safeguard backboard information.
Step 730, dynamic competition elects main business.
Specifically, according to preset election mechanism, progress dynamic competition election active and standby to software operation, to election not with The hardware of board is active and standby to be bound by force.
Step 740, according to election results, corresponding main business process is created.
The cluster routers board access method of the present embodiment guards line by being provided with backboard to each mainboard card Journey, the dynamic competition that main business is carried out to the first board is elected, and according to election results, creates corresponding main business process, energy The active and standby unbundlings that carry out of the enough active and standby and board hardware by business detach, and deployment and the board for realizing business are unrelated, business It is active and standby can be with mixed deployment, and existing equipments resources can be efficiently used, reduce the cost of enterprise operation.
Fig. 8 is please referred to, third embodiment of the invention further provides for a kind of cluster routers board access method.In third In embodiment, the cluster routers board access method is made on the basis of first embodiment or second embodiment Be further improved, differ only in, the first board backboard daemon thread access backboard information before, further include walking as follows Suddenly:
Step 810, judge whether the time interval of the distance transmission request reaches preset time threshold.If it is not, then 820 are entered step, if so, entering step 830.
Step 820, the first board or the second board is made to send the request to the backboard of first board again Daemon thread;
Step 830, it continues waiting for.
The cluster routers board access method of the present embodiment is protected using synchronization message interface by the way that timeout mechanism is arranged The reliability across CPU message is demonstrate,proved.
Fig. 9 is please referred to, fourth embodiment of the invention provides a kind of cluster routers board access mechanism, described device packet It includes:
Starting module 910, for starting version.
Specifically, after putting up router cluster system, starting module 910 starts to start version.
The backboard daemon thread of the first board is arranged in setup module 920, the starting stage for starting in version.
Specifically, starting initial phase, backboard daemon thread is arranged to the first board in setup module 920, to safeguard Backboard information.
Module 930 is elected, main business is elected for dynamic competition.
Specifically, according to preset election mechanism, the progress dynamic competition election active and standby to software operation of module 930 is elected, To election not with the hardware of board is active and standby is bound by force.
Creation module 940, for according to election results, creating corresponding main business process.
First receiving module 950, the access backboard information request for receiving the transmission of main business process.
Judgment module 960, for judging that the main business course allocation is standby to the hardware master or the hardware, if point It is assigned to hardware master or hardware is standby, then trigger sending module 970.
Further, also standby to hardware without distributing if it is determined that module 960 judges both without distribution to hardware master, then It is considered as exception, and restarts veneer.
Sending module 970, for making the first board or the second board send the request to first board Backboard daemon thread.
Specifically, if main business is assigned to hardware Your Majesty, the process in main business is logical by special interface hair message Know the backboard daemon thread of this plate.If main business is assigned to hardware for upper, the process in main business is sent out by special interface Backboard daemon thread of the message informing to plate.
Second receiving module 980, the backboard daemon thread for receiving the first board access the access result of backboard information.
Feedback module 990 feeds back to the main business process for that will access result.
Specifically, the access result of the backboard daemon thread of the first board received is back to master by feedback module 990 Business process.
Further, main business process receive backboard daemon thread return backboard access result after, main business into Journey can also continue to other operation flows.
In the present embodiment, if main business is in hardware Your Majesty, interacting message is not related to span centre central processor (Central Processing Unit, CPU), it is possible to ensure the reliability of message.And if main business in hardware for upper, interacting message It is exactly that the reliability of message is ensured by reliable interacting message mechanism across CPU.
In the present embodiment, backboard information is stored in by the way of local cache in local cpu, to reduce to the greatest extent pair The access of backboard information.
Further, judgment module 960 are additionally operable to judge whether the time interval of the distance transmission request reaches default Time threshold.If so, triggering sending module 970 triggers the first board or the second board is sent the request to again The backboard daemon thread of first board, if it is not, then continuing waiting for, to use synchronization message interface, by the way that time-out is arranged Mechanism ensure that the reliability across CPU message.
Illustratively, if access backboard information request is read requests, and main business course allocation is then sent to hardware master Module 970 reads notification message specifically for making the first board be sent to the backboard daemon thread of first board.
Specifically, the first board is (i.e.:Hardware mainboard card) business process if there is read requests, hardware Your Majesty at this time The driving of backboard daemon thread adoption status machine has been in work (WORK) state, then directly transmits and read message informing this plate Backboard daemon thread.
Correspondingly, the second receiving module 980, the backboard daemon thread for being specifically used for receiving the first board read local cache Data.Specifically, the data of the local cache of this backboard plate daemon thread reading are received.
Illustratively, if access backboard information request is read requests, and main business course allocation is standby to hardware, then sends Module 970 is specifically used for the second board and sends reading notification message to the backboard daemon thread of first board.
Specifically, the second board is (i.e.:Hardware main/standby board cards) business process if there is read requests, due to hardware main/standby board cards On backboard daemon thread adoption status machine driving in sleep (SLEEP) state, so need send out the first board of message informing (i.e.:Hardware mainboard card) backboard daemon thread.
Correspondingly, the second receiving module 980, the backboard daemon thread for being specifically used for the first board read the number of local cache According to.Specifically, the driving of the backboard daemon thread adoption status machine of hardware Your Majesty has been in work (WORK) state, directly receives The data of the local cache of reading.
Illustratively, if access backboard information request is write request, and main business course allocation is then sent to hardware master Module 970 is specifically used for the first board and sends write-in notification message to the backboard daemon thread of first board.
Specifically, the first board is (i.e.:Hardware mainboard card) business process if there is write request, hardware Your Majesty at this time The driving of backboard daemon thread adoption status machine has been in work (WORK) state, then the backboard of directly this plate of hair message informing is kept Protect thread.
Correspondingly, judgment module 960 are additionally operable to judge the data of the backboard daemon thread write request of the first board and this Whether the data of ground caching are consistent, if it is not, being then updated to the backboard information, if so, triggering feedback module 990.
Specifically, judgment module 960 compares the data of request write-in data and local cache, if inconsistent, Then the backboard information is updated, if it is not, then triggering feedback module 990, that is, the direct response of data will be written to master Business process.
Specifically, if request write-in data and the data of local cache are inconsistent, backboard information is updated.
Illustratively, if access backboard information request is write request, and main business course allocation is standby to hardware, then sends Module 970, specifically for making the second board send write-in notification message to the backboard daemon thread of first board.
Specifically, the second board is (i.e.:Hardware main/standby board cards) business process if there is write request, due to hardware main/standby board cards On backboard daemon thread adoption status machine driving in sleep (SLEEP) state, so need send out the first board of message informing (i.e.:Hardware mainboard card) backboard daemon thread.
Correspondingly, judgment module 960 are additionally operable to judge the data of the backboard daemon thread write request of the first board and this Whether the data of ground caching are consistent, if it is not, being then updated to the backboard information, if so, triggering feedback module 990.
Specifically, the driving of the backboard daemon thread adoption status machine of hardware Your Majesty has been in work (WORK) state, it The data of request write-in data and local cache are compared, if it is inconsistent, the backboard information is updated, if It is no, then feedback module 990 is triggered, that is, the direct response of data will be written and give main business process.
Specifically, if request write-in data and the data of local cache are inconsistent, backboard information is updated.
Cluster routers board access mechanism in the present embodiment receives main business process by the first receiving module 950 The access backboard information request of transmission, when main business course allocation to hardware master or hardware for when, sending module 970 makes first Board or the second board send the request to the backboard daemon thread of the first board, and the second receiving module 980 receives the The backboard daemon thread of one board accesses the access of backboard information as a result, feedback module 990 feeds back to main business by result is accessed Process can realize that main business process can be assigned on any board, to realize the separation of business and board, save in this way About on the basis of cost, the stabilization and reliability of cluster routers are improved.
It should be noted that herein, term " comprising " or its any other variant are intended to nonexcludability Including so that process, method, article or device including a series of elements include not only those elements, but also wrap Include other elements that are not explicitly listed, or further include for this process, method, article or device intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, there is also other identical elements in article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (16)

1. a kind of cluster routers board access method, which is characterized in that cluster routers include the first board and the second board, Wherein, hardware master is inserted on first board, it is standby to be inserted with hardware on second board, the method includes:
Receive the access backboard information request that main business process is sent, wherein the accesss backboard information request is used for described the Two boards when the main business course allocation to the hardware for when be sent to the backboard daemon thread of first board;
The backboard daemon thread for receiving first board accesses the access result of backboard information;
The access result is fed back into the main business process.
2. cluster routers board access method according to claim 1, which is characterized in that the access backboard information is asked It asks and is additionally operable to the back of the body that first board is sent to first board when the main business course allocation is main to the hardware Plate daemon thread.
3. cluster routers board access method according to claim 1, which is characterized in that the reception main business into Before the access backboard information request that journey is sent, the method further includes:
Start version;
In the starting stage that the version starts, the backboard daemon thread of first board is set;
Dynamic competition elects main business;
According to election results, the corresponding main business process is created.
4. cluster routers board access method according to claim 1 or 2, which is characterized in that receiving described first Before the backboard daemon thread of board accesses the access result of backboard information, the method further includes:
In the case of sending the time interval of the request in distance and reach preset time threshold, make first board or Second board sends the request to the backboard daemon thread of first board again.
5. cluster routers board access method according to claim 1 or 2, which is characterized in that when the access backboard When information request is read requests, the backboard daemon thread for receiving first board accesses the access knot of backboard information Fruit, including:
The backboard daemon thread for receiving first board reads the data of local cache.
6. cluster routers board access method according to claim 1 or 2, which is characterized in that when the access backboard When information request is write request, the backboard daemon thread for receiving first board accesses the access knot of backboard information Fruit, including:
Judge whether the data of the backboard daemon thread write request of first board are consistent with the data of local cache, if It is no, then the backboard information is updated.
7. a kind of cluster routers board access mechanism, which is characterized in that cluster routers include the first board and the second board, Wherein, it is inserted with hardware master on first board, is inserted with that hardware is standby, and described device includes on second board:
First receiving module, the access backboard information request for receiving the transmission of main business process, wherein the access backboard letter Breath request for second board when the main business course allocation to the hardware for when be sent to first board Backboard daemon thread;
Second receiving module, the backboard daemon thread for receiving first board access the access result of backboard information;
Feedback module, for the access result to be fed back to the main business process.
8. cluster routers board access mechanism according to claim 7, which is characterized in that the access backboard information is asked It asks and is additionally operable to the back of the body that first board is sent to first board when the main business course allocation is main to the hardware Plate daemon thread.
9. cluster routers board access mechanism according to claim 7, which is characterized in that described device further includes:
Starting module, for starting version;
The backboard daemon thread of first board is arranged in setup module, the starting stage for starting in the version;
Module is elected, main business is elected for dynamic competition;
Creation module, for according to election results, creating the corresponding main business process.
10. cluster routers board access mechanism according to claim 7 or 8, which is characterized in that described device is also wrapped It includes:
Judgment module, for judging whether the time interval of the distance transmission request reaches preset time threshold, if so, Trigger sending module;
The sending module, for making first board or second board send the request to described again The backboard daemon thread of one board.
11. cluster routers board access mechanism according to claim 7 or 8, which is characterized in that when the access backboard When information request is read requests, second receiving module is specifically used for receiving the backboard daemon thread of first board Read the data of local cache.
12. cluster routers board access mechanism according to claim 7 or 8, which is characterized in that when the access backboard When information request is write request, the judgment module is additionally operable to judge that the backboard daemon thread write-in of first board is asked Whether the data asked are consistent with the data of local cache, if it is not, being then updated to the backboard information.
13. a kind of cluster routers, which is characterized in that including the first board and the second board, wherein inserted on first board There is hardware master, it is standby to be inserted with hardware on second board,
Second board, for when main business course allocation to hardware for when, by the main business process send access carry on the back Plate information request is sent to the backboard daemon thread of first board;
First board accesses backboard information for triggering the backboard daemon thread, and will access result feed back to it is described Main business process.
14. cluster routers according to claim 13, which is characterized in that first board is additionally operable to work as the master When business process distributes main to the hardware, the backboard daemon thread of first board is sent the request to.
15. the cluster routers according to claim 13 or 14, which is characterized in that when the request is reading notification message When, first board is additionally operable to trigger the data that the backboard daemon thread reads local cache.
16. the cluster routers according to claim 13 or 14, which is characterized in that when appeal ask for write request when, First board is additionally operable to trigger the data of data and local cache that the backboard daemon thread judges said write request It is whether consistent, if it is not, being then updated to the backboard information.
CN201710181220.2A 2017-03-24 2017-03-24 Cluster router board card access method and device and cluster router Active CN108632151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710181220.2A CN108632151B (en) 2017-03-24 2017-03-24 Cluster router board card access method and device and cluster router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710181220.2A CN108632151B (en) 2017-03-24 2017-03-24 Cluster router board card access method and device and cluster router

Publications (2)

Publication Number Publication Date
CN108632151A true CN108632151A (en) 2018-10-09
CN108632151B CN108632151B (en) 2022-03-11

Family

ID=63706671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710181220.2A Active CN108632151B (en) 2017-03-24 2017-03-24 Cluster router board card access method and device and cluster router

Country Status (1)

Country Link
CN (1) CN108632151B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150317A (en) * 2022-06-22 2022-10-04 杭州迪普科技股份有限公司 Routing table item issuing method and device, electronic equipment and computer readable medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159990A (en) * 2007-09-13 2008-04-09 中兴通讯股份有限公司 Transmission equipment service panel bus selecting method
CN101197716A (en) * 2007-11-21 2008-06-11 上海华为技术有限公司 Method and device for capturing single plate ability
CN101924655A (en) * 2010-08-23 2010-12-22 中兴通讯股份有限公司 Method and device for supporting login of multi-serial port terminal
CN101938417A (en) * 2010-09-01 2011-01-05 中兴通讯股份有限公司 Method for realizing configuration of main and auxiliary board cards as well as board cards
CN101977139A (en) * 2010-07-28 2011-02-16 北京星网锐捷网络技术有限公司 Route retransmission realization device and method, and switching equipment
CN102185753A (en) * 2011-01-30 2011-09-14 广东佳和通信技术有限公司 Device for realizing dual-backup switching of Ethernet link inside communication equipment
US20120151085A1 (en) * 2010-12-14 2012-06-14 Cisco Technology, Inc. Hot Standby Neighbor Discovery Protocol for Internet Protocol Version 6
US20150249599A1 (en) * 2012-11-13 2015-09-03 Huawei Technologies Co., Ltd. Virtual cluster establishment method and network device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159990A (en) * 2007-09-13 2008-04-09 中兴通讯股份有限公司 Transmission equipment service panel bus selecting method
CN101197716A (en) * 2007-11-21 2008-06-11 上海华为技术有限公司 Method and device for capturing single plate ability
CN101977139A (en) * 2010-07-28 2011-02-16 北京星网锐捷网络技术有限公司 Route retransmission realization device and method, and switching equipment
CN101924655A (en) * 2010-08-23 2010-12-22 中兴通讯股份有限公司 Method and device for supporting login of multi-serial port terminal
CN101938417A (en) * 2010-09-01 2011-01-05 中兴通讯股份有限公司 Method for realizing configuration of main and auxiliary board cards as well as board cards
US20120151085A1 (en) * 2010-12-14 2012-06-14 Cisco Technology, Inc. Hot Standby Neighbor Discovery Protocol for Internet Protocol Version 6
CN102185753A (en) * 2011-01-30 2011-09-14 广东佳和通信技术有限公司 Device for realizing dual-backup switching of Ethernet link inside communication equipment
US20150249599A1 (en) * 2012-11-13 2015-09-03 Huawei Technologies Co., Ltd. Virtual cluster establishment method and network device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭亮等: ""集群路由器技术发展趋势"", 《现代电信科技》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150317A (en) * 2022-06-22 2022-10-04 杭州迪普科技股份有限公司 Routing table item issuing method and device, electronic equipment and computer readable medium
CN115150317B (en) * 2022-06-22 2023-09-12 杭州迪普科技股份有限公司 Routing table entry issuing method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN108632151B (en) 2022-03-11

Similar Documents

Publication Publication Date Title
CN108880898B (en) Main and standby container system switching method and device
CN111698283B (en) Management and control method, device, equipment and storage medium of distributed cluster host
CN104160378A (en) Fault tolerance for complex distributed computing operations
CN104408071A (en) Distributive database high-availability method and system based on cluster manager
CN107729213B (en) Background task monitoring method and device
CN104199869A (en) Service batch processing method, service server and system
CN107517192A (en) Cloud desktop disaster recovery method, client, service end and cloud desktop disaster tolerance system
CN108614728A (en) Virtual machine service providing method, device, equipment and computer readable storage medium
CN107682172A (en) Control centre's device, the method and medium of operation system processing
CN110222535A (en) Processing unit, method and the storage medium of block chain configuration file
CN104753987B (en) A kind of distributed conversation management method and system
CN107368324A (en) A kind of component upgrade methods, devices and systems
CN110286852A (en) Dual control framework distributed memory system, method for reading data, device and storage medium
CN115328752A (en) Cluster simulation method and system for Kubernetes control plane test
CN109462509B (en) Method and device for batch backup of board cards
CN111475379A (en) Log processing method and device, electronic equipment and storage medium
CN108632151A (en) Cluster routers board access method, device and cluster routers
CN112202727B (en) Server-side verification user management method, system, terminal and storage medium
CN111699479A (en) Log processing method, log processing device and computer-readable storage medium
CN109120680A (en) A kind of control system, method and relevant device
CN117453036A (en) Method, system and device for adjusting power consumption of equipment in server
CN112463514A (en) Monitoring method and device for distributed cache cluster
CN110113192A (en) Route selecting method, routing device, system, storage medium and the device of virtual desktop
CN105991608B (en) Method for processing business, device and the distributed apparatus of distributed apparatus
CN112631667B (en) Server upgrading system

Legal Events

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