CN112181930B - File management method and device for virtual switching matrix - Google Patents

File management method and device for virtual switching matrix Download PDF

Info

Publication number
CN112181930B
CN112181930B CN202011047796.8A CN202011047796A CN112181930B CN 112181930 B CN112181930 B CN 112181930B CN 202011047796 A CN202011047796 A CN 202011047796A CN 112181930 B CN112181930 B CN 112181930B
Authority
CN
China
Prior art keywords
main control
control board
frame main
target file
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011047796.8A
Other languages
Chinese (zh)
Other versions
CN112181930A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Hardware Redundancy (AREA)

Abstract

The disclosure relates to a file management method, device, electronic equipment and computer readable medium of a virtual switching matrix. The method comprises the following steps: the main frame main control board downloads the target file; 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; the main frame main control board and the standby frame main control board traverse the service boards under the main 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 checking 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 frames in the virtual switching matrix environment, avoid the situation that the user cannot know the version downloading failure of the spare frame, enrich page prompt information, enable the user to know the error reason of the version downloading failure in time, and solve the problem.

Description

File management method and device for virtual switching matrix
Technical Field
The present disclosure relates to the field of computer information processing, and in particular, to a method, an apparatus, an electronic device, and a computer readable medium for managing files of a virtual switch matrix.
Background
Version management is one of the most commonly used functions in device operation, and when the software version function of the current device operation needs to be upgraded or a function defect exists, the version in the device needs to be replaced. At this time, for the sake of device security, it is necessary to manage the process of downloading the version, and thus version management is generated.
During the version download process, the following situations often occur:
1. version download fails due to network failure;
2. the downloaded version file is invalid, so that the version downloading fails;
3. version download fails due to insufficient device space.
In the VSM (Virtual Switch Matrix, virtual switching matrix) frame device, the frame device needs to consider the differences between the main control and the service boards, and the VSM environment needs to consider the differences between different frames, so that there is no method for file management for the VSM frame device.
The above information disclosed in the background section is only for enhancement of understanding of the background of the disclosure and therefore it may include information that does not form the prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of this, the disclosure provides a method, an apparatus, an electronic device, and a computer readable medium for managing files of a virtual switch matrix, which can obtain version downloading results of all frames in a virtual switch matrix environment, avoid a situation that a user cannot know the version downloading failure of a standby frame, and enrich page prompt information, so that the user knows the error cause of the version downloading failure in time, and aims at solving the problem.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to an aspect of the present disclosure, a file management method of a virtual switching matrix is provided, which may be used for a virtual switching matrix, where the virtual switching 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 the target file; 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; the main frame main control board and the standby frame main control board traverse the service boards under the main 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 checking 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 preset conditions, and generating error warning information when the file information does not meet the preset conditions.
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 disclosure, the main frame main control board and the standby frame main control board traverse the service boards under the present frame and send the target file to the corresponding service boards, including: the main frame main control board and the standby frame main control board traverse the service boards under the main 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 main frame main control board and the standby frame main control board send the target file to their corresponding service boards, including: the main frame main control board and the standby frame main control board establish socket communication with the service board; the main frame main control board and the standby frame main control board communicate based on the socket to send the target file to the corresponding service board;
in an exemplary embodiment of the present disclosure, the main frame main control board, the standby frame main control board, and the service board establish socket communication, further includes: and when the socket communication between the main frame main control board and the standby frame main control board corresponding to the main frame main control board fails, error warning information is generated.
In an exemplary embodiment of the present disclosure, the service board checks the target file and generates the return information according to the check result, including: the service board performs 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 main frame main control board generates a management result of a target file based on the return information, including: when receiving the version invalidation information from the service board, the main frame main control board stores the version invalidation information and continues downloading operation; and stopping the downloading operation when the main frame main control board receives the insufficient space information from the service board.
In an exemplary embodiment of the present disclosure, the main frame main control board generates a management result of a target file based on the return information, including: when the main frame main control board receives a successful downloading message or version invalidation message from the service board, a command is sent to the standby frame main control board to acquire the return information 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 switching matrix is provided, which is applicable to a virtual switching matrix, where the virtual switching 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 from the main frame main control board; the synchronous module is used for carrying out 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 is used for traversing the service boards under the main frame 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 based on the return information by the main frame main control board.
In an exemplary embodiment of the present disclosure, further comprising: the condition judgment module is used for acquiring file information of the target file by the main frame main control board; and judging whether the file information meets preset conditions, and generating error warning information when the file information does not meet the preset conditions.
In an exemplary embodiment of the present disclosure, further comprising: the capacity judging module is used for judging whether the residual space of all the 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.
According to an aspect of the present disclosure, there is provided an electronic device including: one or more processors; a storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the methods as described above.
According to an aspect of the present disclosure, a computer-readable medium is presented, on which a computer program is stored, which program, when being executed by a processor, implements a method as described above.
According to the file management method, the device, the electronic equipment and the computer readable medium of the virtual switching matrix, the main frame main control board downloads the target file; 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; the main frame main control board and the standby frame main control board traverse the service boards under the main 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 checking result; the main frame main control board generates the management result of the target file based on the return information, can obtain the version downloading result of all frames in the virtual exchange matrix environment, avoids the situation that the user cannot know the version downloading failure of the standby frame, enriches page prompt information, enables the user to know the error reason of the version downloading failure in time, and aims at solving 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 examples of the present disclosure and other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a system block diagram illustrating a method and apparatus for file management of a virtual switching matrix according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method of file management of a virtual switching matrix, according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a file management method of a virtual switching matrix according to another exemplary embodiment.
Fig. 4 is a flowchart illustrating a file management method of a virtual switching matrix according to another exemplary embodiment.
Fig. 5 is a block diagram illustrating a file management apparatus of a virtual switching matrix according to an exemplary embodiment.
Fig. 6 is a block diagram of a file management apparatus of a virtual switching matrix, according to another exemplary embodiment.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
Fig. 8 is a block diagram of a computer-readable medium shown according to an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many 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 the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, 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 disclosed aspects may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they 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 order of actual execution may be changed according to actual situations.
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 element. Accordingly, a first component discussed below could be termed a second component without departing from the teachings of the concepts of the present disclosure. As used herein, the term "and/or" includes any one of the associated listed items and all combinations of one or more.
Those skilled in the art will appreciate that the drawings are schematic representations of example embodiments and that the modules or flows in the drawings are not necessarily required to practice the present disclosure, and therefore, should not be taken to limit the scope of the present disclosure.
Fig. 1 is a system block diagram of a method, apparatus, electronic device, and computer-readable medium for file management of a virtual switching matrix, according to an exemplary embodiment.
As shown in fig. 1, the system architecture 10 of the virtual switching matrix may include a main frame master 101, main frame service boards 102, 103, a plurality of standby frame master 105, 106, and a plurality of standby frame service boards 107, 108, 109, 110. Network devices may also be included to provide a medium for communication links between the main frame master 101, the main frame service boards 102, 103, the plurality of spare frame master 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 the master control, and version downloading is also performed. Firstly, version file information is acquired, and file names and equipment space judgment are carried out; acquiring a business board version file to a main control temporary directory; establishing socket communication with the service board to tell the service board that version file information needs to be received; transmitting the version file to the service board; the business board checks version files to prevent the files 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 in the VSM environment, the version download between different frames is performed by means of command synchronization, that is, the main frame master board 101 only knows the own download condition of the frame, and does not know the version download condition of the multiple standby frame master boards 105, 106 and the service boards 107, 108, 109, 110 of the multiple standby frames. Thus, when the downloading of the backup frame version is problematic, the user does not know that the version has failed to be downloaded.
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 files to the corresponding service boards 102, 103, 107, 108, 109 and 110; the business boards 102, 103, 107, 108, 109 and 110 check the target file and generate return information according to the check 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 preset conditions, and generating error warning information when the file information does not meet the preset conditions.
Before the main frame main control board 101 downloads the target file, for example, it may further determine whether the remaining space of all 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 flow chart illustrating a method of file management of a virtual switching matrix, according to an exemplary embodiment. The file management method 20 of the virtual switch matrix at least includes 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 to enable the standby frame main control board to download the target file. In the VSM environment, command synchronization is performed between the main frame and the standby frame, that is, the operation is performed on the main frame, and the standby frame also automatically performs the same operation, so that the version file is downloaded to the temporary directories of 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 present frame and send the target file to the corresponding service boards. The master control traverses all service boards of the frame, when judging that the service board type is the selected service board type, the master control establishes socket communication with the service board, and then sends information such as version file names, sizes and the like to the service board. The service board allocates space for the receiving buffer and places the received version file into the temporary directory.
In S208, the service board checks the target file and generates return information according to the check result. After the service board successfully receives the version file, it is checked again whether the partition space of the version file stored by the service board CF card is larger than the size of the version file. If the space of the business board is sufficient, the version file is moved from the temporary directory to the version file formal directory, otherwise, the 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 version is downloaded as invalid, the service board returns 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 of invalid version, the main frame master control stores the information and continues to download the version to the next service board of the same type, and the standby frame master control stores the information and downloads the version to the next service board of the same type.
If the service board returns the information of insufficient space, the main frame master control stops downloading the version and returns corresponding error information. The backup frame master stores the information, stops version download, and returns corresponding error information.
If the service board returns the information of successful downloading, the main frame master control can continue to download the version to the next service board of the same type.
If all the service boards return information that the version is invalid, then the version is considered to be 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, at this time, although the frame master will return an error message, the frame master information cannot be actually sent to the page. So the error information of the standby frame master cannot be displayed on the page.
In one embodiment, the business board may perform version verification, integrity verification, and type verification on the target file, for example; 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, the main frame main control board stores the version invalidation information and continues the downloading operation when receiving the version invalidation information from the service board; and stopping the downloading operation when the main frame main control board receives 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 information from a service board, a command may be sent to the spare frame main control board to obtain return information of the service board under the spare 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, downloading is stopped and error information is reported, and the main frame main control cannot acquire the downloading condition of the standby frame at the moment; and when the main frame master control is successfully downloaded or the version is invalid, actively sending a message to the standby frame master control to acquire a standby frame version downloading result.
The messages sent from the standby frames to the main frames are divided into the following types:
1. the download did not start
At this time, the main frame main control can wait for 3 seconds and then continue to send a request message to the main control of the standby frame, if the main control of the standby frame is still downloading a non-start mark, the main frame is considered to have no service board for downloading the target file;
2. the download is ongoing
At this time, the main control will enter circulation waiting, send information to the main control board of the standby frame every 3 seconds until the successful or failed information of the download is returned, and then continue to send request information to the next frame;
3. insufficient equipment space
At the moment, the main frame main control stops continuously acquiring the message and returns the slot number of the service board in the error message to the error output;
4. service board connection failure
At the moment, the main frame main control stops continuously acquiring the message and returns the slot number of the service board in the error message to the error output;
5. version invalidation
The main frame master control stores the information and continues to send a request message to the next standby frame;
6. successful download
The master frame master stores this information and continues to send request messages to the next slave frame.
After the above message is obtained, the main frame main control board needs to judge the result according to the downloaded results of all frame versions in the VSM environment, and specifically may, for example:
1. if all the frames subjected to version downloading return successful results, displaying 'successful version downloading' information on the page;
2. if only two kinds of information including successful downloading and invalid version are returned in the results returned by all frames subjected to version downloading, displaying 'partial version downloading success' information on the page, and needing a second verification by an administrator;
3. if all the frames subjected to version downloading return results which are version invalid, displaying 'version invalid' information on the page;
4. if the service board returns insufficient space, the page displays a 'service board space insufficient' message.
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 perform 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 main 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 checking result; the main frame main control board generates the management result of the target file based on the return information, can obtain the version downloading result of all frames in the virtual exchange matrix environment, avoids the situation that the user cannot know the version downloading failure of the standby frame, enriches page prompt information, enables the user to know the error reason of the version downloading failure in time, and aims at solving 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 switching matrix according to another exemplary embodiment. The flow 30 shown in fig. 3 is a complementary description to the flow shown in fig. 2.
As shown in fig. 3, in S302, the main frame main control board acquires file information of the target file. The target version can be selected by logging in a device page on the PC, entering a software version page corresponding to the service board in the device 'basic- > system management- > version management', and clicking and browsing at the 'local import version'.
In S304, it is determined whether the file information satisfies a preset condition, and when the preset condition is not satisfied, an error warning message is generated. The information such as the name, the size and the like of the file is acquired, and whether the file is a file of a preset type or not is firstly judged, and specifically, the file can be a bin file, and whether the size of the file 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 service boards in the virtual switching matrix is greater than the capacity of the target file based on the file information. Because the information of all the service boards can be stored on the main control, the main control can directly judge whether the space is sufficient or not.
In S308, when the remaining space of the service board is smaller than the capacity of the target file, an error warning message is generated. The downloading of the target file may also be started, for example, when the remaining space of the service board is larger than the capacity of the target file.
Fig. 4 is a flowchart illustrating a file management method of a virtual switching matrix 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 present 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 present frame.
In S404, 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 establish socket communication with the service board. Socket (communication) is an abstraction of endpoints that communicate bi-directionally between application processes on different hosts in a network. One socket is the end of the network where processes communicate, providing a mechanism for application layer processes to exchange data using network protocols. In terms of the position, the socket is connected with the application process in an upper mode, and the socket is connected with the network protocol stack in a lower mode, so that the socket is an interface for the application program to communicate through the network protocol, and is an interface for the application program to interact with the network protocol root.
In S406, when the socket communication is successfully established between the main frame main control board and the standby frame main control board and the corresponding service boards, the main frame main control board and the standby frame main control board send the target file to the corresponding service boards based on the socket communication.
Socket can be seen as an endpoint in the respective communication connection when two network applications communicate, which is a logical concept. It is an API (application programming interface) for inter-process 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. One of the network application programs 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 during communication, and the Socket sends the piece of information to 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 the other party can receive the piece of information. Socket is a combination of IP address and port that provides a mechanism to deliver packets to application layer processes.
In S408, the main frame main control board and the standby frame main control board generate an error warning message when the socket communication established with the corresponding service board fails.
According to the file management method of the virtual switching matrix, version downloading results of all frames in a VSM environment are mastered through socket communication, the situation that a user cannot know the version downloading failure of a standby frame is avoided, page prompt information is enriched, the user can know error reasons of the version downloading failure in time, and the problem is solved in a targeted mode.
Those skilled in the art will appreciate that all or part of the steps implementing the above described embodiments are implemented as a computer program executed by a CPU. The above-described functions defined by the above-described methods provided by the present disclosure are performed when the computer program is executed by a CPU. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic disk or an optical disk, etc.
Furthermore, it should be noted that the above-described figures are merely illustrative of the processes involved in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
The following are device embodiments of the present disclosure that may be used to perform method embodiments of the present disclosure. For details not disclosed in the embodiments of the apparatus of the present disclosure, please 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 switching matrix according to an exemplary embodiment. As shown in fig. 5, the file management apparatus 50 of the virtual switching matrix includes: a download module 502, a synchronization module 504, a send module 506, an information module 508, and a management module 510.
The downloading module 502 is used for downloading the target file by the main frame main control board;
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 under the main frame and the standby frame main control board and send the target file to the corresponding service boards;
the information module 508 is used for checking the target file by the service board and generating return information according to the checking result;
the management module 510 is configured to generate a management result of the target file based on the return information by using the main frame main control board.
Fig. 6 is a block diagram of a file management apparatus of a virtual switching matrix, according to another exemplary embodiment. As shown in fig. 6, the file management apparatus 60 of the virtual switching matrix includes: a condition judgment module 602, a capacity judgment module 604.
The condition judgment module 602 is configured to obtain file information of the target file by using the main frame main control board; and judging whether the file information meets preset conditions, and generating error warning information when the file information does not meet the preset conditions.
The capacity judging module 604 is configured to judge whether remaining spaces of all 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 perform 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 main 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 checking result; the main frame main control board generates the management result of the target file based on the return information, can obtain the version downloading result of all frames in the virtual exchange matrix environment, avoids the situation that the user cannot know the version downloading failure of the standby frame, enriches page prompt information, enables the user to know the error reason of the version downloading failure in time, and aims at solving the problem.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
An electronic device 700 according to such an embodiment of the present disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 7, the electronic device 700 is embodied in the form of a general purpose computing device. Components of 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 connecting the different 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 is executable by the processing unit 710 such that the processing unit 710 performs steps described in the present specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 710 may perform the steps as shown in fig. 2, 3, and 4.
The memory unit 720 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 7201 and/or cache memory 7202, and may further include Read Only Memory (ROM) 7203.
The storage 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 or some combination of which may include an implementation of a network environment.
Bus 730 may be a bus representing 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.), devices that enable a user to interact with the electronic device 700, and/or any devices (e.g., routers, modems, etc.) with which the electronic device 700 can communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 750. Also, electronic device 700 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 760. Network adapter 760 may communicate with other modules of electronic device 700 via bus 730. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 700, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, as shown in fig. 8, 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 (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-described method according to the embodiments 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. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk 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 data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium 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 of 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, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, 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., connected via the Internet using an Internet service provider).
The computer-readable medium carries one or more programs, which when executed by one of the devices, cause the computer-readable medium to perform the functions of: the main frame main control board downloads the target file; 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; the main frame main control board and the standby frame main control board traverse the service boards under the main 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 checking 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 may be distributed throughout several devices as described in the embodiments, and that corresponding variations may be implemented in one or more devices that are unique to the embodiments. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or in combination with the necessary hardware. Thus, the technical solutions 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 (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and include several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform 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 this disclosure is not limited to the particular arrangements, instrumentalities and methods of implementation 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 (9)

1. A file management method for a virtual switching matrix, which is used in a virtual switching matrix system, the virtual switching matrix system including a plurality of frame devices, each frame device including a main control board and a plurality of service boards, the method comprising:
the main frame main control board downloads the target file;
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;
the main frame main control board and the standby frame main control board traverse the service board under the main frame, and when the type of the service board is consistent with the target file, socket communication is established between the main frame main control board and the standby frame main control board and between the main frame main control board and the service board; the main frame main control board and the standby frame main control board send the target file to the corresponding service boards based on the socket communication, and when the socket communication is failed to be established with the corresponding service boards, the main frame main control board and the standby frame main control board generate error warning information;
the service board checks the target file and generates return information according to a checking 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, further comprising:
the main frame main control board acquires file information of the target file;
and judging whether the file information meets preset conditions, and generating error warning information when the file information does not meet the preset conditions.
3. The method of claim 2, wherein before the main frame main control board downloads the target file, further comprising:
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 service board verifies the target file and generates the return information based on the verification result, comprising:
the service board performs 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.
5. The method of claim 1, wherein the main frame main control board generates a management result of the target file based on the return information, comprising:
when receiving the version invalidation information from the service board, the main frame main control board stores the version invalidation information and continues downloading operation;
and stopping the downloading operation when the main frame main control board receives the insufficient space information from the service board.
6. The method of claim 1, wherein the main frame main control board generates a management result of the target file based on the return information, comprising:
when the main frame main control board receives a successful downloading message or version invalidation message from the service board, a command is sent to the standby frame main control board to acquire the return information of the service board under the standby frame main control board.
7. A file management apparatus for a virtual switching matrix system, the virtual switching matrix system comprising a plurality of frame devices, each frame device comprising a main control board and a plurality of service boards, the apparatus comprising:
the downloading module is used for downloading the target file from the main frame main control board;
the synchronous module is used for carrying out 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 is used for traversing the service boards under the main frame main control board and the standby frame main control board, and establishing socket communication between the main frame main control board, the standby frame main control board and the service boards when the type of the service boards is consistent with the type of the target file; the main frame main control board and the standby frame main control board send the target file to the corresponding service boards based on the socket communication, and when the socket communication is failed to be established with the corresponding service boards, the main frame main control board and the standby frame main control board generate error warning information;
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 based on the return information by the main frame main control board.
8. The apparatus as recited in claim 7, further comprising:
the condition judgment module is used for acquiring file information of the target file by the main frame main control board; and judging whether the file information meets preset conditions, and generating error warning information when the file information does not meet the preset conditions.
9. The apparatus as recited in claim 8, further comprising:
the capacity judging module is used for judging whether the residual space of all the 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.
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 CN112181930A (en) 2021-01-05
CN112181930B true 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)

