CN111585838B - Splitting detection method and device based on VSM system - Google Patents

Splitting detection method and device based on VSM system Download PDF

Info

Publication number
CN111585838B
CN111585838B CN202010356295.1A CN202010356295A CN111585838B CN 111585838 B CN111585838 B CN 111585838B CN 202010356295 A CN202010356295 A CN 202010356295A CN 111585838 B CN111585838 B CN 111585838B
Authority
CN
China
Prior art keywords
interface
detection
identifier
splitting
split
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
CN202010356295.1A
Other languages
Chinese (zh)
Other versions
CN111585838A (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 CN202010356295.1A priority Critical patent/CN111585838B/en
Publication of CN111585838A publication Critical patent/CN111585838A/en
Application granted granted Critical
Publication of CN111585838B publication Critical patent/CN111585838B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a split detection method and a device based on a VSM system, which are applied to main equipment of the VSM system, and the method comprises the following steps: determining whether a first interface identifier configured currently is the same as a second interface identifier of an interface adopted by last split detection, wherein the first interface identifier is an interface identifier of any interface on the main device; if the first interface identifier is different from the second interface identifier, enabling a first interface corresponding to the first interface identifier, and initializing a split detection message; determining whether the first interface can be configured as a split detection interface according to whether the first interface is mounted with a processing function; and if the first interface can be configured to be the splitting detection interface, splitting detection is carried out by adopting the first interface and the splitting detection message. By applying the embodiment of the application, the determination mode of the split detection interface is more flexible.

Description

Splitting detection method and device based on VSM system
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a Virtual Switch Matrix (VSM) system-based splitting detection method and apparatus.
Background
The VSM is a technology for virtualizing a plurality of devices into one device, and a plurality of devices can form a VSM system. In the VSM system, Media Access Control (MAC) addresses of each device are the same, so that when a cascade line between each device in the VSM system fails, the VSM system will be split, and at this time, two devices with the same MAC address will appear, resulting in MAC address collision; similarly, an Internet Protocol (IP) address conflict may occur in the VSM system, and the MAC address conflict and the IP address conflict may cause an abnormal network environment, which may have a serious impact on the user.
In order to solve the MAC address conflict and the IP address conflict in the VSM system, a split detection method is adopted, when the cascade line among all the devices in the VSM system breaks down, the standby device can timely detect and enter a silent mode, and therefore the MAC address conflict and the IP address conflict in the VSM system are eliminated.
The splitting detection method needs to send the splitting detection message through the splitting detection interface, and the splitting detection interface can only be a management interface at present, that is, the splitting detection message can only be sent through the management interface at present. The management interface is usually an interface used for out-of-band management, and if the management interface is used for split detection, out-of-band management cannot be performed, so that normal management of other devices is affected.
Disclosure of Invention
In view of this, the present application provides a split detection method and apparatus based on a VSM system, so as to solve the problem that the normal management of other devices is affected because out-of-band management cannot be performed due to the fact that the split detection is performed by using a management interface.
Specifically, the method is realized through the following technical scheme:
a split detection method based on a VSM system is applied to a main device of the VSM system, and comprises the following steps:
determining whether a first interface identifier configured currently is the same as a second interface identifier of an interface adopted by last split detection, wherein the first interface identifier is an interface identifier of any interface on the main device;
if the first interface identifier is different from the second interface identifier, enabling a first interface corresponding to the first interface identifier, and initializing a split detection message;
determining whether the first interface can be configured as a split detection interface according to whether the first interface is mounted with a processing function;
and if the first interface can be configured to be the splitting detection interface, splitting detection is carried out by adopting the first interface and the splitting detection message.
A split detection device based on a VSM system, which is applied to a main device of the VSM system, and comprises:
A first determining module, configured to determine whether a first interface identifier currently configured is the same as a second interface identifier of an interface adopted by last split detection, where the first interface identifier is an interface identifier of any interface on the master device;
the enabling module is used for enabling a first interface corresponding to the first interface identifier and initializing a split detection message if the first interface identifier is different from the second interface identifier;
a second determining module, configured to determine whether the first interface can be configured as a split detection interface according to whether the first interface mounts the processing function;
and the detection module is used for performing splitting detection by adopting the first interface and the splitting detection message if the first interface can be configured as the splitting detection interface.
An electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the above method steps when executing the program stored in the memory.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the above-mentioned method steps.
According to the technical scheme provided by the application, the interface identifier of any interface on the main device can be configured as the first interface identifier, whether the first interface can be configured as the splitting detection interface is further determined according to whether the first interface corresponding to the first interface identifier is mounted with a processing function, once the first interface can be configured as the splitting detection interface is determined, the first interface and the splitting detection message are adopted for splitting detection, compared with the related technology, the determination mode of the splitting detection interface is more flexible, the method is not limited to using the management interface as the splitting detection interface, therefore, out-of-band management of the management interface cannot be influenced all the time, and further, other devices can be managed normally.
Drawings
FIG. 1 is a flow chart illustrating a method for split detection based on a VSM system according to the present application;
FIG. 2 is a schematic structural diagram of a split detection device based on a VSM system according to the present application;
fig. 3 is a schematic structural diagram of an electronic device shown in the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if," as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination," depending on the context.
In order to solve the above problem, embodiments of the present invention provide a split detection method based on a VSM system, so as to increase flexibility of a manner of determining a split detection interface, and since the method is not limited to using a management interface as the split detection interface, out-of-band management of the management interface is not always affected, thereby ensuring that other devices can be normally managed. Referring to fig. 1, fig. 1 is a flowchart of a split detection method based on a VSM system, which is applied to a main device of the VSM system, and the VSM system can support a situation that three or more devices are cascaded.
S11: and determining whether the first interface identifier of the current configuration is the same as the second interface identifier of the interface adopted by the last split detection.
The first interface identification is the interface identification of any interface on the main equipment. The technician can configure the interface of any panel on the host device, including the management interface, the interface on the interface board, the interface on the service board, and so on, and the interface identifier of the interface can be defined as the first interface identifier. The interface identifier of the interface used by the last split detection may also be recorded, which may be defined as the second interface identifier.
S12: and if the first interface identifier is different from the second interface identifier, enabling the first interface corresponding to the first interface identifier, and initializing the split detection message.
If the first interface identifier is the same as the second interface identifier, it indicates that the first interface is also used for the split detection last time, and the first interface can be continuously used for the split detection.
S13: and determining whether the first interface can be configured to be the split detection interface according to whether the first interface mounts the processing function.
The first interface may not be configured as a split detection interface, because other services may be configured, and if the first interface is configured with other services, the first interface may hang the processing function, and therefore, it may be determined whether the first interface can be configured as a split detection interface according to whether the first interface mounts the processing function.
S14: and if the first interface can be configured to be the splitting detection interface, splitting detection is carried out by adopting the first interface and the splitting detection message.
According to the technical scheme provided by the application, the interface identifier of any interface on the main device can be configured as the first interface identifier, whether the first interface can be configured as the splitting detection interface is further determined according to whether the first interface corresponding to the first interface identifier is mounted with a processing function, once the first interface can be configured as the splitting detection interface is determined, the first interface and the splitting detection message are adopted for splitting detection, compared with the related technology, the determination mode of the splitting detection interface is more flexible, the method is not limited to using the management interface as the splitting detection interface, therefore, out-of-band management of the management interface cannot be influenced all the time, and further, other devices can be managed normally.
Specifically, in S13, determining whether the first interface can be configured as the split detection interface according to whether the first interface is mounted with the processing function, where the implementation process specifically includes:
determining whether the first interface mounts the processing function;
if the first interface is determined not to mount the processing function, determining that the first interface can be configured as a split detection interface;
And if the first interface is determined to be mounted with the processing function, determining that the first interface cannot be configured as a split detection interface.
If the first interface does not mount the processing function, which indicates that the first interface is not used, it may be determined that the first interface can be configured as a split detection interface; if the first interface has mounted the handling function, which indicates that the first interface has been used, it may be determined that the first interface cannot be configured as a split detection interface.
Specifically, the performing of the split detection by using the first interface and the split detection packet in S14 specifically includes:
mounting a split detection function on a first interface;
and calling a splitting detection function to perform splitting detection by adopting the splitting detection message.
The splitting detection function may be preset, and then the splitting detection function is called to perform splitting detection by using the splitting detection packet, and the splitting detection function in the related art may be used, which is not described herein again.
In an optional implementation manner, after determining that the first interface can be configured as the split detection interface, the method further includes:
and replacing the first interface identification with the second interface identification.
Therefore, when the next splitting detection is performed, the configured interface identifier can be compared with the first interface identifier of the first interface adopted by the splitting detection, so as to determine whether the next configured interface is the same as the first interface.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a split detection apparatus based on a VSM system according to the present application, which is applied to a main device of the VSM system, and the apparatus includes:
a first determining module 21, configured to determine whether a first interface identifier currently configured is the same as a second interface identifier of an interface adopted by last split detection, where the first interface identifier is an interface identifier of any interface on the master device;
an enabling module 22, configured to enable a first interface corresponding to the first interface identifier and initialize the split detection packet if it is determined that the first interface identifier is different from the second interface identifier;
a second determining module 23, configured to determine whether the first interface can be configured as a split detection interface according to whether the first interface mounts the processing function;
and the detection module 24 is configured to perform splitting detection by using the first interface and the splitting detection packet if it is determined that the first interface can be configured as the splitting detection interface.
According to the technical scheme provided by the application, the interface identifier of any interface on the main device can be configured as the first interface identifier, whether the first interface can be configured as the splitting detection interface is further determined according to whether the first interface corresponding to the first interface identifier is mounted with a processing function, once the first interface can be configured as the splitting detection interface is determined, the first interface and the splitting detection message are adopted for splitting detection, compared with the related technology, the determination mode of the splitting detection interface is more flexible, the method is not limited to using the management interface as the splitting detection interface, therefore, out-of-band management of the management interface cannot be influenced all the time, and further, other devices can be managed normally.
Specifically, the second determining module 23 is configured to determine whether the first interface can be configured as a split detection interface according to whether the first interface is mounted with the processing function, and specifically configured to:
determining whether the first interface mounts the processing function;
if the first interface is determined not to mount the processing function, determining that the first interface can be configured as a split detection interface;
and if the first interface is determined to be mounted with the processing function, determining that the first interface cannot be configured as a split detection interface.
Specifically, the detection module 24 is configured to perform splitting detection by using the first interface and the splitting detection packet, and specifically configured to:
mounting a split detection function on a first interface;
and calling a splitting detection function to perform splitting detection by adopting the splitting detection message.
In an alternative embodiment, the apparatus further comprises:
and the replacing module is used for replacing the first interface identification with the second interface identification after the determining module determines that the first interface can be configured to be the split detection interface.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
An electronic device is further provided in the embodiment of the present application, please refer to fig. 3, which includes a processor 310, a communication interface 320, a memory 330, and a communication bus 340, wherein the processor 310, the communication interface 320, and the memory 330 complete communication with each other through the communication bus 340.
A memory 330 for storing a computer program;
the processor 310, when executing the program stored in the memory 330, implements the following steps:
determining whether a first interface identifier configured currently is the same as a second interface identifier of an interface adopted by last split detection, wherein the first interface identifier is an interface identifier of any interface on the main device;
if the first interface identifier is different from the second interface identifier, enabling a first interface corresponding to the first interface identifier, and initializing a split detection message;
determining whether the first interface can be configured as a split detection interface according to whether the first interface is mounted with a processing function;
and if the first interface can be configured to be the splitting detection interface, splitting detection is carried out by adopting the first interface and the splitting detection message.
The communication interface 320 is used for communication between the above-described electronic device and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
According to the technical scheme provided by the application, the interface identifier of any interface on the main device can be configured as the first interface identifier, whether the first interface can be configured as the splitting detection interface is further determined according to whether the first interface corresponding to the first interface identifier is mounted with a processing function, once the first interface can be configured as the splitting detection interface is determined, the first interface and the splitting detection message are adopted for splitting detection, compared with the related technology, the determination mode of the splitting detection interface is more flexible, the method is not limited to using the management interface as the splitting detection interface, therefore, out-of-band management of the management interface cannot be influenced all the time, and further, other devices can be managed normally.
Accordingly, the present application further provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to perform the VSM system-based splitting detection method described in any of the above embodiments.
According to the technical scheme provided by the application, the interface identifier of any interface on the main device can be configured as the first interface identifier, whether the first interface can be configured as the splitting detection interface is further determined according to whether the first interface corresponding to the first interface identifier is mounted with a processing function, once the first interface can be configured as the splitting detection interface is determined, the first interface and the splitting detection message are adopted for splitting detection, compared with the related technology, the determination mode of the splitting detection interface is more flexible, the method is not limited to using the management interface as the splitting detection interface, therefore, out-of-band management of the management interface cannot be influenced all the time, and further, other devices can be managed normally.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (8)

1. A Virtual Switch Matrix (VSM) system-based splitting detection method is applied to a main device of the VSM system, and is characterized in that the method comprises the following steps:
determining whether a first interface identifier configured currently is the same as a second interface identifier of an interface adopted by last split detection, wherein the first interface identifier is an interface identifier of any interface on the main device;
if the first interface identifier is different from the second interface identifier, enabling a first interface corresponding to the first interface identifier, and initializing a split detection message;
determining whether the first interface mounts a processing function;
if the first interface is determined not to mount the processing function, determining that the first interface can be configured as a split detection interface;
if the first interface is determined to be mounted with the processing function, determining that the first interface cannot be configured as a split detection interface;
and if the first interface can be configured to be the splitting detection interface, splitting detection is carried out by adopting the first interface and the splitting detection message.
2. The method according to claim 1, wherein performing the split detection using the first interface and the split detection packet specifically comprises:
Mounting a split detection function on the first interface;
and calling the splitting detection function to perform splitting detection by adopting the splitting detection message.
3. The method of any of claims 1-2, wherein after determining that the first interface can be configured as a split detection interface, the method further comprises:
and replacing the second interface identification with the first interface identification.
4. A split detection device based on a VSM system, which is applied to a main device of the VSM system, and is characterized in that the device comprises:
a first determining module, configured to determine whether a first interface identifier currently configured is the same as a second interface identifier of an interface adopted by last split detection, where the first interface identifier is an interface identifier of any interface on the master device;
the enabling module is used for enabling a first interface corresponding to the first interface identifier and initializing a split detection message if the first interface identifier is different from the second interface identifier;
the second determining module is used for determining whether the first interface mounts the processing function or not;
if the first interface is determined not to mount the processing function, determining that the first interface can be configured as a split detection interface;
If the first interface is determined to be mounted with the processing function, determining that the first interface cannot be configured as a split detection interface;
and the detection module is used for performing splitting detection by adopting the first interface and the splitting detection message if the first interface can be configured as the splitting detection interface.
5. The apparatus according to claim 4, wherein the detection module is configured to perform the split detection by using the first interface and the split detection packet, and specifically is configured to:
mounting a split detection function on the first interface;
and calling the splitting detection function to perform splitting detection by adopting the splitting detection message.
6. The apparatus of any of claims 4-5, further comprising:
a replacing module, configured to replace the second interface identifier with the first interface identifier after the determining module determines that the first interface can be configured as a split detection interface.
7. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
A memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-3 when executing a program stored on a memory.
8. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-3.
CN202010356295.1A 2020-04-29 2020-04-29 Splitting detection method and device based on VSM system Active CN111585838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010356295.1A CN111585838B (en) 2020-04-29 2020-04-29 Splitting detection method and device based on VSM system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010356295.1A CN111585838B (en) 2020-04-29 2020-04-29 Splitting detection method and device based on VSM system

Publications (2)

Publication Number Publication Date
CN111585838A CN111585838A (en) 2020-08-25
CN111585838B true CN111585838B (en) 2021-12-24

Family

ID=72115029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010356295.1A Active CN111585838B (en) 2020-04-29 2020-04-29 Splitting detection method and device based on VSM system

Country Status (1)

Country Link
CN (1) CN111585838B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115348156A (en) * 2022-07-01 2022-11-15 超聚变数字技术有限公司 Method, equipment and storage medium for processing double-master fault

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364902A (en) * 2007-08-09 2009-02-11 英业达股份有限公司 Network card test method
CN100596080C (en) * 2007-09-19 2010-03-24 华为技术有限公司 Method, equipment and system for testing configuration mark of access equipment
CN205281475U (en) * 2015-12-18 2016-06-01 杭州士兰微电子股份有限公司 Program memory's controlling means and treater system thereof
CN107368406A (en) * 2016-05-11 2017-11-21 阿里巴巴集团控股有限公司 The method, apparatus and equipment of test application program
CN106534399B (en) * 2016-11-22 2019-08-06 杭州迪普科技股份有限公司 The detection method and device of VSM division

Also Published As

Publication number Publication date
CN111585838A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
JP5521620B2 (en) Relay device, virtual machine system, and relay method
US8886862B2 (en) Virtualization of interrupts
CN102870377A (en) Monitoring method and device for virtual port
CN106502814B (en) Method and device for recording error information of PCIE (peripheral component interface express) equipment
CN107666493B (en) Database configuration method and equipment thereof
EP3522449B1 (en) Service state transition method and device
CN111526225A (en) Session management method and device
CN111585838B (en) Splitting detection method and device based on VSM system
CN103347031B (en) A kind of method and apparatus taking precautions against ARP message aggression
CN111092828B (en) Network operation method, device, equipment and storage medium
CN115794317A (en) Processing method, device, equipment and medium based on virtual machine
CN109815065B (en) Main-standby switching method and device for dual computers and electronic equipment
CN109756490B (en) MDC (media data center) implementation method and device
CN117785440A (en) Abnormal process processing method, related device, equipment and storage medium
CN106502841A (en) Data back up method and device
CN113438101B (en) URPF configuration method, computer program product and frame type equipment
CN106533882B (en) Message processing method and device
CN110808909B (en) Message processing method and device across virtual systems
CN110300068B (en) ARP resource management method and device and electronic equipment
US10133647B2 (en) Operating a computer system in an operating system test mode in which an interrupt is generated in response to a memory page being available in physical memory but not pinned in virtual memory
CN110912837B (en) VSM system-based main/standby switching method and device
CN110896378B (en) Network traffic forwarding method and device, electronic equipment and machine-readable storage medium
CN108985397B (en) Method and device for inquiring Bond information and computer storage medium
CN111698141B (en) Message forwarding method and device
CN108965169B (en) Message transmission method, network card controller, network card and electronic equipment

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