Flow scheduling method, Ethernet switching device, rail vehicle, device and medium

By adopting the TSN protocol traffic scheduling method in the train communication network, using timestamps and priority management, the delay problem caused by data volume growth is solved, and the timely transmission and deterministic transmission of key data is realized, which is adapted to high bandwidth requirements.

CN116319558BActive Publication Date: 2025-07-25CRRC QINGDAO SIFANG CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211131175.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-16
Publication Date
2025-07-25
Estimated Expiration
2042-09-16

AI Technical Summary

Technical Problem

When the existing train communication network faces an increasing amount of data, especially when burst traffic is large, the delay problem of controlling data cannot be met, which affects the real-time and certainty of data transmission.

Method used

The traffic scheduling method adopts the TSN protocol, by selecting the main clock of the TSN switch, adding a time stamp to the Ethernet data frame, creating a time schedule, and data frame classification and queue management are performed based on the timestamp and priority VLAN tag, and data transmission is controlled using the time window.

Benefits of technology

It realizes timely transmission of key data under the trend of data volume growth, reduces latency, ensures the certainty and reliability of data transmission, and adapts to the high bandwidth requirements of train communication networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116319558B_ABST
    Figure CN116319558B_ABST
Patent Text Reader

Abstract

The present application discloses a traffic scheduling method, an Ethernet switching device, a device, a rail vehicle, and a medium, which relate to the technical field of rail vehicle communication and are used to implement train data transmission. Aiming at the problem that trains cannot adapt to the increasing amount of data during data transmission at present, a traffic scheduling method is provided. By selecting a master clock and adding corresponding timestamps to all Ethernet data frames according to the Precision Time Protocol, time allocation with the same time reference is performed; and then the data transmission of the train is carried out through the TSN protocol. Furthermore, a time schedule table is created according to the timestamps to set an expected transmission time window for each data frame. Only the planned traffic can be transmitted in the current time window, ensuring the timeliness of data transmission, so that important data such as control data, which has high requirements for real-time performance, will not be overly affected by its delay due to the sudden increase in the amount of data, and the transmission certainty of data between end-to-end is stronger.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of rail vehicle communication, and particularly to a traffic scheduling method, an Ethernet switching device, a device, a rail vehicle, and a medium. Background Art

[0002] With the increasing maturity of multimedia communication and train intelligent operation and maintenance technologies, the train communication network needs to carry more operation control, multimedia, and other information. The amount of data transmitted in the train communication network is constantly increasing, and the requirement for bandwidth is also getting higher and higher. When the network traffic load is large, especially when the bursty traffic is large, it has a great impact on the delay of control data.

[0003] Currently, the Ethernet adopts the Train Real-time Data Protocol (TRDP). The minimum control cycle standard requires less than 10 ms. When injecting 20% burst traffic in the ground scenario test network, the delay of control data passing through the switching device increases by 380 us. Calculated by 20 switching devices of an 8-car train, the cumulative jitter theory is 7.6 ms, and it may exceed the 10 ms control cycle in the real vehicle environment. With the increasing trend of the amount of data transmitted in the train communication network, it can no longer meet the actual needs.

[0004] Therefore, those skilled in the art now urgently need a traffic scheduling method to solve the problem that the current train cannot adapt to the increasing amount of data during data transmission to provide a delay that meets the train communication requirements. Summary of the Invention

[0005] The purpose of the present application is to provide a traffic scheduling method, an Ethernet switching device, a device, a rail vehicle, and a medium to solve the problem that the current train cannot adapt to the increasing amount of data during data transmission to provide a delay that meets the train communication requirements.

[0006] To solve the above technical problems, the present application provides a traffic scheduling method, including:

[0007] Select the clock of any one TSN switch as the master clock;

[0008] Add corresponding timestamps to all Ethernet data frames according to the Precision Time Protocol for time allocation;

