[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN117319163A - Business data transmission methods, equipment, electronic equipment and storage media - Google Patents

Business data transmission methods, equipment, electronic equipment and storage media Download PDF

Info

Publication number
CN117319163A
CN117319163A CN202210710778.6A CN202210710778A CN117319163A CN 117319163 A CN117319163 A CN 117319163A CN 202210710778 A CN202210710778 A CN 202210710778A CN 117319163 A CN117319163 A CN 117319163A
Authority
CN
China
Prior art keywords
transmission
network
service data
parameter
bandwidth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210710778.6A
Other languages
Chinese (zh)
Inventor
刘峰
汪硕
黄玉东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Beijing University of Posts and Telecommunications
Original Assignee
ZTE Corp
Beijing University of Posts and Telecommunications
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp, Beijing University of Posts and Telecommunications filed Critical ZTE Corp
Priority to CN202210710778.6A priority Critical patent/CN117319163A/en
Priority to PCT/CN2023/097960 priority patent/WO2023246471A1/en
Publication of CN117319163A publication Critical patent/CN117319163A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/022Multivendor or multi-standard integration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0226Mapping or translating multiple network management protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/087Jitter
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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 application provides a transmission method, equipment, electronic equipment and storage medium of service data, and relates to the technical field of communication. The method comprises the following steps: adjusting a second transmission parameter according to a first transmission parameter and a preset parameter mapping relation to obtain a transmission parameter to be used, wherein the first transmission parameter is a parameter sent by equipment of a first network, the second transmission parameter is a transmission parameter of equipment of a second network, and the first network and the second network are two communication networks with different transmission delays; and transmitting the service data in the second network according to the transmission parameters to be used in response to the service data transmitted by the equipment of the first network. The data transmission with cross-domain and controllable transmission delay is realized, the industrial requirement of high time precision is met, and the development of the industrial field is promoted.

Description

业务数据的传输方法、设备、电子设备和存储介质Business data transmission methods, equipment, electronic equipment and storage media

技术领域Technical field

本申请涉及通信技术领域,具体涉及一种业务数据的传输方法、设备、电子设备和存储介质。This application relates to the field of communication technology, and specifically to a business data transmission method, equipment, electronic equipment and storage medium.

背景技术Background technique

传统的通信网络多采用尽力而为的传输方式传输业务数据,但会存在传输时延和传输抖动不可控的问题。随着通信技术在工业领域和车联网领域中的应用与发展,针对业务数据的传输时延和传输抖动都提出了更高的要求。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 Transmitting through the WAN reduces the controllability of data transmission delay in the WAN, cannot meet cross-domain remote industrial control requirements, cannot meet the above-mentioned industrial needs, and hinders the development of the industrial field.

发明内容Contents of the invention

本申请提供一种业务数据的传输方法、设备、电子设备和存储介质。This application provides a business data transmission method, equipment, electronic equipment and storage medium.

本申请实施例提供一种业务数据的传输方法,应用于第二网络的设备,方法包括:依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,第一传输参数为第一网络的设备发送的参数,第二传输参数为第二网络的设备的传输参数,第一网络和第二网络为传输时延不同的两个通信网络;依据参数映射关系和第一传输参数对第二传输参数进行调整,获得待使用传输参数;响应于第一网络的设备发送的业务数据,依据待使用传输参数在第二网络中传输业务数据。Embodiments of the present application provide a method of transmitting service data, which is applied to equipment in 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, Among them, 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 parameters The mapping relationship and the first transmission parameter adjust the second 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.

本申请实施例提供一种业务数据的传输方法,应用于第一网络的设备,方法包括:向第二网络的设备发送第一传输参数,以供第二网络的设备依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,第一网络和第二网络为传输时延不同的两个通信网络,第二传输参数为第二网络的设备的传输参数;向第二网络的设备发送业务数据,以使第二网络的设备依据待使用传输参数在第二网络中传输业务数据。Embodiments of the present application provide a method of transmitting service data, which is applied to a device of a first network. The method includes: sending a first transmission parameter to a device of a second network, so that the device of the second network can use the first transmission parameter and a predetermined Adjust the second transmission parameter by assuming a 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, and the second transmission parameter is the parameter of the device of the second network. Transmitting parameters: sending 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.

本申请实施例提供一种业务数据的传输设备,业务数据的传输设备为第二网络中的设备,其包括:边缘周期整形器,被配置为依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,第一传输参数为第一网络发送的参数,第二传输参数为第二网络的设备的传输参数,第一网络和第二网络为传输时延不同的两个通信网络;传输模块,被配置为响应于第一网络的设备发送的业务数据,依据待使用传输参数在第二网络中传输业务数据。Embodiments of the present application provide a service data transmission device. The service data transmission device is a device in a second network, which includes: an edge period shaper configured to pair a first transmission parameter with a preset parameter mapping relationship. The second transmission parameters are adjusted to obtain the transmission parameters to be used, where the first transmission parameters are parameters sent by the first network, the second transmission parameters are transmission parameters of the equipment of the second network, and the first network and the second network are transmission parameters. Two communication networks with different delays; a transmission module configured to respond to service data sent by a device of the first network and transmit the service data in the second network according to the transmission parameters to be used.

本申请实施例提供一种业务数据的传输设备,业务数据的传输设备为第一网络中的设备,其包括:第一发送模块,被配置为向第二网络的设备发送第一传输参数,以供第二网络的设备依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,第一网络和第二网络为传输时延不同的两个通信网络,第二传输参数为第二网络的设备的传输参数;第二发送模块,被配置为向第二网络的设备发送业务数据,以使第二网络的设备依据待使用传输参数在第二网络中传输业务数据。An embodiment of the present application provides a service data transmission device. The service data transmission device is a device in a first network, which includes: a first sending module configured to send a first transmission parameter to a device in a second network. It is for the equipment of the second network to adjust 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 communications with different transmission delays. network, the second transmission parameter is the 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 data to the device of the second network based on the transmission parameters to be used. to transmit business data.

本申请实施例提供一种电子设备,包括:一个或多个处理器;存储器,其上存储有一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现本申请实施例中的任意一种业务数据的传输方法。Embodiments of the present application provide an electronic device, including: one or more processors; and a memory on which one or more programs are stored. When one or more programs are executed by one or more processors, one or more A processor implements any service data transmission method in the embodiment of the present application.

本申请实施例提供了一种可读存储介质,该可读存储介质存储有计算机程序,计算机程序被处理器执行时实现本申请实施例中的任意一种业务数据的传输方法。Embodiments of the present application provide a readable storage medium that stores a computer program. When the computer program is executed by a processor, any one of the service data transmission methods in the embodiments of the present application is implemented.

根据本申请实施例的业务数据的传输方法、设备、电子设备和存储介质,通过依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,以使待使用传输参数能够与第一传输参数相匹配,提升数据在第二网络中的传输时延的可控性;从而在接收到第一网络的设备发送的业务数据后,能够依据待使用传输参数在第二网络中传输业务数据,以实现跨域的、且传输时延可控的数据传输,满足时间精度高的工业需求,促进工业领域的发展。According to the business data transmission method, equipment, electronic equipment and storage medium of the embodiment of the present application, 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 are obtained. The used transmission parameters can match the first transmission parameters, improving 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 parameters can be used according to the transmission parameters to be used. Business data is transmitted in the second network to achieve cross-domain data transmission with controllable transmission delay, meet industrial needs with high time precision, and promote the development of the industrial field.

关于本申请的以上实施例和其他方面以及其实现方式,在附图说明、具体实施方式和权利要求中提供更多说明。Regarding the above embodiments and other aspects of the application and the manner in which they may be implemented, further description is provided in the description of the drawings, the detailed description and the claims.

附图说明Description of drawings

图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 the 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.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚明白,下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。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 (such as the second device 120) is processing business data, the business data needs to be processed by the table lookup module 121, the rate limiting module 122, the queue entry module 123, the cache module 124 and the scheduling module 125 in sequence. Only then can the second device 120 finish processing the service 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 very long. It is 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, device, electronic device, and 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所示,本申请实施例中的业务数据的传输方法包括但不限于以下步骤。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.

步骤S210,依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数。Step S210: Adjust the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameters 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 an optional solution, 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 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 first The devices of the second network may be servers or node devices in the wide area network, etc., and the second transmission parameters 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 period mapping relationship and/or a bandwidth mapping relationship, where the period mapping relationship is a mapping relationship between the transmission bandwidth of the local area network and the transmission period of the wide area network, and the bandwidth mapping relationship is a mapping relationship between the transmission bandwidth of the local area network and the transmission period of the wide area network. Mapping relationship between transmission bandwidths.

步骤S220,响应于第一网络的设备发送的业务数据,依据待使用传输参数在第二网络中传输业务数据。Step S220: 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 parameters to be used.

在本实施例中,通过依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,以使待使用传输参数能够与第一传输参数相匹配,提升数据在第二网络中的传输时延的可控性;从而在接收到第一网络的设备发送的业务数据后,能够依据待使用传输参数在第二网络中传输业务数据,以实现跨域的、且传输时延可控的数据传输,满足时间精度高的工业需求,促进工业领域的发展。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 specific implementations, 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.

其中,多个第一设备之间、以及尾节点设备与首节点设备之间均采用时间同步机制进行通信。Among them, 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之间采用时间同步机制进行通信。Among them, 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。Among them, when queue 1 and queue 2 perform data transmission, the transmission time can be divided into multiple equal time intervals, and each time interval can be used as a time period T (that is, the preset transmission period). The time period T includes: Even period 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 queue-out gate control of queue 1 is "off" (that is, the closed state), and the status of the queue-entry gate control of queue 2 is "on" (that is, the 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 queue entry 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.

其中,在确定入队门控的状态为打开状态的情况下,缓存数据队列用于存储业务数据;在确定出队门控的状态为打开状态的情况下,缓存数据队列用于输出业务数据;在预设传输周期内,入队门控的工作状态和出队门控的工作状态均保持不变。Among them, 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; Within the preset 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 before forwarding 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 specific 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 applicable to small-scale networking (for example, local area network or metropolitan area network, etc.). Time synchronization can be achieved between all devices in the first 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 within the preset transmission period. data, thereby achieving deterministic business 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 cycles of multiple second devices are different, but, The length of the transmission cycle of each second device is the same, 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 queue is used to store the previous received For business data sent by level 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, unit time The number of internal switching transmission cycles is the same, and the switching frequency 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 specific implementations, the working status of the cached data queue includes: sending status or receiving status; within a preset period, only one of the multiple cached data queues of each second device has a working status of 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 device.

需要说明的是,第二网络中的各个设备还可以根据业务数据的服务需求,提前规划好业务数据报文的传输路径、时延、带宽和队列资源等,通过确定传输时间的周期参数,生成每个设备的转发周期标签(如图4所示的标签1、标签2和标签3等),并将转发周期标签分发给第二网络中的各个设备,以加快业务数据的传输。It should be noted that each device in the second network can also plan the transmission path, delay, bandwidth, queue resources, etc. of the business data packets in advance according to the service requirements of the business data, and generate the transmission path by determining the cycle parameters of the transmission time. The forwarding cycle label of each device (label 1, label 2, label 3, etc. as shown in Figure 4), and the forwarding cycle label is distributed to each device in the second network to speed up the transmission of service 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, where tag 1 Indicates that the first message needs to be received by a specified cache data queue in device E. Among them, 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, where label 2 is used to indicate that the second message needs to be sent to a specified cache data queue in device F. take over.

当设备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, where the label 3 is used to indicate that the third message needs to be sent by a certain device F. A specified buffered data queue (for example, queue 4) is received.

通过上述缓存数据队列的工作状态的变更,以及对应的标签的标识作用,能够使每个设备都在固定的时间周期内进行业务数据的转发,以实现端到端的固定时延的业务数据的传输。Through the changes in the working status of the cached data queue and the identification function of 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 specific implementations, 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中的依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数之前,还包括:Before performing step S210 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, 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=第一传输周期/第二传输周期。Among them, the periodic mapping relationship can be expressed in the form of periodic refraction 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 expressed in the form of 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 the two mapping relationships can be calculated simultaneously to meet the needs of testing in different application scenarios. need.

通过上述周期映射关系和/或带宽映射关系,能够真实反映第一网络和第二网络之间的带宽差异和传输周期的差异,能够使第二网络的设备可以基于上述差异,及时调整第二网络中各个设备的传输周期和传输带宽,提升对业务数据的传输效率。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 specific implementations, adjusting the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship to obtain the transmission parameters to be used includes: determining the reserved time domain resources according to the periodic mapping relationship, and determining the reserved time domain resources according to the reserved The time domain resources and the first transmission period adjust the second transmission period to obtain the transmission period to be used; and/or, determine the reserved bandwidth resources according to the bandwidth mapping relationship, and adjust the second transmission according to the reserved bandwidth resources and the first transmission bandwidth. Bandwidth, 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 another 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 third network can be used to determine the difference in bandwidth between the first network and the second network. The first 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 another 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. Moreover, 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 made more suitable for the network environment in the second network, making the first network and the second transmission period more suitable. Devices in the network 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 specific implementations, the equipment of the second network includes the first node equipment; adjusting the second transmission bandwidth based on the reserved bandwidth resources and the first transmission bandwidth to obtain the transmission bandwidth to be used includes: based on 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. Among them, b is the bandwidth conversion factor.

在一些具体实现中,第二网络的设备包括首节点设备和多个第二设备。In some specific implementations, the devices of the second network include 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)倍的第二传输周期,以使首节点设备能够与第一网络的尾节点设备进行时间上的同步。进一步地,基于该首节点设备的待使用传输周期,推算出其他第二设备的待使用传输周期。Among them, 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 can be determined. The transmission period to be used by the node device is the second transmission period (1-c) times, so that the head node device can perform 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 above-determined transmission period to be used by the head node device and the transmission periods to be used by the plurality of second devices, the transmission period tags of each device in the second network are correspondingly generated, so that the transmission period of each device in the second network is The tag can characterize the period in which each device needs to transmit data, so that each device can transmit business data based on a deterministic time, reduce transmission delays, and enable fast and accurate transmission of business data in the second network.

在一些具体实现中,业务数据包括至少两个业务数据报文;依据预留的时域资源和第一传输周期,确定首节点设备的传输周期标签,包括:在确定第一传输周期内需要传输至少两个业务数据报文的情况下,依据预留的时域资源,分别为至少两个业务数据报文分配对应的转发传输周期,获得至少两个转发传输周期的标识;依据至少两个转发传输周期的标识,确定首节点的传输周期标签。In some specific implementations, 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.

其中,依据预留的时域资源,分别为至少两个业务数据报文分配对应的转发传输周期,能够使至少两个业务数据报文能够分别在对应的转发传输周期内进行数据的传输,避免不同的业务数据之间的干扰,减少业务数据的传输错误比例,提升业务数据的传输效率。Among them, according to the reserved time domain resources, corresponding forwarding and transmission periods are allocated to at least two service data messages, so that at least two service data messages can be transmitted in the corresponding forwarding and transmission periods respectively, which avoids The interference between different 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 head node device can reasonably allocate transmission cycle resources and determine the transmission cycle label of the head node device.

在一些具体实现中,依据预留的时域资源和第一传输周期,确定首节点设备的传输周期标签,包括:依据预留的时域资源,为接收到的至少两个业务数据报文分配一个转发传输周期,获得首节点设备的传输周期标签。In some specific implementations, 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.

其中,至少两个业务数据报文是依次在至少两个第一传输周期内接收到的报文。Wherein, 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 specific implementations, 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. Transmitting the message; sending the transmission message to the second device connected to the first 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 business data in the cache data corresponding to the cache data queue identifier in the queue; 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 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 represent 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 processed in the second network based on the transmission cycle label of the second device. transmission to improve the transmission efficiency of business data.

在一些具体实现中,依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数之前,还包括:获取第一网络中的传输延迟时长;在确定第一网络中的传输延迟时长不在预设延迟时长范围内,且需要将第一网络的设备发送的业务数据在第二网络中进行传输的情况下,确定需要对第二网络的第二传输参数进行调整。In some specific implementations, 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 second devices through which business data passes when transmitted in the second 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 transmission delay duration in the second network can be clarified, thereby determining that the transmission delay duration in the first network is not within the preset delay duration range. Within the situation, 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 second transmission parameters of the second network need to be adjusted so that the adjusted second transmission parameters can satisfy The transmission requirements for business data transmission in the second network speed up the transmission speed of business data in the second network, so that the business data can be transmitted in the second network based on a deterministic transmission duration.

图5示出本申请实施例提供的第二网络中的节点配置信息的生成方法的流程示意图。如图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. 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,第二网络的设备根据业务跨域的应用需求,确定业务数据端到端传输的带宽需求和时延需求。Step S501: The device of the second network determines the bandwidth requirement and delay requirement for end-to-end transmission of service data based on the cross-domain application requirements of the service.

例如,第一网络的设备发送的业务数据,需要经过第二网络进行传输,通过该业务数据的特征,确定在第二网络中传输该业务数据需要使用的传输带宽和传输周期的大小、其中,第一网络的第一传输参数包括第一传输周期和第一传输带宽,第二网络的第二传输参数包括第二传输周期和第二传输带宽。For example, the service data sent by the equipment of the first network needs to be transmitted through the second network. Through the characteristics of the service data, the transmission bandwidth and the size of the transmission cycle required to transmit the service data in the second network are determined, where, 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,第二网络的设备依据第一传输周期和第二传输周期,确定周期映射关系,并基于该周期映射关系确定预留的时域资源。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, for the link Latency is not taken into account.

基于上述第一网络和第二网络的传输周期的计算方式不同,可通过周期映射关系,确定需要预留的时域资源(例如,时间片长度,或传输周期的数量等)。进而使第一网络和第二网络的传输周期能够对齐,方便后续的业务数据的传输。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. This enables the transmission cycles of the first network and the second network to be aligned to facilitate subsequent transmission of service 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,第二网络的设备依据第一传输带宽和第二传输带宽,确定带宽映射关系,并基于带宽映射关系确定预留的带宽资源,进而依据该预留的带宽资源和第一传输带宽调整第二传输带宽,获得能够在第二网络中使用的待使用传输带宽。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 adjusts the bandwidth resources based on the reserved bandwidth resources and the first transmission bandwidth. The second transmission bandwidth is 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 another example, the first network is a local area network and the second network is a wide area network. The transmission bandwidth of the local area network is usually less than 1Gbps, while the transmission bandwidth of the wide area network may exceed 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倍的硬切片带宽。Among them, the link bandwidth of the LAN egress port can be set to BWL, and the link bandwidth of the WAN egress port can be set to BWW. Then the bandwidth conversion factor can be calculated: b=BWL/BWW, so that the first node device of the WAN can At its egress port, b times the hard slice bandwidth is reserved for the LAN egress port.

步骤S504,第二网络的设备获取第一网络在发送业务数据时的发送时间,根据该发送时间和预留的时域资源,确定第二网络的设备接收该业务数据时的接收时间。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中的带宽映射关系,能够明确局域网中的尾节点设备的在发送业务数据的发送时间,进而确定第二网络的设备接收该业务数据时的接收时间。Among them, 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 time when the device of the second network receives the service data can be determined. Receive time.

步骤S505,第二网络的设备根据第二网络的设备接收业务数据时的接收时间,生成周期标签。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 a label value of the head node device of the second network and label values corresponding to multiple second devices in the second network. 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,第二网络的首节点设备将生成的周期标签发送给第二网络中的各个第二设备,以使各个第二设备能够依据获取到的与其对应的标签值,顺序传输业务数据。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 according to the obtained corresponding tag value.

在一些具体实现中,当第二网络中的尾节点设备最终接收到该业务数据时,需要将该业务数据转发给与第一网络的设备的类型相同的目标设备。In some specific implementations, 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 jitter transmission to 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等)。Among them, 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 buffer queues are used in the even-numbered period T0 and the odd-numbered period T1. The data cache queue performs data transmission. The first node device 620 of the second network includes an edge cycle shaper 621, a sending queue 622, and multiple data buffer queues (eg, Q1, Q2, Q3, Q4, etc.).

