Network communication method for rail transit service

By establishing a virtualized Ethernet communication method with redundant links in rail transit services, the problem of network communication delay in the existing technology is solved, and efficient and real-time data transmission is achieved.

CN120658771APending Publication Date: 2025-09-16浙江众合科技股份有限公司

Patent Information

Application Number
CN202510840741.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-23
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

The link aggregation solution of the existing technology has a delay problem, resulting in poor real-time performance of network communication after rail transit services are virtualized on cloud servers.

Method used

A direct communication channel between virtual functions and virtual machines is established through virtualized Ethernet, the virtual functions are bound to physical functions to establish a functional channel, and a physical channel is established by connecting to an independent switch. Redundant links are established based on the direct communication channel, functional channel and physical channel, and data is transmitted using user-mode secure communication protocols and redundant links.

Benefits of technology

The real-time performance of network communication and data transmission efficiency after rail transit business virtualization on cloud servers have been significantly improved, link switching delays have been avoided, and system availability has been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120658771A_ABST
    Figure CN120658771A_ABST
Patent Text Reader

Abstract

The invention discloses a network communication method for a rail transit service, which belongs to the technical field of communication data transmission, and comprises the following steps: virtualizing an Ethernet to obtain a virtual Ethernet, and establishing a direct communication channel between a virtual function and a virtual machine based on the virtual Ethernet; binding a virtual function with a physical function to establish a function channel, and connecting the physical function with an independent switch to establish a physical channel; establishing a redundant link based on the direct communication channel, the function channel and the physical channel; the corresponding rail transit service data is transmitted based on the user mode security communication protocol and the redundant link, so that the real-time transmission efficiency of the rail transit service data is greatly improved, and the real-time performance of network communication after the corresponding rail transit service is virtualized to the cloud server is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication and data transmission, and in particular to a network communication method for rail transit services. Background Art

[0002] With the development of rail transit technology, more and more rail transit services are virtualized on cloud servers. Due to the limitations of industry characteristics, the evolution of the rail transit services is significantly different from the general cloud computing scenarios, resulting in the inability of the general cloud computing network technology to meet the rail transit industry's requirements for high availability and high real-time performance of network communications. Existing technologies usually use redundant dedicated software and hardware systems to run rail transit services to achieve high availability and high real-time performance of network communications. However, the link management function of the redundant dedicated software and hardware systems has a delay problem, that is, the existing link aggregation solutions have a delay problem. For example, the traditional link aggregation solution of configuring link aggregation groups on two switches has a link switching delay of up to seconds, and does not have a high-availability architecture that supports active-active links or active-active devices. The open virtual switching link aggregation solution has uncontrollable virtual switch processing delays, etc. The delay problems will lead to poor real-time performance of network communications after the corresponding rail transit services are virtualized on cloud servers.

[0003] Chinese patent, publication number: CN118381691B, publication date: March 25, 2025, discloses a rail transit door system network architecture and network communication method, all gate control units in the door system are chain-connected, and the head and tail gate control units are connected to real-time Ethernet switches to form a ring network topology to complete the interaction of control information and maintenance information; the gate control unit and the two real-time Ethernet switches respectively form two external network planes, and the two external network planes are redundant to each other; the real-time Ethernet switch is connected to the TCMS, and all gate control units communicate directly with the TCMS; and the invention is essentially a traditional link aggregation solution for configuring link aggregation groups on two switches, which also has a delay problem, resulting in poor real-time performance of network communication after the corresponding rail transit business is virtualized on the cloud server. Summary of the Invention