[0009] Create a time schedule based on the timestamps of each Ethernet data frame and distribute it to each TSN switch; wherein, the time schedule includes the correspondence between the Ethernet data frame and the time window; the time window is a preset period of time, which is used to guide the TSN switch to only release the corresponding Ethernet data frame within the current time window for transmission.

[0010] Preferably, it further includes:

[0011] Based on the data type of each Ethernet data frame, add a VLAN Tag based on priority to the Ethernet data frame;

[0012] According to the VLAN Tags with different priorities, put the corresponding Ethernet data frames into different queues;

[0013] Based on a pre-set gate control list, periodically open the transmission ports for each queue in turn.

[0014] To solve the above technical problems, the present application also provides an Ethernet switching device, including: an ECN switching board and an ETB switching board;

[0015] The ECN switching board includes a TSN chip, which is used to implement the function of an Ethernet switch based on the TSN protocol. When receiving an Ethernet data frame, it judges whether the Ethernet data frame corresponds to the current time window according to the time schedule. If so, it releases it for transmission; among them, the time schedule is generated according to each timestamp after adding corresponding timestamps to all Ethernet data frames according to the Precision Time Protocol, and includes the correspondence between the Ethernet data frames and the time windows;

[0016] The ETB switching board includes a TSN chip, which is used to realize data transceiver between two network segments based on the TSN protocol when the train is reconnected.

[0017] Preferably, the Ethernet switching device is powered by power supply boards. There are at least two power supply boards, and the power supply boards are connected in parallel to supply power to the Ethernet switching device.

[0018] Preferably, the power supply board is connected to the Ethernet switching device through an address jumper, and the address jumpers corresponding to different positions are different.

[0019] Preferably, it further includes: an optical and electrical conversion board; the optical and electrical conversion board is connected to the ECN switching board and the ETB switching board, and is used to convert the Ethernet signal into an optical signal.

[0020] Preferably, there are at least two ECN switching boards, and they are independent of each other and are respectively connected to different network ports of the terminal sub-devices.

[0021] To solve the above technical problems, the present application also provides a rail train, including the above-mentioned Ethernet switching device.

[0022] To solve the above technical problems, the present application also provides a traffic scheduling device, including:

[0023] A memory, which is used to store a computer program;

[0024] A processor for implementing the steps of the traffic scheduling method as described above when executing a computer program.

[0025] To solve the above technical problems, the present application also 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 traffic scheduling method as described above are implemented.

[0026] A traffic scheduling method provided by the present application selects the clock of any Time-Sensitive Networking (TSN) switch as the master clock, and adds corresponding timestamps to all Ethernet data frames according to the Precision Time Protocol for time allocation with the same time reference. Furthermore, data transmission of the train can be carried out through the TSN protocol. Further, a time schedule is created through the timestamps, so that an expected transmission time window can be set for each data frame. Only the planned traffic (i.e., the corresponding data frame) can be transmitted in the current time window, ensuring the timeliness of data transmission, so that important data such as control data, which has high real-time requirements, will not be overly affected by the sudden increase in data volume in terms of its delay. The transmission certainty of data between end-to-end is stronger, and it can better adapt to the development trend of the increasing train data volume.

[0027] The Ethernet switching device, traffic scheduling device, rail vehicle and medium provided by the present application correspond to the above method, and have the same effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] To more clearly illustrate the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0029] Figure 1 It is a flowchart of a traffic scheduling method provided by the present invention;

[0030] Figure 2 It is a flowchart of another traffic scheduling method provided by the present invention;

[0031] Figure 3 It is a structural diagram of an Ethernet switching device provided by the present invention;

[0032] Figure 4 It is an example diagram of an Ethernet switching device provided by the present invention;

[0033] Figure 5 It is a structural diagram of a traffic scheduling device provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0034] The following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.

[0035] The core of the present application is to provide a traffic scheduling method, an Ethernet switching device, a device, a rail vehicle, and a medium.

[0036] In order to enable those skilled in the art to better understand the solutions of the present application, the following will further describe the present application in detail in conjunction with the accompanying drawings and specific embodiments.

[0037] Nowadays, with the continuous development of multimedia technology and network communication technology, passengers traveling by rail transit also have higher and higher communication requirements. Therefore, devices such as in-vehicle Wi-Fi have emerged to meet the Internet access needs of passengers. At the same time, the demand for multimedia communication and intelligent operation and maintenance in trains is also increasing day by day. The communication network of trains needs to carry more operation control and multimedia information, and the data volume is constantly increasing, and the requirements for the communication network bandwidth are also getting higher and higher.

[0038] Currently, the communication network of trains is mainly divided into two layers: the train-level Ethernet train backbone network (ETB) and the vehicle-level Ethernet communication network (ECN). ETB is responsible for communication between trains, that is, for the transmission of train-level data. ECN is responsible for data communication inside the vehicle or between carriages, that is, for the transmission of vehicle-level data. ETB works at the L3 layer in the OSI model, that is, the network layer, and is used to realize data communication between two network segments. ECN works at the L2 layer, that is, the data link layer, and mainly realizes the function of a switch.

[0039] OSI model: This model divides the work of network communication into 7 layers, namely the physical layer, data link layer, network layer, transport layer, session layer, presentation layer, and application layer.

[0040] When the traffic load in the above-mentioned train communication network is large, especially when the bursty traffic is large, it has a great impact on the latency of control data, thus greatly affecting the real-time performance and determinacy of train data transmission. Currently, the Ethernet in trains generally uses the TRDP protocol, and it has increasingly been unable to meet the needs of the above development trend. The impact of excessive data volume or bursty traffic on the latency of train control data has become a problem that needs to be urgently solved by those skilled in the art.

[0041] To solve the above problems, this embodiment provides a traffic scheduling method, as Figure 1 shown, including:

[0042] S11: Select the clock of any one TSN switch as the master clock.

[0043] TSN is a set of network protocol standards, which adds deterministic and reliability mechanisms on the basis of standard Ethernet, is compatible with standard Ethernet and can ensure the determinism and reliability of critical data transmission. It is a deterministic Ethernet that works at the data link layer. A TSN switch is also a switching device that supports the TSN protocol.

[0044] S12: Add corresponding timestamps to all Ethernet data frames according to the Precision Time Protocol for time allocation.

[0045] The Precision Time Protocol, also known as the Precision Network Time Protocol, is used to synchronize the clocks of different types of devices and can promote the synchronization of clocks in the entire train communication network.

[0046] The external network data frame is also the train data packed in the form of a data frame, which is collected by the terminal sub-devices set in the carriage and uploaded to the train communication network. Adding a timestamp to the Ethernet data frame means adding another layer of marking, and allocating corresponding time for each Ethernet data frame.

[0047] S13: Create a time schedule based on the timestamps of each Ethernet data frame and distribute it to each TSN switch.

[0048] By the above steps, time has been allocated to each Ethernet data frame and marked in the form of a timestamp. Therefore, a time schedule can be created accordingly. The time schedule includes the correspondence between Ethernet data frames and time windows; and the time window is a preset time period, which is used to guide the TSN switch to only release the corresponding Ethernet data frame within the current time window for transmission.

[0049] When all TSN switches receive the time schedule, when receiving an Ethernet data frame again, they can determine whether the Ethernet data frame is the planned traffic of the current time window (that is, the Ethernet data frame corresponding to the current time window) according to the timestamp on the Ethernet data frame and the corresponding relationship in the time schedule. If so, the TSN switch releases the Ethernet data frame for transmission. If not, one possible implementation is: first intercept the Ethernet data frame and then release it for transmission when its corresponding time window arrives.

[0050] Through the above time schedule, in the communication network composed of TSN switches, only the scheduled traffic in the current window can pass through the Ethernet data frame, and other unscheduled traffic is blocked from transmission. Therefore, the data pressure in the train communication network is reduced, and the impact caused by data transmission delay due to excessive data volume is avoided. Key data can be preferentially transmitted through the allocation of the time schedule, distinguishing the importance of train data during transmission, making the train data more flexible during communication, and ensuring the timeliness and certainty of train key data. At the same time, this data transmission based on the TSN protocol can also ensure the certainty and reliability of key data transmission to a certain extent.

[0051] In addition to achieving the preferential transmission of important data through the configuration of the above time schedule to ensure timeliness and certainty, this embodiment also provides another preferred implementation method to achieve the above effects, such as Figure 2 shown, the above method further includes:

[0052] S21: According to the data type of each Ethernet data frame, a VLAN Tag based on priority is added to the Ethernet data frame.

[0053] The VLAN Tag is also known as a virtual local area network tag, and the above VLAN Tag based on priority is the VLAN Priority Tag, also known as the local area network priority tag, which is used to represent the priority of the tagged party.

[0054] It is easy to understand that the Ethernet data frame is the transmission form of train data in the communication network. Therefore, according to the data type of the Ethernet data frame is also according to the data type of the corresponding train data. Generally speaking, the control data in train data has a higher priority than other types of data, and the control data sent by traction, braking, and train control equipment has a higher priority than the data sent by other equipment (such as air conditioners, lighting, water supply, etc.). Therefore, in practical applications, technicians can divide train data into several priorities according to actual needs, and add the corresponding VLAN Tag to the corresponding Ethernet data frame through the above steps for marking, so that the TSN switch can know the priority information of the current Ethernet data frame when receiving it.

[0055] S22: According to the VLAN Tags of different priorities, the corresponding Ethernet data frames are placed in different queues.

[0056] It is easy to understand that the number of queues should be related to the number of different priorities set in advance. Generally speaking, the number of queues is equal to the number of different priorities, that is, the Ethernet data frames of the corresponding priorities are placed in the corresponding queues for classified management of data transmission.

[0057] S23: Periodically and sequentially open the transmission ports for each queue based on a pre-set door control list.

[0058] Based on a pre-set periodically triggered door control list, traverse all queues in the order of priority in a loop, and dynamically provide on / off control for the above queues. Generally, only the exit of one queue is controlled to be opened at the same moment. Periodically and repeatedly open the exits of all queues in turn, release the Ethernet data frames therein for transmission, and realize the transmission of train data in the communication network. Moreover, this transmission has priorities, and train data with higher priorities can be transmitted by the switch more preferentially.

[0059] It is easy to understand that the periodic opening of the transmission ports of each queue by the door control list is only one possible setting method. In practical applications, there are many different setting methods. For example, in one opening cycle (that is, each queue has been opened at least once for the transmission port), the higher-priority queues can have multiple opportunities to open the transmission port, while the lower-priority queues may have fewer opportunities to open the transmission port, or even only once (at least once). Those skilled in the art can select a suitable setting method of the door control list according to actual needs, so this embodiment will not be elaborated here.

[0060] A preferred solution provided by this embodiment is to mark each Ethernet data frame with a VLAN Tag based on priority according to the data type of the train data, and then put each Ethernet data frame into the corresponding queue according to the VLAN Tags with different priorities, and then control the opening or closing of each queue by a pre-set door control list, so as to realize the transmission control of train data based on the set priority order. Further ensure the transmission priority of important data in train data in the train communication network, so that data such as control data sent by traction, braking, and train control equipment, which has a great impact on train operation, can ensure the timeliness and certainty of transmission, thereby ensuring the smooth and normal operation of the train.

[0061] In the above embodiment, a traffic scheduling method is described in detail. The present application also provides an embodiment corresponding to an Ethernet switching device, as Figure 3 shown, including: an ECN switching board 31 and an ETB switching board 32;

[0062] The ECN switching board 31 includes a TSN chip for implementing the function of an Ethernet switch based on the TSN protocol. When receiving an Ethernet data frame, it determines whether the Ethernet data frame corresponds to the current time window according to the time schedule. If so, it releases the frame for transmission. Among them, the time schedule is generated according to the timestamps added to all Ethernet data frames based on the Precision Time Protocol, and includes the correspondence between Ethernet data frames and time windows.

[0063] The ETB switching board 32 includes a TSN chip for realizing data transceiver between two network segments based on the TSN protocol during train multiple unit connection.

[0064] It is easy to understand that to implement the data exchange function, a complete Ethernet switching device should also include hardware devices such as a chassis shell, interfaces and interface units, and a power module. Since this part is well-known to those skilled in the art, it will not be elaborated in this embodiment.

[0065] In addition, since there are high-power devices such as transformers and converters integrated in the train, and the wiring between on-vehicle devices is complex, a large number of cables and feeders make the electromagnetic environment of the multiple unit very complex. The higher the cable transmission rate, the worse the anti-electromagnetic interference ability, and the more vulnerable it is to electromagnetic interference. Therefore, this embodiment provides a preferred implementation for solving the above problems. The above-mentioned Ethernet switching device further includes: an optical-electric conversion board 34;

[0066] The optical-electric conversion board 34 is connected to the ECN switching board 31 and the ETB switching board 32 for converting Ethernet signals into optical signals.

[0067] Through the optical-electric conversion board 34 provided by this embodiment, the electrical signals of train data communication are converted into optical signals, so as to better adapt to the harsh electromagnetic environment where the train is located, improve the anti-electromagnetic interference ability, and better complete the train data communication task.

[0068] Similarly, in order to avoid the abnormal communication of train data caused by the failure of the board cards that implement the switching function in the Ethernet switching device, this embodiment also provides a preferred implementation:

[0069] There are two ECN switching boards 31 mentioned above, and they are independent of each other and are respectively connected to different network ports of the terminal sub-devices.

[0070] It should be noted that the above-mentioned terminal sub-devices are also the devices that upload train data to the train communication network. The terminal sub-devices are used to receive and collect train data, upload it to the train communication network for transmission, and can receive the train data sent in the train communication network, perform corresponding processing on it or complete corresponding functions accordingly.

[0071] In this embodiment, multiple ECN switching boards 31, which are respectively connected to different network ports of the terminal sub-device and are independent of each other, are used to achieve redundancy in ECN communication. When any ECN switching board 31 fails, other ECN switching boards 31 can support the realization of the ECN switch function, thus ensuring the normal transmission of train data.

[0072] Similarly, this embodiment also provides another preferred implementation:

[0073] There are two of the above-mentioned ECN switching boards 31, which are independent of each other and are respectively connected to the mutually redundant ECN switching boards 31.

[0074] The purpose of this embodiment is the same as above, which is to achieve redundancy in the ETB network. When any ETB switching board 32 fails, it will not cause the entire device to be unable to communicate. Through this redundant hot standby method, the anti-risk ability of an Ethernet switching device provided by this embodiment is improved.

[0075] An Ethernet switching device provided by this application includes an ECN switching board 31 and an ETB switching board 32 that support the TSN protocol. Among them, the ECN switching board 31 is used to implement the function of an Ethernet switch based on the TSN protocol and determine whether to release Ethernet data frames according to the time schedule; the ETB switching board 32 is used to realize data transceiver between two network segments based on the TSN protocol when the train is reconnected. Thus, while realizing the communication of train data, it is possible to control the data transmission according to a pre-set time schedule, so that only the corresponding planned traffic can be transmitted in the current time window, and other traffic is not allowed to pass, and thus will not occupy resources such as the bandwidth of the train network, ensuring the timely and deterministic transmission of train data, and having a good effect of reducing transmission delay in the application scenario of traffic burst.

