Transmission method and system of FC switching network

文档序号:1956713 发布日期:2021-12-10 浏览:13次 中文

阅读说明:本技术 一种fc交换网络的传输方法及系统 (Transmission method and system of FC switching network ) 是由 黄若愚 谢鹏 房亮 谈树峰 李龙威 于 2021-11-15 设计创作,主要内容包括:本发明提供一种FC交换网络的传输方法及系统,方法包括:响应当前消息发送请求,根据链路连接状态从若干个候选端口中选择出第一端口作为主端口,以采用第一端口对当前消息进行传输;其中,候选端口均与同一FC交换机的相应端口相连;当判断当前消息传输异常时,从其余的候选端口中选择出第二端口作为主端口,以采用第二端口对当前消息进行重传;若对当前消息进行重传成功,则保持采用第二端口作为主端口,以采用第二端口对下一消息进行传输。本发明通过整合FC交换机并改进端口动态切换机制,从而能够有效降低FC通信网络的系统复杂度,提高系统通信效率和避免带宽浪费,并提高了系统配置的灵活性。(The invention provides a transmission method and a system of an FC switching network, wherein the method comprises the following steps: responding to a current message sending request, and selecting a first port from a plurality of candidate ports as a main port according to a link connection state so as to transmit a current message by adopting the first port; the candidate ports are connected with corresponding ports of the same FC switch; when the current message transmission is judged to be abnormal, selecting a second port from the other candidate ports as a main port so as to retransmit the current message by adopting the second port; and if the current message is successfully retransmitted, the second port is kept to be adopted as the main port, so that the next message is transmitted by adopting the second port. The invention integrates the FC switch and improves the dynamic port switching mechanism, thereby effectively reducing the system complexity of the FC communication network, improving the system communication efficiency, avoiding the bandwidth waste and improving the flexibility of the system configuration.)

1. A transmission method for an FC switching network, comprising:

responding to a current message sending request, and selecting a first port from a plurality of candidate ports as a main port according to a link connection state so as to transmit the current message by adopting the first port; the candidate ports are connected with corresponding ports of the same FC switch;

when the current message is judged to be abnormally transmitted, selecting a second port from the rest candidate ports as the main port so as to retransmit the current message by adopting the second port;

and if the current message is successfully retransmitted, the second port is kept to be adopted as the main port, so that the second port is adopted to transmit the next message.

2. The method according to claim 1, wherein the selecting a first port from a plurality of candidate ports as a primary port according to a link connection status in response to the current message sending request, so as to transmit the current message using the first port, comprises:

responding to a current message sending request, and acquiring a current link connection state;

if all links are judged to be in a connected state according to the link connection state, selecting a first port as the main port to transmit the current message by adopting the first port; the first port is a port corresponding to preset main port configuration information;

if only one link is in a connected state according to the link connection state, selecting a first port as the main port to transmit the current message by adopting the first port; the first port is a port corresponding to a link which is currently in a connected state.

3. The method according to claim 1, wherein when it is determined that the current message is abnormally transmitted, selecting a second port from the remaining candidate ports as the primary port to retransmit the current message using the second port comprises:

and when the current message is judged to be abnormally transmitted, selecting a second port from the other candidate ports as the main port, and modifying the port ID of the current message into the port ID corresponding to the second port so as to retransmit the current message by adopting the second port.

4. The method according to claim 1, wherein when it is determined that the current message is abnormally transmitted, selecting a second port from the remaining candidate ports as the primary port to retransmit the current message using the second port comprises:

when the current message transmission is judged to be abnormal, judging whether a system starts a cold backup processing mode or not according to preset backup configuration information;

if so, selecting a second port from the rest candidate ports as the main port to retransmit the current message by adopting the second port;

if not, the first port is kept to be adopted as the main port, so that the first port is adopted to transmit the next message.

5. The method according to claim 1, wherein if the current message is retransmitted successfully, the second port is kept as the primary port, so as to transmit a next message using the second port, specifically:

and if the current message is successfully retransmitted, keeping the second port as the main port, and transmitting subsequent messages by using the second port until the next message transmission abnormity occurs.

6. The method for transporting an FC switching network according to claim 1, further comprising:

and if the retransmission of the current message fails and the continuous failure times exceed the preset retransmission times, quitting the cold backup processing process, and keeping adopting the second port as the main port so as to adopt the second port to transmit the next message.

7. The method for transporting an FC switching network according to claim 1, further comprising:

and responding to a system reset instruction, and taking a port corresponding to preset main port configuration information as the main port.

8. The method for transporting an FC switching network according to claim 7, further comprising:

and if a port configuration instruction is received within a preset time period after a system reset instruction is received, updating and configuring the main port into a port corresponding to the port configuration instruction.

9. The method according to claim 1, wherein the determining that the current message transmission is abnormal comprises:

when message transmission abnormal information returned by the command frame of the current message is received, judging that the current message is abnormal in transmission; wherein the message transmission exception information includes message timeout information and NT error status information.

10. A transmission system of FC switching network is characterized in that it comprises a network controller, an FC switch and several network terminals; the network controller and each network terminal are connected with the FC switch; the network controller comprises control means configured to perform the method of transport of an FC switched network according to any one of claims 1 to 9.

Technical Field

The present invention relates to the field of network communication technologies, and in particular, to a transmission method and system for an FC switching network.

Background

The exchange type network based on the FC _ AE _1553 protocol is mainly applied to the fields of aviation, aerospace and military, is used for communication interconnection, data transmission and command control among electronic equipment, and has the advantages of high reliability, high stability, high bandwidth, strong electromagnetic interference resistance, simple and rapid engineering application and the like.

The FC _ AE _1553 switched Network communication system is composed of an NC (Network Controller), a plurality of NTs (Network terminals) and an FC switch, and performs message exchange and data transmission through an optical fiber in a communication process, and the reliability and stability of transmission are ensured through encoding of the transmitted data.

In order to improve the reliability of the FC communication network, the NC and NT usually adopt a redundant design of a main port and a standby port, and implement a backup function by connecting a main switch and a standby switch. The structure of which is shown in figure 2. In the network, the NC defaults to initiate transmission by the main port of the NC, and when the transmission of the main port of the NC fails, the NC standby port realizes communication with the standby port of the NT through the standby switch. Meanwhile, due to the limitation of the addresses of the NC and NT devices, the main and standby ports of the NC and NT must be connected to the same type of interfaces of different switches to ensure the normal operation of the FC network.

At present, the redundancy setting method of the FC communication network has the following disadvantages:

1. the arrangement of the redundant switch increases the complexity of the system and increases the cost;

2. in the cold backup mode, when the transmission of the main port fails and then the transmission of the main port is successful through the standby path, the next message is still initiated by the main port, and the transmission is switched to the standby path transmission after the transmission fails, so that the communication efficiency of the system is reduced and the waste of bandwidth is caused by the transmission control method;

3. the connection mode of NC and NT is solidified, and the flexibility of configuration operation is insufficient.

Disclosure of Invention

To solve the problems in the prior art, embodiments of the present invention provide a transmission method for an FC switching network, which can reduce the system complexity of the FC switching network, improve the system communication efficiency, avoid bandwidth waste, and improve the flexibility of system configuration.

The invention provides a transmission method of an FC switching network, which comprises the following steps:

responding to a current message sending request, and selecting a first port from a plurality of candidate ports as a main port according to a link connection state so as to transmit the current message by adopting the first port; the candidate ports are connected with corresponding ports of the same FC switch;

when the current message is judged to be abnormally transmitted, selecting a second port from the rest candidate ports as the main port so as to retransmit the current message by adopting the second port;

and if the current message is successfully retransmitted, the second port is kept to be adopted as the main port, so that the second port is adopted to transmit the next message.

According to the transmission method of the FC switching network of the present invention, the responding to the current message sending request, selecting a first port from a plurality of candidate ports as a main port according to the link connection state, so as to transmit the current message by using the first port, includes:

responding to a current message sending request, and acquiring a current link connection state;

if all links are judged to be in a connected state according to the link connection state, selecting a first port as the main port to transmit the current message by adopting the first port; the first port is a port corresponding to preset main port configuration information;

if only one link is in a connected state according to the link connection state, selecting a first port as the main port to transmit the current message by adopting the first port; the first port is a port corresponding to a link which is currently in a connected state.

According to the transmission method of the FC switching network of the present invention, when it is determined that the current message transmission is abnormal, selecting a second port from the remaining candidate ports as the master port to retransmit the current message using the second port includes:

and when the current message is judged to be abnormally transmitted, selecting a second port from the other candidate ports as the main port, and modifying the port ID of the current message into the port ID corresponding to the second port so as to retransmit the current message by adopting the second port.

According to the transmission method of the FC switching network of the present invention, when it is determined that the current message transmission is abnormal, selecting a second port from the remaining candidate ports as the master port to retransmit the current message using the second port includes:

when the current message transmission is judged to be abnormal, judging whether a system starts a cold backup processing mode or not according to preset backup configuration information;

if so, selecting a second port from the rest candidate ports as the main port to retransmit the current message by adopting the second port;

if not, the first port is kept to be adopted as the main port, so that the first port is adopted to transmit the next message.

According to the transmission method of the FC switching network of the present invention, if the current message is retransmitted successfully, the second port is kept as the main port, so that the second port is used to transmit the next message, specifically:

and if the current message is successfully retransmitted, keeping the second port as the main port, and transmitting subsequent messages by using the second port until the next message transmission abnormity occurs.

The transmission method of the FC switching network further comprises the following steps:

and if the retransmission of the current message fails and the continuous failure times exceed the preset retransmission times, quitting the cold backup processing process, and keeping adopting the second port as the main port so as to adopt the second port to transmit the next message.

The transmission method of the FC switching network further comprises the following steps:

and responding to a system reset instruction, and taking a port corresponding to preset main port configuration information as the main port.

The transmission method of the FC switching network further comprises the following steps:

and if a port configuration instruction is received within a preset time period after a system reset instruction is received, updating and configuring the main port into a port corresponding to the port configuration instruction.

According to the transmission method of the FC switching network of the present invention, the manner of determining that the current message transmission is abnormal includes:

when message transmission abnormal information returned by the command frame of the current message is received, judging that the current message is abnormal in transmission; wherein the message transmission exception information includes message timeout information and NT error status information.

The invention also provides a transmission system of the FC switching network, which comprises a network controller, an FC switch and a plurality of network terminals; the network controller and each network terminal are connected with the FC switch; the network controller includes a control device configured to execute any one of the FC switching network transmission methods.

According to the transmission method and system of the FC switching network, the existing main switch and the existing standby switch are integrated into a single FC switch, so that the NC and the NT of the system can be connected to the same FC switch through different ports of the system, and the complexity of the system is effectively reduced; meanwhile, by configuring a port dynamic switching method, when port transmission is abnormal and retransmission is successful through a standby port, the port can be automatically used as a main port to initiate subsequent transmission, so that the situation that when the main port has an error, subsequent message transmission is still initiated by the main port first to cause bandwidth waste under the existing fixed main port condition is effectively avoided; in addition, different ports have independent SIDs and can be independently used as nodes in a switching network, so that different ports of the original NC and NT are expanded into interfaces with complete FC communication functions from independent redundancy, thereby improving the configuration flexibility of the equipment and meeting more application scenarios.

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 illustrating a transmission method of an FC switching network according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of a system architecture of a prior art FC switching network;

fig. 3 is a schematic system structure diagram of an FC switching network according to an embodiment of the present invention;

fig. 4 is a block diagram of an internal processing architecture of an FC switching network according to an embodiment of the present invention;

FIG. 5 is a flowchart illustrating an initialization procedure for configuring a main port according to an embodiment of the present invention;

fig. 6 is a schematic diagram illustrating a dynamic processing flow of a master port during transmission according to an embodiment of 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.

As shown in fig. 1, the present invention provides a transmission method for an FC switching network, including:

s1, responding to the current message sending request, selecting a first port from a plurality of candidate ports as a main port according to the link connection state, and transmitting the current message by adopting the first port; wherein the candidate ports are all connected to corresponding ports of the same FC switch.

In the embodiment of the present invention, further, step S1 specifically includes:

s110, responding to the current message sending request and acquiring the current link connection state;

s120, if all links are judged to be in a connected state according to the link connection state, selecting the first port as a main port to transmit the current message by adopting the first port; the first port is a port corresponding to preset main port configuration information;

s130, if only one link is in a connected state according to the link connection state, selecting a first port as a main port to transmit the current message by adopting the first port; the first port is a port corresponding to a link currently in a connected state.

It should be noted that, before a message is transmitted, the current link connection state is determined, in the embodiment of the present invention, if all the ports are determined to be unconnected, the default configuration of the main port is kept unchanged (according to the preset main port configuration information), and the connection of the link is waited; if only one link is connected, the port corresponding to the currently connected link is adopted to be configured as the current main port no matter which default main port is configured; and if all the links are in a connected state, selecting a preset port as the current main port according to the main port configuration information.

And S2, when the current message is judged to be abnormally transmitted, selecting a second port from the other candidate ports as a main port to retransmit the current message by adopting the second port.

Further, the method for determining that the current message transmission is abnormal includes:

when message transmission abnormal information returned by a command frame of the current message is received, judging that the current message is abnormal in transmission; the message transmission exception information includes message timeout information and NT error status information.

It should be noted that, when a message is overtime, NT returns to an error state, or the like, in the process of transmitting information, the main port is changed into the remaining alternative ports, and the changed port is used for transmitting the message.

Further, step S2 includes:

when the current message transmission is judged to be abnormal, judging whether a cold backup processing mode is started by the system according to preset backup configuration information;

if so, selecting a second port from the rest candidate ports as a main port to retransmit the current message by adopting the second port;

if not, the first port is kept to be adopted as the main port, and the first port is adopted to transmit the next message.

It should be noted that, in the embodiment of the present invention, when it is determined that the current message transmission is abnormal, it is further determined whether the system starts the cold backup processing, if the cold backup processing is started, the main port is changed and retransmission is performed, and if the cold backup is not started, the retransmission operation is skipped, and the transmission of the next message is directly started while keeping the configuration of the main port unchanged.

Further, step S2 includes:

and when the current message is judged to be abnormally transmitted, selecting a second port from the other candidate ports as a main port, and modifying the port ID of the current message into the port ID corresponding to the second port so as to retransmit the current message by adopting the second port.

When the master port configuration is changed, the port ID of the message needs to be changed so that the sid (source ID) of the retransmission message matches the port after the change.

And S3, if the current message is retransmitted successfully, the second port is kept to be adopted as the main port, so that the next message is transmitted by adopting the second port.

Further, step S3 is specifically:

and if the current message is successfully retransmitted, the second port is kept to be adopted as the main port, so that the subsequent messages are transmitted by adopting the second port until the next message transmission abnormity occurs.

After the master port is changed in step S2, and if the message with the transmission abnormality in the previous time is successfully retransmitted, it indicates that the changed port has no link or node connection problem, and the next message is transmitted using the changed port. Or, all subsequent messages may be transmitted by the changed port until the next message transmission abnormality occurs (it indicates that the changed port has a problem with the link state, and the master port needs to be replaced again to transmit the message).

In the embodiment of the present invention, further, the method further includes:

and if the retransmission of the current message fails and the continuous failure times exceed the preset retransmission times, quitting the cold backup processing process, and keeping adopting the second port as the main port so as to transmit the next message by adopting the second port.

It should be noted that if the retransmission still fails after the change of the main port and the number of retransmissions exceeds the preset number, the retransmission process (cold backup process) is exited, and then the changed main port is maintained and the transmission of the next message is performed.

In the embodiment of the present invention, further, the method further includes:

and responding to a system reset instruction, and taking a port corresponding to preset main port configuration information as a main port.

In the embodiment of the present invention, further, the method further includes:

and if the port configuration instruction is received within a preset time period after the system reset instruction is received, updating and configuring the main port as a port corresponding to the port configuration instruction.

It should be noted that, when a system reset instruction is received, the main port configuration is restored to a default value (according to preset main port configuration information). And if a new port configuration instruction is received within a period of time after the reset, updating and configuring the main port according to the port configuration instruction.

Based on the transmission method of the FC switching network provided in the foregoing embodiments, the following description illustrates the following:

an FC switching network with a backup function according to an embodiment of the present invention is shown in fig. 3. The key of the technical scheme of the invention is that the dynamic management of the NC and NT main ports and the independent SID of each port are realized together.

In the embodiment of the present invention, each port of the NC and NT device may complete a login process with the switch, and record the login ID of the port as the source ID of the port. The original main/standby ports are changed into a port A and a port B, and whether the current A or B is the main port depends on the port connection state and whether the previous transmission is successful. Assuming that an A port is configured as a main port when the current NC is in initial configuration, and a retransmission strategy is a main/standby state, an FC message is output through the A port, and the ID of the current equipment is the SID of the A port (101); if the transmission of the port A has errors, the NC initiates a backup retransmission operation, at this time, the port B is automatically switched to the main port, the ID of the equipment is changed into the SID of the port B (102), and the retransmission is sent out by the port B. If the transmission of the port B is successful, the port B is kept as the main port of the NC equipment, and the subsequent message transmission is continued through the port B.

By dynamic change of the main port and the equipment ID, the NC and the NT can not connect the two ports to the same interface of different switches to complete backup. Meanwhile, after the NC completes one backup transmission, the NC can preferentially initiate transmission from the port which is successfully transmitted last time, the transmission efficiency of the system is improved, and the waste of bandwidth is avoided.

In the embodiment of the invention, because the A, B ports have independent SIDs and can be independently used as nodes in a switching network, the two ports of the original NC and NT are expanded into two interfaces with complete FC communication functions from independent redundancy, the applicability of the equipment is improved, and more application scenes can be met.

Referring to fig. 4, the process flow of the main port at initialization is as follows: and after the system is reset, the main port recovers the default value, at the moment, if the upper-layer driving software reconfigures the port, the main port value is updated, and if not, the default configuration is kept.

Referring to fig. 5, the process flow of dynamic switching of the system main port during message operation is as follows:

in the message processing, when an FC message operates again, the current link state is judged first, and if only one path is connected at present, the path is always a main port; if the two paths are communicated, the dynamic switching processing flow of the main port is entered.

And using the current main port to send a command frame, waiting for the completion of the message, and keeping the current main port if the message completion state is received to indicate that the message is successfully transmitted.

If the conditions of message overtime, NT return error state and the like occur and the cold backup processing is started, the current main port is updated, and the retransmission process is carried out, and the message sending is restarted. And meanwhile, the port ID management module is informed to change the equipment ID so that the SID of the retransmission message is matched with the replaced port.

If the retransmission message is successful, the port configuration is kept unchanged, and the next message is still transmitted from the same port until the port is abnormal. If the specified retransmission times are run and the transmission fails, the cold backup processing process is quitted, and the current port is used for starting the next message transmission.

The invention also provides a transmission system of the FC switching network, which comprises a network controller, an FC switch and a plurality of network terminals; the network controller and each network terminal are connected with the FC switch; the network controller includes a control device configured to execute the transmission method of the FC switching network of any one.

As shown in fig. 6, in the embodiment of the present invention, the modified FPGA internal processing architecture includes an FC-2M module, an FC message processing module, an FC port module (a port), an FC port module (B port), an a port login processing module, a B port login processing module, and a port ID management module.

It should be noted that, the port a login processing module, the port B login processing module, and the port ID management module are processing modules added in the embodiment of the present invention. The port login processing module is used for realizing login frame sending and login response frame analysis. A. The B port works independently according to the port connection state, and the FC-2M arbitrates the sending and receiving frames. If the port login processing module successfully logs in, the port ID management module is informed of the ID acquired by the port. The port ID management module determines the ID currently used by the system according to the current master port selection. The main port selection function is processed by an FC message processing module (equivalent to a control device) according to the current configuration and the message operation result.

Compared with the prior art, the embodiment of the invention has the following beneficial effects:

two ports of NC and NT have independent Source ID (SID) and can be connected with the same switch to complete the backup communication function; the 1 switch can be used for realizing redundancy backup, and an additionally added redundancy switch is omitted, so that the complexity of the system is simplified;

and 2, the NC and NT main/standby ports can be dynamically switched according to the current transmission condition, when a certain port is successfully transmitted, the port can automatically serve as a main port to initiate subsequent transmission, and when the port has an error, the port is switched to another port to perform backup transmission. Under the condition of fixing the main port, once the main port is wrong, the subsequent message transmission at each time still needs to be initiated by the main port first, so that the bandwidth waste condition is avoided, and the communication efficiency of the equipment is improved;

and 3, two ports of NC and NT can realize complete FC communication function, and the robustness and the applicability of the equipment are improved.

4. The method is compatible with the original network and hardware environment, and only changes are made in the aspect of firmware.

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.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:分流器路由跳转方法、装置、介质、设备及其应用的多核系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!