CN109120680B - Control system, method and related equipment - Google Patents
Control system, method and related equipment Download PDFInfo
- Publication number
- CN109120680B CN109120680B CN201810844294.4A CN201810844294A CN109120680B CN 109120680 B CN109120680 B CN 109120680B CN 201810844294 A CN201810844294 A CN 201810844294A CN 109120680 B CN109120680 B CN 109120680B
- Authority
- CN
- China
- Prior art keywords
- target
- service
- devices
- equipment
- control
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the application provides a control system, a control method and related equipment, wherein corresponding first target equipment is allocated to service equipment through attribute information of a plurality of control equipment, the first target equipment allocated to at least two service equipment is different, and the service equipment can acquire a target file from the corresponding first target equipment. Compared with the prior art in which all the service devices acquire the target file from the same control device, in the control system provided in the embodiment of the present application, the target file is provided for a plurality of service devices through a plurality of control devices at the same time, and under the condition that the capability of the control devices for processing data in parallel is limited, the service devices can acquire the target file through other control devices, so that the waiting time of the service devices is reduced, and the efficiency of the service devices for acquiring the target file is improved.
Description
Technical Field
The present application relates to the field of computers, and in particular, to a control system, method and related device.
Background
Network devices refer to physical devices connected to a network, such as computers, switches, routers, gateways, and the like, and among these network devices, control devices and service devices are generally included. The control device may be configured to process data and issue an instruction, and may be, for example, a Central Processing Unit (CPU) or a Micro Processor Unit (MPU), and the service device may be configured to execute the instruction issued by the control device, such as a Line Processing Unit (LPU).
During the starting or running process of the service device, the target file may be acquired from the control device so as to perform normal starting or running of the service device, and the target file may be, for example, a software file such as a patch package, or a service file including service data. However, in general, the capability of the control device to process data in parallel is limited, and if a plurality of service devices acquire an object file from one control device at the same time, the efficiency of acquiring the object file by the service device may be low, for example, the downloading speed of the object file may be slow or the object file may need to wait for downloading.
Disclosure of Invention
The embodiment of the application provides a control system, a control method and related equipment, which can reduce the waiting time of business equipment and improve the target file acquisition efficiency.
A first aspect of the present application provides a control system, including an address assignment device, a plurality of service devices, and a plurality of control devices; wherein, the address allocation device is other processor except the control device in the network device;
the address allocation device is configured to allocate, according to the attribute information of the plurality of control devices, corresponding first target devices to service devices from the plurality of control devices, respectively, and send addresses of the corresponding first target devices to the service devices, where the first target devices allocated to at least two of the service devices are different;
and the service equipment is used for acquiring the target file stored in the first target equipment according to the address of the first target equipment.
In the control system, since the first target devices corresponding to all the service devices are not the same, the service devices may obtain the target files from at least two control devices, and compared with a method in the prior art in which all the service devices obtain the target files from the same control device, in the control system provided in the embodiment of the present application, the target files are provided for a plurality of service devices through a plurality of control devices at the same time, and under the condition that the capability of the control devices to process data in parallel is limited, the service devices may obtain the target files through other control devices, thereby reducing the waiting time of the service devices and improving the efficiency of the service devices obtaining the target files.
In some possible embodiments, the attribute information includes connection relationships between the plurality of control devices and the plurality of business devices, and the connection relationships include direct connections and indirect connections.
In this embodiment of the present application, the attribute information may include connection relationships between the plurality of control devices and the plurality of service devices, so that the address allocation device may allocate the corresponding first target device to the plurality of service devices according to the connection relationships between the plurality of control devices and the plurality of service devices, thereby simplifying a communication path between the service device and the corresponding first target device and improving communication efficiency.
In some possible embodiments, the attribute information includes a membership between the plurality of control devices.
In this embodiment, the attribute information may include a dependency relationship between the plurality of control devices, so that the address allocation device may allocate the corresponding first target device to the plurality of service devices according to the dependency relationship between the plurality of control devices, because the dependency relationship may reflect the occupied resource quantity, for example, the occupied resource data of the slave control device is generally less, and therefore, the influence on the control device with more occupied resource data may be reduced.
In some possible embodiments, the attribute information includes a number of resources currently occupied and/or a number of resources currently free by the plurality of control devices.
In this embodiment of the application, the attribute information may include the number of currently occupied resources and/or the number of currently idle resources of the plurality of control devices, so that the address allocation device may allocate the corresponding first target device to the plurality of service devices according to the number of currently occupied resources and/or the number of currently idle resources of the plurality of control devices, because the capability of the control devices to process data in parallel is limited, and when the number of currently occupied resources of the control devices is large, there is no capability to process data of a plurality of connected service devices at the same time, and therefore, the allocation of the control devices is performed according to the number of occupied resources, which is beneficial to improving data processing efficiency.
In some possible embodiments, the first target device is configured to send a check code of the target file to the service device;
and the service equipment is also used for verifying the target file according to the verification code of the target file.
In the embodiment of the application, whether the target file is damaged or not can be determined by verifying the target file, because the damaged target file cannot be used generally, and the target file can be obtained again at this time, so that the accuracy of obtaining the target file can be improved by verifying the target file.
In some of the possible embodiments, the first and second,
the service equipment is also used for sending an address redistribution request to the address distribution equipment when the target file fails to be verified;
the address allocation device is also used for receiving an address redistribution request sent by the service device; and matching corresponding second target equipment for the service equipment from the control equipment except the first target equipment matched with the service equipment according to the address redistribution request and the attribute information, and sending the address of the second target equipment to the service equipment so that the service equipment can obtain a target file stored in the second target equipment according to the address of the second target equipment.
In the embodiment of the application, if the target file fails to be verified, it is indicated that the target file is damaged, and in order to obtain a complete target file, the service device may send an address redistribution request to the address distribution device, so that the address distribution device redistributes the corresponding second target device to the service device, and thus the service device may perform target file acquisition again, and accuracy of target file acquisition is improved.
In some of the possible embodiments, the first and second,
the service device is specifically configured to send a file list acquisition request to the first target device according to the address of the first target device;
the first target device is specifically configured to send a corresponding file list to the service device according to the file list acquisition request, where the file list carries a file identifier of a file stored by the first target device;
the service device is further specifically configured to determine a file identifier of a target file according to a file identifier carried in the file list and a file identifier of a file stored by the service device, and send a file acquisition request to the first target device, where the file acquisition request carries the file identifier of the target file;
the first target device is further specifically configured to determine the target file from files stored in the first target device according to the file identifier of the target file, and send the target file to the service device.
In the embodiment of the present application, the first target device may send the file list to the service device first, so that the service device determines the target file, which may save a process of acquiring an unnecessary file from the first target device by the service device, thereby saving data resources and improving efficiency of the target file.
In some possible embodiments, the control device includes a control board, and the service device includes an interface board.
A second aspect of the present application provides a control system including a plurality of service devices and a plurality of control devices, the plurality of control devices including an address assignment device;
the address allocation device is configured to allocate, according to the attribute information of the plurality of control devices, corresponding first target devices to service devices from the plurality of control devices, respectively, and send addresses of the corresponding first target devices to the service devices, where the first target devices allocated to at least two of the service devices are different;
and the service equipment is used for acquiring the target file stored in the first target equipment according to the address of the first target equipment.
In some possible embodiments, the attribute information includes connection relationships between the plurality of control devices and the plurality of business devices, and the connection relationships include direct connections and indirect connections.
In some possible embodiments, the attribute information includes a membership between the plurality of control devices.
In some possible embodiments, the attribute information includes a number of resources currently occupied and/or a number of resources currently free by the plurality of control devices.
In some of the possible embodiments, the first and second,
the first target device is configured to send a check code of the target file to the service device;
and the service equipment is also used for verifying the target file according to the verification code of the target file.
In some of the possible embodiments, the first and second,
the service equipment is also used for sending an address redistribution request to the address distribution equipment when the target file fails to be verified;
the address allocation device is also used for receiving an address redistribution request sent by the service device; and matching corresponding second target equipment for the service equipment from the control equipment except the first target equipment matched with the service equipment according to the address redistribution request and the attribute information, and sending the address of the second target equipment to the service equipment so that the service equipment can obtain a target file stored in the second target equipment according to the address of the second target equipment.
In some of the possible embodiments, the first and second,
the service device is specifically configured to send a file list acquisition request to the first target device according to the address of the first target device;
the first target device is specifically configured to send a corresponding file list to the service device according to the file list acquisition request, where the file list carries a file identifier of a file stored by the first target device;
the service device is further specifically configured to determine a file identifier of a target file according to a file identifier carried in the file list and a file identifier of a file stored by the service device, and send a file acquisition request to the first target device, where the file acquisition request carries the file identifier of the target file;
the first target device is further specifically configured to determine the target file from files stored in the first target device according to the file identifier of the target file, and send the target file to the service device.
In some possible embodiments, the control device includes a control board, and the service device includes an interface board.
A third aspect of the present application provides a control method, the method including:
acquiring addresses and attribute information of a plurality of control devices;
according to the attribute information of the plurality of control devices, respectively allocating corresponding first target devices to service devices from the plurality of control devices, and sending addresses of the corresponding first target devices to the service devices, so that the service devices can acquire target files stored in the first target devices according to the addresses of the corresponding first target devices, wherein the first target devices allocated to at least two service devices are different.
In some possible embodiments, the attribute information includes connection relationships between the plurality of control devices and the plurality of business devices, and the connection relationships include direct connections and indirect connections.
In some possible embodiments, the attribute information includes a membership between the plurality of control devices.
In some possible embodiments, the attribute information includes a number of resources currently occupied and/or a number of resources currently free by the plurality of control devices.
In some possible embodiments, the obtaining the address and attribute information of the plurality of control devices includes:
and responding to the address allocation request sent by the service equipment, and acquiring the addresses and attribute information of the plurality of control equipment in real time.
In some possible embodiments, the method further comprises:
receiving an address redistribution request sent by service equipment;
and matching corresponding second target equipment for the service equipment from the control equipment except the first target equipment matched with the service equipment according to the address redistribution request and the attribute information, and sending the address of the second target equipment to the service equipment so that the service equipment can obtain a target file stored in the second target equipment according to the address of the second target equipment.
In some possible embodiments, the control device includes a control board, and the service device includes an interface board.
A fourth aspect of the present application provides a control apparatus, the apparatus comprising:
an information acquisition unit configured to acquire addresses and attribute information of a plurality of control apparatuses;
a first target device allocating unit, configured to allocate, according to the attribute information of the multiple control devices, corresponding first target devices to service devices from the multiple control devices, respectively, and send addresses of the corresponding first target devices to the service devices, so that the service devices obtain target files stored in the first target devices according to the addresses of the corresponding first target devices, where at least two first target devices allocated to the service devices are different.
In some possible embodiments, the attribute information includes connection relationships between the plurality of control devices and the plurality of business devices, and the connection relationships include direct connections and indirect connections.
In some possible embodiments, the attribute information includes a membership between the plurality of control devices.
In some possible embodiments, the attribute information includes a number of resources currently occupied and/or a number of resources currently free by the plurality of control devices.
In some possible embodiments, the information obtaining unit is specifically configured to:
and responding to the address allocation request sent by the service equipment, and acquiring the addresses and attribute information of the plurality of control equipment in real time.
In some possible embodiments, the apparatus further comprises:
the request receiving unit is used for receiving an address redistribution request sent by the service equipment;
and the second target equipment allocation unit is used for matching corresponding second target equipment for the service equipment from the control equipment except the first target equipment matched with the service equipment according to the address redistribution request and the attribute information, and sending the address of the second target equipment to the service equipment so that the service equipment can obtain a target file stored in the second target equipment according to the address of the second target equipment.
In some possible embodiments, the control device includes a control board, and the service device includes an interface board.
A fifth aspect of the present application provides a control apparatus, the apparatus comprising: a processor and a memory;
the memory to store instructions;
the processor is configured to execute the instructions in the memory, and execute the control method provided in the third aspect of the present application.
A sixth aspect of the present application provides a computer-readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the control method provided by the third aspect of the present application.
A seventh aspect of the present application provides a computer program product containing instructions which, when run on a computer, cause the computer to perform the control method provided by the third aspect of the present application.
According to the technical scheme, the embodiment of the application has the following advantages:
in the control system and method and the related device provided by the embodiment of the application, the business device can acquire the target file from the plurality of control devices, so that the target file is simultaneously provided by the plurality of control devices under the condition that the capability of the control devices for processing data in parallel is limited, and the acquisition efficiency of the target file is improved. Specifically, the corresponding first target devices may be allocated to the service devices according to the attribute information of the plurality of control devices, where the first target devices allocated to at least two service devices are different, and the service devices may obtain the target file from the corresponding first target devices. Compared with the prior art in which all the service devices acquire the target file from the same control device, in the scheme provided by the embodiment of the application, the target file is simultaneously provided for a plurality of service devices by a plurality of control devices, and under the condition that the capability of the control devices for processing data in parallel is limited, the service devices can acquire the target file by other control devices, so that the waiting time of the service devices is reduced, and the efficiency of the service devices for acquiring the target file is improved.
Drawings
Fig. 1 is a block diagram of a control system according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a connection relationship between a control device and a service device in an embodiment of the present application;
fig. 3 is a schematic diagram of a distributed network device according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating a method for acquiring a target file according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating another method for acquiring a target file according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating another method for acquiring a target file according to an embodiment of the present application;
fig. 7 is a flowchart of a control method according to an embodiment of the present application;
fig. 8 is a block diagram of a control device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an apparatus for performing a control method according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a control method, a control device and related equipment, which are used for improving the efficiency of acquiring a target file by service equipment and reducing the waiting time of the service equipment.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the process of starting or operating the current service device, a target file stored in the control device may be acquired from the control device so as to perform normal starting or operating of the service device, and the target file may be a software file such as a patch package or other target files. However, in general, the capability of the control device to process data in parallel is limited, and if a plurality of service devices acquire an object file from one control device at the same time, the downloading efficiency of the object file of the service device is low, for example, the downloading speed is slow due to the acquisition of a plurality of object files at the same time, or the number of object files to be acquired is too large, so that some service devices need to wait. For example, 20 service devices are provided in the network device, and if one control device can simultaneously support 5 service devices to acquire the target file from the control device, the other 15 service devices need to wait for a long time to acquire the target file while the 5 service devices acquire the target file.
In order to solve the foregoing technical problem, embodiments of the present application provide a control system, a method, and a related device, where a service device may obtain a target file from multiple control devices, so that the multiple control devices simultaneously provide the target file under the condition that the capability of the control devices for processing data in parallel is limited, so as to improve the efficiency of obtaining the target file. Specifically, the corresponding first target devices may be allocated to the service devices by obtaining addresses and attribute information of the plurality of control devices, where the first target devices allocated to at least two service devices are different, and the service devices may obtain the target file from the corresponding first target devices. Compared with the prior art in which all the service devices acquire the target file from the same control device, in the control system provided in the embodiment of the present application, the target file is provided for a plurality of service devices through a plurality of control devices at the same time, and under the condition that the capability of the control devices for processing data in parallel is limited, the service devices can acquire the target file through other control devices, so that the waiting time of the service devices is reduced, and the efficiency of the service devices for acquiring the target file is improved. For example, 20 service devices are provided in the network device, if one control device can simultaneously support 5 service devices to obtain the target file from the control device, if the 20 service devices simultaneously obtain the target file from two control devices, each control device corresponds to 5 service devices that are obtaining the target file, and 5 service devices wait to obtain the target file, so that the waiting time of the service devices is reduced, and if the 20 service devices simultaneously obtain the target file from four control devices, each control device corresponds to 5 service devices that are obtaining the target file, so that the target file can be obtained without waiting.
A control system provided in an embodiment of the present application is described in detail below with reference to the accompanying drawings. Referring to fig. 1, a block diagram of a control system provided in an embodiment of the present application is shown, where the control system 100 may include: an address assignment device 101, a plurality of service devices 102, and a plurality of control devices 103.
The control device 103 may be a device for data processing and instruction issuing in a network device, for example, a processor in a network device such as a computer, a switch, a router, a gateway, and the like, and specifically may be a central processing unit or a microprocessor. The control device 103 may be in the form of an integrated circuit, in which case the control device 103 may be a main control board.
The service device 102 is a device that executes the instruction issued by the control device 103, and may be, for example, an interface device for connecting with an external device, or the service device 102 may exist in the form of an integrated circuit, in this case, the service device 102 may be an interface board LPU, a cross board, or the like.
The control device 103 and the service device 102 may have a connection relationship therebetween, which may include a direct connection and an indirect connection. Specifically, if the control device 103 and the service device 102 can directly communicate, it may be considered that the control device 103 and the service device 102 are directly connected, and if the control device 103 and the service device 102 cannot directly communicate, and can realize communication through other devices, it may be considered that the control device 103 and the service device 102 are indirectly connected. For example, refer to fig. 2, which is a schematic diagram illustrating a connection relationship between a control device and a service device in an embodiment of the present application. The first control device and the second control device may be in direct communication with the first service device, the second service device, the third service device, and the fourth service device, respectively, and then the first control device and the second control device are in direct connection with the first service device, the second service device, the third service device, and the fourth service device, respectively, and the third control device may be in direct communication with the first control device and the second control device, then the third control device may be in communication with the first service device, the second service device, the third service device, and the fourth service device, respectively, through the first control device or the second control device, and then the third control device is in indirect connection with the first service device, the second service device, the third service device, and the fourth service device.
A plurality of control devices 103 may have a subordinate relationship therebetween, for example, in the same network device, there may be an active control device and a standby control device. In general, the active control device performs data processing and instruction issuing, and when the active control device fails, a standby control device may replace the active control device to perform data processing and instruction issuing. At this time, the standby control device is a slave device of the active control device.
The plurality of service devices 102 are usually in a parallel relationship, and respectively execute the instructions issued by the control device 103, taking an interface board as an example, different interface boards may connect different external devices, and the plurality of interface boards may be independent of each other.
As an example, referring to fig. 3, the network device includes 2 cluster central boxes (CCCs) and 8 cluster line-card boxes (CLC), where the cluster central boxes may manage the cluster line-card boxes and implement data exchange with the cluster line-card boxes. The cluster line card frame comprises 2 MPU boards and 16 LPU boards, wherein the 2 MPU boards are respectively a main control board of the cluster line card frame and a standby main control board of the cluster line card frame, and the 16 LPU boards are used as interface boards and are used for connecting external equipment; the cluster central frame also comprises 2 MPU boards and 8 ECU boards, wherein the 2 MPUs are respectively used as a main control board of the cluster central frame and a standby main control board of the cluster central frame, and the 8 ECUs are used as interface boards and are used for connecting external equipment comprising a cluster line card frame.
The address assigning apparatus 101 may be the control apparatus 103, or may be a processor other than the control apparatus 103 in the network apparatus. That is, the address assigning apparatus 101 may or may not be included in the plurality of control apparatuses 103. A Running Packet Manager (RPM) may be deployed on the address assignment device 101, and the address assignment device 101 may implement address assignment through the running packet manager.
The address assignment device 101 may be configured to assign corresponding first target devices to the service device 102 from the plurality of control devices 103, respectively, according to the attribute information of the plurality of control devices 103. The attribute information of the control device 103 may include at least one of a connection relationship between the control device 103 and the service device 102, an affiliation relationship between the plurality of control devices 103, a number of currently occupied resources of the plurality of control devices 103, and/or a number of currently idle resources.
For the connection relationship between the control device 103 and the service device 102 and the subordinate relationship between the plurality of control devices 103, reference may be made to the above description, which is not repeated herein.
The number of resources currently occupied by the plurality of control devices 103 refers to the number of unavailable resources of the current control device 103, and may be the number of resources occupied by the control device 103 sending a target file to the service device, the number of resources occupied by the control device 103 in the process of running a program, or the number of resources occupied under other conditions, which is not limited herein. The number of resources currently occupied by the control device 103 is related to the number of traffic devices communicating with the control device 103 and even to the number of other devices communicating with the control device 103. The number of resources currently occupied by the control device 103 may be represented by a bottom link message amount of the control device 103, or may be represented by a bandwidth occupation situation or a thread occupation situation of the control device 103.
The number of resources currently idle by the control device 103 refers to the number of available resources of the control device 103, and may be determined by the total number of resources of the control device 103 and the number of currently occupied resources. The characterization manner of the currently idle resource quantity of the control device 103 may be similar to the currently occupied resource quantity of the control device 103, for example, may be characterized by an achievable bottom-layer link message quantity and a used bottom-layer link message quantity of the control device 103, or may be characterized by a bandwidth idle condition or a thread idle condition of the control device 103. As an example, the total bandwidth of the control device 103 is 10M, the currently occupied bandwidth is 5M, and the currently idle bandwidth is 5M. As another example, a control device may have at most 10 threads to send a target file to 10 service devices in parallel, where 5 threads are currently occupied, and 5 threads are currently idle.
The specific process of allocating, by the address allocating apparatus 101, the corresponding first target apparatus to the service apparatus 102 from the plurality of control apparatuses 103 according to the attribute information of the plurality of control apparatuses 103 may be determined according to different attribute information.
As a possible implementation manner, if the attribute information of the multiple control devices 103 only includes the connection relationships between the multiple control devices 103 and the service devices 102, the address assignment device 101 may assign corresponding first target devices to the service devices 102 from the multiple control devices 103 according to the connection relationships between the multiple control devices 103 and the service devices 102. As a possible implementation manner, the address assignment device 101 may preferentially assign a control device with a closer connection relation to the service device 102 as a first target device corresponding to the service device 102, so as to simplify a communication path between the service device 102 and the corresponding first target device and improve communication efficiency, for example, a control device directly connected to the service device 102 may be used as the first target device.
As another possible implementation manner, if the attribute information of the plurality of control devices 103 includes the dependencies between the plurality of control devices 103, the address assignment device 101 may assign the corresponding first target devices to the service device 102 from the plurality of control devices 103 according to the dependencies between the plurality of control devices 103. As a possible implementation manner, the address allocating device 101 may preferentially allocate the slave control device to the service device 102 as the first target device corresponding to the service device 102, because the slave control device is not generally used for processing other transactions, the occupied resource quantity is generally small, and the slave control device is taken as the first target device corresponding to the service device 102 to reduce the influence on the master control device due to the connection with the first target device, for example, the standby control device may be taken as the first target device corresponding to the service device 102.
As another possible implementation manner, if the attribute information of the plurality of control devices 103 includes the number of resources currently occupied by the plurality of control devices 103, the address allocation device 101 may allocate corresponding first target devices to the service device 102 from the plurality of control devices 103 according to the number of resources currently occupied by the plurality of control devices 103. For example, the address allocating device 101 may preferentially allocate a control device with a smaller number of currently occupied resources to the service device 102 as a first target device corresponding to the service device 102.
As another possible implementation manner, if the attribute information of the multiple control devices 103 includes the number of resources currently idle by the multiple control devices 103, the address assignment device 101 may assign, according to the number of resources currently idle by the multiple control devices 103, corresponding first target devices to the service device 102 from the multiple control devices 103, respectively. For example, the address allocating device 101 may preferentially allocate a control device with a larger number of currently idle resources to the service device 102, as the first target device corresponding to the service device 102.
Of course, the attribute information of the plurality of control devices 103 may also include: the connection relationship between the plurality of control devices 103 and the service device 102, and the subordinate relationship between the plurality of control devices 103. At this time, the address allocating device 101 allocates corresponding first target devices to the service device 102 from the plurality of control devices 103 according to the attribute information of the plurality of control devices 103, which may specifically be: the address assignment device 101 determines, from the plurality of control devices 103, a control device that is closer to the connection relationship with the service device 102 and is a standby control device as a first target device corresponding to the service device 102, and may determine, for example, a standby main control board directly connected to the service device 102 as the first target device corresponding to the service device 102.
Of course, the attribute information of the plurality of control devices 103 may also include: the connection relationship between the plurality of control devices 103 and the service device 102, and the number of resources currently occupied by the plurality of control devices 103. At this time, the address allocating device 101 allocates corresponding first target devices to the service device 102 from the plurality of control devices 103 according to the attribute information of the plurality of control devices 103, which may specifically be: the address allocating device 101 determines, from the multiple control devices 103, a control device that is closer to the connection relationship with the service device 102 and has a smaller number of currently occupied resources, as a first target device corresponding to the service device 102, for example, a standby main control board directly connected to the service device 102, which generally has a smaller number of occupied resources and has a closer connection relationship with the service device 102, and thus can be used as the first target device corresponding to the service device 102.
While combinations of multiple attribute information of the multiple control devices 103 are listed above, it is understood that in the embodiment of the present application, the attribute information of the multiple control devices 103 may further include other combinations of the above four attribute information, and the address assignment devices 101 may each determine based on the characteristics of each attribute information corresponding to each combination, which is not illustrated herein.
It should be noted that, in the embodiment of the present application, the first target devices to which at least two service devices 102 are allocated are different, that is, all the service devices 102 do not correspond to the same control device.
The address assignment device 101 may also perform acquisition of attribute information of the control device 103 before assigning the corresponding first target device to the service device 102. The attribute information of the plurality of control devices 103 is acquired, and specifically, the attribute information query request is sent to the plurality of control devices 103, and the respective attribute information sent by the plurality of control devices 103 is received. It can be understood that, if the attribute information is static information such as connection relationships between the plurality of control devices 103 and the plurality of service devices 102, or dependency relationships between the plurality of control devices 103, the attribute information of the plurality of control devices 103 may be obtained specifically as follows: the attribute information of the plurality of control devices 103 is stored in advance, and the attribute information of the plurality of control devices 103 is searched.
In this embodiment, before acquiring the attribute information of the plurality of control devices 103, an address assignment request sent by the service device 102 may also be received. Therefore, the attribute information of the plurality of control devices 103 may be specifically acquired as follows: attribute information of the plurality of control devices 103 is acquired in real time in response to an address assignment request sent by the service device 102.
The address allocating device 101 may further obtain the address of the control device 103 before allocating the corresponding first target device to the service device 102. The addresses of the plurality of control devices 103 may be physical addresses of the plurality of control devices 103 for enabling communication of the control devices 103 with other devices. Specifically, the address inquiry request may be transmitted to the plurality of control devices 103, and the respective addresses transmitted by the plurality of control devices 103 may be received, or the addresses of the plurality of control devices 103 may be stored in advance. The attribute information of the plurality of control devices 103 may be acquired specifically as follows: the addresses of the plurality of control devices 103 are acquired in real time in response to an address assignment request sent by the service device 102. For the purpose of acquiring the target file to the control device 103, the physical addresses of the plurality of control devices 103 include an address in which the target file is stored.
The address allocating device 101 may send the address of the corresponding first target device to the service device 102 after allocating the corresponding first target device to the service device 102. Specifically, the address of the first target device may be searched from the addresses of the plurality of control devices 103, and then the address of the first target device may be sent to the service device 102. It is understood that, if the address assignment device 101 is indirectly connected to the service device 102, the address assignment device 101 may receive, through another device directly connected to the service device 102, the address assignment request sent by the service device 102, and send the address of the corresponding first target device to the service device 102.
The service device 102 may be configured to, after receiving the address of the first target device sent by the address assignment device 101, obtain the target file stored in the first target device according to the corresponding address of the first target device.
As a possible target file obtaining manner, referring to fig. 4, the obtaining, by the service device, the target file stored in the first target device according to the address of the corresponding first target device may specifically be: (1) the service equipment sends a file acquisition request to the first target equipment according to the address of the first target equipment, wherein the file acquisition request comprises a file identifier of a target file; (2) and the first target equipment sends the corresponding target file to the service equipment according to the file identification of the target file in the file acquisition request.
As another possible target file obtaining manner, referring to fig. 5, the obtaining, by the service device, the target file stored in the first target device according to the address of the corresponding first target device may specifically be: (1) the service equipment sends a file list acquisition request to the first target equipment according to the address of the first target equipment; (2) the first target equipment sends a stored file list to the service equipment according to the file list acquisition request, wherein the file list carries file identification of the file stored by the first target equipment; (3) the service equipment determines a file identifier of a target file according to a file identifier carried in the file list and a file identifier stored by the service equipment, and sends a file acquisition request to the first target equipment, wherein the file acquisition request carries the file identifier of the target file; (4) and the first target equipment determines the target file according to the file identifier of the target file in the target file acquisition request and sends the corresponding target file to the service equipment.
In addition, in order to improve the accuracy of acquiring the target file, the service device 102 may be further configured to check the acquired target file after the target file is acquired. Specifically, the service device 102 may be deployed with a run-time package management local service (RPMLS). Through checking the target file, the availability of the target file can be determined, so that the available target file can be obtained in time when the target file is damaged, and the influence on the use of the target file by the service device due to the damaged target file obtained by the service device 102 is avoided.
Before verifying the target file, the service device 102 may be further configured to obtain a check code of the target file from the first target device, where the check code of the target file is used to detect whether the target file is in error during transmission. The check code may be a HASH (HASH) value, or may be in other forms, such as a digital signature or a message digest algorithm (MD) fifth version (MD5), and the like, which is not limited herein.
Correspondingly, the first target device is configured to send the check code of the target file to the service device 102, specifically, the first target device may send the check code of each file simultaneously when sending the file list to the service device, or the first target device may send the check code of each target file simultaneously when sending the target file to the service device 102, or the first target device may send the check code of the target file to the service device 102 separately.
After the target file and the check code thereof are obtained, the service device 102 may also be configured to check the target file according to the check code of the target file. Specifically, a check code of the target file may be generated according to the target file, and it is determined whether the check code acquired from the first target device is the same as the check code generated according to the target file, if the check code is the same, it indicates that the target file is acquired correctly, the check is passed, and if the check code is different, it indicates that the target file is acquired incorrectly, the check is not passed. For example, a first HASH value of the target file may be obtained from the first target device, and a second HASH value of the target file may be generated according to the obtained target file, where if the first HASH value and the second HASH value are different, it indicates that an error occurs in the target file during transmission.
When the service device 102 passes the verification of the target file, it indicates that the target file is available, and the service device 102 may execute a corresponding process according to the obtained target file.
When the service device 102 fails to verify the target file, it indicates that the target file is damaged, and at this time, the service device 102 is further configured to send an address redistribution request to the address distribution device 101, so that the address distribution device 101 performs redistribution on the control device 103 according to the address redistribution request.
Correspondingly, the address allocating device 101 is further configured to receive an address re-distribution request sent by the service device 102, match a corresponding second target device for the service device 102 from the control devices 103 except the first target device matched with the service device 102 according to the received address re-distribution request and attribute information of the plurality of control devices 103, and send an address of the second target device to the service device 102, so that the service device 102 obtains a target file stored in the second target device according to the address of the second target device. In a specific process, the address assignment device 101 may be referred to assign a corresponding first target device to the service device 102, and send an address of the first target device to the service device 102, so that the service device 102 obtains a target file stored in the first target device according to the address of the first target device.
For ease of understanding, the following describes the process of acquiring the object file with reference to a specific scenario. The service device 102 may take one of the interface boards as an example, the control device 103 may take a main control board as an example, the main control board includes a first main control board and a second main control board, and the address allocation device 101 is another device except the control device 103.
Referring to fig. 6, the process of acquiring the target file may specifically be:
(1) the interface board sends an address allocation request to the address allocation equipment;
(2) the address allocation equipment allocates a corresponding first main control board for the interface board from the plurality of main control boards according to the attribute information of the plurality of main control boards, and sends the address of the first main control board to the interface board;
(3) the interface board sends a file list acquisition request to the first main control board;
(4) the first main control board sends a file list stored by the first main control board to the interface board;
(5) the interface board determines a target file from the file list and sends a target file acquisition request to the first main control board, wherein the target file acquisition request comprises an identifier of the target file;
(6) the first main control board sends a first target file and a check code of the first target file to the interface board according to the target file acquisition request;
(7) the interface board checks the first target file, starts or updates according to the first target file when the first target file passes the check, and ends the target file acquisition process; when the verification fails, executing the step (8);
(8) sending an address redistribution request to the address distribution equipment;
(9) the address redistribution equipment determines a second main control board corresponding to the interface board from other main control boards except the first main control board according to the attribute information of the plurality of main control boards, and sends the address of the second main control board to the interface board;
(10) the interface board sends a file list acquisition request to the second main control board;
(11) the second main control board sends a file list to the interface board;
(12) the interface board determines a target file from the file list and sends a target file acquisition request to the second main control board, wherein the target file acquisition request comprises an identifier of the target file;
(13) the second main control board sends a second target file and a check code of the second target file to the interface board according to the target file acquisition request;
(14) the interface board checks the second target file, starts or updates according to the second target file when the second target file passes the check, and ends the target file acquisition process; and (5) when the verification fails, referring to the step (8), allocating a third main control board for the interface board.
In actual operation, the priority of the first target device may also be determined, and when the first target file of the optimal first target device is damaged, the suboptimal first target device is used as the second target device, and the address of the second target device is sent to the service device. As an example, the priority may be: in the same way, when the target file stored in the second target device is damaged, the standby control device indirectly connected with the service device can be used as a third target device, or when the target file stored in the third target device is damaged, the main control device indirectly connected with the service device can be used as a fourth target device.
When the service equipment fails to verify the target file, the file stored in the control equipment for acquiring the target file can be detected, the control equipment is subjected to fault marking, and the control equipment with the fault marking is not redistributed when the corresponding control equipment is subsequently distributed to the service equipment.
For the control device with the fault flag, the storage file may be repaired or retrieved, and specifically, the control device may be restarted, so as to update the storage file in the control device. After the update of the storage file, the failure flag of the control device may be deleted. When the stored target files of all the control devices have a failure, all the control devices may be restarted so as to update the stored files in the control devices.
In the control system provided by the embodiment of the application, the service device can acquire the target file from the plurality of control devices, so that the target file is simultaneously provided by the plurality of control devices under the condition that the capability of the control devices for processing data in parallel is limited, and the acquisition efficiency of the target file is improved. Specifically, the address allocation device may allocate corresponding first target devices to the service devices according to the attribute information of the plurality of control devices, where the first target devices allocated to at least two service devices are different, and the service devices may obtain the target file from the corresponding first target devices. Compared with the prior art in which all the service devices acquire the target file from the same control device, in the control system provided in the embodiment of the present application, the target file is provided for a plurality of service devices through a plurality of control devices at the same time, and under the condition that the capability of the control devices for processing data in parallel is limited, the service devices can acquire the target file through other control devices, so that the waiting time of the service devices is reduced, and the efficiency of the service devices for acquiring the target file is improved.
Based on the control system provided by the embodiment of the application, the embodiment of the application also provides a control mode, and the specific implementation process can refer to the control system. The execution main body of the control method provided by the embodiment of the application is the address allocation device, which may be one of the plurality of control devices, or may be another processing device independent of the plurality of control devices.
Referring to fig. 7, a flowchart of a control method provided in an embodiment of the present application may include the following steps.
S101, acquiring addresses and attribute information of a plurality of control devices.
The control device may be a device for data processing and instruction issuing in a network device, for example, a processor in a network device such as a computer, a switch, a router, a gateway, and the like, and specifically, may be a central processing unit or a microprocessor. The control device may be in the form of an integrated circuit, in which case the control device may be a main control board.
The service device is a device that executes an instruction issued by the control device, and may be, for example, an interface device for connecting with an external device, or the service device may exist in the form of an integrated circuit, in this case, the service device may be an interface board, such as an LPU board, an electrical cross board (ECU), and the like.
The attribute information of the control device may include at least one of a connection relationship between the control device and the service device, an affiliation relationship between the plurality of control devices, a number of resources currently occupied by the plurality of control devices, and a number of resources currently free.
Specifically, the connection relationship between the control device and the service device may include a direct connection and an indirect connection. If the control device and the service device can directly communicate, the control device and the service device can be considered to be directly connected, and if the control device and the service device cannot directly communicate, the control device and the service device can be considered to be indirectly connected, and if the control device and the service device can not directly communicate, the communication can be realized through other devices.
Specifically, in the same network device, the standby control device is a slave device of the active control device.
The number of resources currently occupied by the plurality of control devices refers to the number of unavailable resources of the current control devices, and may be the number of resources occupied by the control devices sending the target files to the service devices, the number of resources occupied by the control devices in the process of running the program, or the number of resources occupied under other conditions. The number of the currently occupied resources of the plurality of control devices can be represented by the message quantity of the bottom link of the control devices, and can also be represented by the bandwidth occupation condition or the thread occupation condition of the control devices.
The number of the currently idle resources of the control device refers to the number of the currently available resources of the control device, and may be determined by the total number of the resources of the control device and the number of the currently occupied resources, and may be characterized by the bottom link message amount of the control device, or may be characterized by the bandwidth idle condition or the thread idle condition of the control device.
In this embodiment of the present application, before acquiring attribute information of a plurality of control devices, an address assignment request sent by a service device may also be received. Therefore, the obtaining of the addresses and the attribute information of the plurality of control devices may specifically be: and responding to an address allocation request sent by the service equipment, and acquiring the addresses and attribute information of the plurality of control equipment in real time.
S102, according to the attribute information of the plurality of control devices, corresponding first target devices are respectively allocated to the service devices from the plurality of control devices, and addresses of the corresponding first target devices are sent to the service devices.
According to the attribute information of the plurality of control devices, the specific process of respectively allocating the corresponding first target device to the service device from the plurality of control devices can be determined according to different attribute information. In particular, reference may be made to the allocation process in the control system.
It should be noted that, in the embodiment of the present application, the first target devices to which at least two service devices are allocated are different, that is, all the service devices do not correspond to the same control device.
After the corresponding first target device is allocated to the service device, an address of the corresponding first target device may be sent to the service device. Specifically, the address of the first target device may be searched from the addresses of the plurality of control devices, and then the address of the first target device may be sent to the service device.
After the service device receives the address of the first target device sent by the address allocation device, the target file stored in the first target device may be acquired according to the corresponding address of the first target device.
In addition, in order to improve the accuracy of obtaining the target file, after the service device obtains the target file, the obtained target file may be checked, specifically, the check may be performed by a function module arranged in the service device, for example, a local service (RPMLS) for operating packet management.
Specifically, when the service device acquires the target file from the first target device, the service device may simultaneously acquire the check code of the target file from the first target device, and check the target file according to the check code of the target file.
When the service device passes the verification of the target file, the target file is indicated to be available, and the service device can be started or updated according to the obtained target file.
When the service equipment does not pass the verification of the target file, the target file is damaged, and at this time, an address redistribution request can be sent to the address distribution equipment, so that the address distribution equipment redistributes the control equipment according to the address redistribution request. Specifically, the address allocating device receives an address re-allocating request sent by the service device, and may match a corresponding second target device for the service device from the control devices except the first target device matched with the service device according to the received address re-allocating request and attribute information of the plurality of control devices, and send an address of the second target device to the service device, so that the service device obtains a target file stored in the second target device according to the address of the second target device. The specific process may refer to a process of allocating a corresponding first target device to the service device, and sending an address of the first target device to the service device, so that the service device obtains the target file stored in the first target device according to the address of the first target device.
When the service equipment fails to verify the target file, the file stored in the control equipment for acquiring the target file can be detected, the control equipment is subjected to fault marking, and the control equipment with the fault marking is not redistributed in the distribution process of the control equipment corresponding to the subsequent service equipment.
In the control method provided by the embodiment of the application, the service device can acquire the target file from the plurality of control devices, so that the target file is simultaneously provided by the plurality of control devices under the condition that the capability of the control devices for processing data in parallel is limited, and the acquisition efficiency of the target file is improved. Specifically, the corresponding first target devices may be allocated to the service devices according to the attribute information of the plurality of control devices, where the first target devices allocated to at least two service devices are different, and the service devices may obtain the target file from the corresponding first target devices. Compared with the prior art in which all the service devices acquire the target file from the same control device, in the control method provided in the embodiment of the present application, the target file is provided for a plurality of service devices through a plurality of control devices at the same time, and under the condition that the capability of the control devices for processing data in parallel is limited, the service devices can acquire the target file through other control devices, so that the waiting time of the service devices is reduced, and the efficiency of the service devices for acquiring the target file is improved.
In order to better implement the above-mentioned aspects of the embodiments of the present application, the following also provides related devices for implementing the above-mentioned aspects.
Referring to fig. 8, a control device 800 provided in the present embodiment specifically corresponds to the functions of the control method provided above. The functions may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the above functions, and the units may be software and/or hardware. The apparatus 800 may include:
an information acquisition unit 801 for acquiring addresses and attribute information of a plurality of control apparatuses;
a first target device allocating unit 802, configured to allocate, according to the attribute information of the multiple control devices, corresponding first target devices to service devices from the multiple control devices, respectively, and send addresses of the corresponding first target devices to the service devices, so that the service devices obtain target files stored in the first target devices according to the addresses of the corresponding first target devices, where at least two of the first target devices allocated to the service devices are different.
In some possible embodiments, the attribute information includes connection relationships between the plurality of control devices and the plurality of business devices, and the connection relationships include direct connections and indirect connections.
In some possible embodiments, the attribute information includes a membership between the plurality of control devices.
In some possible embodiments, the attribute information includes a number of resources currently occupied and/or a number of resources currently free by the plurality of control devices.
In some possible embodiments, the information obtaining unit is specifically configured to:
and responding to the address allocation request sent by the service equipment, and acquiring the addresses and attribute information of the plurality of control equipment in real time.
In some possible embodiments, the apparatus further comprises:
the request receiving unit is used for receiving an address redistribution request sent by the service equipment;
and the second target equipment allocation unit is used for matching corresponding second target equipment for the service equipment from the control equipment except the first target equipment matched with the service equipment according to the address redistribution request and the attribute information, and sending the address of the second target equipment to the service equipment so that the service equipment can obtain a target file stored in the second target equipment according to the address of the second target equipment.
In some possible embodiments, the control device includes a control board, and the service device includes an interface board.
In the control apparatus provided in the embodiment of the present application, the service device may acquire the target file from the plurality of control devices, so that the target file is provided by the plurality of control devices simultaneously under the condition that the capability of the control devices for processing data in parallel is limited, so as to improve the efficiency of acquiring the target file. Specifically, the corresponding first target devices may be allocated to the service devices according to the attribute information of the plurality of control devices, where the first target devices allocated to at least two service devices are different, and the service devices may obtain the target file from the corresponding first target devices. Compared with the prior art in which all the service devices acquire the target file from the same control device, in the control device provided in the embodiment of the present application, the target file is provided for a plurality of service devices through a plurality of control devices at the same time, and under the condition that the capability of the control devices for processing data in parallel is limited, the service devices can acquire the target file through other control devices, so that the waiting time of the service devices is reduced, and the efficiency of the service devices for acquiring the target file is improved.
Next, a control apparatus in the embodiment of the present application will be described. Referring to fig. 9, the control apparatus 900 includes:
a receiver 901, a transmitter 902, a processor 903 and a memory 904 (wherein the number of processors 903 in the device 900 for generating a message may be one or more, and one processor is taken as an example in fig. 9). In some embodiments of the present application, the receiver 901, the transmitter 902, the processor 903 and the memory 904 may be connected by a bus or other means, wherein fig. 9 exemplifies connection by a bus.
The memory 904 may include both read-only memory and random-access memory, and provides instructions and data to the processor 903. A portion of the memory 904 may also include NVRAM. The memory 904 stores an operating system and operating instructions, executable modules or data structures, or a subset or an expanded set thereof, wherein the operating instructions may include various operating instructions for performing various operations. The operating system may include various system programs for implementing various basic services and for handling hardware-based tasks.
The processor 903 controls the operation of the terminal device, and the processor 903 may also be referred to as a CPU. In a specific application, the components of the device for generating messages are coupled together by a bus system, wherein the bus system may include a power bus, a control bus, a status signal bus, and the like, in addition to a data bus. For clarity of illustration, the various buses are referred to in the figures as a bus system.
The method disclosed in the embodiments of the present application may be applied to the processor 903, or implemented by the processor 903. The processor 903 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 903. The processor 903 may be a general purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 904, and the processor 903 reads information in the memory 904 and performs the steps of the above method in combination with hardware thereof.
The receiver 901 may be used to receive input numeric or character information and generate signal inputs related to the relevant settings and function controls of the user plane device, the transmitter 902 may include a display device such as a display screen, and the transmitter 902 may be used to output numeric or character information through an external interface.
In the embodiment of the present application, the receiver 901 and the transmitter 902 are used to implement data transceiving. And the processor 903 is used for realizing data transceiving through the receiver 901 and the transmitter 902 and completing the control process executed by the control device.
The embodiment of the present application further provides a computer-readable storage medium for storing a program code, where the program code is used to execute any one implementation of a control method in the foregoing embodiments.
The present application further provides a computer program product including instructions, which when run on a computer, cause the computer to execute any one implementation of a control method of the foregoing embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (16)
1. A control system comprising an address assigning device, a plurality of service devices and a plurality of control devices; the control equipment comprises a control panel, and the business equipment comprises an interface board;
the address allocation device is configured to allocate, according to the attribute information of the plurality of control devices, corresponding first target devices to service devices from the plurality of control devices, respectively, and send addresses of the corresponding first target devices to the service devices, where the first target devices allocated to at least two of the service devices are different;
the service device is used for acquiring a target file stored in the first target device according to the address of the first target device;
the attribute information includes at least one of:
the connection relation between the plurality of control devices and the plurality of service devices, the affiliation relation between the plurality of control devices, the number of resources currently occupied by the plurality of control devices, and the number of resources currently idle by the plurality of control devices; wherein the connection relationship includes a direct connection and an indirect connection.
2. The system of claim 1,
the first target device is configured to send a check code of the target file to the service device;
and the service equipment is also used for verifying the target file according to the verification code of the target file.
3. The system of claim 2,
the service equipment is also used for sending an address redistribution request to the address distribution equipment when the target file fails to be verified;
the address allocation device is also used for receiving an address redistribution request sent by the service device; and matching corresponding second target equipment for the service equipment from the control equipment except the first target equipment matched with the service equipment according to the address redistribution request and the attribute information, and sending the address of the second target equipment to the service equipment so that the service equipment can obtain a target file stored in the second target equipment according to the address of the second target equipment.
4. The system according to any one of claims 1 to 3,
the service device is specifically configured to send a file list acquisition request to the first target device according to the address of the first target device;
the first target device is specifically configured to send a corresponding file list to the service device according to the file list acquisition request, where the file list carries a file identifier of a file stored by the first target device;
the service device is further specifically configured to determine a file identifier of a target file according to a file identifier carried in the file list and a file identifier of a file stored by the service device, and send a file acquisition request to the first target device, where the file acquisition request carries the file identifier of the target file;
the first target device is further specifically configured to determine the target file from files stored in the first target device according to the file identifier of the target file, and send the target file to the service device.
5. A control system comprising a plurality of service devices and a plurality of control devices, said plurality of control devices including an address assignment device; the control equipment comprises a control panel, and the business equipment comprises an interface board;
the address allocation device is configured to allocate, according to the attribute information of the plurality of control devices, corresponding first target devices to service devices from the plurality of control devices, respectively, and send addresses of the corresponding first target devices to the service devices, where the first target devices allocated to at least two of the service devices are different;
the service device is used for acquiring a target file stored in the first target device according to the address of the first target device;
the attribute information includes at least one of:
the connection relation between the plurality of control devices and the plurality of service devices, the affiliation relation between the plurality of control devices, the number of resources currently occupied by the plurality of control devices, and the number of resources currently idle by the plurality of control devices; wherein the connection relationship includes a direct connection and an indirect connection.
6. The system of claim 5,
the first target device is configured to send a check code of the target file to the service device;
and the service equipment is also used for verifying the target file according to the verification code of the target file.
7. The system of claim 6,
the service equipment is also used for sending an address redistribution request to the address distribution equipment when the target file fails to be verified;
the address allocation device is also used for receiving an address redistribution request sent by the service device; and matching corresponding second target equipment for the service equipment from the control equipment except the first target equipment matched with the service equipment according to the address redistribution request and the attribute information, and sending the address of the second target equipment to the service equipment so that the service equipment can obtain a target file stored in the second target equipment according to the address of the second target equipment.
8. The system according to any one of claims 5 to 7,
the service device is specifically configured to send a file list acquisition request to the first target device according to the address of the first target device;
the first target device is specifically configured to send a corresponding file list to the service device according to the file list acquisition request, where the file list carries a file identifier of a file stored by the first target device;
the service device is further specifically configured to determine a file identifier of a target file according to a file identifier carried in the file list and a file identifier of a file stored by the service device, and send a file acquisition request to the first target device, where the file acquisition request carries the file identifier of the target file;
the first target device is further specifically configured to determine the target file from files stored in the first target device according to the file identifier of the target file, and send the target file to the service device.
9. A control method, characterized in that the method comprises:
acquiring addresses and attribute information of a plurality of control devices;
according to the attribute information of the plurality of control devices, respectively allocating corresponding first target devices to service devices from the plurality of control devices, and sending addresses of the corresponding first target devices to the service devices, so that the service devices can acquire target files stored in the first target devices according to the addresses of the corresponding first target devices, wherein the allocated first target devices of at least two service devices are different; the control equipment comprises a control panel, and the business equipment comprises an interface board;
the attribute information includes at least one of:
the connection relation between the plurality of control devices and the plurality of service devices, the affiliation relation between the plurality of control devices, the number of resources currently occupied by the plurality of control devices, and the number of resources currently idle by the plurality of control devices; wherein the connection relationship includes a direct connection and an indirect connection.
10. The method of claim 9, wherein the obtaining address and attribute information for a plurality of control devices comprises:
and responding to the address allocation request sent by the service equipment, and acquiring the addresses and attribute information of the plurality of control equipment in real time.
11. The method according to claim 9 or 10, characterized in that the method further comprises:
receiving an address redistribution request sent by service equipment;
and matching corresponding second target equipment for the service equipment from the control equipment except the first target equipment matched with the service equipment according to the address redistribution request and the attribute information, and sending the address of the second target equipment to the service equipment so that the service equipment can obtain a target file stored in the second target equipment according to the address of the second target equipment.
12. A control device, characterized in that the device comprises:
an information acquisition unit configured to acquire addresses and attribute information of a plurality of control apparatuses;
a first target device allocating unit, configured to allocate, according to attribute information of the multiple control devices, corresponding first target devices to service devices from the multiple control devices, respectively, and send addresses of the corresponding first target devices to the service devices, so that the service devices obtain target files stored in the first target devices according to the addresses of the corresponding first target devices, where at least two of the first target devices allocated to the service devices are different; the control equipment comprises a control panel, and the business equipment comprises an interface board;
the attribute information includes at least one of:
the connection relation between the plurality of control devices and the plurality of service devices, the affiliation relation between the plurality of control devices, the number of resources currently occupied by the plurality of control devices, and the number of resources currently idle by the plurality of control devices; wherein the connection relationship includes a direct connection and an indirect connection.
13. The apparatus according to claim 12, wherein the information obtaining unit is specifically configured to:
and responding to the address allocation request sent by the service equipment, and acquiring the addresses and attribute information of the plurality of control equipment in real time.
14. The apparatus of claim 12 or 13, further comprising:
the request receiving unit is used for receiving an address redistribution request sent by the service equipment;
and the second target equipment allocation unit is used for matching corresponding second target equipment for the service equipment from the control equipment except the first target equipment matched with the service equipment according to the address redistribution request and the attribute information, and sending the address of the second target equipment to the service equipment so that the service equipment can obtain a target file stored in the second target equipment according to the address of the second target equipment.
15. A control apparatus, characterized in that the apparatus comprises: a processor and a memory;
the memory to store instructions;
the processor, configured to execute the instructions in the memory, to perform the method according to any one of claims 9 to 11.
16. A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 9 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810844294.4A CN109120680B (en) | 2018-07-27 | 2018-07-27 | Control system, method and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810844294.4A CN109120680B (en) | 2018-07-27 | 2018-07-27 | Control system, method and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109120680A CN109120680A (en) | 2019-01-01 |
CN109120680B true CN109120680B (en) | 2022-01-14 |
Family
ID=64862346
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810844294.4A Active CN109120680B (en) | 2018-07-27 | 2018-07-27 | Control system, method and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109120680B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111913838B (en) * | 2019-05-07 | 2024-07-02 | 杭州海康威视数字技术股份有限公司 | Analysis node starting method and device, electronic equipment and storage medium |
CN111367220B (en) * | 2020-03-23 | 2021-07-23 | 中国建设银行股份有限公司 | Internet of things equipment control method and device |
CN113835613B (en) * | 2020-06-24 | 2024-03-29 | 浙江宇视科技有限公司 | File reading method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1870599A (en) * | 2006-06-22 | 2006-11-29 | 杭州华为三康技术有限公司 | Method, device and application of processing program loading require in distribution system |
CN1873613A (en) * | 2005-05-30 | 2006-12-06 | 英业达股份有限公司 | Load balanced system and method of preloading files |
JP2009184471A (en) * | 2008-02-05 | 2009-08-20 | Toyota Motor Corp | Vehicle control device |
CN101605051A (en) * | 2009-07-16 | 2009-12-16 | 杭州华三通信技术有限公司 | A kind of main and standby rearranging method and device of realizing business on the control board |
CN108093442A (en) * | 2017-12-25 | 2018-05-29 | 新华三技术有限公司 | A kind of message forwarding method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101631075A (en) * | 2009-08-19 | 2010-01-20 | 杭州华三通信技术有限公司 | Method for processing message and device thereof |
US8493981B2 (en) * | 2010-11-03 | 2013-07-23 | Broadcom Corporation | Switch module |
WO2017142994A1 (en) * | 2016-02-16 | 2017-08-24 | Crynamt Management Llc | Enhance communication of network traffic |
-
2018
- 2018-07-27 CN CN201810844294.4A patent/CN109120680B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1873613A (en) * | 2005-05-30 | 2006-12-06 | 英业达股份有限公司 | Load balanced system and method of preloading files |
CN1870599A (en) * | 2006-06-22 | 2006-11-29 | 杭州华为三康技术有限公司 | Method, device and application of processing program loading require in distribution system |
JP2009184471A (en) * | 2008-02-05 | 2009-08-20 | Toyota Motor Corp | Vehicle control device |
CN101605051A (en) * | 2009-07-16 | 2009-12-16 | 杭州华三通信技术有限公司 | A kind of main and standby rearranging method and device of realizing business on the control board |
CN108093442A (en) * | 2017-12-25 | 2018-05-29 | 新华三技术有限公司 | A kind of message forwarding method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109120680A (en) | 2019-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108549580B (en) | Method for automatically deploying Kubernets slave nodes and terminal equipment | |
CN108462760B (en) | Electronic device, automatic cluster access domain name generation method and storage medium | |
CN109922158A (en) | Data processing method, device, medium and electronic equipment based on micro services | |
EP3291499A1 (en) | Method and apparatus for network service capacity expansion | |
CN110908770A (en) | Operation and creation method of virtual machine, virtual machine and virtual machine management platform | |
CN109120680B (en) | Control system, method and related equipment | |
CN109375933B (en) | Method and equipment for upgrading client | |
EP3879875A1 (en) | Resource change method and device, apparatus, and storage medium | |
CN110990110A (en) | Virtual machine creation method and device based on Sriov network card | |
US11442756B2 (en) | Common service resource application method, related device, and system | |
CN115080479B (en) | Transmission method, server, device, bare metal instance and baseboard management controller | |
US20060010133A1 (en) | Management of a scalable computer system | |
CN111459676A (en) | Node resource management method, device and storage medium | |
CN114979286A (en) | Access control method, device and equipment for container service and computer storage medium | |
CN112653576B (en) | Network card identification processing method, system, terminal and storage medium based on Kylin system | |
CN110928679B (en) | Resource allocation method and device | |
WO2021120754A1 (en) | Instruction writing method and apparatus, and network device | |
CN117453357A (en) | Node task scheduling method, device, computer equipment and storage medium | |
CN109614242B (en) | Computing capacity sharing method, device, equipment and medium | |
CN116743762A (en) | Service registration cluster flow switching method, flow switching device and storage medium | |
CN114070889B (en) | Configuration method, traffic forwarding device, storage medium, and program product | |
CN115454896A (en) | SMBUS-based SSD MCTP control message verification method and device, computer equipment and storage medium | |
CN115150268A (en) | Network configuration method and device of Kubernetes cluster and electronic equipment | |
CN110058866B (en) | Cluster component installation method and device | |
CN113596123A (en) | Software downloading method, communication device and storage medium |
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 |