其中,第一网络的尾节点设备610的出口带宽为1Gbps,传输周期为20微秒(us),假设每个业务数据包的大小为100字节(Bytes),则该第一网络的尾节点设备610中的每个数据缓存队列的最大队列深度为25个业务数据包;Among them, 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 of the first network The maximum queue depth of each data cache queue in device 610 is 25 service 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 first node device 620 of the second 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所示,本申请实施例中的业务数据的传输方法包括但不限于以下步骤。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.

步骤S701,向第二网络的设备发送第一传输参数,以供第二网络的设备依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数。Step S701: 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 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,向第二网络的设备发送业务数据,以使第二网络的设备依据待使用传输参数在第二网络中传输业务数据。Step S702: 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.

其中,业务数据是需要经过第二网络的设备的转发,以使处于不同地理位置上的、与第一网络的设备的类型相同的设备可以精准获得的数据,能够满足不同区域内的业务数据的传输,实现传输时延可控的确定性的数据传输。Among them, the business data needs to be forwarded by the equipment of the second network, so that equipment in different geographical locations and of the same type as the equipment of the first network can accurately obtain data, which can meet the needs of business data in different areas. transmission to achieve 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 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 .

其中,第一局域网801和第二局域网802的传输周期都是TL;并且,第一局域网801内的各个节点设备之间是采用时间同步机制进行通信,第二局域网802内的各个节点设备之间也是采用时间同步机制进行通信。广域网803中的各个节点设备之间是采用时钟频率同步机制进行通信的,该广域网803的转发周期为Tw。对应的,第一局域网801与广域网803之间的周期折算因子c=TL/Tw=2。Among them, 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 communicates with each other. Time synchronization mechanism is also used 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 sends two different service data messages (for example, message 1 and message 2) that need to be transmitted to node B through its egress during the even-numbered period T0, and node B is also within the even-numbered period T0. Receive message 1 and message 2 sent by node A. Based on the transmission method in the first local area network 801 (eg, time synchronization mechanism), Node B forwards the above-mentioned message 1 and message 2 from its egress to node C within the odd period T1. 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 node D in the local 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 for forwarding the data to the node E, and will forward the data to the node E in the period T1. The received message 2 is allocated to cycle T2 for data forwarding 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的转发s周期标签为T6,节点F的转发周期标签为T8等。从而使广域网803的首节点设备(即,节点D)能够将上述不同节点对应的转发周期标签分配个各个节点,以降低不同节点之间在传输业务数据时的传输抖动和传输时延。Through the above determination of the receiving cycles and forwarding cycles of different nodes, cycle labels of different nodes are correspondingly generated. 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, where the first transmission parameter is a parameter sent by the first network, The second transmission parameter is a 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.

