CN114338831A - Gateway communication method, communication equipment and storage medium - Google Patents

Gateway communication method, communication equipment and storage medium Download PDF

Info

Publication number
CN114338831A
CN114338831A CN202111459801.0A CN202111459801A CN114338831A CN 114338831 A CN114338831 A CN 114338831A CN 202111459801 A CN202111459801 A CN 202111459801A CN 114338831 A CN114338831 A CN 114338831A
Authority
CN
China
Prior art keywords
time
transmission
gateway
network
priority
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.)
Pending
Application number
CN202111459801.0A
Other languages
Chinese (zh)
Inventor
曹素芝
刘鹏
宋亚欣
余子晗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Technology and Engineering Center for Space Utilization of CAS
Original Assignee
Technology and Engineering Center for Space Utilization of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Technology and Engineering Center for Space Utilization of CAS filed Critical Technology and Engineering Center for Space Utilization of CAS
Priority to CN202111459801.0A priority Critical patent/CN114338831A/en
Publication of CN114338831A publication Critical patent/CN114338831A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a gateway communication method, communication equipment and a storage medium. The gateway communication method is applied to a gateway, and the gateway is used for transmitting data transmission communication between a communication network and a receiving communication network; one of the transmission communication network and the receiving communication network is an optical fiber network, and the other one is a time sensitive network; the method comprises the following steps: receiving a transmission data frame of a transmission communication network, and acquiring the transmission priority of the transmission data frame; the transmission data frame is converted into a conversion data frame for transmission in the receiving communication network, the transmission priority is mapped into a conversion priority according to the mapping rule, and the conversion priority is filled into a corresponding field of the conversion data frame. The invention effectively improves the efficiency of converting the data frame by the gateway.

Description

Gateway communication method, communication equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a gateway communication method, a communication device, and a storage medium.
Background
As a time-deterministic network, the TSN (time-sensitive network) is applied more and more widely in various fields. The gateway of the fibre channel and the TSN is a very important ring in TSN application, and is used for completing protocol conversion of two networks. When data frames need to be sent between two networks, because the types of the frames carried by the two networks are different, the priorities of the two networks are also different, if the priorities are not defined, resource waste is caused or time delay is caused by insufficient resources of important data, and the user requirements cannot be met.
Disclosure of Invention
In view of the above, the present invention provides a gateway communication method, a communication device and a storage medium, which are used to solve the problem of low efficiency of converting data frames by a gateway in the prior art.
In order to achieve one or a part of or all of the above or other objects, the present invention provides a gateway communication method applied to a gateway;
the gateway is used for transmitting data transmission communication between a communication network and a receiving communication network; one of the transmission communication network and the reception communication network is an optical fiber network, and the other is a time-sensitive network;
the gateway communication method comprises the following steps:
receiving a transmission data frame of the transmission communication network, and acquiring the transmission priority of the transmission data frame;
converting the transmission data frame into a conversion data frame for transmission in the receiving communication network, mapping the transmission priority into a conversion priority according to a mapping rule, and filling the conversion priority into a corresponding field of the conversion data frame.
Preferably, when the transmission communication network is an optical fiber network and the reception communication network is a time-sensitive network, the data frame is an FC frame, and the reception data frame is an ethernet frame;
the step of receiving the transmission data frame of the transmission communication network and acquiring the transmission priority of the transmission data frame includes:
receiving the FC frame, analyzing the FC frame, acquiring priority information of a transmission priority field in the FC frame, and acquiring the priority of the FC frame according to the priority information;
recombining the received at least one FC frame into an IPFC sequence;
the step of converting the data frame into a conversion frame for transmission over the receiving communication network, mapping the priority into a conversion priority according to a mapping rule, and populating the conversion priority into a corresponding field of the conversion frame includes:
analyzing the IPFC sequence to obtain an IP sequence, and dividing the IP sequence into a plurality of IP sections according to the maximum transmission unit size of the time sensitive network;
packing the IP sections into an Ethernet frame header, and filling the corresponding fields in the Ethernet frame header into the conversion priority;
the ethernet frame is sent to a time sensitive network. .
Preferably, when the transmission communication network is a time-sensitive network and the reception communication network is an optical fiber network, the data frame is an ethernet frame and the reception data frame is an FC frame;
the step of receiving the transmission data frame of the transmission communication network and acquiring the transmission priority of the transmission data frame includes:
receiving the Ethernet frame, and acquiring the transmission priority from the priority field of the Ethernet frame header;
the step of converting the data frame into a conversion frame for transmission over the receiving communication network, mapping the priority into a conversion priority according to a mapping rule, and populating the conversion priority into a corresponding field of the conversion frame includes:
recombining at least one Ethernet frame into an IP message, and mapping the IP message into an information unit;
and mapping the information unit into an IP sequence, packaging the IP sequence by a universal frame header to generate an FC frame, and filling the conversion priority in the corresponding field of the FC frame header.
Preferably, the gateway communication method further includes:
acquiring time delay information between the gateway and the time sensitive network, and correcting the time deviation of the gateway according to the time delay information to enable the gateway and a master clock of the time sensitive network to be synchronous;
and converting the time delay information into a synchronous source language and sending the synchronous source language to the optical fiber network, so that the optical fiber network is adjusted according to the time delay information and is synchronous with the time sensitive network master clock.
Preferably, the step of obtaining the time delay information between the gateway and the time-sensitive network includes:
and acquiring link delay time between every two adjacent nodes of the time sensitive network and local residence time of each node, and accumulating the link delay time and the local residence time to acquire the time delay information.
Preferably, the step of obtaining a link delay time between each two adjacent nodes of the time-sensitive network includes:
recording first sending time of a downstream node in two adjacent nodes to send test information to an upstream node in the two adjacent nodes;
recording first receiving time of the upstream node receiving the test information and second sending time of the upstream node sending reply information to the downstream node after receiving the test information;
recording second receiving time of the downstream node for receiving the reply message;
and calculating the link delay time between the upstream node and the downstream node according to the first sending time, the first receiving time, the second sending time and the second receiving time.
Preferably, the step of converting the time delay information into a synchronous source language and sending the synchronous source language to the optical fiber network includes:
and taking the gateway as a clock synchronization server, and periodically exchanging a synchronization signal with a client clock through the optical fiber network.
Preferably, the step of periodically exchanging synchronization signals with a client clock over the fiber optic network comprises:
periodically generating a synchronization event, sending a clock synchronization request signal to the client according to the synchronization event, and embedding a delay field in the clock synchronization request signal, wherein the delay field is used for representing first delay information between the generation time of the synchronization event and the sending time of the clock synchronization request signal;
acquiring the request receiving time when the client receives the clock synchronization request signal, and recording the receiving signal sending time when the client sends the clock synchronization receiving signal, wherein the clock synchronization receiving signal comprises second delay information;
acquiring the synchronous receiving time of the clock synchronous receiving signal received by the gateway;
calculating unidirectional transmission delay time between the client and the gateway according to the clock synchronization signal sending time, the request receiving time, the received signal sending time and the synchronous receiving time;
and acquiring a time difference value according to the unidirectional transmission delay time and the first delay information, and correcting the time difference value to a synchronous clock of the client so as to synchronize the time of the client and the time of the gateway.
To achieve one or a part of or all of the above or other objects, the present invention provides a storage medium storing a computer program, which, when executed by a processor, causes the processor to execute the steps of the method as described above.
To achieve one or a part of or all of the above objects or other objects, the present invention proposes a communication device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the method as described above.
The embodiment of the invention has the following beneficial effects:
the gateway is used for transmitting data transmission communication between a communication network and a receiving communication network, when a transmission data frame of the transmission communication network is received, the transmission priority of the transmission data frame is obtained, the transmission priority is mapped to be a conversion priority, the conversion priority is filled in a corresponding field of the conversion data frame converted from the transmission data frame and used for distributing corresponding resources to the conversion data frame according to the conversion priority, the condition of insufficient resource distribution or resource waste is avoided, and the efficiency of converting the data frame by the gateway is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a schematic structural diagram of a gateway in an embodiment provided by the present invention;
fig. 2 is a schematic flow chart of a gateway communication method according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a second embodiment of a gateway communication method provided by the present invention;
fig. 4 is a flowchart illustrating a third embodiment of a gateway communication method provided by the present invention;
fig. 5 is a schematic flow chart of a fourth embodiment of a gateway communication method provided by the present invention;
FIG. 6 is a schematic diagram of a synchronization model of a gateway and FC network provided by the present invention;
fig. 7 is a schematic structural diagram of an embodiment of a communication device provided in the present invention;
fig. 8 is a schematic structural diagram of an embodiment of a storage medium provided in the present invention.
Detailed Description
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 derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a gateway in an embodiment of the invention. As shown in fig. 1, one side of the gateway 10 is connected to the FC network, and the other side is connected to the TSN network.
By adopting the gateway, the IP message sent by the common Ethernet in the Ethernet can be accessed into the FC network; or converting the frame into an IPFC frame to communicate with the FC network node; or a cross-domain FC network, communicating with a common ethernet node at the other end connected to the gateway.
In the embodiment of the invention, three types of frames, namely, FC _ AE _1553 frames, time synchronization frames and IPFC frames, are borne in an FC network connected with a gateway, wherein the time synchronization frames in the FC network are only used for time synchronization in the FC network, so that the time synchronization frames received by the gateway in the FC network cannot be forwarded to a TSN network. For the FC-AE-1553 frame, the transmission is used for the FC frame in the FC network, so the gateway does not convert and transmit the frame. For the IPFC frame, it needs to be transmitted to the TSN network, the gateway converts the corresponding frame header of the received IPFC frame and then transmits it, extracts the IP data packet encapsulated in the IPFC frame, and meanwhile, because the priority of the data frame in the FC network is not consistent with the priority in the TSN (time sensitive network), it also needs to perform traffic adaptation according to the priority.
The TSN network connected with the gateway bears three types of frames, namely time sensitive frames, reserved frames and best effort frames, which respectively correspond to 8 different priorities, wherein the priorities are 0-7, and the priority levels are sequentially reduced. For time sensitive frames, the priority is typically 0 and 1. For a reservation frame, the priority level is typically 2-4. For best effort frames, the priority level is typically 5-7. Meanwhile, in the TSN network, time synchronization of devices on each TSN network side is also required to maintain the time synchronization characteristics, so that a time synchronization frame is also required to be transmitted in the network. For time synchronization frames, reserved frames with priority 2 are usually mapped in the TSN network for transmission, while no other frames are allocated, and the priority of the reserved frames is 2. For the TSN frames to be transmitted to the FC network side, the priority is uniformly set to be 5-7, namely, the data frames to be transmitted to the FC side are all best-effort frames.
Referring to fig. 2, fig. 2 is a flowchart illustrating a gateway communication method according to a first embodiment of the present invention. The gateway communication method provided by the invention comprises the following steps:
s101: and receiving a transmission data frame of the transmission communication network, and acquiring the transmission priority of the transmission data frame.
In a specific implementation scenario, the gateway is the gateway shown in fig. 1, and a transmission communication network connected to the gateway needs to convert a transmission data frame into a conversion data frame through the gateway and then send the conversion data frame to a receiving communication network connected to the receiving gateway, so that the transmission communication network can transmit data to the receiving communication network, thereby implementing communication between the two communication networks.
However, the network transmission resources are limited, and when a large amount of data needs to be transmitted, priority is assigned to the data frames corresponding to the data, and the data frames with higher priority are transmitted preferentially. The transmission resources allocated to the data frames need to be determined according to the priority in each network, while the types of the data frames carried by the transmission communication network and the receiving communication network are different, and the number and the standard of the priority are different, for example, one of the transmission communication network and the receiving communication network is prioritized in the range of 1-10, and the other one is prioritized in the range of 0-127, so that the priority of the data frames in the transmission communication network cannot be directly applied to the receiving communication network.
Therefore, when a transmission data frame sent by the transmission communication network is received, the transmission data frame is analyzed to obtain the transmission priority of the transmission data frame, the transmission priority is the priority defined by the transmission data frame in the transmission communication network, and the transmission priority can be determined according to the data frame type of the transmission data frame or can be set according to the requirements of other users.
S102: the transmission data frame is converted into a conversion data frame for transmission in the receiving communication network, the transmission priority is mapped into a conversion priority according to the mapping rule, and the conversion priority is filled into a corresponding field of the conversion data frame.
In a specific implementation scenario, the data frame formats of the data frames carried by the transmitting communication network and the receiving communication network are different, so that it is necessary to convert the transmitting data frame into a converted data frame capable of being transmitted in the receiving communication network. The transmission priority of the transmission data frame is converted into a conversion priority of the conversion data frame. For example, the number and standard of priority partitions of the transmission communication network and the number and standard of priority partitions of the reception communication network may be acquired in advance, the priorities of the two may be mapped, a mapping relationship between the two may be acquired, and the transmission priority may be mapped to the conversion priority according to the mapping relationship.
After the conversion priority is acquired, the conversion priority is filled in a field used for representing the conversion priority in the conversion data frame, so that after the conversion data frame is received by a receiving communication network, the conversion priority of the conversion data frame can be known by reading the content of the field representing the priority, corresponding resources are allocated to the conversion data frame according to the conversion priority, the condition of insufficient resource allocation or resource waste is avoided, and the efficiency of converting the data frame by the gateway is effectively improved.
As can be seen from the above description, in this embodiment, the gateway is used for data transmission communication between the transmission communication network and the reception communication network, and when a transmission data frame of the transmission communication network is received, obtains a transmission priority of the transmission data frame, maps the transmission priority to a conversion priority, and fills the conversion priority into a corresponding field of the conversion data frame converted from the transmission data frame, and the corresponding resource is allocated to the conversion data frame according to the conversion priority, so as to avoid a situation of insufficient resource allocation or resource waste, and effectively improve efficiency of converting the data frame by the gateway.
Referring to fig. 3, fig. 3 is a flowchart illustrating a gateway communication method according to a second embodiment of the present invention. When the transmission communication network is an optical fiber network, the receiving communication network is a time sensitive network, the data frame is an FC frame, and the receiving data frame is an Ethernet frame, the gateway communication method provided by the invention comprises the following steps:
s201: and receiving the FC frame, analyzing the FC frame, acquiring priority information of a transmission priority field in the FC frame, and acquiring the priority of the FC frame according to the priority information. And recombining the received at least one FC frame into an IPFC sequence.
In a specific implementation scenario, referring to fig. 1, after the gateway is powered on and reset, the gateway receives an FC frame from the FC universal interface module, performs photoelectric conversion on the FC-0 layer, performs 8B/10B decoding on the FC-1 layer, performs parsing on the FC-2 layer, removes the FC-2 frame header, and reads the priority information of the CS-CTL priority field in the frame header. The FC generic interface module then reassembles the received one or more FC frames into an IPFC sequence.
S202: and analyzing the IPFC sequence to obtain an IP sequence, and dividing the IP sequence into a plurality of IP sections according to the maximum transmission unit size of the time sensitive network.
In a specific implementation scenario, a protocol conversion module of a gateway parses and removes a network frame header and a link control frame header of an IPFC sequence, recovers the IP sequence into an IU (Information Unit), segments the IP sequence into a plurality of IP segments suitable for a time-sensitive ethernet link MTU (Maximum Transmission Unit) according to the length of the IU and the size of the MTU value, and transmits the segmented IP segments to a TSN universal interface module.
S203: packaging a plurality of IP sections into an Ethernet frame header, and filling corresponding fields in the Ethernet frame header into conversion priorities; the ethernet frame is sent to a time sensitive network.
In a specific implementation scenario, the TSN universal interface module packages a time-sensitive ethernet frame header (MAC frame header) with a MAC layer on a plurality of IP segments segmented by an IP sequence, and fills a PCP (priority field) in a VLAN field of the ethernet frame header to a value of 5 to 7 in the process of packaging the ethernet frame header, that is, maps the PCP to a best effort frame in the TSN network for transmission. Because the type of the converted data frame after the conversion of the gateway is the best effort frame, time slices do not need to be reserved for each device of the TSN in advance when the best effort frame is transmitted, and the efficiency of converting and transmitting the data frame by the gateway is improved. The ethernet frame is then sent to the TSN network via the PHY layer of the TSN universal interface module.
As can be seen from the above description, in this embodiment, the gateway receives the FC frame, obtains the transmission priority corresponding to the priority information of the transmission priority field in the FC frame, maps the transmission priority to the conversion priority, and fills the corresponding field in the ethernet frame header converted from the FC frame to the conversion priority, so that the gateway and the TSN network can allocate reasonable resources to the ethernet frame according to the conversion priority, thereby improving the conversion efficiency of the gateway on the data frame and avoiding resource waste.
Referring to fig. 4, fig. 4 is a flowchart illustrating a gateway communication method according to a third embodiment of the present invention. When the transmission communication network is a time sensitive network, the receiving communication network is an optical fiber network, the data frame is an Ethernet frame, and the receiving data frame is an FC frame, the gateway communication method provided by the invention comprises the following steps:
s301: and receiving the Ethernet frame, and acquiring the transmission priority from the priority field of the Ethernet frame header.
In one embodiment, please refer to FIG. 1 in combination. And powering on and resetting the gateway, receiving the Ethernet frame from the TSN universal interface module, performing level conversion on the PHY layer, analyzing and removing the MAC frame header on the MAC layer, reading a corresponding priority field value from the MAC frame header, namely a PCP value in a VLAN field of the Ethernet frame header, and acquiring the transmission priority of the Ethernet frame.
S302: and recombining the at least one Ethernet frame into an IP message, and mapping the IP message into an information unit. And mapping the information unit into an IP sequence, packaging the IP sequence by a universal frame header to generate an FC frame, and filling the conversion priority in a corresponding field of the FC frame header.
In a specific implementation scenario, a protocol conversion module of the gateway reassembles at least one ethernet frame received by the gateway into 1 IP packet, and maps the IP packet to an information unit. And carrying out IPFC (IP FC) packaging on the information unit, building an FC network frame header and a link control frame header, mapping the information unit into an IP sequence, and sending the IP sequence to an FC general interface module of the gateway.
And performing FC frame header packing on the IP sequence at an FC-2 layer of the FC general interface module, and sending the IP sequence to an FC network channel after 8B/10B coding of an FC-1 layer and electro-optical conversion of an FC-0 layer. In the process of FC-2 and the like of packing FC frame headers, a target FC port address corresponding to a target IP address is searched according to a preset mapping table, the FC port address is packed into the FC frame header, a corresponding conversion priority is obtained according to a transmission priority read from an MAC frame header of an Ethernet frame, and a CS _ CTL field value in the FC frame header is set according to the conversion priority. There are 127-0 levels in the FC network, and the priority of 5-7 in the TSN network maps to the priority of 47-0 in the CS _ CTL field in the FC frame header.
As can be seen from the above description, in this embodiment, the gateway receives the ethernet frame, acquires the transmission priority from the priority field of the ethernet frame header, maps the transmission priority to the conversion priority, and fills the conversion priority in the CS _ CTL field of the FC frame header converted from the ethernet frame, so that the gateway and the FC network can allocate reasonable resources to the ethernet frame according to the conversion priority, thereby improving the conversion efficiency of the gateway on the data frame and avoiding resource waste.
Referring to fig. 5, fig. 5 is a flowchart illustrating a gateway communication method according to a fourth embodiment of the present invention. The gateway communication method provided by the invention comprises the following steps:
s401: and acquiring time delay information of the gateway compared with the time sensitive network, and correcting the time deviation of the gateway according to the time delay information so as to synchronize the gateway with the master clock of the time sensitive network.
In a specific implementation scenario, the time sensitive network includes a plurality of nodes, and a data frame has a certain time delay when being transmitted between the plurality of network nodes, so that time delay information of the gateway is obtained compared with a master clock of the time sensitive network, and the time of the gateway is corrected according to the time delay information, so that the gateway and the master clock of the time sensitive network are synchronized.
Specifically, for two adjacent nodes in the TSN network, the slave end located downstream actively sends a test message, such as a Pdelay _ Rep message, to the master end upstream, and records, with the clock of the local node, a first sending time t1 when the Pdelay _ Rep message is sent. After receiving the Pdelay _ Rep message, the master records a first receiving time t2 of receiving the Pdelay _ Rep message, sends back complex information, such as the Pdelay _ Resp message, to the slave, and records a second sending time t3 of sending the Pdelay _ Resp message. After sending the Pdelay _ Resp message, the master terminal sends a Pdelay _ Resp _ flow _ Up message and transmits the second sending time t3 to the slave terminal, and the slave terminal records the second receiving time t4 after receiving the Pdelay _ Resp message.
According to the first sending time t1, the first receiving time t2, the second sending time t3 and the second receiving time t4, the propagation delays in two link directions from the slave end to the master end and from the master end to the slave end can be calculated, and then the propagation delays are averaged, so that the average link delay time delay in a single direction of the link can be obtained.
Specifically, the link delay time delay is calculated according to the following formula:
Figure BDA0003389452040000121
in the implementation scenario, an upstream master end sends a Sync message and a follow message to a slave end of a downstream node, a switching node receives the synchronization message of the upstream node transfer time and accumulates link delay and local residence time, then sends a time synchronization message (Sync message) to a next node and repeats the steps, link delay time between each node and the local residence time of each node are accumulated, delay information of an optimal master clock node for transferring the gateway as the slave end and the TSN network is obtained, and the gateway corrects time according to the delay information to realize high-precision time synchronization of the gateway and the TSN network master clock time.
S402: and converting the time delay information into a synchronous source language and sending the synchronous source language to the optical fiber network so that the optical fiber network is adjusted according to the time delay information and is synchronous with the time sensitive network master clock.
In a specific implementation scenario, the delay information is converted into a synchronization source to be sent to the optical network, so that the optical network performs adjustment according to the delay information to synchronize with the time-sensitive network master clock. Therefore, time synchronization of the FC network, the gateway and the TSN network is effectively realized, and the communication timeliness is effectively improved.
Specifically, the gateway acts as a clock synchronization server, periodically exchanging synchronization signals with the client clock over the FC network. Referring to fig. 6, fig. 6 is a schematic diagram of a synchronization model of a gateway and an FC network according to the present invention. The reference clock of the gateway (after having been synchronized with the master clock of the TSN network) periodically generates a synchronization event, and records the generation time T1 of the synchronization event. The synchronization event will cause a clock synchronization request/receive signal to be exchanged between the gateway and the at least one client. In order to calculate the delay between the sending end and the receiving end, a delay field is embedded in the clock synchronization request signal, and the delay field is used for synchronizing first delay information between the event generation time and the clock synchronization request signal sending time.
In the present embodiment, the clock synchronization request signal is transmitted to the client at the time T2, and the first delay information (T2-T1) between the synchronization event generation time T1 and the clock synchronization request signal transmission time T2 is embedded into the delay field of the clock synchronization request signal.
When the client receives the clock synchronization request signal at time T3, the synchronization clock is set according to the value of the delay field (T2-T1) in the clock synchronization request signal. And then starts clock synchronization reception signal transmission to the gateway at time T4. Second delay information (T4-T3) between the request reception time T3 at which the clock synchronization request signal is received and the reception signal transmission time T4 at which the clock synchronization reception signal is transmitted is embedded in the clock synchronization reception signal.
When the gateway receives the clock synchronization reception signal, the synchronization reception time T5 is recorded. The difference (T5-T2) between the clock synchronization request signal transmission timing T2 and the synchronization reception timing T5 is calculated. Then, the total transmission time is calculated to be (T5-T4) + (T3-T2) by subtracting the second delay information (T4-T3) from (T5-T2). Dividing the total transmission time by (T5-T4) + (T3-T2) by 2 yields the one-way transmission delay between the gateway and the client.
Repeating the above process, and delaying the one-way propagation by the gateway according to the subsequent synchronous event
Figure BDA0003389452040000131
First delay information (T2-T1) between the synchronization time generation and the request is added so that the delay is the difference in time between the client's synchronization clock and the gateway synchronization clock. And correcting the synchronous clock of the client according to the time difference value so as to synchronize the client and the gateway time. The time synchronization between the FC network client and the TSN network optimal master clock can be realized through the steps.
As can be seen from the above description, in this embodiment, time delay information between the gateways and the time sensitive network is obtained, and the time offset of the gateway is corrected according to the time delay information, so that the gateway and the master clock of the time sensitive network are synchronized; the time delay information is converted into a synchronous source language and sent to the optical fiber network, so that the client of the optical fiber network can adjust according to the time delay information, and the time synchronization between the FC network client and the TSN network optimal main clock can be accurately and efficiently realized.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a communication device according to an embodiment of the present invention. The communication device 20 comprises a processor 21, a memory 22. The processor 21 is coupled to a memory 22. The memory 22 has stored therein a computer program which is executed by the processor 21 in operation to implement the method as shown in fig. 1-3. The detailed methods can be referred to above and are not described herein.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a storage medium according to an embodiment of the present invention. The storage medium 30 stores at least one computer program 31, and the computer program 31 is used for being executed by a processor to implement the method shown in fig. 1-3, and the detailed method can be referred to above and is not described herein again. In one embodiment, the computer readable storage medium 30 may be a memory chip in a terminal, a hard disk, or other readable and writable storage tool such as a removable hard disk, a flash disk, an optical disk, or the like, and may also be a server or the like.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A gateway communication method, applied to a gateway,
the gateway is used for transmitting data transmission communication between a communication network and a receiving communication network; one of the transmission communication network and the reception communication network is an optical fiber network, and the other is a time-sensitive network;
the gateway communication method comprises the following steps:
receiving a transmission data frame of the transmission communication network, and acquiring the transmission priority of the transmission data frame;
converting the transmission data frame into a conversion data frame for transmission in the receiving communication network, mapping the transmission priority into a conversion priority according to a mapping rule, and filling the conversion priority into a corresponding field of the conversion data frame.
2. The gateway communication method according to claim 1, wherein when the transmission communication network is an optical fiber network and the reception communication network is a time-sensitive network, the data frame is an FC frame and the reception data frame is an ethernet frame;
the step of receiving the transmission data frame of the transmission communication network and acquiring the transmission priority of the transmission data frame includes:
receiving the FC frame, analyzing the FC frame, acquiring priority information of a transmission priority field in the FC frame, and acquiring the transmission priority of the FC frame according to the priority information;
recombining the received at least one FC frame into an IPFC sequence;
the step of converting the data frame into a conversion frame for transmission over the receiving communication network, mapping the priority into a conversion priority according to a mapping rule, and populating the conversion priority into a corresponding field of the conversion frame includes:
analyzing the IPFC sequence to obtain an IP sequence, and dividing the IP sequence into a plurality of IP sections according to the maximum transmission unit size of the time sensitive network;
packing the IP sections into an Ethernet frame header, and filling the corresponding fields in the Ethernet frame header into the conversion priority;
the ethernet frame is sent to a time sensitive network.
3. The gateway communication method according to claim 1, wherein when the transmission communication network is a time-sensitive network and the reception communication network is a fiber optic network, the data frame is an ethernet frame and the reception data frame is an FC frame;
the step of receiving the transmission data frame of the transmission communication network and acquiring the transmission priority of the transmission data frame includes:
receiving the Ethernet frame, and acquiring the transmission priority from the priority field of the Ethernet frame header;
the step of converting the data frame into a conversion frame for transmission over the receiving communication network, mapping the priority into a conversion priority according to a mapping rule, and populating the conversion priority into a corresponding field of the conversion frame includes:
recombining at least one Ethernet frame into an IP message, and mapping the IP message into an information unit;
and mapping the information unit into an IP sequence, packaging the IP sequence by a universal frame header to generate an FC frame, and filling the conversion priority in the corresponding field of the FC frame header.
4. The gateway communication method according to claim 1, further comprising:
acquiring time delay information between the gateway and the time sensitive network, and correcting the time deviation of the gateway according to the time delay information to enable the gateway and a master clock of the time sensitive network to be synchronous;
and converting the time delay information into a synchronous source language and sending the synchronous source language to the optical fiber network so that a client of the optical fiber network can adjust according to the time delay information and synchronize with the time sensitive network master clock.
5. The gateway communication method according to claim 4, wherein the step of obtaining the time delay information between the gateway and the time-sensitive network comprises:
and acquiring link delay time between every two adjacent nodes of the time sensitive network and local residence time of each node, and accumulating the link delay time and the local residence time to acquire the time delay information.
6. The gateway communication method according to claim 5, wherein the step of obtaining the link delay time between each two adjacent nodes of the time-sensitive network comprises:
recording first sending time of a downstream node in two adjacent nodes to send test information to an upstream node in the two adjacent nodes;
recording first receiving time of the upstream node receiving the test information and second sending time of the upstream node sending reply information to the downstream node after receiving the test information;
recording second receiving time of the downstream node for receiving the reply message;
and calculating the link delay time between the upstream node and the downstream node according to the first sending time, the first receiving time, the second sending time and the second receiving time.
7. The gateway communication method of claim 4, wherein the step of converting the time delay information into a synchronized source language for transmission into the fiber optic network comprises:
and taking the gateway as a clock synchronization server, and periodically exchanging a synchronization signal with a client clock through the optical fiber network.
8. The gateway communication method of claim 8, wherein the step of periodically exchanging synchronization signals with a client clock over the fiber optic network comprises:
periodically generating a synchronization event, sending a clock synchronization request signal to the client according to the synchronization event, and embedding a delay field in the clock synchronization request signal, wherein the delay field is used for representing first delay information between the generation time of the synchronization event and the sending time of the clock synchronization request signal;
acquiring the request receiving time when the client receives the clock synchronization request signal, and recording the receiving signal sending time when the client sends the clock synchronization receiving signal, wherein the clock synchronization receiving signal comprises second delay information;
acquiring the synchronous receiving time of the clock synchronous receiving signal received by the gateway;
calculating unidirectional transmission delay time between the client and the gateway according to the clock synchronization signal sending time, the request receiving time, the received signal sending time and the synchronous receiving time;
and acquiring a time difference value according to the unidirectional transmission delay time and the first delay information, and correcting the time difference value to a synchronous clock of the client so as to synchronize the time of the client and the time of the gateway.
9. A storage medium storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 8.
10. A communication device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 8.
CN202111459801.0A 2021-12-02 2021-12-02 Gateway communication method, communication equipment and storage medium Pending CN114338831A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111459801.0A CN114338831A (en) 2021-12-02 2021-12-02 Gateway communication method, communication equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111459801.0A CN114338831A (en) 2021-12-02 2021-12-02 Gateway communication method, communication equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114338831A true CN114338831A (en) 2022-04-12

Family

ID=81049129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111459801.0A Pending CN114338831A (en) 2021-12-02 2021-12-02 Gateway communication method, communication equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114338831A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060098681A1 (en) * 2004-10-22 2006-05-11 Cisco Technology, Inc. Fibre channel over Ethernet
CN106789609A (en) * 2016-12-26 2017-05-31 中国科学院空间应用工程与技术中心 FC EG gateways, the communication conversion method between optical-fibre channel and Ethernet
CN108965171A (en) * 2018-07-19 2018-12-07 重庆邮电大学 Industrial wireless WIA-PA network and time-sensitive network conversion method and device
CN111212089A (en) * 2020-02-14 2020-05-29 重庆邮电大学 Protocol conversion method for EtherCAT and IPv6 network
CN111682919A (en) * 2020-06-25 2020-09-18 安徽理工大学 Time synchronization method for underground sensing equipment based on time sensitive network
CN112087461A (en) * 2020-09-11 2020-12-15 工业互联网创新中心(上海)有限公司 System, method, device and equipment for data circulation of MODBUS/TCP protocol in TSN network
CN113302885A (en) * 2019-01-21 2021-08-24 华为技术有限公司 Ethernet and controller area network protocol conversion for vehicular networks

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060098681A1 (en) * 2004-10-22 2006-05-11 Cisco Technology, Inc. Fibre channel over Ethernet
CN106789609A (en) * 2016-12-26 2017-05-31 中国科学院空间应用工程与技术中心 FC EG gateways, the communication conversion method between optical-fibre channel and Ethernet
CN108965171A (en) * 2018-07-19 2018-12-07 重庆邮电大学 Industrial wireless WIA-PA network and time-sensitive network conversion method and device
CN113302885A (en) * 2019-01-21 2021-08-24 华为技术有限公司 Ethernet and controller area network protocol conversion for vehicular networks
CN111212089A (en) * 2020-02-14 2020-05-29 重庆邮电大学 Protocol conversion method for EtherCAT and IPv6 network
CN111682919A (en) * 2020-06-25 2020-09-18 安徽理工大学 Time synchronization method for underground sensing equipment based on time sensitive network
CN112087461A (en) * 2020-09-11 2020-12-15 工业互联网创新中心(上海)有限公司 System, method, device and equipment for data circulation of MODBUS/TCP protocol in TSN network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘天雄: "卫星导航系统概论", 中国宇航出版社, pages: 531 - 533 *

Similar Documents

Publication Publication Date Title
US8982897B2 (en) Data block output apparatus, communication system, data block output method, and communication method
AU2017435222B2 (en) Method and apparatus for sending and receiving clock synchronization packet
US7012902B2 (en) Wireless communications system with dynamic transmission band assignment
JP6505255B2 (en) Time synchronization method and system, and network device
US11271668B2 (en) Data transmission methods, apparatuses, devices, and system
WO2018090856A1 (en) Method and device for building flexible ethernet group
CN109787703B (en) Timestamp correction method, clock synchronization method and system
CN102356603B (en) Apparatus and method of scheduling timing packets to enhance time distribution in telecommunication networks
CN112838903B (en) Clock synchronization method, equipment and storage medium
WO2015117501A1 (en) Time synchronization method, programmable logic device, single board and network element
CN101753578B (en) ETHERNET/EI protocol conversion method and protocol converter
CN105610727B (en) A kind of network data transmission method and device
WO2021109705A1 (en) Flexible ethernet group management method and device, and computer-readable storage medium
JP2020530739A (en) Methods and devices for transparently transmitting service frequencies
CN110546926B (en) Reducing packet delay variation of time sensitive packets
WO2011017992A1 (en) Bandwidth allocation method and optical line terminal
US9787417B2 (en) Data transmission method, device, and system
CN102377678B (en) Data transmission and processing method and device
CN114338831A (en) Gateway communication method, communication equipment and storage medium
US20120140776A1 (en) Communication device and communication method
CN106911545B (en) Method and device for transmitting ST _ BUS data through Ethernet
KR20120041990A (en) Data transmission system and method for transmitting data between different type protocols
JP2013030873A (en) Communication apparatus, packetization period change method, and program
US20110191481A1 (en) Systems and methods for transferring data
CN114567602B (en) Delay guarantee transmission system and method

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