[0076] As can be seen from the above, the Ethernet switching device requires a power supply device such as a power module to implement its functions. Therefore, this embodiment provides a preferred implementation:

[0077] The Ethernet switching device is powered by a power supply board 33. Then, there are at least two of the above-mentioned power supply boards 33, and the two power supply boards 33 are connected in parallel to supply power to the Ethernet switching device.

[0078] Similarly, the purpose of this embodiment is to achieve redundancy in the power supply of the Ethernet switching device. At least two power supply boards 33 are connected in parallel to supply power to the device, ensuring that it can still normally complete its functions when any power supply board 33 fails, and this parallel power supply method has a better performance in terms of the timeliness of taking over the power supply work compared with the main-backup switching method, ensuring that the Ethernet switching device provides data exchange services without interruption, and thus further maintaining the normal operation of the train communication network.

[0079] For the connection mode between the power supply board 33 and the Ethernet switch connected thereto, this embodiment further provides a preferred implementation mode as follows:

[0080] The power supply board 33 is connected to the Ethernet switching device through an address jumper, and the address jumpers corresponding to different positions are different.

[0081] The above-mentioned connection mode of the power supply board 33 to the Ethernet switching device through the address jumper enables the Ethernet switching device to realize the recognition of the address coding, and then obtain the current address information of the device. It is easy to know that the above-mentioned Ethernet switching device is fully configured, including board cards such as the ETB switching board 32 and the ECN switching board 31, and the functions it performs may be different at different installation positions in the train. Whenever the Ethernet switching device needs to be disassembled and then reinstalled during train maintenance or other situations, there is no need to manually calibrate the position for installation, and there is no need to reconfigure when the installation position is incorrect. The Ethernet switching device can obtain the current position information by identifying the address coding of the connected address jumper, and then determine the functions it needs to implement according to the pre-configured information and start working, achieving the technical effect that the Ethernet switching devices can be interchanged without software update.

[0082] To further illustrate an Ethernet switching device provided by this application, the following is described with examples:

