Movatterモバイル変換


[0]ホーム

URL:


CN115604206B - Universal method, device, electronic device and storage medium for obtaining terminal connection status - Google Patents

Universal method, device, electronic device and storage medium for obtaining terminal connection status
Download PDF

Info

Publication number
CN115604206B
CN115604206BCN202211235549.XACN202211235549ACN115604206BCN 115604206 BCN115604206 BCN 115604206BCN 202211235549 ACN202211235549 ACN 202211235549ACN 115604206 BCN115604206 BCN 115604206B
Authority
CN
China
Prior art keywords
terminal
frame
request
information
main switch
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
CN202211235549.XA
Other languages
Chinese (zh)
Other versions
CN115604206A (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.)
Technology and Engineering Center for Space Utilization of CAS
Original Assignee
Technology and Engineering Center for Space Utilization of CAS
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 Technology and Engineering Center for Space Utilization of CASfiledCriticalTechnology and Engineering Center for Space Utilization of CAS
Priority to CN202211235549.XApriorityCriticalpatent/CN115604206B/en
Publication of CN115604206ApublicationCriticalpatent/CN115604206A/en
Application grantedgrantedCritical
Publication of CN115604206BpublicationCriticalpatent/CN115604206B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention relates to the technical field of protocol communication and discloses a general acquisition method of a terminal connection state based on an FC switching network, which comprises the steps of receiving a request connection frame of a terminal, and sending the request connection frame to a pre-constructed main switch; judging whether the request connection frame is sent to the main switch for the first time, if the request connection frame is sent to the main switch for the first time, extracting terminal information in the main switch, packaging according to the terminal information to obtain a request response frame, if the request connection frame is not sent to the main switch for the first time, not responding to the request connection frame, and returning the request response frame to the terminal to obtain terminal connection state information. The invention also provides a terminal connection state general acquisition device, electronic equipment and a storage medium based on the FC switching network. The invention can solve the problem that the terminal can not be accessed to the switching network universally due to the diversity of FC protocol clusters.

Description

General acquisition method and device for terminal connection state, electronic equipment and storage medium
Technical Field
The present invention relates to the field of protocol communications technologies, and in particular, to a method and apparatus for obtaining a terminal connection state, an electronic device, and a computer readable storage medium based on an FC switching network.
Background
The Fibre Channel (FC) protocol is a high-speed serial communication protocol, and has the characteristics of high bandwidth, high reliability, low delay, flexible topology and openness. In order to meet the application requirements of the FC protocol in the avionic communication system, a plurality of groups of FC protocol clusters suitable for the avionic environment are established.
However, at present, a terminal in the aerospace field is connected to a switch in an FC switching network, and static configuration is used, namely network operation parameters are manually designated before initialization, and equipment information is identified according to the initial operation parameters after the system is started, so that network communication is performed. There are also access modes based on dynamic configuration, mainly accomplished by DHCP protocol and WINS services. The DHCP protocol is used for dynamically allocating an IP address to the terminal by the server, and the WINS service is used for centrally managing access information of the terminal in the network, so as to query information of the destination computer during communication.
The static configuration and the dynamic configuration can effectively finish the terminal access to the FC switching network, but are limited by the diversity of FC protocol clusters, and a general method for meeting the requirement of accessing terminals of a plurality of groups of FC protocol clusters to the FC switching network does not exist at present.
Disclosure of Invention
The invention provides a method and a device for acquiring a terminal connection state in a universal manner based on an FC switching network and a computer readable storage medium, and mainly aims to solve the problem that the terminal cannot be accessed to the FC switching network in a universal manner due to diversity of FC protocol clusters.
In order to achieve the above object, the present invention provides a method for obtaining a terminal connection state based on an FC switching network, including:
receiving a request connection frame of a terminal, and sending the request connection frame to a pre-built main switch;
Judging whether the request connection frame is sent to the main switch for the first time;
if the request connection frame is sent to the main switch for the first time, extracting terminal information in the main switch, and packaging according to the terminal information to obtain a request response frame;
if the request connection frame is not sent to the master switch for the first time, not responding to the request connection frame;
And the request response frame is transmitted back to the terminal to obtain terminal connection state information.
Optionally, the method for generating the connection request frame of the receiving terminal includes:
Generating a universal frame according to the structure information of the pre-constructed universal frame and the FC network standard;
Changing the frame type of the universal frame to obtain a request connection frame with information to be perfected;
Acquiring the ID of the main switch and the ID of the terminal;
And combining the ID of the main switch and the ID of the terminal to the request connection frame with information to be perfected to obtain the request connection frame.
Optionally, the changing the frame type of the generic frame to obtain a request connection frame with information to be perfected includes:
Acquiring a frame type value table, and searching a frame type value corresponding to the request connection frame in the frame type value table;
And extracting the frame number of the request connection frame sent by the terminal, and filling the frame number and the frame type value into the universal frame to obtain the request connection frame with information to be perfected.
Optionally, the determining whether the request connection frame is sent to the master switch for the first time includes:
Extracting the frame number and the ID of the terminal from the request connection frame;
And judging whether the connection request frame is sent to the master switch for the first time according to whether the master switch has the historical frame number and the ID which are the same as the frame number and the ID of the terminal.
Optionally, the method for generating the terminal information includes:
Transmitting a login protocol of a terminal to a switch connected with the terminal;
And generating an allocation address of the terminal in the switch, filling the allocation address into a pre-constructed login response frame, transmitting the pre-constructed login response frame back to the terminal, simultaneously acquiring terminal information comprising a terminal name, a terminal address and a connected switch identifier of the terminal, and storing the terminal information into a whole network terminal access information table of the main switch to obtain the terminal information.
Optionally, the encapsulating according to the terminal information to obtain a request response frame includes:
generating an original response frame according to the structure information of the universal frame and the FC network standard;
Changing the frame type of the original response frame to obtain a request response frame with information to be perfected;
and packaging the terminal information to the request response frame with the information to be perfected to obtain the request response frame.
Optionally, the sending the request connection frame to the pre-built master switch includes:
judging whether the terminal is directly connected with the main switch or not;
If the terminal is directly connected with the main switch, the request connection frame is sent to the main switch;
If the terminal is not directly connected with the main switch, the request connection frame reaches the main switch through a plurality of times of forwarding of the pre-built auxiliary switch.
In order to solve the above problems, the present invention further provides a general terminal connection state acquiring device based on an FC switching network, the device comprising:
the request connection frame sending module is used for receiving a request connection frame of the terminal and sending the request connection frame to a pre-built main switch;
the request connection frame judging module is used for judging whether the request connection frame is sent to the main switch for the first time;
The request response frame generation module is used for extracting terminal information in the main switch if the request connection frame is sent to the main switch for the first time and encapsulating the terminal information to obtain the request response frame;
And the request response frame returning module is used for returning the request response frame to the terminal to obtain the terminal connection state information.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
a memory storing at least one instruction, and
And the processor executes the instructions stored in the memory to realize the general acquisition method for the terminal connection state based on the FC switching network.
In order to solve the above-mentioned problems, the present invention further provides a computer readable storage medium, in which at least one instruction is stored, the at least one instruction being executed by a processor in an electronic device to implement the above-mentioned method for obtaining a terminal connection status general purpose based on an FC switching network.
Based on the background technology, the static configuration and the dynamic configuration can effectively finish the terminal access to the FC switching network, but are limited by the diversity of FC protocol clusters, and a general method for meeting the requirement of accessing the terminals of a plurality of groups of FC protocol clusters to the FC switching network does not exist at present. In order to solve the problem, the switch in the FC switch network is divided into a main switch and a sub switch, wherein the main switch is responsible for maintaining the terminal connection state of the whole network, the sub switch is only responsible for maintaining the terminal connection of the main switch, the connection of any terminal finally depends on the control of the main switch on the terminal connection state of the whole interactive network, when the terminal requests the network connection state, by judging whether the request connection frame is sent to the main switch for the first time, a different response strategy is executed on the request connection frame, if the request connection frame sent by the terminal is sent to the main switch for the first time, the terminal information corresponding to the terminal is obtained, and the request response frame is obtained according to the terminal information package, and if the request connection frame is not sent to the main switch for the first time, the response is not made to the request connection frame, so as to avoid the possibility of repeatedly receiving the request response frame. Therefore, the invention makes the two access strategies into the organic interface, and can maximally realize the phenomenon of terminal access failure caused by different protocols. Therefore, the method, the device, the electronic equipment and the computer readable storage medium for acquiring the terminal connection state based on the FC switching network can solve the problem that the terminal cannot be accessed to the FC switching network universally due to the diversity of FC protocol clusters.
Drawings
Fig. 1 is an interaction diagram of a switch and a terminal based on an FC switching network according to an embodiment of the present invention;
fig. 2 is a data interaction diagram of a terminal access to a switch based on an FC switch network according to another embodiment of the present invention;
Fig. 3 is a flow chart of a general method for obtaining a terminal connection state based on an FC switching network according to an embodiment of the present invention;
FIG. 4 is a detailed flow chart of one of the steps shown in FIG. 3;
fig. 5 is a general frame structure diagram of a general acquisition method for a terminal connection state based on an FC switching network according to an embodiment of the present invention;
fig. 6 is a frame header structure diagram of a general frame of a general acquisition method for a terminal connection state based on an FC switching network according to an embodiment of the present invention;
fig. 7 is a payload format diagram of a request connection frame of a general acquisition method for a terminal connection state based on an FC switching network according to an embodiment of the present invention;
Fig. 8 is a payload format diagram of a request response frame of a general acquisition method for a terminal connection state based on an FC switching network according to an embodiment of the present invention;
FIG. 9 is a functional block diagram of a general acquiring device for terminal connection status based on an FC switching network according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device implementing the method for obtaining a terminal connection status of an FC-based switching network according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the application provides a general acquisition method for a terminal connection state based on an FC switching network. The execution main body of the terminal connection state general acquisition method based on the FC switching network comprises at least one of a server, a terminal and the like which can be configured to execute the method provided by the embodiment of the application. In other words, the method for obtaining the general terminal connection state based on the FC switching network may be performed by software or hardware installed in a terminal device or a server device, where the software may be a blockchain platform. The server side comprises, but is not limited to, a single server, a server cluster, a cloud server or a cloud server cluster and the like.
Before describing in detail an embodiment of the present invention, for ease of understanding and simplicity of terminology, the following definitions are provided:
FC Fiber Channel (fibre Channel)
LOGI Login (communication protocol used when a terminal accesses a switching network, abbreviated as Login switching network communication protocol)
LOGO Logout (communication protocol used when the device exits the switching network, abbreviated as exit switching network communication protocol)
LS_ACC LINK SERVICE ACCEPT (reply frame when a responding party receives a service request)
FC-LS Firber Channel-LINK SERVICES (fibre channel, link service)
NC Network Controller (network controller)
NT Network Terminal
ID Identifier (3 bytes in length) which refers to the unique address Identifier of a device in an FC network
SW Switch (Switch)
FLOGI Fabric Login (Login protocol for establishing connection between terminal and exchange, abbreviated as Login protocol)
LS_REQ LINK STATE Request (network node connection State Request protocol, short connection State Request protocol)
LS_ACK LINK STATE Acknowledges (network node connection State response protocol, abbreviated as connection State response protocol)
FLOGI LS_ACC, which is a frame replied when the switch accepts the FLOGI of the terminal, is called a login response frame for short
LOGO LS_ACC, namely, frame replied when the switch accepts the terminal LOGO, namely, exit response frame for short
ELS Extended LINK SERVISES (Extended Link service)
PLOGI Port Login (Login protocol when connection between two node devices is established)
S_ID Source ID (Source ID, ID of device transmitting FC frame)
D_ID Destination ID (Destination ID, device ID for receiving FC frame)
Cascading ports-ports for interconnection between switches
Payload, herein referring to the contents of the FC frame except for the header and trailer locator, CRC check, header.
In addition, the main application scene of the embodiment of the invention is FC, and the FC is mainly applied to avionic communication systems and is suitable for avionic environments. Protocols that support FC operation of an avionics communication system are referred to as FC protocols, in which there are different terminals and switches at the same time to serve the proper operation of the avionics communication system.
It should be explained that in different FC protocols, the terminal types are different, and the interaction modes between terminals are also different. For example, in the FC-AE-1553 protocol, terminals are divided into a Network Controller (NC) and a Network Terminal (NT), and the interaction modes of the two are command-response type, and in the FC-AE-ASM protocol, the terminals are in an equal relationship, but different FC protocols generally depend on the switching network of fig. 1.
Fig. 1 is a schematic diagram of a conventional FC switching network in which the switching network is relied upon for communication requirements between terminals and switches within the switching network.
It should be explained that, the embodiment of the present invention completes automatic maintenance of the connection state of each terminal in the FC switch network link, and relies on the main switch and the auxiliary switch. The main exchanger is responsible for maintaining the terminal connection state of the whole network, providing a unified interface for other terminals to inquire the terminal connection state in the switching network, the auxiliary exchanger is only responsible for maintaining the terminal connection state of the auxiliary exchanger, and the auxiliary exchanger needs to synchronize the change information to the main exchanger when the terminal connection information of the auxiliary exchanger changes.
In the embodiment of the present invention, a first terminal and a second terminal are taken as examples, and for convenience of description, terminal access information request ends of the first terminal and the second terminal are respectively split, and a process of accessing the first terminal and the second terminal to a switch is described.
It should be sequentially explained that the terminal access information table refers to a set of terminal information that accesses the FC switching network and can normally communicate, and each terminal information includes a terminal name, a terminal address, a connected switch identifier, and the like, and other information can be added according to actual requirements. In the embodiment of the invention, the terminal access information table comprises a whole network and a local branch, wherein the whole network terminal access information table is maintained by a main switch, and the local terminal access information table is maintained by a secondary switch.
Further, when the terminal is started and is accessed to the switching network again after the first time or the connection is disconnected, an address needs to be allocated to the terminal, taking the first terminal as an example, the detailed implementation process includes:
transmitting a login protocol of the first terminal to the master switch;
and generating an allocation address of the first terminal in the main switch, filling the allocation address into the login response frame and transmitting the login response frame back to the first terminal, acquiring terminal information comprising the terminal name, the terminal address and the connected switch identifier of the first terminal, and storing the terminal information into a whole network terminal access information table of the main switch.
In addition, in another embodiment of the present invention, when the first terminal actively exits the switching network, data interaction with the main switch is also required, and the detailed execution process includes:
Based on the exit exchange network communication protocol, generating an exit exchange network communication request at the first terminal and sending the exit exchange network communication request to the main switch;
when the main switch receives the request for exiting the switching network communication, deleting the terminal information of the first terminal in a whole network terminal access information table of the main switch;
and when the terminal information of the first terminal is successfully deleted, generating the exit response frame and feeding back the exit response frame to the first terminal, so as to complete the process of actively exiting the switching network by the first terminal.
Similarly, referring to fig. 2, when the second terminal logs in or out of the switching network, the second terminal corresponds to the auxiliary switch, and is similar to the first terminal, and the main difference is that the second terminal information can be directly written in or deleted from the local terminal access information table of the auxiliary switch. And the second terminal information needs to be connected with the main switch by using the auxiliary switch, and then the second terminal information is inserted or deleted in the whole network terminal access information table of the main switch.
Referring to fig. 3, a flow chart of a general method for obtaining a terminal connection state based on an FC switching network according to an embodiment of the present invention is shown. In this embodiment, taking the first terminal as an example, the method for generally obtaining the terminal connection state based on the FC switching network includes:
s1, receiving a request connection frame of a terminal, and sending the request connection frame to a pre-built main switch;
It should be explained that, only one main switch in the switching network is the other auxiliary switch, the main switch is responsible for maintaining the terminal connection state of the whole network, providing a unified interface for other terminals to inquire the terminal connection state in the switching network, and the auxiliary switch is only responsible for maintaining the terminal connection state of itself, when the terminal connection information of the auxiliary switch changes, the change information needs to be synchronized to the main switch.
In the embodiment of the invention, when the terminal is ready to enter the switching network, the terminal is required to directly execute communication protocol conversion with the switch, and the terminal is not permitted to enter the switching network until the communication protocol conversion requirement is met.
It should be explained that the terminal and the primary switch or the secondary switch both include ls_req: LINK STATE Request (network node connection status Request protocol, abbreviated as connection status Request protocol) and ls_ack: LINK STATE acknowledgement (network node connection status reply protocol, abbreviated as connection status reply protocol).
Specifically, referring to fig. 4, the generating a request connection frame according to the connection state request protocol includes:
s11, generating a universal frame according to the structure information of the pre-constructed universal frame and the FC network standard;
S12, changing the frame type of the universal frame to obtain a request connection frame with information to be perfected;
S13, obtaining the ID of the main switch and the ID of the terminal;
s14, combining the ID of the main switch and the ID of the terminal to the request connection frame with information to be perfected to obtain the request connection frame.
It should be noted that, the generic frame in the present invention is a protocol supporting FC operation avionics communication system, i.e. a generic frame format of FC protocol, where one generic frame format is shown in fig. 5, and mainly includes SOF, CRC, EOF, a generic frame header and data_fields. SOF, CRC, EOF and data_fields are common technical identifiers in the communication Field, and are not described in detail herein.
With reference to fig. 5, the structure of the generic header is further refined, please refer to fig. 6. According to fig. 6, the generic frame header includes r_ctl, d_id, s_id, payload, etc., where d_id is the ID of the device receiving the FC frame, s_id is the ID of the device transmitting the FC frame, r_ctl is set to 0×22, payload is abbreviated as Payload, and in the embodiment of the present invention, refers to other information contents except for SOF, CRC, etc.
In the embodiment of the present invention, the changing the frame type of the generic frame to obtain the request connection frame with information to be perfected includes:
Acquiring a frame type value table, and searching a frame type value corresponding to the request connection frame in the frame type value table;
And extracting the frame number of the request connection frame sent by the terminal, and filling the frame number and the frame type value into the universal frame to obtain the request connection frame with information to be perfected.
In the embodiment of the present invention, the frame type value of the request connection frame is 0xA7.
It should be explained that, the frame number of the request connection frame refers to the req_num field in the payload format of the ls_req frame, which is gradually increased according to the number of times, if the terminal sends the request connection for the first time, the corresponding frame number is 0, and if the terminal sends the request connection for the second time, the corresponding frame number is 1.
In detail, the payload format of the request connection frame is shown in fig. 7. The payload format of the LS_REQ frame is 8 bytes in total. The req_num is a sequence number of the ls_req frame sent by the terminal, and is used for identifying each ls_req frame.
In an embodiment of the present invention, the sending the request connection frame to the pre-constructed master switch includes:
judging whether the terminal is directly connected with the main switch or not;
If the terminal is directly connected with the main switch, the request connection frame is sent to the main switch;
If the terminal is not directly connected with the main switch, the request connection frame reaches the main switch through a plurality of times of forwarding of the pre-built auxiliary switch.
In detail, when the request connection frame needs to be forwarded through the auxiliary switch, the auxiliary switch identifies whether the frame is received for the first time according to the S_ID and the req_Num, if yes, the frame is forwarded from the cascade port, otherwise, the frame is directly discarded. The request connection frame arrives at the primary switch via several forwards of the secondary switch.
S2, judging whether the request connection frame is sent to the main switch for the first time;
In the embodiment of the present invention, the determining whether the connection request frame is sent to the master switch for the first time includes:
Extracting the frame number and the ID of the terminal from the request connection frame;
And judging whether the connection request frame is sent to the master switch for the first time according to whether the master switch has the historical frame number and the ID which are the same as the frame number and the ID of the terminal.
Further, the generating process of the request response frame is similar to that of the request connection frame, and the main difference is that the frame type corresponding to the request response frame in the frame type value table has a frame type value of 0xA7 and a frame type value of 0xA8.
In detail, the payload format of the request response frame is shown in fig. 8. The length of the request response frame depends on the number of pieces containing terminal information. Each piece of terminal connection information in the request response frame includes sw_num (identification of the terminal connection switch), node_id (address of the terminal), and node_name (Name of the terminal).
In the embodiment of the present invention, the judging method for judging whether the request connection frame is sent to the auxiliary switch for the first time is the same as the judging method for judging whether the request connection frame is sent to the main switch for the first time, and mainly checks whether the historical frame number and the historical frame ID which are the same as the frame number and the terminal ID can be found in the auxiliary switch, and will not be described in detail herein.
If the request connection frame is sent to the main switch for the first time, S3 is executed, terminal information in the main switch is extracted, and a request response frame is obtained through encapsulation according to the terminal information;
In the embodiment of the invention, the terminal information can be obtained from the whole network terminal access information table of the host switch, and the terminal information comprises a terminal name, a terminal address, a connected switch identifier and the like, and other information can be added according to actual requirements.
In an embodiment of the present invention, the method for generating terminal information includes:
Transmitting a login protocol of a terminal to a switch connected with the terminal;
And generating an allocation address of the terminal in the switch, filling the allocation address into a pre-constructed login response frame, transmitting the pre-constructed login response frame back to the terminal, simultaneously acquiring terminal information comprising a terminal name, a terminal address and a connected switch identifier of the terminal, and storing the terminal information into a whole network terminal access information table of the main switch to obtain the terminal information.
Since the specific implementation process of writing the terminal information into the local terminal access information table is similar to the foregoing, the description thereof will not be repeated here.
In the embodiment of the present invention, the request response frame is obtained by encapsulating according to the terminal information, including:
generating an original response frame according to the structure information of the universal frame and the FC network standard;
Changing the frame type of the original response frame to obtain a request response frame with information to be perfected;
and packaging the terminal information to the request response frame with the information to be perfected to obtain the request response frame.
It should be explained that, in the embodiment of the present invention, the terminal information is encapsulated into the Payload in the request response frame.
If the request connection frame is not sent to the master switch for the first time, executing S4 without responding to the request connection frame;
It will be appreciated that since there may be multiple routes between two switches, the same request connection frame may be forwarded to the master switch by different routes, resulting in the master switch repeatedly receiving the request connection frame, and thus, there is no need to respond to the request connection frame when it is not first sent to the master switch.
S5, the request response frame is transmitted back to the terminal, and terminal connection state information is obtained.
In detail, when the request response frame needs to be forwarded through the auxiliary switch, the auxiliary switch identifies whether the frame is received for the first time according to the D_ID and the ack_Num, if so, the frame is forwarded from the cascade port, otherwise, the frame is discarded. The request response frame reaches the request end through a plurality of times of forwarding of the auxiliary exchanger. The terminal connection status information includes a set of terminal information that accesses the FC switching network and can normally communicate.
Based on the background technology, the static configuration and the dynamic configuration can effectively finish the terminal access to the FC switching network, but are limited by the diversity of FC protocol clusters, and a general method for meeting the requirement of accessing the terminals of a plurality of groups of FC protocol clusters to the FC switching network does not exist at present. In order to solve the problem, the switch in the FC switch network is divided into a main switch and a sub switch, wherein the main switch is responsible for maintaining the terminal connection state of the whole network, the sub switch is only responsible for maintaining the terminal connection of the main switch, the connection of any terminal finally depends on the control of the main switch on the terminal connection state of the whole interactive network, when the terminal requests the network connection state, by judging whether the request connection frame is sent to the main switch for the first time, a different response strategy is executed on the request connection frame, if the request connection frame sent by the terminal is sent to the main switch for the first time, the terminal information corresponding to the terminal is obtained, and the request response frame is obtained according to the terminal information package, and if the request connection frame is not sent to the main switch for the first time, the response is not made to the request connection frame, so as to avoid the possibility of repeatedly receiving the request response frame. Therefore, the invention makes the two access strategies into the organic interface, and can maximally realize the phenomenon of terminal access failure caused by different protocols. Therefore, the method, the device, the electronic equipment and the computer readable storage medium for acquiring the terminal connection state based on the FC switching network can solve the problem that the terminal cannot be accessed to the FC switching network universally due to the diversity of FC protocol clusters.
Fig. 9 is a functional block diagram of a general acquiring device for a terminal connection state based on an FC switching network according to an embodiment of the present invention.
The general terminal connection state acquiring device 100 based on the FC switching network of the present invention may be installed in an electronic device. The general terminal connection status acquiring device 100 based on the FC switching network may include a request connection frame transmitting module 101, a request connection frame judging module 102, a request response frame generating module 103, and a request response frame returning module 104 according to the implemented functions. The module of the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
The request connection frame sending module 101 is configured to receive a request connection frame of a terminal, and send the request connection frame to a pre-constructed master switch;
the request connection frame judging module 102 is configured to judge whether the request connection frame is sent to the master switch for the first time;
the request response frame generating module 103 is configured to extract terminal information in the master switch if the request connection frame is sent to the master switch for the first time, and encapsulate the terminal information to obtain a request response frame;
The request response frame returning module 104 is configured to return the request response frame to the terminal, so as to obtain terminal connection status information.
In detail, the modules in the general terminal connection state acquiring device 100 based on the FC switch network in the embodiment of the present invention use the same technical means as the general terminal connection state acquiring method based on the FC switch network described in fig. 1, and can generate the same technical effects, which are not described herein.
Fig. 10 is a schematic structural diagram of an electronic device for implementing a method for obtaining a general connection state of a terminal based on an FC switching network according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program stored in the memory 11 and executable on the processor 10, such as a terminal connection status general acquisition program 12 based on an FC switching network.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may in other embodiments also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only for storing application software installed in the electronic device 1 and various types of data, such as codes of the general-purpose acquisition program 12 based on the terminal connection state of the FC switching network, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects respective parts of the entire electronic device using various interfaces and lines, executes or executes programs or modules (for example, a terminal connection state general acquisition program based on an FC switching network, etc.) stored in the memory 11, and invokes data stored in the memory 11 to perform various functions of the electronic device 1 and process the data.
The bus may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
Fig. 10 shows only an electronic device with components, it being understood by a person skilled in the art that the structure shown in fig. 10 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
Further, the electronic device 1 may also comprise a network interface, optionally the network interface may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
The electronic device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The general purpose acquiring program 12 for terminal connection status based on FC switching network stored in the memory 11 in the electronic device 1 is a combination of a plurality of instructions, and when executed in the processor 10, can realize:
receiving a request connection frame of a terminal, and sending the request connection frame to a pre-built main switch;
Judging whether the request connection frame is sent to the main switch for the first time;
if the request connection frame is sent to the main switch for the first time, extracting terminal information in the main switch, and packaging according to the terminal information to obtain a request response frame;
if the request connection frame is not sent to the master switch for the first time, not responding to the request connection frame;
And the request response frame is transmitted back to the terminal to obtain terminal connection state information.
Specifically, the specific implementation method of the above instruction by the processor 10 may refer to descriptions of related steps in the corresponding embodiments of fig. 1 to 8, which are not repeated herein.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present invention also provides a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, can implement:
receiving a request connection frame of a terminal, and sending the request connection frame to a pre-built main switch;
Judging whether the request connection frame is sent to the main switch for the first time;
if the request connection frame is sent to the main switch for the first time, extracting terminal information in the main switch, and packaging according to the terminal information to obtain a request response frame;
if the request connection frame is not sent to the master switch for the first time, not responding to the request connection frame;
And the request response frame is transmitted back to the terminal to obtain terminal connection state information.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (9)

