WO2023246471A1 - Service data transmission method, and device, electronic device and storage medium - Google Patents
Service data transmission method, and device, electronic device and storage medium Download PDFInfo
- Publication number
- WO2023246471A1 WO2023246471A1 PCT/CN2023/097960 CN2023097960W WO2023246471A1 WO 2023246471 A1 WO2023246471 A1 WO 2023246471A1 CN 2023097960 W CN2023097960 W CN 2023097960W WO 2023246471 A1 WO2023246471 A1 WO 2023246471A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- transmission
- network
- service data
- parameter
- bandwidth
- Prior art date
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 666
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000013507 mapping Methods 0.000 claims abstract description 107
- 238000004891 communication Methods 0.000 claims abstract description 25
- 230000001934 delay Effects 0.000 claims abstract description 17
- 230000004044 response Effects 0.000 claims abstract description 6
- 238000004590 computer program Methods 0.000 claims description 15
- 230000007246 mechanism Effects 0.000 claims description 13
- 238000010586 diagram Methods 0.000 description 15
- 238000005516 engineering process Methods 0.000 description 10
- 238000011161 development Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 230000000737 periodic effect Effects 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000006855 networking Effects 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000001356 surgical procedure Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/022—Multivendor or multi-standard integration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0226—Mapping or translating multiple network management protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/04—Processing captured monitoring data, e.g. for logfile generation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
- H04L43/087—Jitter
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- This application relates to the field of communication technology, and specifically to a business data transmission method and device, electronic equipment and storage media.
- the present application provides a method of transmitting service data, which is applied to the equipment of the second network.
- the method includes: adjusting the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameter to be used, wherein,
- the first transmission parameter is a parameter sent by a device of the first network
- the second transmission parameter is a transmission parameter of a device of the second network
- the first network and the second network are two communication networks with different transmission delays
- the second transmission parameter is adjusted with the first transmission parameter to obtain the transmission parameter to be used; in response to the service data sent by the device of the first network, the service data is transmitted in the second network according to the transmission parameter to be used.
- the present application provides a service data transmission method, which is applied to the equipment of the first network.
- the method includes: sending the first transmission parameters to the equipment of the second network, so that the equipment of the second network can use the first transmission parameters and the preset parameters.
- the parameter mapping relationship adjusts the second transmission parameter to obtain the transmission parameter to be used, where the first network and the second network are two communication networks with different transmission delays, and the second transmission parameter is the transmission parameter of the device of the second network. ;
- the transmission device for service data is a device in a second network. It includes: an edge period shaper configured to configure the second transmission parameter according to the first transmission parameter and a preset parameter mapping relationship.
- the transmission parameters are adjusted to obtain the transmission parameters to be used, where the first transmission parameter is the parameter sent by the first network, the second transmission parameter is the transmission parameter of the device of the second network, and the first network and the second network are the transmission delay Two different communication networks; the transmission module is configured to respond to the service data sent by the device of the first network and transmit the service data in the second network according to the transmission parameters to be used.
- the present application provides a service data transmission device.
- the service data transmission device is a device in a first network. It includes: a first sending module configured to send a first transmission parameter to a device in a second network for the third time.
- the equipment of the second network adjusts the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameters to be used, where the first network and the second network are two communication networks with different transmission delays.
- the second transmission parameter is a transmission parameter of the device of the second network; the second sending module is configured to send service data to the device of the second network, so that the device of the second network transmits in the second network according to the transmission parameters to be used. business data.
- the present application provides an electronic device, including: one or more processors; a memory on which one or more computer programs are stored, and the one or more computer programs are executed by one or more processors, so that one or more The processor implements any service data transmission method in the embodiments of this application.
- This application provides a computer-readable storage medium.
- the computer-readable storage medium The computer program is stored in the mass, and the computer program is executed by the processor to implement any one of the service data transmission methods in the embodiments of the present application.
- Figure 1 shows a schematic diagram of service data transmission between different devices provided by an embodiment of the present application.
- FIG. 2 shows a schematic flowchart of a service data transmission method provided by an embodiment of the present application.
- FIG. 3 shows a schematic diagram of service data transmission by a buffered data queue in the first network provided by an embodiment of the present application.
- Figure 4 shows a schematic diagram of service data transmission between devices in the second network provided by an embodiment of the present application.
- FIG. 5 shows a schematic flowchart of a method for generating node configuration information in a second network provided by an embodiment of the present application.
- Figure 6 shows a schematic diagram of service data transmission between the tail node device of the first network and the head node device of the second network provided by the embodiment of the present application.
- Figure 7 shows a schematic flowchart of a service data transmission method provided by yet another embodiment of the present application.
- Figure 8 shows a schematic flow chart of forwarding service data between the first network and the second network provided by an embodiment of the present application.
- Figure 9 shows a schematic flow chart of forwarding service data between the first network and the second network provided by yet another embodiment of the present application.
- Figure 10 shows a block diagram of a service data transmission device provided by an embodiment of the present application.
- Figure 11 shows a block diagram of a service data transmission device provided by yet another embodiment of the present application.
- FIG. 12 shows a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the business data transmission method and apparatus according to embodiments of the present application.
- Ethernet technology is based on a best-effort approach to transmitting business data to terminals, but this approach tends to increase the transmission delay and jitter of business data.
- Ethernet technology in the industrial field and the Internet of Vehicles, the transmission delay of business data needs to be more accurately controlled to meet the needs of different terminals.
- Figure 1 shows a schematic diagram of service data transmission between different devices provided by an embodiment of the present application. As shown in Figure 1, service data is transmitted from the first device 110 to the second device 120, and then to the fourth device 140 through the third device 130, thereby completing the transmission of service data between different devices.
- the service data needs to be processed by the table lookup module 121, the speed limit module 122, the queue entry module 123, the cache module 124 and the scheduling module 125 in sequence.
- the device 120 can finish processing the business data.
- each device processes business data, it needs to go through the above-mentioned modules (such as table lookup module 121, speed limit module 122, queue entry module 123, cache module 124, and scheduling module 125).
- the time of data is different, and the processing time of each internal module is also different, so it is impossible to specifically determine the length of delay time of business data in each device.
- Ethernet technology will be used to replace the original bus network to support higher data transmission. rate.
- time-sensitive application services such as smart grids, remote surgery technology, and remote industrial control technology
- IP Internet Protocol
- the network bandwidth in the wide area network is usually above 10G bits per second (bps).
- bps bits per second
- Embodiments of the present application provide a service data transmission method and device, an electronic device, and a storage medium to solve the above problems.
- FIG. 2 shows a schematic flowchart of a service data transmission method provided by an embodiment of the present application.
- the service data transmission method can be applied to service data transmission equipment.
- the service data transmission method in the embodiment of the present application includes but is not limited to the following steps S120 to S220.
- step S210 the second transmission parameter is adjusted according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameter to be used.
- the first transmission parameter is a parameter sent by a device of the first network
- the second transmission parameter is a transmission parameter of a device of the second network
- the first network and the second network are two communication networks with different transmission delays.
- the preset parameter mapping relationship is a mapping relationship determined based on the first transmission parameter and the second transmission parameter of the device of the second network. For example, the proportional relationship between the first transmission bandwidth of the first network and the second transmission bandwidth of the second network is used as the parameter mapping relationship, or the first transmission delay of the first network and the third transmission bandwidth of the second network are used as the parameter mapping relationship.
- the proportional relationship between the two transmission delays serves as the parameter mapping relationship, thereby facilitating adjustment of the corresponding transmission parameters in the second network based on different parameter mapping relationships to obtain the transmission parameters to be used.
- the above-mentioned first network may be a local area network
- the device of the first network may be a node device
- the first transmission parameter may be a first transmission period, a first transmission bandwidth, etc.
- the second network may be a wide area network
- the second network may be a wide area network.
- the device of the network may be a server or node device in the wide area network, etc.
- the second transmission parameter may be the second transmission cycle and the second transmission bandwidth used in the wide area network, etc.
- the parameter mapping relationship may include: a cycle mapping relationship and/or a bandwidth mapping relationship.
- the cycle mapping relationship is the mapping relationship between the transmission cycle of the local area network and the transmission cycle of the wide area network.
- the bandwidth mapping relationship is the transmission bandwidth of the local area network and the transmission bandwidth of the wide area network. the mapping relationship between them.
- step S220 in response to the service data sent by the device of the first network, according to The transmission parameters are to be used to transmit service data in the second network.
- the transmission parameters to be used are obtained by adjusting the second transmission parameters according to the first transmission parameters and the preset parameter mapping relationship, so that the transmission parameters to be used can match the first transmission parameters, thereby improving data
- the transmission delay in the second network is controllable; thus, after receiving the service data sent by the device of the first network, the service data can be transmitted in the second network according to the transmission parameters to be used to achieve cross-domain, Data transmission with controllable transmission delay meets the industrial needs of high time accuracy and promotes the development of the industrial field.
- the devices of the first network include a tail node device and a plurality of first devices
- the devices of the second network include a head node device and a plurality of second devices
- the tail node device is communicatively connected with the head node device.
- a time synchronization mechanism is used for communication between multiple first devices and between the tail node device and the first node device.
- FIG. 3 shows a schematic diagram of the cache data queue in the first network transmitting service data provided by an embodiment of the present application.
- the devices of the first network include: device A, device B, device C and device D.
- business data is transmitted to device B via device A, and then to device D via device C, thus completing the transmission of business data between different devices.
- Device D can be used as the tail node device, device A, device B, and device C can be used as the first device in the first network, and device A, device B, device C, and device D communicate using a time synchronization mechanism.
- each device in the first network can be time synchronized, reducing the data transmission delay between different devices, and ensuring that data can be accurately and quickly transmitted between different devices.
- each first device has two cache data queues, the working states of the entry gate control of the two cache data queues are mutually exclusive, and the working states of the dequeue gate control of the two cache data queues are mutually exclusive.
- the working status of the enqueuing gate and the working status of the dequeuing gate of a cache data queue are mutually exclusive, and the working status includes an open state or a closed state.
- the cache data queues may be queue 1 and queue 2 as shown in Figure 3.
- both queue 1 and queue 2 can be set at the output port of each device.
- the transmission time can be divided into multiple equal time intervals.
- Each time interval can be used as a time period T (that is, the preset transmission period).
- the time period T includes: even periods T0 and odd period T1.
- the status of the queue entry gate control of queue 1 is "on” (that is, the open state), and the status of the queue entry gate control of queue 2 is "off” (that is, the closed state).
- the status of the dequeue gate of queue 1 is "off” (ie, closed state), and the status of the dequeue gate of queue 2 is "on” (ie, open state).
- the status of the entry gate of queue 1 is "off” (i.e. closed state)
- the status of the entry gate of queue 2 is "open” (i.e. open state); the status of queue 1's exit gate
- the status of the gate control is "on” (that is, the open status)
- the status of the dequeue gate control of queue 2 is "off” (that is, the closed status).
- two cached data queues can be used to transmit data packets at any time, that is, one cached data queue (for example, queue 1) is used to receive data packets, and the other cached data queue (for example, queue 2) Used to send data packets to improve the transmission efficiency of data packets.
- one cached data queue for example, queue 1
- the other cached data queue for example, queue 2
- the cache data queue When it is determined that the status of the enqueue gate is open, the cache data queue is used to store business data; when it is determined that the status of the dequeue gate is open, the cache data queue is used to output business data; in advance It is assumed that during the transmission period, the working status of the in-queue gate and the working status of the out-queue gate remain unchanged.
- a preset transmission cycle ends and enters the next preset transmission cycle (for example, the even-numbered period T0 ends and the odd-numbered period T1 is entered)
- the entry gate and the exit gate will be controlled at this time.
- Switch the state for example, switch the gate that was originally in the closed state to the open state; switch the gate that was originally in the open state to the closed state
- the two cache data queues can alternately perform enqueue operations and dequeue operations.
- Operation so that the data message sent by the upstream node device is sent to the downstream node device within a preset transmission period, and the downstream node device receives the data message within the same preset transmission period and sends the data message to the downstream node device.
- the data packet is forwarded.
- Each device in the first network is all time synchronized, and the transmission time of each device can be strictly controlled so that each device can send or forward data within a fixed time period, and, Each device will delay for a time period, and then Forward the received data packets.
- the end-to-end time delay of the data packet on the first network only depends on the size of the preset time period T and the number H of devices transmitting the data packet in the first network. Therefore, the value range of the total delay time for the data packet to be transmitted from the source device to the sink device in the first network is: ⁇ (H-1)*T, (H+1)*T ⁇ .
- H is an integer greater than or equal to 1 and less than the preset number; T is a real number greater than 0.
- the preset quantity is the number of devices that meet the preset separation distance (eg, 5 meters or 8 meters, etc.).
- the first network has a smaller coverage area.
- the first network may be a local area network or a metropolitan area network.
- (H-1)*T means: the data message is sent by the source device at the end of time period T, and is forwarded and output by the sink device at the beginning of time period T;
- (H+1)*T means: the data packet is sent at the beginning of the time period T on the source device, but is forwarded and output by the sink device at the end of the time period T.
- the working status of the in-queuing gate control and the working status of the out-queuing gate control remain unchanged, and the working status of the gate control is switched regularly, so that the devices in the first network can realize Data transmission with deterministic transmission delay can meet the bounded transmission delay jitter requirements between various devices in the first network.
- TSN Time-Sensitive Network
- the working principle of TSN technology is suitable for configuring the global scheduling schedule. Transmitting business data through fixed time slice scheduling can reduce network congestion and uncertainty caused by queuing delays in data transmission queues.
- the distance between all devices in the first network is limited, and the networking method of the first network is only suitable for small-scale networking (for example, local area network or metropolitan area network, etc.), so that the first network can be realized.
- Time synchronization between all devices in the network that is, if the sending device sends certain service data to the receiving device within a certain preset transmission period, the receiving device can also receive the service data within the preset transmission period, This enables deterministic service data transmission with time synchronization between the sending device and the receiving device.
- Figure 4 shows a schematic diagram of service data transmission between devices in the second network provided by an embodiment of the present application.
- the devices of the second network include: device D, Device E and Device F.
- device D can be set as the head node device in the second network
- device E and device F can be set as second devices in the second network.
- the second network may be a wide area network.
- a clock frequency synchronization mechanism is used for communication between multiple second devices, as well as between the first node device and the second device; and, the start time and end time of the transmission cycle of multiple second devices are different, but each time The transmission cycles of two second devices have the same length, and the switching frequency of the transmission cycles of multiple second devices is the same; each second device has multiple cache data queues, and the cache data queues are used to store the received upper-level data.
- each cached data queue corresponds to a transmission cycle, and the working status of the cached data queues is determined based on polling between multiple cached data queues.
- service data needs to pass through device D, be transmitted to device E, and be forwarded by device E to device F.
- start time and end time of the transmission cycle of each second device are different, when the clock frequency is the same, the switching frequency of the transmission cycle in each second device is the same.
- the number of switching transmission cycles is the same, and the frequency of switching is also the same.
- Multiple cache data queues can be set up in each second device, and the data packets are determined according to the time tag value carried by the data packet (such as "tag 1, tag 2 and tag 3" shown in Figure 4). Which cache data queue the document enters for caching.
- all cached data queues in each second device can change the working status in turn, improving the performance of the cached data queue. Work efficiency.
- the working status of the cached data queue includes: sending status or receiving status; within a preset period, the working status of only one cached data queue among the multiple cached data queues of each second device is the sending status. , the working status of other cached data queues is receiving status.
- the usage efficiency of each cache data queue can be improved, the transmission speed of business data can be improved, and the business data can be quickly transmitted to the next hop node. equipment.
- each device in the second network can also plan the transmission path, delay, bandwidth and queue of the business data packets in advance according to the service requirements of the business data. resources, etc., by determining the cycle parameters of the transmission time, generating a forwarding cycle label for each device (label 1, label 2, label 3, etc. as shown in Figure 4), and distributing the forwarding cycle label to each device in the second network equipment to speed up the transmission of business data.
- tag 1, tag 2 and tag 3 are used to represent the identification of the node device through which the service data is transmitted and the corresponding cache data queue that receives the service data.
- Tag 1 represents The first message needs to be received by a specified cache data queue in device E.
- the first sending queue 412 is a queue in the first receiving queue set 411 that receives the service data. At this time, the working state of the queue is the sending state.
- device E When device E receives the first message, by identifying tag 1, it determines that the first message needs to be stored in its own cache data queue (for example, queue 2 in the second receiving queue set 421, etc.), and sets the tag 1 is removed, and then label 2, label 3 and the message are encapsulated into a second message; when the working state of queue 2 in the second receiving queue set 421 is the sending state (that is, queue 2 in the second receiving queue set 421 When changing to the second sending queue 422), the second message is forwarded to device F through the second sending queue 422. Label 2 is used to indicate that the second message needs to be received by a specified cache data queue in device F.
- device F When device F receives the second message, by identifying tag 2, it determines that the second message needs to be stored in its own cache data queue (for example, queue 3 in the third receiving queue set 431, etc.), and sets the tag 2 is removed, and then label 3 and the message are encapsulated into a third message; when the working state of queue 3 in the third receiving queue set 431 is the sending state (that is, queue 3 in the third receiving queue set 431 changes to When the third sending queue 432 is configured, the third message is forwarded through the third sending queue 432 for reception by the next hop node device.
- the label 3 is used to indicate that the third message needs to be sent by a specified device F.
- Buffered data queue (for example, queue 4) receives.
- each device can forward service data within a fixed time period to achieve end-to-end fixed-delay service data transmission.
- the clock frequencies of all devices in the second network are synchronized, and the time conversion cycles of all devices are the same.
- the switching speeds of the working states of the cached data queues are also the same, and the clock frequencies of all cached data queues corresponding to the devices in the second network are also the same.
- Both the receiving state and the sending state change according to a fixed frequency.
- the service data message is forwarded through each device in the second network, and the forwarding delay time can be controlled. That is, the service data message is forwarded from the source node in the second network.
- the transmission process from the device to the sink node device is a data forwarding process with end-to-end deterministic delay.
- the preset parameter mapping relationship includes: period mapping relationship and bandwidth mapping relationship, the first transmission parameter includes the first transmission period and/or the first transmission bandwidth, the second transmission parameter includes the second transmission period and/or or second transmission bandwidth.
- step S210 before adjusting the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameter to be used, it also includes:
- the cycle mapping relationship is determined based on the first transmission cycle and the second transmission cycle; and/or the bandwidth mapping relationship is determined based on the first transmission bandwidth and the second transmission bandwidth.
- the period mapping relationship can be expressed by period conversion factors.
- the cycle mapping relationship is determined based on the proportional relationship between the first transmission cycle and the second transmission cycle.
- the bandwidth mapping relationship can be represented by a bandwidth conversion factor.
- the bandwidth mapping relationship is determined based on the proportional relationship between the first transmission bandwidth and the second transmission bandwidth.
- mapping relationship when determining the preset parameter mapping relationship, only the period mapping relationship can be determined, or only the bandwidth mapping relationship can be determined, or both mapping relationships can be calculated simultaneously to meet the testing needs in different application scenarios. .
- the bandwidth difference and the transmission period difference between the first network and the second network can be truly reflected, and the equipment of the second network can timely adjust the second network based on the above-mentioned difference.
- the transmission cycle and transmission bandwidth of each device are improved to improve the transmission efficiency of business data.
- Adjust the second transmission parameters to obtain the transmission parameters to be used including: determining the reserved time domain resources according to the period mapping relationship, adjusting the second transmission period according to the reserved time domain resources and the first transmission period, and obtaining the transmission parameters to be used. period; and/or, determine the reserved bandwidth resources according to the bandwidth mapping relationship, adjust the second transmission bandwidth according to the reserved bandwidth resources and the first transmission bandwidth, and obtain the transmission bandwidth to be used.
- the reserved time domain resources may include: time slice length, or the number of reserved transmission cycles corresponding to the cycle mapping relationship, etc.
- the reserved bandwidth resources may include: reserved bandwidth length corresponding to the bandwidth mapping relationship, etc.
- the reserved time domain resources can be determined only through the periodic mapping relationship, so that the reserved time domain resources represent the transmission difference between the first network and the second network, and then the second transmission cycle can be adjusted to The transmission period to be used is obtained, so that the transmission period in the second network is more suitable for data transmission.
- the reserved bandwidth resources can also be determined only through the bandwidth mapping relationship, so that the reserved bandwidth resources represent the difference in bandwidth between the first network and the second network, and then the reserved bandwidth resources and the first network can be determined based on the bandwidth mapping relationship.
- the transmission bandwidth adjusts the second transmission bandwidth so that the obtained transmission bandwidth to be used can meet the transmission requirements of data in the second network, and the data can be transmitted faster and more efficiently through different transmission bandwidths.
- the second transmission cycle and the second transmission bandwidth can also be adjusted simultaneously so that the transmission environment in the second network meets the transmission requirements.
- the obtained transmission period to be used can be more suitable for the network environment in the second network, so that the first network and the second network can devices can achieve time synchronization.
- the second transmission bandwidth is adjusted so that the obtained transmission bandwidth to be used can accurately map and match the transmission bandwidth of the first network and the transmission bandwidth of the second network, Facilitate the transmission of business data and improve transmission efficiency.
- the equipment of the second network includes the head node equipment; adjusting the second transmission bandwidth according to the reserved bandwidth resources and the first transmission bandwidth to obtain the transmission bandwidth to be used includes: according to the reserved bandwidth resources and the first transmission bandwidth Transmission bandwidth, adjust the second transmission bandwidth of the first node device, and obtain the transmission bandwidth corresponding to the first node device to be used.
- the head node device is a device connected to the tail node device of the first network.
- the transmission bandwidth of the first network and the second network are different, for example, if the transmission bandwidth of the first node device of the second network is 10Gbps and the transmission bandwidth of the first network is 1Gbps, there will be a big bandwidth difference between the two networks. , it is easy to cause packet loss or data errors during the transmission process of business data. Therefore, the transmission bandwidth of the first node device needs to be adjusted first so that the first node can use the reserved bandwidth resources and the first transmission bandwidth. Adjust the second transmission bandwidth of the first node device to obtain the transmission bandwidth to be used corresponding to the first node device, so that the transmission bandwidth to be used can adapt to the transmission requirements of the second network.
- the transmission bandwidth to be used may be determined to be a second transmission bandwidth that is (1-b) times.
- b is the bandwidth conversion factor.
- the device of the second network includes a head node device and a plurality of second devices.
- Adjusting the second transmission cycle based on the reserved time domain resources and the first transmission cycle to obtain the transmission cycle to be used includes: determining the transmission cycle label of the head node device based on the reserved time domain resources and the first transmission cycle; Set the label mapping relationship and the transmission cycle label of the first node device to determine the transmission cycle labels of multiple second devices respectively; determine the transmission cycle to be used based on the forwarding cycle label of the first node device and the transmission cycle labels of multiple second devices.
- the preset label mapping relationship is used to characterize the transmission cycle mapping relationship between the head node device and its connected second device and the transmission cycle mapping relationship between multiple second devices.
- the transmission cycle mapping relationship between the first node and the second device connected to it can be characterized by the reserved time domain resources. For example, if the reserved time domain resources are c times the second transmission cycle, then the first node device can be determined The transmission period to be used is (1-c) times the second transmission period, so that the head node device can achieve time synchronization with the tail node device of the first network. Further, based on the transmission period to be used of the head node device, the transmission periods to be used of other second devices are calculated.
- the transmission period to be used by the first node device is (1-c)*10ms, and the corresponding , the transmission periods to be used of other second devices are delayed by (10*c) ms in turn based on the transmission periods to be used and the second transmission period of the first node device.
- the transmission cycle to be used corresponds to generating a transmission cycle label for each device in the second network, so that the transmission cycle label of each device in the second network can represent the period in which each device needs to transmit data, so that each device can be based on
- the business data is transmitted at a deterministic time, reducing the transmission delay, so that the business data can be transmitted quickly and accurately in the second network.
- the service data includes at least two service data messages; based on the reserved time domain resources and the first transmission cycle, determining the transmission cycle label of the head node device includes: determining that transmission is required within the first transmission cycle In the case of at least two service data messages, assign corresponding forwarding transmission periods to at least two service data messages according to the reserved time domain resources, and obtain the identification of at least two forwarding and transmission periods; according to at least two forwarding and transmission periods The identification of the transmission cycle determines the transmission cycle label of the first node.
- corresponding forwarding and transmission cycles are allocated to at least two service data packets, so that at least two service data packets can transmit data in the corresponding forwarding and transmission cycles respectively, avoiding different transmission cycles.
- Interference between business data reduces the transmission error ratio of business data and improves the transmission efficiency of business data.
- the identification of the forwarding transmission cycle can represent the specific transmission cycle in which different service data needs to be transmitted, so that the first node device can reasonably allocate transmission cycle resources and determine the transmission cycle label of the first node device.
- determining the transmission cycle label of the head node device based on the reserved time domain resources and the first transmission cycle includes: allocating at least two received service data packets based on the reserved time domain resources. One forwarding transmission cycle, and the transmission cycle label of the head node device is obtained.
- At least two service data packets are packets received sequentially within at least two first transmission cycles.
- Allocating a forwarding transmission cycle for at least two received business data packets based on reserved time domain resources can save time domain resources, enable more business data to be transmitted, and improve the transmission efficiency of business data.
- transmitting the service data in the second network according to the transmission parameters to be used includes: the first node device constructs according to the service data and the transmission cycle tag of the second device. transmit a message; to and from the first section The second device connected to the point device sends a transmission message, so that the second device determines the cache data queue identifier based on the transmission cycle tag in the transmission message, and stores the service data in the cache data queue corresponding to the cache data queue identifier; after determining the cache When the working state of the cached data queue corresponding to the data queue identifier is the sending state, the service data is forwarded to other second devices.
- each second device includes multiple cache data queues, and the working status of each cache data queue changes in a polling manner, and in the same transmission cycle, only one cache data queue is working.
- the status is the sending state. Therefore, when the working status of a cached data queue is the receiving state, it can receive business data sent by other node devices (such as the first node device or other second devices, etc.); when the working status of the cached data queue The received business data will only be forwarded when the status is in the sending state.
- the transmission cycle label of the second device can indicate which second devices the service data sent by the first node device needs to pass through, so that the service data can be quickly and accurately transmitted in the second network based on the transmission cycle label of the second device. Improve the transmission efficiency of business data.
- adjusting the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship, and before obtaining the transmission parameter to be used further includes: obtaining the transmission delay duration in the first network; before determining the first transmission parameter.
- the transmission delay length is a length determined based on the number of devices in the first network and the first transmission cycle; the number of devices in the first network includes: the number of first devices through which business data passes when transmitted in the first network.
- the preset delay duration range is a range determined based on the number of second devices through which the service data is transmitted in the second network and the second transmission cycle.
- the difference between the transmission delay duration in the first network and the preset delay duration in the second network can be clarified, thereby determining that the transmission delay duration in the first network is not the preset delay duration.
- the service data sent by the equipment of the first network needs to be transmitted in the second network, it is determined that the The second transmission parameters of the second network are adjusted so that the adjusted second transmission parameters can meet the transmission requirements of the service data transmitted in the second network, speed up the transmission speed of the service data in the second network, and enable the service data to be transmitted. Transmission is performed in the second network based on a deterministic transmission duration.
- FIG. 5 shows a schematic flowchart of a method for generating node configuration information in the second network provided by an embodiment of the present application.
- the method of generating node configuration information in the second network includes but is not limited to the following steps S501 to S506. .
- step S501 the device of the second network determines the bandwidth requirement and delay requirement for end-to-end transmission of the service data based on the cross-domain application requirements of the service.
- service data sent by a device on the first network needs to be transmitted through the second network. Based on the characteristics of the service data, the transmission bandwidth and transmission cycle size required to transmit the service data in the second network are determined.
- the first transmission parameters of the first network include a first transmission period and a first transmission bandwidth
- the second transmission parameters of the second network include a second transmission period and a second transmission bandwidth
- the size of the transmission cycle and the transmission delay requirement information in the wide area network can be determined according to the application needs of the devices in the local area network for transmitting business data.
- step S502 the device of the second network determines a cycle mapping relationship based on the first transmission cycle and the second transmission cycle, and determines reserved time domain resources based on the cycle mapping relationship.
- the forwarding time of business data can be divided into equal time intervals, and each time interval is called a transmission cycle.
- the size of the first transmission period may be set to be greater than the sum of link delay, processing delay, transmission delay and queuing delay, where the link delay is negligibly zero.
- the size of the second transmission period in the second network is approximately equal to the quotient of the maximum queue length divided by the transmission bandwidth, where the link delay Not counted.
- the time domain resources that need to be reserved can be determined through the cycle mapping relationship.
- the transmission cycles of the first network and the second network can Alignment to facilitate subsequent transmission of business data.
- step S503 the device of the second network determines the bandwidth mapping relationship based on the first transmission bandwidth and the second transmission bandwidth, determines the reserved bandwidth resources based on the bandwidth mapping relationship, and then determines the reserved bandwidth resources based on the reserved bandwidth resources and the first transmission bandwidth.
- the bandwidth adjusts the second transmission bandwidth to obtain the transmission bandwidth to be used that can be used in the second network.
- an edge period shaper may be set in the head node device of the second network.
- the edge period shaper is used to determine the bandwidth mapping relationship based on the first transmission bandwidth and the second transmission bandwidth, and determine the reservation through the bandwidth mapping relationship. bandwidth resources to implement mapping of transmission parameters between the first network and the second network.
- the first network is a LAN and the second network is a WAN.
- the transmission bandwidth of the LAN is usually less than 1Gbps, while the transmission bandwidth of the WAN exceeds 10Gbps.
- the mismatch in transmission bandwidth will lead to problems such as unequal transmission delays and network interface congestion. Therefore, the transmission bandwidth between the LAN and the WAN needs to be mapped to facilitate the transmission of business data in the WAN.
- step S504 the device of the second network obtains the sending time when the first network sends the service data, and determines the receiving time when the device of the second network receives the service data based on the sending time and the reserved time domain resources.
- the sending time of the tail node device in the local area network when sending the service data can be clarified, and then the receiving time when the device of the second network receives the service data can be determined.
- step S505 the device of the second network generates a periodic label according to the reception time when the device of the second network receives the service data.
- the periodic label includes the label value of the first node device of the second network and the Tag values corresponding to multiple second devices. Different tag values are used to represent the identities of different cache data queues in which the second device stores the service data it receives.
- step S506 the head node device of the second network sends the generated periodic tag to each second device in the second network, so that each second device can sequentially transmit service data based on the obtained corresponding tag value.
- the tail node device in the second network when the tail node device in the second network finally receives the service data, it needs to forward the service data to a target device of the same type as the device in the first network.
- the second network is a wide area network
- the tail node device of the wide area network needs to transmit service data to a device in a certain metropolitan area network.
- the metropolitan area needs to be determined based on the sending time of the service data sent by the tail node device of the wide area network.
- the reception time of the first node device in the network is so that the first node device in the metropolitan area network can receive the service data in time to avoid the loss of service data and improve the security of data transmission.
- the target device is a non-first node device in the metropolitan area network
- the reception time of other devices receiving the service data is determined so that the service data can be transmitted smoothly in the metropolitan area network, and finally the target device obtains the service data.
- the information such as the forwarding cycle, cycle label, and configuration bandwidth of each device in the metropolitan area network connected to the tail node device of the second network, and the service data in the second network (such as a wide area network).
- Figure 6 shows a schematic diagram of service data transmission between the tail node device of the first network and the head node device of the second network provided by the embodiment of the present application. As shown in Figure 6, the tail node device 610 of the first network is connected to the head node device 620 of the second network.
- the tail node device 610 of the first network includes: two data cache queues, and these two data cache queues are used for rotation training based on different time periods. For example, different data caches are used respectively in the even period T0 and the odd period T1. Queues transmit data.
- the first node device 620 of the second network includes an edge period shaper 621 and a sending queue 622 And multiple data cache queues (such as Q1, Q2, Q3, Q4, etc.).
- the egress bandwidth of the tail node device 610 of the first network is 1Gbps, and the transmission cycle is 20 microseconds (us). Assuming that the size of each service data packet is 100 bytes, then the tail node device 610 of the first network
- the maximum queue depth of each data cache queue in is 25 business data packets;
- the egress bandwidth of the first node device 620 of the second network is 10Gbps, including Q1, Q2, Q3 and Q4, with a total of 4 data cache queues and a transmission period of 10us. Assume that the size of each service data packet is 100Bytes. The maximum queue depth of each data cache queue in the head node device 620 of the network is 125 service data packets.
- the edge cycle shaper 621 is also used to obtain the transmission cycle of the tail node device 610 of the first network and the transmission cycle of the head node device 620 of the second network, and perform calculations based on the above two transmission cycles to determine the cycle mapping. relation.
- the first node device 620 of the second network can be synchronized with the tail node device 610 of the first network, so that the transmission time of service data can be adjusted.
- Deterministic control of delay can reduce the delay time when transmitting business data between different types of equipment, realize cross-domain data transmission with controllable transmission delay, meet the industrial needs of high time accuracy, and promote the development of the industrial field. develop.
- FIG 7 shows a schematic flowchart of a service data transmission method provided by yet another embodiment of the present application.
- the service data transmission method can be applied to service data transmission equipment.
- the service data transmission method in the embodiment of the present application includes but is not limited to the following steps: Steps S701 to S702.
- step S701 the first transmission parameter is sent to the device of the second network, so that the device of the second network can adjust the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameter to be used.
- the first network and the second network are two communication networks with different transmission delays, and the second transmission parameter is the transmission parameter of the device of the second network.
- the first transmission parameters may include: a first transmission period and a first transmission bandwidth, so that the device of the second network can learn the transmission period and transmission bandwidth of the device of the first network to facilitate subsequent processing.
- step S702 the service data is sent to the device of the second network, so that the device of the second network transmits the service data in the second network according to the transmission parameters to be used.
- the business data needs to be forwarded by the equipment of the second network so that the equipment in different geographical locations and of the same type as the equipment of the first network can accurately obtain the data, which can meet the transmission of business data in different areas. Realize deterministic data transmission with controllable transmission delay.
- equipment of the second network can implement any of the service data transmission methods applied to the equipment of the second network in the embodiments of the present application, and the corresponding method steps will not be described again here.
- the first transmission parameter is sent to the device of the second network so that the device of the second network can adjust the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the desired parameter.
- Using the transmission parameters can make the transmission parameters to be used match the first transmission parameters, improving the controllability of the transmission delay of data in the second network; sending service data to the equipment of the second network, so that the second network
- the equipment transmits business data in the second network according to the transmission parameters to be used, realizing cross-domain data transmission with controllable transmission delay, meeting the industrial needs of high time precision, and promoting the development of the industrial field.
- Figure 8 shows a schematic flow chart of forwarding service data between the first network and the second network provided by an embodiment of the present application.
- the first local area network 801 includes node A, node B, and node C
- the second local area network 802 includes node G, node H, and node I
- the wide area network 803 includes node D, node E, and node F.
- Node C is the first LAN 801
- node D is the first node device of the wide area network 803
- node F is the tail node device of the wide area network 803
- node G is the first node device of the second local area network 802.
- the transmission cycles of the first LAN 801 and the second LAN 802 are both TL ; and each node device in the first LAN 801 uses a time synchronization mechanism to communicate, and each node device in the second LAN 802 also communicates with each other. Use time synchronization mechanism for communication.
- Each node device in the wide area network 803 communicates using a clock frequency synchronization mechanism, and the forwarding cycle of the wide area network 803 is T w .
- the transmission cycle Before transmitting service data, it is also necessary to align the transmission cycle between the tail node device of the first local area network 801 (ie, node C) and the first node device of the wide area network 803 (ie, node D), and to align the WAN 803
- the transmission cycle is aligned between the tail node device (ie, node F) and the head node device (ie, node G) of the second local area network 802.
- the reserved time domain resources are determined based on the cycle conversion factor c (for example, the first node device of the wide area network 803 reserves c times the time slice length for the tail node device of the first local area network 801);
- the domain resources and the first transmission cycle of the first local area network 801 adjust the second transmission cycle of the wide area network 803 to obtain the transmission cycle to be used.
- the transmission cycle to be used is used to enable each node device in the wide area network 803 to perform data transmission.
- the square represents the egress data (i.e., the service data message to be transmitted corresponding to the device's egress), and the circle represents the ingress data (i.e., the device's inlet receives the service to be transmitted from the superior node). data message).
- the transmission bandwidth of LAN 801 is different from the transmission bandwidth of WAN 803.
- the transmission bandwidth of LAN 801 may be 1Gbps
- the transmission bandwidth of WAN 803 may be 10Gbps.
- a preset bandwidth mapping relationship for example, using one-tenth as the bandwidth mapping factor
- Node A will need to transmit two different service datagrams during the even period T0.
- Messages for example, Message 1 and Message 2
- Node B also receives Message 1 and Message 2 sent by Node A during the even period T0.
- Node B forwards the above-mentioned message 1 and message 2 from its egress to node C within the odd period T1 based on the transmission method (eg, time synchronization mechanism) in the first local area network 801.
- node C receives message 1 and message 2 forwarded by node B in the odd-numbered period T1, and forwards message 1 and message 2 to the WAN 803 connected to it in the next even-numbered period T0.
- Node D Node D.
- node D has the same structure as the head node device 620 of the second network in Figure 6, and the corresponding working principles are also the same, which will not be described again here.
- the node D of the wide area network 803 When the service data is received by the node D in the wide area network 803, the node D of the wide area network 803 will allocate the message 1 received in the period T0 to the period T1, and forward the data to the node E, and then forward the data to the node E in the period T1. Message 2 received during the period is allocated to cycle T2, and the data is forwarded to node E.
- node E will receive message 1 in cycle T3 and message 2 in cycle T4 respectively; then node E will send message 1 to node F in cycle T5 and message 2 in cycle T6 respectively.
- Text 2 is given to node F.
- node F When node F receives message 1 in cycle T6 and receives message 2 in cycle T7, node F will send message 1 to node G in the second LAN 802 in cycle T7. In T8, the message 2 is sent to the node G in the second local area network 802, thereby completing the transmission of different messages in the second network.
- the sending node will generate a forwarding cycle tag value based on its sending cycle.
- the forwarding cycle tag value can represent the transmission cycle when the sending node sends different service data.
- the forwarding cycle label values of node E are T5 and T6; the forwarding cycle label values of node F are T7 and T8.
- node G in the second LAN 802 When node G in the second LAN 802 receives message 1 and message 2 in the period T0, the message will be transmitted based on the same transmission method as that in the first LAN 801 (for example, time synchronization mechanism). transmission.
- node G forwards the above message 1 and message 2 from its egress to node H.
- node H receives message 1 and message 2 forwarded by node G in the even-numbered period T0, and forwards message 1 and message 2 to node I in the next odd-numbered period T1; node I in the odd-numbered period In the period T1, the message 1 and the message 2 forwarded by the node H are received, and in the next even-numbered period T0, the message 1 and the message 2 are forwarded to realize the transmission of service data in the second LAN.
- Figure 9 shows a schematic flow chart of forwarding service data between the first network and the second network provided by yet another embodiment of the present application.
- the connection relationship between the various devices in Figure 9 is the same as the connection relationship between the various devices in Figure 8, that is, the first LAN 801 includes node A, node B and node C; the second LAN 802 It includes node G, node H and node I; the wide area network 803 includes node D, node E and node F.
- Node C is the tail node device of the first LAN 801
- node D is the head node device of the WAN 803
- node F is the tail node device of the WAN 803
- node G is the head node device of the second LAN 802 .
- node D of the wide area network 803 forwards service data, it will receive two consecutive data packets (ie, the first packet received in the period T0 and the first packet received in the period T1). second message) are allocated to the same forwarding period (that is, period T2) for data forwarding, that is, device D needs to forward both the first message and the second message to node E in period T2.
- node D needs to determine the receiving cycle of node E (ie, cycle T4) based on its forwarding cycle (ie, cycle T2), and further determines that node E needs to forward the first message and the second message to the node in cycle T6. F; and node F needs to receive the first message and the second message in period T7, and forward the first message and second message to node G in the second LAN 802 in period T8.
- the forwarding cycle label of node D is T2
- the forwarding cycle label of node E is T6
- the forwarding cycle label of node F is T8, etc.
- Figure 10 shows a block diagram of a service data transmission device provided by an embodiment of the present application.
- the service data transmission device 1000 is a device in the second network. As shown in Figure 10, the service data transmission device 1000 includes but is not limited to the following modules.
- the edge period shaper 1001 is configured to adjust the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameter to be used.
- the first transmission parameter is a parameter sent by the first network
- the second transmission parameter is a parameter sent by the first network.
- the transmission parameters are transmission parameters of the equipment of the second network, and the first network and the second network are two communication networks with different transmission delays.
- the transmission module 1002 is configured to respond to the service data sent by the device of the first network and transmit the service data in the second network according to the transmission parameters to be used.
- the preset parameter mapping relationship includes: period mapping relationship and bandwidth mapping relationship, the first transmission parameter includes the first transmission period and the first transmission bandwidth, the second transmission parameter includes the second transmission period and the second transmission bandwidth.
- the service data transmission device 1000 also includes: a cycle mapping module configured to determine the cycle mapping relationship based on the first transmission cycle and the second transmission cycle; a bandwidth mapping module configured to determine the cycle mapping relationship based on the first transmission bandwidth and the second transmission bandwidth. Bandwidth mapping relationship.
- the edge period shaper 1001 is configured to determine the reserved time domain resources according to the period mapping relationship; adjust the second transmission period according to the reserved time domain resources and the first transmission period to obtain the transmission period to be used; And determine the reserved bandwidth resources according to the bandwidth mapping relationship; adjust the second transmission according to the reserved bandwidth resources and the first transmission bandwidth Bandwidth, obtain the transmission bandwidth to be used.
- the device of the second network includes a head node device. Adjusting the second transmission bandwidth according to the reserved bandwidth resources and the first transmission bandwidth to obtain the transmission bandwidth to be used includes: adjusting the second transmission bandwidth of the first node device according to the reserved bandwidth resources and the first transmission bandwidth to obtain the first node The transmission bandwidth to be used corresponding to the device.
- the device of the second network includes a head node device and a plurality of second devices.
- Adjusting the second transmission cycle based on the reserved time domain resources and the first transmission cycle to obtain the transmission cycle to be used includes: determining the transmission cycle label of the head node device based on the reserved time domain resources and the first transmission cycle; Assume the label mapping relationship and the transmission cycle label of the first node device, and determine the transmission cycle labels of multiple second devices respectively.
- the preset label mapping relationship is used to represent the transmission cycle mapping relationship between the first node device and its connected second device;
- the transmission cycle mapping relationship between multiple second devices; the transmission cycle to be used is determined based on the forwarding cycle label of the first node device and the transmission cycle labels of the multiple second devices.
- the service data includes at least two service data messages; based on the reserved time domain resources and the first transmission cycle, determining the transmission cycle label of the head node device includes: determining that transmission is required within the first transmission cycle In the case of at least two service data messages, allocate corresponding forwarding and transmission periods to at least two service data messages according to the reserved time domain resources, and obtain the identifiers of at least two forwarding and transmission periods; and according to at least two Forward the identification of the transmission cycle and determine the transmission cycle label of the first node device.
- determining the transmission cycle label of the head node device based on the reserved time domain resources and the first transmission cycle includes: allocating at least two received service data packets based on the reserved time domain resources.
- One forwarding transmission cycle obtains the transmission cycle label of the head node device; at least two service data packets are packets received in at least two first transmission cycles.
- a clock frequency synchronization mechanism is used for communication between multiple second devices, and between the first node device and the second device; the starting time and the ending time of the transmission cycle of the multiple second devices are not the same.
- the switching frequency of the transmission cycles of multiple second devices is the same; each second device has multiple cache data queues, and the cache data queues are To store the received business data sent by the upper-level network device, each cache data queue corresponds to a transmission cycle, and the working status of the cache data queues is determined based on polling between multiple cache data queues.
- the working status of the cached data queue includes: sending status or receiving status; within a preset period, the working status of only one cached data queue among the multiple cached data queues of each second device is the sending status. , the working status of other cached data queues is receiving status.
- the transmission module 1002 is configured so that the first node device constructs a transmission message based on the service data and the transmission cycle tag of the second device; and sends the transmission message to the second device connected to the first node device, so that the second device is based on
- the transmission cycle tag in the transmission message determines the cache data queue identifier, and stores the business data in the cache data queue corresponding to the cache data queue identifier; when it is determined that the working status of the cache data queue corresponding to the cache data queue identifier is the sending state , forward the service data to other second devices.
- the devices of the first network include a tail node device and a plurality of first devices
- the devices of the second network include a head node device and a plurality of second devices
- the tail node device is communicatively connected to the head node device; a plurality of The time synchronization mechanism is used for communication between the first devices and between the tail node device and the first node device.
- each first device has two cache data queues, the working states of the enqueue gates of the two cache data queues are mutually exclusive, and the working states of the dequeue gates of the two cache data queues are mutually exclusive, The working status of the enqueuing gate and the working status of the dequeuing gate of each cache data queue are mutually exclusive, and the working status includes an open state or a closed state.
- the cache data queue when it is determined that the status of the enqueue gate is open, the cache data queue is used to store business data; when it is determined that the status of the dequeue gate is open, the cache data queue is used Output business data; within the preset transmission cycle, the working status of the entry gate control and the working status of the exit gate control remain unchanged.
- the service data transmission device 1000 further includes: an acquisition module configured to obtain the transmission delay duration in the first network, where the transmission delay duration is based on the number of devices in the first network and the first transmission cycle. a determined duration; a determining module configured to determine that the transmission delay duration in the first network is not within the preset delay duration range, And when the service data sent by the device of the first network needs to be transmitted in the second network, it is determined that the second transmission parameter of the second network needs to be adjusted.
- the service data transmission device 1000 in this embodiment can implement any of the service data transmission methods in the embodiments of this application that is applied to the device in the second network.
- the edge period shaper adjusts the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameters to be used, so that the transmission parameters to be used can Match the first transmission parameters to improve the controllability of the transmission delay of data in the second network; thus, after receiving the service data sent by the device of the first network, the transmission module can be used to transmit the data in the second network according to the transmission parameters to be used. Transmit business data in the second network to achieve cross-domain data transmission with controllable transmission delay, meet industrial needs with high time accuracy, and promote the development of the industrial field.
- FIG 11 shows a block diagram of a service data transmission device provided by yet another embodiment of the present application.
- the service data transmission device 1100 is a device in the first network. As shown in Figure 11, the service data transmission device 1100 includes but is not limited to the following modules.
- the first sending module 1101 is configured to send the first transmission parameter to the device of the second network, so that the device of the second network can adjust the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the desired Use transfer parameters.
- the first network and the second network are two communication networks with different transmission delays, and the second transmission parameter is the transmission parameter of the device of the second network.
- the second sending module 1102 is configured to send service data to the device of the second network, so that the device of the second network transmits the service data in the second network according to the transmission parameters to be used.
- the first transmission parameter is sent to the device of the second network through the first sending module, so that the device of the second network can transmit the first transmission parameter to the device of the second network according to the first transmission parameter and the preset parameter mapping relationship.
- the second transmission parameters are adjusted to obtain the transmission parameters to be used, which can match the transmission parameters to be used with the first transmission parameters and improve the controllability of the transmission delay of data in the second network; the second sending module sends the data to the second transmission parameter.
- the equipment of the network sends the service data, so that the equipment of the second network transmits the service data in the second network according to the transmission parameters to be used, realizing cross-domain data transmission with controllable transmission delay, Meet the industrial needs of high time accuracy and promote the development of the industrial field.
- FIG. 12 shows a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the business data transmission method and apparatus according to embodiments of the present application.
- computing device 1200 includes an input device 1201 , an input interface 1202 , a central processing unit 1203 , a memory 1204 , an output interface 1205 , and an output device 1206 .
- the input interface 1202, the central processing unit 1203, the memory 1204, and the output interface 1205 are connected to each other through the bus 1207.
- the input device 1201 and the output device 1206 are connected to the bus 1207 through the input interface 1202 and the output interface 1205 respectively, and then to the computing device 1200 to connect other components.
- the input device 1201 receives input information from the outside and transmits the input information to the central processor 1203 through the input interface 1202; the central processor 1203 processes the input information based on computer-executable instructions stored in the memory 1204. To generate output information, store the output information temporarily or permanently in the memory 1204, and then transmit the output information to the output device 1206 through the output interface 1205; the output device 1206 outputs the output information to the outside of the computing device 1200 for use by the user.
- the computing device shown in FIG. 12 may be implemented as an electronic device, and the electronic device may include: a memory configured to store a computer program; and a processor configured to run the computer program stored in the memory. , to perform the service data transmission method described in the above embodiment.
- the computing device shown in Figure 12 may be implemented as a business data transmission system.
- the business data transmission system may include: a memory configured to store a computer program; a processor configured to run The computer program stored in the memory is used to execute the business data transmission method described in the above embodiment.
- Embodiments of the present application may be implemented by a data processor of the mobile device executing computer program instructions, for example in a processor entity, or by hardware, or by a combination of software and hardware.
- Computer program instructions may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code written in any combination of one or more programming languages or target code.
- ISA instruction set architecture
- Any block diagram of a logic flow in the figures of this application may represent program steps, or may represent interconnected logic circuits, modules, and functions, or may represent a combination of program steps and logic circuits, modules, and functions.
- Computer programs can be stored on memory.
- the memory may be of any type suitable to the local technical environment and may be implemented using any suitable data storage technology, such as, but not limited to, read only memory (ROM), random access memory (RAM), optical storage devices and systems (digital versatile disc DVD or CD), etc.
- Computer-readable media may include non-transitory storage media.
- the data processor may be of any type suitable for the local technical environment, such as, but not limited to, general purpose computers, special purpose computers, microprocessors, digital signal processors (DSP), application specific integrated circuits (ASIC), programmable logic devices (FGPA) and processors based on multi-core processor architecture.
- DSP digital signal processors
- ASIC application specific integrated circuits
- FGPA programmable logic devices
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Mining & Analysis (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present application relates to the technical field of communications. Provided are a service data transmission method, and a device, an electronic device and a storage medium. The method comprises: adjusting a second transmission parameter according to a first transmission parameter and a preset parameter mapping relationship, so as to obtain a transmission parameter to be used, wherein the first transmission parameter is a parameter which is sent by a device of a first network, and the second transmission parameter is a transmission parameter of a device of a second network, the first network and the second network being two communication networks having different transmission delays; and in response to service data which is sent by the device of the first network, transmitting the service data in the second network according to the transmission parameter to be used.
Description
相关申请的交叉引用Cross-references to related applications
本申请要求于2022年6月22日提交的中国专利申请NO.202210710778.6的优先权,该中国专利申请的内容通过引用的方式整体合并于此。This application claims priority from Chinese patent application No. 202210710778.6 submitted on June 22, 2022. The content of this Chinese patent application is incorporated herein by reference in its entirety.
本申请涉及通信技术领域,具体涉及一种业务数据的传输方法和设备、电子设备和存储介质。This application relates to the field of communication technology, and specifically to a business data transmission method and device, electronic equipment and storage media.
传统的通信网络多采用尽力而为的传输方式传输业务数据,但会存在传输时延和传输抖动不可控的问题。随着通信技术在工业领域和车联网领域中的应用与发展,针对业务数据的传输时延和传输抖动都提出了更高的要求。Traditional communication networks mostly use best-effort transmission to transmit business data, but there are problems with uncontrollable transmission delay and transmission jitter. With the application and development of communication technology in the industrial field and the Internet of Vehicles, higher requirements have been put forward for the transmission delay and transmission jitter of business data.
例如,处于不同地理区域的工厂之间需要进行精准的时延可控的数据传输,而广域网具有传输带宽大、覆盖范围广且全网时间无法同步等特性,若将某工厂的局域网中的数据经由广域网进行传输,则降低了数据在广域网中的传输时延的可控性,无法实现跨域的远程工控需求,阻碍了工业领域的发展。For example, factories in different geographical areas require precise and delay-controlled data transmission, and wide area networks have the characteristics of large transmission bandwidth, wide coverage, and the inability to synchronize the time of the entire network. If the data in the local area network of a factory is Transmission via the WAN reduces the controllability of the transmission delay of data in the WAN, making it impossible to achieve cross-domain remote industrial control requirements and hindering the development of the industrial field.
发明内容Contents of the invention
本申请提供一种业务数据的传输方法,应用于第二网络的设备,方法包括:依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,第一传输参数为第一网络的设备发送的参数,第二传输参数为第二网络的设备的传输参数,第一网络和第二网络为传输时延不同的两个通信网络;依据参数映射关系
和第一传输参数对第二传输参数进行调整,获得待使用传输参数;响应于第一网络的设备发送的业务数据,依据待使用传输参数在第二网络中传输业务数据。The present application provides a method of transmitting service data, which is applied to the equipment of the second network. The method includes: adjusting the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameter to be used, wherein, The first transmission parameter is a parameter sent by a device of the first network, the second transmission parameter is a transmission parameter of a device of the second network, and the first network and the second network are two communication networks with different transmission delays; according to the parameter mapping relationship The second transmission parameter is adjusted with the first transmission parameter to obtain the transmission parameter to be used; in response to the service data sent by the device of the first network, the service data is transmitted in the second network according to the transmission parameter to be used.
本申请提供一种业务数据的传输方法,应用于第一网络的设备,方法包括:向第二网络的设备发送第一传输参数,以供第二网络的设备依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,第一网络和第二网络为传输时延不同的两个通信网络,第二传输参数为第二网络的设备的传输参数;向第二网络的设备发送业务数据,以使第二网络的设备依据待使用传输参数在第二网络中传输业务数据。The present application provides a service data transmission method, which is applied to the equipment of the first network. The method includes: sending the first transmission parameters to the equipment of the second network, so that the equipment of the second network can use the first transmission parameters and the preset parameters. The parameter mapping relationship adjusts the second transmission parameter to obtain the transmission parameter to be used, where the first network and the second network are two communication networks with different transmission delays, and the second transmission parameter is the transmission parameter of the device of the second network. ; Send service data to the device of the second network, so that the device of the second network transmits the service data in the second network according to the transmission parameters to be used.
本申请提供一种业务数据的传输设备,业务数据的传输设备为第二网络中的设备,其包括:边缘周期整形器,被配置为依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,第一传输参数为第一网络发送的参数,第二传输参数为第二网络的设备的传输参数,第一网络和第二网络为传输时延不同的两个通信网络;传输模块,被配置为响应于第一网络的设备发送的业务数据,依据待使用传输参数在第二网络中传输业务数据。This application provides a transmission device for service data. The transmission device for service data is a device in a second network. It includes: an edge period shaper configured to configure the second transmission parameter according to the first transmission parameter and a preset parameter mapping relationship. The transmission parameters are adjusted to obtain the transmission parameters to be used, where the first transmission parameter is the parameter sent by the first network, the second transmission parameter is the transmission parameter of the device of the second network, and the first network and the second network are the transmission delay Two different communication networks; the transmission module is configured to respond to the service data sent by the device of the first network and transmit the service data in the second network according to the transmission parameters to be used.
本申请提供一种业务数据的传输设备,业务数据的传输设备为第一网络中的设备,其包括:第一发送模块,被配置为向第二网络的设备发送第一传输参数,以供第二网络的设备依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,第一网络和第二网络为传输时延不同的两个通信网络,第二传输参数为第二网络的设备的传输参数;第二发送模块,被配置为向第二网络的设备发送业务数据,以使第二网络的设备依据待使用传输参数在第二网络中传输业务数据。The present application provides a service data transmission device. The service data transmission device is a device in a first network. It includes: a first sending module configured to send a first transmission parameter to a device in a second network for the third time. The equipment of the second network adjusts the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameters to be used, where the first network and the second network are two communication networks with different transmission delays. The second transmission parameter is a transmission parameter of the device of the second network; the second sending module is configured to send service data to the device of the second network, so that the device of the second network transmits in the second network according to the transmission parameters to be used. business data.
本申请提供一种电子设备,包括:一个或多个处理器;存储器,其上存储有一个或多个计算机程序,一个或多个计算机程序被一个或多个处理器执行,使得一个或多个处理器实现本申请实施例中的任意一种业务数据的传输方法。The present application provides an electronic device, including: one or more processors; a memory on which one or more computer programs are stored, and the one or more computer programs are executed by one or more processors, so that one or more The processor implements any service data transmission method in the embodiments of this application.
本申请提供了一种计算机可读存储介质,该计算机可读存储介
质存储有计算机程序,计算机程序被处理器执行以实现本申请实施例中的任意一种业务数据的传输方法。This application provides a computer-readable storage medium. The computer-readable storage medium The computer program is stored in the mass, and the computer program is executed by the processor to implement any one of the service data transmission methods in the embodiments of the present application.
关于本申请的以上和其他方面以及其实现方式,在附图说明、具体实施方式和权利要求中提供更多说明。Regarding the above and other aspects of the application and the manner in which it may be implemented, further description is provided in the description of the drawings, the detailed description and the claims.
图1示出本申请实施例提供的不同设备之间进行业务数据的传输的示意图。Figure 1 shows a schematic diagram of service data transmission between different devices provided by an embodiment of the present application.
图2示出本申请一实施例提供的业务数据的传输方法的流程示意图。FIG. 2 shows a schematic flowchart of a service data transmission method provided by an embodiment of the present application.
图3示出本申请实施例提供的第一网络中的缓存数据队列进行业务数据的传输的示意图。FIG. 3 shows a schematic diagram of service data transmission by a buffered data queue in the first network provided by an embodiment of the present application.
图4示出本申请实施例提供的第二网络中的设备之间进行业务数据的传输的示意图。Figure 4 shows a schematic diagram of service data transmission between devices in the second network provided by an embodiment of the present application.
图5示出本申请实施例提供的第二网络中的节点配置信息的生成方法的流程示意图。FIG. 5 shows a schematic flowchart of a method for generating node configuration information in a second network provided by an embodiment of the present application.
图6示出本申请实施例提供的第一网络的尾节点设备与第二网络的首节点设备之间的业务数据的传输示意图。Figure 6 shows a schematic diagram of service data transmission between the tail node device of the first network and the head node device of the second network provided by the embodiment of the present application.
图7示出本申请又一实施例提供的业务数据的传输方法的流程示意图。Figure 7 shows a schematic flowchart of a service data transmission method provided by yet another embodiment of the present application.
图8示出本申请一实施例提供的第一网络与第二网络之间的业务数据的转发流程示意图。Figure 8 shows a schematic flow chart of forwarding service data between the first network and the second network provided by an embodiment of the present application.
图9示出本申请又一实施例提供的第一网络与第二网络之间的业务数据的转发流程示意图。Figure 9 shows a schematic flow chart of forwarding service data between the first network and the second network provided by yet another embodiment of the present application.
图10示出本申请一实施例提供的业务数据的传输设备的组成方框图。Figure 10 shows a block diagram of a service data transmission device provided by an embodiment of the present application.
图11示出本申请又一实施例提供的业务数据的传输设备的组成方框图。Figure 11 shows a block diagram of a service data transmission device provided by yet another embodiment of the present application.
图12示出能够实现根据本申请实施例的业务数据的传输方法和装置的计算设备的示例性硬件架构的结构图。
FIG. 12 shows a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the business data transmission method and apparatus according to embodiments of the present application.
为使本申请的目的、技术方案和优点更加清楚明白,下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solutions and advantages of the present application more clear, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, as long as there is no conflict, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other.
传统的以太网技术是基于尽力而为的方式向终端传输业务数据,但该方式易增加业务数据的传输时延和抖动。随着以太网技术在工业领域和车联网领域中的使用,业务数据的传输时延需要得到更精准的控制,才能满足不同终端的使用需求。Traditional Ethernet technology is based on a best-effort approach to transmitting business data to terminals, but this approach tends to increase the transmission delay and jitter of business data. With the use of Ethernet technology in the industrial field and the Internet of Vehicles, the transmission delay of business data needs to be more accurately controlled to meet the needs of different terminals.
图1示出本申请实施例提供的不同设备之间进行业务数据的传输的示意图。如图1所示,业务数据由第一设备110传输给第二设备120,再经过第三设备130传输至第四设备140,从而完成业务数据在不同设备之间的传输。Figure 1 shows a schematic diagram of service data transmission between different devices provided by an embodiment of the present application. As shown in Figure 1, service data is transmitted from the first device 110 to the second device 120, and then to the fourth device 140 through the third device 130, thereby completing the transmission of service data between different devices.
当某台设备(如,第二设备120)在处理业务数据时,业务数据需要依次通过查表模块121、限速模块122、入队模块123、缓存模块124和调度模块125的处理,第二设备120才能对业务数据处理完毕。When a certain device (for example, the second device 120) is processing service data, the service data needs to be processed by the table lookup module 121, the speed limit module 122, the queue entry module 123, the cache module 124 and the scheduling module 125 in sequence. The device 120 can finish processing the business data.
并且,各个设备在处理业务数据时,都需要经过上述各个模块(如,查表模块121、限速模块122、入队模块123、缓存模块124和调度模块125),而每个设备由于获得业务数据的时间不同,其内部各个模块的处理时长也不同,从而无法具体确定业务数据在各个设备中的延迟时间的长短。Moreover, when each device processes business data, it needs to go through the above-mentioned modules (such as table lookup module 121, speed limit module 122, queue entry module 123, cache module 124, and scheduling module 125). The time of data is different, and the processing time of each internal module is also different, so it is impossible to specifically determine the length of delay time of business data in each device.
在一些网络系统中,例如,某工业园区中的基于自动化生产设备构造的网络、车联网系统对应的网络等,都会采用以太网技术来代替原有的总线型网络,以支持更高的数据传输速率。但是,随着智能电网、远程手术技术、远程工业控制技术等时间敏感型的应用业务,在将某局域网内的数据传输至其他属地的局域网时,都需要广域网进行数据的转发,而在广域网中,是采用网际互连协议(Internet Protocol,IP)构建的网络,在广域网中的网络带宽通常在10G比特每秒(bit per second,bps)以上,网络横跨几百公里,传输时延
很大,无法像局域网那样实现网络中的各个设备的时间同步性。因此,若采用局域网和广域网进行共同组网,则难以实现端到端的综合调度,无法满足不同物理区域之间的工厂网路的信息互联、远程工控等跨域的要求传输时延的精度可控的确定性应用的需求。In some network systems, such as networks based on automated production equipment in an industrial park and networks corresponding to Internet of Vehicles systems, Ethernet technology will be used to replace the original bus network to support higher data transmission. rate. However, with time-sensitive application services such as smart grids, remote surgery technology, and remote industrial control technology, when data in a certain local area network is transmitted to other local area networks, a wide area network is required for data forwarding, and in a wide area network , is a network built using the Internet Protocol (IP). The network bandwidth in the wide area network is usually above 10G bits per second (bps). The network spans hundreds of kilometers and the transmission delay is It is very large and cannot achieve time synchronization of various devices in the network like a local area network. Therefore, if local area networks and wide area networks are used for joint networking, it will be difficult to achieve end-to-end comprehensive scheduling and cannot meet cross-domain requirements such as information interconnection and remote industrial control of factory networks between different physical areas. Accurate and controllable transmission delays deterministic application requirements.
本申请实施例提供一种业务数据的传输方法和设备、电子设备和存储介质,用以解决上述问题。Embodiments of the present application provide a service data transmission method and device, an electronic device, and a storage medium to solve the above problems.
图2示出本申请一实施例提供的业务数据的传输方法的流程示意图。该业务数据的传输方法可应用于业务数据的传输设备。FIG. 2 shows a schematic flowchart of a service data transmission method provided by an embodiment of the present application. The service data transmission method can be applied to service data transmission equipment.
如图2所示,本申请实施例中的业务数据的传输方法包括但不限于以下步骤S120至S220。As shown in Figure 2, the service data transmission method in the embodiment of the present application includes but is not limited to the following steps S120 to S220.
在步骤S210中,依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数。In step S210, the second transmission parameter is adjusted according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameter to be used.
第一传输参数为第一网络的设备发送的参数,第二传输参数为第二网络的设备的传输参数,第一网络和第二网络为传输时延不同的两个通信网络。预设的参数映射关系是依据第一传输参数和第二网络的设备的第二传输参数确定的映射关系。例如,将第一网络的第一传输带宽与第二网络的第二传输带宽之间的比例关系,作为该参数映射关系,或,将第一网络的第一传输时延与第二网络的第二传输时延之间的比例关系,作为该参数映射关系,从而方便基于不同的参数映射关系对第二网络中对应的传输参数进行调整,以获得待使用传输参数。The first transmission parameter is a parameter sent by a device of the first network, the second transmission parameter is a transmission parameter of a device of the second network, and the first network and the second network are two communication networks with different transmission delays. The preset parameter mapping relationship is a mapping relationship determined based on the first transmission parameter and the second transmission parameter of the device of the second network. For example, the proportional relationship between the first transmission bandwidth of the first network and the second transmission bandwidth of the second network is used as the parameter mapping relationship, or the first transmission delay of the first network and the third transmission bandwidth of the second network are used as the parameter mapping relationship. The proportional relationship between the two transmission delays serves as the parameter mapping relationship, thereby facilitating adjustment of the corresponding transmission parameters in the second network based on different parameter mapping relationships to obtain the transmission parameters to be used.
在一些实施方式中,上述第一网络可以为局域网,第一网络的设备可以为节点设备,第一传输参数可以为第一传输周期和第一传输带宽等;第二网络可以为广域网,第二网络的设备可以为广域网中的服务器或节点设备等,第二传输参数可以为广域网中使用的第二传输周期和第二传输带宽等。In some embodiments, the above-mentioned first network may be a local area network, the device of the first network may be a node device, and the first transmission parameter may be a first transmission period, a first transmission bandwidth, etc.; the second network may be a wide area network, and the second network may be a wide area network. The device of the network may be a server or node device in the wide area network, etc., and the second transmission parameter may be the second transmission cycle and the second transmission bandwidth used in the wide area network, etc.
例如,参数映射关系可以包括:周期映射关系和/或带宽映射关系,周期映射关系为局域网的传输周期与广域网的传输周期之间的映射关系,带宽映射关系为局域网的传输带宽与广域网的传输带宽之间的映射关系。For example, the parameter mapping relationship may include: a cycle mapping relationship and/or a bandwidth mapping relationship. The cycle mapping relationship is the mapping relationship between the transmission cycle of the local area network and the transmission cycle of the wide area network. The bandwidth mapping relationship is the transmission bandwidth of the local area network and the transmission bandwidth of the wide area network. the mapping relationship between them.
在步骤S220中,响应于第一网络的设备发送的业务数据,依据
待使用传输参数在第二网络中传输业务数据。In step S220, in response to the service data sent by the device of the first network, according to The transmission parameters are to be used to transmit service data in the second network.
在本实施例中,通过依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,以使待使用传输参数能够与第一传输参数相匹配,提升数据在第二网络中的传输时延的可控性;从而在接收到第一网络的设备发送的业务数据后,能够依据待使用传输参数在第二网络中传输业务数据,以实现跨域的、且传输时延可控的数据传输,满足时间精度高的工业需求,促进工业领域的发展。In this embodiment, the transmission parameters to be used are obtained by adjusting the second transmission parameters according to the first transmission parameters and the preset parameter mapping relationship, so that the transmission parameters to be used can match the first transmission parameters, thereby improving data The transmission delay in the second network is controllable; thus, after receiving the service data sent by the device of the first network, the service data can be transmitted in the second network according to the transmission parameters to be used to achieve cross-domain, Data transmission with controllable transmission delay meets the industrial needs of high time accuracy and promotes the development of the industrial field.
在一些实施方式中,第一网络的设备包括尾节点设备和多个第一设备,第二网络的设备包括首节点设备和多个第二设备,尾节点设备与首节点设备通信连接。In some embodiments, the devices of the first network include a tail node device and a plurality of first devices, the devices of the second network include a head node device and a plurality of second devices, and the tail node device is communicatively connected with the head node device.
多个第一设备之间、以及尾节点设备与首节点设备之间均采用时间同步机制进行通信。A time synchronization mechanism is used for communication between multiple first devices and between the tail node device and the first node device.
例如,图3示出本申请实施例提供的第一网络中的缓存数据队列进行业务数据的传输的示意图。如图3所示,第一网络的设备包括:设备A、设备B、设备C和设备D。业务数据在传输的过程中,经由设备A传输给设备B,再经过设备C传输至设备D,从而完成业务数据在不同设备之间的传输。For example, FIG. 3 shows a schematic diagram of the cache data queue in the first network transmitting service data provided by an embodiment of the present application. As shown in Figure 3, the devices of the first network include: device A, device B, device C and device D. During the transmission process, business data is transmitted to device B via device A, and then to device D via device C, thus completing the transmission of business data between different devices.
可以将设备D作为尾节点设备,将设备A、设备B和设备C作为第一网络中的第一设备,设备A、设备B、设备C和设备D之间采用时间同步机制进行通信。Device D can be used as the tail node device, device A, device B, and device C can be used as the first device in the first network, and device A, device B, device C, and device D communicate using a time synchronization mechanism.
通过时间同步机制的通信方式,能够使第一网络中的各个设备进行时间同步,减少不同设备之间的数据传输时延,保证数据的能够准确快速的在不同的设备之间进行传输。Through the communication method of the time synchronization mechanism, each device in the first network can be time synchronized, reducing the data transmission delay between different devices, and ensuring that data can be accurately and quickly transmitted between different devices.
需要说明的是,每个第一设备具有两个缓存数据队列,两个缓存数据队列的入队门控的工作状态互斥,两个缓存数据队列的出队门控的工作状态互斥,每个缓存数据队列的入队门控的工作状态和出队门控的工作状态互斥,该工作状态包括打开状态或关闭状态。It should be noted that each first device has two cache data queues, the working states of the entry gate control of the two cache data queues are mutually exclusive, and the working states of the dequeue gate control of the two cache data queues are mutually exclusive. The working status of the enqueuing gate and the working status of the dequeuing gate of a cache data queue are mutually exclusive, and the working status includes an open state or a closed state.
例如,缓存数据队列可以是如图3所示的队列1和队列2。其中,队列1和队列2均可以设置在每个设备的输出端口处。
For example, the cache data queues may be queue 1 and queue 2 as shown in Figure 3. Among them, both queue 1 and queue 2 can be set at the output port of each device.
在队列1和队列2进行数据传输时,可以将传输时间划分为多个相等的时间间隔,每个时间间隔可作为一个时间周期T(即预设传输周期),该时间周期T包括:偶数周期T0和奇数周期T1。When queue 1 and queue 2 perform data transmission, the transmission time can be divided into multiple equal time intervals. Each time interval can be used as a time period T (that is, the preset transmission period). The time period T includes: even periods T0 and odd period T1.
如图3所示,在偶数周期T0内,队列1的入队门控的状态为“开”(即打开状态),队列2的入队门控的状态为“关”(即关闭状态),队列1的出队门控的状态为“关”(即关闭状态),队列2的出队门控的状态为“开”(即打开状态)。As shown in Figure 3, in the even-numbered period T0, the status of the queue entry gate control of queue 1 is "on" (that is, the open state), and the status of the queue entry gate control of queue 2 is "off" (that is, the closed state). The status of the dequeue gate of queue 1 is "off" (ie, closed state), and the status of the dequeue gate of queue 2 is "on" (ie, open state).
在奇数周期T1内,队列1的入队门控的状态为“关”(即关闭状态),队列2的入队门控的状态为“开”(即打开状态);队列1的出队门控的状态为“开”(即打开状态),队列2的出队门控的状态为“关”(即关闭状态)。In the odd period T1, the status of the entry gate of queue 1 is "off" (i.e. closed state), the status of the entry gate of queue 2 is "open" (i.e. open state); the status of queue 1's exit gate The status of the gate control is "on" (that is, the open status), and the status of the dequeue gate control of queue 2 is "off" (that is, the closed status).
通过上述设置,能够使两个缓存数据队列在任何时刻进行数据报文的传输,即一个缓存数据队列(如,队列1)用于接收数据报文,另外一个缓存数据队列(如,队列2)用于发送数据报文,提升数据报文的传输效率。Through the above settings, two cached data queues can be used to transmit data packets at any time, that is, one cached data queue (for example, queue 1) is used to receive data packets, and the other cached data queue (for example, queue 2) Used to send data packets to improve the transmission efficiency of data packets.
在确定入队门控的状态为打开状态的情况下,缓存数据队列用于存储业务数据;在确定出队门控的状态为打开状态的情况下,缓存数据队列用于输出业务数据;在预设传输周期内,入队门控的工作状态和出队门控的工作状态均保持不变。When it is determined that the status of the enqueue gate is open, the cache data queue is used to store business data; when it is determined that the status of the dequeue gate is open, the cache data queue is used to output business data; in advance It is assumed that during the transmission period, the working status of the in-queue gate and the working status of the out-queue gate remain unchanged.
需要说明的是,当一个预设传输周期结束,并进入下一个预设传输周期(如偶数周期T0结束,并进入到奇数周期T1)时,此时会对入队门控和出队门控的状态进行切换(如,将原来处于关闭状态的门控切换为打开状态;将原来处于打开状态的门控切换为关闭状态),从而使两个缓存数据队列能够交替执行入队操作和出队操作,以使在一个预设传输周期内,将上游节点设备发送的数据报文发送给下游节点设备,并使下游节点设备在同一个预设传输周期内接收到该数据报文,并将该数据报文转发出去。It should be noted that when a preset transmission cycle ends and enters the next preset transmission cycle (for example, the even-numbered period T0 ends and the odd-numbered period T1 is entered), the entry gate and the exit gate will be controlled at this time. Switch the state (for example, switch the gate that was originally in the closed state to the open state; switch the gate that was originally in the open state to the closed state), so that the two cache data queues can alternately perform enqueue operations and dequeue operations. Operation, so that the data message sent by the upstream node device is sent to the downstream node device within a preset transmission period, and the downstream node device receives the data message within the same preset transmission period and sends the data message to the downstream node device. The data packet is forwarded.
第一网络中的多个设备之间,都是时间同步的,能够严格的对各个设备的传输时间进行控制,以使每个设备都在固定的时间周期内进行数据的发送或转发,并且,每个设备都会延迟一个时间周期,再
将接收到的数据报文转发出去。Multiple devices in the first network are all time synchronized, and the transmission time of each device can be strictly controlled so that each device can send or forward data within a fixed time period, and, Each device will delay for a time period, and then Forward the received data packets.
数据报文在第一网络上的端到端的时间延迟大小,仅取决于预设时间周期T的大小和第一网络中传输该数据报文的设备数量H。因此,数据报文在第一网络中从源设备到宿设备之间进行传输的总延迟时间的取值范围为:{(H-1)*T,(H+1)*T}。The end-to-end time delay of the data packet on the first network only depends on the size of the preset time period T and the number H of devices transmitting the data packet in the first network. Therefore, the value range of the total delay time for the data packet to be transmitted from the source device to the sink device in the first network is: {(H-1)*T, (H+1)*T}.
其中,H为大于或等于1,且小于预设数量的整数;T为大于0的实数。预设数量为满足预设间隔距离(如,5米或8米等)的设备的数量。第一网络的覆盖范围较小,例如,第一网络可以是局域网或城域网等。Among them, H is an integer greater than or equal to 1 and less than the preset number; T is a real number greater than 0. The preset quantity is the number of devices that meet the preset separation distance (eg, 5 meters or 8 meters, etc.). The first network has a smaller coverage area. For example, the first network may be a local area network or a metropolitan area network.
(H-1)*T表示:数据报文在源设备位于时间周期T的结束位置上发送,在宿设备中在时间周期T的起始位置转发输出;(H-1)*T means: the data message is sent by the source device at the end of time period T, and is forwarded and output by the sink device at the beginning of time period T;
(H+1)*T表示:数据报文在源设备上位于时间周期T的起始位置上发送,但在宿设备中在时间周期T的结束位置转发输出。(H+1)*T means: the data packet is sent at the beginning of the time period T on the source device, but is forwarded and output by the sink device at the end of the time period T.
通过在预设传输周期内,入队门控的工作状态和出队门控的工作状态均保持不变,并定时对门控的工作状态进行切换,以使第一网络中的设备之间可以实现确定性的传输时延的数据发送,能够满足第一网络中的各个设备之间的有界限的传输时延抖动需求。During the preset transmission period, the working status of the in-queuing gate control and the working status of the out-queuing gate control remain unchanged, and the working status of the gate control is switched regularly, so that the devices in the first network can realize Data transmission with deterministic transmission delay can meet the bounded transmission delay jitter requirements between various devices in the first network.
在一些实施方式中,通过将时间敏感网络(Time-Sensitive Network,TSN)技术应用于第一网络中,能够实现业务数据的确定性传输。TSN技术的工作原理适用于配置全局调度时间表的方式,通过固定时间片的调度方式,对业务数据进行传输,能够减少网络拥塞和因数据传输队列的排队延迟带来的不确定性。In some implementations, by applying Time-Sensitive Network (TSN) technology to the first network, deterministic transmission of service data can be achieved. The working principle of TSN technology is suitable for configuring the global scheduling schedule. Transmitting business data through fixed time slice scheduling can reduce network congestion and uncertainty caused by queuing delays in data transmission queues.
需要说明的是,第一网络中的所有设备之间的距离有限制,第一网络的组网方式仅适用于小范围内的组网(例如,局域网或城域网等),才能实现第一网络中的所有设备之间的时间同步,即,发送设备在某个预设传输周期内发送某业务数据给接收设备,则该接收设备也能够在该预设传输周期内接收到该业务数据,从而实现发送设备和接收设备之间能够进行时间同步性的确定性的业务数据传输。It should be noted that the distance between all devices in the first network is limited, and the networking method of the first network is only suitable for small-scale networking (for example, local area network or metropolitan area network, etc.), so that the first network can be realized. Time synchronization between all devices in the network, that is, if the sending device sends certain service data to the receiving device within a certain preset transmission period, the receiving device can also receive the service data within the preset transmission period, This enables deterministic service data transmission with time synchronization between the sending device and the receiving device.
图4示出本申请实施例提供的第二网络中的设备之间进行业务数据的传输的示意图。如图4所示,第二网络的设备包括:设备D、
设备E和设备F。例如,可将设备D设置为第二网络中的首节点设备,将设备E和设备F设置为第二网络中的第二设备。该第二网络可以是广域网。Figure 4 shows a schematic diagram of service data transmission between devices in the second network provided by an embodiment of the present application. As shown in Figure 4, the devices of the second network include: device D, Device E and Device F. For example, device D can be set as the head node device in the second network, and device E and device F can be set as second devices in the second network. The second network may be a wide area network.
多个第二设备之间、以及首节点设备和第二设备之间均采用时钟频率同步机制进行通信;并且,多个第二设备的传输周期的起始时刻和终止时刻均不相同,但每个第二设备的传输周期的时长相同,并且,多个第二设备的传输周期的切换频率相同;每个第二设备具有多个缓存数据队列,缓存数据队列用于存储接收到的上一级网络设备发送的业务数据,每个缓存数据队列对应一个传输周期,多个缓存数据队列之间基于轮询的方式确定缓存数据队列的工作状态。A clock frequency synchronization mechanism is used for communication between multiple second devices, as well as between the first node device and the second device; and, the start time and end time of the transmission cycle of multiple second devices are different, but each time The transmission cycles of two second devices have the same length, and the switching frequency of the transmission cycles of multiple second devices is the same; each second device has multiple cache data queues, and the cache data queues are used to store the received upper-level data. For business data sent by network equipment, each cached data queue corresponds to a transmission cycle, and the working status of the cached data queues is determined based on polling between multiple cached data queues.
如图4所示,业务数据在进行传输的过程中,需要经过设备D,传输给设备E,并由设备E转发给设备F。As shown in Figure 4, during the transmission process, service data needs to pass through device D, be transmitted to device E, and be forwarded by device E to device F.
需要说明的是,虽然各个第二设备的传输周期的起始时刻和终止时刻均不相同,但在时钟频率相同的情况下,每个第二设备中的传输周期的切换频率相同,单位时间内切换传输周期的次数相同,且切换频度也相同。在每个第二设备中可设置多个缓存数据队列,根据数据报文所携带的时间标签值(如,图4中所示的“标签1、标签2和标签3”等)决定将数据报文进入哪个缓存数据队列中进行缓存。It should be noted that although the start time and end time of the transmission cycle of each second device are different, when the clock frequency is the same, the switching frequency of the transmission cycle in each second device is the same. The number of switching transmission cycles is the same, and the frequency of switching is also the same. Multiple cache data queues can be set up in each second device, and the data packets are determined according to the time tag value carried by the data packet (such as "tag 1, tag 2 and tag 3" shown in Figure 4). Which cache data queue the document enters for caching.
通过轮询的方式确定缓存数据队列的工作状态,能够使每个第二设备(例如,设备D或设备E或设备F等)中的所有缓存数据队列轮流地更换工作状态,提升缓存数据队列的工作效率。By determining the working status of the cached data queue in a polling manner, all cached data queues in each second device (for example, device D or device E or device F, etc.) can change the working status in turn, improving the performance of the cached data queue. Work efficiency.
在一些实施方式中,缓存数据队列的工作状态包括:发送状态或接收状态;在预设时段内,每个第二设备的多个缓存数据队列中仅有一个缓存数据队列的工作状态为发送状态,其他缓存数据队列的工作状态为接收状态。In some embodiments, the working status of the cached data queue includes: sending status or receiving status; within a preset period, the working status of only one cached data queue among the multiple cached data queues of each second device is the sending status. , the working status of other cached data queues is receiving status.
通过对多个缓存数据队列中的每个队列的工作状态的周期性变更,能够提升每个缓存数据队列的使用效率,提升业务数据的传输速度,使业务数据能够快速的传输到下一跳节点设备。By periodically changing the working status of each queue in multiple cache data queues, the usage efficiency of each cache data queue can be improved, the transmission speed of business data can be improved, and the business data can be quickly transmitted to the next hop node. equipment.
需要说明的是,第二网络中的各个设备还可以根据业务数据的服务需求,提前规划好业务数据报文的传输路径、时延、带宽和队列
资源等,通过确定传输时间的周期参数,生成每个设备的转发周期标签(如图4所示的标签1、标签2和标签3等),并将转发周期标签分发给第二网络中的各个设备,以加快业务数据的传输。It should be noted that each device in the second network can also plan the transmission path, delay, bandwidth and queue of the business data packets in advance according to the service requirements of the business data. resources, etc., by determining the cycle parameters of the transmission time, generating a forwarding cycle label for each device (label 1, label 2, label 3, etc. as shown in Figure 4), and distributing the forwarding cycle label to each device in the second network equipment to speed up the transmission of business data.
例如,如图4所示,标签1、标签2和标签3用于表征业务数据在进行传输的过程中所经过的节点设备的标识以及对应的接收该业务数据的缓存数据队列。For example, as shown in Figure 4, tag 1, tag 2 and tag 3 are used to represent the identification of the node device through which the service data is transmitted and the corresponding cache data queue that receives the service data.
设备D在进行业务数据的传输时,需要将标签1、标签2、标签3和报文封装为一条第一消息,然后通过第一发送队列412将该第一消息发送给设备E,标签1表示该第一消息需要由设备E中的某个指定的缓存数据队列接收。第一发送队列412为第一接收队列集合411中的某个接收该业务数据的队列,此时该队列的工作状态为发送状态。When device D transmits service data, it needs to encapsulate tag 1, tag 2, tag 3 and the message into a first message, and then send the first message to device E through the first sending queue 412. Tag 1 represents The first message needs to be received by a specified cache data queue in device E. The first sending queue 412 is a queue in the first receiving queue set 411 that receives the service data. At this time, the working state of the queue is the sending state.
当设备E接收到该第一消息时,通过识别标签1,确定需要将该第一消息存储在自己的缓存数据队列(例如,第二接收队列集合421中的队列2等)中,并将标签1去除掉,然后将标签2、标签3和报文封装为一条第二消息;当第二接收队列集合421中的队列2的工作状态为发送状态(即第二接收队列集合421中的队列2变更为第二发送队列422)时,通过第二发送队列422将该第二消息转发给设备F,标签2用于表示该第二消息需要由设备F中的某个指定的缓存数据队列接收。When device E receives the first message, by identifying tag 1, it determines that the first message needs to be stored in its own cache data queue (for example, queue 2 in the second receiving queue set 421, etc.), and sets the tag 1 is removed, and then label 2, label 3 and the message are encapsulated into a second message; when the working state of queue 2 in the second receiving queue set 421 is the sending state (that is, queue 2 in the second receiving queue set 421 When changing to the second sending queue 422), the second message is forwarded to device F through the second sending queue 422. Label 2 is used to indicate that the second message needs to be received by a specified cache data queue in device F.
当设备F接收到该第二消息时,通过识别标签2,确定需要将该第二消息存储在自己的缓存数据队列(例如,第三接收队列集合431中的队列3等)中,并将标签2去除掉,然后将标签3和报文封装为一条第三消息;当第三接收队列集合431中的队列3的工作状态为发送状态(即,第三接收队列集合431中的队列3变更为第三发送队列432)时,通过第三发送队列432将该第三消息转发出去,以供下一跳节点设备接收,标签3用于表示该第三消息需要由设备F中的某个指定的缓存数据队列(例如,队列4)接收。When device F receives the second message, by identifying tag 2, it determines that the second message needs to be stored in its own cache data queue (for example, queue 3 in the third receiving queue set 431, etc.), and sets the tag 2 is removed, and then label 3 and the message are encapsulated into a third message; when the working state of queue 3 in the third receiving queue set 431 is the sending state (that is, queue 3 in the third receiving queue set 431 changes to When the third sending queue 432 is configured, the third message is forwarded through the third sending queue 432 for reception by the next hop node device. The label 3 is used to indicate that the third message needs to be sent by a specified device F. Buffered data queue (for example, queue 4) receives.
通过上述缓存数据队列的工作状态的变更,以及对应的标签的标识,能够使每个设备都在固定的时间周期内进行业务数据的转发,以实现端到端的固定时延的业务数据的传输。
By changing the working status of the cached data queue and identifying the corresponding tags, each device can forward service data within a fixed time period to achieve end-to-end fixed-delay service data transmission.
第二网络中的所有设备的时钟频率是同步的,且所有设备的时间变换周期相同,缓存数据队列的工作状态的切换速度也相同,并且,第二网络中的设备对应的所有缓存数据队列的接收状态和发送状态都是按照的固定频率变化的,业务数据报文通过第二网络中的各个设备的转发,能够实现转发延迟时间可控,即业务数据报文从第二网络中的源节点设备传输到宿节点设备的传输过程,是端到端的确定性时延的数据转发过程。The clock frequencies of all devices in the second network are synchronized, and the time conversion cycles of all devices are the same. The switching speeds of the working states of the cached data queues are also the same, and the clock frequencies of all cached data queues corresponding to the devices in the second network are also the same. Both the receiving state and the sending state change according to a fixed frequency. The service data message is forwarded through each device in the second network, and the forwarding delay time can be controlled. That is, the service data message is forwarded from the source node in the second network. The transmission process from the device to the sink node device is a data forwarding process with end-to-end deterministic delay.
在一些实施方式中,预设的参数映射关系包括:周期映射关系和带宽映射关系,第一传输参数包括第一传输周期和/或第一传输带宽,第二传输参数包括第二传输周期和/或第二传输带宽。In some embodiments, the preset parameter mapping relationship includes: period mapping relationship and bandwidth mapping relationship, the first transmission parameter includes the first transmission period and/or the first transmission bandwidth, the second transmission parameter includes the second transmission period and/or or second transmission bandwidth.
在步骤S210中的依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数之前,还包括:In step S210, before adjusting the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameter to be used, it also includes:
依据第一传输周期和第二传输周期,确定周期映射关系;和/或,依据第一传输带宽和第二传输带宽,确定带宽映射关系。The cycle mapping relationship is determined based on the first transmission cycle and the second transmission cycle; and/or the bandwidth mapping relationship is determined based on the first transmission bandwidth and the second transmission bandwidth.
周期映射关系可以采用周期折算因子表示。例如,基于第一传输周期和第二传输周期之间的比例关系,确定周期映射关系,该周期映射关系可以包括周期折算因子,例如,周期折算因子c=第一传输周期/第二传输周期。The period mapping relationship can be expressed by period conversion factors. For example, the cycle mapping relationship is determined based on the proportional relationship between the first transmission cycle and the second transmission cycle. The cycle mapping relationship may include a cycle conversion factor, for example, cycle conversion factor c = first transmission cycle/second transmission cycle.
带宽映射关系可以采用带宽折算因子表示,例如,基于第一传输带宽和第二传输带宽之间的比例关系,确定带宽映射关系。该带宽映射关系可以包括带宽折算因子,例如,带宽折算因子b=第一传输带宽/第二传输带宽。The bandwidth mapping relationship can be represented by a bandwidth conversion factor. For example, the bandwidth mapping relationship is determined based on the proportional relationship between the first transmission bandwidth and the second transmission bandwidth. The bandwidth mapping relationship may include a bandwidth conversion factor, for example, bandwidth conversion factor b=first transmission bandwidth/second transmission bandwidth.
需要说明的是,在确定预设的参数映射关系时,可以只确定周期映射关系,也可以只确定带宽映射关系,还可以将两种映射关系同时进行计算,以满足不同应用场景下的测试需求。It should be noted that when determining the preset parameter mapping relationship, only the period mapping relationship can be determined, or only the bandwidth mapping relationship can be determined, or both mapping relationships can be calculated simultaneously to meet the testing needs in different application scenarios. .
通过上述周期映射关系和/或带宽映射关系,能够真实反映第一网络和第二网络之间的带宽差异和传输周期的差异,能够使第二网络的设备可以基于上述差异,及时调整第二网络中各个设备的传输周期和传输带宽,提升对业务数据的传输效率。Through the above-mentioned period mapping relationship and/or bandwidth mapping relationship, the bandwidth difference and the transmission period difference between the first network and the second network can be truly reflected, and the equipment of the second network can timely adjust the second network based on the above-mentioned difference. The transmission cycle and transmission bandwidth of each device are improved to improve the transmission efficiency of business data.
在一些实施方式中,依据第一传输参数和预设的参数映射关系
对第二传输参数进行调整,获得待使用传输参数,包括:依据周期映射关系确定预留的时域资源,依据预留的时域资源和第一传输周期调整第二传输周期,获得待使用传输周期;和/或,依据带宽映射关系确定预留的带宽资源,依据预留的带宽资源和第一传输带宽调整第二传输带宽,获得待使用传输带宽。In some implementations, according to the first transmission parameter and the preset parameter mapping relationship Adjust the second transmission parameters to obtain the transmission parameters to be used, including: determining the reserved time domain resources according to the period mapping relationship, adjusting the second transmission period according to the reserved time domain resources and the first transmission period, and obtaining the transmission parameters to be used. period; and/or, determine the reserved bandwidth resources according to the bandwidth mapping relationship, adjust the second transmission bandwidth according to the reserved bandwidth resources and the first transmission bandwidth, and obtain the transmission bandwidth to be used.
预留的时域资源可以包括:时间片长度,或预留的与周期映射关系相对应的传输周期的数量等。预留的带宽资源可以包括:预留的与带宽映射关系相对应的带宽长度等。The reserved time domain resources may include: time slice length, or the number of reserved transmission cycles corresponding to the cycle mapping relationship, etc. The reserved bandwidth resources may include: reserved bandwidth length corresponding to the bandwidth mapping relationship, etc.
例如,可以仅通过周期映射关系确定预留的时域资源,以使该预留的时域资源表征第一网络与第二网络之间的传输差异性,进而对第二传输周期进行调整,以获得待使用传输周期,从而使第二网络中的传输周期更适用于数据的传输。For example, the reserved time domain resources can be determined only through the periodic mapping relationship, so that the reserved time domain resources represent the transmission difference between the first network and the second network, and then the second transmission cycle can be adjusted to The transmission period to be used is obtained, so that the transmission period in the second network is more suitable for data transmission.
例如,还可以仅通过带宽映射关系确定预留的带宽资源,以使该预留的带宽资源表征第一网络与第二网络之间的带宽的差异性,进而通过预留的带宽资源和第一传输带宽调整第二传输带宽,以使获得的待使用传输带宽能够满足数据在第二网络中的传输需求,通过不同的传输带宽,使数据被传输的更快捷高效。For example, the reserved bandwidth resources can also be determined only through the bandwidth mapping relationship, so that the reserved bandwidth resources represent the difference in bandwidth between the first network and the second network, and then the reserved bandwidth resources and the first network can be determined based on the bandwidth mapping relationship. The transmission bandwidth adjusts the second transmission bandwidth so that the obtained transmission bandwidth to be used can meet the transmission requirements of data in the second network, and the data can be transmitted faster and more efficiently through different transmission bandwidths.
例如,还可以同时对第二传输周期和第二传输带宽进行调整,以使第二网络中的传输环境满足传输需求。通过基于预留的时域资源和第一传输周期,对第二传输周期进行调整,能够使获得的待使用传输周期更适用于第二网络中的网络环境,使第一网络和第二网络中的设备能够实现时间同步性。并且,基于预留的带宽资源和第一传输带宽,对第二传输带宽进行调整,以使获得的待使用传输带宽可以准确将第一网络的传输带宽和第二网络的传输带宽进行映射匹配,方便业务数据的传输,提升传输效率。For example, the second transmission cycle and the second transmission bandwidth can also be adjusted simultaneously so that the transmission environment in the second network meets the transmission requirements. By adjusting the second transmission period based on the reserved time domain resources and the first transmission period, the obtained transmission period to be used can be more suitable for the network environment in the second network, so that the first network and the second network can devices can achieve time synchronization. And, based on the reserved bandwidth resources and the first transmission bandwidth, the second transmission bandwidth is adjusted so that the obtained transmission bandwidth to be used can accurately map and match the transmission bandwidth of the first network and the transmission bandwidth of the second network, Facilitate the transmission of business data and improve transmission efficiency.
在一些实施方式中,第二网络的设备包括首节点设备;依据预留的带宽资源和第一传输带宽调整第二传输带宽,获得待使用传输带宽,包括:依据预留的带宽资源和第一传输带宽,调整首节点设备的第二传输带宽,获得首节点设备对应的待使用传输带宽。In some embodiments, the equipment of the second network includes the head node equipment; adjusting the second transmission bandwidth according to the reserved bandwidth resources and the first transmission bandwidth to obtain the transmission bandwidth to be used includes: according to the reserved bandwidth resources and the first transmission bandwidth Transmission bandwidth, adjust the second transmission bandwidth of the first node device, and obtain the transmission bandwidth corresponding to the first node device to be used.
首节点设备是与第一网络的尾节点设备相连接的设备。
The head node device is a device connected to the tail node device of the first network.
因第一网络和第二网络的传输带宽不同,例如,若第二网络的首节点设备的传输带宽为10Gbps,第一网络的传输带宽为1Gbps,则两种网络之间存在很大的带宽差异,易导致业务数据在传输的过程中出现丢包或数据错误等情况,因此,需要先对首节点设备进行传输带宽的调整,以使该首节点能够基于预留的带宽资源和第一传输带宽调整首节点设备的第二传输带宽,从而获得首节点设备对应的待使用传输带宽,以使该待使用传输带宽可以适应第二网络的传输要求。Because the transmission bandwidth of the first network and the second network are different, for example, if the transmission bandwidth of the first node device of the second network is 10Gbps and the transmission bandwidth of the first network is 1Gbps, there will be a big bandwidth difference between the two networks. , it is easy to cause packet loss or data errors during the transmission process of business data. Therefore, the transmission bandwidth of the first node device needs to be adjusted first so that the first node can use the reserved bandwidth resources and the first transmission bandwidth. Adjust the second transmission bandwidth of the first node device to obtain the transmission bandwidth to be used corresponding to the first node device, so that the transmission bandwidth to be used can adapt to the transmission requirements of the second network.
例如,若预留的带宽资源为b倍的硬切片带宽,则可确定待使用传输带宽为(1-b)倍的第二传输带宽。b为带宽折算因子。For example, if the reserved bandwidth resource is b times the hard slicing bandwidth, the transmission bandwidth to be used may be determined to be a second transmission bandwidth that is (1-b) times. b is the bandwidth conversion factor.
在一些实施方式中,第二网络的设备包括首节点设备和多个第二设备。In some implementations, the device of the second network includes a head node device and a plurality of second devices.
依据预留的时域资源和第一传输周期调整第二传输周期,获得待使用传输周期,包括:依据预留的时域资源和第一传输周期,确定首节点设备的传输周期标签;依据预设标签映射关系和首节点设备的传输周期标签,分别确定多个第二设备的传输周期标签;依据首节点设备的转发周期标签和多个第二设备的传输周期标签,确定待使用传输周期。Adjusting the second transmission cycle based on the reserved time domain resources and the first transmission cycle to obtain the transmission cycle to be used includes: determining the transmission cycle label of the head node device based on the reserved time domain resources and the first transmission cycle; Set the label mapping relationship and the transmission cycle label of the first node device to determine the transmission cycle labels of multiple second devices respectively; determine the transmission cycle to be used based on the forwarding cycle label of the first node device and the transmission cycle labels of multiple second devices.
预设标签映射关系用于表征首节点设备与其连接的第二设备之间的传输周期映射关系以及多个第二设备之间的传输周期映射关系。The preset label mapping relationship is used to characterize the transmission cycle mapping relationship between the head node device and its connected second device and the transmission cycle mapping relationship between multiple second devices.
首节点与其连接的第二设备之间的传输周期映射关系,可以通过预留的时域资源来表征,例如,预留的时域资源为c倍的第二传输周期,则可以确定首节点设备的待使用传输周期为(1-c)倍的第二传输周期,以使首节点设备能够与第一网络的尾节点设备实现时间上的同步。进一步地,基于该首节点设备的待使用传输周期,推算出其他第二设备的待使用传输周期。The transmission cycle mapping relationship between the first node and the second device connected to it can be characterized by the reserved time domain resources. For example, if the reserved time domain resources are c times the second transmission cycle, then the first node device can be determined The transmission period to be used is (1-c) times the second transmission period, so that the head node device can achieve time synchronization with the tail node device of the first network. Further, based on the transmission period to be used of the head node device, the transmission periods to be used of other second devices are calculated.
例如,第二传输周期为10ms,第一传输周期为1ms,预留的时域资源为(10*c)ms,则首节点设备的待使用传输周期为(1-c)*10ms,对应的,其他第二设备的待使用传输周期根据首节点设备的待使用传输周期和第二传输周期,依次向后推迟(10*c)ms。For example, if the second transmission period is 10ms, the first transmission period is 1ms, and the reserved time domain resources are (10*c)ms, then the transmission period to be used by the first node device is (1-c)*10ms, and the corresponding , the transmission periods to be used of other second devices are delayed by (10*c) ms in turn based on the transmission periods to be used and the second transmission period of the first node device.
通过上述确定的首节点设备的待使用传输周期和多个第二设备
待使用传输周期,对应的生成第二网络中的各个设备的传输周期标签,以使第二网络中的各个设备的传输周期标签能够表征各个设备需要进行数据传输的周期,以使各个设备能够基于确定性的时间对业务数据进行传输,减少传输延迟,使业务数据能够在第二网络中进行快速准确的传输。Through the transmission period to be used of the first node device determined above and multiple second devices The transmission cycle to be used corresponds to generating a transmission cycle label for each device in the second network, so that the transmission cycle label of each device in the second network can represent the period in which each device needs to transmit data, so that each device can be based on The business data is transmitted at a deterministic time, reducing the transmission delay, so that the business data can be transmitted quickly and accurately in the second network.
在一些实施方式中,业务数据包括至少两个业务数据报文;依据预留的时域资源和第一传输周期,确定首节点设备的传输周期标签,包括:在确定第一传输周期内需要传输至少两个业务数据报文的情况下,依据预留的时域资源,分别为至少两个业务数据报文分配对应的转发传输周期,获得至少两个转发传输周期的标识;依据至少两个转发传输周期的标识,确定首节点的传输周期标签。In some embodiments, the service data includes at least two service data messages; based on the reserved time domain resources and the first transmission cycle, determining the transmission cycle label of the head node device includes: determining that transmission is required within the first transmission cycle In the case of at least two service data messages, assign corresponding forwarding transmission periods to at least two service data messages according to the reserved time domain resources, and obtain the identification of at least two forwarding and transmission periods; according to at least two forwarding and transmission periods The identification of the transmission cycle determines the transmission cycle label of the first node.
依据预留的时域资源,分别为至少两个业务数据报文分配对应的转发传输周期,能够使至少两个业务数据报文能够分别在对应的转发传输周期内进行数据的传输,避免不同的业务数据之间的干扰,减少业务数据的传输错误比例,提升业务数据的传输效率。According to the reserved time domain resources, corresponding forwarding and transmission cycles are allocated to at least two service data packets, so that at least two service data packets can transmit data in the corresponding forwarding and transmission cycles respectively, avoiding different transmission cycles. Interference between business data reduces the transmission error ratio of business data and improves the transmission efficiency of business data.
需要说明的是,转发传输周期的标识能够表征不同的业务数据具体需要在哪个传输周期内进行传输,以使首节点设备可以合理分配传输周期资源,并确定首节点设备的传输周期标签。It should be noted that the identification of the forwarding transmission cycle can represent the specific transmission cycle in which different service data needs to be transmitted, so that the first node device can reasonably allocate transmission cycle resources and determine the transmission cycle label of the first node device.
在一些实施方式中,依据预留的时域资源和第一传输周期,确定首节点设备的传输周期标签,包括:依据预留的时域资源,为接收到的至少两个业务数据报文分配一个转发传输周期,获得首节点设备的传输周期标签。In some embodiments, determining the transmission cycle label of the head node device based on the reserved time domain resources and the first transmission cycle includes: allocating at least two received service data packets based on the reserved time domain resources. One forwarding transmission cycle, and the transmission cycle label of the head node device is obtained.
至少两个业务数据报文是依次在至少两个第一传输周期内接收到的报文。At least two service data packets are packets received sequentially within at least two first transmission cycles.
依据预留的时域资源为接收到的至少两个业务数据报文分配一个转发传输周期,能够节省时域资源,使更多的业务数据都能够被传输,提升业务数据的传输效率。Allocating a forwarding transmission cycle for at least two received business data packets based on reserved time domain resources can save time domain resources, enable more business data to be transmitted, and improve the transmission efficiency of business data.
在一些实施方式中,响应于第一网络的设备发送的业务数据,依据待使用传输参数在第二网络中传输业务数据,包括:首节点设备依据业务数据和第二设备的传输周期标签,构造传输消息;向与首节
点设备连接的第二设备发送传输消息,以使第二设备基于传输消息中的传输周期标签确定缓存数据队列标识,并将业务数据存储至缓存数据队列标识对应的缓存数据队列中;在确定缓存数据队列标识对应的缓存数据队列的工作状态为发送状态的情况下,将业务数据转发给其他的第二设备。In some embodiments, in response to the service data sent by the device of the first network, transmitting the service data in the second network according to the transmission parameters to be used includes: the first node device constructs according to the service data and the transmission cycle tag of the second device. transmit a message; to and from the first section The second device connected to the point device sends a transmission message, so that the second device determines the cache data queue identifier based on the transmission cycle tag in the transmission message, and stores the service data in the cache data queue corresponding to the cache data queue identifier; after determining the cache When the working state of the cached data queue corresponding to the data queue identifier is the sending state, the service data is forwarded to other second devices.
需要说明的是,每个第二设备中都包括多个缓存数据队列,且各个缓存数据队列的工作状态是轮询变化的,并且,在同一个传输周期内,仅有一个缓存数据队列的工作状态为发送状态,因此,当某个缓存数据队列的工作状态为接收状态时,可以接收其他节点设备(如首节点设备或其他第二设备等)发送的业务数据;当该缓存数据队列的工作状态为发送状态时,才会将其接收到的业务数据转发出去。It should be noted that each second device includes multiple cache data queues, and the working status of each cache data queue changes in a polling manner, and in the same transmission cycle, only one cache data queue is working. The status is the sending state. Therefore, when the working status of a cached data queue is the receiving state, it can receive business data sent by other node devices (such as the first node device or other second devices, etc.); when the working status of the cached data queue The received business data will only be forwarded when the status is in the sending state.
并且,第二设备的传输周期标签能够表征首节点设备发送的业务数据需要经过哪些第二设备,以使业务数据能够在第二网络中基于该第二设备的传输周期标签进行快速准确的传输,提升业务数据的传输效率。Moreover, the transmission cycle label of the second device can indicate which second devices the service data sent by the first node device needs to pass through, so that the service data can be quickly and accurately transmitted in the second network based on the transmission cycle label of the second device. Improve the transmission efficiency of business data.
在一些实施方式中,依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数之前,还包括:获取第一网络中的传输延迟时长;在确定第一网络中的传输延迟时长不在预设延迟时长范围内,且需要将第一网络的设备发送的业务数据在第二网络中进行传输的情况下,确定需要对第二网络的第二传输参数进行调整。In some embodiments, adjusting the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship, and before obtaining the transmission parameter to be used, further includes: obtaining the transmission delay duration in the first network; before determining the first transmission parameter. When the transmission delay time in the network is not within the preset delay time range, and the service data sent by the device of the first network needs to be transmitted in the second network, it is determined that the second transmission parameter of the second network needs to be adjusted. .
传输延迟时长是基于第一网络中的设备数量和第一传输周期确定的时长;第一网络中的设备数量包括:业务数据在第一网络中传输时经过的第一设备的数量。The transmission delay length is a length determined based on the number of devices in the first network and the first transmission cycle; the number of devices in the first network includes: the number of first devices through which business data passes when transmitted in the first network.
需要说明的是,预设延迟时长范围是依据业务数据在第二网络中传输时经过的第二设备的数量和第二传输周期确定的范围。It should be noted that the preset delay duration range is a range determined based on the number of second devices through which the service data is transmitted in the second network and the second transmission cycle.
通过获取第一网络中的传输延迟时长,能够明确第一网络的传输延迟时长和第二网络的预设延迟时长之间的差异,从而在确定第一网络中的传输延迟时长不在预设延迟时长范围内,且需要将第一网络的设备发送的业务数据在第二网络中进行传输的情况下,确定需要对
第二网络的第二传输参数进行调整,以使调整后的第二传输参数能够满足业务数据在第二网络中传输的传输需求,加快业务数据在第二网络中的传输速度,使业务数据能够基于确定性的传输时长在第二网络中进行传输。By obtaining the transmission delay duration in the first network, the difference between the transmission delay duration in the first network and the preset delay duration in the second network can be clarified, thereby determining that the transmission delay duration in the first network is not the preset delay duration. Within the scope, and the service data sent by the equipment of the first network needs to be transmitted in the second network, it is determined that the The second transmission parameters of the second network are adjusted so that the adjusted second transmission parameters can meet the transmission requirements of the service data transmitted in the second network, speed up the transmission speed of the service data in the second network, and enable the service data to be transmitted. Transmission is performed in the second network based on a deterministic transmission duration.
图5示出本申请实施例提供的第二网络中的节点配置信息的生成方法的流程示意图。如图5所示,该第二网络中的节点配置信息的生成方法包括但不限于如下步骤S501至S506。。FIG. 5 shows a schematic flowchart of a method for generating node configuration information in the second network provided by an embodiment of the present application. As shown in Figure 5, the method of generating node configuration information in the second network includes but is not limited to the following steps S501 to S506. .
在步骤S501中,第二网络的设备根据业务跨域的应用需求,确定业务数据端到端传输的带宽需求和时延需求。In step S501, the device of the second network determines the bandwidth requirement and delay requirement for end-to-end transmission of the service data based on the cross-domain application requirements of the service.
例如,第一网络的设备发送的业务数据,需要经过第二网络进行传输,通过该业务数据的特征,确定在第二网络中传输该业务数据需要使用的传输带宽和传输周期的大小。For example, service data sent by a device on the first network needs to be transmitted through the second network. Based on the characteristics of the service data, the transmission bandwidth and transmission cycle size required to transmit the service data in the second network are determined.
第一网络的第一传输参数包括第一传输周期和第一传输带宽,第二网络的第二传输参数包括第二传输周期和第二传输带宽。The first transmission parameters of the first network include a first transmission period and a first transmission bandwidth, and the second transmission parameters of the second network include a second transmission period and a second transmission bandwidth.
例如,第一网络为局域网,第二网络为广域网,则可根据局域网中的设备传输业务数据的应用需要,对应确定广域网中的传输周期的大小以及对传输时延的要求信息。For example, if the first network is a local area network and the second network is a wide area network, the size of the transmission cycle and the transmission delay requirement information in the wide area network can be determined according to the application needs of the devices in the local area network for transmitting business data.
在步骤S502中,第二网络的设备依据第一传输周期和第二传输周期,确定周期映射关系,并基于该周期映射关系确定预留的时域资源。In step S502, the device of the second network determines a cycle mapping relationship based on the first transmission cycle and the second transmission cycle, and determines reserved time domain resources based on the cycle mapping relationship.
例如,可将业务数据的转发时间划分为相等的时间间隔,每个时间间隔称为一个传输周期。在第一网络中,第一传输周期的大小可以设置为大于链路延迟、处理延迟、传输延迟和排队延迟之和,其中,链路延迟可忽略为零。For example, the forwarding time of business data can be divided into equal time intervals, and each time interval is called a transmission cycle. In the first network, the size of the first transmission period may be set to be greater than the sum of link delay, processing delay, transmission delay and queuing delay, where the link delay is negligibly zero.
在第二网络中,由于不同的设备之间的链路延迟是变化的,因此,第二网络中的第二传输周期的大小约等于最大队列长度除以传输带宽的商,其中,链路延迟没有计算在内。In the second network, since link delays between different devices vary, the size of the second transmission period in the second network is approximately equal to the quotient of the maximum queue length divided by the transmission bandwidth, where the link delay Not counted.
基于上述第一网络和第二网络的传输周期的计算方式不同,可通过周期映射关系,确定需要预留的时域资源(例如,时间片长度,或传输周期的数量等)。进而使第一网络和第二网络的传输周期能够
对齐,方便后续的业务数据的传输。Based on the different calculation methods of the transmission cycles of the first network and the second network, the time domain resources that need to be reserved (for example, the time slice length, or the number of transmission cycles, etc.) can be determined through the cycle mapping relationship. Thus, the transmission cycles of the first network and the second network can Alignment to facilitate subsequent transmission of business data.
例如,设置局域网的传输周期为CL,设置广域网的传输周期为CW,从而可计算获得周期折算因子:c=CL/CW,以使广域网的首节点设备能够在其出端口处为局域网的出端口预留c倍的时间片长度。For example, set the transmission cycle of the LAN to CL, and set the transmission cycle of the WAN to CW, so that the cycle conversion factor can be calculated: c=CL/CW, so that the first node device of the WAN can use its egress port as the egress port of the LAN. Reserve c times the time slice length.
在步骤S503中,第二网络的设备依据第一传输带宽和第二传输带宽,确定带宽映射关系,并基于带宽映射关系确定预留的带宽资源,进而依据该预留的带宽资源和第一传输带宽调整第二传输带宽,获得能够在第二网络中使用的待使用传输带宽。In step S503, the device of the second network determines the bandwidth mapping relationship based on the first transmission bandwidth and the second transmission bandwidth, determines the reserved bandwidth resources based on the bandwidth mapping relationship, and then determines the reserved bandwidth resources based on the reserved bandwidth resources and the first transmission bandwidth. The bandwidth adjusts the second transmission bandwidth to obtain the transmission bandwidth to be used that can be used in the second network.
例如,可以在第二网络的首节点设备中设置一个边缘周期整形器,该边缘周期整形器用于依据第一传输带宽和第二传输带宽,确定带宽映射关系,通过该带宽映射关系,确定预留的带宽资源,以实现第一网络和第二网络之间的传输参数的映射。For example, an edge period shaper may be set in the head node device of the second network. The edge period shaper is used to determine the bandwidth mapping relationship based on the first transmission bandwidth and the second transmission bandwidth, and determine the reservation through the bandwidth mapping relationship. bandwidth resources to implement mapping of transmission parameters between the first network and the second network.
例如,第一网络为局域网,第二网络为广域网,局域网的传输带宽通常都小于1Gbps,而广域网的传输带宽会超过10Gbps。传输带宽的不匹配会导致传输时延不等、网络接口拥塞等问题,因此,需要对局域网和广域网之间的传输带宽进行映射,以使方便业务数据在广域网中进行传输。For example, the first network is a LAN and the second network is a WAN. The transmission bandwidth of the LAN is usually less than 1Gbps, while the transmission bandwidth of the WAN exceeds 10Gbps. The mismatch in transmission bandwidth will lead to problems such as unequal transmission delays and network interface congestion. Therefore, the transmission bandwidth between the LAN and the WAN needs to be mapped to facilitate the transmission of business data in the WAN.
可以设置局域网的出端口的链路带宽为BWL,设置广域网的出端口的链路带宽为BWW,则可以计算获得带宽折算因子:b=BWL/BWW,从而使广域网的首节点设备能够在其出端口处为局域网的出端口预留b倍的硬切片带宽。You can set the link bandwidth of the LAN egress port to BWL, and set the link bandwidth of the WAN egress port to BWW. Then you can calculate the bandwidth conversion factor: b = BWL/BWW, so that the first node device of the WAN can Reserve b times the hard slicing bandwidth at the port for the outgoing port of the LAN.
在步骤S504中,第二网络的设备获取第一网络在发送业务数据时的发送时间,根据该发送时间和预留的时域资源,确定第二网络的设备接收该业务数据时的接收时间。In step S504, the device of the second network obtains the sending time when the first network sends the service data, and determines the receiving time when the device of the second network receives the service data based on the sending time and the reserved time domain resources.
可根据步骤S502中的周期映射关系和步骤S503中的带宽映射关系,能够明确局域网中的尾节点设备的在发送业务数据的发送时间,进而确定第二网络的设备接收该业务数据时的接收时间。According to the cycle mapping relationship in step S502 and the bandwidth mapping relationship in step S503, the sending time of the tail node device in the local area network when sending the service data can be clarified, and then the receiving time when the device of the second network receives the service data can be determined. .
在步骤S505中,第二网络的设备根据第二网络的设备接收业务数据时的接收时间,生成周期标签。In step S505, the device of the second network generates a periodic label according to the reception time when the device of the second network receives the service data.
周期标签包括第二网络的首节点设备的标签值和第二网络中的
多个第二设备对应的标签值。不同的标签值用于表征不同的第二设备存储其接收到的业务数据的缓存数据队列的标识。The periodic label includes the label value of the first node device of the second network and the Tag values corresponding to multiple second devices. Different tag values are used to represent the identities of different cache data queues in which the second device stores the service data it receives.
在步骤S506中,第二网络的首节点设备将生成的周期标签发送给第二网络中的各个第二设备,以使各个第二设备能够依据获取到的与其对应的标签值,顺序传输业务数据。In step S506, the head node device of the second network sends the generated periodic tag to each second device in the second network, so that each second device can sequentially transmit service data based on the obtained corresponding tag value. .
在一些实施方式中,当第二网络中的尾节点设备最终接收到该业务数据时,需要将该业务数据转发给与第一网络的设备的类型相同的目标设备。In some embodiments, when the tail node device in the second network finally receives the service data, it needs to forward the service data to a target device of the same type as the device in the first network.
例如,第二网络为广域网,该广域网的尾节点设备需要将业务数据传输给某个城域网中的某个设备,此时需要根据广域网的尾节点设备发送业务数据的发送时间,确定城域网中的首节点设备的接收时间,以使城域网中的首节点设备能够及时接收到该业务数据,避免业务数据的丢失,提升数据传输的安全性。For example, the second network is a wide area network, and the tail node device of the wide area network needs to transmit service data to a device in a certain metropolitan area network. At this time, the metropolitan area needs to be determined based on the sending time of the service data sent by the tail node device of the wide area network. The reception time of the first node device in the network is so that the first node device in the metropolitan area network can receive the service data in time to avoid the loss of service data and improve the security of data transmission.
还需要说明的是,若目标设备为城域网中的某个非首节点设备,则还需要根据城域网中的首节点设备转发该业务数据的转发时间,确定与其连接的城域网中的其他设备接收该业务数据的接收时间,以使业务数据能够在城域网中顺利传输,最终使目标设备获得该业务数据。It should also be noted that if the target device is a non-first node device in the metropolitan area network, it is also necessary to determine the connected metropolitan area network based on the forwarding time of the first node device in the metropolitan area network to forward the service data. The reception time of other devices receiving the service data is determined so that the service data can be transmitted smoothly in the metropolitan area network, and finally the target device obtains the service data.
例如,确定业务数据在第二网络(如,广域网),以及与该第二网络的尾节点设备相连接的城域网中的各个设备的转发周期、周期标签和配置带宽等信息中的至少一种,并将上述所有配置信息下发到对应的设备节点,以使各个设备节点能够基于上述配置信息完成业务数据的传输,实现业务数据的端到端的确定性传输,减少传输时延和传输抖动,提升数据传输效率。For example, determine at least one of the information such as the forwarding cycle, cycle label, and configuration bandwidth of each device in the metropolitan area network connected to the tail node device of the second network, and the service data in the second network (such as a wide area network). and deliver all the above configuration information to the corresponding device nodes, so that each device node can complete the transmission of business data based on the above configuration information, achieve end-to-end deterministic transmission of business data, and reduce transmission delay and transmission jitter. , improve data transmission efficiency.
图6示出本申请实施例提供的第一网络的尾节点设备与第二网络的首节点设备之间的业务数据的传输示意图。如图6所示,第一网络的尾节点设备610与第二网络的首节点设备620之间通信连接。Figure 6 shows a schematic diagram of service data transmission between the tail node device of the first network and the head node device of the second network provided by the embodiment of the present application. As shown in Figure 6, the tail node device 610 of the first network is connected to the head node device 620 of the second network.
第一网络的尾节点设备610包括:两个数据缓存队列,且这两个数据缓存队列是基于不同的时间周期进行轮训使用的,如在偶数周期T0和奇数周期T1内分别使用不同的数据缓存队列进行数据的传输。第二网络的首节点设备620包括边缘周期整形器621、发送队列622
以及多个数据缓存队列(如,Q1、Q2、Q3和Q4等)。The tail node device 610 of the first network includes: two data cache queues, and these two data cache queues are used for rotation training based on different time periods. For example, different data caches are used respectively in the even period T0 and the odd period T1. Queues transmit data. The first node device 620 of the second network includes an edge period shaper 621 and a sending queue 622 And multiple data cache queues (such as Q1, Q2, Q3, Q4, etc.).
第一网络的尾节点设备610的出口带宽为1Gbps,传输周期为20微秒(us),假设每个业务数据包的大小为100字节(Bytes),则该第一网络的尾节点设备610中的每个数据缓存队列的最大队列深度为25个业务数据包;The egress bandwidth of the tail node device 610 of the first network is 1Gbps, and the transmission cycle is 20 microseconds (us). Assuming that the size of each service data packet is 100 bytes, then the tail node device 610 of the first network The maximum queue depth of each data cache queue in is 25 business data packets;
第二网络的首节点设备620的出口带宽为10Gbps,包括Q1、Q2、Q3和Q4,共计4个数据缓存队列,传输周期为10us,假设每个业务数据包的大小为100Bytes,则该第二网络的首节点设备620中的每个数据缓存队列的最大队列深度为125个业务数据包。The egress bandwidth of the first node device 620 of the second network is 10Gbps, including Q1, Q2, Q3 and Q4, with a total of 4 data cache queues and a transmission period of 10us. Assume that the size of each service data packet is 100Bytes. The maximum queue depth of each data cache queue in the head node device 620 of the network is 125 service data packets.
需要说明的是,边缘周期整形器621用于获取第一网络的尾节点设备610的出口带宽,以及第二网络的首节点设备620的出口带宽,并基于上述两个出口带宽进行计算,确定带宽映射关系。例如,可计算获得带宽映射因子b=1Gbps/10Gbps=0.1;基于该带宽映射因子,使第二网络的首节点设备620为第一网络的尾节点设备610预留出b倍的硬切片带宽。It should be noted that the edge period shaper 621 is used to obtain the egress bandwidth of the tail node device 610 of the first network and the egress bandwidth of the first node device 620 of the second network, and perform calculations based on the above two egress bandwidths to determine the bandwidth. Mapping relations. For example, the bandwidth mapping factor b=1Gbps/10Gbps=0.1 can be calculated; based on the bandwidth mapping factor, the head node device 620 of the second network reserves b times the hard slice bandwidth for the tail node device 610 of the first network.
进一步地,边缘周期整形器621还用于获取第一网络的尾节点设备610的传输周期,以及第二网络的首节点设备620的传输周期,并基于上述两个传输周期进行计算,确定周期映射关系。例如,可计算获得周期折算因子c=20us/10us=2;基于该周期折算因子,使第二网络的首节点设备620为第一网络的尾节点设备610预留出c倍的时间片长度(即,预留两个10us的传输周期)。Further, the edge cycle shaper 621 is also used to obtain the transmission cycle of the tail node device 610 of the first network and the transmission cycle of the head node device 620 of the second network, and perform calculations based on the above two transmission cycles to determine the cycle mapping. relation. For example, the cycle conversion factor c=20us/10us=2 can be calculated; based on the cycle conversion factor, the first node device 620 of the second network reserves c times the time slice length for the tail node device 610 of the first network ( That is, reserve two 10us transmission cycles).
通过边缘周期整形器621对传输周期的折算,以及对传输带宽的映射,能够使第二网络的首节点设备620可以与第一网络的尾节点设备610进行同步,从而能够对业务数据的传输时延进行确定性的控制,减少不同类型的设备之间在传输业务数据时的延迟时长,实现跨域的、且传输时延可控的数据传输,满足时间精度高的工业需求,促进工业领域的发展。Through the conversion of the transmission cycle and the mapping of the transmission bandwidth by the edge period shaper 621, the first node device 620 of the second network can be synchronized with the tail node device 610 of the first network, so that the transmission time of service data can be adjusted. Deterministic control of delay can reduce the delay time when transmitting business data between different types of equipment, realize cross-domain data transmission with controllable transmission delay, meet the industrial needs of high time accuracy, and promote the development of the industrial field. develop.
图7示出本申请又一实施例提供的业务数据的传输方法的流程示意图。该业务数据的传输方法可应用于业务数据的传输设备。如图7所示,本申请实施例中的业务数据的传输方法包括但不限于以下步
骤S701至S702。Figure 7 shows a schematic flowchart of a service data transmission method provided by yet another embodiment of the present application. The service data transmission method can be applied to service data transmission equipment. As shown in Figure 7, the service data transmission method in the embodiment of the present application includes but is not limited to the following steps: Steps S701 to S702.
在步骤S701中,向第二网络的设备发送第一传输参数,以供第二网络的设备依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数。In step S701, the first transmission parameter is sent to the device of the second network, so that the device of the second network can adjust the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameter to be used.
第一网络和第二网络为传输时延不同的两个通信网络,第二传输参数为第二网络的设备的传输参数。The first network and the second network are two communication networks with different transmission delays, and the second transmission parameter is the transmission parameter of the device of the second network.
第一传输参数可以包括:第一传输周期和第一传输带宽,以使第二网络的设备能够获知第一网络的设备的传输周期和传输带宽,方便后续处理。The first transmission parameters may include: a first transmission period and a first transmission bandwidth, so that the device of the second network can learn the transmission period and transmission bandwidth of the device of the first network to facilitate subsequent processing.
在步骤S702中,向第二网络的设备发送业务数据,以使第二网络的设备依据待使用传输参数在第二网络中传输业务数据。In step S702, the service data is sent to the device of the second network, so that the device of the second network transmits the service data in the second network according to the transmission parameters to be used.
业务数据是需要经过第二网络的设备的转发,以使处于不同地理位置上的、与第一网络的设备的类型相同的设备可以精准获得的数据,能够满足不同区域内的业务数据的传输,实现传输时延可控的确定性的数据传输。The business data needs to be forwarded by the equipment of the second network so that the equipment in different geographical locations and of the same type as the equipment of the first network can accurately obtain the data, which can meet the transmission of business data in different areas. Realize deterministic data transmission with controllable transmission delay.
需要说明的是,第二网络的设备能够实现本申请实施例中的任意一种应用于第二网络的设备的业务数据的传输方法,对应的方法步骤在此不再赘述。It should be noted that the equipment of the second network can implement any of the service data transmission methods applied to the equipment of the second network in the embodiments of the present application, and the corresponding method steps will not be described again here.
在本实施例中,通过向第二网络的设备发送第一传输参数,以供以供第二网络的设备依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,能够使待使用传输参数可以与第一传输参数相匹配,提升数据在第二网络中的传输时延的可控性;向第二网络的设备发送业务数据,以使第二网络的设备依据待使用传输参数在第二网络中传输业务数据,实现跨域的、且传输时延可控的数据传输,满足时间精度高的工业需求,促进工业领域的发展。In this embodiment, the first transmission parameter is sent to the device of the second network so that the device of the second network can adjust the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the desired parameter. Using the transmission parameters can make the transmission parameters to be used match the first transmission parameters, improving the controllability of the transmission delay of data in the second network; sending service data to the equipment of the second network, so that the second network The equipment transmits business data in the second network according to the transmission parameters to be used, realizing cross-domain data transmission with controllable transmission delay, meeting the industrial needs of high time precision, and promoting the development of the industrial field.
图8示出本申请一实施例提供的第一网络与第二网络之间的业务数据的转发流程示意图。如图8所示,第一局域网801包括节点A、节点B和节点C;第二局域网802包括节点G、节点H和节点I;广域网803包括节点D、节点E和节点F。节点C是第一局域网801的
尾节点设备,节点D是广域网803的首节点设备,节点F是广域网803的尾节点设备,节点G是第二局域网802的首节点设备。Figure 8 shows a schematic flow chart of forwarding service data between the first network and the second network provided by an embodiment of the present application. As shown in Figure 8, the first local area network 801 includes node A, node B, and node C; the second local area network 802 includes node G, node H, and node I; and the wide area network 803 includes node D, node E, and node F. Node C is the first LAN 801 As for the tail node device, node D is the first node device of the wide area network 803, node F is the tail node device of the wide area network 803, and node G is the first node device of the second local area network 802.
第一局域网801和第二局域网802的传输周期都是TL;并且,第一局域网801内的各个节点设备之间是采用时间同步机制进行通信,第二局域网802内的各个节点设备之间也是采用时间同步机制进行通信。广域网803中的各个节点设备之间是采用时钟频率同步机制进行通信的,该广域网803的转发周期为Tw。对应的,第一局域网801与广域网803之间的周期折算因子c=TL/Tw=2。The transmission cycles of the first LAN 801 and the second LAN 802 are both TL ; and each node device in the first LAN 801 uses a time synchronization mechanism to communicate, and each node device in the second LAN 802 also communicates with each other. Use time synchronization mechanism for communication. Each node device in the wide area network 803 communicates using a clock frequency synchronization mechanism, and the forwarding cycle of the wide area network 803 is T w . Correspondingly, the cycle conversion factor c= TL / Tw =2 between the first local area network 801 and the wide area network 803.
在进行业务数据的传输之前,还需要将第一局域网801的尾节点设备(即,节点C)和广域网803的首节点设备(即,节点D)之间进行传输周期的对齐,以及将广域网803的尾节点设备(即,节点F)和第二局域网802的首节点设备(即,节点G)之间进行传输周期的对齐。Before transmitting service data, it is also necessary to align the transmission cycle between the tail node device of the first local area network 801 (ie, node C) and the first node device of the wide area network 803 (ie, node D), and to align the WAN 803 The transmission cycle is aligned between the tail node device (ie, node F) and the head node device (ie, node G) of the second local area network 802.
例如,基于周期折算因子c,确定预留的时域资源(例如,使广域网803的首节点设备为第一局域网801的尾节点设备预留出c倍的时间片长度);依据预留的时域资源和第一局域网801的第一传输周期调整广域网803的第二传输周期,获得待使用传输周期,该待使用传输周期用于使广域网803中的各个节点设备进行数据传输。For example, the reserved time domain resources are determined based on the cycle conversion factor c (for example, the first node device of the wide area network 803 reserves c times the time slice length for the tail node device of the first local area network 801); The domain resources and the first transmission cycle of the first local area network 801 adjust the second transmission cycle of the wide area network 803 to obtain the transmission cycle to be used. The transmission cycle to be used is used to enable each node device in the wide area network 803 to perform data transmission.
如图8所示,方块表示出口数据(即,设备的出口处对应的待传输的业务数据报文),圆形表示入口数据(即,设备的入口处接收到上级节点发送的待传输的业务数据报文)。As shown in Figure 8, the square represents the egress data (i.e., the service data message to be transmitted corresponding to the device's egress), and the circle represents the ingress data (i.e., the device's inlet receives the service to be transmitted from the superior node). data message).
需要说明的是,局域网801的传输带宽与广域网803的传输带宽不同,例如,局域网801的传输带宽可能为1Gbps,而广域网803的传输带宽可能为10Gbps,在进行不同网络之间的数据传输之前,还需要对两个网络之间的传输带宽进行对应的换算,例如,采用预设的带宽映射关系(如,以十分之一作为带宽映射因子),对广域网803的传输带宽进行调整,如,可先预留0.1*10Gbps=1Gbps的传输带宽,进而使用(10-1)Gbps=9Gbps作为广域网803的传输带宽。以降低数据在广域网803中的传输偏差,提升数据的传输准确性。It should be noted that the transmission bandwidth of LAN 801 is different from the transmission bandwidth of WAN 803. For example, the transmission bandwidth of LAN 801 may be 1Gbps, while the transmission bandwidth of WAN 803 may be 10Gbps. Before data transmission between different networks, It is also necessary to perform corresponding conversions on the transmission bandwidth between the two networks. For example, use a preset bandwidth mapping relationship (for example, using one-tenth as the bandwidth mapping factor) to adjust the transmission bandwidth of the WAN 803, such as, You can first reserve a transmission bandwidth of 0.1*10Gbps=1Gbps, and then use (10-1)Gbps=9Gbps as the transmission bandwidth of WAN 803. To reduce data transmission deviation in WAN 803 and improve data transmission accuracy.
节点A在偶数周期T0内,将需要传输的两个不同的业务数据报
文(例如,报文1和报文2)由其出口发送给节点B,并且,节点B也在偶数周期T0内,接收到节点A发送的报文1和报文2。节点B基于第一局域网801内的传输方式(如,时间同步机制),在奇数周期T1内,将上述报文1和报文2由其出口转发给节点C。类似的,节点C在奇数周期T1内,接收到节点B转发的报文1和报文2,并在下一个偶数周期T0内,将报文1和报文2转发给与其连接的广域网803中的节点D。Node A will need to transmit two different service datagrams during the even period T0. Messages (for example, Message 1 and Message 2) are sent to Node B through its egress, and Node B also receives Message 1 and Message 2 sent by Node A during the even period T0. Node B forwards the above-mentioned message 1 and message 2 from its egress to node C within the odd period T1 based on the transmission method (eg, time synchronization mechanism) in the first local area network 801. Similarly, node C receives message 1 and message 2 forwarded by node B in the odd-numbered period T1, and forwards message 1 and message 2 to the WAN 803 connected to it in the next even-numbered period T0. Node D.
需要说明的是,节点D与图6中的第二网络的首节点设备620的结构相同,并且对应的工作原理也相同,在此不再赘述。It should be noted that node D has the same structure as the head node device 620 of the second network in Figure 6, and the corresponding working principles are also the same, which will not be described again here.
当业务数据被广域网803中的节点D接收到时,广域网803的节点D会将在周期T0内接收到的报文1分配至周期T1中,并进行数据的转发给节点E,将在周期T1内接收到的报文2分配至周期T2中,并进行数据的转发给节点E。When the service data is received by the node D in the wide area network 803, the node D of the wide area network 803 will allocate the message 1 received in the period T0 to the period T1, and forward the data to the node E, and then forward the data to the node E in the period T1. Message 2 received during the period is allocated to cycle T2, and the data is forwarded to node E.
通过将不同的报文分配至不同的周期内进行转发,能够避免不同的报文之间的数据重叠,降低报文在传输过程中的错包比例,提升业务数据的传输安全性。By allocating different packets to different cycles for forwarding, data overlap between different packets can be avoided, the proportion of packet errors during packet transmission can be reduced, and the security of business data transmission can be improved.
对应地,节点E会分别在周期T3中接收到报文1,在周期T4中接收到报文2;然后节点E会分别在周期T5中发送报文1给节点F,在周期T6中发送报文2给节点F。当节点F在周期T6中接收到报文1,并在周期T7中接收到报文2时,该节点F会在周期T7中发送该报文1给第二局域网802中的节点G,在周期T8中发送该报文2给第二局域网802中的节点G,从而完成不同的报文在第二网络中的传输。Correspondingly, node E will receive message 1 in cycle T3 and message 2 in cycle T4 respectively; then node E will send message 1 to node F in cycle T5 and message 2 in cycle T6 respectively. Text 2 is given to node F. When node F receives message 1 in cycle T6 and receives message 2 in cycle T7, node F will send message 1 to node G in the second LAN 802 in cycle T7. In T8, the message 2 is sent to the node G in the second local area network 802, thereby completing the transmission of different messages in the second network.
在上述报文的传输过程中,发送节点都会基于其发送周期对应生成转发周期标签值,该转发周期标签值能够表征发送节点发送不同的业务数据时的传输周期。例如,节点E的转发周期标签值为T5和T6;节点F的转发周期标签值为T7和T8。During the transmission process of the above message, the sending node will generate a forwarding cycle tag value based on its sending cycle. The forwarding cycle tag value can represent the transmission cycle when the sending node sends different service data. For example, the forwarding cycle label values of node E are T5 and T6; the forwarding cycle label values of node F are T7 and T8.
当第二局域网802中的节点G在周期T0中接收到报文1和报文2时,会基于与第一局域网801中的传输方式(如,时间同步机制)相同的传输方式进行报文的传输。
When node G in the second LAN 802 receives message 1 and message 2 in the period T0, the message will be transmitted based on the same transmission method as that in the first LAN 801 (for example, time synchronization mechanism). transmission.
如图8所示,在偶数周期T0内,节点G将上述报文1和报文2由其出口转发给节点H。类似的,节点H在偶数周期T0内,接收到节点G转发的报文1和报文2,并在下一个奇数周期T1内,将报文1和报文2转发给节点I;节点I在奇数周期T1内,接收到节点H转发的报文1和报文2,并在下一个偶数周期T0内,将报文1和报文2转发出去,以实现业务数据在第二局域网中的传输。As shown in Figure 8, in the even period T0, node G forwards the above message 1 and message 2 from its egress to node H. Similarly, node H receives message 1 and message 2 forwarded by node G in the even-numbered period T0, and forwards message 1 and message 2 to node I in the next odd-numbered period T1; node I in the odd-numbered period In the period T1, the message 1 and the message 2 forwarded by the node H are received, and in the next even-numbered period T0, the message 1 and the message 2 are forwarded to realize the transmission of service data in the second LAN.
通过上述业务数据在不同类型的网络中的传输,能够实现端到端的确定性传输时延的全局规划,明确业务数据在传输过程中的传输带宽和传输周期,从而实现局域网中的业务数据能够在跨越广域网的场景下,保证业务数据在转发时的传输时延的可控性,以降低传输抖动。Through the transmission of the above business data in different types of networks, global planning of end-to-end deterministic transmission delay can be achieved, and the transmission bandwidth and transmission cycle of business data during the transmission process can be clarified, so that business data in the local area network can be In scenarios spanning wide area networks, the transmission delay of business data during forwarding is ensured to be controllable to reduce transmission jitter.
图9示出本申请又一实施例提供的第一网络与第二网络之间的业务数据的转发流程示意图。如图9所示,图9中的各个设备之间的连接关系与图8中的各个设备之间的连接关系相同,即第一局域网801包括节点A、节点B和节点C;第二局域网802包括节点G、节点H和节点I;广域网803包括节点D、节点E和节点F。节点C是第一局域网801的尾节点设备,节点D是广域网803的首节点设备,节点F是广域网803的尾节点设备,节点G是第二局域网802的首节点设备。Figure 9 shows a schematic flow chart of forwarding service data between the first network and the second network provided by yet another embodiment of the present application. As shown in Figure 9, the connection relationship between the various devices in Figure 9 is the same as the connection relationship between the various devices in Figure 8, that is, the first LAN 801 includes node A, node B and node C; the second LAN 802 It includes node G, node H and node I; the wide area network 803 includes node D, node E and node F. Node C is the tail node device of the first LAN 801 , node D is the head node device of the WAN 803 , node F is the tail node device of the WAN 803 , and node G is the head node device of the second LAN 802 .
但是,在图9中,广域网803的节点D在进行业务数据的转发时,将连续接收到的两个数据报文(即,周期T0内接收到的第一报文和周期T1内接收到的第二报文)都分配至同一个转发周期(即在周期T2)中进行数据的转发,即设备D需要在周期T2将第一报文和第二报文都转发给节点E。However, in Figure 9, when node D of the wide area network 803 forwards service data, it will receive two consecutive data packets (ie, the first packet received in the period T0 and the first packet received in the period T1). second message) are allocated to the same forwarding period (that is, period T2) for data forwarding, that is, device D needs to forward both the first message and the second message to node E in period T2.
因此,节点D需要根据其转发周期(即周期T2),确定节点E的接收周期(即,周期T4),并进一步确定节点E需要在周期T6将第一报文和第二报文转发给节点F;以及节点F需要在周期T7接收该第一报文和第二报文,并在周期T8将该第一报文和第二报文转发给第二局域网802中的节点G。Therefore, node D needs to determine the receiving cycle of node E (ie, cycle T4) based on its forwarding cycle (ie, cycle T2), and further determines that node E needs to forward the first message and the second message to the node in cycle T6. F; and node F needs to receive the first message and the second message in period T7, and forward the first message and second message to node G in the second LAN 802 in period T8.
通过上述对不同节点的接收周期和转发周期的确定,对应的生
成不同节点的周期标签。例如,节点D的转发周期标签为T2,节点E的转发周期标签为T6,节点F的转发周期标签为T8等。从而使广域网803的首节点设备(即,节点D)能够将上述不同节点对应的转发周期标签分配个各个节点,以降低不同节点之间在传输业务数据时的传输抖动和传输时延。Through the above determination of the receiving cycle and forwarding cycle of different nodes, the corresponding generation into periodic labels of different nodes. For example, the forwarding cycle label of node D is T2, the forwarding cycle label of node E is T6, the forwarding cycle label of node F is T8, etc. This enables the head node device of the wide area network 803 (ie, node D) to allocate the forwarding cycle labels corresponding to the above different nodes to each node, so as to reduce transmission jitter and transmission delay when transmitting service data between different nodes.
需要说明的是,上述对于广域网803进行的业务数据的传输方法仅是举例说明,可根据实际应用场景对应进行调整,其他未说明的广域网803进行的业务数据的传输方法也在本申请的保护范围之内,在此不再赘述。It should be noted that the above-mentioned method of transmitting service data by the wide area network 803 is only an example and can be adjusted according to the actual application scenario. Other unexplained methods of transmitting service data by the wide area network 803 are also within the protection scope of this application. Within, no further details will be given here.
下面结合附图,详细介绍根据本申请实施例的业务数据的传输设备。图10示出本申请一实施例提供的业务数据的传输设备的组成方框图。The service data transmission device according to the embodiment of the present application will be introduced in detail below with reference to the accompanying drawings. Figure 10 shows a block diagram of a service data transmission device provided by an embodiment of the present application.
业务数据的传输设备1000为第二网络中的设备。如图10所示,该业务数据的传输设备1000包括但不限于如下模块。The service data transmission device 1000 is a device in the second network. As shown in Figure 10, the service data transmission device 1000 includes but is not limited to the following modules.
边缘周期整形器1001,被配置为依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,第一传输参数为第一网络发送的的参数,第二传输参数为第二网络的设备的传输参数,第一网络和第二网络为传输时延不同的两个通信网络。The edge period shaper 1001 is configured to adjust the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameter to be used. The first transmission parameter is a parameter sent by the first network, and the second transmission parameter is a parameter sent by the first network. The transmission parameters are transmission parameters of the equipment of the second network, and the first network and the second network are two communication networks with different transmission delays.
传输模块1002,被配置为响应于第一网络的设备发送的业务数据,依据待使用传输参数在第二网络中传输业务数据。The transmission module 1002 is configured to respond to the service data sent by the device of the first network and transmit the service data in the second network according to the transmission parameters to be used.
在一些实施方式中,预设的参数映射关系包括:周期映射关系和带宽映射关系,第一传输参数包括第一传输周期和第一传输带宽,第二传输参数包括第二传输周期和第二传输带宽。In some embodiments, the preset parameter mapping relationship includes: period mapping relationship and bandwidth mapping relationship, the first transmission parameter includes the first transmission period and the first transmission bandwidth, the second transmission parameter includes the second transmission period and the second transmission bandwidth.
业务数据的传输设备1000,还包括:周期映射模块,配置为依据第一传输周期和第二传输周期,确定周期映射关系;带宽映射模块,配置为依据第一传输带宽和第二传输带宽,确定带宽映射关系。The service data transmission device 1000 also includes: a cycle mapping module configured to determine the cycle mapping relationship based on the first transmission cycle and the second transmission cycle; a bandwidth mapping module configured to determine the cycle mapping relationship based on the first transmission bandwidth and the second transmission bandwidth. Bandwidth mapping relationship.
在一些实施方式中,边缘周期整形器1001,配置为依据周期映射关系确定预留的时域资源;依据预留的时域资源和第一传输周期调整第二传输周期,获得待使用传输周期;以及依据带宽映射关系确定预留的带宽资源;依据预留的带宽资源和第一传输带宽调整第二传输
带宽,获得待使用传输带宽。In some embodiments, the edge period shaper 1001 is configured to determine the reserved time domain resources according to the period mapping relationship; adjust the second transmission period according to the reserved time domain resources and the first transmission period to obtain the transmission period to be used; And determine the reserved bandwidth resources according to the bandwidth mapping relationship; adjust the second transmission according to the reserved bandwidth resources and the first transmission bandwidth Bandwidth, obtain the transmission bandwidth to be used.
在一些实施方式中,第二网络的设备包括首节点设备。依据预留的带宽资源和第一传输带宽调整第二传输带宽,获得待使用传输带宽,包括:依据预留的带宽资源和第一传输带宽,调整首节点设备的第二传输带宽,获得首节点设备对应的待使用传输带宽。In some embodiments, the device of the second network includes a head node device. Adjusting the second transmission bandwidth according to the reserved bandwidth resources and the first transmission bandwidth to obtain the transmission bandwidth to be used includes: adjusting the second transmission bandwidth of the first node device according to the reserved bandwidth resources and the first transmission bandwidth to obtain the first node The transmission bandwidth to be used corresponding to the device.
在一些实施方式中,第二网络的设备包括首节点设备和多个第二设备。In some implementations, the device of the second network includes a head node device and a plurality of second devices.
依据预留的时域资源和第一传输周期调整第二传输周期,获得待使用传输周期,包括:依据预留的时域资源和第一传输周期,确定首节点设备的传输周期标签;依据预设标签映射关系和首节点设备的传输周期标签,分别确定多个第二设备的传输周期标签,预设标签映射关系用于表征首节点设备与其连接的第二设备之间的传输周期映射关系以及多个第二设备之间的传输周期映射关系;依据首节点设备的转发周期标签和多个第二设备的传输周期标签,确定待使用传输周期。Adjusting the second transmission cycle based on the reserved time domain resources and the first transmission cycle to obtain the transmission cycle to be used includes: determining the transmission cycle label of the head node device based on the reserved time domain resources and the first transmission cycle; Assume the label mapping relationship and the transmission cycle label of the first node device, and determine the transmission cycle labels of multiple second devices respectively. The preset label mapping relationship is used to represent the transmission cycle mapping relationship between the first node device and its connected second device; The transmission cycle mapping relationship between multiple second devices; the transmission cycle to be used is determined based on the forwarding cycle label of the first node device and the transmission cycle labels of the multiple second devices.
在一些实施方式中,业务数据包括至少两个业务数据报文;依据预留的时域资源和第一传输周期,确定首节点设备的传输周期标签,包括:在确定第一传输周期内需要传输至少两个业务数据报文的情况下,依据预留的时域资源,分别为至少两个业务数据报文分配对应的转发传输周期,获得至少两个转发传输周期的标识;以及依据至少两个转发传输周期的标识,确定首节点设备的传输周期标签。In some embodiments, the service data includes at least two service data messages; based on the reserved time domain resources and the first transmission cycle, determining the transmission cycle label of the head node device includes: determining that transmission is required within the first transmission cycle In the case of at least two service data messages, allocate corresponding forwarding and transmission periods to at least two service data messages according to the reserved time domain resources, and obtain the identifiers of at least two forwarding and transmission periods; and according to at least two Forward the identification of the transmission cycle and determine the transmission cycle label of the first node device.
在一些实施方式中,依据预留的时域资源和第一传输周期,确定首节点设备的传输周期标签,包括:依据预留的时域资源,为接收到的至少两个业务数据报文分配一个转发传输周期,获得首节点设备的传输周期标签;至少两个业务数据报文是依次在至少两个第一传输周期内接收到的报文。In some embodiments, determining the transmission cycle label of the head node device based on the reserved time domain resources and the first transmission cycle includes: allocating at least two received service data packets based on the reserved time domain resources. One forwarding transmission cycle obtains the transmission cycle label of the head node device; at least two service data packets are packets received in at least two first transmission cycles.
在一些实施方式中,多个第二设备之间、以及首节点设备和第二设备之间均采用时钟频率同步机制进行通信;多个第二设备的传输周期的起始时刻和终止时刻均不相同,多个第二设备的传输周期的切换频率相同;每个第二设备具有多个缓存数据队列,缓存数据队列用
于存储接收到的上一级网络设备发送的业务数据,每个缓存数据队列对应一个传输周期,多个缓存数据队列之间基于轮询的方式确定缓存数据队列的工作状态。In some implementations, a clock frequency synchronization mechanism is used for communication between multiple second devices, and between the first node device and the second device; the starting time and the ending time of the transmission cycle of the multiple second devices are not the same. The same, the switching frequency of the transmission cycles of multiple second devices is the same; each second device has multiple cache data queues, and the cache data queues are To store the received business data sent by the upper-level network device, each cache data queue corresponds to a transmission cycle, and the working status of the cache data queues is determined based on polling between multiple cache data queues.
在一些实施方式中,缓存数据队列的工作状态包括:发送状态或接收状态;在预设时段内,每个第二设备的多个缓存数据队列中仅有一个缓存数据队列的工作状态为发送状态,其他缓存数据队列的工作状态为接收状态。In some embodiments, the working status of the cached data queue includes: sending status or receiving status; within a preset period, the working status of only one cached data queue among the multiple cached data queues of each second device is the sending status. , the working status of other cached data queues is receiving status.
在一些实施方式中,传输模块1002,配置为首节点设备依据业务数据和第二设备的传输周期标签,构造传输消息;向与首节点设备连接的第二设备发送传输消息,以使第二设备基于传输消息中的传输周期标签确定缓存数据队列标识,并将业务数据存储至缓存数据队列标识对应的缓存数据队列中;在确定缓存数据队列标识对应的缓存数据队列的工作状态为发送状态的情况下,将业务数据转发给其他的第二设备。In some embodiments, the transmission module 1002 is configured so that the first node device constructs a transmission message based on the service data and the transmission cycle tag of the second device; and sends the transmission message to the second device connected to the first node device, so that the second device is based on The transmission cycle tag in the transmission message determines the cache data queue identifier, and stores the business data in the cache data queue corresponding to the cache data queue identifier; when it is determined that the working status of the cache data queue corresponding to the cache data queue identifier is the sending state , forward the service data to other second devices.
在一些实施方式中,第一网络的设备包括尾节点设备和多个第一设备,第二网络的设备包括首节点设备和多个第二设备,尾节点设备与首节点设备通信连接;多个第一设备之间、以及尾节点设备与首节点设备之间均采用时间同步机制进行通信。In some embodiments, the devices of the first network include a tail node device and a plurality of first devices, the devices of the second network include a head node device and a plurality of second devices, and the tail node device is communicatively connected to the head node device; a plurality of The time synchronization mechanism is used for communication between the first devices and between the tail node device and the first node device.
在一些实施方式中,每个第一设备具有两个缓存数据队列,两个缓存数据队列的入队门控的工作状态互斥,两个缓存数据队列的出队门控的工作状态互斥,每个缓存数据队列的入队门控的工作状态和出队门控的工作状态互斥,工作状态包括打开状态或关闭状态。In some embodiments, each first device has two cache data queues, the working states of the enqueue gates of the two cache data queues are mutually exclusive, and the working states of the dequeue gates of the two cache data queues are mutually exclusive, The working status of the enqueuing gate and the working status of the dequeuing gate of each cache data queue are mutually exclusive, and the working status includes an open state or a closed state.
在一些实施方式中,在确定入队门控的状态为打开状态的情况下,缓存数据队列用于存储业务数据;在确定出队门控的状态为打开状态的情况下,缓存数据队列用于输出业务数据;在预设传输周期内,入队门控的工作状态和出队门控的工作状态均保持不变。In some embodiments, when it is determined that the status of the enqueue gate is open, the cache data queue is used to store business data; when it is determined that the status of the dequeue gate is open, the cache data queue is used Output business data; within the preset transmission cycle, the working status of the entry gate control and the working status of the exit gate control remain unchanged.
在一些实施方式中,业务数据的传输设备1000,还包括:获取模块,配置为获取第一网络中的传输延迟时长,其中,传输延迟时长是基于第一网络中的设备数量和第一传输周期确定的时长;确定模块,配置为在确定第一网络中的传输延迟时长不在预设延迟时长范围内,
且需要将第一网络的设备发送的业务数据在第二网络中进行传输的情况下,确定需要对第二网络的第二传输参数进行调整。In some embodiments, the service data transmission device 1000 further includes: an acquisition module configured to obtain the transmission delay duration in the first network, where the transmission delay duration is based on the number of devices in the first network and the first transmission cycle. a determined duration; a determining module configured to determine that the transmission delay duration in the first network is not within the preset delay duration range, And when the service data sent by the device of the first network needs to be transmitted in the second network, it is determined that the second transmission parameter of the second network needs to be adjusted.
需要说明的是,本实施例中的业务数据的传输设备1000能够实现本申请实施例中任一种应用于第二网络中的设备的业务数据的传输方法。It should be noted that the service data transmission device 1000 in this embodiment can implement any of the service data transmission methods in the embodiments of this application that is applied to the device in the second network.
根据本申请实施例的业务数据的传输设备,通过边缘周期整形器依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,以使待使用传输参数能够与第一传输参数相匹配,提升数据在第二网络中的传输时延的可控性;从而在接收到第一网络的设备发送的业务数据后,能够使用传输模块依据待使用传输参数在第二网络中传输业务数据,以实现跨域的、且传输时延可控的数据传输,满足时间精度高的工业需求,促进工业领域的发展。According to the service data transmission device of the embodiment of the present application, the edge period shaper adjusts the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameters to be used, so that the transmission parameters to be used can Match the first transmission parameters to improve the controllability of the transmission delay of data in the second network; thus, after receiving the service data sent by the device of the first network, the transmission module can be used to transmit the data in the second network according to the transmission parameters to be used. Transmit business data in the second network to achieve cross-domain data transmission with controllable transmission delay, meet industrial needs with high time accuracy, and promote the development of the industrial field.
图11示出本申请又一实施例提供的业务数据的传输设备的组成方框图。业务数据的传输设备1100为第一网络中的设备。如图11所示,业务数据的传输设备1100包括但不限于如下模块。Figure 11 shows a block diagram of a service data transmission device provided by yet another embodiment of the present application. The service data transmission device 1100 is a device in the first network. As shown in Figure 11, the service data transmission device 1100 includes but is not limited to the following modules.
第一发送模块1101,被配置为向第二网络的设备发送第一传输参数,以供第二网络的设备依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数。The first sending module 1101 is configured to send the first transmission parameter to the device of the second network, so that the device of the second network can adjust the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the desired Use transfer parameters.
第一网络和第二网络为传输时延不同的两个通信网络,第二传输参数为第二网络的设备的传输参数。The first network and the second network are two communication networks with different transmission delays, and the second transmission parameter is the transmission parameter of the device of the second network.
第二发送模块1102,被配置为向第二网络的设备发送业务数据,以使第二网络的设备依据待使用传输参数在第二网络中传输业务数据。The second sending module 1102 is configured to send service data to the device of the second network, so that the device of the second network transmits the service data in the second network according to the transmission parameters to be used.
根据本申请实施例的业务数据的传输设备,通过第一发送模块向第二网络的设备发送第一传输参数,以供第二网络的设备依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,能够使待使用传输参数可以与第一传输参数相匹配,提升数据在第二网络中的传输时延的可控性;第二发送模块向第二网络的设备发送业务数据,以使第二网络的设备依据待使用传输参数在第二网络中传输业务数据,实现跨域的、且传输时延可控的数据传输,
满足时间精度高的工业需求,促进工业领域的发展。According to the service data transmission device according to the embodiment of the present application, the first transmission parameter is sent to the device of the second network through the first sending module, so that the device of the second network can transmit the first transmission parameter to the device of the second network according to the first transmission parameter and the preset parameter mapping relationship. The second transmission parameters are adjusted to obtain the transmission parameters to be used, which can match the transmission parameters to be used with the first transmission parameters and improve the controllability of the transmission delay of data in the second network; the second sending module sends the data to the second transmission parameter. The equipment of the network sends the service data, so that the equipment of the second network transmits the service data in the second network according to the transmission parameters to be used, realizing cross-domain data transmission with controllable transmission delay, Meet the industrial needs of high time accuracy and promote the development of the industrial field.
需要明确的是,本申请并不局限于上文实施例中所描述并在图中示出的特定配置和处理。为了描述的方便和简洁,这里省略了对已知方法的详细描述,并且上述描述的系统、模块和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It should be understood that the present application is not limited to the specific configurations and processes described in the embodiments above and illustrated in the figures. For the convenience and simplicity of description, detailed descriptions of known methods are omitted here, and for the specific working processes of the systems, modules and units described above, reference can be made to the corresponding processes in the foregoing method embodiments, which will not be described again here.
图12示出能够实现根据本申请实施例的业务数据的传输方法和装置的计算设备的示例性硬件架构的结构图。FIG. 12 shows a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the business data transmission method and apparatus according to embodiments of the present application.
如图12所示,计算设备1200包括输入设备1201、输入接口1202、中央处理器1203、存储器1204、输出接口1205、以及输出设备1206。其中,输入接口1202、中央处理器1203、存储器1204、以及输出接口1205通过总线1207相互连接,输入设备1201和输出设备1206分别通过输入接口1202和输出接口1205与总线1207连接,进而与计算设备1200的其他组件连接。As shown in FIG. 12 , computing device 1200 includes an input device 1201 , an input interface 1202 , a central processing unit 1203 , a memory 1204 , an output interface 1205 , and an output device 1206 . Among them, the input interface 1202, the central processing unit 1203, the memory 1204, and the output interface 1205 are connected to each other through the bus 1207. The input device 1201 and the output device 1206 are connected to the bus 1207 through the input interface 1202 and the output interface 1205 respectively, and then to the computing device 1200 to connect other components.
在一个实施例中,输入设备1201接收来自外部的输入信息,并通过输入接口1202将输入信息传送到中央处理器1203;中央处理器1203基于存储器1204中存储的计算机可执行指令对输入信息进行处理以生成输出信息,将输出信息临时或者永久地存储在存储器1204中,然后通过输出接口1205将输出信息传送到输出设备1206;输出设备1206将输出信息输出到计算设备1200的外部供用户使用。In one embodiment, the input device 1201 receives input information from the outside and transmits the input information to the central processor 1203 through the input interface 1202; the central processor 1203 processes the input information based on computer-executable instructions stored in the memory 1204. To generate output information, store the output information temporarily or permanently in the memory 1204, and then transmit the output information to the output device 1206 through the output interface 1205; the output device 1206 outputs the output information to the outside of the computing device 1200 for use by the user.
在一个实施例中,图12所示的计算设备可以被实现为一种电子设备,该电子设备可以包括:存储器,被配置为存储计算机程序;处理器,被配置为运行存储器中存储的计算机程序,以执行上述实施例描述的业务数据的传输方法。In one embodiment, the computing device shown in FIG. 12 may be implemented as an electronic device, and the electronic device may include: a memory configured to store a computer program; and a processor configured to run the computer program stored in the memory. , to perform the service data transmission method described in the above embodiment.
在一个实施例中,图12所示的计算设备可以被实现为一种业务数据的传输系统,该业务数据的传输系统可以包括:存储器,被配置为存储计算机程序;处理器,被配置为运行存储器中存储的计算机程序,以执行上述实施例描述的业务数据的传输方法。In one embodiment, the computing device shown in Figure 12 may be implemented as a business data transmission system. The business data transmission system may include: a memory configured to store a computer program; a processor configured to run The computer program stored in the memory is used to execute the business data transmission method described in the above embodiment.
以上所述,仅为本申请的示例性实施例而已,并非用于限定本申请的保护范围。一般来说,本申请的多种实施例可以在硬件或专用电路、软件、逻辑或其任何组合中实现。例如,一些方面可以被实现
在硬件中,而其它方面可以被实现在可以被控制器、微处理器或其它计算装置执行的固件或软件中,尽管本申请不限于此。The above descriptions are only exemplary embodiments of the present application and are not used to limit the protection scope of the present application. Generally speaking, the various embodiments of the present application may be implemented in hardware or special purpose circuitry, software, logic, or any combination thereof. For example, some aspects can be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device, although the application is not limited thereto.
本申请的实施例可以通过移动装置的数据处理器执行计算机程序指令来实现,例如在处理器实体中,或者通过硬件,或者通过软件和硬件的组合。计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码。Embodiments of the present application may be implemented by a data processor of the mobile device executing computer program instructions, for example in a processor entity, or by hardware, or by a combination of software and hardware. Computer program instructions may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code written in any combination of one or more programming languages or target code.
本申请附图中的任何逻辑流程的框图可以表示程序步骤,或者可以表示相互连接的逻辑电路、模块和功能,或者可以表示程序步骤与逻辑电路、模块和功能的组合。计算机程序可以存储在存储器上。存储器可以具有任何适合于本地技术环境的类型并且可以使用任何适合的数据存储技术实现,例如但不限于只读存储器(ROM)、随机访问存储器(RAM)、光存储器装置和系统(数码多功能光碟DVD或CD光盘)等。计算机可读介质可以包括非瞬时性存储介质。数据处理器可以是任何适合于本地技术环境的类型,例如但不限于通用计算机、专用计算机、微处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、可编程逻辑器件(FGPA)以及基于多核处理器架构的处理器。Any block diagram of a logic flow in the figures of this application may represent program steps, or may represent interconnected logic circuits, modules, and functions, or may represent a combination of program steps and logic circuits, modules, and functions. Computer programs can be stored on memory. The memory may be of any type suitable to the local technical environment and may be implemented using any suitable data storage technology, such as, but not limited to, read only memory (ROM), random access memory (RAM), optical storage devices and systems (digital versatile disc DVD or CD), etc. Computer-readable media may include non-transitory storage media. The data processor may be of any type suitable for the local technical environment, such as, but not limited to, general purpose computers, special purpose computers, microprocessors, digital signal processors (DSP), application specific integrated circuits (ASIC), programmable logic devices (FGPA) and processors based on multi-core processor architecture.
通过示范性和非限制性的示例,上文已提供了对本申请的示范实施例的详细描述。但结合附图和权利要求来考虑,对以上实施例的多种修改和调整对本领域技术人员来说是显而易见的,但不偏离本申请的范围。因此,本申请的恰当范围将根据权利要求确定。
A detailed description of exemplary embodiments of the present application has been provided above, by way of illustrative and non-limiting examples. However, considering the accompanying drawings and claims, various modifications and adjustments to the above embodiments will be apparent to those skilled in the art without departing from the scope of the present application. Accordingly, the proper scope of the application will be determined from the claims.
Claims (19)
- 一种业务数据的传输方法,应用于第二网络的设备,包括:A method of transmitting service data, applied to the equipment of the second network, including:依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,所述第一传输参数为第一网络的设备发送的参数,所述第二传输参数为所述第二网络的设备的传输参数,所述第一网络和所述第二网络为传输时延不同的两个通信网络;以及Adjust the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameter to be used, wherein the first transmission parameter is a parameter sent by the device of the first network, and the second transmission parameter is the transmission parameter of the device of the second network, and the first network and the second network are two communication networks with different transmission delays; and响应于所述第一网络的设备发送的业务数据,依据所述待使用传输参数在所述第二网络中传输所述业务数据。In response to the service data sent by the device of the first network, the service data is transmitted in the second network according to the transmission parameter to be used.
- 根据权利要求1所述的方法,其中,所述预设的参数映射关系包括:周期映射关系和/或带宽映射关系,所述第一传输参数包括第一传输周期和/或第一传输带宽,所述第二传输参数包括第二传输周期和/或第二传输带宽;The method according to claim 1, wherein the preset parameter mapping relationship includes: a period mapping relationship and/or a bandwidth mapping relationship, and the first transmission parameter includes a first transmission period and/or a first transmission bandwidth, The second transmission parameters include a second transmission period and/or a second transmission bandwidth;所述方法还包括:所述依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数之前,依据所述第一传输周期和所述第二传输周期,确定所述周期映射关系;和/或,依据所述第一传输带宽和所述第二传输带宽,确定所述带宽映射关系。The method further includes: adjusting the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship, and before obtaining the transmission parameter to be used, according to the first transmission period and the second transmission period, Determine the period mapping relationship; and/or determine the bandwidth mapping relationship based on the first transmission bandwidth and the second transmission bandwidth.
- 根据权利要求2所述的方法,其中,所述依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,包括:The method according to claim 2, wherein adjusting the second transmission parameter according to the first transmission parameter and a preset parameter mapping relationship to obtain the transmission parameter to be used includes:依据所述周期映射关系确定预留的时域资源,依据所述预留的时域资源和所述第一传输周期调整所述第二传输周期,获得待使用传输周期;和/或,Determine the reserved time domain resources according to the period mapping relationship, adjust the second transmission period according to the reserved time domain resources and the first transmission period, and obtain the transmission period to be used; and/or,依据所述带宽映射关系确定预留的带宽资源,依据所述预留的带宽资源和所述第一传输带宽调整所述第二传输带宽,获得待使用传输带宽。 Determine reserved bandwidth resources according to the bandwidth mapping relationship, adjust the second transmission bandwidth according to the reserved bandwidth resources and the first transmission bandwidth, and obtain the transmission bandwidth to be used.
- 根据权利要求3所述的方法,其中,所述第二网络的设备包括首节点设备;The method according to claim 3, wherein the device of the second network includes a head node device;所述依据所述预留的带宽资源和所述第一传输带宽调整所述第二传输带宽,获得待使用传输带宽,包括:The adjusting the second transmission bandwidth according to the reserved bandwidth resources and the first transmission bandwidth to obtain the transmission bandwidth to be used includes:依据所述预留的带宽资源和所述第一传输带宽,调整所述首节点设备的第二传输带宽,获得所述首节点设备对应的待使用传输带宽。According to the reserved bandwidth resources and the first transmission bandwidth, the second transmission bandwidth of the first node device is adjusted to obtain the transmission bandwidth corresponding to the first node device to be used.
- 根据权利要求3所述的方法,其中,所述第二网络的设备包括首节点设备和多个第二设备;The method according to claim 3, wherein the device of the second network includes a head node device and a plurality of second devices;所述依据所述预留的时域资源和所述第一传输周期调整所述第二传输周期,获得待使用传输周期,包括:The adjusting the second transmission period according to the reserved time domain resources and the first transmission period to obtain the transmission period to be used includes:依据所述预留的时域资源和所述第一传输周期,确定所述首节点设备的传输周期标签;Determine the transmission cycle label of the head node device according to the reserved time domain resources and the first transmission cycle;依据预设标签映射关系和所述首节点设备的传输周期标签,分别确定多个所述第二设备的传输周期标签,其中,所述预设标签映射关系用于表征所述首节点设备与其连接的第二设备之间的传输周期映射关系以及多个所述第二设备之间的传输周期映射关系;以及According to the preset label mapping relationship and the transmission cycle label of the first node device, a plurality of transmission cycle labels of the second device are respectively determined, wherein the preset label mapping relationship is used to characterize the connection between the first node device and the first node device. The transmission cycle mapping relationship between the second devices and the transmission cycle mapping relationship between a plurality of second devices; and依据所述首节点设备的转发周期标签和多个所述第二设备的传输周期标签,确定所述待使用传输周期。The transmission period to be used is determined based on the forwarding cycle label of the head node device and the transmission cycle labels of multiple second devices.
- 根据权利要求5所述的方法,其中,所述业务数据包括至少两个业务数据报文;The method according to claim 5, wherein the service data includes at least two service data messages;所述依据所述预留的时域资源和所述第一传输周期,确定所述首节点设备的传输周期标签,包括:Determining the transmission cycle label of the head node device based on the reserved time domain resources and the first transmission cycle includes:在确定所述第一传输周期内需要传输至少两个业务数据报文的情况下,依据所述预留的时域资源,分别为所述至少两个业务数据报文分配对应的转发传输周期,获得至少两个转发传输周期的标识;When it is determined that at least two service data messages need to be transmitted within the first transmission period, corresponding forwarding and transmission periods are allocated to the at least two service data messages according to the reserved time domain resources, Obtain the identity of at least two forwarding transmission cycles;依据所述至少两个转发传输周期的标识,确定所述首节点设备的传输周期标签。 The transmission cycle label of the head node device is determined based on the identifiers of the at least two forwarding transmission cycles.
- 根据权利要求5所述的方法,其中,所述依据所述预留的时域资源和所述第一传输周期,确定所述首节点设备的传输周期标签,包括:The method according to claim 5, wherein determining the transmission cycle label of the head node device based on the reserved time domain resources and the first transmission cycle includes:依据所述预留的时域资源,为接收到的至少两个业务数据报文分配一个转发传输周期,获得所述首节点设备的传输周期标签;According to the reserved time domain resources, allocate a forwarding transmission cycle to the at least two received service data messages, and obtain the transmission cycle label of the head node device;其中,所述至少两个业务数据报文是依次在至少两个所述第一传输周期内接收到的报文。Wherein, the at least two service data messages are messages received sequentially within at least two of the first transmission cycles.
- 根据权利要求5所述的方法,其中,多个所述第二设备之间、以及所述首节点设备和所述第二设备之间均采用时钟频率同步机制进行通信;The method according to claim 5, wherein a clock frequency synchronization mechanism is used for communication between a plurality of second devices and between the first node device and the second device;其中,多个所述第二设备的传输周期的起始时刻和终止时刻均不相同,多个所述第二设备的传输周期的切换频率相同;Wherein, the starting time and ending time of the transmission cycles of the plurality of second devices are different, and the switching frequency of the transmission cycles of the plurality of second devices is the same;每个所述第二设备具有多个缓存数据队列,所述缓存数据队列用于存储接收到的上一级网络设备发送的业务数据,每个所述缓存数据队列对应一个传输周期,多个缓存数据队列之间基于轮询的方式确定所述缓存数据队列的工作状态。Each of the second devices has multiple cache data queues. The cache data queues are used to store received service data sent by the upper-level network device. Each of the cache data queues corresponds to a transmission cycle. Multiple caches The working status of the cached data queue is determined based on polling among the data queues.
- 根据权利要求8所述的方法,其中,所述缓存数据队列的工作状态包括:发送状态或接收状态;The method according to claim 8, wherein the working status of the cached data queue includes: sending status or receiving status;在预设时段内,每个所述第二设备的多个所述缓存数据队列中仅有一个所述缓存数据队列的工作状态为所述发送状态,其他所述缓存数据队列的工作状态为所述接收状态。Within a preset period, only one of the plurality of cached data queues of each second device has a working status of the sending state, and the working status of the other cached data queues is the sending status. Describe the receiving status.
- 根据权利要求8或9所述的方法,其中,所述响应于所述第一网络的设备发送的业务数据,依据所述待使用传输参数在所述第二网络中传输所述业务数据,包括:The method according to claim 8 or 9, wherein in response to the service data sent by the device of the first network, transmitting the service data in the second network according to the transmission parameters to be used includes: :所述首节点设备依据所述业务数据和所述第二设备的传输周期标签,构造传输消息;The first node device constructs a transmission message based on the service data and the transmission cycle tag of the second device;向与所述首节点设备连接的第二设备发送所述传输消息,以使 所述第二设备基于所述传输消息中的传输周期标签确定缓存数据队列标识,并将所述业务数据存储至所述缓存数据队列标识对应的缓存数据队列中;以及Send the transmission message to a second device connected to the head node device, so that The second device determines the cache data queue identifier based on the transmission cycle tag in the transmission message, and stores the service data in the cache data queue corresponding to the cache data queue identifier; and在确定所述缓存数据队列标识对应的缓存数据队列的工作状态为所述发送状态的情况下,将所述业务数据转发给其他的第二设备。When it is determined that the working state of the cached data queue corresponding to the cached data queue identifier is the sending state, the service data is forwarded to another second device.
- 根据权利要求1所述的方法,其中,所述第一网络的设备包括尾节点设备和多个第一设备,所述第二网络的设备包括首节点设备和多个第二设备,所述尾节点设备与所述首节点设备通信连接;The method according to claim 1, wherein the devices of the first network include a tail node device and a plurality of first devices, the devices of the second network include a head node device and a plurality of second devices, and the tail node device includes a head node device and a plurality of second devices. The node device is communicatively connected to the first node device;其中,多个所述第一设备之间、以及所述尾节点设备与所述首节点设备之间均采用时间同步机制进行通信。Wherein, a time synchronization mechanism is used for communication between multiple first devices and between the tail node device and the first node device.
- 根据权利要求11所述的方法,其中,每个所述第一设备具有两个缓存数据队列,所述两个缓存数据队列的入队门控的工作状态互斥,所述两个缓存数据队列的出队门控的工作状态互斥,每个所述缓存数据队列的入队门控的工作状态和出队门控的工作状态互斥,所述工作状态包括打开状态或关闭状态。The method according to claim 11, wherein each first device has two cache data queues, the working states of the enqueue gate control of the two cache data queues are mutually exclusive, and the two cache data queues The working status of the dequeuing gate is mutually exclusive. The working status of the enqueuing gate and the working status of the dequeuing gate of each cache data queue are mutually exclusive. The working status includes an open state or a closed state.
- 根据权利要求12所述的方法,其中,在确定所述入队门控的状态为所述打开状态的情况下,所述缓存数据队列用于存储所述业务数据;The method according to claim 12, wherein, when it is determined that the state of the queue entry gate is the open state, the cache data queue is used to store the service data;在确定所述出队门控的状态为所述打开状态的情况下,所述缓存数据队列用于输出所述业务数据;When it is determined that the status of the dequeue gate control is the open status, the cache data queue is used to output the service data;在预设传输周期内,所述入队门控的工作状态和所述出队门控的工作状态均保持不变。Within the preset transmission period, the working status of the queue entry gate control and the working status of the queue exit gate control remain unchanged.
- 根据权利要求2所述的方法,其中,所述依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数之前,还包括:The method according to claim 2, wherein adjusting the second transmission parameter according to the first transmission parameter and a preset parameter mapping relationship, and before obtaining the transmission parameter to be used, further includes:获取所述第一网络中的传输延迟时长,其中,所述传输延迟时 长是基于所述第一网络中的设备数量和所述第一传输周期确定的时长;Obtain the transmission delay duration in the first network, where the transmission delay duration The length is a length determined based on the number of devices in the first network and the first transmission cycle;在确定所述第一网络中的传输延迟时长不在预设延迟时长范围内,且需要将所述第一网络的设备发送的业务数据在所述第二网络中进行传输的情况下,确定需要对所述第二网络的第二传输参数进行调整。When it is determined that the transmission delay duration in the first network is not within the preset delay duration range, and the service data sent by the device of the first network needs to be transmitted in the second network, it is determined that the The second transmission parameter of the second network is adjusted.
- 一种业务数据的传输方法,应用于第一网络的设备,包括:A method of transmitting business data, applied to the equipment of the first network, including:向第二网络的设备发送第一传输参数,以供所述第二网络的设备依据所述第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,所述第一网络和所述第二网络为传输时延不同的两个通信网络,所述第二传输参数为所述第二网络的设备的传输参数;以及Send the first transmission parameter to the device of the second network, so that the device of the second network can adjust the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameter to be used, wherein , the first network and the second network are two communication networks with different transmission delays, and the second transmission parameter is a transmission parameter of a device of the second network; and向所述第二网络的设备发送业务数据,以使所述第二网络的设备依据所述待使用传输参数在所述第二网络中传输所述业务数据。Send service data to the device of the second network, so that the device of the second network transmits the service data in the second network according to the transmission parameters to be used.
- 一种业务数据的传输设备,所述业务数据的传输设备为第二网络中的设备,包括:A service data transmission device, which is a device in a second network, including:边缘周期整形器,被配置为依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,所述第一传输参数为第一网络发送的参数,所述第二传输参数为所述第二网络的设备的传输参数,所述第一网络和所述第二网络为传输时延不同的两个通信网络;以及an edge period shaper configured to adjust the second transmission parameter according to the first transmission parameter and a preset parameter mapping relationship to obtain the transmission parameter to be used, where the first transmission parameter is a parameter sent by the first network, The second transmission parameter is a transmission parameter of a device of the second network, and the first network and the second network are two communication networks with different transmission delays; and传输模块,被配置为响应于所述第一网络的设备发送的业务数据,依据所述待使用传输参数在所述第二网络中传输所述业务数据。The transmission module is configured to respond to the service data sent by the device of the first network and transmit the service data in the second network according to the transmission parameter to be used.
- 一种业务数据的传输设备,所述业务数据的传输设备为第一网络中的设备,包括:A service data transmission device, which is a device in a first network, including:第一发送模块,被配置为向第二网络的设备发送第一传输参数,以供所述第二网络的设备依据所述第一传输参数和预设的参数映射 关系对第二传输参数进行调整,获得待使用传输参数,其中,所述第一网络和所述第二网络为传输时延不同的两个通信网络,所述第二传输参数为所述第二网络的设备的传输参数;以及The first sending module is configured to send the first transmission parameter to the device of the second network, so that the device of the second network can map according to the first transmission parameter and the preset parameter. The second transmission parameter is adjusted to obtain the transmission parameter to be used, wherein the first network and the second network are two communication networks with different transmission delays, and the second transmission parameter is the second transmission parameter. Transmission parameters of the network’s devices; and第二发送模块,被配置为向所述第二网络的设备发送业务数据,以使所述第二网络的设备依据所述待使用传输参数在所述第二网络中传输所述业务数据。The second sending module is configured to send service data to the device of the second network, so that the device of the second network transmits the service data in the second network according to the transmission parameter to be used.
- 一种电子设备,包括:An electronic device including:一个或多个处理器;one or more processors;存储器,其上存储有一个或多个计算机程序,所述一个或多个计算机程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-14中任一项,或如权利要求15所述的业务数据的传输方法。A memory having one or more computer programs stored thereon, said one or more computer programs being executed by said one or more processors, such that said one or more processors implement any of claims 1-14 One item, or the service data transmission method as claimed in claim 15.
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行以实现如权利要求1-14中任一项,或如权利要求15所述的业务数据的传输方法。 A computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program is executed by a processor to implement any one of claims 1-14, or the business as claimed in claim 15 Data transmission method.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210710778.6A CN117319163A (en) | 2022-06-22 | 2022-06-22 | Transmission method, device, electronic device and storage medium for service data |
CN202210710778.6 | 2022-06-22 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023246471A1 true WO2023246471A1 (en) | 2023-12-28 |
Family
ID=89295903
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/097960 WO2023246471A1 (en) | 2022-06-22 | 2023-06-02 | Service data transmission method, and device, electronic device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN117319163A (en) |
WO (1) | WO2023246471A1 (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102711179A (en) * | 2012-05-04 | 2012-10-03 | 北京邮电大学 | Multi-service dynamic bandwidth distribution method in heterogeneous wireless network environment |
CN110266511A (en) * | 2019-04-11 | 2019-09-20 | 中国联合网络通信集团有限公司 | Band width configuration method and apparatus |
CN113630902A (en) * | 2021-08-19 | 2021-11-09 | 联想(北京)有限公司 | Data packet transmission method based on network service quality and related equipment |
CN113726679A (en) * | 2020-05-25 | 2021-11-30 | 华为技术有限公司 | Dynamically configurable data transmission method, device, equipment and storage medium |
US20220103644A1 (en) * | 2020-09-29 | 2022-03-31 | Samsung Electronics Co., Ltd. | Method and apparatus for renewing subscription for network data analysis in wireless communication system |
CN116133131A (en) * | 2021-11-12 | 2023-05-16 | 中国移动通信有限公司研究院 | Information transmission method and equipment |
-
2022
- 2022-06-22 CN CN202210710778.6A patent/CN117319163A/en active Pending
-
2023
- 2023-06-02 WO PCT/CN2023/097960 patent/WO2023246471A1/en unknown
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102711179A (en) * | 2012-05-04 | 2012-10-03 | 北京邮电大学 | Multi-service dynamic bandwidth distribution method in heterogeneous wireless network environment |
CN110266511A (en) * | 2019-04-11 | 2019-09-20 | 中国联合网络通信集团有限公司 | Band width configuration method and apparatus |
CN113726679A (en) * | 2020-05-25 | 2021-11-30 | 华为技术有限公司 | Dynamically configurable data transmission method, device, equipment and storage medium |
US20220103644A1 (en) * | 2020-09-29 | 2022-03-31 | Samsung Electronics Co., Ltd. | Method and apparatus for renewing subscription for network data analysis in wireless communication system |
CN113630902A (en) * | 2021-08-19 | 2021-11-09 | 联想(北京)有限公司 | Data packet transmission method based on network service quality and related equipment |
CN116133131A (en) * | 2021-11-12 | 2023-05-16 | 中国移动通信有限公司研究院 | Information transmission method and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN117319163A (en) | 2023-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100550700C (en) | The communication system and the method that are used for the synchronous communication cycle | |
US20240214323A1 (en) | Packet transmission method and apparatus | |
Guck et al. | Achieving end-to-end real-time quality of service with software defined networking | |
US20240098033A1 (en) | Centralized network configuration entity and time-sensitive network control system comprising same | |
US11616586B2 (en) | Period mapping method and network device | |
Garbugli et al. | End-to-end qos management in self-configuring tsn networks | |
CN116711287A (en) | Circular Queue and Forwarding (CQF) segmentation | |
WO2021000754A1 (en) | Measurement reporting method and network node | |
Gogolev et al. | A simpler tsn? traffic scheduling vs. preemption | |
Bigo et al. | Dynamic deterministic digital infrastructure for time-sensitive applications in factory floors | |
CN113315668B (en) | Method, node device and storage medium for adaptively adjusting network configuration | |
Hummen et al. | Tsn–time sensitive networking | |
US20230090803A1 (en) | Network Infrastructure Device, Communication Terminal and Method for Synchronizing Control Applications via a Communication Network for Transferring Time-Critical Data | |
WO2023246471A1 (en) | Service data transmission method, and device, electronic device and storage medium | |
Luo et al. | Hierarchical computing network collaboration architecture for industrial Internet of Things | |
US11271772B2 (en) | Method for transmitting data and system comprising communicating entity | |
CN115242728B (en) | Message transmission method and device | |
Liu et al. | Joint routing and scheduling for cqf | |
EP4304268A1 (en) | Time slot allocation processing method, and device and storage medium | |
Elshuber et al. | Dependable and predictable time-triggered Ethernet networks with COTS components | |
WO2024055897A1 (en) | Message processing methods, transmission method, communication device and system, medium, and product | |
EP4425870A1 (en) | Packet transmission | |
WO2024055898A1 (en) | Message processing method, message transmission method, communication device, system, medium, and product | |
Eckert et al. | High Precision Latency Forwarding for Wide Area Networks Through Intelligent In-Packet Header Processing (gLBF) | |
CN115396378B (en) | Cross-domain collaborative delay sensitive network scheduling method and system based on time slot mapping |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23826120 Country of ref document: EP Kind code of ref document: A1 |