[go: up one dir, main page]

CN113556290B - FC frame redundancy receiving method, system, equipment and medium based on frame characteristic symbol - Google Patents

FC frame redundancy receiving method, system, equipment and medium based on frame characteristic symbol Download PDF

Info

Publication number
CN113556290B
CN113556290B CN202110801289.7A CN202110801289A CN113556290B CN 113556290 B CN113556290 B CN 113556290B CN 202110801289 A CN202110801289 A CN 202110801289A CN 113556290 B CN113556290 B CN 113556290B
Authority
CN
China
Prior art keywords
frame
data
received
redundancy
characteristic
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
CN202110801289.7A
Other languages
Chinese (zh)
Other versions
CN113556290A (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.)
Xian Microelectronics Technology Institute
Original Assignee
Xian Microelectronics Technology Institute
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 Xian Microelectronics Technology Institute filed Critical Xian Microelectronics Technology Institute
Priority to CN202110801289.7A priority Critical patent/CN113556290B/en
Publication of CN113556290A publication Critical patent/CN113556290A/en
Application granted granted Critical
Publication of CN113556290B publication Critical patent/CN113556290B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/31Flow control; Congestion control by tagging of packets, e.g. using discard eligibility [DE] bits

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a FC frame redundancy receiving method, a system, equipment and a medium based on frame characteristic symbols, which can well process the problem of multi-protocol transmission by generating the frame characteristic symbols. The invention supports the transfer of FC-AE-ASM, FC-AV, FC-IP, FC-AE-1553 and other FC protocol frames, and has certain universality, high reliability and wide applicability; when the receiving is finished, the frame redundancy judgment can be carried out, the data frame is determined to be discarded or uploaded according to the judgment result, excessive data frame buffer space is not needed, the data link delay can be effectively reduced, the comparison judgment can be carried out on the data frame and a plurality of received frames, and certain flexibility is achieved; by maintaining the received frame characteristic character table, when the frame is processed and transmitted out of order, the received frame can be effectively identified, and the redundancy judgment abnormity caused by the inconsistent order of the dual-channel transmitted frames can be avoided.

Description

FC frame redundancy receiving method, system, equipment and medium based on frame characteristic symbol
Technical Field
The invention relates to the field of data communication, in particular to a FC frame redundancy receiving method, a system, equipment and a medium based on frame characteristic symbols.
Background
In a communication system, data is communicated in bus channels in the format of data frames, such as fibre channel, FC, frames and ethernet frames. Data frames belong to a two-layer protocol of a transmission protocol, and are widely applied to various transmission systems. The basic format of the frame comprises a frame start mark, a frame header, a load, a frame check and a frame end mark, wherein the effective information comprises the frame header and the load.
A fibre channel FC is a widely used communication protocol, and the FC frame structure is shown in fig. 1. The maximum length of the FC frame is 2148 bytes, and the maximum payload length that can be transmitted is 2112 bytes. The FC frame consists of a 4 byte header delimiter (SOF), a 24 byte header, a payload of length no more than 2112 bytes and a 4 byte redundancy check (CRC) and a 4 byte end of frame delimiter (EOF). The payload also contains an optional 64 byte space for distinguishing between different protocol mappings. The frame head delimiter and the frame tail delimiter are used for representing the start and the end of the frame, the frame head information comprises the control information of a link, the type of a transmission protocol, the frame control and other contents, the redundancy check CRC field adopts a 32-bit cyclic check mode to check the data frame, and a polynomial is used as follows:
X 32 +X 26 +X 23 +X 22 +X 16 +X 12 +X 11 +X 10 +X 8 +X 7 +X 5 +X 4 +X 2 +X+1
the FC frame is the smallest unit of data transmission in the fibre channel, and one or more FC frames constitute a sequence of frames, the frames in the same sequence of frames having the same frame sequence number (SEQ ID), and the position of the frame in the sequence of frames being determined by the sequence count (SEQ CNT). One or more FC frame sequences constitute a frame exchange, which is distinguished by a sender identifier (OX _ ID) and a receiver identifier (RX _ ID). Information such as SEQ _ ID, SEQ _ CNT, OX _ ID, and RX _ ID is included in FC frame header information, and the format of the FC frame header is shown in fig. 2.
FC-AE-ASM is a common FC protocol with deterministic, secure, low latency features, implemented by encapsulating ASM frame headers in the FC payload domain. The TYPE field in the frame header is '01001001', the DF _ CTL field is '00000000', the FC-AE-ASM takes the first 16 bytes in the frame load field as the ASM frame header, the ASM frame header contains information such as Message _ ID, SECURITY, PRIORITY, Message length and PRIORITY, and the ASM frame header format is shown in FIG. 3.
The FC-AV is a common FC protocol, defines the mapping of a video protocol on the FC protocol, and has the characteristics of high speed and real time. The TYPE field in the frame header is 01100000, the R _ CTL field is 01000100, and the optional frame header is not contained in the frame load field.
FC-IP is a common FC protocol that defines the mapping of ethernet protocols onto the FC protocol. The TYPE field in the frame header is '00000101', the R _ CTL field is '00000100', and the FC-IP takes the first 24 bytes in the frame load field as the network frame header and the LLC/SNAP frame header.
FC-AE-1553 is a common FC protocol that defines the mapping of the 1553B protocol onto the FC protocol. The FC-AE-1553 frame is divided into a command frame, a status frame and a data frame, wherein the command frame takes the first 24 bytes in the frame load field as an identifier, and the status frame takes the first 8 bytes in the frame load field as an identifier.
In the optical fiber network, FC protocol frames such as FC-AE-ASM, FC-AV, FC-IP and FC-AE-1553 have the possibility of cross transmission. According to the protocol, the FC data frame is minimum 24 bytes.
In a complex electronic information system, in order to improve the system communication reliability, a dual-channel redundancy transmission mode is usually adopted in the data transmission process, and communication abnormity caused by single channel failure is avoided through a redundancy receiving method. The dual-channel redundancy transmission has the advantages that the implementation is simple, the data frame retransmission is not needed when a single channel is abnormal, and the problem of bandwidth waste caused by the data frame retransmission is reduced.
In a communication network, data frames are communicated in a medium in the form of a data bit stream. At the receiving end, the frame data stream is received in sequence, and the data frame is cached locally before the data frame completes redundancy judgment and preprocessing. The redundant judgment and the frame preprocessing time are too long, which causes the frame buffer requirement to be increased and increases the resource overhead. To reduce local buffering, it is desirable to process the data frame as quickly as possible. Fewer cache resources place fast and efficient demands on the judgment logic, and the need for fast identification judgment is further urgent along with the increase of communication rate.
With the further complexity of electronic information systems and the further increase of network scale, the formats of data frames transmitted in a bus network increase, and due to different transmission priorities of the data frames, the frames may be transmitted out of order due to frame overtaking, and the order of receiving the frames by different channels may be different. Using conventional redundancy checking methods may cause redundancy recognition anomalies due to different received frame orders. When a routing node fails, there may be a situation where a broadcast data frame is repeatedly sent in the network, thereby causing a broadcast storm and reducing or even congesting the network.
There is a need to provide a solution to the problems of frame redundancy transmission, multiprotocol out-of-order transmission, and suppression of broadcast storms.
The chinese patent CN105356982B discloses a node dual port receiving redundancy method based on fiber channel FC frame field, which judges the redundant data frame by comparing SID, OXID, SEQ _ ID and SEQ _ CNT in the data frame, and overcomes the bottleneck problem of small range of redundancy mechanism based on ASM frame header Security field in the load domain. However, the method determines the redundancy check window through the double-port time difference, only can judge whether the current frame between two channels is redundant, and has the problems that the data frame receiving out of order and the broadcast storm can not be processed.
Disclosure of Invention
Aiming at the problems of frame redundancy transmission, multi-protocol out-of-order transmission and broadcast storm in the prior art, the invention provides an FC frame redundancy receiving method, a system, equipment and a medium based on frame characteristic symbols, and the judgment of redundant frames is rapidly realized through frame characteristic symbol comparison. The method can process frame redundancy transmission, multiprotocol out-of-order transmission and broadcast storm transmission inhibition, can be applied to data frame-based transmission networks such as an optical fiber bus FC and an Ethernet, and has the characteristics of simple design, small judgment delay and easy implementation.
The invention is realized by the following technical scheme:
an FC frame redundancy receiving method based on frame characteristics comprises the following steps:
the main channel and the backup channel respectively and independently receive the data frames;
correspondingly caching the data frames received by the main channel and the backup channel into local cache spaces of the main channel and the backup channel respectively;
the data frame generates a frame characteristic symbol of the received data frame in a local cache space;
performing first redundancy comparison on frame characteristic symbols of received data frames generated in a local cache space, and determining whether to discard the data frames according to a comparison result and a frame check result;
carrying out second redundancy comparison on the received data frame subjected to the first redundancy comparison and the received frame of the system, and determining to upload or discard the data frame according to a comparison result;
the received frame signature table in the system is updated.
Preferably, the frame characteristics comprise a frame characteristics field and a frame data field; the data source of the frame characteristic field comprises frame header information and partial load information; the data source length FL is equal to the sum of the frame header length of the data frame and the information length for distinguishing the frame type in the frame load; the data source of the frame data field includes a frame payload, and the data source length PL is equivalent to the length of the frame payload information.
Further, the generation method of the frame characteristic field is to convert the data source length FL into 32-bit parallel data according to the receiving sequence, and the number is FL/32; the parallel data is passed through an algorithm equivalent to a CRC redundancy check to generate a 32-bit frame feature field.
Further, the frame data field is equivalent to a 32-bit CRC check value.
Preferably, the first redundancy comparison method is to compare the frame characteristics in the main channel and the backup channel, and when the frame characteristics of the received frames in the main channel and the backup channel are not consistent, the received frames in the main channel and the backup channel are different;
when the frame characteristic fields of the frame characteristic symbols of the received frames of the main channel and the backup channel are consistent, if the data frame is effectively received, judging whether the frame data fields of the frame characteristic symbols of the main channel and the backup channel are consistent; if the received frames are consistent, the main channel and the backup channel are consistent, and the data frame of the backup channel is discarded; if not, the received frames of the primary and backup tunnels are not redundant transmissions.
And further, comparing the data frame subjected to the first redundancy comparison with the received frame in the received frame characteristic character table in the system, discarding the received frame when the comparison result is consistent, and uploading the received frame when the comparison result is inconsistent.
Preferably, the method for updating the received frame feature list in the system comprises: when the frame characteristic symbol is not in the received frame characteristic symbol table, deleting the frame characteristic symbol at the head of the table and adding the frame characteristic symbol to the tail of the table; when the frame signature is in the received frame signature table, the frame signature in the table is deleted and the frame signature table is added at the end of the table.
An FC frame redundancy receiving system based on frame characteristics comprises
The data receiving module is used for the main channel and the backup channel to respectively and independently receive the data frames;
the storage module is used for correspondingly caching the data frames received by the main channel and the backup channel into local cache spaces of the main channel and the backup channel respectively;
the data generating module is used for generating frame characteristic symbols of the received data frames in the local cache spaces of the main channel and the backup channel;
the first comparison module is used for respectively performing first redundancy comparison on frame characteristic symbols of received data frames generated in a local cache space by the main channel and the backup channel, and determining whether to discard the data frames according to a comparison result and a frame check result;
the second comparison module is used for carrying out second redundancy comparison on the received data frame subjected to the first redundancy comparison and the received frame of the system, and determining to upload or discard the data frame according to a comparison result;
and the data control module is used for updating the received frame characteristic character table in the system.
A computer device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, said processor implementing the steps of said frame-signature-based FC frame redundancy receiving method as described above when executing said computer program.
A computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the frame-characteristic-based FC frame redundancy receiving method as described above.
Compared with the prior art, the invention has the following beneficial technical effects:
the invention provides an FC frame redundancy receiving method based on frame characteristic symbols, which can well process the multi-protocol transmission problem through the generation of the frame characteristic symbols. The invention supports the transfer of FC-AE-ASM, FC-AV, FC-IP, FC-AE-1553 and other FC protocol frames, has certain universality, high reliability and wide applicability; when the receiving is finished, the frame redundancy judgment can be carried out, the data frame is determined to be discarded or uploaded according to the judgment result, excessive data frame buffer space is not needed, the data link delay can be effectively reduced, the comparison judgment can be carried out on the data frame and a plurality of received frames, and certain flexibility is achieved; by maintaining the received frame characteristic character table, when the frame is processed and transmitted out of order, the received frame can be effectively identified, and the redundancy judgment abnormity caused by the inconsistent order of the dual-channel transmitted frames can be avoided.
Drawings
FIG. 1 is a diagram illustrating a FC frame structure in the prior art;
FIG. 2 is a diagram illustrating a format of a FC frame header in the prior art;
FIG. 3 is a diagram illustrating a frame header format of an ASM frame in the prior art;
FIG. 4 is a flow chart of a method for receiving FC frame redundancy based on frame signatures in accordance with the present invention;
FIG. 5 is a flow chart of FC frame redundancy determination based on frame signatures in the present invention;
FIG. 6 is a frame signature format according to the present invention;
FIG. 7 is a table of depth 4 frame signatures in the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The invention is described in further detail below with reference to the accompanying drawings:
referring to fig. 4, the present invention provides a FC frame redundancy receiving method based on frame characteristic symbols, which quickly realizes the judgment of redundant frames through frame characteristic symbol comparison. The method can process frame redundancy transmission, multi-protocol out-of-order transmission and broadcast storm transmission inhibition, can be applied to data frame-based transmission networks such as an optical fiber bus FC and an Ethernet, and has the characteristics of simple design, small judgment delay and easy implementation.
Specifically, the FC frame redundancy receiving method includes the following steps:
the main channel and the backup channel respectively and independently receive the data frames;
correspondingly caching the data frames received by the main channel and the backup channel into local cache spaces of the main channel and the backup channel respectively;
the data frame generates a frame characteristic symbol of the received data frame in a local cache space;
performing first redundancy comparison on frame characteristic symbols of received data frames generated in a local cache space, and determining whether to discard the data frames according to a comparison result and a frame check result;
carrying out second redundancy comparison on the received data frame subjected to the first redundancy comparison and the received frame of the system, and determining to upload or discard the data frame according to a comparison result;
the received frame signature table in the system is updated.
Specifically, one of the two channels is a main channel, and the other channel is a backup channel. The two channels both need independent local cache space, and the local cache space is not smaller than the space size needed by caching 1 frame.
Specifically, the method for generating the frame characteristic symbol is generated according to a frame header and a frame load of the received data frame. The 64-bit frame signature is composed of a 32-bit frame signature field and a 32-bit frame data field, as shown in fig. 6; the data source of the frame characteristic field comprises frame header information and partial load information; the data source length FL is integral multiple of 32, and is equal to the sum of the frame header length of the data frame and the information length for distinguishing the frame type in the frame load; the data source of the frame data field comprises a frame payload, and the data source length PL is equal to the length of the frame payload information, i.e. the sum of the lengths of the frame header and the frame payload.
Specifically, the generation method of the frame characteristic field is to convert the data source length FL into 32-bit parallel data according to the receiving sequence, and the number is FL/32; the parallel data is passed through an algorithm equivalent to a CRC redundancy check to generate a 32-bit frame feature field. In the process of generating the frame characteristic field, if a frame end mark is met, the residual bits in the FL length are filled with all '1's, and then the frame characteristic field is generated.
Specifically, the frame data field is generated in the same manner as the cyclic check generation method specified by the FC protocol, and the frame data field is equivalent to a CRC check value of 32 bits.
The frame characteristic characters are generated in real time as the frame data stream is received. When the frame end mark is received and the representation data frame is completely received, the frame characteristic field and the frame data field are completely generated, and the frame characteristic symbol is generated in real time.
The frame check result in the invention is that whether the data frame is correct or not is determined by the redundancy check information in the frame information. If the frame redundancy check information is correct, the data frame is judged to be effectively received, otherwise, the data frame is judged to be abnormally received, and the data frame is discarded.
Specifically, as shown in fig. 5, the first redundancy comparison method is to compare frame features in the main channel and the backup channel, and when frame feature fields of frame features of received frames of the main channel and the backup channel are not consistent, the received frames of the current main channel and the current backup channel are different;
when the frame characteristic fields of the frame characteristic symbols of the received frames of the main channel and the backup channel are consistent, if the data frame is effectively received, judging whether the frame data fields of the frame characteristic symbols of the main channel and the backup channel are consistent; if the received frames are consistent, the main channel and the backup channel are consistent, and the data frame of the backup channel is discarded; if not, the received frames of the primary and backup tunnels are not redundant transmissions.
And further, comparing the data frame subjected to the first redundancy comparison with the received frame in the received frame characteristic character table in the system, discarding the received frame when the comparison result is consistent, and uploading the received frame when the comparison result is inconsistent.
The redundancy comparison method realizes comparison by inquiring the received frame characteristic character table. If the frame identifier exists in the received frame characteristic character table, the data frame is considered to be received, the data frame is discarded, otherwise, the data frame is considered not to be received before, and the data frame is uploaded.
The received frame characteristic character table maintenance method is realized by constructing a frame characteristic character table. The depth of the received frame feature table is determined by the nature of the communication network protocol that allows the frame to be delivered, and is typically set to 4. The header of the table stores the frame characteristics of the first received FC frame, and the tail of the table stores the frame characteristics of the last received FC frame. Initially the information in the received frame characterizer table is all 0 s.
The method for updating the received frame characteristic character table in the system comprises the following steps: when the frame characteristic symbol is not in the received frame characteristic symbol table, deleting the frame characteristic symbol at the head of the table and adding the frame characteristic symbol to the tail of the table; when the frame signature is in the received frame signature table, the frame signature in the table is deleted and the frame signature table is added at the end of the table.
Examples
In the multi-protocol FC transmission system, protocols transmitted in the system comprise FC-AE-ASM, FC-AV, FC-IP, FC-AE-1553 and the like, the frame formats are the same, and the difference is that TYPE, R _ CTL, parameter fields and the like are defined differently. The FC-AE-ASM data frame comprises a 24-byte frame head and a 16-byte ASM extension frame head, the FC-AV data frame only comprises a 24-byte frame head, the FC-IP data frame comprises a 24-byte frame head and a 24-byte extension frame head, the command frame in the FC-AE-1553 data frame comprises a 24-byte frame head and a 24-byte extension frame head, and the status frame in the FC-AE-1553 data frame comprises a 24-byte frame head and an 8-byte extension frame head. In handling the FC frame transmission process supporting the multi-protocol, the value of the FL is set to 48 bytes (384 bits), i.e., 384 bits need to be converted into a 32-bit generated frame feature field.
Hardware loop CRC polynomial for FC
X 32 +X 26 +X 23 +X 22 +X 16 +X 12 +X 11 +X 10 +X 8 +X 7 +X 5 +X 4 +X 2 +X+1
In a plurality of FC protocol transmission systems, considering the situation of data frame out-of-order delivery, the length of the received frame characteristic character table is set to 4, that is, the received frame characteristic character table stores 4 64-bit characteristic characters, and in view of implementation convenience, 8 32-bit structure frame characteristic character tables are adopted, as shown in fig. 7.
The frame redundancy receiving method according to the method is implemented as follows:
step 1, two channels independently receive data frames, wherein a channel I is a main channel, and a channel II is a backup channel. The main channel and the backup channel are only distinguished in name, and no difference exists in function implementation. Each channel is independently provided with a buffer area, FC frames need to store a frame header of 24 bytes at most and a load with the length not exceeding 2112 bytes, so that the local buffer is set to 2136 bytes.
And 2, the channel receives the data frame and sequentially generates a frame characteristic field of the frame characteristic symbol and a frame data field along with the reception of the frame data stream.
For example, 1, an FC data frame is received, of type FC-AE-ASM, and a data payload of 120 bytes. Since the set FL is 48 bytes, 48 bytes need to be continuously received for calculating the frame characteristic field. The 48 bytes received contain a 24 byte header, a 16 byte ASM extension header, and an immediately following 8 byte payload. From this 48 bytes of information, a 32bit frame feature field is generated. And after the data frame is received, judging whether the received data frame is correct or not through the frame check information. If the check information is not matched, the frame is considered to be abnormal, and the local cache and the frame characteristic symbol information are directly cleared. If the check information matches, the frame is considered to be received normally, and 32-bit check information is passed to the frame data field. The 32-bit frame feature field and the 32-bit frame data field are combined into a 64-bit frame feature.
For example, 2, an FC data frame of type FC-AV and a data payload of 16 bytes is received. Since the FL is set to 48 bytes, after receiving the 24-byte header, the 16-byte payload, and the 4-byte CRC, the data frame is received, and the received 44 bytes are supplemented with all '1' of 4 bytes, and the supplemented 48 bytes are needed, and the 32-bit frame characteristic field is calculated and derived. Whether the frame is normally received or not is judged by checking the information, and if the frame is abnormally received, the local cache and the frame characteristic symbol information are directly cleared. If the frame is received normally, 32-bit check information is passed to the frame data field. The 32-bit frame feature field and the 32-bit frame data field are combined into a 64-bit frame feature.
And 3, comparing the frame characteristic characters of the channel and the other channel, and judging redundant reception if the frame characteristic characters of the received frames are consistent. When the backup channel is in the redundant receiving state, the buffer area data and the frame characteristic symbol information of the backup channel are cleared, and the main channel does not operate. And if not, executing subsequent operation.
A more preferable method is that after the frame characteristic field is generated, the frame characteristic field is compared with the frame characteristic field of another channel, and if the frame characteristic is different, the frame characteristic is different necessarily, only the frame is judged to be effectively received. And uploading if the receiving is effective, and otherwise, discarding. Therefore, the judgment efficiency can be improved and the decision time can be saved based on the frame characteristic field advanced judgment.
And 4, inquiring the frame characteristic symbol of the channel and the received frame characteristic symbol table. If not, uploading, and if consistent, discarding.
Step 5, the length of the received frame characteristic character table is set to 4, and the initial storage value is 4 64-bit all 0. Comparing the frame characteristic character of the channel with 4 received frame characteristic character tables stored in the tables, if the table does not exist, considering that the frame is not received before, uploading the stored frame data, deleting the head of the table to represent the first received frame, and adding the frame characteristic character to the tail end of the table. If it is present in the table, the feature is appended to the tail end of the table and the buffer data is emptied.
In summary, the present invention provides a FC frame redundancy receiving method based on frame signatures, which can well handle the problem of multi-protocol transmission by generating the frame signatures. The method supports the transmission of FC protocol frames such as FC-AE-ASM, FC-AV, FC-IP, FC-AE-1553 and the like, and has certain universality, high reliability and wide applicability; when the receiving is finished, the frame redundancy judgment can be carried out, the data frame is determined to be discarded or uploaded according to the judgment result, excessive data frame buffer space is not needed, the data link delay can be effectively reduced, the judgment can be carried out with a plurality of received frames, and certain flexibility is achieved; by maintaining the received frame feature table, a "receive first process" is implemented in the frame redundancy receive process. When the frame disorder transmission is processed, the received frame can be effectively identified, the problem of redundancy judgment abnormity caused by inconsistent sequence of the dual-channel transmission frame is avoided, the repeated frame can be effectively identified, and when the abnormal repeated frame is sent, the repeated frame can be automatically filtered out, so that the transmission of the broadcast storm is inhibited.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details not careless or careless in the apparatus embodiment, please refer to the method embodiment of the present invention.
The invention provides an FC frame redundancy receiving system based on a frame characteristic symbol in an embodiment, which can be used to implement the FC frame redundancy receiving method based on the frame characteristic symbol in the above embodiment, specifically, the FC frame redundancy receiving system includes a data receiving module, configured to separately receive data frames in a main channel and a backup channel; the storage module is used for correspondingly caching the data frames received by the main channel and the backup channel into local cache spaces of the main channel and the backup channel respectively; the data generation module is used for generating frame characteristic symbols of the received data frames in local cache spaces of the main channel and the backup channel; the first comparison module is used for respectively performing first redundancy comparison on frame characteristic symbols of the received data frames generated in the local cache space by the main channel and the backup channel, and determining whether to discard the data frames according to a comparison result and a frame check result; the second comparison module is used for carrying out second redundancy comparison on the received data frame subjected to the first redundancy comparison and a received frame of the system, and determining to upload or discard the data frame according to a comparison result; and the data control module is used for updating the received frame characteristic character table in the system.
In yet another embodiment of the present invention, a computer device is provided, comprising a memory for storing a computer program, a processor, and a computer program stored in the memory and executable on the processor, the computer program comprising program instructions, the processor for executing the program instructions stored by the computer storage medium. The Processor may be a Central Processing Unit (CPU), or may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable gate array (FPGA) or other Programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc., which is a computing core and a control core of the terminal, and is adapted to implement one or more instructions, and is specifically adapted to load and execute one or more instructions to implement a corresponding method flow or a corresponding function; the processor of the embodiment of the invention can be used for the operation of the FC frame redundancy receiving method based on the frame characteristic symbol.
In yet another embodiment of the present invention, the present invention further provides a storage medium, specifically a computer-readable storage medium (Memory), which is a Memory device in a computer device and is used for storing programs and data. It is understood that the computer readable storage medium herein can include both built-in storage media in the computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space storing an operating system of the terminal. Also, one or more instructions, which may be one or more computer programs (including program code), are stored in the memory space and are adapted to be loaded and executed by the processor. It should be noted that the computer-readable storage medium may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as at least one disk memory. One or more instructions stored in a computer-readable storage medium may be loaded and executed by a processor to implement the corresponding steps of the FC frame redundancy receiving method based on frame characteristics in the above embodiments.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (9)

1. An FC frame redundancy receiving method based on frame characteristics is characterized by comprising the following steps:
the main channel and the backup channel respectively and independently receive the data frames;
correspondingly caching the data frames received by the main channel and the backup channel into local cache spaces of the main channel and the backup channel respectively;
the data frame generates a frame characteristic symbol of the received data frame in a local cache space;
performing first redundancy comparison on frame characteristic symbols of received data frames generated in a local cache space, and determining whether to discard the data frames according to a comparison result and a frame check result;
carrying out second redundancy comparison on the received data frame subjected to the first redundancy comparison and the received frame of the system, and determining to upload or discard the data frame according to a comparison result;
updating the received frame characteristic character table in the system;
the first redundancy comparison method is to compare the frame character in the main channel and the backup channel, when the frame character field of the frame character of the received frame of the main channel and the backup channel is not consistent, the received frame of the current main channel and the received frame of the backup channel are different;
when the frame characteristic fields of the frame characteristic symbols of the received frames of the main channel and the backup channel are consistent, if the data frame is effectively received, judging whether the frame data fields of the frame characteristic symbols of the main channel and the backup channel are consistent; if the received frames are consistent, the main channel and the backup channel are consistent, and the data frame of the backup channel is discarded; if not, the received frames of the primary and backup tunnels are not redundant transmissions.
2. The FC frame redundancy receiving method based on frame characteristics according to claim 1, wherein the frame characteristics comprise a frame characteristics field and a frame data field; the data source of the frame characteristic field comprises frame header information and partial load information; the data source length FL is equal to the sum of the frame header length of the data frame and the information length for distinguishing the frame type in the frame load; the data source of the frame data field includes a frame payload, and the data source length PL is equivalent to the length of the frame payload information.
3. The FC frame redundancy receiving method based on the frame characteristic symbol according to claim 2, wherein the frame characteristic field is generated by serial-parallel converting a data source length FL into 32 bits of parallel data in a receiving order, the number of which is FL/32; the parallel data is passed through an algorithm equivalent to a CRC redundancy check to generate a 32-bit frame feature field.
4. The FC frame redundancy receiving method based on frame characteristics according to claim 2, wherein the frame data field is equivalent to a CRC check value of 32 bits.
5. The FC frame redundancy receiving method based on the frame feature of claim 1, wherein the data frame subjected to the first redundancy comparison is compared with the received frame in the received frame feature table in the system, and when the comparison result is consistent, the received frame is discarded, and when the comparison result is inconsistent, the received frame is uploaded.
6. A method of FC frame redundancy reception based on frame signatures as claimed in claim 1, wherein the method of updating the received frame signature table in the system is: when the frame characteristic symbol is not in the received frame characteristic symbol table, deleting the frame characteristic symbol at the head of the table and adding the frame characteristic symbol to the tail of the table; when the frame signature is in the received frame signature table, the frame signature in the table is deleted and the frame signature table is added at the end of the table.
7. An FC frame redundancy receiving system based on frame characteristics is characterized by comprising
The data receiving module is used for the main channel and the backup channel to respectively and independently receive the data frames;
the storage module is used for correspondingly caching the data frames received by the main channel and the backup channel into local cache spaces of the main channel and the backup channel respectively;
the data generating module is used for generating frame characteristic symbols of the received data frames in the local cache spaces of the main channel and the backup channel;
the first comparison module is used for respectively performing first redundancy comparison on frame characteristic symbols of the received data frames generated in the local cache space by the main channel and the backup channel, and determining whether to discard the data frames according to a comparison result and a frame check result;
the second comparison module is used for carrying out second redundancy comparison on the received data frame subjected to the first redundancy comparison and the received frame of the system, and determining to upload or discard the data frame according to a comparison result;
and the data control module is used for updating the received frame characteristic character table in the system.
8. A computer device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor when executing said computer program realizes the steps of the FC frame redundancy receiving method based on frame signatures as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the frame-characteristic-based FC frame redundancy receiving method according to any one of claims 1 to 6.
CN202110801289.7A 2021-07-15 2021-07-15 FC frame redundancy receiving method, system, equipment and medium based on frame characteristic symbol Active CN113556290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110801289.7A CN113556290B (en) 2021-07-15 2021-07-15 FC frame redundancy receiving method, system, equipment and medium based on frame characteristic symbol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110801289.7A CN113556290B (en) 2021-07-15 2021-07-15 FC frame redundancy receiving method, system, equipment and medium based on frame characteristic symbol

Publications (2)

Publication Number Publication Date
CN113556290A CN113556290A (en) 2021-10-26
CN113556290B true CN113556290B (en) 2022-09-13

Family

ID=78131901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110801289.7A Active CN113556290B (en) 2021-07-15 2021-07-15 FC frame redundancy receiving method, system, equipment and medium based on frame characteristic symbol

Country Status (1)

Country Link
CN (1) CN113556290B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086192A (en) * 2022-05-09 2022-09-20 北京旋极信息技术股份有限公司 Data processing method, device and system and monitoring card
CN115061642A (en) * 2022-08-17 2022-09-16 北京国科天迅科技有限公司 Communication data storage method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111277480A (en) * 2020-01-19 2020-06-12 山东网聪信息科技有限公司 Method and system for discarding high-availability seamless redundant looped network repeat frame

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IES20010610A2 (en) * 2001-03-08 2002-09-18 Richmount Computers Ltd Reset facility for redundant processor using a fibre channel loop
EP1657888A1 (en) * 2004-11-16 2006-05-17 Abb Research Ltd. Reception of redundant and non-redundant frames
US7457902B2 (en) * 2006-07-21 2008-11-25 Emulex Design & Manufacturing Corporation Lock and release mechanism for out-of-order frame prevention and support of native command queueing in FC-SATA
CN104378186A (en) * 2014-10-31 2015-02-25 南京南瑞继保电气有限公司 Network redundant data processing methods, devices and system
CN105227279A (en) * 2015-10-19 2016-01-06 中国航空无线电电子研究所 A kind of Redundancy Management system for dual-fiber-channel network communicating system
CN105356982B (en) * 2015-12-08 2018-08-31 上海赛治信息技术有限公司 Node dual-port based on Fibre Channel frame field receives redundancy approach
CN107896141B (en) * 2017-12-11 2020-10-13 天津津航计算技术研究所 FC-AE-ASM network data redundancy method
CN112260803B (en) * 2020-11-03 2022-04-19 中航光电科技股份有限公司 FC equipment receiving end communication redundancy processing method
CN112636816B (en) * 2020-12-14 2022-05-20 中航光电科技股份有限公司 Dual-redundancy FC network transmission system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111277480A (en) * 2020-01-19 2020-06-12 山东网聪信息科技有限公司 Method and system for discarding high-availability seamless redundant looped network repeat frame

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
FC光纤通道技术研究综述;田泽等;《电子技术应用》(第09期);全文 *
fibre channel:what is it Good For?;Alexis Newell;《 The Data Center Overlods》;20160224;全文 *
一种支持QoS特性的SpaceFibre接口设计与实现;陈卫国,等;《微电子学》;20200416;全文 *

Also Published As

Publication number Publication date
CN113556290A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
EP2724505B1 (en) Header compression with a code book
US7653864B2 (en) Method and apparatus to perform error control
WO1999045678A1 (en) Reduced packet header in wireless communications network
CN113556290B (en) FC frame redundancy receiving method, system, equipment and medium based on frame characteristic symbol
WO2009004631A1 (en) Data packet header compression
US20240314079A1 (en) Service sending and receiving methods, device, system and storage medium
CN107258076A (en) Data transfer in communication network
WO2018161672A1 (en) Packet processing method, apparatus and system
CN102447530A (en) Data frame aggregation method with fault-tolerant function
CN113079074A (en) Protocol stack communication method, device and storage medium based on CAN bus
US8705524B1 (en) Systems and methods for embedding metadata in data packets
WO2017178397A1 (en) Low latency packet recovery
US12255737B2 (en) Method and apparatus for packet wash in networks
US20090210770A1 (en) Method, system and computer program product for end to end error checking in ethernet
CN105763375A (en) Data packet transmission method, receiving method and microwave station
CN113541874A (en) Data transmission method and network equipment
JP7035771B2 (en) Packet acquisition device, packet acquisition method, and packet acquisition program
JP5808261B2 (en) Frame transmission system
WO2020029893A1 (en) Method for receiving code block stream, method for sending code block stream and communication device
US8583822B2 (en) Method and system for minimum frame size support for a communication protocol encapsulated over Ethernet
CN116032421B (en) Ethernet link control device and storage medium
CN114978632B (en) Message transmission detection method, device, equipment and medium
US20240250915A1 (en) Method and apparatus for transmitting ethernet frame, and storage medium storing instructions to perform method for transmitting ethernet frame
JP7346662B2 (en) Data transmission methods and transfer devices
CN114095435A (en) Bit block transmission method and device

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