CN107666415B - Optimization method and device of FC-AE-1553 protocol bridge - Google Patents

Optimization method and device of FC-AE-1553 protocol bridge Download PDF

Info

Publication number
CN107666415B
CN107666415B CN201710801201.5A CN201710801201A CN107666415B CN 107666415 B CN107666415 B CN 107666415B CN 201710801201 A CN201710801201 A CN 201710801201A CN 107666415 B CN107666415 B CN 107666415B
Authority
CN
China
Prior art keywords
protocol bridge
protocol
state
working state
counter
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
CN201710801201.5A
Other languages
Chinese (zh)
Other versions
CN107666415A (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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710801201.5A priority Critical patent/CN107666415B/en
Publication of CN107666415A publication Critical patent/CN107666415A/en
Application granted granted Critical
Publication of CN107666415B publication Critical patent/CN107666415B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/03Arrangements for fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40013Details regarding a bus controller
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Abstract

The invention discloses an optimization method and device of an FC-AE-1553 protocol bridge, which can solve the problem that all connected equipment on the whole MIL-STD-1553B bus is out of control when an optical fiber fault is caused when the FC-AE-1553 protocol bridge is connected to an optical fiber channel transmission network. The method comprises the following steps: detecting the link between the protocol bridge and the optical fiber channel transmission network according to the detection period, and counting a counter arranged in the protocol bridge according to the detection result; and keeping or switching the working state of the protocol bridge according to the value of the counter and the working state of the protocol bridge.

Description

Optimization method and device of FC-AE-1553 protocol bridge
Technical Field
The invention relates to the technical field of computers, in particular to an FC-AE-1553 protocol bridge optimization method and device.
Background
The FC-AE-1553 protocol is an application of an upper layer protocol of an FC protocol (Fiber Channel protocol), and an optical Fiber is adopted as a transmission medium, so that the speed is high, the delay is low, and the error rate is low.
The MIL-STD-1553B protocol uses a shielded twisted pair as a transmission medium, and adopts a centralized control method, and all data transmission processes are controlled by a BC (Bus Controller).
The FC-AE-1553 protocol is the upper layer mapping of the MIL-STD-1553B protocol on the FC protocol, adopts the mode of MIL-STD-1553B centralized control, and simultaneously utilizes the characteristics of high rate, low delay and low error rate of the FC protocol.
The FC-AE-1553 protocol, FC-AE (Fiber Channel environments), was specified in 07, defining the format and network topology for data transmission in Avionics using FC (Fiber Channel). The FC-AE-1553 protocol is used as a next generation avionic bus communication technology, and can be greatly improved in transmission rate, transmission time and bit error rate compared with the MIL-STD-1553B protocol of the previous generation. Meanwhile, the method can keep good forward compatibility for the MIL-STD-1553B network of the previous generation, and can meet the requirement on connection of a large number of MIL-STD-1553B devices.
The FC-AE-1553 protocol bridge is a network protocol conversion bridge connected with an FC network (a fiber channel transmission network) and an MIL-STD-1553B bus and is used for completing conversion from an FC-AE-1553 protocol to an MIL-STD-1553B protocol. The FC-AE-1553 protocol bridge exists as a Terminal device NT (Net Terminal) in the FC network; in the MIL-STD-1553B Bus, a BC (Bus Controller) exists.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
the FC-AE-1553 protocol bridge can only implement data conversion functions for data in the FC network and protocols in the MIL-STD-1553B bus. When a temporary failure occurs in the optical fiber connected to the FC network of the protocol bridge (all "protocol bridges" herein are FC-AE-1553 protocol bridges "), or after a permanent failure occurs due to other reasons, all attached devices on the entire MIL-STD-1553B bus will be out of control, in an uncontrolled state, and in a paralyzed state. No specification for failure of a link connected to the FC network by a protocol bridge is specified in existing protocols, nor is there a solution disclosed.
Disclosure of Invention
In view of this, embodiments of the present invention provide an FC-AE-1553 protocol bridge optimization method, apparatus, and device, which can solve the problem that when an FC-AE-1553 protocol bridge is connected to an optical fiber fault in a fiber channel transmission network, all attached devices on the entire MIL-STD-1553B bus are out of control.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided an optimization method of an FC-AE-1553 protocol bridge.
The optimization method of the FC-AE-1553 protocol bridge in the embodiment of the invention comprises the following steps: detecting the link between the protocol bridge and the optical fiber channel transmission network according to the detection period, and counting a counter arranged in the protocol bridge according to the detection result; and keeping or switching the working state of the protocol bridge according to the value of the counter and the working state of the protocol bridge.
Optionally, the counting the counter according to the detection result includes: when the link between the protocol bridge and the optical fiber channel transmission network is normal, setting the value of the counter as the detection times; and when the link of the protocol bridge and the fiber channel transmission network is in failure and the value of the counter is greater than zero, subtracting one from the value of the counter.
Optionally, maintaining or switching the working state of the protocol bridge according to the value of the counter and the working state of the protocol bridge includes: when the value of the counter is the detection times and the working state of the protocol bridge is the protocol conversion state, the working state of the protocol bridge is maintained; when the value of the counter is the detection times and the working state of the protocol bridge is the state of the bus controller, switching the working state of the protocol bridge into a protocol conversion state; when the value of the counter is zero and the working state of the protocol bridge is the state of the bus controller, the working state of the protocol bridge is maintained; and when the value of the counter is zero and the working state of the protocol bridge is a protocol conversion state, switching the working state of the protocol bridge into a bus controller state.
Optionally, the detection period is set according to a minimum time accuracy of the system.
Optionally, the number of detections is set according to the switching time after failure required by the system, so that the switching time after failure is equal to the detection period.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided an optimizing device of an FC-AE-1553 protocol bridge.
The optimizing device of the FC-AE-1553 protocol bridge in the embodiment of the invention comprises: the link detection module is used for detecting the link between the protocol bridge and the fiber channel transmission network according to the detection period and counting a counter arranged in the protocol bridge according to the detection result; and the switching control module is used for keeping or switching the working state of the protocol bridge according to the value of the counter and the working state of the protocol bridge.
Optionally, the link detection module is further configured to: when the link between the protocol bridge and the optical fiber channel transmission network is normal, setting the value of the counter as the detection times; and when the link of the protocol bridge and the fiber channel transmission network is in failure and the value of the counter is greater than zero, subtracting one from the value of the counter.
Optionally, the handover control module is further configured to: when the value of the counter is the detection times and the working state of the protocol bridge is the protocol conversion state, the working state of the protocol bridge is maintained; when the value of the counter is the detection times and the working state of the protocol bridge is the state of the bus controller, switching the working state of the protocol bridge into a protocol conversion state; when the value of the counter is zero and the working state of the protocol bridge is the state of the bus controller, the working state of the protocol bridge is maintained; and when the value of the counter is zero and the working state of the protocol bridge is a protocol conversion state, switching the working state of the protocol bridge into a bus controller state.
Optionally, the detection period is set according to a minimum time accuracy of the system.
Optionally, the number of detections is set according to the switching time after failure required by the system, so that the switching time after failure is equal to the detection period.
To achieve the above object, according to still another aspect of the embodiments of the present invention, there is provided an electronic device for implementing an FC-AE-1553 protocol bridge optimization method.
An electronic device of an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the FC-AE-1553 protocol bridge optimization method of an embodiment of the present invention.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a computer-readable medium.
A computer-readable medium of an embodiment of the present invention has stored thereon a computer program that, when executed by a processor, is operative to implement a method for optimizing an FC-AE-1553 protocol bridge of an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: because the technical means of keeping or switching the working state of the protocol bridge to be the protocol conversion state or the bus controller state according to the link state of the protocol bridge and the FC network (fiber channel transmission network) is adopted, the technical problem that when the optical fiber connected to the FC network by the protocol bridge fails, all the connected equipment on the whole MIL-STD-1553B bus loses control is solved, and the technical effect of starting the BC controller module (bus controller module) in time after the link fails to prevent the equipment on the MIL-STD-1553B bus from being in a paralysis state is achieved. And a counter is arranged in the protocol bridge, and the link state of the protocol bridge and the FC network is recorded in a counting mode, so that the BC controller module can be started after a link fails for a period of time, and the wrong judgment caused by failure tolerance is prevented. After the link failure is recovered, the working state of the protocol bridge can be effectively switched to a protocol data conversion state (protocol conversion state), the control right of the device on the whole bus is transferred to an NC (Net Controller, a network Controller, and the receiving and sending of all data in the whole FC network are controlled by the network Controller), and the dynamic control right transfer is realized. Moreover, the link state of the protocol bridge and the FC network is detected at regular time, so that link failure and failure recovery can be found quickly, and the working state of the protocol bridge can be switched in time.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main steps of a method for optimizing a FC-AE-1553 protocol bridge according to an embodiment of the invention;
FIG. 2 is a schematic diagram of the major modules of an optimization device for an FC-AE-1553 protocol bridge according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a system architecture for a method of optimizing an FC-AE-1553 protocol bridge according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a system workflow of a method for optimizing an FC-AE-1553 protocol bridge according to an embodiment of the invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The technical scheme of the embodiment of the invention adds the functions of link detection, BC control and state switching in the protocol bridge. Firstly, setting Watch Dog (counter, also called watchdog); performing link detection at regular time, namely detecting whether optical fibers connecting a protocol bridge and an FC network (fiber channel transmission network) have faults or not; if no fault exists, setting the Watch Dog to be 10, keeping or switching the protocol bridge to be in a protocol conversion working state (namely FC network transmission), and then carrying out next link detection according to a preset detection period (namely a timing result); and if the fault occurs and the Watch Dog is greater than 0, subtracting 1 from the Watch Dog, then carrying out next link detection according to a preset clock period, and when the Watch Dog is 0, keeping or switching the working state of the protocol bridge to be the BC controller state.
FIG. 1 is a schematic diagram of the main steps of a method for optimizing a FC-AE-1553 protocol bridge according to an embodiment of the invention;
as shown in fig. 1, the method for optimizing an FC-AE-1553 protocol bridge according to the embodiment of the present invention mainly includes the following steps:
step S101: and detecting the link between the protocol bridge and the optical fiber channel transmission network according to the detection period, and counting a counter arranged in the protocol bridge according to the detection result. In this step, when the link between the protocol bridge and the fibre channel transmission network is normal, the value of the counter may be set as the detection times; and when the link of the protocol bridge and the fiber channel transmission network is in failure and the value of the counter is greater than zero, subtracting one from the value of the counter. The detection period may be set according to the minimum time accuracy of the system. For setting the counter in the protocol bridge, it can be realized by setting the counter Watch Dog in the FC-AE-1553 protocol bridge (protocol bridge).
Step S102: and keeping or switching the working state of the protocol bridge according to the value of the counter and the working state of the protocol bridge. In this step, when the value of the counter is the detection number and the working state of the protocol bridge is the protocol conversion state, the working state of the protocol bridge may be maintained; when the value of the counter is the detection times and the working state of the protocol bridge is the state of the bus controller, switching the working state of the protocol bridge into a protocol conversion state; when the value of the counter is zero and the working state of the protocol bridge is the state of the bus controller, the working state of the protocol bridge is maintained; and when the value of the counter is zero and the working state of the protocol bridge is a protocol conversion state, switching the working state of the protocol bridge into a bus controller state. The detection times can be set according to the switching time after the fault required by the system, so that the switching time after the fault is equal to the detection period.
FIG. 3 is a schematic diagram of a system architecture of a method for optimizing an FC-AE-1553 protocol bridge according to an embodiment of the invention.
As shown in fig. 3, in the embodiment of the present invention, in addition to the original protocol conversion function (protocol conversion module) of the protocol bridge, link detection (link detection module), protocol bridge state switching control (protocol bridge state switching control module), and BC controller (BC controller module) functions are added to the protocol bridge.
When the protocol bridge is powered on (electrified), the link detection module detects the state of the FC link at regular time and continuously by using the link detection function of the optical module in the FC network, and continuously reports the connection state of the link (all "links" in this document refer to optical fibers in the FC network) to the protocol bridge state switching control module.
The protocol conversion function (protocol conversion module), namely the original function of the protocol bridge, is responsible for completing the function of mutual conversion between the FC-AE-1553 data frame and the MIL-STD-1553B data word. Converting the FC data frame into an MIL-STD-1553B data word and sending the MIL-STD-1553B data word to an MIL-STD-1553B bus; and converting the data transmitted by the MIL-STD-1553B to the protocol bridge into an FC data frame and transmitting the FC data frame to the FC network.
The protocol bridge state switching control function (protocol bridge state switching control module) is a controller for switching the working state of the protocol bridge, and switches the working state of the protocol bridge according to the state of the FC link detected by the link detection module. Under the condition of link failure, starting a BC controller module, and switching a protocol bridge to a BC controller control state; and at any moment, if the link failure recovery is detected, stopping the BC controller module, and recovering the protocol bridge to the protocol conversion working state.
The BC controller function (BC controller module) is started by the protocol bridge state switching controller (protocol bridge state switching control function) after a link failure occurs. The embodiment of the invention configures the control command list in the BC controller, and the controller circularly sends the command to the bus under the condition of FC link failure and is responsible for controlling data transceiving and control instruction sending on the MIL-STD-1553B bus. The BC controller module is controlled by the protocol bridge state switching control module. The BC controller acts as a controller and sends control commands in the network to complete the control of the entire network communication.
The specific optimized implementation scheme of the FC-AE-1553 protocol bridge is as follows:
FIG. 4 is a schematic diagram of a system workflow of a method for optimizing an FC-AE-1553 protocol bridge according to an embodiment of the invention.
In the embodiment of the invention, firstly, a counter (Watch Dog) is arranged in the protocol bridge and used for recording the link state of the protocol bridge and the FC network, and the initial value of the Watch Dog is set to be 10.
As shown in fig. 4, in the embodiment of the present invention, after the system starts to work, the FC link state is detected first, when the FC link is normal, the value of Watch Dog is set to 10, the protocol bridge working state is checked, whether it is in the protocol conversion state is determined, if so, the next detection clock (detection period) is waited to enter, and if not, the protocol bridge state is switched to the protocol conversion working state, and then, the next detection clock (detection period) is waited to enter; when the FC link is abnormal and the value of the Watch Dog is larger than 0, subtracting 1 from the value of the Watch Dog, then judging whether the Watch Dog is 0, if so, switching the protocol bridge to a BC controller state according to whether the working state of the protocol bridge is in a protocol conversion state, waiting for entering the next detection clock (detection period) or waiting for entering the next detection clock (detection period), and if not, directly entering the next detection clock (detection period); and when the FC link is abnormal and the value of the Watch Dog is not more than 0, judging whether the working state of the protocol bridge is in a protocol conversion state, if so, switching the protocol bridge to a BC controller state and waiting for entering the next detection clock (detection period), and if not, directly entering the next detection clock (detection period).
The specific explanation of the workflow of the embodiment of the invention is as follows:
1. the current FC link state is detected regularly, and each clock cycle (also called detection cycle, also called detection clock) is 1 millisecond (1 ms).
In the operation process, it is uncertain when a link failure occurs, so that the link needs to be detected at intervals to check whether the link fails. The strategy of timing detection is to detect the state of the link at intervals of a certain time.
The shorter the detection period is, the faster the response is after the link failure, and the system in the embodiment of the invention can support the millisecond detection at minimum, so that the embodiment of the invention selects 1ms as the detection period.
2. If the link state is in the connection state, updating the value of Watch Dog to 10 (detection times), detecting the working state of the protocol bridge (the working state of the protocol bridge is identified by setting a flag bit, when the working state of the system is switched, modifying the flag bit, and detecting the working state is executed by looking at the flag bit), and if the protocol bridge does not work in the protocol conversion working state, stopping the BC controller module and switching the protocol bridge into the protocol conversion state. And then waits and enters the next detection period.
3. If the protocol bridge link state fails, the count value of the Watch Dog is checked, and if the count value is greater than 0, the Watch Dog count is reduced by 1. And when the counter is 0, switching the working state of the protocol bridge to the BC controller state. The embodiment of the invention switches the state of the protocol bridge after detecting the link failure for 10 times continuously, thereby preventing the state from being switched by mistake caused by a certain error detection. Too small a counter value may cause link detection errors resulting in a false switching state, and too large a counter value may result in too slow a switching state operation response after a failure.
4. Detecting the Watch Dog value, judging whether the Watch Dog value is 0, and entering the next detection period to wait if the Watch Dog value is not 0; and if the current Watch Dog value is 0, checking the working state of the protocol bridge, if the current Watch Dog value is in the BC controller state, waiting to enter the next detection period, and if the protocol bridge is in the protocol conversion working state, switching the working state of the protocol bridge to the BC controller working state, and waiting to enter the next detection period (namely next 1 ms).
The protocol bridge working mode (state) switching condition is as follows:
A. in the working state of the protocol bridge, if and only if the failure of the link is detected in 10 continuous clock cycles, the working state of the protocol bridge is switched to the BC controller state.
The adoption of 10 clock cycles (detection times) is the optimal choice of the system in the embodiment of the invention after multiple experiments, the error judgment is probably caused by the over-small fault tolerance range of less than 10, and the time consumption is increased when the error tolerance range is more than 10.
Other system environments can make adjustments according to the post-fault switching time of the system requirements and the minimum time accuracy of the system, and the formula "detection period x detection times ═ post-fault switching time" is satisfied. The parameters (1ms × 10 — 10ms) selected herein are selected based on the comprehensive consideration of the system precision time and the fault recovery time.
B. In the state of the BC controller, after the recovery of the link failure is detected in any detection period, the working state of the protocol bridge is immediately switched to the conversion state of the protocol bridge.
5. When the system starts to work, the system always operates according to the system working flow, and when the system breaks down or is powered off, the operation is finished.
According to the optimization method of the FC-AE-1553 protocol bridge, the technical means that the working state of the protocol bridge is kept or switched to be the protocol conversion state or the bus controller state according to the link state of the protocol bridge and the FC network (optical fiber channel transmission network) is adopted, so that the technical problem that when the optical fiber connected to the FC network by the protocol bridge fails, all the connected equipment on the whole MIL-STD-1553B bus loses control is solved, and the technical effect that after the link fails, the BC controller module (bus controller module) is started in time to prevent the equipment on the MIL-STD-1553B bus from being in a paralysis state is achieved. And a counter is arranged in the protocol bridge, and the link state of the protocol bridge and the FC network is recorded in a counting mode, so that the BC controller module can be started after a link fails for a period of time, and the wrong judgment caused by failure tolerance is prevented. After the link failure is recovered, the working state of the protocol bridge can be effectively switched to a protocol data conversion state (protocol conversion state), the control right of the device on the whole bus is transferred to an NC (Net Controller, a network Controller, and the receiving and sending of all data in the whole FC network are controlled by the network Controller), and the dynamic control right transfer is realized. Moreover, the link state of the protocol bridge and the FC network is detected at regular time, so that link failure and failure recovery can be found quickly, and the working state of the protocol bridge can be switched in time.
FIG. 2 is a schematic diagram of the major modules of an optimization device for an FC-AE-1553 protocol bridge according to an embodiment of the invention;
as shown in fig. 2, the optimizing device 200 for FC-AE-1553 protocol bridge according to the embodiment of the present invention mainly includes: a link detection module 201 and a switching control module 202. Wherein:
the link detection module 201 may be configured to detect a link between the protocol bridge and the optical fiber channel transmission network according to a detection period, and perform a counting operation on a counter provided in the protocol bridge according to a detection result; the switching control module 202 may be configured to maintain or switch the operating state of the protocol bridge according to the value of the counter and the operating state of the protocol bridge.
In addition, the link detection module 201 may be further configured to: when the link between the protocol bridge and the optical fiber channel transmission network is normal, setting the value of the counter as the detection times; and when the link of the protocol bridge and the fiber channel transmission network is in failure and the value of the counter is greater than zero, subtracting one from the value of the counter.
In addition, the switching control module 202 may further be configured to maintain the working state of the protocol bridge when the value of the counter is the detection number and the working state of the protocol bridge is the protocol conversion state; when the value of the counter is the detection times and the working state of the protocol bridge is the state of the bus controller, switching the working state of the protocol bridge into a protocol conversion state; when the value of the counter is zero and the working state of the protocol bridge is the state of the bus controller, the working state of the protocol bridge is maintained; and when the value of the counter is zero and the working state of the protocol bridge is a protocol conversion state, switching the working state of the protocol bridge into a bus controller state.
In addition, the detection period in the optimization device 200 of the FC-AE-1553 protocol bridge according to the embodiment of the present invention is set according to the minimum time accuracy of the system, and the detection times are set according to the switching time after failure required by the system, so that the switching time after failure is equal to the detection period.
It can be seen from the above description that, by adopting the technical means of maintaining or switching the working state of the protocol bridge to the protocol conversion state or the bus controller state according to the link state of the protocol bridge and the FC network (fibre channel transmission network), the technical problem that when the optical fiber connected to the FC network by the protocol bridge fails, all the attached devices on the whole MIL-STD-1553B bus lose control is solved, and thus the technical effect of starting the BC controller module (bus controller module) in time after the link fails to prevent the devices on the MIL-STD-1553B bus from being in a paralysis state is achieved. And a counter is arranged in the protocol bridge, and the link state of the protocol bridge and the FC network is recorded in a counting mode, so that the BC controller module can be started after a link fails for a period of time, and the wrong judgment caused by failure tolerance is prevented. After the link failure is recovered, the working state of the protocol bridge can be effectively switched to a protocol data conversion state (protocol conversion state), the control right of the device on the whole bus is transferred to an NC (Net Controller, a network Controller, and the receiving and sending of all data in the whole FC network are controlled by the network Controller), and the dynamic control right transfer is realized. Moreover, the link state of the protocol bridge and the FC network is detected at regular time, so that link failure and failure recovery can be found quickly, and the working state of the protocol bridge can be switched in time.
The invention also provides an electronic device and a readable medium according to the embodiment of the invention.
The electronic device of the present invention includes: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the FC-AE-1553 protocol bridge optimization method of an embodiment of the present invention.
The computer-readable medium of the present invention has stored thereon a computer program for implementing, when executed by a processor, a method for causing the computer to perform the optimization of the FC-AE-1553 protocol bridge of an embodiment of the present invention.
FIG. 5 illustrates an exemplary system architecture 500 to which the FC-AE-1553 protocol bridge optimization method or FC-AE-1553 protocol bridge optimization apparatus of embodiments of the invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (for example only) providing support for data sent out by the terminal devices 501, 502, 503. The background management server can perform data conversion, analysis and other processing on the received data and feed back the processing result to the terminal equipment.
It should be noted that the FC-AE-1553 protocol bridge optimization method provided by the embodiment of the present invention is generally performed by the server 505, and accordingly, the FC-AE-1553 protocol bridge optimization device is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
As shown in fig. 6, a schematic diagram of a computer system 600 suitable for implementing a terminal device of an embodiment of the invention is shown. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, the processes described in the system workflow diagrams above may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the system workflow diagram. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a link detection module and a handover control module. The names of these units do not in some cases form a limitation on the module itself, for example, the link detection module may also be described as "detecting the link of the protocol bridge and the fibre channel transmission network according to the detection period, and performing a counting operation on a counter provided in the protocol bridge according to the detection result".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: detecting the link between the protocol bridge and the optical fiber channel transmission network according to the detection period, and counting a counter arranged in the protocol bridge according to the detection result; and keeping or switching the working state of the protocol bridge according to the value of the counter and the working state of the protocol bridge.
The product can execute the method provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, because the technical means of keeping or switching the working state of the protocol bridge to be the protocol conversion state or the bus controller state according to the link state of the protocol bridge and the FC network (fiber channel transmission network) is adopted, the technical problem that when the optical fiber connected to the FC network by the protocol bridge fails, all the connected equipment on the whole MIL-STD-1553B bus loses control is solved, and the technical effect of starting the BC controller module (bus controller module) in time after the link fails to prevent the equipment on the MIL-STD-1553B bus from being in a paralysis state is achieved. And a counter is arranged in the protocol bridge, and the link state of the protocol bridge and the FC network is recorded in a counting mode, so that the BC controller module can be started after a link fails for a period of time, and the wrong judgment caused by failure tolerance is prevented. After the link failure is recovered, the working state of the protocol bridge can be effectively switched to a protocol data conversion state (protocol conversion state), the control right of the device on the whole bus is transferred to an NC (Net Controller, a network Controller, and the receiving and sending of all data in the whole FC network are controlled by the network Controller), and the dynamic control right transfer is realized. Moreover, the link state of the protocol bridge and the FC network is detected at regular time, so that link failure and failure recovery can be found quickly, and the working state of the protocol bridge can be switched in time.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for optimizing an FC-AE-1553 protocol bridge is characterized by comprising the following steps:
detecting the link of the protocol bridge and the optical fiber channel transmission network according to a detection period, and counting a counter arranged in the protocol bridge according to a detection result, wherein when the link of the protocol bridge and the optical fiber channel transmission network is normal, the value of the counter is set as the detection times; when the link between the protocol bridge and the fiber channel transmission network is in failure and the value of the counter is greater than zero, subtracting one from the value of the counter;
according to the value of the counter and the working state of the protocol bridge, the working state of the protocol bridge is kept or switched, wherein when the value of the counter is the detection times and the working state of the protocol bridge is the protocol conversion state, the working state of the protocol bridge is kept; when the value of the counter is the detection times and the working state of the protocol bridge is the state of the bus controller, switching the working state of the protocol bridge into a protocol conversion state; when the value of the counter is zero and the working state of the protocol bridge is the state of the bus controller, the working state of the protocol bridge is maintained; and when the value of the counter is zero and the working state of the protocol bridge is a protocol conversion state, switching the working state of the protocol bridge into a bus controller state.
2. The optimization method according to claim 1, wherein the detection period is set according to a minimum time accuracy of the system.
3. The optimization method according to claim 2, wherein the number of detections is set according to the post-failure switching time required by the system, so that the post-failure switching time is the detection period.
4. An optimizing device of FC-AE-1553 protocol bridge, comprising:
the link detection module is used for detecting the link between the protocol bridge and the optical fiber channel transmission network according to a detection period and counting a counter arranged in the protocol bridge according to a detection result, wherein when the link between the protocol bridge and the optical fiber channel transmission network is normal, the value of the counter is set as the detection times; when the link between the protocol bridge and the fiber channel transmission network is in failure and the value of the counter is greater than zero, subtracting one from the value of the counter;
the switching control module is used for keeping or switching the working state of the protocol bridge according to the value of the counter and the working state of the protocol bridge, wherein when the value of the counter is the detection times and the working state of the protocol bridge is the protocol conversion state, the working state of the protocol bridge is kept; when the value of the counter is the detection times and the working state of the protocol bridge is the state of the bus controller, switching the working state of the protocol bridge into a protocol conversion state; when the value of the counter is zero and the working state of the protocol bridge is the state of the bus controller, the working state of the protocol bridge is maintained; and when the value of the counter is zero and the working state of the protocol bridge is a protocol conversion state, switching the working state of the protocol bridge into a bus controller state.
5. The optimization apparatus according to claim 4, wherein the detection period is set according to a minimum time accuracy of the system.
6. The optimization device according to claim 5, wherein the number of detections is set according to the post-failure switching time required by the system, such that the post-failure switching time is the detection period.
7. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-3.
8. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-3.
CN201710801201.5A 2017-09-07 2017-09-07 Optimization method and device of FC-AE-1553 protocol bridge Active CN107666415B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710801201.5A CN107666415B (en) 2017-09-07 2017-09-07 Optimization method and device of FC-AE-1553 protocol bridge

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710801201.5A CN107666415B (en) 2017-09-07 2017-09-07 Optimization method and device of FC-AE-1553 protocol bridge

Publications (2)

Publication Number Publication Date
CN107666415A CN107666415A (en) 2018-02-06
CN107666415B true CN107666415B (en) 2020-11-03

Family

ID=61097148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710801201.5A Active CN107666415B (en) 2017-09-07 2017-09-07 Optimization method and device of FC-AE-1553 protocol bridge

Country Status (1)

Country Link
CN (1) CN107666415B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110998509B (en) * 2018-07-16 2021-11-09 华为技术有限公司 Method, equipment and system for acquiring optical module link negotiation information
CN109587029A (en) * 2018-11-29 2019-04-05 北京计算机技术及应用研究所 FC-AE-1553 bus and MIL-STD-1553B bus non-transparent bridge welding system
JP6988863B2 (en) * 2019-08-08 2022-01-05 横河電機株式会社 Protocol converters, data transmission methods, data transmission programs, and data transmission systems
CN111934753B (en) * 2020-07-22 2021-06-08 北京国科天迅科技有限公司 Method for processing fault node of optical fiber network system
CN112000605B (en) * 2020-08-26 2022-07-08 北京控制与电子技术研究所 Method and device for transmitting instructions and data
CN112995808B (en) * 2021-04-21 2021-10-22 北京国科天迅科技有限公司 FC-AE-1553 network optimization method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624574A (en) * 2011-01-27 2012-08-01 西门子公司 Security testing method and device for protocol implementation

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8281084B2 (en) * 2003-01-13 2012-10-02 Emlilex Design & Manufacturing Corp. Method and interface for access to memory within a first electronic device by a second electronic device
CN102075247B (en) * 2009-11-25 2014-08-06 中国科学院空间应用工程与技术中心 High-speed optical fiber bus
CN105049308B (en) * 2015-07-13 2018-09-18 成都成电光信科技股份有限公司 A kind of adaptive BC and its operation method based on protocol conversion bridge

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624574A (en) * 2011-01-27 2012-08-01 西门子公司 Security testing method and device for protocol implementation

Also Published As

Publication number Publication date
CN107666415A (en) 2018-02-06

Similar Documents

Publication Publication Date Title
CN107666415B (en) Optimization method and device of FC-AE-1553 protocol bridge
CN110879565A (en) Dual-computer redundancy control system and redundancy control/fault monitoring method and device thereof
CN110457176B (en) Monitoring method and device for distributed system, storage medium and electronic equipment
JP6265158B2 (en) Electronics
US10013367B2 (en) I/O processing system including dynamic missing interrupt and input/output detection
KR20210156243A (en) Training methods of deep-running frameworks, devices and storage media
CN111736867A (en) FPGA updating device, method and storage medium
CN112527567A (en) System disaster tolerance method, device, equipment and storage medium
CN112860342A (en) Method, device, equipment, system and storage medium for microservice configuration
CN116150051A (en) Command processing method, device and system
CN116699964A (en) Redundant operation method and system for industrial process controller
US9703646B2 (en) Centralized database system
US10855518B2 (en) Computer having an embedded switch
CN113641688B (en) Node updating method, related device and computer program product
CN111510480B (en) Request sending method and device and first server
CN109219105B (en) Route switching method and route switching system
CN112822039B (en) Main and standby mode switching method for dual-machine hot standby system
CN113010285B (en) Method, apparatus, device, medium, and article for processing data
CN114095343A (en) Disaster recovery method, device, equipment and storage medium based on double-active system
CN112217718A (en) Service processing method, device, equipment and storage medium
CN114567536B (en) Abnormal data processing method, device, electronic equipment and storage medium
CN111064618A (en) Method, device, equipment and storage medium for realizing high availability of server
CN116938826B (en) Network speed limiting method, device and system and electronic equipment
CN113852549B (en) Method for realizing independent data receiving and processing of main and standby systems
CN113765971A (en) Method, device, equipment and computer readable medium for controlling interface

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