CN116260777A - Method and device for constructing virtual switching matrix - Google Patents

Method and device for constructing virtual switching matrix Download PDF

Info

Publication number
CN116260777A
CN116260777A CN202310106333.1A CN202310106333A CN116260777A CN 116260777 A CN116260777 A CN 116260777A CN 202310106333 A CN202310106333 A CN 202310106333A CN 116260777 A CN116260777 A CN 116260777A
Authority
CN
China
Prior art keywords
equipment
switching matrix
remote
virtual switching
network
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
CN202310106333.1A
Other languages
Chinese (zh)
Other versions
CN116260777B (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 CN202310106333.1A priority Critical patent/CN116260777B/en
Publication of CN116260777A publication Critical patent/CN116260777A/en
Application granted granted Critical
Publication of CN116260777B publication Critical patent/CN116260777B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • H04L49/101Packet switching elements characterised by the switching fabric construction using crossbar or matrix
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a method and a device for constructing a virtual switching matrix. The method comprises the following steps: when the network equipment detects that an up port exists in a cascade port of the network equipment, a detection request message is sent to remote equipment; receiving a response message of the detection request message from the remote equipment within a preset time; determining the equipment information of the remote equipment according to the response message; when the equipment information meets a preset strategy, the network equipment and the remote equipment are used for constructing a virtual switching matrix; and after the virtual switching matrix is successfully built, performing task processing on the virtual switching matrix. The method and the device for constructing the virtual switching matrix can reduce the error probability of the virtual switching matrix network environment, ensure the safety and stability of the network, and improve the working efficiency of network operation and maintenance investigation for solving the network problem.

Description

Method and device for constructing virtual switching matrix
Technical Field
The disclosure relates to the field of computer information processing, and in particular relates to a method and a device for constructing a virtual switching matrix.
Background
With the continuous expansion of network services, it is difficult for the conventional single network device to meet the demands of all departments and services for network operation, and if the core network device is added to meet the demands of each service, the investment cost for network operation is definitely required to be increased, and a large amount of time and effort of operation and maintenance personnel are consumed. Virtual switching matrices (also known as stacking techniques) solve this problem.
The core technology of the stack is unified management, not only provides a large number of external physical interfaces, but also provides a unified control plane and a unified data maintenance plane, and realizes core unification. Thus, the maintenance cost of the user can be greatly saved. However, stacking technology has a certain limitation, and due to confidentiality of enterprise technology, stacking technology of different manufacturers has an incompatibility problem, and even if devices from the same manufacturer have the incompatibility problem due to continuous iteration and updating of product models and software versions. Under the condition that a user is unaware, network equipment with different product types or network equipment with different software versions can be easily cascaded to erect the VSM stacking system, and under the condition, the VSM stacking system cannot be erected, a great amount of time is consumed for the user to find out problem reasons, bad network experience is brought to the user, and therefore the network equipment validity detection technology participating in the stacking system is particularly necessary.
The above information disclosed in the background section is only for enhancement of understanding of the background of the application and therefore it may contain 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 present application provides a method and apparatus for constructing a virtual switch matrix, which can reduce the error probability of the virtual switch matrix network environment, ensure the security and stability of the network, and improve the working efficiency of network operation and maintenance investigation to solve the network problem.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned in part by the practice of the application.
According to an aspect of the present application, a method for constructing a virtual switching matrix is provided, the method comprising: when the network equipment detects that an up port exists in a cascade port of the network equipment, a detection request message is sent to remote equipment; receiving a response message of the detection request message from the remote equipment within a preset time; determining the equipment information of the remote equipment according to the response message; when the equipment information meets a preset strategy, the network equipment and the remote equipment are used for constructing a virtual switching matrix; and after the virtual switching matrix is successfully built, performing task processing on the virtual switching matrix.
In an exemplary embodiment of the present application, when detecting that an up port exists in a self-cascade port, a network device sends a probe request message to a remote device, where the probe request message includes: the network equipment starts a virtual switching matrix building function; detecting a self cascade interface; and when the up port exists in the self cascade port, sending a detection request message to the remote equipment.
In an exemplary embodiment of the present application, sending a probe request message to a remote device includes: starting a remote device detection program; and sending a detection request message to the remote equipment based on the remote equipment detection program.
In an exemplary embodiment of the present application, receiving a reply message of the probe request message from the remote device within a preset time includes: after receiving the detection request message, the remote equipment generates the response message through equipment information; and the remote equipment generates and transmits a detection request message.
In an exemplary embodiment of the present application, the generating the reply message through device information includes: and packaging the single board information and the software version information to generate the response message.
In an exemplary embodiment of the present application, determining, according to the reply message, device information of the remote device includes: determining whether all the sent detection request messages receive response messages; and after all the detection request messages receive the response messages, extracting the equipment information of the remote equipment according to the response messages.
In an exemplary embodiment of the present application, determining device information of the remote device according to the reply packet further includes: after not receiving the response messages of all the detection request messages, obtaining the remote equipment information of the response messages which are not received; and generating an abnormal record according to the equipment information.
In an exemplary embodiment of the present application, when the device information satisfies a preset policy, the network device and the remote device perform virtual switch matrix construction, including: comparing the equipment information of the network equipment with the equipment information of the remote equipment; and when the comparison results are consistent, the network equipment and the remote equipment are used for constructing a virtual switching matrix.
In an exemplary embodiment of the present application, the network device and the remote device perform virtual switching matrix construction, including: the network device and the remote device trigger a state machine of a virtual switching matrix; the state machine performs topo collection for virtual switching matrix construction.
According to an aspect of the present application, there is provided an apparatus for constructing a virtual switching matrix, the apparatus comprising: the network equipment is used for sending a detection request message to the remote equipment when detecting that the up port exists in the self cascade port; the response module is used for receiving a response message of the detection request message from the remote equipment within a preset time; the information module is used for determining the equipment information of the remote equipment according to the response message; the building module is used for building a virtual switching matrix between the network equipment and the remote equipment when the equipment information meets a preset strategy; and the task module is used for performing task processing on the virtual switching matrix after the virtual switching matrix is successfully built.
According to an aspect of the present application, 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 application, 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 method and the device for constructing the virtual switching matrix, when detecting that an up port exists in a cascade port of the network equipment, a detection request message is sent to a remote equipment; receiving a response message of the detection request message from the remote equipment within a preset time; determining the equipment information of the remote equipment according to the response message; when the equipment information meets a preset strategy, the network equipment and the remote equipment are used for constructing a virtual switching matrix; after the virtual switching matrix is successfully built, the virtual switching matrix is subjected to task processing, so that the error probability of the virtual switching matrix network environment can be reduced, the safety and stability of a network are ensured, and the working efficiency of network operation and maintenance investigation for solving the network problem is improved.
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 application.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are only some embodiments of the present application 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 constructing a virtual switching matrix according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method of constructing a virtual switching matrix according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a method of constructing a virtual switching matrix according to another exemplary embodiment.
Fig. 4 is a flowchart illustrating a method of constructing a virtual switching matrix according to another exemplary embodiment.
Fig. 5 is a flowchart illustrating a method of constructing a virtual switching matrix according to another exemplary embodiment.
Fig. 6 is a block diagram illustrating an apparatus for constructing 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 present application. One skilled in the relevant art will recognize, however, that the aspects of the application can 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 application.
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. Thus, a first component discussed below could be termed a second component without departing from the teachings of the present application concept. 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 application, and therefore, should not be taken to limit the scope of the present application.
The technical abbreviations involved in this application are explained as follows:
VSM: virtual Switch Matrix, i.e. virtual switching matrix. A virtualization technique, i.e., stacking technique, virtualizes a plurality of Ethernet switch devices into a single network device.
A single board: and each network device in the VSM system is called a member device, and the member devices are divided into two different roles according to different functions. Master Master member equipment and Slave spare member equipment, the Master is responsible for overall VSM system management and service processing, and Slave operates as a backup of the Master. Only one Master member can be in a VSM system, but there can be multiple Slave members.
Cascade port: an interface special for connecting member devices in a VSM environment, wherein each member device can transmit information through a cascade port, a plurality of member ports of each device can be provided, and multiple cascade links between two member devices can be automatically aggregated. The network line with cascade ports connected with each other between the member devices is called a cascade line.
VSM identification: in the VSM, each device is uniquely identified by the VSM ID, and the Master and Slave member roles of the VSM are selected by the VSM ID.
The applicant finds that in the prior art, for example, three network devices VSM1, VSM2 and VSM3 may form a ring-shaped VSM stacking system through a multi-cascade port and cascade line configuration, when each of the VSM1, VSM2 and VSM3 detects that the cascade port is in an up state, each VSM state machine starts to operate, a topo message exchange is performed through the cascade port, and each member role, master and Slave is selected according to the VSM id in the topo. And thus into the steady state of the VSM.
The method has the advantages that the topo collection among the VSM member devices is triggered to send a topo collection message under the condition that whether the self cascade ports are up or not, and under the condition that the device single board model and software version are ensured to be correctly networked, the topo collection among the member devices, role election and further stable VSM system stability state are achieved easily, and the following problems are caused.
Problem 1: the core of the stacking technology is to add a stacking head to a message passing through a cascading port for distinguishing the stacking message from a common message, so that the stacking message can pass through the cascading port, and when the types of cascading single boards used by VSM1, VSM2 and VSM3 are inconsistent, under the condition of forced cascading, the types of cascading single boards are inconsistent, topo collecting messages sent by opposite ends can not be identified mutually, and a VSM system can not be established. Similarly, the hardware difference is removed, the software version is also updated continuously and iteratively, if the software versions of the member devices are inconsistent, the problem of uncertainty caused by inconsistent processing of each member device when the member devices process the same event is also caused, and the system is unstable.
The two devices VSM1 are configured with a stacking technology and are connected with a common Ethernet port of another common SW network device which is not configured with the stacking technology through a cascade port cascade line, so that the VSM1 cannot confirm whether the devices connected with the VSM1 have a stacking function or not, but the cascade port is in an up state, and thus a topo message is continuously sent for stacking attempt. Under such a wrong networking environment, the operation of the VSM1 is always in an unstable state, and if a user uses the network environment without knowledge, the situation of network oscillation easily occurs, and the problem of inquiry is inconvenient.
Aiming at the problems existing in the prior art, the application provides a method for constructing a virtual switching matrix, which aims at checking the uniformity of the single board types and the software versions of the member equipment of a stacking system before starting a VSM state machine to collect topos, carrying out log record on the illegal detection condition, reminding a user, and periodically detecting whether the opposite single board types and the software versions are consistent or not.
The following describes the content of the present application in detail with the aid of specific examples.
Fig. 1 is a system block diagram illustrating a method and apparatus for constructing a virtual switching matrix according to an exemplary embodiment.
As shown in fig. 1, the system architecture 10 may include network devices 101, 102, 103, a network 104. The network 104 is the medium used to provide communication links between the network devices 101, 102, 103. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The network device 101 may send a probe request message to a remote device (which may be, for example, the network devices 102, 103) when detecting that an up port exists in its own tandem port; the network device 101 may receive a reply message from the remote device (which may be the network device 102, 103, for example) in a preset time; the network device 101 may determine device information of the remote device (which may be, for example, the network devices 102, 103) according to the reply message; the network device 101 and the remote device (which may be, for example, the network devices 102, 103) may perform the construction of a virtual switching matrix, for example, when the device information satisfies a preset policy; after successful construction, the virtual switching matrix (which may, for example, comprise network devices 101, 102, 103) performs task processing.
It should be noted that, the method for constructing a virtual switching matrix provided in the embodiments of the present application may be executed by the network devices 101, 102, 103, and accordingly, the apparatus for constructing a virtual switching matrix may be disposed in the network devices 101, 102, 103.
Fig. 2 is a flow chart illustrating a method of constructing a virtual switching matrix according to an exemplary embodiment. The method 20 for constructing the virtual switch matrix at least includes steps S202 to S208.
As shown in fig. 2, in S202, when detecting that the up port exists in the own cascade port, the network device sends a probe request message to the remote device. The network device may, for example, turn on the virtual switch matrix building function; detecting a self cascade interface; and when the up port exists in the self cascade port, sending a detection request message to the remote equipment.
In S204, a response message of the probe request message from the remote device is received within a preset time. The remote device may, for example, generate the response message through device information after receiving the probe request message; and the remote equipment generates and transmits a detection request message.
In a specific application, after the detection message is sent out, a waiting response timer is started. If the remote device does not turn on the VSM stacking function, or interfaces with a common port, or other vendor devices that do not support probing, the remote device will not respond to the probe request.
In one embodiment, the port sends the probe request information by adopting periodic timing, default time is 3s, the probe period can be configured by configuring a control plane, the minimum probe time can be, for example, 3s, the time is not suitable to be configured too large, the waiting timeout time is too long when the time is too large, the response alarm effect is influenced, too small probe is not suitable to be too frequent, the response timeout time is too short, and the probe precision is influenced.
In practical cases, the user may be configured according to the distance between the actual VSM topologies and the size of the service, which is not limited in this application.
In S206, device information of the remote device is determined according to the response message. And determining whether all the sent detection request messages receive response messages.
In one embodiment, after all the probe request messages receive the response message, the device information of the remote device is extracted according to the response message. More specifically, if the remote device opens the VSM stacking function and the port to be connected is a cascade port, the remote device packages and sends its own board information and software version information to the detector when detecting the message, and the remote device itself also sends the remote detection message to other devices
In one embodiment, after not receiving the response messages of all the probe request messages, obtaining the remote device information of the response messages which are not received; and generating an abnormal record according to the equipment information. More specifically, after the timer times out, if the up cascade port still exists and does not acquire the response, the networking environment is considered to be abnormal. At the moment, the system log is recorded by detecting abnormal information of the up cascade port without response, and the user is prompted to check the networking environment.
In S208, when the device information satisfies a preset policy, the network device and the remote device perform virtual switch matrix construction. For example, the device information of the network device and the device information of the remote device may be compared; and when the comparison results are consistent, the network equipment and the remote equipment are used for constructing a virtual switching matrix.
More specifically, the detected remote single board information and software version are compared with the single board information and software version of the local device respectively, when the obtained remote single board information and software version of the remote device have remote information inconsistent with the local single board information or the software version, the inconsistent remote single board information, the software version information and the corresponding cascading port information of the received response message are recorded into a system log, and a user is prompted to check the networking environment.
More specifically, the network device and the remote device trigger state machines of a virtual switching matrix; the state machine performs topo collection for virtual switching matrix construction.
In S210, after the construction is successful, the virtual switch matrix performs task processing. If the comparison result shows that all the remote single board information and the software version information are consistent with the local equipment, triggering the VSM stacking state machine to collect topo and performing corresponding network construction actions to complete the construction of the virtual switching matrix.
According to the method for constructing the virtual switching matrix, when detecting that an up port exists in a cascade port of the network equipment, a detection request message is sent to a remote device; receiving a response message of the detection request message from the remote equipment within a preset time; determining the equipment information of the remote equipment according to the response message; when the equipment information meets a preset strategy, the network equipment and the remote equipment are used for constructing a virtual switching matrix; after the virtual switching matrix is successfully built, the virtual switching matrix is subjected to task processing, so that the error probability of the virtual switching matrix network environment can be reduced, the safety and stability of a network are ensured, and the working efficiency of network operation and maintenance investigation for solving the network problem is improved.
It should be clearly understood that this application describes how to make and use particular examples, but the principles of this application 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 method of constructing a virtual switching matrix according to another exemplary embodiment. The process 30 shown in fig. 3 is a detailed description of the process S202 "the network device sends a probe request message to the remote device when detecting that the up port exists in the own tandem port" shown in fig. 2.
As shown in fig. 3, in S302, the network device turns on a virtual switching matrix building function.
In S304, the self-cascade interface is detected. And starting the device with the VSM stacking function, and when detecting that the up port exists in the cascade port of the device, firstly running a remote device detection thread before the VSM stacking state machine sends a topo collection.
In S306, when detecting that the up port exists in the own cascade port, the remote device detection program is started.
In S308, a probe request message is sent to the remote device based on the remote device detection program. The detection thread controls all up ports to send detection request messages.
In one embodiment, the detection message may be in a custom message format, so that information to be detected can be flexibly added and deleted, the message is sent out through a cascade port, the message is sent to a cpu of the opposite terminal device for processing in a mode of a hop to cpu, the hop to cpu is a stacking characteristic supported by the exchange chip, and if the port to be docked does not support stacking or does not open stacking function, the detection message cannot be received. In order to prevent the expired detection message from being received by combining with the overtime working principle of the timer, each port marks a unique flag for the message when sending one detection message and records the flag in the latest sending flag of the current port, the remote equipment responds and extracts the flag and encapsulates the flag into a response message, and the paired response and response flag are required to be consistent, otherwise, the response is considered as the expired detection response and is directly discarded.
Fig. 4 is a flowchart illustrating a method of constructing a virtual switching matrix according to another exemplary embodiment. The process 40 shown in fig. 4 is a detailed description of S206 "determine device information of the remote device according to the reply message" in the process shown in fig. 2.
As shown in fig. 4, in S402, it is determined whether all the probe request messages sent out receive the response message.
In S404, after all the probe request messages receive the response message, the device information of the remote device is extracted according to the response message.
When all up cascade ports receive detection responses, if the waiting timer is not overtime at the moment, the waiting overtime timer is closed, and at the moment, the detection thread can extract detection response messages received by all up cascade ports, acquire veneer information, software version information and the like packaged by the remote equipment from the response messages, and store the veneer information, the software version information and the like by combining with the packet receiving cascade ports.
In S406, after not receiving the reply message of all the probe request messages, the remote device information of the reply message which is not received is obtained.
In S408, an anomaly record is generated from the device information. After not receiving the response messages of all the detection request messages, obtaining the remote equipment information of the response messages which are not received; and generating an abnormal record according to the equipment information. More specifically, after the timer times out, if the up cascade port still exists and does not acquire the response, the networking environment is considered to be abnormal. At the moment, the system log is recorded by detecting abnormal information of the up cascade port without response, and the user is prompted to check the networking environment.
Fig. 5 is a flowchart illustrating a method of constructing a virtual switching matrix according to another exemplary embodiment. The flow 50 shown in fig. 5 is a detailed description of the flow shown in fig. 2.
As shown in fig. 5, in S502, the VSM function is turned on.
In S504, there is a cascading port of up.
In S506, the network device operates in a single unit.
In S508, the detection thread is started.
In S510, all up cascade ports issue probe request messages.
In S512, whether all the sent probe messages receive the response message or not, and in the timing time, whether all the sent probe messages receive the response message or not.
In S514, device information is extracted according to the response message, and the remote device board model and the software version obtained by all the cascade ports are extracted according to the response message.
In S516, the port that has not received the response message is recorded in the system log.
In S518, it is compared whether the board information and the software version agree. And comparing the single board information of the remote equipment acquired by all ports with the software version and the local whether the single board information is consistent with the software version or not.
In S520, the VSM state machine is started, and virtual matrix network construction is performed.
In S522, abnormal cascading port information is recorded to the system log.
In S524, the virtual matrix network performs a task.
By the method for constructing the virtual switching matrix, the self-checking before stacking member equipment is realized, and the self-checking result is presented to the user, so that the user can adjust the networking environment, the error probability of the network environment is reduced, the safety and stability of the network are ensured, and the working efficiency of network operation and maintenance investigation for solving the network problem is improved.
According to the method for constructing the virtual switching matrix, the remote single board and the software version detection function of the independent VSM are added on the original VSM stacking function, so that the error probability of a stacking system is greatly reduced.
According to the virtual switching matrix constructing method, the detection information can be flexibly customized and added according to the requirement.
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. When executed by a CPU, performs the functions defined by the above methods provided herein. 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 application, 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 application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Fig. 6 is a block diagram illustrating an apparatus for constructing a virtual switching matrix according to another exemplary embodiment. As shown in fig. 6, the virtual switching matrix constructing apparatus 60 includes: a request module 602, a response module 604, an information module 606, a build module 608, a task module 610.
The request module 602 is configured to send a probe request packet to a remote device when detecting that an up port exists in a cascade port of the network device; the request module 602 is further configured to enable a virtual switch matrix building function by the network device; detecting a self cascade interface; and when the up port exists in the self cascade port, sending a detection request message to the remote equipment.
The response module 604 is configured to receive a response message of the probe request message from the remote device within a preset time; the response module 604 is further configured to generate the response message through device information after the remote device receives the probe request message; and the remote equipment generates and transmits a detection request message.
The information module 606 is configured to determine device information of the remote device according to the response message; the information module 606 is further configured to determine whether all the probe request messages sent out receive a response message; and after all the detection request messages receive the response messages, extracting the equipment information of the remote equipment according to the response messages.
The information module 606 is further configured to obtain, after not receiving the reply message of all the probe request messages, remote device information of the reply message that is not received; and generating an abnormal record according to the equipment information.
The building module 608 is configured to build a virtual switching matrix between the network device and the remote device when the device information satisfies a preset policy; the component module 608 is further configured to compare the device information of the network device with the device information of the remote device; and when the comparison results are consistent, the network equipment and the remote equipment are used for constructing a virtual switching matrix.
The task module 610 is configured to perform task processing on the virtual switch matrix after the virtual switch matrix is successfully built.
According to the virtual switch matrix constructing device, when detecting that an up port exists in a cascade port of the virtual switch matrix constructing device, a network device sends a detection request message to a remote device; receiving a response message of the detection request message from the remote equipment within a preset time; determining the equipment information of the remote equipment according to the response message; when the equipment information meets a preset strategy, the network equipment and the remote equipment are used for constructing a virtual switching matrix; after the virtual switching matrix is successfully built, the virtual switching matrix is subjected to task processing, so that the error probability of the virtual switching matrix network environment can be reduced, the safety and stability of a network are ensured, and the working efficiency of network operation and maintenance investigation for solving the network problem is improved.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
An electronic device 700 according to this embodiment of the present application 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 as limiting the functionality and scope of use of the embodiments herein.
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 application. For example, the processing unit 710 may perform the steps as shown in fig. 2, 3, 4, 5.
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 application 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 application.
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 application 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: when the network equipment detects that an up port exists in a cascade port of the network equipment, a detection request message is sent to remote equipment; receiving a response message of the detection request message from the remote equipment within a preset time; determining the equipment information of the remote equipment according to the response message; when the equipment information meets a preset strategy, the network equipment and the remote equipment are used for constructing a virtual switching matrix; and after the virtual switching matrix is successfully built, performing task processing on the virtual switching matrix.
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 application 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 methods according to the embodiments of the present application.
Exemplary embodiments of the present application are specifically illustrated and described above. It is to be understood that this application is not limited to the details of construction, arrangement or method of implementation described herein; on the contrary, the application is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (10)

1. A method of constructing a virtual switching matrix, comprising:
when the network equipment detects that an up port exists in a cascade port of the network equipment, a detection request message is sent to remote equipment;
receiving a response message of the detection request message from the remote equipment within a preset time;
determining the equipment information of the remote equipment according to the response message;
when the equipment information meets a preset strategy, the network equipment and the remote equipment are used for constructing a virtual switching matrix;
and after the virtual switching matrix is successfully built, performing task processing on the virtual switching matrix.
2. The method of constructing according to claim 1, wherein the network device, when detecting that the up port exists in the own cascade port, sends a probe request message to the remote device, comprising:
the network equipment starts a virtual switching matrix building function;
detecting a self cascade interface;
and when the up port exists in the self cascade port, sending a detection request message to the remote equipment.
3. The method of constructing as claimed in claim 2, wherein transmitting the probe request message to the remote device comprises:
starting a remote device detection program;
and sending a detection request message to the remote equipment based on the remote equipment detection program.
4. The method of claim 1, wherein receiving a reply message to the probe request message from the remote device within a predetermined time comprises:
after receiving the detection request message, the remote equipment generates the response message through equipment information;
and the remote equipment generates and transmits a detection request message.
5. The method of constructing as claimed in claim 4, wherein generating the reply message by means of device information comprises:
and packaging the single board information and the software version information to generate the response message.
6. The method of claim 1, wherein determining device information of the remote device from the reply message comprises:
determining whether all the sent detection request messages receive response messages;
and after all the detection request messages receive the response messages, extracting the equipment information of the remote equipment according to the response messages.
7. The method of constructing as claimed in claim 6, wherein determining device information of the remote device according to the response message further comprises:
after not receiving the response messages of all the detection request messages, obtaining the remote equipment information of the response messages which are not received;
and generating an abnormal record according to the equipment information.
8. The method of constructing a virtual switching matrix according to claim 1, wherein when the device information satisfies a preset policy, the network device and the remote device perform virtual switching matrix construction, including:
comparing the equipment information of the network equipment with the equipment information of the remote equipment;
and when the comparison results are consistent, the network equipment and the remote equipment are used for constructing a virtual switching matrix.
9. The method of constructing as claimed in claim 8, wherein said network device and said remote device perform virtual switching matrix construction, comprising:
the network device and the remote device trigger a state machine of a virtual switching matrix;
the state machine performs topo collection for virtual switching matrix construction.
10. A virtual switching matrix building apparatus, comprising:
the network equipment is used for sending a detection request message to the remote equipment when detecting that the up port exists in the self cascade port;
the response module is used for receiving a response message of the detection request message from the remote equipment within a preset time;
the information module is used for determining the equipment information of the remote equipment according to the response message;
the building module is used for building a virtual switching matrix between the network equipment and the remote equipment when the equipment information meets a preset strategy;
and the task module is used for performing task processing on the virtual switching matrix after the virtual switching matrix is successfully built.
CN202310106333.1A 2023-02-13 2023-02-13 Method and device for constructing virtual switching matrix Active CN116260777B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310106333.1A CN116260777B (en) 2023-02-13 2023-02-13 Method and device for constructing virtual switching matrix

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310106333.1A CN116260777B (en) 2023-02-13 2023-02-13 Method and device for constructing virtual switching matrix

Publications (2)

Publication Number Publication Date
CN116260777A true CN116260777A (en) 2023-06-13
CN116260777B CN116260777B (en) 2024-06-28

Family

ID=86682083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310106333.1A Active CN116260777B (en) 2023-02-13 2023-02-13 Method and device for constructing virtual switching matrix

Country Status (1)

Country Link
CN (1) CN116260777B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309185A (en) * 2008-07-16 2008-11-19 杭州华三通信技术有限公司 Processing method of multi-host apparatus in stacking system and stacking member equipment
CN101572626A (en) * 2009-06-01 2009-11-04 杭州华三通信技术有限公司 Collocation method and member device of stack logic interface
CN104219264A (en) * 2013-05-31 2014-12-17 华为终端有限公司 Method and server for remote access
CN105812292A (en) * 2014-12-29 2016-07-27 中兴通讯股份有限公司 Switching equipment stacking method and device
CN106953750A (en) * 2017-03-09 2017-07-14 新华三技术有限公司 One kind detection path establishment method and device
CN108173691A (en) * 2017-12-27 2018-06-15 杭州迪普科技股份有限公司 A kind of method and device of cross-equipment aggregation
US20190245811A1 (en) * 2018-02-08 2019-08-08 Adva Optical Networking Se Device and method of forwarding data packets in a virtual switch of a software-defined wide area network environment
WO2022057758A1 (en) * 2020-09-17 2022-03-24 中兴通讯股份有限公司 Session resource control method and apparatus, device, system, and storage medium
CN115660636A (en) * 2022-10-10 2023-01-31 卓思韦尔(北京)信息技术有限公司 Intelligent building operation and maintenance method, device, equipment and medium based on data of Internet of things

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309185A (en) * 2008-07-16 2008-11-19 杭州华三通信技术有限公司 Processing method of multi-host apparatus in stacking system and stacking member equipment
CN101572626A (en) * 2009-06-01 2009-11-04 杭州华三通信技术有限公司 Collocation method and member device of stack logic interface
CN104219264A (en) * 2013-05-31 2014-12-17 华为终端有限公司 Method and server for remote access
CN105812292A (en) * 2014-12-29 2016-07-27 中兴通讯股份有限公司 Switching equipment stacking method and device
CN106953750A (en) * 2017-03-09 2017-07-14 新华三技术有限公司 One kind detection path establishment method and device
CN108173691A (en) * 2017-12-27 2018-06-15 杭州迪普科技股份有限公司 A kind of method and device of cross-equipment aggregation
US20190245811A1 (en) * 2018-02-08 2019-08-08 Adva Optical Networking Se Device and method of forwarding data packets in a virtual switch of a software-defined wide area network environment
WO2022057758A1 (en) * 2020-09-17 2022-03-24 中兴通讯股份有限公司 Session resource control method and apparatus, device, system, and storage medium
CN115660636A (en) * 2022-10-10 2023-01-31 卓思韦尔(北京)信息技术有限公司 Intelligent building operation and maintenance method, device, equipment and medium based on data of Internet of things

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宋修军: "基于分布式交换机跨网络堆叠的研究与实现", 《中国优秀》, vol. 2017, no. 02, 15 February 2017 (2017-02-15) *

Also Published As

Publication number Publication date
CN116260777B (en) 2024-06-28

Similar Documents

Publication Publication Date Title
EP3575975A1 (en) Method and apparatus for operating smart network interface card
CN103201724A (en) Providing application high availability in highly-available virtual machine environments
CN102567180A (en) Method and system for relevant alert delivery in a distributed processing system
WO2017112300A1 (en) Technologies for unified and modular gateway abstraction
JP5198154B2 (en) Fault monitoring system, device, monitoring apparatus, and fault monitoring method
CN110895472A (en) Method and device for identifying service change
WO2016197737A1 (en) Self-check processing method, apparatus and system
US11748081B2 (en) System and method for application release orchestration and deployment
CN104322012A (en) Platform independent management controller
US11271798B2 (en) Automated network link repair
US20060179348A1 (en) Method and apparatus for representing, managing and problem reporting in RFID networks
CN113852610B (en) Message processing method, device, computer equipment and storage medium
US20200402190A1 (en) Logistics sensors for smart contract arbitration
CN112860504A (en) Monitoring method and device, computer storage medium and electronic equipment
US20140068048A1 (en) Managing remote devices
CN116260777B (en) Method and device for constructing virtual switching matrix
US20230359514A1 (en) Operation-based event suppression
CN112235300A (en) Cloud virtual network vulnerability detection method, system and device and electronic equipment
CN114679295B (en) Firewall security configuration method and device
CN113612756B (en) Shared login method and device, computer readable storage medium and electronic equipment
JP4313411B2 (en) Maintenance of server function boards
CN116723235B (en) Intelligent switch control unit, hardware architecture, function implementation method and intelligent switch
CN104040513A (en) Display device management system, server apparatus therefor, programmable display device, and operation control method
CN113377467B (en) Information decoupling method and device, server and storage medium
CN113778832B (en) Device information processing method and device, readable storage medium and electronic device

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