传输模块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 specific implementations, 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, used to determine the cycle mapping relationship based on the first transmission cycle and the second transmission cycle; a bandwidth mapping module, used to determine the cycle mapping relationship based on the first transmission bandwidth and the second transmission bandwidth. Bandwidth mapping relationship.

在一些具体实现中,边缘周期整形器1001,具体用于:依据周期映射关系确定预留的时域资源;依据预留的时域资源和第一传输周期调整第二传输周期,获得待使用传输周期;依据带宽映射关系确定预留的带宽资源;依据预留的带宽资源和第一传输带宽调整第二传输带宽,获得待使用传输带宽。In some specific implementations, the edge period shaper 1001 is specifically used 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 to be used period; 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 to obtain the transmission bandwidth to be used.

在一些具体实现中,第二网络的设备包括首节点设备;依据预留的带宽资源和第一传输带宽调整第二传输带宽,获得待使用传输带宽,包括:In some specific implementations, the equipment of the second network includes the first node equipment; the second transmission bandwidth is adjusted according to the reserved bandwidth resources and the first transmission bandwidth to obtain the transmission bandwidth to be used, including:

依据预留的带宽资源和第一传输带宽,调整首节点设备的第二传输带宽,获得首节点设备对应的待使用传输带宽。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 to-be-used transmission bandwidth corresponding to the first node device.