Receiving a request connection frame of a terminal, and sending the request connection frame to a pre-built main switch, wherein the main switch is positioned in a pre-built FC switching network, only one main switch is positioned in the FC switching network, the other main switches are auxiliary switches, the main switch is responsible for maintaining terminal connection state information of the whole network, a unified interface is provided for other terminals to inquire terminal connection state information in the FC switching network, the auxiliary switch is only responsible for maintaining terminal connection state information of the auxiliary switch, when the terminal connection state information maintained by the auxiliary switch changes, the changed terminal connection state information needs to be synchronized to the main switch, the terminal connection state information refers to a set of terminal information which is accessed to the FC switching network and can normally communicate, and the terminal information comprises a terminal name, a terminal address and a connected switch identifier;
CN202211235549.XA2022-10-102022-10-10 Universal method, device, electronic device and storage medium for obtaining terminal connection statusActiveCN115604206B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202211235549.XACN115604206B (en)2022-10-102022-10-10 Universal method, device, electronic device and storage medium for obtaining terminal connection status

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202211235549.XACN115604206B (en)2022-10-102022-10-10 Universal method, device, electronic device and storage medium for obtaining terminal connection status

Publications (2)

Publication NumberPublication Date
CN115604206A CN115604206A (en)2023-01-13
CN115604206Btrue CN115604206B (en)2025-04-08

Family

ID=84847444

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202211235549.XAActiveCN115604206B (en)2022-10-102022-10-10 Universal method, device, electronic device and storage medium for obtaining terminal connection status

Country Status (1)

CountryLink
CN (1)CN115604206B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP3008096B1 (en)*1998-08-272000-02-14株式会社超高速ネットワーク・コンピュータ技術研究所 Connection setting method for multilink connection
CN114143295A (en)*2021-10-142022-03-04北京国科天迅科技有限公司Transmission switch, FC-AE equipment and Ethernet equipment communication method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7937088B2 (en)*2004-03-262011-05-03Qualcomm IncorporatedRouting communications in an ad hoc network
CN102208945B (en)*2010-03-312014-11-05华为数字技术(成都)有限公司Method for obtaining network address and FCoE target and communication system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP3008096B1 (en)*1998-08-272000-02-14株式会社超高速ネットワーク・コンピュータ技術研究所 Connection setting method for multilink connection
CN114143295A (en)*2021-10-142022-03-04北京国科天迅科技有限公司Transmission switch, FC-AE equipment and Ethernet equipment communication method

Also Published As

Publication numberPublication date
CN115604206A (en)2023-01-13

Similar Documents

PublicationPublication DateTitle
US10411971B2 (en)Method for unified communication of server, baseboard management controller, and server
JP4150336B2 (en) Configuration to create multiple virtual queue pairs from compressed queue pairs based on shared attributes
US20240281400A1 (en)Communication method and system for distributed heterogeneous acceleration platform, device and medium
US20090177823A1 (en)Method and system for setting data communication addresses
CN114050998A (en)Method, device, electronic equipment and medium for realizing remote direct memory access
CN108200018A (en)Flow forwarding method and equipment, computer equipment and readable medium in cloud computing
CN111092942B (en)Message processing method and device, electronic equipment and storage medium
CN108768727A (en)Access method, electronic device and the readable storage medium storing program for executing of third party's service
CN115604206B (en) Universal method, device, electronic device and storage medium for obtaining terminal connection status
CN117041147B (en)Intelligent network card equipment, host equipment, method and system
CN109582242B (en)Address determination method and device for cascade memory array system and electronic equipment
CN114513792B (en)Remote network control method and device based on eSIM card
CN113691466A (en)Data transmission method, intelligent network card, computing device and storage medium
TWI799179B (en)Computing systems and methods for management of a network device
CN117354867A (en) Data transmission method, device and storage medium
CN115550177B (en) Dynamic update method, device and medium based on FC switching network terminal connection status
CN100508596C (en) Method and system for accessing video equipment
CN114253525B (en) Lightweight component bus implementation method, device, electronic device and medium
CN112162868B (en) Data communication method, device and storage medium applied to cluster processing
EP3631640A1 (en)Communication between field programmable gate arrays
CN116527771A (en)Method, device, equipment and storage medium for rapidly transferring service information
HK40067488A (en)Method and device for realizing remote direct memory access, electronic equipment and medium
CN110324367B (en)Remote monitoring system, monitoring method and device thereof, storage medium and processor
CN117539812A (en)Server and data transmission method
US10397029B2 (en)Relay apparatus

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp