CN112181930A - File management method and device of virtual switching matrix - Google Patents

File management method and device of virtual switching matrix Download PDF

Info

Publication number
CN112181930A
CN112181930A CN202011047796.8A CN202011047796A CN112181930A CN 112181930 A CN112181930 A CN 112181930A CN 202011047796 A CN202011047796 A CN 202011047796A CN 112181930 A CN112181930 A CN 112181930A
Authority
CN
China
Prior art keywords
control board
main control
frame main
target file
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011047796.8A
Other languages
Chinese (zh)
Other versions
CN112181930B (en
Inventor
李俊辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202011047796.8A priority Critical patent/CN112181930B/en
Publication of CN112181930A publication Critical patent/CN112181930A/en
Application granted granted Critical
Publication of CN112181930B publication Critical patent/CN112181930B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1873Versioning file systems, temporal file systems, e.g. file system supporting different historic versions of files

Abstract

The disclosure relates to a file management method and device for a virtual switch matrix, an electronic device and a computer readable medium. The method comprises the following steps: the main frame main control board downloads a target file; the main frame main control board and the standby frame main control board carry out command synchronization so that the standby frame main control board downloads the target file; the main frame main control board and the standby frame main control board traverse the service boards under the frame and send the target file to the corresponding service boards; the service board checks the target file and generates return information according to a check result; and the main frame main control board generates a management result of the target file based on the return information. The method and the device can obtain the version downloading results of all the frames in the virtual switching matrix environment, avoid the condition that the version downloading of the standby frame fails and the user cannot know the version downloading of the standby frame, and enrich the page prompt information, so that the user can timely know the error reason of the version downloading failure and solve the problem.

Description

File management method and device of virtual switching matrix
Technical Field
The present disclosure relates to the field of computer information processing, and in particular, to a file management method and apparatus for a virtual switch matrix, an electronic device, and a computer-readable medium.
Background
Version management is one of the most frequently used functions in the operation of the device, and when the software version function operated by the current device needs to be upgraded or has a functional defect, the version in the device needs to be replaced. At this time, for device security, the process of downloading versions needs to be managed, and thus version management is generated.
During the course of version downloading, the following situations often occur:
1. version downloading fails due to network failure;
2. the version download fails due to the fact that the downloaded version file is invalid;
3. version download fails due to insufficient device space.
In a VSM (Virtual Switch Matrix) frame device, the frame device needs to consider the difference between a main control board and a service board, while the VSM environment needs to consider the difference between different frames, and for the VSM frame device, there is no method for performing file management on the VSM frame device.
The above information disclosed in this background section is only for enhancement of understanding of the background of the disclosure and therefore it may contain information that does not constitute prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of this, the present disclosure provides a file management method and apparatus for a virtual switch matrix, an electronic device, and a computer readable medium, which can obtain version download results of all frames in a virtual switch matrix environment, avoid a situation that a user cannot know about a version download failure of a standby frame, and enrich page prompt information, so that the user can timely know about an error reason of the version download failure, and aim at solving the problem.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to an aspect of the present disclosure, a file management method for a virtual switch matrix is provided, which may be used for the virtual switch matrix, where the virtual switch matrix system includes a plurality of frame devices, each frame device includes a main control board and a plurality of service boards, and the method includes: the main frame main control board downloads a target file; the main frame main control board and the standby frame main control board carry out command synchronization so that the standby frame main control board downloads the target file; the main frame main control board and the standby frame main control board traverse the service boards under the frame and send the target file to the corresponding service boards; the service board checks the target file and generates return information according to a check result; and the main frame main control board generates a management result of the target file based on the return information.
In an exemplary embodiment of the present disclosure, before the main frame main control board downloads the target file, the method further includes: the main frame main control board acquires file information of the target file; and judging whether the file information meets a preset condition or not, and generating error warning information when the file information does not meet the preset condition.
In an exemplary embodiment of the present disclosure, before the main frame main control board downloads the target file, the method further includes: judging whether the residual space of all service boards in the virtual switching matrix is larger than the capacity of the target file or not based on the file information; and generating error warning information when the residual space of the service board is smaller than the capacity of the target file.
In an exemplary embodiment of the present disclosure, the traversing, by the main frame main control board and the standby frame main control board, the service boards under the frame and sending the target file to the corresponding service boards includes: the main frame main control board and the standby frame main control board traverse the service boards under the frame; and when the type of the service board is consistent with the target file, the main frame main control board and the standby frame main control board send the target file to the corresponding service board.
In an exemplary embodiment of the present disclosure, the sending, by the main frame main control board and the standby frame main control board, the object file to the corresponding service board includes: the main frame main control board, the standby frame main control board and the service board establish socket communication; the main frame main control board and the standby frame main control board transmit the target file to corresponding business boards based on the socket communication;
in an exemplary embodiment of the present disclosure, the establishing, by the main frame main control board and the standby frame main control board, socket communication with the service board further includes: and the main frame main control board and the standby frame main control board generate error warning information when the socket communication established between the main frame main control board and the standby frame main control board corresponding to the main frame main control board fails.
In an exemplary embodiment of the present disclosure, the verifying the target file and generating the return information according to the verification result by the service board includes: the service board carries out version verification, integrity verification and type verification on the target file; and when the verification is inconsistent, generating error warning information and sending the error warning information to the main frame main control board and the standby frame main control board.
In an exemplary embodiment of the present disclosure, the generating, by the main frame main control board, a management result of the target file based on the return information includes: when the main frame main control board receives the version invalid information from the service board, storing the version invalid information and continuing downloading operation; and the main frame main control board stops downloading operation when receiving the insufficient space information from the service board.
In an exemplary embodiment of the present disclosure, the generating, by the main frame main control board, a management result of the target file based on the return information includes: and when the main frame main control board receives a successful downloading message or an invalid version message from the service board, sending a command to the standby frame main control board to obtain the return message of the service board under the standby frame main control board.
According to an aspect of the present disclosure, a file management apparatus for a virtual switch matrix is provided, which may be used for the virtual switch matrix, where the virtual switch matrix system includes a plurality of frame devices, each frame device includes a main control board and a plurality of service boards, and the apparatus includes: the downloading module is used for downloading the target file by the main frame main control board; the synchronization module is used for carrying out command synchronization on the main frame main control board and the standby frame main control board so as to enable the standby frame main control board to download the target file; the sending module is used for traversing the service boards under the main frame main control board and the standby frame main control board and sending the target file to the corresponding service boards; the information module is used for verifying the target file by the service board and generating return information according to a verification result; and the management module is used for generating a management result of the target file by the main frame main control board based on the return information.
In an exemplary embodiment of the present disclosure, further comprising: the condition judgment module is used for acquiring the file information of the target file by the main frame main control board; and judging whether the file information meets a preset condition or not, and generating error warning information when the file information does not meet the preset condition.
In an exemplary embodiment of the present disclosure, further comprising: a capacity judging module, configured to judge whether remaining spaces of all service boards in the virtual switch matrix are greater than a capacity of the target file based on the file information; and generating error warning information when the residual space of the service board is smaller than the capacity of the target file.
According to an aspect of the present disclosure, an electronic device is provided, the electronic device including: one or more processors; storage means for storing one or more programs; when executed by one or more processors, cause the one or more processors to implement a method as above.
According to an aspect of the disclosure, a computer-readable medium is proposed, on which a computer program is stored, which program, when being executed by a processor, carries out the method as above.
According to the file management method and device of the virtual switching matrix, the electronic equipment and the computer readable medium, the main frame main control board downloads the target file; the main frame main control board and the standby frame main control board carry out command synchronization so that the standby frame main control board downloads the target file; the main frame main control board and the standby frame main control board traverse the service boards under the frame and send the target file to the corresponding service boards; the service board checks the target file and generates return information according to a check result; the main frame main control board can obtain version downloading results of all frames in the virtual switching matrix environment based on the mode of generating the management results of the target files by the returned information, avoids the situation that the version downloading of the standby frames fails and a user cannot know the version downloading of the standby frames, and enriches page prompt information simultaneously, so that the user can timely know error reasons of the version downloading failures and can solve the problem.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are merely some embodiments of the present disclosure, and other drawings may be derived from those drawings by those of ordinary skill in the art without inventive effort.
Fig. 1 is a system block diagram illustrating a file management method and apparatus for a virtual switch matrix according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a file management method of a virtual switch fabric according to an example embodiment.
Fig. 3 is a flowchart illustrating a file management method of a virtual switch fabric according to another exemplary embodiment.
Fig. 4 is a flowchart illustrating a file management method of a virtual switch fabric according to another exemplary embodiment.
Fig. 5 is a block diagram illustrating a file management apparatus of a virtual switch fabric according to an example embodiment.
Fig. 6 is a block diagram illustrating a file management apparatus of a virtual switch fabric according to another exemplary embodiment.
FIG. 7 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 8 is a block diagram illustrating a computer-readable medium in accordance with an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another. Thus, a first component discussed below may be termed a second component without departing from the teachings of the disclosed concept. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
It is to be understood by those skilled in the art that the drawings are merely schematic representations of exemplary embodiments, and that the blocks or processes shown in the drawings are not necessarily required to practice the present disclosure and are, therefore, not intended to limit the scope of the present disclosure.
Fig. 1 is a system block diagram illustrating a file management method, apparatus, electronic device and computer-readable medium for a virtual switch matrix according to an example embodiment.
As shown in fig. 1, the system architecture 10 of the virtual switch matrix may include a main frame main control board 101, main frame service boards 102, 103, a plurality of standby frame main control boards 105, 106, and a plurality of standby frame service boards 107, 108, 109, 110. A network device may also be included to provide a medium for communication links between the main frame master control board 101, the main frame service boards 102, 103, the plurality of spare frame master control boards 105, 106, and the plurality of spare frame service boards 107, 108, 109, 110. The network devices may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The virtual switching matrix is a novel network device virtualization technology for virtualizing a plurality of network devices into one network device. In the prior art, operations such as device management and configuration in the frame device are performed on a main control, and the same is true for version downloading: firstly, acquiring version file information, and judging file names and equipment spaces; acquiring a service board version file to a master control temporary directory; establishing socket communication with the service board, and telling the service board that version file information needs to be prepared for receiving; sending the version file to a service board; the service board checks the version file to prevent the file from being damaged; the switching and deleting of the version files are operated on the main control, and then the main control informs the service board through socket communication, and the service board completes corresponding operation.
Since the downloading of versions between different frames is performed in a command synchronization manner in the VSM environment, that is, the main frame main control board 101 only knows the downloading status of the main frame itself, and does not know the downloading status of the versions of the plurality of standby frame main control boards 105 and 106 and the plurality of standby frame business boards 107, 108, 109 and 110. Thus, when the downloading of the backup version has problems, the user does not know that the downloading of the version fails.
In the embodiment of the present disclosure, the main frame main control board 101 may, for example, download a target file; the main frame main control board 101 and the standby frame main control boards 105 and 106 perform command synchronization so that the standby frame main control boards 105 and 106 download the target file; the main frame main control board 101 and the standby frame main control boards 105 and 106 traverse the service boards under the frame and send the target file to the corresponding service boards 102, 103, 107, 108, 109 and 110; the business boards 102, 103, 107, 108, 109 and 110 verify the target file and generate return information according to the verification result; the main frame main control board 101 generates a management result of the target file based on the return information.
Before the main frame main control board 101 downloads the target file, for example, the main frame main control board 101 may also obtain file information of the target file; and judging whether the file information meets a preset condition or not, and generating error warning information when the file information does not meet the preset condition.
Before the main frame main control board 101 downloads the target file, for example, it may also be determined whether the remaining space of all the service boards in the virtual switch matrix 10 is greater than the capacity of the target file based on the file information; and generating error warning information when the residual space of the service board is smaller than the capacity of the target file.
Fig. 2 is a flowchart illustrating a file management method of a virtual switch fabric according to an example embodiment. The file management method 20 of the virtual switch fabric includes at least steps S202 to S210.
As shown in fig. 2, in S202, the main frame main control board downloads the target file.
In S204, the main frame main control board and the standby frame main control board perform command synchronization so that the standby frame main control board downloads the target file. In the VSM environment, command synchronization is performed between the main frame and the standby frame, that is, the main frame is operated, and the standby frame automatically performs the same operation, so that the version file is downloaded to the temporary directory hosted by the main frame and the standby frame through the TCP protocol.
In S206, the main frame main control board and the standby frame main control board traverse the service boards under the frame and send the target file to the corresponding service boards. The main control traverses all the service boards of the frame, establishes socket communication with the service boards when judging that the type of the service board is the selected type of the service board, and then sends information such as the name and the size of the version file to the service boards. The service board allocates space for the receiving cache and puts the received version file into a temporary directory.
In S208, the service board verifies the target file and generates a return message according to the verification result. And after the service board successfully receives the version file, checking whether the partition space of the version file stored in the CF card of the service board is larger than the size of the version file. And if the space of the service board is sufficient, the version file is moved from the temporary directory to the formal directory of the version file, otherwise, information of insufficient space is returned, and the version file is deleted.
And the service board checks the version file, and judges whether the file is complete or not and whether the file is matched with the type of the service board or not. If the downloaded version is invalid, the business board returns the information that the version is invalid to the master.
In S210, the main frame main control board generates a management result of the target file based on the return information. If the service board returns the information that the version is invalid, the main frame main control stores the information and continues downloading the version to the next service board of the same type, and the standby frame main control stores the information and downloads the version to the next service board of the same type.
If the service board returns the information with insufficient space, the main frame main control stops the version downloading and returns corresponding error information. The standby frame master control stores the information, stops version downloading and returns corresponding error information.
If the service board returns the information of successful downloading, the main frame main control can continue to download the version to the next service board of the same type.
If all the business boards return the information that the version is invalid, the version is considered as an invalid version. The main frame main control returns corresponding error information, and the standby frame main control stores the information and returns corresponding error information.
It should be noted that, although the standby frame master may return an error message, the standby frame master cannot upload the information to the page. Therefore, the error information of the standby frame master control cannot be displayed on the page.
In one embodiment, the service board may perform version check, integrity check and type check on the target file; and when the verification is inconsistent, generating error warning information and sending the error warning information to the main frame main control board and the standby frame main control board.
In one embodiment, for example, when the main frame main control board receives the version invalidation information from the service board, the main frame main control board stores the version invalidation information and continues the downloading operation; and the main frame main control board stops downloading operation when receiving the insufficient space information from the service board.
In one embodiment, for example, when the main frame main control board receives a download success message or version invalidation message from a service board, a command may be sent to the standby frame main control board to obtain the return information of the service board below the standby frame main control board. Furthermore, when the main frame main control fails to connect the service board and the space of the service board is insufficient, the downloading stops and error information is reported, and the main frame main control cannot acquire the downloading condition of the standby frame; and when the main frame main control downloading is successful or the version is invalid, actively sending a message to the standby frame main control to acquire a standby frame version downloading result.
The messages sent by the standby frame to the main frame are divided into the following types:
1. download did not start
At the moment, the main control of the main frame can wait for 3 seconds and then continue to send a request message to the main control of the standby frame, and if the non-start mark is downloaded, the main control of the standby frame considers that the main control of the standby frame does not have a service board needing to download the target file;
2. downloading is ongoing
At the moment, the master control enters into cyclic waiting, and sends messages to the master control board of the standby frame every 3 seconds until information of successful or failed downloading is returned, and then continues to send request messages to the next frame;
3. insufficient space for equipment
At the moment, the main frame master control stops continuously acquiring the message, and returns the service board slot number in the error message to the error output;
4. service board connection failure
At the moment, the main frame master control stops continuously acquiring the message, and returns the service board slot number in the error message to the error output;
5. version invalidation
The main frame master control stores the information and continuously sends a request message to the next standby frame;
6. success of download
The main frame master will store this information and continue to send request messages to the next standby frame.
After the above message is obtained, the main frame main control board needs to determine the result according to the result of downloading all frame versions in the VSM environment, which may specifically be, for example:
1. if the returned results of all the frames subjected to version downloading are successful, displaying version downloading success information on the page;
2. if only two kinds of information, namely successful downloading and invalid version, exist in the results returned by all the frames subjected to version downloading, the page displays information of successful downloading of partial versions, and an administrator needs to perform secondary verification;
3. if the returned results of all the frames subjected to version downloading are version invalidity, the page displays 'version invalidity' information;
4. if the service board returns that the space is insufficient, the page displays a message of insufficient space of the service board.
According to the file management method of the virtual switching matrix, a main frame main control board downloads a target file; the main frame main control board and the standby frame main control board carry out command synchronization so that the standby frame main control board downloads the target file; the main frame main control board and the standby frame main control board traverse the service boards under the frame and send the target file to the corresponding service boards; the service board checks the target file and generates return information according to a check result; the main frame main control board can obtain version downloading results of all frames in the virtual switching matrix environment based on the mode of generating the management results of the target files by the returned information, avoids the situation that the version downloading of the standby frames fails and a user cannot know the version downloading of the standby frames, and enriches page prompt information simultaneously, so that the user can timely know error reasons of the version downloading failures and can solve the problem.
It should be clearly understood that this disclosure describes how to make and use particular examples, but the principles of this disclosure are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
Fig. 3 is a flowchart illustrating a file management method of a virtual switch fabric according to another exemplary embodiment. The process 30 shown in fig. 3 is a supplementary description of the process shown in fig. 2.
As shown in fig. 3, in S302, the main frame main control board obtains file information of the target file. The software version page corresponding to the service board in the equipment 'basic- > system management- > version management' can be entered by logging in the equipment page on the PC, clicking and browsing at the 'local import version' position, and selecting the target version.
In S304, it is determined whether the file information satisfies a preset condition, and if not, error warning information is generated. The method comprises the steps of obtaining information such as the name and the size of a file, firstly judging whether the file is a preset type file or not, specifically, for example, a bin file, and judging whether the file size is smaller than 200000KB or not. When the above condition is not satisfied, an error warning message is generated.
In S306, it is determined whether the remaining space of all the service boards in the virtual switch matrix is greater than the capacity of the target file based on the file information. Since the information of all the service boards is stored in the main control, the main control can directly judge whether the space is sufficient.
In S308, when the remaining space of the business board is smaller than the capacity of the object file, an error warning message is generated. It is also possible to start downloading the object file, for example, when the remaining space of the service board is larger than the capacity of the object file.
Fig. 4 is a flowchart illustrating a file management method of a virtual switch fabric according to another exemplary embodiment. The process 40 shown in fig. 4 is a detailed description of S206 "the main frame main control board and the standby frame main control board traverse the service boards under the current frame and send the target file to the corresponding service boards" in the process shown in fig. 2.
As shown in fig. 4, in S402, the main frame main control board and the standby frame main control board traverse the service boards under the own frame.
In S404, when the type of the service board is consistent with the target file, the main frame main control board, the standby frame main control board, and the service board establish socket communication. Socket (Socket) communication is an abstraction of an endpoint for two-way communication between application processes on different hosts in a network. A socket is the end of a process's communication over a network and provides a mechanism for application layer processes to exchange data using a network protocol. In terms of the position, the socket uplink application process and the socket downlink network protocol stack are interfaces through which the application program communicates through the network protocol, and are interfaces through which the application program interacts with the network protocol root.
In S406, when the main frame main control board and the standby frame main control board establish socket communication with the corresponding service board successfully, the main frame main control board and the standby frame main control board send the target file to the corresponding service board based on the socket communication.
Socket can be regarded as an endpoint in each communication connection when two network applications communicate, which is a logical concept. It is an API (application programming interface) for interprocess communication in a network environment, and is also a communication endpoint that can be named and addressed, each socket in use having its type and a process connected to it. During communication, one network application program writes a piece of information to be transmitted into a Socket of the main frame main control board or the standby frame main control board, and the Socket sends the piece of information into a Socket of a service board corresponding to the main frame main control board or the standby frame main control board through a transmission medium connected with a Network Interface Card (NIC), so that an opposite side can receive the piece of information. Socket is combined by IP address and port, providing a mechanism to deliver packets to application layer processes.
In S408, when the main frame main control board and the standby frame main control board fail to establish socket communication with the service board corresponding thereto, an error warning message is generated.
According to the file management method of the virtual switch matrix, the socket communication is used for mastering the version downloading results of all frames in the VSM environment, the situation that the version of the standby frame fails to be downloaded and cannot be known by a user is avoided, and meanwhile, the page prompt information is enriched, so that the user can timely know the error reason of the version downloading failure, and the problem is pertinently solved.
Those skilled in the art will appreciate that all or part of the steps implementing the above embodiments are implemented as computer programs executed by a CPU. When executed by the CPU, performs the functions defined by the above-described methods provided by the present disclosure. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic or optical disk, or the like.
Furthermore, it should be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 5 is a block diagram illustrating a file management apparatus of a virtual switch fabric according to an example embodiment. As shown in fig. 5, the file management apparatus 50 of the virtual switch fabric includes: a downloading module 502, a synchronizing module 504, a sending module 506, an information module 508 and a management module 510.
The downloading module 502 is used for the main frame main control board to download the target file;
the synchronization module 504 is configured to perform command synchronization on the main frame main control board and the standby frame main control board so that the standby frame main control board downloads the target file;
the sending module 506 is configured to traverse the service boards in the main frame main control board and the standby frame main control board and send the target file to the corresponding service boards;
the information module 508 is used for the service board to verify the target file and generate a return message according to the verification result;
the management module 510 is configured to generate a management result of the target file by the main frame main control board based on the return information.
Fig. 6 is a block diagram illustrating a file management apparatus of a virtual switch fabric according to another exemplary embodiment. As shown in fig. 6, the file management apparatus 60 of the virtual switch fabric includes: a condition judging module 602 and a capacity judging module 604.
The condition judgment module 602 is configured to enable the main frame main control board to obtain file information of the target file; and judging whether the file information meets a preset condition or not, and generating error warning information when the file information does not meet the preset condition.
The capacity judging module 604 is configured to judge whether the remaining spaces of all the service boards in the virtual switch matrix are greater than the capacity of the target file based on the file information; and generating error warning information when the residual space of the service board is smaller than the capacity of the target file.
According to the file management device of the virtual switching matrix, a main frame main control board downloads a target file; the main frame main control board and the standby frame main control board carry out command synchronization so that the standby frame main control board downloads the target file; the main frame main control board and the standby frame main control board traverse the service boards under the frame and send the target file to the corresponding service boards; the service board checks the target file and generates return information according to a check result; the main frame main control board can obtain version downloading results of all frames in the virtual switching matrix environment based on the mode of generating the management results of the target files by the returned information, avoids the situation that the version downloading of the standby frames fails and a user cannot know the version downloading of the standby frames, and enriches page prompt information simultaneously, so that the user can timely know error reasons of the version downloading failures and can solve the problem.
FIG. 7 is a block diagram illustrating an electronic device in accordance with an example embodiment.
An electronic device 700 according to this embodiment of the disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 is embodied in the form of a general purpose computing device. The components of the electronic device 700 may include, but are not limited to: at least one processing unit 710, at least one memory unit 720, a bus 730 that connects the various system components (including the memory unit 720 and the processing unit 710), a display unit 740, and the like.
Wherein the storage unit stores program code that can be executed by the processing unit 710 to cause the processing unit 710 to perform the steps according to various exemplary embodiments of the present disclosure described in this specification. For example, the processing unit 710 may perform the steps as shown in fig. 2, 3, 4.
The memory unit 720 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)7201 and/or a cache memory unit 7202, and may further include a read only memory unit (ROM) 7203.
The memory unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 730 may be any representation of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 700' (e.g., keyboard, pointing device, bluetooth device, etc.), such that a user can communicate with devices with which the electronic device 700 interacts, and/or any devices (e.g., router, modem, etc.) with which the electronic device 700 can communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 750. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 760. The network adapter 760 may communicate with other modules of the electronic device 700 via the bus 730. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, as shown in fig. 8, the technical solution according to the embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above method according to the embodiment of the present disclosure.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The computer readable medium carries one or more programs which, when executed by a device, cause the computer readable medium to perform the functions of: the main frame main control board downloads a target file; the main frame main control board and the standby frame main control board carry out command synchronization so that the standby frame main control board downloads the target file; the main frame main control board and the standby frame main control board traverse the service boards under the frame and send the target file to the corresponding service boards; the service board checks the target file and generates return information according to a check result; and the main frame main control board generates a management result of the target file based on the return information.
Those skilled in the art will appreciate that the modules described above may be distributed in the apparatus according to the description of the embodiments, or may be modified accordingly in one or more apparatuses unique from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Exemplary embodiments of the present disclosure are specifically illustrated and described above. It is to be understood that the present disclosure is not limited to the precise arrangements, instrumentalities, or instrumentalities described herein; on the contrary, the disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (12)