[0004] The purpose of the present invention is to address the problem that the link aggregation solution in the prior art has delays, resulting in poor real-time performance of network communication after the corresponding rail transit business is virtualized and uploaded to the cloud server; a network communication method for rail transit business is proposed, which establishes a direct communication channel between the virtual function and the virtual machine through the virtualized Ethernet, binds the virtual function to the physical function to establish a functional channel, then connects the physical function to the independent switch to establish a physical channel, and establishes redundant links based on the direct communication channel, the functional channel and the physical channel to realize user-state Ethernet drive during data transmission, finally, based on the user-state secure communication protocol and the redundant link to transmit the corresponding rail transit business data, greatly improving the real-time transmission efficiency of the rail transit business data, and significantly improving the real-time performance of the network communication after the corresponding rail transit business is virtualized and uploaded to the cloud server.

[0005] To achieve the above objectives, the technical solutions adopted in this application are as follows: In a first aspect, the present application provides a network communication method for rail transit services, comprising the following steps: Virtualizing the Ethernet to obtain a virtual Ethernet, and establishing a direct communication channel between the virtual function and the virtual machine based on the virtual Ethernet; binding the virtual function to the physical function to establish a functional channel, and connecting the physical function to an independent switch to establish a physical channel; Establish redundant links based on direct communication channels, functional channels and physical channels; The corresponding rail transit business data is transmitted based on user-mode secure communication protocols and redundant links.

[0006] In this solution, a virtual Ethernet is obtained through hardware virtualization technology, such as SR-IOV hardware-assisted Ethernet virtualization, and a direct communication channel between the virtual function and the virtual machine is established based on the virtual Ethernet to achieve direct communication between the virtual function and the virtual machine; then the virtual function is bound to the physical function to establish a functional channel to achieve direct communication between the virtual function and the physical function, and the physical function is connected to an independent switch to establish a physical channel, and then a redundant link is established based on the direct communication channel, the functional channel and the physical channel to achieve user-state Ethernet driver during data transmission, and finally the corresponding rail transit business data is transmitted based on the user-state secure communication protocol and the redundant link, which greatly improves the real-time transmission efficiency of the rail transit business data and significantly improves the real-time performance of network communication after the corresponding rail transit business is virtualized to the cloud server.

[0007] Preferably, the specific process of establishing a redundant link based on the direct communication channel, the functional channel and the physical channel is: Establishing a first queue and a second queue based on a topological structure of the functional channel and the functional channel; Establishing a first channel and a second channel based on a topological structure of a physical channel and the physical channel; Establishing a first link based on the direct communication channel, the first queue, and the first channel, and establishing a second link based on the direct communication channel, the second queue, and the second channel; The first link and the second link are arranged to obtain a redundant link.

[0008] In this solution, the first link and the second link actually constitute a redundant parallel network, i.e., a redundant link, so that the corresponding rail transit business data can be transmitted in parallel on the parallel network. When a single point failure occurs in the parallel network, there is no need to switch links, which greatly improves the availability of the corresponding rail transit business. At the same time, it also avoids the delay effect during link switching, effectively improving the transmission efficiency and real-time performance of the rail transit business data.

[0009] Preferably, the specific process of transmitting the corresponding rail transit business data based on the user-mode secure communication protocol and redundant links is as follows: Acquire rail transit business data, and structurally encapsulate the rail transit business data based on a user-mode secure communication protocol to obtain a business message; Send service packets to independent switches via redundant links; Obtain reverse messages sent by independent switches through redundant links and remove duplicates to obtain deduplicated messages; Based on the user-mode secure communication protocol structure, the reverse rail transit business data is obtained by decapsulating and deduplicating the messages.

[0010] Preferably, the specific process of sending the service message to the independent switch through the redundant link is: Allocating a global sequence number of the service message based on the structured encapsulation order of the service message, and arranging the global sequence number and the service message to obtain a sequence service message; Copying the sequence service message to obtain a first copy message and a second copy message; The first duplicate message is sent to the independent switch through the first link of the redundant link, and the second duplicate message is sent to the independent switch through the second link of the redundant link.

[0011] Preferably, the specific process of obtaining the reverse message sent by the independent switch through the redundant link and removing duplicates to obtain the deduplicated message is: receiving a first reverse message sent by the independent switch through a first link of the redundant link, and receiving a second reverse message sent by the independent switch through a second link of the redundant link; Extracting the global sequence number of the first reverse message to obtain a first reverse sequence number, and extracting the global sequence number of the second reverse message to obtain a second reverse sequence number; A duplicate sequence number is determined based on a comparison between the first reverse sequence number and the second reverse sequence number, and duplicate data of a corresponding message is deleted based on the duplicate sequence number to obtain a deduplicated message.

[0012] Preferably, the specific process of determining the duplicate sequence number based on the comparison between the first reverse sequence number and the second reverse sequence number, and deleting duplicate data of the corresponding message based on the duplicate sequence number to obtain a deduplicated message is: checking the second reverse sequence number with the first reverse sequence number as a reference sequence number to determine a second repeated sequence number; Marking the data corresponding to the second repeated sequence number in the second reverse message as second repeated data; checking the first reverse sequence number with the second reverse sequence number as a reference sequence number to determine a first repeated sequence number; Marking the data corresponding to the first repeated sequence number in the first reverse message as first repeated data; Deleting first duplicate data in the first reverse message to obtain a first deduplication message, and deleting second duplicate data in the second reverse message to obtain a second deduplication message; The first deduplication message and the second deduplication message are sorted based on the global sequence number of the first deduplication message and the global sequence number of the second deduplication message to obtain a deduplication message.

[0013] Preferably, the process of transmitting the corresponding rail transit business data based on the user-mode secure communication protocol and the redundant link further includes first fault detection and recovery of the rail transit business data, specifically: Sending a user state protocol heartbeat packet based on the heartbeat cycle, detecting a response packet corresponding to the user state protocol heartbeat packet and recording the response cycle; The response packet timeout is judged based on the response cycle and heartbeat cycle. If the response cycle is less than or equal to the heartbeat cycle, the corresponding rail transit business data transmission is determined to be normal. If the response cycle is greater than the heartbeat cycle, it is determined that the first fault has occurred and the virtual function in the redundant link is reset.

[0014] Preferably, the process of detecting the response packet corresponding to the user mode protocol heartbeat packet and recording the response cycle also includes a second fault detection and alarm, specifically: Based on the response cycle and heartbeat cycle, it is determined whether a second fault has occurred. If the response cycle is greater than or equal to twice the heartbeat cycle, it is determined that a second fault has occurred, the transmission of rail transit business data is immediately stopped and an alarm is issued. If the response cycle is less than twice the heartbeat cycle, it is determined that the rail transit business data transmission process corresponding to the response packet is normal.

[0015] In a second aspect, the present application provides a computer device comprising: a processor and a memory, wherein the memory stores a computer program executable by the processor, and when the computer device is running, the processor executes the computer program stored in the memory to perform the steps of a network communication method for rail transit services as described in the first aspect above.

[0016] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of a network communication method for rail transit services as described in the first aspect above are executed.

[0017] Beneficial effects of the present invention: This application obtains virtual Ethernet through hardware virtualization technology, such as SR-IOV hardware-assisted Ethernet virtualization, and establishes a direct communication channel between virtual functions and virtual machines based on the virtual Ethernet to achieve direct communication between virtual functions and virtual machines; then the virtual function is bound to the physical function to establish a functional channel to achieve direct communication between the virtual function and the physical function, and the physical function is connected to an independent switch to establish a physical channel, and then a redundant link is established based on the direct communication channel, the functional channel and the physical channel to achieve user-state Ethernet drive during data transmission. The redundant link is essentially a redundant parallel network, so that the corresponding rail transit business data can be transmitted in parallel on the parallel network. When a single point failure occurs in the parallel network, there is no need to switch the link, which greatly improves the availability of the corresponding rail transit business. At the same time, it avoids the delay effect during link switching, and effectively improves the transmission efficiency and real-time performance of the rail transit business data; finally, the corresponding rail transit business data is transmitted based on the user-state secure communication protocol and the redundant link, which greatly improves the real-time transmission efficiency of the rail transit business data and significantly improves the real-time performance of network communication after the corresponding rail transit business is virtualized to the cloud server. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Other features, objects, and advantages of the present invention will become more apparent upon reading the detailed description of the non-limiting embodiments made with reference to the following drawings. The drawings are for the purpose of illustrating preferred embodiments only and are not to be construed as limiting the present invention. Like reference characters are used throughout the drawings to designate like parts.

[0019] Figure 1 A flowchart of a network communication method for rail transit services; Figure 2 A schematic diagram of the redundant link structure. DETAILED DESCRIPTION

[0020] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific implementation method described herein is only an optimal embodiment of the present invention, which is only used to explain the present invention and does not limit the scope of protection of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0021] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the operations (or steps) as sequential processes, many of the operations (or steps) therein can be performed in parallel, concurrently, or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operations are completed, but can also have additional steps not included in the figures; the process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0022] Based on the actual physical scenario of rail transit business virtualization on the cloud server, the transmission of rail transit business data is the main body of its operation. Traditional business data transmission methods usually involve virtual switches, host machines and clients, but the delay of the virtual switch, the delay of the host kernel driver and the delay of the client kernel driver are all uncontrollable. The delays will lead to a reduction in the real-time performance of the corresponding business data transmission, resulting in the delay problem existing in the existing link aggregation solution. For this reason, the embodiments of the present application utilize virtual function VF direct pass-through and the construction of user-mode drivers to effectively avoid the delay problem and significantly improve the real-time performance of the corresponding business data transmission.

[0023] Example 1: like Figure 1 As shown, the embodiment of the present application provides a network communication method for rail transit services, including the following steps: S1. Virtualize the Ethernet to obtain a virtual Ethernet, and establish a direct communication channel between the virtual function and the virtual machine based on the virtual Ethernet; S2. Bind the virtual function to the physical function to establish a functional channel, and connect the physical function to an independent switch to establish a physical channel.

[0024] Specifically, this embodiment uses SR-IOV hardware-assisted Ethernet virtualization to obtain a virtual Ethernet, and establishes a direct communication channel between the virtual function VF and the virtual machine through the virtual Ethernet. The correspondence between the virtual machine and the virtual function is few to many, that is, one virtual machine corresponds to two virtual functions VFs, and the virtual function VF is bound to the physical function PF to establish a functional channel. The correspondence between the virtual function VF and the physical function PF is one-to-one, that is, the two virtual functions VFs are respectively bound to different physical functions PFs, and the physical function PF is connected to the corresponding independent switch to establish a physical channel. At this time, the virtual machine is directly connected to two different virtual functions VFs, each virtual function VF is bound to a physical function PF, and each physical function PF is connected to an independent switch.

[0025] S3. Establish redundant links based on direct communication channels, functional channels, and physical channels; S31. Establishing a first queue and a second queue based on the topological structure of the functional channel and the functional channel; S32. Establish a first channel and a second channel based on the topological structure of the physical channel and the physical channel; S33. Establish a first link based on the direct communication channel, the first queue, and the first channel, and establish a second link based on the direct communication channel, the second queue, and the second channel; S34: Arrange the first link and the second link to obtain a redundant link.

[0026] Specifically, if Figure 2 As shown, when there is only one virtual machine, there are two virtual functions, two physical functions and two independent switches, namely virtual function 1, virtual function 2, physical function 1, physical function 2, independent switch 1 and independent switch 2. The functional channel between virtual function 1 and physical function 1 is the first queue, the functional channel between virtual function 2 and physical function 2 is the second queue, the physical channel between physical function 1 and independent switch 1 is the first channel, and the physical channel between physical function 2 and independent switch 2 is the second channel. Based on the queues, the channels and the direct communication channel, a link is established to obtain a redundant link. That is, with the virtual machine as the endpoint, the virtual machine, virtual function 1, physical function 1 and independent switch 1 are connected to obtain a first link, and the virtual machine, virtual function 2, physical function 2 and independent switch 2 are connected to obtain a second link. The first link and the second link together constitute a redundant link.

[0027] S4. Transmitting corresponding rail transit business data based on user-mode secure communication protocol and redundant links; S41. Obtain rail transit business data, and structurally encapsulate the rail transit business data based on a user-mode secure communication protocol to obtain a business message; S42, sending the service message to the independent switch via the redundant link; S421. Allocate a global sequence number for the service message based on the structured encapsulation order of the service message, and arrange the global sequence number and the service message to obtain a sequence service message; S422. Copy the sequence service message to obtain a first copy message and a second copy message; S423: Send the first duplicate message to the independent switch through the first link of the redundant link, and send the second duplicate message to the independent switch through the second link of the redundant link.

[0028] Specifically, when the redundant link is built and the user-mode Ethernet driver is implemented for data transmission, it is also necessary to use the corresponding user-mode secure communication protocol to convert the corresponding rail transit business data into business messages to achieve structured encapsulation of the data. Secondly, since the redundant link includes a virtual part and a physical part, namely a virtual machine and an independent switch, and there is a certain difference in the transmission data of the virtual machine and the independent switch, such as the virtual machine runs in the host machine in the form of pure software, its performance depends on the host machine resources, and the memory bus is used to achieve communication. The efficiency of data transmission is limited by the performance, and there is no upper limit in theory. The independent switch is a dedicated hardware device. When using physical cables to achieve communication, the efficiency of data transmission is limited by the physical cables and is generally a fixed value. Therefore, when the two are combined to transmit data, data is easily blocked at the junction, resulting in a decrease in the efficiency of data transmission. If the user-state secure communication protocol is placed at the junction, that is, the user-state secure communication protocol is set between the virtual machine and the virtual function VF to convert rail transit business data into business messages, the data can be adapted from the virtual to the physical layer. In addition, since the business messages are structured encapsulated data, flow control can be performed according to the order of the encapsulation to plan the data transmission order, thereby effectively improving the transmission efficiency of rail transit business data. In addition, the business message is copied to obtain a first copy message and a second copy message, and the first copy message is sent to the corresponding independent switch through the first link of the redundant link, and the second copy message is sent to the corresponding independent switch through the second link of the redundant link, thereby realizing parallel transmission of business messages. When one of the links, that is, the first link or the second link, fails, business data can be transmitted without switching links, thereby ensuring the availability of business transmission.

[0029] S43. Obtain reverse messages sent by the independent switch through the redundant link and remove duplicates to obtain deduplicated messages; S431, receiving a first reverse message sent by the independent switch through a first link of the redundant link, and receiving a second reverse message sent by the independent switch through a second link of the redundant link; S432. Extract the global sequence number of the first reverse message to obtain a first reverse sequence number, and extract the global sequence number of the second reverse message to obtain a second reverse sequence number; S433: Determine a duplicate sequence number based on a comparison between the first reverse sequence number and the second reverse sequence number, and delete duplicate data of the corresponding message based on the duplicate sequence number to obtain a deduplicated message; S4331, using the first reverse sequence number as a reference sequence number to check the second reverse sequence number to determine a second repeated sequence number; S4332. Mark the data corresponding to the second repeated sequence number in the second reverse message as second repeated data; S4333: Using the second reverse sequence number as a reference sequence number, check the first reverse sequence number to determine a first repeated sequence number; S4334. Mark the data corresponding to the first repeated sequence number in the first reverse message as first repeated data; S4335. Delete the first duplicate data in the first reverse message to obtain a first deduplicated message, and delete the second duplicate data in the second reverse message to obtain a second deduplicated message. S4336: Arrange the first deduplication message and the second deduplication message based on the global sequence number of the first deduplication message and the global sequence number of the second deduplication message to obtain a deduplication message; S44. Decrypt and de-duplicate messages based on the user-mode secure communication protocol structure to obtain reverse rail transit service data.

[0030] Specifically, after obtaining the first reverse message and the second reverse message, the data in the message is structured encapsulated data. Therefore, each group of encapsulated data corresponds to a corresponding serial number. The serial number of the first reverse message and the serial number of the second reverse message are matched and screened to find repeated serial numbers. The encapsulated data corresponding to the repeated serial numbers are actually repeated data. After deleting the repeated data, the data of a single reverse message, that is, the first reverse message or the second reverse message, still has the risk of incompleteness. Therefore, the first reverse message or the second reverse message is randomly selected as the reference message, and the missing data is filled with another reverse message to make the data of the reference message complete to obtain a deduplicated message. Then, the deduplicated message is inversely converted using the user-mode secure communication protocol to obtain reverse rail transit business data.

[0031] In addition, during the transmission of the rail transit service data, when a single point failure occurs in one of the redundant links, it is necessary to reset it to eliminate the single point failure. To this end, this embodiment adopts a first fault detection and recovery technical solution, including: Sending a user state protocol heartbeat packet based on the heartbeat cycle, detecting a response packet corresponding to the user state protocol heartbeat packet and recording the response cycle; The response packet timeout is judged based on the response cycle and heartbeat cycle. If the response cycle is less than or equal to the heartbeat cycle, the corresponding rail transit business data transmission is determined to be normal. If the response cycle is greater than the heartbeat cycle, it is determined that the first fault has occurred and the virtual function in the redundant link is reset.

[0032] Specifically, the redundant link detects the action of structurally encapsulating rail transit business data in the user-state secure communication protocol based on the heartbeat cycle, or the action of inversely converting and deduplicating messages in the user-state secure communication protocol, extracts the action closest to the corresponding moment of the heartbeat cycle on the time scale, marks the action as a dynamic label to generate a heartbeat packet, and sends the heartbeat packet to the virtual machine. When the virtual machine receives the heartbeat packet, it deletes the dynamic label in the heartbeat packet, generates an empty packet that does not contain any data inside, that is, a response packet, and returns the response packet to the original path. In addition, the redundant link detects the response packet in real time after sending the heartbeat packet. After successfully detecting the response packet sent by the virtual machine, it marks the time of detecting the response packet as the response cycle. Based on the response cycle and the heartbeat cycle, it determines whether the first fault occurs. When it is determined that the first fault occurs, the corresponding virtual function is reset to eliminate the first fault.

[0033] Furthermore, in order to avoid the first fault detection from falling into an infinite loop due to hardware failure and wasting computing resources, this embodiment also performs a second fault detection and alarm in the process of detecting the response packet corresponding to the user mode protocol heartbeat packet and recording the response cycle, including: Based on the response cycle and heartbeat cycle, it is determined whether a second fault has occurred. If the response cycle is greater than or equal to twice the heartbeat cycle, it is determined that a second fault has occurred, the transmission of rail transit business data is immediately stopped and an alarm is issued. If the response cycle is less than twice the heartbeat cycle, it is determined that the rail transit business data transmission process corresponding to the response packet is normal.

[0034] Specifically, a response period greater than or equal to twice the heartbeat period is set as a termination condition for response packet detection. When the response period meets the termination condition, it proves that the corresponding virtual devices and physical devices may be damaged, that is, the virtual machine and the independent switch may be damaged, and an alarm is issued to notify the corresponding operation and maintenance personnel to perform maintenance. Secondly, while detecting the response period, the recorded starting time is also used to assist in determining whether a second fault has occurred. When the time length from the starting time to the current time is greater than or equal to twice the heartbeat period, it is assumed that the response period corresponding to the response packet is greater than or equal to twice the heartbeat period, that is, the redundant link has not successfully detected the response packet and has not generated a corresponding response period. When the detection time is greater than or equal to twice the heartbeat period, it is assumed that the response period is greater than or equal to twice the heartbeat period.

[0035] In a second aspect, an embodiment of the present application further provides a computer device comprising: a processor and a memory, wherein the memory stores a computer program executable by the processor, and when the computer device is running, the processor executes the computer program stored in the memory to perform the steps of a network communication method for rail transit services as described above.

[0036] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the network communication method for rail transit services as described above are executed.

[0037] This embodiment has at least the following substantial effects: This embodiment uses hardware virtualization technology, such as SR-IOV hardware-assisted Ethernet virtualization, to obtain a virtual Ethernet, and establishes a direct communication channel between the virtual function and the virtual machine based on the virtual Ethernet to achieve direct communication between the virtual function and the virtual machine; then, the virtual function is bound to the physical function to establish a functional channel to achieve direct communication between the virtual function and the physical function, and the physical function is connected to an independent switch to establish a physical channel. Subsequently, redundant links are established based on the direct communication channel, the functional channel, and the physical channel to achieve user-mode Ethernet driver during data transmission. The redundant links are essentially redundant parallel networks, so that the corresponding rail transit business data can be transmitted in parallel on the parallel networks. When a single point failure occurs in the parallel network, there is no need to switch links, which greatly improves the availability of the corresponding rail transit business and avoids the delay effect during link switching, effectively improving the transmission efficiency and real-time performance of the rail transit business data; finally, the corresponding rail transit business data is transmitted based on the user-mode secure communication protocol and the redundant links, which greatly improves the real-time transmission efficiency of the rail transit business data and significantly improves the real-time performance of network communication after the corresponding rail transit business is virtualized to the cloud server.

[0038] The above specific embodiments are preferred embodiments of the present invention and are not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to the specific embodiments. All equivalent changes made in accordance with the shape, structure, and method of the present invention are within the scope of protection of the present invention.

Claims

1. A network communication method for rail transit business, characterized in that: The following steps are involved: Virtualizing the Ethernet to obtain a virtual Ethernet, and establishing a direct communication channel between the virtual function and the virtual machine based on the virtual Ethernet; binding the virtual function to the physical function to establish a functional channel, and connecting the physical function to an independent switch to establish a physical channel; Establish redundant links based on direct communication channels, functional channels and physical channels; The corresponding rail transit business data is transmitted based on user-mode secure communication protocols and redundant links.

2. A network communication method for rail transit services according to claim 1, characterized in that: The specific process of establishing a redundant link based on the direct communication channel, the functional channel and the physical channel is as follows: Establishing a first queue and a second queue based on a topological structure of the functional channel and the functional channel; Establishing a first channel and a second channel based on a topological structure of a physical channel and the physical channel; Establishing a first link based on the direct communication channel, the first queue, and the first channel, and establishing a second link based on the direct communication channel, the second queue, and the second channel; The first link and the second link are arranged to obtain a redundant link.

3. A network communication method for rail transit services according to claim 1, characterized in that: The specific process of transmitting the corresponding rail transit business data based on the user-mode secure communication protocol and redundant links is as follows: Acquire rail transit business data, and structurally encapsulate the rail transit business data based on a user-mode secure communication protocol to obtain a business message; Send service packets to independent switches via redundant links; Obtain reverse messages sent by independent switches through redundant links and remove duplicates to obtain deduplicated messages; Based on the user-mode secure communication protocol structure, the reverse rail transit business data is obtained by decapsulating and deduplicating the messages.

4. A network communication method for rail transit services according to claim 3, characterized in that: The specific process of sending the service message to the independent switch through the redundant link is as follows: Allocating a global sequence number of the service message based on the structured encapsulation order of the service message, and arranging the global sequence number and the service message to obtain a sequence service message; Copying the sequence service message to obtain a first copy message and a second copy message; The first duplicate message is sent to the independent switch through the first link of the redundant link, and the second duplicate message is sent to the independent switch through the second link of the redundant link.

5. A network communication method for rail transit services according to claim 3, characterized in that: The specific process of obtaining the reverse message sent by the independent switch through the redundant link and removing duplicates to obtain the deduplicated message is as follows: receiving a first reverse message sent by the independent switch through a first link of the redundant link, and receiving a second reverse message sent by the independent switch through a second link of the redundant link; Extracting the global sequence number of the first reverse message to obtain a first reverse sequence number, and extracting the global sequence number of the second reverse message to obtain a second reverse sequence number; A duplicate sequence number is determined based on a comparison between the first reverse sequence number and the second reverse sequence number, and duplicate data of a corresponding message is deleted based on the duplicate sequence number to obtain a deduplicated message.

6. A network communication method for rail transit services according to claim 5, characterized in that: The specific process of determining the duplicate sequence number based on the comparison of the first reverse sequence number and the second reverse sequence number, and deleting duplicate data of the corresponding message based on the duplicate sequence number to obtain a deduplicated message is as follows: checking the second reverse sequence number with the first reverse sequence number as a reference sequence number to determine a second repeated sequence number; Marking the data corresponding to the second repeated sequence number in the second reverse message as second repeated data; checking the first reverse sequence number with the second reverse sequence number as a reference sequence number to determine a first repeated sequence number; Marking the data corresponding to the first repeated sequence number in the first reverse message as first repeated data; Deleting first duplicate data in the first reverse message to obtain a first deduplication message, and deleting second duplicate data in the second reverse message to obtain a second deduplication message; The first deduplication message and the second deduplication message are sorted based on the global sequence number of the first deduplication message and the global sequence number of the second deduplication message to obtain a deduplication message.

7. A network communication method for rail transit services according to claim 1, characterized in that: The process of transmitting the corresponding rail transit business data based on the user-mode secure communication protocol and the redundant link also includes first fault detection and recovery of the rail transit business data, specifically: Sending a user state protocol heartbeat packet based on the heartbeat cycle, detecting a response packet corresponding to the user state protocol heartbeat packet and recording the response cycle; The response packet timeout is judged based on the response cycle and heartbeat cycle. If the response cycle is less than or equal to the heartbeat cycle, the corresponding rail transit business data transmission is determined to be normal. If the response cycle is greater than the heartbeat cycle, it is determined that the first fault has occurred and the virtual function in the redundant link is reset.

8. A network communication method for rail transit services according to claim 7, characterized in that: The process of detecting the response packet corresponding to the user mode protocol heartbeat packet and recording the response cycle also includes a second fault detection and alarm, specifically: judging whether a second fault occurs based on the response cycle and the heartbeat cycle; if the response cycle is greater than or equal to twice the heartbeat cycle, it is determined that a second fault has occurred, and the transmission of the rail transit business data is immediately stopped and an alarm is issued; if the response cycle is less than twice the heartbeat cycle, it is determined that the rail transit business data transmission process corresponding to the response packet is normal.

9. A computer device, characterized in that: include: A processor and a memory, wherein the memory stores a computer program executable by the processor, and when the computer device is running, the processor executes the computer program stored in the memory to perform the steps of a network communication method for rail transit services as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the network communication method for rail transit services as described in any one of claims 1 to 8 are executed.

Citation Information

Patent Citations

  • A rail transit door system network architecture and network communication method

    CN118381691B

  • Virtual network redundancy backup method and device based on intelligent network card

    CN113630265A

  • Reliability guarantee method for double-transmission optimization of 5G gateway in power industry application

    CN115884224A

  • Network redundancy service

    WO2025081446A1

Cited By

  • Network security isolation system based on rail transit vehicle network information processing

    CN121585462A