CN107547450B - Method and device for adding data between boards - Google Patents

Method and device for adding data between boards Download PDF

Info

Publication number
CN107547450B
CN107547450B CN201710630792.4A CN201710630792A CN107547450B CN 107547450 B CN107547450 B CN 107547450B CN 201710630792 A CN201710630792 A CN 201710630792A CN 107547450 B CN107547450 B CN 107547450B
Authority
CN
China
Prior art keywords
line card
priority
service line
slot
board
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710630792.4A
Other languages
Chinese (zh)
Other versions
CN107547450A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201710630792.4A priority Critical patent/CN107547450B/en
Publication of CN107547450A publication Critical patent/CN107547450A/en
Application granted granted Critical
Publication of CN107547450B publication Critical patent/CN107547450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Multi Processors (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a method and a device for adding data between boards. The method comprises the following steps: when a plurality of exchange chips in a first service line card board add first resource data to each other pairwise, configuring a sequence priority for adding second resource data of the exchange chips in a second service line card board; creating a data adding task corresponding to a cluster line card frame where the second service line card board is located on the first service line card board, wherein the data adding task is used for adding second resource data of all switching chips in the second service line card board in the cluster line card frame to the first service line card board; performing the data addition task based on the order priority. The application can quickly and effectively add data between boards.

Description

Method and device for adding data between boards
Technical Field
The present application relates to the field of router data processing technologies, and in particular, to a method and an apparatus for adding inter-board data.
Background
The router cluster system mostly includes a matrix Card Chassis (FCC, also called cluster central frame) and a Line Card Chassis (LCC, also called cluster Line Card frame). As shown in fig. 1, the FCC is used to control the interaction between packet frames and the cross-frame forwarding of data packets, the LCC provides a plurality of trunking Line card slots, and a user can insert a Line Processing Unit (LPU) as required. For most routers, the LPU architecture is as shown in fig. 2, and the message parsing processing chip is externally connected with an output port and internally connected with a switch chip, and is used for parsing a message; the switching chip is connected with the back plate besides being interconnected with the message analysis processing chip, and is used for realizing the forwarding of the message across the LPU and across the LCC.
At present, the main method for adding resource data of an exchange chip to any LPU is as follows: in the process of starting up the LPU initialization, each exchange chip in the LPU mutually adds the resource data of other exchange chips, and after the initialization is finished, the resource data of the corresponding exchange chip is added or deleted by responding to the insertion or extraction event of other LPUs in the cluster line card slot; that is, when there is an LPU insertion/extraction event, the LPU creates a board event processing task according to the slot number of the event LPU, and adds/deletes resource data corresponding to the LPU switch chip.
With the expansion of the number of LCCs in the cluster system, the number of supported LPUs is multiplied, the data information that each switch chip needs to add is huge, and if the above scheme is still used to add the resource data of the switch chip, many board event processing tasks need to be created, and the adding or deleting events of the resource data of the switch chip cannot be responded quickly, which affects the intercommunication of messages between boards.
Disclosure of Invention
Based on an object of the present application, the present application provides a method and an apparatus for adding inter-board data, so as to achieve fast and effective addition of inter-board data between service line cards.
In order to achieve the purpose, the technical scheme of the application is realized as follows:
on one hand, the application provides an inter-board data adding method, which is applied to a service line card board, wherein the service line card board can be plugged into a cluster line card slot, and the cluster line card slot is arranged in a cluster line card frame; the method comprises the following steps:
when a plurality of exchange chips in a first service line card board add first resource data to each other pairwise, configuring a sequence priority for adding second resource data of the exchange chips in a second service line card board;
creating a data adding task corresponding to a cluster wire clamping frame where a second service wire clamping plate is located on a first service wire clamping plate, wherein the data adding task is used for adding second resource data of all switching chips in the second service wire clamping plate in the cluster wire clamping frame to the first service wire clamping plate;
and executing the data adding task based on the sequence priority.
On the other hand, the application provides an inter-board data adding device, which is applied to a service line card board, wherein the service line card board can be plugged into a trunking line card slot, and the trunking line card slot is arranged in a trunking line card frame; the device includes:
the configuration unit is used for configuring the order priority for adding the second resource data of the switching chips in the second service line card board after the first resource data are added to the plurality of switching chips in the first service line card board pairwise;
a task creating unit, configured to create, on a first service line card board, a data adding task corresponding to a cluster line card frame where a second service line card board is located, where the data adding task is used to add second resource data of all switching chips in the second service line card board in the cluster line card frame to the first service line card board;
and the task execution unit is used for executing the data adding task based on the sequence priority.
The beneficial effect of this application is: after the exchange chips in a certain LPU add resource data to each other pairwise, the LPU can execute the data adding tasks based on the sequence priority by configuring the sequence priority for adding the resource data of the exchange chips in other LPUs and creating data adding tasks corresponding to the LCC number, so that the mutual addition of second resource data of the exchange chips between frames and in frames is realized; according to the method and the device, the task amount required to be created can be remarkably reduced, inter-frame communication is not needed when the data adding task is executed, and rapid addition of data between boards can be achieved.
Drawings
Fig. 1 is a schematic diagram of a multi-cluster wire card frame in a router cluster system provided in the present application;
fig. 2 is a block diagram of an LPU structure provided in the present application;
fig. 3 is a flowchart of an inter-board data adding method according to an embodiment of the present application;
fig. 4 is a flowchart for configuring priority of a cluster line card slot according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a data adding task execution process provided in an embodiment of the present application;
fig. 6 is a block diagram of a structure of an inter-board data adding apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a hardware structure of an inter-board data adding device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 3 is a flowchart of an inter-board data adding method according to an embodiment of the present disclosure, where the inter-board data adding method is applied to an LPU, and the LPU is pluggable into a trunking line card slot, and the trunking line card slot is disposed in an FCC. The inter-board data adding method provided by the embodiment of the application can be suitable for a router cluster system or a single-machine non-cluster system. As shown in fig. 3, the method of the present embodiment includes:
s310, after the first resource data are added to each other by two of the plurality of switching chips in the first service line card board LPU1, configuring a priority for adding the second resource data of the switching chip in the second service line card board LPU 2.
Specifically, in one example, two switch chips (switch chip 1 and switch chip 2) are included in LPU1, and first resource data of the switch chip of each other is added between switch chip 1 and switch chip 2. That is, the exchange chip 1 adds the first resource data of the exchange chip 2, and the exchange chip 2 adds the first resource data of the exchange chip 1; the first resource data specifically refers to resource data such as queue mapping, flow control mapping, BUFF resource allocation, scheduling mapping allocation and the like.
After the switching chips in the LPU1 add the first resource data to each other, the LPU1 configures the order priority of adding the second resource data of the switching chips in the LPU 2.
The LPUs 1 and 2 described in this embodiment can be understood as follows: for a router cluster system, "LPU 1" is any LPU in the cluster, and the corresponding "LPU 2" is all LPUs except LPU1 in the cluster, and in this case, if it is assumed that LPU1 belongs to LCC1, LPU2 includes both LPUs belonging to LCC1 and LPUs belonging to LCCs except LCC1 in the cluster; for the case of a stand-alone non-cluster, "LPU 1" is any LPU on the LCC, and the corresponding "LPU 2" is all LPUs on the LCC except LPU1, where both LPU1 and LPU2 belong to the same LCC.
And S320, creating a data adding task corresponding to the LCC where the LPU2 is located on the LPU1, wherein the data adding task is used for adding second resource data of all switching chips in the LPU2 in the LCC into the LPU 1.
Specifically, data addition tasks equal to the number of LCCs in which LPU2 resides are created on LPU 1. In one example, if N LCCs are included in the cluster system, N data add tasks are created on LPU1, where each data add task corresponds to one LCC and the N data add tasks may run in parallel.
S330, executing the data adding task based on the sequence priority.
Specifically, the LPU1 adds the second resource data of the switching chip within the LPU2 to the LPU1 according to the order priority configured at step S320.
In this embodiment, after resource data are added to each other by an exchange chip in a certain LPU, by configuring a sequence priority for adding resource data of exchange chips in other LPUs and creating data addition tasks corresponding to the number of LCCs, the LPU can execute the data addition tasks based on the sequence priority, thereby realizing sequential addition of resource data between frames and exchange chips in the frames; the embodiment can remarkably reduce the task amount required to be created, does not need to perform inter-frame communication when executing the data adding task, and can realize the rapid adding of the data between the boards.
It should be noted that the inter-board data adding method of the present application may be applied to LPUs in a cluster system, and may also be applied to LPUs in a stand-alone non-cluster environment, for convenience of description, the following embodiments of the present application are described by taking LPUs applied in a cluster system as an example, and when the inter-board data adding method of the present application is applied to LPUs in a cluster system, the LPU2 described in the present application includes both an LPU belonging to LCC1 and an LPU belonging to other LCCs except LCC1 in the cluster.
In the prior art, since the resource data can be added or deleted between the switching chips only by responding to the insertion or extraction operation of the LPUs, when the LPUs are repeatedly inserted and extracted, the data needs to be repeatedly added or deleted by the LPUs in place, that is, when the LPUs in a certain slot are extracted, the resource data of the switching chip corresponding to the extracted LPUs can be deleted by the LPUs in place, and after the LPUs are reinserted into the slot, the resource data of the switching chip needs to be newly added by the LPUs in place, so that the resource data of the switching chip in the same slot can be repeatedly added or deleted, and system resources are occupied.
The application enables the LPU1 to add the resource data of the plurality of switching chips in the LPU2 to the LPU1 without depending on the insertion or extraction operation of the LPU by configuring the order priority for adding the second resource data of the switching chips in the second service line card board.
In an embodiment of the present application, after adding the first resource data to each other by two of the plurality of switching chips in the first service line card board, before configuring the priority of the order for adding the second resource data of the switching chip in the second service line card board, the method in fig. 3 further includes:
and receiving service line card board state information, wherein the service line card board state information comprises first identification information of a trunking line card frame where the LPU2 is located, in-place state information of the LPU2 and second identification information of the LPU 2.
Specifically, when the method of this embodiment is applied to a cluster system, a main control chip in any FCC may be selected as a main control of the cluster system, where the main control is used to detect the states of all frames, slots, and cards in the cluster system, and obtain the state information of all frames, slots, and cards; at this time, the main control chip in the FCC sends the service line card board state information to the main control chip in each LCC, and the main control chip in each LCC sends the service line card board state information to the LPU on the LCC.
When the method of the embodiment is applied to a stand-alone non-cluster, a main control chip in the LCC is used as a main control, and the main control is used for detecting the states of all frames, slots and clamping plates in the stand-alone to acquire the state information of all the frames, the slots and the clamping plates; at this time, the main control chip in the LCC sends the status information of the service line card board to the LPU thereon.
After the state information of the service line card board is obtained, the order priority for adding the second resource data of each switching chip in the LPU2 can be configured according to the first identification information, the in-place state information and the second identification information.
Illustratively, the order priority for adding the resource data of each switching chip in the second service line card board is configured by:
judging whether the first identification information is a preset identification or not according to the first identification information, wherein the preset identification can be represented by a normal identification;
if the first identification information is a preset identification, configuring an LCC (the LCC is the LCC of which the first identification information is the preset identification) as a first frame priority, and judging whether LPU2 exists in cluster line card slots (the cluster line card slots are all card slots arranged in the LCC with the first frame priority) and whether second identification information is the preset identification according to the in-place state information and the second identification information;
if the LPU2 exists in the cluster line card slot and the second identification information is a preset identification, configuring the cluster line card slot as a first slot priority;
if the LPU2 exists in the trunking line card slot and the second identification information is not a preset identification, configuring the trunking line card slot as a second slot priority;
if the LPU2 does not exist in the cluster line card slot, configuring the cluster line card slot as a third slot priority;
if the first identification information is not the preset identification, configuring the LCC (the LCC is the LCC of which the first identification is not the preset identification) as the second frame priority, and configuring the cluster line card slot (the cluster line card slot is all card slots set in the LCC with the second frame priority) as the third slot priority.
The frame priority is a first frame priority and a second frame priority from high to low, and the slot priority is a first slot priority, a second slot priority and a third slot priority from high to low.
The LPU1 of the present embodiment configures an order priority indicating an addition order of the second resource data of the switch chip within the LPU2 according to the service line card board state information by acquiring the service line card board state information, so that the LPU1 completes the addition of the second resource data at once using the order priority without depending on the insertion or extraction operation of the LPU.
In practical application, in this embodiment, before adding the first resource data to each other by two of the plurality of switch chips in the LPU1, for example, when the LPU1 is started, an association relationship between the second resource data and the cluster line card slot into which the LPU2 is inserted is established, where the association relationship is used to obtain the second resource data corresponding to the cluster line card slot into which the second service line card board is inserted when the data addition task is executed.
Accordingly, based on the foregoing order priority, and according to the association relationship, the data addition task may be executed:
when the frame priority of the LCC in which the LPU2 is located is the first frame priority, sequentially adding the second resource data of the plurality of switch chips in the LPU2 in the cluster line card slot according to the slot priority order and the association relationship of all the cluster line card slots on the LCC with the first frame priority;
when the frame priority of the LCC in which the LPU2 is located is the second frame priority, second resource data of the plurality of switch chips in the LPU2 in the cluster line card slot are sequentially added according to the slot priority order and the association relationship of all the cluster line card slots on the LCC having the second frame priority.
Specifically, when the frame priorities of the LCCs where the LPU2 are located are all the first frame priorities, second resource data of a plurality of switching chips in the LPU2 corresponding to the trunking line card slots of which the slot priorities on the LCCs are the first slot priorities and the second slot priorities are sequentially obtained according to the association relationship, and the obtained second resource data are added into the LPU 1;
when the frame priorities of the LCC where the LPU2 are located are all the second frame priorities, sequentially acquiring second resource data of a plurality of switching chips in the LPU2 corresponding to all cluster line card slots on the LCC according to the association relationship, and adding the acquired second resource data into the LPU 1;
when the frame priority of the LCC in which the LPU2 is located includes both the first frame priority and the second frame priority, first obtaining second resource data of a plurality of switch chips in the LPU2 corresponding to the cluster line card slot having the LCC of the first frame priority and the slot priority of the first slot priority and the slot priority of the second slot priority according to the association relationship, and adding the obtained second resource data to the LPU 1; after the second resource data are completely added, the second resource data of the plurality of switching chips in the LPU2 corresponding to the cluster line card slot with the LCC of the first frame priority and the third slot priority are obtained according to the association relationship, the second resource data are added to the LPU1, the second resource data of the plurality of switching chips in the LPU2 corresponding to all the cluster line card slots on the LCC of the second frame priority are obtained according to the association relationship, and the second resource data are added to the LPU 1.
According to the embodiment, the second resource data of the corresponding switching chip in the LPU2 is sequentially added according to the association relationship between the second resource data and the cluster line card slot and the frame priority and the slot priority, so that the second resource data of the switching chip in the LPU2 corresponding to the cluster line card slot with the higher slot priority can be preferentially added, and the rapid message interaction between the LPUs with the high priority is facilitated.
In practical application, after creating the data adding task, the inter-board data mutual adding method of this embodiment may further include:
and creating a data addition monitoring task, wherein the data addition monitoring task is used for detecting and confirming the resource data of each exchange chip in the second service line clamping plate added by the first service line clamping plate.
To specifically describe the detailed process of adding data between boards in the embodiment of the present application, the following description is made with reference to fig. 4 and 5.
In this embodiment, each LCC in the cluster system is provided with the first identification information, and each LPU is provided with the second identification information, and this embodiment exemplarily illustrates that the LPU1 in the cluster system performs inter-board data addition, and at this time, all other LPUs in the cluster system are represented by LPU 2.
When the mutual addition of the first resource data among the plurality of switching chips in the LPU1 is completed, the master control of the cluster system can acquire the identifier of each LCC, the identifier of each LPU, and the in-place state information of each LPU in the cluster system, form the state information of the service line card board, and issue the state information; the LPU1 receives the status information of the service line card board, and configures a priority for adding the second resource data of each switch chip in the second service line card board based on the status information of the service line card board.
In the cluster system, any LPU in the cluster system configures the order priority in steps S411 to S419, and in the case where the stand-alone is not a cluster, any LPU in the LCC configures the order priority in steps S414 to S419. The order priority of the present embodiment includes a slot priority and a frame priority.
S411, training the first identifiers of all LCCs in turn, and executing step S412.
The LPU1 trains the first identifiers of all LCCs in turn after receiving the service line card status information sent by the FCC.
S412, determine whether the first flag of each LCC is a default flag Normal, if so, execute step S414, otherwise, execute step S413.
S413, configure the frame priority of the LCC as a second frame priority, and configure the slot priorities of all the trunking group card slots on the LCC as third slot priorities.
S414, configuring the frame priority of the LCC as the first frame priority, training all the trunking card slots on the LCC in turn, and executing step S415.
S415, determine whether there is an in-place LPU in the cluster card slot on the LCC, if there is an in-place LPU, execute step S417, if there is no in-place LPU, execute step S416, and configure the slot priority of the cluster card slot as the third slot priority.
S417, determine whether the second identifier of the hub group card slot of the LPU in place is the default identifier Normal, if so, execute step S419, otherwise execute step S418, and configure the slot priority of the hub group card slot as the second slot priority.
S419 configures the slot priority of the trunking group card slot to be the first slot priority.
After the order priorities are configured, data addition tasks equal to the number of LCCs in which the LPU2 is located are created on the LPU1, so that one data addition task corresponds to one LCC, and when the LPU1 executes one data addition task, the second resource data of the plurality of switch chips in all the LPUs 2 on the corresponding LCC can be added to the LPU 1.
For convenience of explaining a process of adding data between boards by LPUs, in this embodiment, it is assumed that a cluster system includes three LCCs, i.e., LCC1, LCC2, and LCC3, and frame priorities of LCC1, LCC2, and LCC3 are respectively a first frame priority, and a second frame priority, and since execution logic of adding data between boards by each LPU in the cluster system is the same, this embodiment takes one of the LPUs, i.e., LPU1, as an example to perform a data addition task.
Based on the above assumption of the present embodiment, three data adding tasks task1, task2 and task3 are created on the LPU1, and task1, task2 and task3 respectively correspond to LCC1, LCC2 and LCC3, where fig. 5 shows an execution process of the data adding task, and the specific process is as follows:
s511, the LPU1 determines whether the data add task requires high priority processing, if not, executes step S512, and if so, executes step S513.
Based on the above assumption of the present embodiment, the data adding tasks task1, task2, and task3 correspond to LCC1, LCC2, and LCC3, respectively, and since the frame priorities of LCC1 and LCC2 are both the first frame priority and the frame priority of LCC3 is the second frame priority, the LPU1 determines that the data adding tasks task1 and task2 execute step S513; and the judgment data adding task3 executes step S512.
Since the LPU1 performs the logic of the data adding task1 and the data adding task2, for convenience of description, the process of adding inter-board data by the LPU1 is explained with the LPU1 performing the data adding task1 and the data adding task 3.
S512, the LPU1 determines whether the high priority processing is completed, if so, performs step S516, otherwise waits for the LPU1 to perform the high priority processing.
When the data adding task3 is executed, the LPU1 determines whether the LPU1 has added the second resource data of the plurality of switch chips in the LPU2 corresponding to the cluster line card slot with the second slot priority in the LCC1 and the LCC2, and after the LPU1 has added the second resource data in the LCC1 and the LCC2, the LPU1 executes step S516.
S513, the LPU1 trains all the trunking line card slots on the corresponding LCCs in turn, adds the second resource data of the plurality of switching chips in the LPUs corresponding to the trunking line card slot with the priority of the first slot on the LCC according to the association relationship, marks the added LPU, and executes step S514 after the second resource data is added.
When executing the data adding task1, the LPU1 trains all the trunking line card slots on the LCC1 in turn, adds the second resource data of the plurality of switching chips in the LPU corresponding to the trunking line card slot with the slot priority being the first slot priority according to the association relationship, marks the added LPU, and after the second resource data is added, the LPU1 executes step S514.
S514, the LPU1 trains all the trunking line card slots on the corresponding LCC in turn, adds the second resource data of the plurality of switching chips in the LPUs corresponding to the trunking line card slot of the second slot priority in the LCC according to the association relationship, marks the added LPU, and executes step S515 after the addition of the second resource data is completed.
In the process of executing the data adding task1, after adding the resource data of the multiple switch chips in the LPUs corresponding to all the cluster line card slots with the first slot priority on the LCC1 according to the association relationship, the LPU1 continues to train all the cluster line card slots on the LCC1 in turn, adds the second resource data of the multiple switch chips in the LPUs corresponding to all the cluster line card slots with the slot priority as the second slot priority according to the association relationship, marks the added LPU, and after the addition of the second resource data is completed, the LPU1 executes step S515.
S515, the LPU1 determines whether the second resource data of the switching chips in the LPUs in the trunking line card slot with the second slot priority has been completely added, if so, executes step S516, otherwise, waits for the LPU1 to completely add the second resource data of the switching chips in the LPUs corresponding to the trunking line card slot with the second frame priority.
During execution of the data adding task1, after the LPU1 has completed adding the second resource data of the plurality of switch chips in the LPU corresponding to the cluster line card slot with the second slot priority on the LCC1 and has determined that the data adding task2 has completed adding the second resource data of the plurality of switch chips in the LPU corresponding to the cluster line card slot with the second slot priority on the LCC2, the LPU1 executes step S516.
S516, the LPU1 trains all the trunking line card slots on all the LCCs in turn, adds the second resource data of the switching chips in the LPUs corresponding to the trunking line card slot with the third slot priority according to the association relationship, marks the added LPU, and after the addition of the second resource data is completed, the LPU1 completes the task of adding the second resource data.
Illustratively, when the LPU1 executes the data adding task1, it trains all the trunking line card slots on the LCC1 in turn, adds the resource data of the plurality of switching chips in the LPU corresponding to the trunking line card slot with the third slot priority on the LCC1 according to the association relationship, and marks the added LPU, and after the second resource data is added, the LPU1 finishes executing the data adding task 1;
when the LPU1 executes the data adding task2, it trains all the trunking line card slots on the LCC2 in turn, adds the resource data of the multiple switching chips in the LPU corresponding to the trunking line card slot with the priority of the third slot on the LCC2 according to the association relationship, and marks the added LPU, and after the second resource data is added, the LPU1 completes the execution of the data adding task 2;
when the data adding task3 is executed, the LPU1 trains all the trunking line card slots on the LCC3 in turn, adds the resource data of the plurality of switching chips in the LPU corresponding to the trunking line card slot with the third slot priority on the LCC3 according to the association relationship, marks the added LPU, and after the second resource data is added, the LPU1 completes execution of the data adding task 3.
Corresponding to the inter-board data adding method, the application also provides an inter-board data adding device.
Fig. 6 is a block diagram of an inter-board data adding apparatus 60 according to an embodiment of the present disclosure, where the inter-board data adding apparatus is applied to an LPU, and the LPU is pluggable into a trunking line card slot, and the trunking line card slot is disposed in an LCC; as shown in fig. 6, the apparatus 60 of the present embodiment includes: a configuration unit 61, a task creation unit 62, a task execution unit 63;
the initialization unit 61 is configured to configure, when two switching chips in the LPU1 add first resource data to each other, a sequence priority for adding second resource data of the switching chips in the LPU 2;
the task creating unit 62 is configured to create, on the LPU1, a data adding task corresponding to the cluster line card frame where the LPU2 is located, where the data adding task is configured to add second resource data of all the switching chips in the LPU2 in the LCC to the LPU 1;
a task execution unit 63 for executing the data addition task based on the order priority.
In an embodiment of the present application, the apparatus 60 further includes a receiving unit and a determining unit (the receiving unit and the determining unit are not shown in the figure);
the receiving unit is used for receiving service line card board state information, wherein the service line card board state information comprises first identification information of an LCC (link control channel) where the LPU2 is located, in-place state information of the LPU2 and second identification information of the LPU 2;
correspondingly, the configuring unit 61 is configured to configure, according to the first identification information, the bit status information and the second identification information, an order priority for adding the second resource data of each switch chip in the LPU 2.
The judging unit is used for judging whether the first identification information is a preset identification or not according to the first identification information; judging whether the LPU2 exists in the trunking line card slot or not according to the in-place state information and the second identification information, and judging whether the second identification information is a preset identification or not;
correspondingly, the configuration unit 61 is specifically configured to configure the LCC as a first frame priority when the determination unit determines that the first identifier information is the preset identifier; when the LPU2 is judged to exist in the trunking line card slot and the second identification information is the preset identification, configuring the trunking line card slot as a first slot priority; when the LPU2 exists in the trunking line card slot and the second identification information is not the preset identification, configuring the trunking line card slot as a second slot priority; when judging that no LPU2 exists in the cluster line card slot, configuring the cluster line card slot as a third slot priority; and when the judging unit judges that the first identification information is not the preset identification, configuring the LCC as a second frame priority and configuring the cluster line card slot as a third slot priority.
The configuration unit 61 of this embodiment is further configured to, before adding the first resource data to each other in pairs in the plurality of switch chips in the LPU1, establish an association relationship between the second resource data and the cluster line card slot into which the LPU2 is inserted, where the association relationship is used to obtain the second resource data corresponding to the cluster line card slot into which the LPU2 is inserted when executing a data adding task.
Correspondingly, the task execution unit 63 is specifically configured to, when the frame priority of the LCC where the LPU2 is located is the first frame priority, sequentially add second resource data of the multiple switch chips in the LPU2 in the cluster line card slot according to the slot priority order and the association relationship of all the cluster line card slots on the LCC with the first frame priority; when the frame priority of the LCC in which the LPU2 is located is the second frame priority, second resource data of the plurality of switch chips in the LPU2 in the cluster line card slot are sequentially added according to the slot priority order and the association relationship of all the cluster line card slots on the LCC having the second frame priority.
In practical applications, the task creating unit 62 is further configured to create a data addition monitoring task, where the data addition monitoring task is used to perform detection and confirmation on the second resource data of each switch chip in the LPU2 added by the LPU 1.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The inter-board data adding device provided by the application can be realized through software, and also can be realized through hardware or a combination of hardware and software. Taking a software implementation as an example, referring to fig. 7, the inter-board data adding apparatus 60 provided in the present application may include a processor 701 and a machine-readable storage medium 702 storing machine-executable instructions. The processor 701 and the machine-readable storage medium 702 may communicate via a system bus 703. Also, the processor 701 may perform the inter-board data adding method described above by reading and executing machine executable instructions in the machine readable storage medium 702 corresponding to the inter-board data adding logic.
The machine-readable storage medium 702 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., a compact disk, a DVD, etc.), or similar storage medium, or a combination thereof.
According to an example disclosed herein, there is also provided a machine-readable storage medium, such as the machine-readable storage medium 702 in fig. 7, comprising machine-executable instructions that are executable by the processor 701 in the inter-board data adding apparatus 60 to implement the inter-board data adding method described above.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In summary, the embodiment of the present application can at least obtain the following beneficial effects:
1. data adding tasks are created on the LPU1 according to the LCC number, so that the number of tasks needing to be created is greatly reduced, and network resources are saved.
2. By configuring the order priority for adding the second resource data of the switching chips within the LPU2, the second resource data of a plurality of chips within all LPUs 2 can be added at once on the LPU1, and subsequently, the task need not be created, and the resource data of the switching chips can be deleted or added according to the state of the LPU 2.
3. By configuring the priority of the order for adding the second resource data of the switching chips in the second service line card board, it can also be ensured that the resource data of the switching chips in the LPU2 with high priority can be added preferentially, and it is ensured that the LPUs with high priority can perform board-crossing or frame-crossing message interaction in time.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (12)