1. A file management method of a virtual switch matrix can be used for the virtual switch matrix, the virtual switch matrix system includes a plurality of frame devices, each frame device includes a main control board and a plurality of service boards, and the method includes:
the main frame main control board downloads a target file;
the main frame main control board and the standby frame main control board carry out command synchronization so that the standby frame main control board downloads the target file;
the main frame main control board and the standby frame main control board traverse the service boards under the frame and send the target file to the corresponding service boards;
the service board checks the target file and generates return information according to a check result;
and the main frame main control board generates a management result of the target file based on the return information.
2. The method of claim 1, wherein before the main frame main control board downloads the target file, the method further comprises:
the main frame main control board acquires file information of the target file;
and judging whether the file information meets a preset condition or not, and generating error warning information when the file information does not meet the preset condition.
3. The method of claim 2, wherein before the main frame main control board downloads the target file, the method further comprises:
judging whether the residual space of all service boards in the virtual switching matrix is larger than the capacity of the target file or not based on the file information;
and generating error warning information when the residual space of the service board is smaller than the capacity of the target file.
4. The method of claim 1, wherein the main frame main control board and the standby frame main control board traverse service boards under a local frame and send the object file to corresponding service boards thereof, comprising:
the main frame main control board and the standby frame main control board traverse the service boards under the frame;
and when the type of the service board is consistent with the target file, the main frame main control board and the standby frame main control board send the target file to the corresponding service board.
5. The method of claim 4, wherein the main frame main control board and the standby frame main control board send the object file to their corresponding service boards, including:
the main frame main control board, the standby frame main control board and the service board establish socket communication;
and the main frame main control board and the standby frame main control board transmit the target file to corresponding business boards based on the socket communication.
6. The method of claim 5, wherein the main frame master control board, the standby frame master control board establish socket communication with the service board, further comprising:
and the main frame main control board and the standby frame main control board generate error warning information when the socket communication established between the main frame main control board and the standby frame main control board corresponding to the main frame main control board fails.
7. The method of claim 1, wherein the service board verifies the target file and generates a return message according to a verification result, comprising:
the service board carries out version verification, integrity verification and type verification on the target file;
and when the verification is inconsistent, generating error warning information and sending the error warning information to the main frame main control board and the standby frame main control board.
8. The method of claim 1, wherein the main frame master control board generates a management result of the target file based on the return information, comprising:
when the main frame main control board receives the version invalid information from the service board, storing the version invalid information and continuing downloading operation;
and the main frame main control board stops downloading operation when receiving the insufficient space information from the service board.
9. The method of claim 1, wherein the main frame master control board generates a management result of the target file based on the return information, comprising:
and when the main frame main control board receives a successful downloading message or an invalid version message from the service board, sending a command to the standby frame main control board to obtain the return message of the service board under the standby frame main control board.
10. A file management apparatus of a virtual switch matrix, which can be used for a virtual switch matrix, where the virtual switch matrix system includes a plurality of frame devices, and each frame device includes a main control board and a plurality of service boards, and the file management apparatus includes:
the downloading module is used for downloading the target file by the main frame main control board;
the synchronization module is used for carrying out command synchronization on the main frame main control board and the standby frame main control board so as to enable the standby frame main control board to download the target file;
the sending module is used for traversing the service boards under the main frame main control board and the standby frame main control board and sending the target file to the corresponding service boards;
the information module is used for verifying the target file by the service board and generating return information according to a verification result;
and the management module is used for generating a management result of the target file by the main frame main control board based on the return information.
11. The apparatus of claim 10, further comprising:
the condition judgment module is used for acquiring the file information of the target file by the main frame main control board; and judging whether the file information meets a preset condition or not, and generating error warning information when the file information does not meet the preset condition.
12. The apparatus of claim 11, further comprising:
a capacity judging module, configured to judge whether remaining spaces of all service boards in the virtual switch matrix are greater than a capacity of the target file based on the file information; and generating error warning information when the residual space of the service board is smaller than the capacity of the target file.
CN202011047796.8A 2020-09-29 2020-09-29 File management method and device for virtual switching matrix Active CN112181930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011047796.8A CN112181930B (en) 2020-09-29 2020-09-29 File management method and device for virtual switching matrix

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011047796.8A CN112181930B (en) 2020-09-29 2020-09-29 File management method and device for virtual switching matrix

Publications (2)

Publication Number Publication Date
CN112181930A true CN112181930A (en) 2021-01-05
CN112181930B CN112181930B (en) 2023-04-25

Family

ID=73946404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011047796.8A Active CN112181930B (en) 2020-09-29 2020-09-29 File management method and device for virtual switching matrix

Country Status (1)

Country Link
CN (1) CN112181930B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835646A (en) * 2021-02-20 2021-05-25 杭州迪普科技股份有限公司 Equipment configuration recovery method and device

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1542612A (en) * 2003-11-06 2004-11-03 中兴通讯股份有限公司 Singleboard software automatic download method and device
CN1812332A (en) * 2005-01-26 2006-08-02 华为技术有限公司 Method for assurng conformity of exchanger various monoboard software edition
US20070054658A1 (en) * 2003-06-23 2007-03-08 Bouygues Telecom Method for downloading files onto a mobile device
CN101163172A (en) * 2007-11-12 2008-04-16 东方通信股份有限公司 High-capacity media broadcasting system and method for mobile phone or fixed telephone switching system
CN102438042A (en) * 2011-11-04 2012-05-02 中国工商银行股份有限公司 Dynamic parameter synchronizing method and system of multipoint access device
CN102480719A (en) * 2010-11-23 2012-05-30 大连兆阳软件科技有限公司 Software version distributed storage and loading system of high-efficiency communication system
CN103209083A (en) * 2012-01-12 2013-07-17 上海未来宽带技术股份有限公司 Device upgrading method
CN103533027A (en) * 2013-09-22 2014-01-22 瑞斯康达科技发展股份有限公司 Distributed equipment and software version compatibility maintenance method and system
US20140282470A1 (en) * 2013-03-13 2014-09-18 Arynga Inc. Remote transfer of electronic images to a vehicle
CN104376406A (en) * 2014-11-05 2015-02-25 上海计算机软件技术开发中心 Enterprise innovation resource management and analysis system and method based on big data
CN106411540A (en) * 2015-07-27 2017-02-15 中兴通讯股份有限公司 Software version management method and device
CN106817259A (en) * 2017-01-18 2017-06-09 杭州迪普科技股份有限公司 The upgrade method and device of VSM systems
CN107046476A (en) * 2017-02-21 2017-08-15 杭州迪普科技股份有限公司 A kind of method and device of edition upgrading
US20170344355A1 (en) * 2016-05-27 2017-11-30 GM Global Technology Operations LLC Updating vehicle system modules
CN108696365A (en) * 2017-02-17 2018-10-23 中兴通讯股份有限公司 A kind of method and device for realizing outband management

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070054658A1 (en) * 2003-06-23 2007-03-08 Bouygues Telecom Method for downloading files onto a mobile device
CN1542612A (en) * 2003-11-06 2004-11-03 中兴通讯股份有限公司 Singleboard software automatic download method and device
CN1812332A (en) * 2005-01-26 2006-08-02 华为技术有限公司 Method for assurng conformity of exchanger various monoboard software edition
CN101163172A (en) * 2007-11-12 2008-04-16 东方通信股份有限公司 High-capacity media broadcasting system and method for mobile phone or fixed telephone switching system
CN102480719A (en) * 2010-11-23 2012-05-30 大连兆阳软件科技有限公司 Software version distributed storage and loading system of high-efficiency communication system
CN102438042A (en) * 2011-11-04 2012-05-02 中国工商银行股份有限公司 Dynamic parameter synchronizing method and system of multipoint access device
CN103209083A (en) * 2012-01-12 2013-07-17 上海未来宽带技术股份有限公司 Device upgrading method
US20140282470A1 (en) * 2013-03-13 2014-09-18 Arynga Inc. Remote transfer of electronic images to a vehicle
CN103533027A (en) * 2013-09-22 2014-01-22 瑞斯康达科技发展股份有限公司 Distributed equipment and software version compatibility maintenance method and system
CN104376406A (en) * 2014-11-05 2015-02-25 上海计算机软件技术开发中心 Enterprise innovation resource management and analysis system and method based on big data
CN106411540A (en) * 2015-07-27 2017-02-15 中兴通讯股份有限公司 Software version management method and device
US20170344355A1 (en) * 2016-05-27 2017-11-30 GM Global Technology Operations LLC Updating vehicle system modules
CN107438094A (en) * 2016-05-27 2017-12-05 通用汽车环球科技运作有限责任公司 Update vehicle system module
CN106817259A (en) * 2017-01-18 2017-06-09 杭州迪普科技股份有限公司 The upgrade method and device of VSM systems
CN108696365A (en) * 2017-02-17 2018-10-23 中兴通讯股份有限公司 A kind of method and device for realizing outband management
CN107046476A (en) * 2017-02-21 2017-08-15 杭州迪普科技股份有限公司 A kind of method and device of edition upgrading

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
TAN XIAOYING 等: "Dynamic resource allocation in cloud download service" *
卢上丁 等: "DCC开销交叉技术在光传输网络中的应用" *
周若鹏 等: "河南数据骨干网项目网络设计与实现技术研究" *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835646A (en) * 2021-02-20 2021-05-25 杭州迪普科技股份有限公司 Equipment configuration recovery method and device

Also Published As

Publication number Publication date
CN112181930B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
US20200174915A1 (en) Emulation-based testing of a microservices architecture
CN109656538A (en) Generation method, device, system, equipment and the medium of application program
KR20200070085A (en) Method and apparatus for processing information
US8086900B2 (en) System, method and computer program product for testing a boot image
CN109710695B (en) Transaction request validity identification and initiation method, device, equipment and medium
US20100250698A1 (en) Automated tape drive sharing in a heterogeneous server and application environment
US20180210720A1 (en) Method and device for generating image file
CN106406980B (en) A kind of dispositions method and device of virtual machine
CN111818145B (en) File transmission method, device, system, equipment and storage medium
US9146816B2 (en) Managing system image backup
US11176002B2 (en) Methods, apparatuses and systems for cloud-based disaster recovery
CN112181930B (en) File management method and device for virtual switching matrix
CN113761412A (en) Application page display method and device, electronic equipment, medium and application system
CN110134419B (en) System upgrading method, device, equipment and storage medium for double-sided cabinet
CN116263694A (en) Warehouse cluster deployment method and device and computing equipment
CN115150392A (en) Remote file copying method, system, computing equipment and storage medium
CN109308288A (en) Data processing method and device
CN114584545A (en) Data management method, device, system, storage medium and electronic equipment
CN111355629B (en) Client test method and device, computer equipment and storage medium
CN111656331B (en) Method and apparatus for recovering from failure during garbage collection processing in a system
CN112416509B (en) Virtual machine control system and related equipment
CN113434151A (en) Service deployment method, server and system
CN112083939A (en) Batch upgrading method, device, system and medium
US20210208873A1 (en) Distributing computing tasks to individual computer systems
CN110888665B (en) Method, device, equipment and storage medium for submitting changed content

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