[0083] As can be seen from the above embodiments, as Figure 3 shown, the ECN switching board 31, the ETB switching board 32, and the optical and electrical switching board in the Ethernet switching device are arranged in the chassis of the device, and are connected to other devices through the interface unit 35 and the external interfaces, and are powered by at least two power supply boards 33 ( Figure 3 only two are shown in

[0084] In a possible implementation mode, the ECN switching board 31 (CN710) corresponds to 16 100Mbps communication interfaces, which are used to access terminal sub-devices (such as traction, braking, chargers, air-conditioning equipment, etc.) to obtain train data. In another preferred mode, two ECN switching boards 31 are provided in the Ethernet switching device, and the Ethernet switching device can support 32-way Ethernet communication.

[0085] The ETB switching board 32 (BN700) has a Layer 3 switching function, realizes data transceiver of two network segments during reconnection, corresponds to 5 100Mbps communication interfaces, and supports TSN communication.

[0086] The optical and electrical switching board (CN780) corresponds to 2 10Gbps optical communication interfaces (two optical and electrical conversion boards 34 can achieve two-way transmission and two-way reception), and ST-type or FC-type fiber optic plug interfaces can be used.

[0087] The power supply board 33 (PW300) is used to convert the externally input DC110V of the vehicle into the required power supply voltage for the chassis. The two power supply boards 33 are completely identical and work independently to form a parallel redundant power supply. Under normal conditions, the two power supply boards 33 supply power simultaneously and output in parallel; when one of the power supply boards 33 fails, the other power supply board 33 can still work normally to supply power to the device. The power supply board 33 can use an address jumper to implement the function of identifying the address coding of the switching device. Each board can execute corresponding functions by identifying different address codings, and the devices can be interchanged without software update.

[0088] Furthermore, this embodiment also provides a structure diagram of the above-mentioned Ethernet switching device and board configuration in practical applications, as Figure 4 shown, including: two ECN switching boards 31 (CN710), an ETB switching board 32 (BN700), two optical and electrical switching boards (CN780), two power supply boards 33 (PW300), and interfaces external to each board.

[0089] The board configuration is shown in Table 1 below.

[0090] Table 1 Board Configuration

[0091]

[0092] It is easy to know that this embodiment only provides a possible implementation manner of the above-mentioned Ethernet switching device in practical applications. The Ethernet switching device provided by this application is not limited to this one mentioned in this embodiment. Its utility is to realize the communication between train data and support the notification of the TSN protocol. Among them, the ECN switching board 31 can control the data transmission according to a pre-set time schedule, so that only the corresponding planned traffic can be transmitted in the current time window, and other traffic is not allowed to pass, thus not occupying resources such as the bandwidth of the train network, ensuring the timely and deterministic transmission of train data, and having a good effect of reducing transmission delay in the application scenario of traffic burst.

[0093] In addition, this application also provides a rail vehicle, including the Ethernet switching device described in the above embodiment, which can also bring the beneficial effects of the above-mentioned Ethernet switching device. Since the embodiment part of the rail vehicle corresponds to the embodiment of the above-mentioned Ethernet switching device, it will not be elaborated here too much.

[0094] Figure 5 The structure diagram of a traffic scheduling device provided by an embodiment of this application is as Figure 5 shown. A traffic scheduling device includes: a memory 40 for storing computer programs;

[0095] A processor 41, which is configured to implement the steps of a traffic scheduling method as described in the foregoing embodiments when executing a computer program.

[0096] A traffic scheduling device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.

[0097] Among them, the processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 41 may be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 41 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 41 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 41 may further include an artificial intelligence (AI) processor, and the AI processor is used to process computational operations related to machine learning.

[0098] The memory 40 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 40 may further include a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices and flash storage devices. In this embodiment, the memory 40 is at least used to store the following computer program 401. After the computer program is loaded and executed by the processor 41, it can implement the related steps of a traffic scheduling method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 40 may further include an operating system 402 and data 403, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 402 may include Windows, Unix, Linux, etc. The data 403 may include, but is not limited to, a traffic scheduling method, etc.

[0099] In some embodiments, a traffic scheduling device may further include a display screen 42, an input / output interface 43, a communication interface 44, a power supply 45, and a communication bus 46.

[0100] Those skilled in the art can understand that Figure 5 the structure shown in Figure 5 does not constitute a limitation on a traffic scheduling device, and may include more or fewer components than those shown in the figure.

[0101] A traffic scheduling device provided by an embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: a traffic scheduling method.

[0102] The traffic scheduling device provided by this embodiment can, by the processor executing the computer program stored in the memory, enable only the scheduled traffic in the current window to pass through in the communication network composed of TSN switches for the Ethernet data frame according to the time schedule, and other unscheduled traffic is blocked from transmission. Therefore, the data pressure in the train communication network is reduced, the impact caused by the delay of data transmission due to excessive data volume is avoided, so that critical data can be preferentially transmitted through the allocation of the time schedule, the train data can be distinguished according to importance when being transmitted, making the train data more flexible during communication and better ensuring the timeliness and certainty of the train critical data. At the same time, this data transmission based on the TSN protocol can also ensure the certainty and reliability of critical data transmission to a certain extent.

[0103] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, it implements the steps recorded in the above method embodiment.

[0104] It can be understood that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in various embodiments of the present application. And the aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.

[0105] When the computer-readable storage medium provided in this embodiment stores a computer program and the computer program is executed, it can achieve clock synchronization of the train communication network, add timestamps to each Ethernet data frame, and then perform time allocation. This time allocation is stored in the form of a time schedule. The time schedule is distributed to all TSN switches, enabling the TSN switches to only allow the planned traffic in the current window to pass, and blocking the transmission of other unplanned traffic, thereby reducing the data pressure in the train communication network, avoiding the impact caused by data transmission delay due to excessive data volume, enabling critical data to be preferentially transmitted through the allocation of the time schedule, distinguishing the importance of train data during transmission, making the train data more flexible during communication, and better ensuring the timeliness and certainty of train critical data.

[0106] The above has introduced in detail a traffic scheduling method, an Ethernet switching device, a device, a rail vehicle, and a medium provided by this application. Each embodiment in the specification is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method part. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the protection scope of the claims of this application.

[0107] It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without more limitations, an element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article or device including the said element.

Claims

1. A traffic scheduling method, characterized in that, Applied to an Ethernet switching device, the Ethernet switching device is powered by power supply boards. There are at least two power supply boards, and the power supply boards are connected in parallel to supply power to the Ethernet switching device. The power supply boards are connected to the Ethernet switching device through address jumpers, and the address jumpers corresponding to different positions are different. The Ethernet switching device includes at least two ECN switching boards, and the ECN switching boards are independent of each other and are respectively connected to different network ports of the terminal sub-devices. The method includes: Selecting the clock of any one TSN switch as the master clock; Adding corresponding timestamps to all Ethernet data frames according to the Precision Time Protocol for time allocation; Creating a time schedule based on the timestamps of the Ethernet data frames and distributing it to each TSN switch; wherein, the time schedule includes the correspondence between the Ethernet data frames and time windows. The time window is a preset time period for guiding the TSN switch to only release the corresponding Ethernet data frame within the current time window for transmission. The method further includes: Obtaining the current location information by identifying the address code of the connected address jumper, and determining the functions to be implemented by itself according to the pre-configured information and starting to work.

2. The traffic scheduling method according to claim 1, wherein It also includes: Adding a VLAN Tag based on priority to the Ethernet data frames according to the data types of the Ethernet data frames; Putting the corresponding Ethernet data frames into different queues according to the VLAN Tags with different priorities; Based on the pre-set gate control list, periodically opening the transmission ports for each queue in turn.

3. An Ethernet switching device, characterized in that, It includes: ECN switching board and ETB switching board; The ECN switching board includes a TSN chip for implementing the function of an Ethernet switch based on the TSN protocol. When receiving an Ethernet data frame, it judges whether the Ethernet data frame corresponds to the current time window according to the time schedule. If so, it releases it for transmission. The time schedule is generated according to the timestamps after adding corresponding timestamps to all Ethernet data frames according to the Precision Time Protocol, and includes the correspondence between the Ethernet data frames and the time windows. The ETB switching board includes the TSN chip for realizing data transceiver between two network segments based on the TSN protocol during train reconnection. The Ethernet switching device is powered by power supply boards. There are at least two power supply boards, and the power supply boards are connected in parallel to supply power to the Ethernet switching device. The power supply boards are connected to the Ethernet switching device through address jumpers, and the address jumpers corresponding to different positions are different. The Ethernet switching device obtains the current location information by identifying the address code of the connected address jumper, and determines the functions to be implemented by itself according to the pre-configured information and starts to work. There are at least two ECN switching boards, and they are independent of each other and are respectively connected to different network ports of the terminal sub-devices.

4. The Ethernet switching device according to claim 3, characterized in that, It also includes: Optoelectronic conversion board; The photoelectric conversion board is connected to the ECN switching board and the ETB switching board, and is used to convert Ethernet signals into optical signals.

5. An orbital train, characterized in that, It includes the Ethernet switching device according to claim 3 or 4.

6. A traffic scheduling device, characterized in that, It includes: A memory for storing computer programs; A processor for implementing the steps of the traffic scheduling method as described in claim 1 or 2 when executing the computer program.

7. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the traffic scheduling method as described in claim 1 or 2 are implemented.

Citation Information

Patent Citations

  • Train comprehensive transmission bearing method and system based on TSN

    CN112437114A