1. The method for adding the data between the boards is characterized by being applied to a service line card board, wherein the service line card board can be plugged into a trunking line card slot which is arranged in a trunking line card frame; the method comprises the following steps:
when a plurality of exchange chips in a first service line card board add first resource data to each other pairwise, configuring a sequence priority for adding second resource data of the exchange chips in a second service line card board; the second service line card board is all other service line card boards except the first service line card board;
creating a data adding task corresponding to the number of cluster line card frames in which the second service line card plates are located on the first service line card plate, wherein the data adding task is used for adding second resource data of all switching chips in the second service line card plates in the cluster line card frames to the first service line card plate;
and executing the data adding task based on the sequence priority.
2. The method according to claim 1, wherein after adding the first resource data to each other by two of the plurality of switch chips in the first service line card board, the method further comprises, before configuring a priority order for adding the second resource data of the switch chip in the second service line card board:
receiving service line card board state information, wherein the service line card board state information comprises first identification information of a trunking line card frame where the second service line card board is located, on-site state information of the second service line card board and second identification information of the second service line card board;
the configuring of the order priority for adding the second resource data of the switching chip in the second service line card board specifically includes:
and configuring a sequence priority for adding second resource data of each exchange chip in the second service line card board according to the first identification information, the in-place state information and the second identification information.
3. The method according to claim 2, wherein the configuring, according to the first identification information, the presence status information, and the second identification information, a sequence priority for adding the second resource data of each switch chip in the second service line card board specifically includes:
judging whether the first identification information is a preset identification or not according to the first identification information;
if the first identification information is the preset identification, configuring the trunking line card frame as a first frame priority, and judging whether a second service line card board exists in the trunking line card slot or not and whether the second identification information is the preset identification or not according to the in-place state information and the second identification information;
if the second service line card board exists in the trunking line card slot and the second identification information is the preset identification, configuring the trunking line card slot as a first slot priority;
if the second service line card board exists in the trunking line card slot and the second identification information is not the preset identification, configuring the trunking line card slot as a second slot priority;
if the second service line card board does not exist in the trunking line card slot, configuring the trunking line card slot as a third slot priority;
and if the first identification information is not the preset identification, configuring the cluster line card frame as a second frame priority and configuring the cluster line card slot as a third slot priority.
4. The method of claim 3, wherein before the plurality of switch chips in the first service line card board mutually add the first resource data two by two, the method further comprises:
establishing an incidence relation between the second resource data and a cluster line clamping slot into which the second service line clamping plate is inserted, wherein the incidence relation is used for acquiring the second resource data corresponding to the cluster line clamping slot into which the second service line clamping plate is inserted when the data adding task is executed;
the executing the data addition task based on the order priority comprises:
when the frame priority of the cluster line card frame where the second service line card board is located is the first frame priority, sequentially adding second resource data of a plurality of switching chips in the second service line card board in the cluster line card slot according to the slot priority order and the incidence relation of all the cluster line card slots on the cluster line card frame with the first frame priority;
when the frame priority of the cluster line card frame where the second service line card board is located is the second frame priority, second resource data of a plurality of switch chips in the second service line card board in the cluster line card slot are sequentially added according to the slot priority order and the association relation of all the cluster line card slots on the cluster line card frame with the second frame priority.
5. The method of claim 1, wherein after creating the data addition task, the method further comprises:
and creating a data addition monitoring task, wherein the data addition monitoring task is used for detecting and confirming the second resource data of each switching chip in the second service line card board added by the first service line card board.
6. The inter-board data adding device is characterized by being applied to a service line clamping board, wherein the service line clamping board can be plugged into a trunking line clamping slot, and the trunking line clamping slot is arranged in a trunking line clamping frame; the device includes:
the configuration unit is used for configuring the order priority for adding the second resource data of the switching chips in the second service line card board after the first resource data are added to the plurality of switching chips in the first service line card board pairwise; the second service line card board is all other service line card boards except the first service line card board;
a task creating unit, configured to create, on the first service line card board, a data adding task corresponding to the number of the cluster line card frames in which the second service line card boards are located, where the data adding task is used to add second resource data of all the switching chips in the second service line card board in the cluster line card frame to the first service line card board;
and the task execution unit is used for executing the data adding task based on the sequence priority.
7. The apparatus of claim 6, further comprising a receiving unit;
the receiving unit is configured to receive service line card board state information, where the service line card board state information includes first identification information of a trunking line card frame where the second service line card board is located, in-place state information of the second service line card board, and second identification information of the second service line card board;
the configuration unit is configured to configure, according to the first identifier information, the in-place state information, and the second identifier information, a sequence priority for adding the second resource data of each switch chip in the second service line card.
8. The apparatus of claim 7, further comprising a judging unit;
the judging unit is used for judging whether the first identification information is a preset identification or not according to the first identification information; judging whether a second service line clamping plate exists in the trunking line clamping groove or not according to the in-place state information and the second identification information, and judging whether the second identification information is a preset identification or not;
the configuration unit is specifically configured to configure the trunking line card frame as a first frame priority when the judgment unit judges that the first identification information is the preset identification; when the judging unit judges that the second service line card board exists in the trunking line card slot and the second identification information is the preset identification, the trunking line card slot is configured to be a first slot priority; when the judging unit judges that the second service line card board exists in the trunking line card slot and the second identification information is not the preset identification, configuring the trunking line card slot as a second slot priority; when the judging unit judges that the second service line card board does not exist in the trunking line card slot, configuring the trunking line card slot as a third slot priority; and when the judging unit judges that the first identification information is not the preset identification, configuring the trunking line card frame as a second frame priority and configuring the trunking line card slot as a third slot priority.
9. The apparatus according to claim 8, wherein the configuration unit is further configured to establish an association relationship between the second resource data and a trunking line card slot into which the second service line card board is inserted, where the association relationship is used to obtain the second resource data corresponding to the trunking line card slot into which the second service line card board is inserted when the data addition task is executed;
the task execution unit is specifically configured to, when a frame priority of a cluster line card frame in which the second service line card board is located is the first frame priority, sequentially add second resource data of a plurality of switch chips in the second service line card board in the cluster line card slot according to a slot priority order of all the cluster line card slots on the cluster line card frame having the first frame priority and the association relationship;
when the frame priority of the cluster line card frame where the service line card board is located is the second frame priority, second resource data of a plurality of switch chips in the second service line card board in the cluster line card slot are sequentially added according to the slot priority order and the association relation of all the cluster line card slots on the cluster line card frame with the second frame priority.
10. The apparatus of claim 6,
the task creating unit is further configured to create a data addition monitoring task, where the data addition monitoring task is used to detect and confirm second resource data of each switch chip in the second service line card board added by the first service line card board.
11. An inter-board data adding apparatus comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: performing the inter-board data adding method according to any one of claims 1 to 5.
12. A machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: performing the inter-board data adding method according to any one of claims 1 to 5.
CN201710630792.4A 2017-07-28 2017-07-28 Method and device for adding data between boards Active CN107547450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710630792.4A CN107547450B (en) 2017-07-28 2017-07-28 Method and device for adding data between boards

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710630792.4A CN107547450B (en) 2017-07-28 2017-07-28 Method and device for adding data between boards

Publications (2)

Publication Number Publication Date
CN107547450A CN107547450A (en) 2018-01-05
CN107547450B true CN107547450B (en) 2020-04-17

Family

ID=60970385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710630792.4A Active CN107547450B (en) 2017-07-28 2017-07-28 Method and device for adding data between boards

Country Status (1)

Country Link
CN (1) CN107547450B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252537A (en) * 2008-03-31 2008-08-27 杭州华三通信技术有限公司 Switching network communicating system, method and master control board
CN101277196A (en) * 2007-03-30 2008-10-01 杭州华三通信技术有限公司 Communication system, communication method and cable fastener plate based on PCIE switching network
CN101277195A (en) * 2007-03-30 2008-10-01 杭州华三通信技术有限公司 Switching network communication system, implementing method and switching unit
CN101291294A (en) * 2008-06-06 2008-10-22 杭州华三通信技术有限公司 Biprimary controlled switching apparatus, method and device for distributing retransmitting list
CN101299721A (en) * 2008-06-19 2008-11-05 杭州华三通信技术有限公司 Method for switching message of switching network, switching device, route line card and Ether line card
CN102063398A (en) * 2010-12-16 2011-05-18 国网电力科学研究院 Board card equipment-based inter-board seamless data exchange method
CN102315892A (en) * 2010-07-02 2012-01-11 杭州华三通信技术有限公司 Data forwarding device, cable fastener plates and data forwarding method
CN102546778A (en) * 2011-12-28 2012-07-04 武汉虹旭信息技术有限责任公司 Agent-based cross-platform wireless network access controller multi-board communication method
CN104133802A (en) * 2014-08-14 2014-11-05 哈尔滨工业大学 Data exchange method between Vxworks embedded operating system and motion control card of double-workpiece-platform scanning mask aligner

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277196A (en) * 2007-03-30 2008-10-01 杭州华三通信技术有限公司 Communication system, communication method and cable fastener plate based on PCIE switching network
CN101277195A (en) * 2007-03-30 2008-10-01 杭州华三通信技术有限公司 Switching network communication system, implementing method and switching unit
CN101252537A (en) * 2008-03-31 2008-08-27 杭州华三通信技术有限公司 Switching network communicating system, method and master control board
CN101291294A (en) * 2008-06-06 2008-10-22 杭州华三通信技术有限公司 Biprimary controlled switching apparatus, method and device for distributing retransmitting list
CN101299721A (en) * 2008-06-19 2008-11-05 杭州华三通信技术有限公司 Method for switching message of switching network, switching device, route line card and Ether line card
CN102315892A (en) * 2010-07-02 2012-01-11 杭州华三通信技术有限公司 Data forwarding device, cable fastener plates and data forwarding method
CN102063398A (en) * 2010-12-16 2011-05-18 国网电力科学研究院 Board card equipment-based inter-board seamless data exchange method
CN102546778A (en) * 2011-12-28 2012-07-04 武汉虹旭信息技术有限责任公司 Agent-based cross-platform wireless network access controller multi-board communication method
CN104133802A (en) * 2014-08-14 2014-11-05 哈尔滨工业大学 Data exchange method between Vxworks embedded operating system and motion control card of double-workpiece-platform scanning mask aligner

Also Published As

Publication number Publication date
CN107547450A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
US8693343B2 (en) Relay apparatus, virtual machine system, and relay method
CN103475899B (en) Data distributing method and device
CN104346373A (en) Partition log queue synchronization management method and device
US20180364948A1 (en) Data Processing Method, Related Device, and Storage System
CN109032533B (en) Data storage method, device and equipment
US10282120B2 (en) Method, apparatus and system for inserting disk
EP2704009A2 (en) Information processing apparatus, information processing method, and program
CN104793981B (en) A kind of online snapshot management method and device of cluster virtual machine
US20110131288A1 (en) Load-Balancing In Replication Engine of Directory Server
CN112835695A (en) Method for communication between Pod and distributed computing system
CN103166845A (en) Data processing method and device
CN107094085B (en) Signaling transmission method and device
CN107547450B (en) Method and device for adding data between boards
US9596131B2 (en) Method for transiting operation mode of routing processor
CN113794581A (en) Distributed CP unified deployment method, network equipment and storage medium
CN104052799B (en) A kind of method that High Availabitity storage is realized using resource ring
CN108965093B (en) VLAN (virtual local area network) distribution method and device
CN111277514A (en) Message queue distribution method, message forwarding method and related device
WO2016154860A1 (en) Method, apparatus and system for establishing interface between vnfms
CN109656674B (en) Computer equipment, virtualization chip and data transmission method
US9094341B2 (en) Method and device for updating port index, and multi-device system
CN105939242B (en) Realize the method and device of virtual system
CN106028303B (en) Intelligent device discovery method and device
CN110891031B (en) Synchronous information parallel writing method and network equipment
CN104104594A (en) Methods of transmitting and receiving protocol message of VSU, devices and 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