Families Citing this family (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 (13)

* 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
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
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
CN107438094A (en) * 2016-05-27 2017-12-05 通用汽车环球科技运作有限责任公司 Update vehicle system module
CN108696365A (en) * 2017-02-17 2018-10-23 中兴通讯股份有限公司 A kind of method and device for realizing outband management

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2856489B1 (en) * 2003-06-23 2005-08-26 Bouygues Telecom Sa METHOD FOR DOWNLOADING FILES ON MOBILE EQUIPMENT
US20140282470A1 (en) * 2013-03-13 2014-09-18 Arynga Inc. Remote transfer of electronic images to a vehicle

Patent Citations (13)

* 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
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
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
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.《The Journal of China Universities of Posts and Telecommunications》.2017,第53-59卷53-59. *
卢上丁 等.DCC开销交叉技术在光传输网络中的应用.《光通信技术》.2014,29-31. *
周若鹏 等.河南数据骨干网项目网络设计与实现技术研究.《中国优秀硕士学位论文全文数据库信息科技辑》.2016,I136-132. *

Also Published As

Publication number Publication date
CN112181930A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
US9934135B2 (en) Generic test automation for application programming interface applications
CN108681777B (en) Method and device for running machine learning program based on distributed system
CN107729176B (en) Disaster recovery method and disaster recovery system for configuration file management system
KR20200070085A (en) Method and apparatus for processing information
CN112714158B (en) Transaction processing method, relay network, cross-link gateway, system, medium and equipment
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
CN109725950B (en) Method, device and storage medium for realizing single-instance operation of client
CN113760324A (en) Method and device for constructing micro front-end application
CN113761412A (en) Application page display method and device, electronic equipment, medium and application system
CN112181930B (en) File management method and device for virtual switching matrix
CN113468067B (en) Application program debugging method and device, electronic equipment and computer readable medium
CN110134419B (en) System upgrading method, device, equipment and storage medium for double-sided cabinet
CN112491940B (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
CN113377487A (en) Method, apparatus and computer program product for managing virtual machine upgrades
CN111722946A (en) Distributed transaction processing method and device, computer equipment and readable storage medium
CN110609866A (en) Method, apparatus and computer program product for negotiating transactions
CN112416509B (en) Virtual machine control system and related equipment
CN111611510B (en) Cache clearing method, device and system
CN111355629B (en) Client test method and device, computer equipment and storage medium
CN114449040A (en) Configuration issuing method and device based on cloud platform
CN111382203A (en) Plug-in based data synchronization method and device and storage medium
CN114006812B (en) Configuration method and device of network equipment
CN110011767B (en) Method and apparatus for TCP connection backup
CN113220507B (en) Version consistency checking method and device for double-master control system
CN117978792B (en) Interaction method, device, equipment and medium of application program and Web terminal

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