在一些具体实现中,第二网络的设备包括首节点设备和多个第二设备;In some specific implementations, the devices of the second network include a first node device and a plurality of second devices;

依据预留的时域资源和第一传输周期调整第二传输周期,获得待使用传输周期,包括: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, including:

依据预留的时域资源和第一传输周期,确定首节点设备的传输周期标签;Determine the transmission cycle label of the first node device based on 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, the transmission cycle labels of multiple second devices are respectively determined, where the preset label mapping relationship is used to characterize the transmission between the first node device and the second device connected to it Cycle mapping relationship and 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 plurality of second devices.

在一些具体实现中,业务数据包括至少两个业务数据报文;In some specific implementations, the service data includes at least two service data messages;

依据预留的时域资源和第一传输周期,确定首节点设备的传输周期标签,包括:Based on the reserved time domain resources and the first transmission cycle, determine the transmission cycle label of the first node device, including:

在确定第一传输周期内需要传输至少两个业务数据报文的情况下,依据预留的时域资源,分别为至少两个业务数据报文分配对应的转发传输周期,获得至少两个转发传输周期的标识;When it is determined that at least two service data messages need to be transmitted within the first transmission period, corresponding forwarding transmission periods are allocated to the at least two service data messages according to the reserved time domain resources, and at least two forwarding transmissions are obtained. The identification of the cycle;

依据至少两个转发传输周期的标识,确定首节点设备的传输周期标签。Determine the transmission cycle label of the head node device based on the identifiers of at least two forwarding transmission cycles.

在一些具体实现中,依据预留的时域资源和第一传输周期,确定首节点设备的传输周期标签,包括:In some specific implementations, the transmission cycle label of the head node device is determined based on the reserved time domain resources and the first transmission cycle, including:

依据预留的时域资源,为接收到的至少两个业务数据报文分配一个转发传输周期,获得首节点设备的传输周期标签;According to the reserved time domain resources, allocate a forwarding transmission cycle to at least two received service data messages, and obtain the transmission cycle label of the first node device;

其中,至少两个业务数据报文是依次在至少两个第一传输周期内接收到的报文。Wherein, at least two service data packets are packets received sequentially within at least two first transmission cycles.

在一些具体实现中,多个第二设备之间、以及首节点设备和第二设备之间均采用时钟频率同步机制进行通信;In some specific implementations, a clock frequency synchronization mechanism is used for communication between multiple second devices and between the first node device and the second device;

其中,多个第二设备的传输周期的起始时刻和终止时刻均不相同,多个第二设备的传输周期的切换频率相同;Wherein, the start time and end time of the transmission cycles of the multiple second devices are different, and the switching frequency of the transmission cycles of the multiple second devices is the same;

每个第二设备具有多个缓存数据队列,缓存数据队列用于存储接收到的上一级网络设备发送的业务数据,每个缓存数据队列对应一个传输周期,多个缓存数据队列之间基于轮询的方式确定缓存数据队列的工作状态。Each second device has multiple cache data queues. The cache data queues are used to store received service data sent by the upper-level network device. Each cache data queue corresponds to a transmission cycle. Multiple cache data queues are connected based on a round-robin basis. Determine the working status of the cache data queue by querying.

在一些具体实现中,缓存数据队列的工作状态包括:发送状态或接收状态;In some specific implementations, the working status of the cache data queue includes: sending status or receiving status;

在预设时段内,每个第二设备的多个缓存数据队列中仅有一个缓存数据队列的工作状态为发送状态,其他缓存数据队列的工作状态为接收状态。Within the preset period, only one of the multiple cached data queues of each second device has a working status of sending state, and the working status of other cached data queues is a receiving state.

在一些具体实现中,传输模块1002,具体用于:首节点设备依据业务数据和第二设备的传输周期标签,构造传输消息;In some specific implementations, the transmission module 1002 is specifically used to: the first node device constructs a transmission message based on the service data and the transmission cycle tag of the second device;

向与首节点设备连接的第二设备发送传输消息,以使第二设备基于传输消息中的传输周期标签确定缓存数据队列标识,并将业务数据存储至缓存数据队列标识对应的缓存数据队列中;Send a transmission message to the second device connected to the first 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 business data in the cache data queue corresponding to the cache data queue identifier;

在确定缓存数据队列标识对应的缓存数据队列的工作状态为发送状态的情况下,将业务数据转发给其他的第二设备。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.

在一些具体实现中,第一网络的设备包括尾节点设备和多个第一设备,第二网络的设备包括首节点设备和多个第二设备,尾节点设备与首节点设备通信连接;In some specific implementations, 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;

其中,多个第一设备之间、以及尾节点设备与首节点设备之间均采用时间同步机制进行通信。Among them, a time synchronization mechanism is used for communication between multiple first devices and between the tail node device and the first node device.

在一些具体实现中,每个第一设备具有两个缓存数据队列,两个缓存数据队列的入队门控的工作状态互斥,两个缓存数据队列的出队门控的工作状态互斥,每个缓存数据队列的入队门控的工作状态和出队门控的工作状态互斥,工作状态包括打开状态或关闭状态。In some specific implementations, each first device has two cache data queues, the working states of the entry 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 specific implementations, when it is determined that the status of the queue entry 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;

在预设传输周期内,入队门控的工作状态和出队门控的工作状态均保持不变。Within the preset transmission period, the working status of the in-queue gate and the working status of the out-queue gate remain unchanged.

在一些具体实现中,业务数据的传输设备1000,还包括:In some specific implementations, the service data transmission device 1000 also includes:

获取模块,用于获取第一网络中的传输延迟时长,其中,传输延迟时长是基于第一网络中的设备数量和第一传输周期确定的时长;An acquisition module, configured to obtain the transmission delay duration in the first network, where the transmission delay duration is a duration determined based on the number of devices in the first network and the first transmission cycle;

确定模块,用于在确定第一网络中的传输延迟时长不在预设延迟时长范围内,且需要将第一网络的设备发送的业务数据在第二网络中进行传输的情况下,确定需要对第二网络的第二传输参数进行调整。Determining module, configured to determine that the transmission delay time in the first 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, determine that the third network needs to be transmitted. The second transmission parameters of the second network are 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.

其中,第一网络和第二网络为传输时延不同的两个通信网络,第二传输参数为第二网络的设备的传输参数。Wherein, 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 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, and meeting the industrial needs of high time accuracy. , to 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的外部供用户使用。Specifically, 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, the output information is temporarily or permanently stored in the memory 1204, and then the output information is transmitted 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 program; a processor configured to run the program stored in the memory to The service data transmission method described in the above embodiment is executed.

在一个实施例中,图12所示的计算设备可以被实现为一种业务数据的传输系统,该业务数据的传输系统可以包括:存储器,被配置为存储程序;处理器,被配置为运行存储器中存储的程序,以执行上述实施例描述的业务数据的传输方法。In one embodiment, the computing device shown in Figure 12 can be implemented as a business data transmission system. The business data transmission system can include: a memory configured to store programs; a processor configured to run the memory program stored in to execute the service data transmission method described in the above embodiment.

以上所述,仅为本申请的示例性实施例而已,并非用于限定本申请的保护范围。一般来说,本申请的多种实施例可以在硬件或专用电路、软件、逻辑或其任何组合中实现。例如,一些方面可以被实现在硬件中,而其它方面可以被实现在可以被控制器、微处理器或其它计算装置执行的固件或软件中,尽管本申请不限于此。The above descriptions are only exemplary embodiments of the present application and are not intended 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 may 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)

1.一种业务数据的传输方法,其特征在于,应用于第二网络的设备,所述方法包括:1. A method of transmitting service data, characterized in that it is applied to equipment of the second network, and the method includes: 依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,所述第一传输参数为第一网络的设备发送的参数,所述第二传输参数为所述第二网络的设备的传输参数,所述第一网络和所述第二网络为传输时延不同的两个通信网络;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; 响应于所述第一网络的设备发送的业务数据,依据所述待使用传输参数在所述第二网络中传输所述业务数据。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. 2.根据权利要求1所述的方法,其特征在于,所述预设的参数映射关系包括:周期映射关系和/或带宽映射关系,所述第一传输参数包括第一传输周期和/或第一传输带宽,所述第二传输参数包括第二传输周期和/或第二传输带宽;2. The method according to claim 1, characterized in that 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 period. A transmission bandwidth, the second transmission parameter includes a second transmission period and/or a second transmission bandwidth; 所述依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数之前,还包括:Adjusting the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship, before obtaining the transmission parameter to be used, also includes: 依据所述第一传输周期和所述第二传输周期,确定所述周期映射关系;和/或,Determine the period mapping relationship according to the first transmission period and the second transmission period; and/or, 依据所述第一传输带宽和所述第二传输带宽,确定所述带宽映射关系。The bandwidth mapping relationship is determined according to the first transmission bandwidth and the second transmission bandwidth. 3.根据权利要求2所述的方法,其特征在于,所述依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,包括:3. The method according to claim 2, characterized in that 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. 4.根据权利要求3所述的方法,其特征在于,所述第二网络的设备包括首节点设备;4. The method according to claim 3, characterized in that 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. 5.根据权利要求3所述的方法,其特征在于,所述第二网络的设备包括首节点设备和多个第二设备;5. 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; 依据所述首节点设备的转发周期标签和多个所述第二设备的传输周期标签,确定所述待使用传输周期。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. 6.根据权利要求5所述的方法,其特征在于,所述业务数据包括至少两个业务数据报文;6. The method according to claim 5, characterized in that 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. 7.根据权利要求5所述的方法,其特征在于,所述依据所述预留的时域资源和所述第一传输周期,确定所述首节点设备的传输周期标签,包括:7. The method of 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. 8.根据权利要求5所述的方法,其特征在于,多个所述第二设备之间、以及所述首节点设备和所述第二设备之间均采用时钟频率同步机制进行通信;8. The method according to claim 5, characterized in that 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. 9.根据权利要求8所述的方法,其特征在于,所述缓存数据队列的工作状态包括:发送状态或接收状态;9. The method according to claim 8, characterized in that 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. 10.根据权利要求8或9所述的方法,其特征在于,所述响应于所述第一网络的设备发送的业务数据,依据所述待使用传输参数在所述第二网络中传输所述业务数据,包括:10. The method according to claim 8 or 9, characterized in that, in response to the service data sent by the device of the first network, the transmission parameter to be used is transmitted in the second network. Business data, including: 所述首节点设备依据所述业务数据和所述第二设备的传输周期标签,构造传输消息;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 transmission message. In the cache data queue corresponding to the cache data queue identifier; 在确定所述缓存数据队列标识对应的缓存数据队列的工作状态为所述发送状态的情况下,将所述业务数据转发给其他的第二设备。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. 11.根据权利要求1所述的方法,其特征在于,所述第一网络的设备包括尾节点设备和多个第一设备,所述第二网络的设备包括首节点设备和多个第二设备,所述尾节点设备与所述首节点设备通信连接;11. The method of claim 1, wherein the devices of the first network include a tail node device and a plurality of first devices, and 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; 其中,多个所述第一设备之间、以及所述尾节点设备与所述首节点设备之间均采用时间同步机制进行通信。Wherein, a time synchronization mechanism is used for communication between multiple first devices and between the tail node device and the first node device. 12.根据权利要求11所述的方法,其特征在于,每个所述第一设备具有两个缓存数据队列,所述两个缓存数据队列的入队门控的工作状态互斥,所述两个缓存数据队列的出队门控的工作状态互斥,每个所述缓存数据队列的入队门控的工作状态和出队门控的工作状态互斥,所述工作状态包括打开状态或关闭状态。12. The method according to claim 11, characterized in that each of the first devices has two cache data queues, the working states of the entry gate control of the two cache data queues are mutually exclusive, and the two cache data queues are mutually exclusive. The working status of the dequeuing gate control of each cached data queue is mutually exclusive. The working status of the enqueuing gate control and the working status of the dequeuing gate control of each cached data queue are mutually exclusive. The working status includes an open state or a closed state. state. 13.根据权利要求12所述的方法,其特征在于,在确定所述入队门控的状态为所述打开状态的情况下,所述缓存数据队列用于存储所述业务数据;13. The method according to claim 12, characterized in that, 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. 14.根据权利要求2所述的方法,其特征在于,所述依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数之前,还包括:14. The method according to claim 2, characterized in that, before adjusting the second transmission parameter according to the first transmission parameter and a preset parameter mapping relationship, and obtaining the transmission parameter to be used, the method further includes: 获取所述第一网络中的传输延迟时长,其中,所述传输延迟时长是基于所述第一网络中的设备数量和所述第一传输周期确定的时长;Obtain the transmission delay duration in the first network, wherein the transmission delay duration is a duration 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. 15.一种业务数据的传输方法,其特征在于,应用于第一网络的设备,所述方法包括:15. A method of transmitting service data, characterized in that it is applied to equipment of the first network, and the method includes: 向第二网络的设备发送第一传输参数,以供所述第二网络的设备依据所述第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,所述第一网络和所述第二网络为传输时延不同的两个通信网络,所述第二传输参数为所述第二网络的设备的传输参数;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 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. 16.一种业务数据的传输设备,其特征在于,所述业务数据的传输设备为第二网络中的设备,其包括:16. A service data transmission device, characterized in that the service data transmission device is a device in the second network, which includes: 边缘周期整形器,被配置为依据第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,所述第一传输参数为第一网络发送的参数,所述第二传输参数为所述第二网络的设备的传输参数,所述第一网络和所述第二网络为传输时延不同的两个通信网络;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 in the second network, and the first network and the second network are two communication networks with different transmission delays; 传输模块,被配置为响应于所述第一网络的设备发送的业务数据,依据所述待使用传输参数在所述第二网络中传输所述业务数据。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. 17.一种业务数据的传输设备,其特征在于,所述业务数据的传输设备为第一网络中的设备,其包括:17. A service data transmission device, characterized in that the service data transmission device is a device in the first network, which includes: 第一发送模块,被配置为向第二网络的设备发送第一传输参数,以供所述第二网络的设备依据所述第一传输参数和预设的参数映射关系对第二传输参数进行调整,获得待使用传输参数,其中,所述第一网络和所述第二网络为传输时延不同的两个通信网络,所述第二传输参数为所述第二网络的设备的传输参数;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 adjusts the second transmission parameter according to the first transmission parameter and the preset parameter mapping relationship. , obtain the transmission parameters 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 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 the service data in the second network according to the transmission parameter to be used. 18.一种电子设备,其特征在于,包括:18. An electronic device, characterized in that it includes: 一个或多个处理器;one or more processors; 存储器,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-14中任一项,或如权利要求15所述的业务数据的传输方法。A memory having one or more programs stored thereon, which when the one or more programs are executed by the one or more processors, causes the one or more processors to implement any one of claims 1-14 item, or the service data transmission method as claimed in claim 15. 19.一种可读存储介质,其特征在于,所述可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-14中任一项,或如权利要求15所述的业务数据的传输方法。19. A readable storage medium, characterized in that the readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements any one of claims 1-14, or claim 15 The described business data transmission method.
CN202210710778.6A 2022-06-22 2022-06-22 Business data transmission methods, equipment, electronic equipment and storage media Pending CN117319163A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210710778.6A CN117319163A (en) 2022-06-22 2022-06-22 Business data transmission methods, equipment, electronic equipment and storage media
PCT/CN2023/097960 WO2023246471A1 (en) 2022-06-22 2023-06-02 Service data transmission method, and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210710778.6A CN117319163A (en) 2022-06-22 2022-06-22 Business data transmission methods, equipment, electronic equipment and storage media

Publications (1)

Publication Number Publication Date
CN117319163A true CN117319163A (en) 2023-12-29

Family

ID=89295903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210710778.6A Pending CN117319163A (en) 2022-06-22 2022-06-22 Business data transmission methods, equipment, electronic equipment and storage media

Country Status (2)

Country Link
CN (1) CN117319163A (en)
WO (1) WO2023246471A1 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711179B (en) * 2012-05-04 2015-10-28 北京邮电大学 Multi-service dynamic bandwidth distribution method under heterogeneous wireless network environment
CN110266511B (en) * 2019-04-11 2021-10-15 中国联合网络通信集团有限公司 Bandwidth configuration method and device
CN113726679B (en) * 2020-05-25 2023-06-20 华为技术有限公司 Dynamically configurable data transmission method, device, device and storage medium
KR20220043651A (en) * 2020-09-29 2022-04-05 삼성전자주식회사 A method and apparatus for renewing subscription for network data analysis in a wireless communication system
CN113630902B (en) * 2021-08-19 2023-04-28 联想(北京)有限公司 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
WO2023246471A1 (en) 2023-12-28

Similar Documents

Publication Publication Date Title
US20240214323A1 (en) Packet transmission method and apparatus
US12224946B2 (en) Centralized network configuration entity and time-sensitive network control system comprising same
CN110431769A (en) The method and apparatus of data transmission for the time control in TSN
WO2019127597A1 (en) Method, device and system for sending message
US20210184781A1 (en) Period mapping method and network device
CN115242728B (en) Message transmission method and device
CN109639560B (en) Method for improving availability of real-time computer network
CN116711287B (en) Round Robin Queuing and Forwarding (CQF) segmentation
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
WO2021000754A1 (en) Measurement reporting method and network node
US11442432B2 (en) Communication device and method for data transmission within an industrial communication network
US11271772B2 (en) Method for transmitting data and system comprising communicating entity
Luo et al. Hierarchical computing network collaboration architecture for industrial Internet of Things
Liu et al. Joint routing and scheduling for CQF
CN117319163A (en) Business data transmission methods, equipment, electronic equipment and storage media
CN103368832B (en) Hybrid switching network slot allocation method based on sliding window
CN115396378A (en) Cross-domain collaborative delay sensitive network scheduling method and system based on time slot mapping
US20250030645A1 (en) Packet transmission
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
WO2024055898A1 (en) Message processing method, message transmission method, communication device, system, medium, and product
JP2010050670A (en) Data communications system, data communications method, and information processing apparatus configuring the data communications system
Mateu ENHANCING TSN ADOPTION BY INDUSTRY

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination