CN112995809B - Control method and device of FC switch, FC switch and storage medium - Google Patents

Control method and device of FC switch, FC switch and storage medium Download PDF

Info

Publication number
CN112995809B
CN112995809B CN202110433557.4A CN202110433557A CN112995809B CN 112995809 B CN112995809 B CN 112995809B CN 202110433557 A CN202110433557 A CN 202110433557A CN 112995809 B CN112995809 B CN 112995809B
Authority
CN
China
Prior art keywords
data
switch
output
monitoring
input
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
CN202110433557.4A
Other languages
Chinese (zh)
Other versions
CN112995809A (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.)
Beijing Tasson Science and Technology Co Ltd
Original Assignee
Beijing Tasson Science and Technology 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 Beijing Tasson Science and Technology Co Ltd filed Critical Beijing Tasson Science and Technology Co Ltd
Priority to CN202110433557.4A priority Critical patent/CN112995809B/en
Publication of CN112995809A publication Critical patent/CN112995809A/en
Priority to PCT/CN2021/119671 priority patent/WO2022222370A1/en
Application granted granted Critical
Publication of CN112995809B publication Critical patent/CN112995809B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0083Testing; Monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a control method and a control device of an FC switch, the FC switch and a storage medium, wherein the control method comprises the following steps: acquiring a data monitoring instruction; setting the fiber channel FC switch into a data monitoring mode according to the data monitoring instruction; in the data monitoring mode, setting a data output port of the FC switch as a monitoring port, and monitoring input data from a data input register and monitoring output data from a data output register in a polling mode; and the data input port and the data output port of the FC switch are also used for carrying out data exchange in a data exchange mode. The invention can monitor the multi-channel data of the FC switch on the premise of not additionally increasing the monitoring port.

Description

Control method and device of FC switch, FC switch and storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for controlling an FC switch, and a storage medium.
Background
The Fiber Channel (FC) is a high-speed serial transmission bus, and has the advantages of dual advantages of a Channel and a network, high bandwidth, high reliability, electromagnetic interference resistance and the like, so that a very stable and reliable Fiber connection can be provided, and a large-scale data transmission and communication network can be easily constructed. The FC-AE standard is a group of protocol families applied to avionic environments, is mainly used for data communication among various devices under avionics and transmitting data such as videos, finger controls, instruments and meters, sensors and the like, and is widely applied to the FC-AE network at present.
The FC switch is used as a core device in the FC network, plays a decisive role in data exchange of the whole FC network, and therefore has great significance in monitoring and analyzing data exchanged by the FC switch. However, the current method for monitoring the input and output data of the switch includes: 1. monitoring is performed by using an optical splitter. The optical branching unit is used for monitoring, the implementation mode is simple, extra setting is not needed for the switch, and the defect that only one path of port can be monitored, and multi-path data cannot be monitored is overcome. 2. The FC switch adds an additional monitor port. The monitoring of the multi-path input and output data can be realized by adopting a mode of increasing the monitoring port, and the defects are that: the FC port can only be used as a monitoring port, and the port has no effect when the monitoring function is not needed; when monitoring the super bandwidth, the frame loss of the monitoring data occurs.
Disclosure of Invention
The invention provides a control method and a control device of an FC (fiber channel) switch, the FC switch and a storage medium, which are used for solving the defects that the FC switch in the prior art adopts an optical splitter and an additional monitoring port is added and realizing multipath data monitoring on the FC switch on the premise of not additionally adding the monitoring port.
The invention provides a control method of an FC switch, which comprises the following steps: acquiring a data monitoring instruction; setting the fiber channel FC switch into a data monitoring mode according to the data monitoring instruction; in the data monitoring mode, setting a data output port of the FC switch as a monitoring port, and monitoring input data from a data input register and monitoring output data from a data output register in a polling mode; and the data output port of the FC switch is also used for carrying out data exchange in a data exchange mode.
The control method of the FC switch provided by the invention further comprises the following steps: extracting data screening conditions from the data monitoring instructions; and monitoring the input data and the output data according to the data screening conditions.
According to the control method of the FC switch provided by the invention, input data is monitored from a data input register and output data is monitored from a data output register in a polling mode, and the control method comprises the following steps: acquiring the input data from the data input register and storing the input data into a plurality of input buffers; acquiring the output data from the data output register and storing the output data into a plurality of output buffers; and acquiring a polling instruction, and polling and acquiring the input data and the output data from the plurality of input buffers and the plurality of output buffers according to the polling instruction.
According to the control method of the FC switch provided by the present invention, polling from the plurality of input buffers and the plurality of output buffers according to the polling instruction to acquire the input data and the output data, the method includes: determining a first target cache from the plurality of input caches and the plurality of output caches according to the polling instruction; detecting whether the first target cache is empty data; if the first target cache is empty data, determining a second target cache from the plurality of input caches and the plurality of output caches, and acquiring data from the second target cache; polling for data from the plurality of input buffers and the plurality of output buffers until the FC switch exits the data monitoring mode.
According to the control method of the FC switch provided by the invention, the plurality of data input buffers are a plurality of first-in first-out buffer queues, and the plurality of data output buffers are a plurality of first-in first-out buffer queues.
The control method of the FC switch provided by the invention further comprises the following steps: acquiring a data exchange instruction; setting the FC switch into a data exchange mode according to the data exchange instruction; and in the data exchange mode, setting a data input port and a data output port of the FC switch as data exchange ports.
According to the control method of the FC switch provided by the invention, the data screening condition comprises a destination address identifier DID, an address identifier SID, a data structure TYPE TYPE, a routing control R _ CTL and an anonymous user message address identifier ASM _ ID.
The present invention also provides a control device for an FC switch, comprising: the acquisition module is used for acquiring a data monitoring instruction; the control processing module is used for setting the fiber channel FC switch into a data monitoring mode according to the data monitoring instruction; the control processing module is further configured to set a data output port of the FC switch as a monitor port in the data monitoring mode, and monitor input data from the data input register and output data from the data output register in a polling manner; and the data input port and the data output port of the FC switch are also used for carrying out data exchange in a data exchange mode.
According to the control device of the FC switch provided by the present invention, the control processing module is configured to extract a data screening condition from the data monitoring instruction, and monitor the input data and the output data according to the data screening condition.
According to the control device of the FC switch provided by the present invention, the control processing module is configured to obtain the input data from the data input register, store the input data in a plurality of input buffers, obtain the output data from the data output register, store the output data in a plurality of output buffers, further obtain a polling instruction, and poll and obtain the input data and the output data from the plurality of input buffers and the plurality of output buffers according to the polling instruction.
According to the control device of the FC switch provided by the present invention, the control processing module is configured to determine a first target cache from the plurality of input caches and the plurality of output caches according to the polling instruction, and detect whether the first target cache is empty data; if the first target cache is empty data, the control processing module determines a second target cache from the plurality of input caches and the plurality of output caches, and acquires data from the second target cache; the control processing module is further configured to poll and acquire data from the plurality of input buffers and the plurality of output buffers until the FC switch exits the data monitoring mode.
According to the control device of the FC switch provided by the present invention, the plurality of data input buffers are a plurality of first-in first-out buffer queues, and the plurality of data output buffers are a plurality of first-in first-out buffer queues.
According to the control device of the FC switch provided by the present invention, the obtaining module is further configured to obtain a data exchange instruction; the control processing module is used for setting the FC switch into a data exchange mode according to the data exchange instruction; and the control processing module is used for setting the data input port and the data output port of the FC switch as data exchange ports in the data exchange mode.
According to the control device of the FC switch provided by the present invention, the data filtering condition includes DID, SID, TYPE, R _ CTRL, and ASM _ ID.
The invention also provides a control device of the FC switch, which comprises the control device of the FC switch.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the control method of the FC switch as described in any one of the above.
The FC switch control method, the FC switch control device, the FC switch and the storage medium adopt an FC switch port logic and FC monitoring logic integrated design, control the FC switch to enter a data monitoring mode according to a data monitoring instruction, can monitor input data and output data in the data monitoring mode, can selectively filter the monitoring data, realize data monitoring on the FC switch, and particularly select a plurality of FC ports to be configured as monitoring ports in the super-bandwidth; or the FC switch is configured as a common switch port for data exchange, so that the flexibility of the FC switch is improved, the recording and analyzing capability of the FC switch port data is improved, and the problem troubleshooting is facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a control method of an FC switch provided by the present invention;
FIG. 2 is a schematic diagram of data monitoring in one example of the invention;
fig. 3 is a block diagram showing a configuration of a control device of the FC switch according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be appreciated that reference throughout this specification to "an embodiment" or "one embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrase "in an embodiment" or "in one embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In the description of the present invention, it is to be understood that the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it is to be noted that, unless otherwise explicitly specified or limited, the term "connected" is to be interpreted broadly, e.g. as either directly or indirectly through intervening media. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
The control method of the FC switch of the present invention is described below with reference to fig. 1 to 2.
Fig. 1 is a schematic flow chart of a control method of an FC switch provided in the present invention. As shown in fig. 1, the method for controlling an FC switch provided by the present invention includes:
s1: and acquiring a data monitoring instruction.
Specifically, the user terminal may send the data monitoring instruction to the FC switch, or the FC switch may automatically generate the data monitoring instruction according to a system policy when a preset FC switch meets a preset condition. Illustratively, the preset condition may be when the FC switch is out of bandwidth.
S2: and setting the FC switch into a data monitoring mode according to the data monitoring instruction.
S3: in the data monitoring mode, a data output port of the FC switch is set as a monitoring port, and input data is monitored from the data input register and output data is monitored from the data output register by polling. And the data output port of the FC switch is also used for carrying out data exchange in a data exchange mode.
In one embodiment of the present invention, step S3 includes:
s3-1: input data is obtained from the data input registers and stored in a plurality of input buffers.
Fig. 2 is a schematic diagram of data monitoring in one example of the invention. As shown in fig. 2, the FC switch is provided with n channels, n being an integer greater than 1. In the monitoring mode, the data input register may enable the n channels, so as to monitor input data of the n channels, and then store data in the data input register into the plurality of buffers, respectively.
S3-2: and acquiring output data from the data output register and storing the output data into a plurality of output buffers.
Referring to fig. 2, in the monitoring mode, the data output register may enable n channels, so as to monitor output data of the n channels, and then store the data in the data output register into a plurality of buffers, respectively.
It should be noted that, the embodiment does not limit the sequential execution relationship between the step S3-1 and the step S3-2, that is, the step S3-1 may be executed first, and then the step S3-2 is executed, or the step S3-2 may be executed first, and then the step S3-1 is executed.
S3-3: and acquiring a polling instruction, and polling and acquiring the input data and the output data from the plurality of input buffers and the plurality of output buffers according to the polling instruction.
In one embodiment of the present invention, step S3-3 includes: determining a first target cache from the plurality of input caches and the plurality of output caches according to the polling instruction; detecting whether the first target cache is empty data or not; if the first target cache is empty data, determining a second target cache from the plurality of input caches and the plurality of output caches, and acquiring data from the second target cache; data is polled from the plurality of input buffers and the plurality of output buffers until the FC switch exits the data monitoring mode.
Specifically, in this embodiment, a distributed polling algorithm is adopted, the FC switch sequentially and circularly schedules each input buffer queue and each output buffer queue according to the distributed polling algorithm, and if a next empty buffer queue is encountered, the empty output buffer queue is skipped over, and a next non-empty buffer queue is found. By the polling mode, each buffer queue fairly occupies the output bandwidth, and the condition that the queue cannot respond for a long time can be avoided.
In an embodiment of the present invention, the method for controlling an FC switch further includes: acquiring a data exchange instruction; setting the FC switch into a data exchange mode according to the data exchange instruction; in the data switching mode, a data input port and a data output port of the FC switch are set as data switching ports.
Specifically, when the FC switch is required to perform data exchange, a data exchange instruction may be sent to the FC switch, or the FC switch may automatically generate the data exchange instruction according to a preset policy when a preset condition is satisfied, the FC switch enters a data exchange mode according to the data exchange instruction, and in the data exchange mode, a data input port and a data output port of the FC switch are set as data exchange ports, so as to perform data exchange.
In an embodiment of the present invention, the method for controlling an FC switch further includes: extracting data screening conditions from the data monitoring instructions; and monitoring input data and the output data according to data screening conditions. The data filtering conditions include DID, SID, TYPE, R _ CTRL, ASM _ ID, and the like.
The control method of the FC switch provided by the invention adopts the integrated design of the FC switch port logic and the FC monitoring logic, controls the FC switch to enter a data monitoring mode according to a data monitoring instruction, can monitor input data and output data in the data monitoring mode, can selectively filter the monitoring data, realizes the data monitoring of the FC switch, and particularly selects a plurality of FC ports to be configured as monitoring ports in the super-bandwidth; or the FC switch is configured as a common switch port for data exchange, so that the flexibility of the FC switch is improved, the recording and analyzing capability of the FC switch port data is improved, and the problem troubleshooting is facilitated.
The following describes a control apparatus of an FC switch provided by the present invention, and the control apparatus of the FC switch described below and the control method of the FC switch described above may be referred to in correspondence with each other.
Fig. 3 is a block diagram showing a configuration of a control device of the FC switch according to the present invention. As shown in fig. 3, the control apparatus of an FC switch according to an embodiment of the present invention includes: an acquisition module 310 and a control processing module 320.
The obtaining module 310 is configured to obtain a data monitoring instruction. The control processing module 320 is configured to set the fibre channel FC switch to the data monitoring mode according to the data monitoring instruction. The control processing module 320 is further configured to set the data output port of the FC switch as a monitor port in the data monitor mode, and monitor input data from the data input register and output data from the data output register in a polling manner. And the data output port of the FC switch is also used for carrying out data exchange in a data exchange mode.
In one embodiment of the present invention, the control processing module 320 is configured to extract a data filtering condition from the data monitoring instruction and monitor the input data and the output data according to the data filtering condition.
In one embodiment of the present invention, the control processing module 320 is configured to obtain input data from the data input register and store the input data in a plurality of input buffers. The control processing module 320 is configured to obtain output data from the data output register and store the output data in a plurality of output buffers. The control processing module 320 is further configured to obtain a polling command, and poll from the plurality of input buffers and the plurality of output buffers to obtain input data and output data according to the polling command.
In an embodiment of the present invention, the control processing module 320 is configured to determine a first target cache from the plurality of input caches and the plurality of output caches according to the polling instruction, and detect whether the first target cache is empty data; if the first target cache is empty data, the control processing module 320 determines a second target cache from the plurality of input caches and the plurality of output caches, and obtains data from the second target cache. The control processing module 320 is further configured to poll the plurality of input buffers and the plurality of output buffers to obtain data until the FC switch exits the data monitoring mode.
In one embodiment of the present invention, the plurality of data input buffers are a plurality of first-in first-out buffer queues, and the plurality of data output buffers are a plurality of first-in first-out buffer queues.
In an embodiment of the present invention, the obtaining module 310 is further configured to obtain a data exchange instruction. The control processing module 320 is configured to set the FC switch to a data exchange mode according to the data exchange instruction. The control processing module 320 is configured to set the data input port and the data output port of the FC switch as data exchange ports in the data exchange mode.
In one embodiment of the invention, the data screening conditions include DID, SID, TYPE, R _ CTRL, ASM _ ID.
It should be noted that, the specific implementation of the control apparatus of the FC switch in the embodiment of the present invention is similar to the specific implementation of the control method of the FC switch in the embodiment of the present invention, and specific reference is specifically made to the description of the control method portion of the FC switch, and details are not repeated for reducing redundancy.
On the other hand, the invention also provides an FC switch which comprises the control device of the FC switch.
It should be noted that other configurations and functions of the control device of the FC switch according to the embodiment of the present invention are known to those skilled in the art, and are not described in detail for reducing redundancy.
In an embodiment of the invention, the processor may be an integrated circuit chip having signal processing capability. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The processor reads the information in the storage medium and completes the steps of the method in combination with the hardware.
Furthermore, the logic instructions in the memory may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the control method of the FC switch provided in each of the above aspects, the method including: acquiring a data monitoring instruction; setting the fiber channel FC switch into a data monitoring mode according to the data monitoring instruction; in the data monitoring mode, setting a data output port of the FC switch as a monitoring port, and monitoring input data from a data input register and monitoring output data from a data output register in a polling mode; and the data input port and the data output port of the FC switch are also used for carrying out data exchange in a data exchange mode.
The storage medium may be a memory, for example, which may be volatile memory or nonvolatile memory, or which may include both volatile and nonvolatile memory.
The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory.
The volatile Memory may be a Random Access Memory (RAM) which serves as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (ddr Data Rate SDRAM), Enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM).
The storage media described in connection with the embodiments of the invention are intended to comprise, without being limited to, these and any other suitable types of memory.
Those skilled in the art will appreciate that the functionality described in the present invention may be implemented in a combination of hardware and software in one or more of the examples described above. When software is applied, the corresponding functionality may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
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 may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for controlling an FC switch, comprising:
acquiring a data monitoring instruction;
setting the fiber channel FC switch into a data monitoring mode according to the data monitoring instruction;
in the data monitoring mode, setting a data output port of the FC switch as a monitoring port, and monitoring input data from a data input register and monitoring output data from a data output register in a polling mode; confirming that the multipath port of the FC switch is a monitoring port when the bandwidth is exceeded;
the data output port of the FC switch is also used for carrying out data exchange in a data exchange mode;
wherein, still include:
extracting data screening conditions from the data monitoring instructions;
monitoring the input data and the output data according to the data screening conditions;
the method further comprises the following steps:
acquiring a data exchange instruction;
setting the FC switch into a data exchange mode according to the data exchange instruction;
and in the data exchange mode, setting a data input port and a data output port of the FC switch as data exchange ports.
2. The FC switch control method according to claim 1, wherein the monitoring of the input data from the data input register and the monitoring of the output data from the data output register by polling includes:
acquiring the input data from the data input register and storing the input data into a plurality of input buffers;
acquiring the output data from the data output register and storing the output data into a plurality of output buffers;
and acquiring a polling instruction, and polling and acquiring the input data and the output data from the plurality of input buffers and the plurality of output buffers according to the polling instruction.
3. The FC switch control method according to claim 2, wherein polling the plurality of input buffers and the plurality of output buffers according to the polling instruction to obtain the input data and the output data includes:
determining a first target cache from the plurality of input caches and the plurality of output caches according to the polling instruction;
detecting whether the first target cache is empty data;
if the first target cache is empty data, determining a second target cache from the plurality of input caches and the plurality of output caches, and acquiring data from the second target cache;
polling for data from the plurality of input buffers and the plurality of output buffers until the FC switch exits the data monitoring mode.
4. The method of claim 3, wherein the plurality of input buffers are a plurality of first-in-first-out buffer queues and the plurality of output buffers are a plurality of first-in-first-out buffer queues.
5. The FC switch control method of claim 1, wherein the data screening condition includes a destination address identifier DID, an address identifier SID, a data structure TYPE, a routing control R _ CTL, an anonymous user message address identifier ASM _ ID.
6. A control apparatus of an FC switch, comprising:
the acquisition module is used for acquiring a data monitoring instruction;
the control processing module is used for setting the fiber channel FC switch into a data monitoring mode according to the data monitoring instruction; the control processing module is further configured to set a data output port of the FC switch as a monitor port in the data monitoring mode, and monitor input data from the data input register and output data from the data output register in a polling manner; confirming that the multipath port of the FC switch is a monitoring port when the bandwidth is exceeded;
the data input port and the data output port of the FC switch are also used for carrying out data exchange in a data exchange mode;
the control processing module is further configured to:
extracting data screening conditions from the data monitoring instructions;
monitoring the input data and the output data according to the data screening conditions;
the apparatus is further configured to:
acquiring a data exchange instruction;
setting the FC switch into a data exchange mode according to the data exchange instruction;
and in the data exchange mode, setting a data input port and a data output port of the FC switch as data exchange ports.
7. An FC switch comprising the control apparatus of the FC switch of claim 6.
8. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the control method of the FC switch according to any one of claims 1 to 5.
CN202110433557.4A 2021-04-22 2021-04-22 Control method and device of FC switch, FC switch and storage medium Active CN112995809B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110433557.4A CN112995809B (en) 2021-04-22 2021-04-22 Control method and device of FC switch, FC switch and storage medium
PCT/CN2021/119671 WO2022222370A1 (en) 2021-04-22 2021-09-22 Control method and apparatus for fc switch, and fc switch and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110433557.4A CN112995809B (en) 2021-04-22 2021-04-22 Control method and device of FC switch, FC switch and storage medium

Publications (2)

Publication Number Publication Date
CN112995809A CN112995809A (en) 2021-06-18
CN112995809B true CN112995809B (en) 2021-11-23

Family

ID=76341631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110433557.4A Active CN112995809B (en) 2021-04-22 2021-04-22 Control method and device of FC switch, FC switch and storage medium

Country Status (2)

Country Link
CN (1) CN112995809B (en)
WO (1) WO2022222370A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995809B (en) * 2021-04-22 2021-11-23 北京国科天迅科技有限公司 Control method and device of FC switch, FC switch and storage medium
CN114124848B (en) * 2021-11-02 2024-04-16 西安云维智联科技有限公司 Switch multi-monitoring port method based on VLID monitoring

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009252029A (en) * 2008-04-08 2009-10-29 Nec Corp Fiber channel switch monitoring device, method and program
CN103560931A (en) * 2013-10-30 2014-02-05 中国航空工业集团公司第六三一研究所 Monitoring scheme switching method based on FC switch
CN105450475A (en) * 2015-12-07 2016-03-30 中国航空工业集团公司西安航空计算技术研究所 FC switch test device
CN108616371A (en) * 2016-12-12 2018-10-02 中国航空工业集团公司西安航空计算技术研究所 A kind of port monitoring method based on FC interchangers

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7826697B2 (en) * 2008-08-19 2010-11-02 Olympus Corporation System and method for asymmetrical fiber spacing for wavelength selective switches
US9608909B1 (en) * 2015-06-08 2017-03-28 Cisco Technology, Inc. Technique for mitigating effects of slow or stuck virtual machines in fibre channel communications networks
CN105515903A (en) * 2015-12-07 2016-04-20 中国航空工业集团公司西安航空计算技术研究所 Test method of monitoring functions of FC switch
CN106357547A (en) * 2016-09-08 2017-01-25 重庆邮电大学 Software-defined network congestion control algorithm based on stream segmentation
CN111131936B (en) * 2019-12-28 2022-07-08 苏州浪潮智能科技有限公司 Optical module monitoring method, monitoring device, switch and storage medium
CN111858178B (en) * 2020-07-24 2023-01-06 苏州浪潮智能科技有限公司 Method, device and equipment for judging power supply starting type and readable medium
CN112995809B (en) * 2021-04-22 2021-11-23 北京国科天迅科技有限公司 Control method and device of FC switch, FC switch and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009252029A (en) * 2008-04-08 2009-10-29 Nec Corp Fiber channel switch monitoring device, method and program
CN103560931A (en) * 2013-10-30 2014-02-05 中国航空工业集团公司第六三一研究所 Monitoring scheme switching method based on FC switch
CN105450475A (en) * 2015-12-07 2016-03-30 中国航空工业集团公司西安航空计算技术研究所 FC switch test device
CN108616371A (en) * 2016-12-12 2018-10-02 中国航空工业集团公司西安航空计算技术研究所 A kind of port monitoring method based on FC interchangers

Also Published As

Publication number Publication date
WO2022222370A1 (en) 2022-10-27
CN112995809A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
KR102317523B1 (en) Packet control method and network device
CN112995809B (en) Control method and device of FC switch, FC switch and storage medium
US8996720B2 (en) Method and apparatus for mirroring frames to a remote diagnostic system
US7817659B2 (en) Method and apparatus for aggregating input data streams
US20030112818A1 (en) Deferred queuing in a buffered switch
CN111107017A (en) Method, equipment and storage medium for processing switch message congestion
US20180063007A1 (en) Microburst buffering circuit
CN113746782A (en) Message processing method, device and related equipment
US7330481B2 (en) Highly channelized port polling in a telecommunications switch
US20180069790A1 (en) Packet transfer device and packet transfer method
US7054962B2 (en) Embedded system having broadcast data storing controller
US20160315883A1 (en) Packet control method, transmission apparatus, and storage medium
US20160285767A1 (en) Technologies for network packet pacing during segmentation operations
CN117499351A (en) Message forwarding device and method, communication chip and network equipment
US20220191144A1 (en) System and method for low latency network switching
JP3843864B2 (en) Line connection apparatus and congestion state monitoring method of the apparatus
CN112737977B (en) Data packet processing method and device
CN113904980B (en) Channel switching method, device, switch and storage medium
US20030172176A1 (en) Embedded system having multiple data receiving channels
US20190068475A1 (en) System and method for the utilization of mesh networks and distributed data buffering to increase data retention
CN116016713A (en) Message transmission method, device, network equipment and readable storage medium
CN117880225A (en) Network monitoring method, device, switch, computer equipment and storage medium
CN114500385A (en) Method and system for realizing gigabit Ethernet data traffic shaping through FPGA
CN115118568A (en) Network management method, device and system
CN115242682A (en) Message processing method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant