WO2022127475A1 - 数据传输方法、装置、电子设备及存储介质 - Google Patents

数据传输方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2022127475A1
WO2022127475A1 PCT/CN2021/130940 CN2021130940W WO2022127475A1 WO 2022127475 A1 WO2022127475 A1 WO 2022127475A1 CN 2021130940 W CN2021130940 W CN 2021130940W WO 2022127475 A1 WO2022127475 A1 WO 2022127475A1
Authority
WO
WIPO (PCT)
Prior art keywords
transmission
network
interface
data
network interface
Prior art date
Application number
PCT/CN2021/130940
Other languages
English (en)
French (fr)
Inventor
陈涛
邢省委
席磊磊
朱开发
关欣赟
刘伟峰
Original Assignee
深圳市微网力合信息技术有限公司
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 深圳市微网力合信息技术有限公司 filed Critical 深圳市微网力合信息技术有限公司
Publication of WO2022127475A1 publication Critical patent/WO2022127475A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Definitions

  • the present disclosure generally relates to the field of mobile communication technologies, and more particularly, to a data transmission method, apparatus, electronic device, and storage medium.
  • WiFi 6 WirelessFidelity6, the sixth generation of wireless technology
  • WiFi6 can provide faster data transmission speed, achieve lower latency, and support more devices. Simultaneously access and solve the congestion caused by multi-device connection.
  • terminals that support multiple communication modes and are configured with multiple network interfaces have become more and more popular, such as routers and smart phones that support WiFi and cellular networks. These terminals with multiple network ports can connect to different networks at different times for data transmission.
  • the present disclosure relates to a data transmission method, comprising:
  • the target sub-packet is transmitted by using the routing and forwarding path corresponding to the replacement network interface.
  • determining the target network interface corresponding to the target sub-packet includes:
  • the network interface corresponding to the group to which the target sub-data belongs is the target network interface.
  • determining the transmission weight of each transmission interface according to the weight distribution scheme including:
  • For any transmission interface determine the transmission weight corresponding to the weight distribution scheme and the sequence mark of the transmission interface, as the transmission weight of the transmission interface.
  • the data packet is split to obtain a plurality of sub-data packets, including:
  • the data packet is split by using the target data splitting rule to obtain a plurality of sub-data packets.
  • any network interface whose network quality information meets preset requirements is selected from the network interfaces available at the current moment as the replacement network interface, including:
  • the network interface with the best network quality information is selected from the alternative network interfaces as the replacement network interface.
  • the network quality information corresponding to the routing and forwarding path is determined in the following manner:
  • the network quality information corresponding to the routing and forwarding path is determined according to the transmission rate and the transmission bandwidth.
  • the present disclosure also relates to a data transmission device comprising:
  • the splitting module is configured to split the data packet to obtain multiple sub-data packets after receiving the data packet;
  • the interface determination module is configured to determine the target network interface corresponding to the target sub-packet for any target sub-packet;
  • a transmission module configured to transmit the target sub-packet through a target routing forwarding path corresponding to the target network interface
  • a first network quality determination module configured to determine network quality information of the target route forwarding path
  • a second network quality determination module configured to determine network quality information corresponding to the network interface available at the current moment if the network quality information does not meet the preset requirements
  • a replacement interface determination module configured to select any network interface whose network quality information meets preset requirements from the network interfaces available at the current moment as the replacement network interface
  • the transmission module is further configured to transmit the target sub-data packet by using the routing and forwarding path corresponding to the replacement network interface.
  • the interface determination module is configured to:
  • the network interface corresponding to the group to which the target sub-data belongs is the target network interface.
  • the present disclosure also relates to an electronic device, comprising: a processor and a memory, wherein the processor is configured to execute a data transmission method program stored in the memory, so as to implement the data transmission method described in the present disclosure.
  • the present disclosure also relates to a storage medium, where the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the data transmission method described in the present disclosure .
  • the present disclosure relates to a data transmission method.
  • the data packet is firstly split to obtain a plurality of sub-data packets, and for any target sub-data packet, the determination is made according to a preset data transmission strategy.
  • the target sub-packet corresponds to the target network interface, and the target sub-packet is transmitted using the target routing forwarding path corresponding to the target network interface, and the network quality information of the target routing forwarding path is determined during the transmission process.
  • This scheme splits data packets and transmits them with sub-packets as granularity. Different sub-packets can be transmitted using different network interfaces. Even if some network interfaces have problems during the transmission process, the entire data will not appear.
  • the problem of transmission interruption solves the problem of interruption of data transmission caused by network switching when the current data packet is used for transmission.
  • the routing and forwarding path is switched in time to ensure that data transmission is not interrupted.
  • FIG. 1 is a flowchart of a data transmission method provided by an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a data packet splitting method provided by an embodiment of the present disclosure
  • FIG. 3 is a flowchart of a method for determining a target network interface provided by an embodiment of the present disclosure
  • FIG. 4 is a block diagram of a data transmission apparatus according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic diagram of an electronic device according to an embodiment of the present disclosure.
  • the method can be applied to a terminal that supports multiple communication modes (eg, supports WiFi6, 5G, Ethernet, etc.) and is configured with multiple network interfaces, including but not limited to routers , smart phone, notebook computer, switch, etc., the method may include the following steps:
  • This embodiment is applied to the terminal, and the data packet includes but is not limited to the data packet sent by the external device to the terminal and the data packet generated by the terminal itself.
  • a data splitting rule is preset, and when a data packet is received, the data packet is split using the preset data splitting rule.
  • the data splitting rule can be set according to actual requirements, for example
  • the data splitting rule may be to split the data packet into sub-data packets whose byte length is not greater than a preset length, wherein the preset length can be set according to actual requirements, for example, 100 bytes.
  • multiple data splitting rules can also be set in advance according to actual requirements, and then different data splitting rules are used for splitting different data packets.
  • the data packet carries a data source identifier corresponding to the data packet, and the data packet is parsed to obtain the data source identifier corresponding to the data packet.
  • the data source identifier of the data packet may be the ID (Identifier, identifier) of the application program that generates the data packet, or may be the source port number of the data packet, that is, the IP (Internet Protocol, Internet Protocol) that generates the data packet )The port number.
  • the data splitting strategy is preset by the user or developer according to actual needs, and the data splitting strategy may include multiple data splitting rules, as well as the correspondence between various data splitting rules and data source identifiers relationship, a data splitting rule can correspond to multiple data source identifiers.
  • a rule identifier can be set for each data splitting rule, a mapping relationship between the data splitting rule and the rule identifier can be established, a corresponding relationship table between the rule identifier and the data source identifier can be created, and the corresponding relationship table and the data source identifier can be created.
  • the data splitting rules together form the data splitting strategy.
  • the rule identifier corresponding to the data source identifier can be searched from the correspondence table of the data splitting strategy according to the data source identifier, and then the rule identifier corresponding to the found rule can be determined.
  • the data splitting rule that identifies the existence of the mapping relationship is the target data splitting rule.
  • the data splitting rules and the corresponding relationship between the data splitting rules and the data source representations can be set by users or developers according to requirements, which are not specifically limited in this embodiment.
  • the target data splitting rule corresponding to the received data packet is to split the data packet into sub-data packets with a byte length not greater than 100 bytes, the byte length of the data packet is 1000 bytes , the data packet is split according to the target data splitting rules, and 10 sub-packets with a length of 100 bytes are obtained.
  • the data packet is divided into multiple sub-data packets, data transmission is performed with sub-data packets as granularity, and network interfaces are determined for each sub-data respectively, so that different networks can be used for different sub-data packets.
  • the interface performs data transmission, thereby avoiding the problem of data transmission interruption that occurs when a data packet adopts a network interface to perform network interface switching.
  • the steps of S12-S16 are performed for any sub-packet in the plurality of sub-packets obtained in S11.
  • this embodiment is described for one sub-packet, and the sub-packet is called the sub-packet.
  • the packet is the target sub-packet.
  • the following steps can be used to determine the target network interface corresponding to the target sub-packet:
  • each transmission interface group the plurality of sub-data packets, and each grouping corresponds to one transmission interface
  • the terminal Before executing this embodiment, the terminal performs the operation in any number of networks in a WLAN (Wireless Local Area Networks, wireless local area network) network, a 5G network, a 4G network, an Ethernet, and an LTE (Long Term Evolution, long term evolution) network respectively.
  • WLAN Wireless Local Area Networks, wireless local area network
  • 5G Fifth Generation
  • 4G 4G
  • Ethernet Ethernet
  • LTE Long Term Evolution, long term evolution
  • the terminal also needs to monitor the network status of each network interface in real time. When the network interface is turned on and the network is not disconnected, it is determined that the network interface is available, and the network interface is determined to be a transmission interface.
  • the weight allocation strategy may be preset by the user or developer according to actual needs, and the weight allocation strategy includes the weight allocation scheme and the corresponding relationship between the weight allocation scheme and the number of transmission interfaces. Based on this, after the number of transmission interfaces is determined in S32, in step S33, a weight distribution scheme corresponding to the number can be determined according to the corresponding relationship between the weight distribution scheme and the number of transmission interfaces in the weight distribution policy.
  • At least one transmission weight is included in the weight assignment scheme.
  • the transmission weight in the weight allocation scheme corresponds to the transmission interface one-to-one, so the number of transmission weights included in the weight allocation scheme is the same as the number of transmission interfaces. For example, if the number of transmission interfaces is 2, the corresponding weight allocation scheme contains It includes 2 transmission weights. If the number of transmission interfaces is 3, the corresponding weight allocation scheme includes 3 transmission weights.
  • each transmission weight included in the weight allocation scheme corresponds to a sequence mark, and the sequence mark is used to identify the priority order of the transmission interface corresponding to the transmission weight in all transmission interfaces, for example, as shown in Table 1 below , when the number of transmission interfaces is 2, the corresponding weight distribution scheme:
  • the order mark 1 indicates that the priority order of the corresponding transmission interface is the first among the two transmission interfaces
  • the order mark 2 indicates that the priority order of the corresponding transmission interface is arranged in the two transmission interfaces. the second place.
  • the above table shows that, among the two transmission interfaces, the transmission weight corresponding to the transmission interface with the highest priority (that is, the first in the priority order) is 0.7, and the transmission weight corresponding to the transmission interface with the highest priority (that is, the second in the priority order) is 0.7.
  • the corresponding transmission weight of the transmission interface is 0.3.
  • the values of the transmission weights shown in Table 1 are only exemplary, and the specific values can be set according to requirements, as long as the sum of all the transmission weights is 1, which is not made in this embodiment. Specific restrictions.
  • determining the transmission weight of each transmission interface according to the weight allocation scheme may include the following steps:
  • Step 1 Determine the priority corresponding to each transmission interface
  • Step 2 sorting the transport interfaces in descending order of priority, and setting a sequence mark for each transport interface
  • Step 3 For any transmission interface, determine the transmission weight corresponding to the weight distribution scheme and the sequence mark of the transmission interface, as the transmission weight of the transmission interface.
  • the user or developer can set priorities for each network interface registered in the terminal in advance according to actual needs.
  • the number of transmission interfaces is 2, which are respectively a WLAN network interface and a 5G network interface, wherein the priority of the WLAN network interface is the first priority, and the priority of the 5G network interface is the second priority, If the first priority is higher than the second priority, after sorting the transmission interfaces according to the priority from high to low, the WLAN network interface is ranked first, and the 5G network interface is ranked second, and the order of the WLAN network interface is set. Mark 1, set the order mark 2 for the 5G network interface.
  • the transmission weight corresponding to the WLAN network interface is 0.7, and the transmission weight corresponding to the 5G network interface is 0.3.
  • the transmission weight of a transmission interface represents the proportion of the number of sub-packets that can be transmitted by the transmission interface in all sub-packets, so the number of sub-packets transmitted by each transmission interface can be calculated as follows:
  • M i represents the number of sub-data packets transmitted by the transmission interface i
  • Si represents the transmission weight of the transmission interface i
  • N represents the total number of sub-data packets obtained by splitting in S11.
  • the transmission interface includes a WLAN network interface and a 5G network interface
  • the transmission weight of the WLAN network interface is 0.7
  • the transmission weight of the 5G network interface is 0.3
  • the WLAN network interface has a transmission weight of 0.3. It can transmit 7 sub-packets
  • the 5G network interface can transmit 3 sub-packets.
  • One group corresponds to one transmission interface, that is, if there are several transmission interfaces, it can be divided into several groups.
  • Group according to the number of sub-data that can be transmitted by the transmission interface. For example, S11 can be divided into 10 sub-data packets, the WLAN network interface can transmit 7 sub-data packets, and the 5G network interface can transmit 3 sub-data packets, so the sub-data can be divided into two
  • the first group contains 7 sub-data packets, and the second group contains 3 sub-data packets, wherein the first group corresponds to the WLAN network interface, and the second group corresponds to the 5G network interface.
  • the sub-data packets can be randomly divided into any group, for example, 7 sub-data packets are randomly selected from 10 sub-data packets to form the first group, and the remaining 3 sub-data packets form the second group .
  • sub-packets may also be divided into corresponding groups according to certain rules, such as grouping according to the corresponding splitting order of the sub-packets, for example, there are 10 sub-packets in total, according to the corresponding For the splitting time, the first 7 sub-packets with the earlier splitting time are composed of the first group, and the 3 sub-packets with the later splitting time are composed of the second group.
  • the WLAN network interface is determined to be the corresponding target network interface
  • the 5G network interface is determined to be The corresponding target network interface
  • Dispersing multiple sub-data packets on different network interfaces for transmission ensures that when one network interface is closed or the network is disconnected, the data packets can also be transmitted through other network interfaces, avoiding the problem of transmission interruption.
  • the priority of the network interface is usually set according to actual needs, that is to say, the user is more inclined to use the network interface with higher priority for transmission, so the corresponding network interface is determined according to the priority of the network interface.
  • the sub-packets are allocated to the network interface according to the transmission weight, which can make the data transmission more in line with the user's needs.
  • the terminal establishes a data connection based on the target routing forwarding path corresponding to the target network interface, and after the connection is established, transmits data to the target sub-packets through the corresponding registration network, and receives feedback data.
  • the terminal generates a routing and forwarding path corresponding to the target network interface according to the registration information obtained from the registration network corresponding to the target network interface. For example, the terminal generates a routing forwarding path (ie, routing information) corresponding to the WLAN network interface according to the registration information obtained from the WLAN network, and saves it, and generates a corresponding 5G network interface according to the registration information obtained from the 5G network. Route forwarding path (ie routing information) and save it.
  • a routing forwarding path ie, routing information
  • the network quality information corresponding to the target routing forwarding path is monitored. It is convenient to find out the problems existing in the forwarding path of the target route.
  • network quality information for a routed forwarding path can be determined by:
  • the transmission rate and transmission bandwidth of the routing and forwarding path are acquired, and network quality information corresponding to the routing and forwarding path is determined according to the transmission rate and the transmission bandwidth.
  • the acquisition of the transmission rate and transmission bandwidth of the route forwarding path refers to acquiring the transmission rate and transmission bandwidth of the registered network corresponding to the network interface corresponding to the route forwarding path.
  • the network quality score may be calculated by weighted summation according to the preset transmission rate and the corresponding weight of the transmission bandwidth, and the network quality score may be used as the network quality information corresponding to the routing and forwarding path.
  • the network quality information corresponding to the route forwarding path can be calculated according to the following formula:
  • z represents the network quality score corresponding to the route forwarding path, that is, network quality information
  • a represents the weight of the transmission rate preset by the user or developer according to the actual demand
  • v represents the transmission rate
  • t represents the transmission bandwidth.
  • the preset requirement may be a requirement set by a user or a developer according to actual needs, for example, the preset requirement may be that the network quality information is not lower than a first threshold, where the first threshold is set according to actual needs value of .
  • the network quality information does not meet the preset requirements, it means that the network quality of the registered network corresponding to the forwarding path of the current target route is not good, which will affect data transmission.
  • the network quality becomes worse and unstable, and the connection between the terminal and the WLAN network may be disconnected at any time. This also leads to the problem that data transmission may be interrupted at any time.
  • the network quality information in order to ensure uninterrupted data transmission, when the network quality information does not meet the preset requirements, obtain network quality information corresponding to other network interfaces available at the current moment, so as to select an alternative network according to the network quality information .
  • the network quality information corresponding to the network interface may also be determined according to the transmission rate and transmission bandwidth of the registered network corresponding to the network interface. Refer to the network quality information calculation method described in S14, which will not be repeated here.
  • one of the network interfaces whose network quality information meets the preset requirements may be randomly selected as a replacement network interface.
  • a network interface whose network quality information meets preset requirements among available network interfaces at the current moment is determined as a candidate network interface, and the network interface with the best network quality information is selected from the candidate network interfaces as a replacement network interface.
  • selecting the network interface with the best network quality as the replacement network interface can ensure that the data transmission speed is faster after the target network interface is switched to the replacement network interface.
  • a network interface whose network quality information meets preset requirements among the network interfaces available at the current moment is determined as a candidate network interface, and the network interface with the highest preset priority is selected from the candidate network interfaces as the replacement network interface .
  • the priority of the network interface is usually set based on a certain basis, for example, it is set according to the required cost from low to high. The lower the cost, the higher the priority, so the highest priority is selected. As a replacement network interface, the network interface can ensure that the cost of data transmission is low.
  • the data packet after receiving a data packet, the data packet is firstly split to obtain a plurality of sub-data packets, and for any target sub-data packet, the corresponding target sub-data packet is determined according to a preset data transmission strategy
  • the target network interface and use the target routing forwarding path corresponding to the target network interface to transmit the target sub-packet, and determine the network quality information of the target routing forwarding path during the transmission process.
  • the network quality information does not meet the preset requirements, timely carry out
  • the switching of the network interface ensures that the transmission of data is not interrupted.
  • This scheme splits data packets and transmits them with sub-packets as granularity. Different sub-packets can be transmitted using different network interfaces. Even if some network interfaces have problems during the transmission process, the entire data will not appear.
  • the problem of transmission interruption solves the problem of interruption of data transmission caused by network switching when the current data packet is used for transmission.
  • the routing and forwarding path is switched in time to ensure that data transmission is not interrupted.
  • the present disclosure also provides a data transmission device, as shown in FIG. 4 , the device may include:
  • the splitting module 401 is configured to split the data packet to obtain a plurality of sub-data packets after receiving the data packet;
  • the interface determination module 402 is configured to, for any target sub-packet, determine the target network interface corresponding to the target sub-packet;
  • the transmission module 403 is configured to transmit the target sub-packet through the target routing forwarding path corresponding to the target network interface;
  • a first network quality determination module 404 configured to determine network quality information of the forwarding path of the target route
  • the second network quality determination module 405 is configured to determine the network quality information corresponding to the network interface available at the current moment if the network quality information does not meet the preset requirements;
  • a replacement interface determination module 406 configured to select any network interface whose network quality information meets preset requirements from the network interfaces available at the current moment as the replacement network interface;
  • the transmission module 403 is further configured to transmit the target sub-packet by using the routing and forwarding path corresponding to the replacement network interface.
  • the interface determination module 402 is configured to:
  • the network interface corresponding to the group to which the target sub-data belongs is the target network interface.
  • determining the transmission weight of each transmission interface according to the weight distribution scheme including:
  • For any transmission interface determine the transmission weight corresponding to the weight distribution scheme and the sequence mark of the transmission interface, as the transmission weight of the transmission interface.
  • the splitting module 401 is configured to:
  • the data packet is split by using the target data splitting rule to obtain a plurality of sub-data packets.
  • the replacement network interface determination module 406 is configured to:
  • the network interface with the best network quality information is selected from the alternative network interfaces as the replacement network interface.
  • the network quality information corresponding to the routing and forwarding path is determined in the following manner:
  • the network quality information corresponding to the routing and forwarding path is determined according to the transmission rate and the transmission bandwidth.
  • the present disclosure also provides an electronic device, as shown in FIG. 5 , comprising a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 pass through the The communication bus 504 completes mutual communication;
  • memory 503, configured to store computer programs
  • the target sub-packet is transmitted by using the routing and forwarding path corresponding to the replacement network interface.
  • the communication bus 504 mentioned by the above-mentioned electronic device may be a Peripheral Component Interconnect (PCI for short) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA for short) bus or the like.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus 504 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 5, but it does not mean that there is only one bus or one type of bus.
  • the communication interface 502 is configured for communication between the aforementioned electronic device and other devices.
  • the memory 503 may include random access memory (Random Access Memory, RAM for short), or may include non-volatile memory (non-volatile memory), such as at least one disk memory.
  • RAM Random Access Memory
  • non-volatile memory such as at least one disk memory.
  • the memory may also be at least one storage device located away from the aforementioned processor.
  • the above-mentioned processor 501 may be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; may also be a digital signal processor (Digital Signal Processing, referred to as DSP) ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the present disclosure also provides a storage medium on which a data transmission method program is stored, and the data transmission method program of the present disclosure implements the data transmission method of the present disclosure when the data transmission method program is executed by the processor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

公开了数据传输方法、装置、电子设备及存储介质,该方法包括:在接收到数据包后先对数据包进行拆分,得到多个子数据包;针对任一目标子数据包,确定目标子数据包对应的目标网络接口;通过目标网络接口对应的目标路由转发路径对目标子数据包进行传输;确定目标路由转发路径的网络质量信息;若网络质量信息不满足预设要求,则确定当前时刻可用的网络接口对应的网络质量信息;从当前时刻可用的网络接口中选取任意网络质量信息符合预设要求的网络接口作为替换网络接口;以及利用所述替换网络接口对应的路由转发路径对所述目标子数据包进行传输。

Description

数据传输方法、装置、电子设备及存储介质
相关申请的引用
本公开要求于2020年12月18日向中国人民共和国国家知识产权局提交的申请号为2202011508319.7,发明名称为“一种数据传输方法、装置、电子设备及存储介质”的发明专利申请的全部权益,并通过引用的方式将其全部内容并入本公开。
领域
本公开大体上涉及移动通信技术领域,更具体地涉及数据传输方法、装置、电子设备及存储介质。
背景
随着互联网信息技术的快速发展,WiFi 6(WirelessFidelity6,第6代无线技术)应运而生,WiFi6相比较WiFi5,能够提供更快的数据传输速度、实现更低的延时、支持更多设备的同时接入并解决多设备连接产生的拥堵情况。
目前,支持多种通信模式,配置有多个网络接口的终端已经越来越普及了,例如支持WiFi和蜂窝网络的路由器、智能手机等终端。这些具有多个网络端口的终端可以在不同的时刻连接不同的网络,进行数据传输。
概述
第一方面,本公开涉及数据传输方法,其包括:
接收到数据包后,对数据包进行拆分得到多个子数据包;
针对任一目标子数据包,确定目标子数据包对应的目标网络接口;
通过所述目标网络接口对应的目标路由转发路径对所述目标子数据包进行传输;
确定所述目标路由转发路径的网络质量信息;
若所述网络质量信息不符合预设要求,则确定当前时刻可用的网 络接口对应的网络质量信息;
从当前时刻可用的网络接口中选取任意网络质量信息符合预设要求的网络接口作为替换网络接口;以及
利用所述替换网络接口对应的路由转发路径对所述目标子数据包进行传输。
在某些实施方案中,确定目标子数据包对应的目标网络接口,包括:
确定当前时刻可用的网络接口为传输接口;
确定传输接口的数量;
根据预设的权重分配策略,确定与所述数量对应的权重分配方案;
根据所述权重分配方案确定各传输接口的传输权重;
根据各传输接口的传输权重,对所述多个子数据包进行分组,每一个分组对应一个传输接口;以及
确定所述目标子数据所属的分组对应的网络接口为目标网络接口。
在某些实施方案中,根据所述权重分配方案确定各传输接口的传输权重,包括:
确定各传输接口对应的优先级;
按照优先级由高到低的顺序对传输接口进行排序,并为各传输接口设置顺序标记;以及
针对任一传输接口,确定权重分配方案与该传输接口的顺序标记对应的传输权重,作为该传输接口的传输权重。
在某些实施方案中,对数据包进行拆分得到多个子数据包,包括:
确定所述数据包对应的数据源标识;
根据预设的数据拆分策略,确定与所述数据源标识对应的目标数据拆分规则;以及
利用所述目标数据拆分规则对所述数据包进行拆分,得到多个子数据包。
在某些实施方案中,从当前时刻可用的网络接口中选取任意网络质量信息符合预设要求的网络接口作为替换网络接口,包括:
确定当前时刻可用的网络接口中网络质量信息符合预设要求的网络接口作为备选网络接口;
从备选网络接口中选取网络质量信息最优的,作为替换网络接口。
作为一种可能的实现方式,路由转发路径对应的网络质量信息,通过下述方式确定:
获取路由转发路径的传输速率和传输带宽;以及
根据所述传输速率和所述传输带宽确定该路由转发路径对应的网络质量信息。
第二方面,本公开还涉及数据传输装置,其包括:
拆分模块,配置为接收到数据包后,对数据包进行拆分得到多个子数据包;
接口确定模块,配置为针对任一目标子数据包,确定目标子数据包对应的目标网络接口;
传输模块,配置为通过所述目标网络接口对应的目标路由转发路径对所述目标子数据包进行传输;
第一网络质量确定模块,配置为确定所述目标路由转发路径的网络质量信息;
第二网络质量确定模块,配置为若所述网络质量信息不符合预设要求,则确定当前时刻可用的网络接口对应的网络质量信息;
替换接口确定模块,配置为从当前时刻可用的网络接口中选取任意网络质量信息符合预设要求的网络接口作为替换网络接口;以及
所述传输模块,还配置为利用所述替换网络接口对应的路由转发路径对所述目标子数据包进行传输。
在某些实施方案中,所述接口确定模块配置为:
确定当前时刻可用的网络接口为传输接口;
确定传输接口的数量;
根据预设的权重分配策略,确定与所述数量对应的权重分配方案;
根据所述权重分配方案确定各传输接口的传输权重;
根据各传输接口的传输权重,对所述多个子数据包进行分组,每一个分组对应一个传输接口;以及
确定所述目标子数据所属的分组对应的网络接口为目标网络接口。
第三方面,本公开还涉及电子设备,其包括:处理器和存储器,所述处理器配置为执行所述存储器中存储的数据传输方法程序,以实现本公开所述的数据传输方法。
第四方面,本公开还涉及存储介质,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现本公开所述的数据传输方法。
在某些实施方案中,本公开涉及数据传输方法,在接收到数据包后先对数据包进行拆分,得到多个子数据包,针对任一目标子数据包,根据预设的数据传输策略确定目标子数据包对应的目标网络接口,并利用目标网络接口对应的目标路由转发路径对目标子数据包进行传输,在传输过程中确定目标路由转发路径的网络质量信息,在网络质量信息不满足预设要求时,及时进行网络接口的切换,保证了数据的传输不被中断。本方案将数据包进行拆分,并以子数据包为粒度进行传输,不同的子数据包可以采用不同的网络接口进行传输,即使在传输过程中部分网络接口出现问题,也不会出现整个数据传输中断的问题,解决了目前以数据包为粒度进行传输时,存在的由于网络切换导致的数据传输中断的问题。
在某些实施方案中,通过在数据传输过程中监控目标路由转发路径的网络质量信息,在网络质量信息不满足预设要求时,及时对路由转发路径进行切换,保证了数据传输不被中断。
附图简要说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
为了更清楚地说明本公开的技术方案,下面将对本公开所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附 图。
图1为本公开一实施例提供的数据传输方法的流程图;
图2为本公开一实施例提供的数据包拆分方法的流程图;
图3为本公开一实施例提供的目标网络接口确定方法的流程图;
图4为本公开一实施例提供的数据传输装置的框图;以及
图5为本公开一实施例提供的电子设备的示意图。
详述
为使本公开的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开的一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。
图1为本公开提供的数据传输方法的流程图,该方法可以应用于支持多种通信模式(例如支持WiFi6、5G、以太网等),配置有多个网络接口的终端,包括但不限于路由器、智能手机、笔记本电脑、交换机等,该方法可以包括如下步骤:
S11.接收到数据包后,对数据包进行拆分得到多个子数据包;
S12.针对任一目标子数据包,根据预设的数据传输策略确定目标子数据包对应的目标网络接口;
S13.通过所述目标网络接口对应的目标路由转发路径对所述目标子数据包进行传输;
S14.确定所述目标路由转发路径的网络质量信息;
S15.若所述网络质量信息不符合预设要求,则确定当前时刻可用的网络接口对应的网络质量信息;
S16.从当前时刻可用的网络接口中选取任意网络质量信息符合预设要求的网络接口作为替换网络接口;以及
S17.利用所述替换网络接口对应的路由转发路径对所述目标子数据包进行传输。
本实施例应用于终端,数据包包括但不限于外部设备向终端发送的数据包以及终端自身生成的数据包。
在某些实施方案中,预先设置一种数据拆分规则,当接收到数据包后,采用此预设的数据拆分规则对数据包进行拆分,数据拆分规则可以根据实际需求设置,例如数据拆分规则可以为将数据包拆分成字节长度不大于预设长度的子数据包,其中预设长度可以根据实际需求设置,例如100字节。
在某些实施方案中,还可以预先根据实际需求设置多种数据拆分规则,然后针对不同的数据包采用不同的数据拆分规则进行拆分。
如图2所示,在接收到数据包后,可以采用下述步骤对数据包进行拆分:
S21.确定所述数据包对应的数据源标识;
S22.根据预设的数据拆分策略,确定与所述数据源标识对应的目标数据拆分规则;以及
S23.利用所述目标数据拆分规则对所述数据包进行拆分,得到多个子数据包。
在某些实施方案中,数据包中携带有该数据包对应的数据源标识,对数据包进行解析进行得到数据包对应的数据源标识。其中,数据包的数据源标识可以是生成该数据包的应用程序的ID(Identifier,标识符),也可以是该数据包的源端口号,即生成该数据包的IP(Internet Protocol,网际协议)端口号。
在某些实施方案中,数据拆分策略为用户或开发人员根据实际需求预先设置的,数据拆分策略中可以包含多种数据拆分规则,以及各种数据拆分规则与数据源标识的对应关系,一个数据拆分规则可以与多个数据源标识对应。在某些实施方案中,可以针对各数据拆分规则设置规则标识,并建立数据拆分规则与规则标识之间的映射关系,创建规则标识与数据源标识的对应关系表,将对应关系表和数据拆分规则共同组成数据拆分策略。基于此,本步骤S22在确定出数据包的数据源标识后,可以根据数据源标识从数据拆分策略的对应关系表中查找与该数据源标识对应的规则标识,然后确定与查找出的规则标识存 在映射关系的数据拆分规则为目标数据拆分规则。其中数据拆分规则以及数据拆分规则与数据源表示的对应关系,均可以为用户或开发人员根据需求设置的,本实施例不做具体限定。
在某些实施方案中,若接收到的数据包对应的目标数据拆分规则为将数据包拆分成字节长度不大于100字节的子数据包,数据包的字节长度为1000字节,则按照目标数据拆分规则对数据包进行拆分,会得到10个字节长度为100的子数据包。
在某些实施方案中,将数据包拆分成多个子数据包,以子数据包为粒度进行数据传输,分别针对各子数据确定网络接口,从而可以实现针对不同的子数据包采用不同的网络接口进行数据传输,进而避免了数据包采用一个网络接口在进行网络接口切换时,出现的数据传输中断的问题。
在某些实施方案中,针对S11中得到的多个子数据包中的任一子数据包均执行S12-S16的步骤,为便于描述,本实施例针对一个子数据包进行描述,并称该子数据包为目标子数据包。
在某些实施方案中,如图3所示,可以采用下述步骤确定目标子数据包对应的目标网络接口:
S31.确定当前时刻可用的网络接口为传输接口;
S32.确定传输接口的数量;
S33.根据预设的权重分配策略,确定与所述数量对应的权重分配方案;
S34.根据所述权重分配方案确定各传输接口的传输权重;
S35.根据各传输接口的传输权重,对所述多个子数据包进行分组,每一个分组对应一个传输接口;以及
S36.确定所述目标子数据所属的分组对应的网络接口为目标网络接口。
在执行本实施例之前,终端先在WLAN(Wireless Local Area Networks,无线局域网)网络、5G网络、4G网络、Ethernet和LTE(Long Term Evolution,长期演进)等网络中的任意多个网络中分别进行网络注册,并从每一个注册网络中获取注册信息。
终端还需要实时监控每个网络接口的网络状态。当网络接口开启且网络未断开时,确定该网络接口可用,并确定该网络接口为传输接口。
在某些实施方案中,权重分配策略可以为用户或开发人员根据实际需求预先设置的,权重分配策略中包含权重分配方案和权重分配方案与传输接口数量的对应关系。基于此,在S32确定出传输接口的数量后,本步骤S33即可根据权重分配策略中权重分配方案与传输接口数量的对应关系,确定出与该数量对应的权重分配方案。
在某些实施方案中,权重分配方案中包含至少一个传输权重。权重分配方案中的传输权重与传输接口一一对应,因此权重分配方案中包含的传输权重的数量与传输接口的数量一致,例如,若传输接口的数量为2,则对应的权重分配方案中就包含2个传输权重,若传输接口的数量为3,则对应的权重分配方案中就包含3个传输权重。
在某些实施方案中,权重分配方案中包含的各传输权重分别对应一个顺序标记,该顺序标记用于标识传输权重对应的传输接口在所有传输接口中的优先级顺序,例如下表1所示,为传输接口的数量为2时,对应的权重分配方案:
表1
顺序标记 传输权重
1 0.7
2 0.3
在某些实施方案中,顺序标记1表示对应的传输接口的优先级顺序排在2个传输接口中的第一位,顺序标记2表示对应的传输接口的优先级顺序排在2个传输接口中的第二位。上表则表示,在两个传输接口中,优先级最高的(即优先级顺序排在第一位的)传输接口对应的传输权重为0.7,优先级低的(即优先级顺序排在第二位的)传输接口对应的传输权重为0.3。
在某些实施方案中,表1中所示的传输权重的值只是示例性的,具体的值可以根据需求设定,只要所有的传输权重的加和为1即可, 本实施例对此不作具体限定。
在某些实施方案中,根据所述权重分配方案确定各传输接口的传输权重,可以包含如下步骤:
步骤1:确定各传输接口对应的优先级;
步骤2:按照优先级由高到低的顺序对传输接口进行排序,并为各传输接口设置顺序标记;以及
步骤3:针对任一传输接口,确定权重分配方案与该传输接口的顺序标记对应的传输权重,作为该传输接口的传输权重。
在某些实施方案中,用户或开发人员可以根据实际需求预先针对终端中注册的各网络接口设置优先级。
在某些实施方案中,传输接口的数量为2个,分别为WLAN网络接口和5G网络接口,其中WLAN网络接口的优先级为第一优先级,5G网络接口的优先级为第二优先级,第一优先级高于第二优先级,则对传输接口按照优先级由高到低进行排序后,WLAN网络接口排在第一位,5G网络接口排在第二位,为WLAN网络接口设置顺序标记1,为5G网络接口设置顺序标记2。
在某些实施方案中,可以确定传输接口中,WLAN网络接口对应的传输权重为0.7,5G网络接口对应的传输权重为0.3。
在某些实施方案中,传输接口的传输权重表示传输接口可传输的子数据包数量在所有子数据包中的占比,因此可以按下式分别计算各传输接口传输的子数据包的数量:
M i=Si×N
其中,M i表示传输接口i传输的子数据包数量,S i表示传输接口i的传输权重,N表示S11中拆分得到的子数据包的总个数。
在某些实施方案中,传输接口包括WLAN网络接口和5G网络接口,WLAN网络接口的传输权重为0.7,5G网络接口的传输权重为0.3,S11共拆分得到10个子数据包,则WLAN网络接口可传输7个子数据包,5G网络接口可传输3个子数据包。
计算得到各传输接口可传输的子数据包数量后,对S11中得到的多个子数据包进行分组,一个分组对应一个传输接口,即有几个传输 接口就可以分成几组,在进行分组时,根据传输接口可传输的子数据数量进行分组,例如S11共拆分得到10个子数据包,WLAN网络接口可传输7个子数据包,5G网络接口可传输3个子数据包,则可以将子数据分成两组,第一组包含7个子数据包,第二组包含3个子数据包,其中第一组与WLAN网络接口对应,第二组与5G网络接口对应。
在某些实施方案中,在进行分组时,可以随机确定将子数据包划分到任一分组,例如从10个子数据包中随机选取7个组成第一分组,剩下的3个组成第二分组。
在某些实施方案中,还可以按照一定的规则将子数据包划分到对应的分组,比如按照子数据包对应的拆分顺序进行分组,例如,共10个子数据包,按照子数据包对应的拆分时间,将拆分时间靠前的前7个子数据包组成第一分组,将拆分时间靠后的3个子数据包组成第二分组。
当然除了上述两种分组方法,还可以采用其他方式进行分组,本实施例对此不作具体限定。
在某些实施方案中,若目标子数据所属的分组为第一分组,则就确定WLAN网络接口为对应的目标网络接口,若目标子数据所属的分组为第二分组,则确定5G网络接口为对应的目标网络接口。
将多个子数据包分散到不同的网络接口上进行传输,保证了在一个网络接口关闭或网络断开是,数据包还可以通过其他网络接口进行传输,避免了出现传输中断的问题。
在某些实施方案中,由于网络接口的优先级在设置时通常是根据实际需求设置的,也就是说用户更倾向于使用优先级高的网络接口进行传输,所以根据网络接口的优先级确定对应的传输权重,进而根据传输权重为网络接口分配子数据包,可以使得数据传输更加符合用户的需求。
终端基于目标网络接口对应的目标路由转发路径建立数据连接,连接建立后通过相应的注册网络对目标子数包进行数据传输,并接收反馈数据。
在某些实施方案中,终端根据从目标网络接口对应的注册网络中 获取的注册信息,生成目标网络接口对应的路由转发路径。例如,在终端根据从WLAN网络中获取的注册信息,生成与WLAN网络接口对应的路由转发路径(即路由信息),并保存,根据从5G网络中获取的注册信息,生成与5G网络接口对应的路由转发路径(即路由信息),并保存。
在某些实施方案中,在利用目标传输路径传输目标子数据包的过程中,监控目标路由转发路径对应的网络质量信息。便于即使发现目标路由转发路径存在的问题。
在某些实施方案中,可以通过下述方式确定路由转发路径的网络质量信息:
获取路由转发路径的传输速率和传输带宽,根据所述传输速率和所述传输带宽确定路由转发路径对应的网络质量信息。其中获取路由转发路径的传输速率和传输带宽,指的是获取路由转发路径对应的网络接口所对应的注册网络的传输速率和传输带宽。
在某些实施方案中,可以根据预设的传输速率和传输带宽对应的权重,采用加权求和的方式计算网络质量分数,将网络质量分数作为路由转发路径对应的网络质量信息。
在某些实施方案中,可以根据下述公式计算路由转发路径对应的网络质量信息:
Z=a*V+(1-a)*t
其中,z表示路由转发路径对应的网络质量分数,即网络质量信息,a表示用户或开发人员根据实际需求预设的传输速率的权重,v表示传输速率,t表示传输带宽。
在某些实施方案中,预设要求可以为用户或开发人员根据实际需求设定的要求,例如预设要求可以为网络质量信息不低于第一阈值,其中第一阈值为根据实际需求设定的值。
若网络质量信息不符合预设要求则表示当前目标路由转发路径对应的注册网络的网络质量不好,会影响数据的传输。比如WLAN网络,终端在移动过程中,随着与网络点的之间距离的增大,网络质量也越来越差,且不稳定,终端与WLAN网络之间的连接随时有可能会断开, 这也就导致随时有可能出现数据传输中断的问题。
在某些实施方案中,为了保证数据传输不中断,在网络质量信息不符合预设要求时,获取当前时刻可用的其他网络接口对应的网络质量信息,以便根据网络质量信息选取一个可替换的网络。网络接口对应的网络质量信息也可以根据网络接口对应的注册网络的传输速率和传输带宽来确定,参见S14中所述的网络质量信息计算方法,此处不再赘述。
在某些实施方案中,可以在网络质量信息符合预设要求的网络接口中随机选取一个作为替换网络接口。
在某些实施方案中,确定当前时刻可用的网络接口中网络质量信息符合预设要求的网络接口作为备选网络接口,从备选网络接口中选取网络质量信息最优的,作为替换网络接口。
在某些实施方案中,选取网络质量最优的网络接口作为替换网络接口,可以保证有目标网络接口切换至替换网络接口后,数据传输速度较快。
在某些实施方案中,确定当前时刻可用的网络接口中网络质量信息符合预设要求的网络接口作为备选网络接口,从备选网络接口中选取预设的优先级最高的,作为替换网络接口。
在某些实施方案中,网络接口的优先级通常在设置时,是有一定依据的,例如按照所需费用由低到高进行设置,费用越低,优先级越高,因此选取优先级最高的网络接口作为替换网络接口,可以保证数据传输所消耗的费用较低。
本公开提供的数据传输方法,在接收到数据包后先对数据包进行拆分,得到多个子数据包,针对任一目标子数据包,根据预设的数据传输策略确定目标子数据包对应的目标网络接口,并利用目标网络接口对应的目标路由转发路径对目标子数据包进行传输,在传输过程中确定目标路由转发路径的网络质量信息,在网络质量信息不满足预设要求时,及时进行网络接口的切换,保证了数据的传输不被中断。本方案将数据包进行拆分,并以子数据包为粒度进行传输,不同的子数据包可以采用不同的网络接口进行传输,即使在传输过程中部分网络 接口出现问题,也不会出现整个数据传输中断的问题,解决了目前以数据包为粒度进行传输时,存在的由于网络切换导致的数据传输中断的问题。
在某些实施方案中,通过在数据传输过程中监控目标路由转发路径的网络质量信息,在网络质量信息不满足预设要求时,及时对路由转发路径进行切换,保证了数据传输不被中断。
本公开还提供了数据传输装置,如图4所示,该装置可以包括:
拆分模块401,配置为接收到数据包后,对数据包进行拆分得到多个子数据包;
接口确定模块402,配置为针对任一目标子数据包,确定目标子数据包对应的目标网络接口;
传输模块403,配置为通过所述目标网络接口对应的目标路由转发路径对所述目标子数据包进行传输;
第一网络质量确定模块404,配置为确定所述目标路由转发路径的网络质量信息;
第二网络质量确定模块405,配置为若所述网络质量信息不符合预设要求,则确定当前时刻可用的网络接口对应的网络质量信息;
替换接口确定模块406,配置为从当前时刻可用的网络接口中选取任意网络质量信息符合预设要求的网络接口作为替换网络接口;以及
所述传输模块403,还配置为利用所述替换网络接口对应的路由转发路径对所述目标子数据包进行传输。
在某些实施方案中,所述接口确定模块402配置为:
确定当前时刻可用的网络接口为传输接口;
确定传输接口的数量;
根据预设的权重分配策略,确定与所述数量对应的权重分配方案;
根据所述权重分配方案确定各传输接口的传输权重;
根据各传输接口的传输权重,对所述多个子数据包进行分组,每一个分组对应一个传输接口;以及
确定所述目标子数据所属的分组对应的网络接口为目标网络接口。
在某些实施方案中,根据所述权重分配方案确定各传输接口的传输权重,包括:
确定各传输接口对应的优先级;
按照优先级由高到低的顺序对传输接口进行排序,并为各传输接口设置顺序标记;以及
针对任一传输接口,确定权重分配方案与该传输接口的顺序标记对应的传输权重,作为该传输接口的传输权重。
在某些实施方案中,所述拆分模块401配置为:
确定所述数据包对应的数据源标识;
根据预设的数据拆分策略,确定与所述数据源标识对应的目标数据拆分规则;以及
利用所述目标数据拆分规则对所述数据包进行拆分,得到多个子数据包。
在某些实施方案中,所述替换网络接口确定模块406配置为:
确定当前时刻可用的网络接口中网络质量信息符合预设要求的网络接口作为备选网络接口;以及
从备选网络接口中选取网络质量信息最优的,作为替换网络接口。
在某些实施方案中,路由转发路径对应的网络质量信息,通过下述方式确定:
获取路由转发路径的传输速率和传输带宽;以及
根据所述传输速率和所述传输带宽确定该路由转发路径对应的网络质量信息。
本公开还提供了电子设备,如图5所示,包括处理器501、通信接口502、存储器503和通信总线504,其中,所述处理器501、所述通信接口502和所述存储器503通过所述通信总线504完成相互间的通信;
存储器503,配置为存放计算机程序;
处理器501,配置为执行存储器503上所存放的程序时,实现如下步骤:
接收到数据包后,对数据包进行拆分得到多个子数据包;
针对任一目标子数据包,确定目标子数据包对应的目标网络接口;
通过所述目标网络接口对应的目标路由转发路径对所述目标子数据包进行传输;
确定所述目标路由转发路径的网络质量信息;
若所述网络质量信息不符合预设要求,则确定当前时刻可用的网络接口对应的网络质量信息;
从当前时刻可用的网络接口中选取任意网络质量信息符合预设要求的网络接口作为替换网络接口;以及
利用所述替换网络接口对应的路由转发路径对所述目标子数据包进行传输。
上述电子设备提到的通信总线504可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。该通信总线504可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
通信接口502配置为上述电子设备与其他设备之间的通信。
存储器503可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。
上述的处理器501可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
本公开还提供了存储介质,所述存储介质上存储有数据传输方法程序,所述数据传输方法程序被处理器执行时实现本公开的数据传输方法。
本公开实施例在实现时,可以参阅上述各个实施例,具有相应的 技术效果。
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅是本公开的实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (10)

  1. 数据传输方法,其包括:
    接收到数据包后,对数据包进行拆分得到多个子数据包;
    针对任一目标子数据包,确定目标子数据包对应的目标网络接口;
    通过所述目标网络接口对应的目标路由转发路径对所述目标子数据包进行传输;
    确定所述目标路由转发路径的网络质量信息;
    若所述网络质量信息不符合预设要求,则确定当前时刻可用的网络接口对应的网络质量信息;
    从当前时刻可用的网络接口中选取任意网络质量信息符合预设要求的网络接口作为替换网络接口;以及
    利用所述替换网络接口对应的路由转发路径对所述目标子数据包进行传输。
  2. 如权利要求1所述的方法,其中,确定目标子数据包对应的目标网络接口,包括:
    确定当前时刻可用的网络接口为传输接口;
    确定传输接口的数量;
    根据预设的权重分配策略,确定与所述数量对应的权重分配方案;
    根据所述权重分配方案确定各传输接口的传输权重;
    根据各传输接口的传输权重,对所述多个子数据包进行分组,每一个分组对应一个传输接口;以及
    确定所述目标子数据所属的分组对应的网络接口为目标网络接口。
  3. 如权利要求1或2所述的方法,其中,根据所述权重分配方案确定各传输接口的传输权重,包括:
    确定各传输接口对应的优先级;
    按照优先级由高到低的顺序对传输接口进行排序,并为各传输接 口设置顺序标记;以及
    针对任一传输接口,确定权重分配方案与该传输接口的顺序标记对应的传输权重,作为该传输接口的传输权重。
  4. 如权利要求1至3中任一权利要求所述的方法,其中,对数据包进行拆分得到多个子数据包,包括:
    确定所述数据包对应的数据源标识;
    根据预设的数据拆分策略,确定与所述数据源标识对应的目标数据拆分规则;以及
    利用所述目标数据拆分规则对所述数据包进行拆分,得到多个子数据包。
  5. 如权利要求1至4中任一权利要求所述的方法,其中,从当前时刻可用的网络接口中选取任意网络质量信息符合预设要求的网络接口作为替换网络接口,包括:
    确定当前时刻可用的网络接口中网络质量信息符合预设要求的网络接口作为备选网络接口;以及
    从备选网络接口中选取网络质量信息最优的,作为替换网络接口。
  6. 如权利要求1至5中任一权利要求所述的方法,路由转发路径对应的网络质量信息,通过下述方式确定:
    获取路由转发路径的传输速率和传输带宽;以及
    根据所述传输速率和所述传输带宽确定该路由转发路径对应的网络质量信息。
  7. 数据传输装置,其包括:
    拆分模块,配置为接收到数据包后,对数据包进行拆分得到多个子数据包;
    接口确定模块,配置为针对任一目标子数据包,确定目标子数据包对应的目标网络接口;
    传输模块,配置为通过所述目标网络接口对应的目标路由转发路径对所述目标子数据包进行传输;
    第一网络质量确定模块,配置为确定所述目标路由转发路径的网络质量信息;
    第二网络质量确定模块,配置为若所述网络质量信息不符合预设要求,则确定当前时刻可用的网络接口对应的网络质量信息;
    替换接口确定模块,配置为从当前时刻可用的网络接口中选取任意网络质量信息符合预设要求的网络接口作为替换网络接口;以及
    所述传输模块,还配置为利用所述替换网络接口对应的路由转发路径对所述目标子数据包进行传输。
  8. 如权利要求7所述的装置,其中,所述接口确定模块具体配置为:
    确定当前时刻可用的网络接口为传输接口;
    确定传输接口的数量;
    根据预设的权重分配策略,确定与所述数量对应的权重分配方案;
    根据所述权重分配方案确定各传输接口的传输权重;
    根据各传输接口的传输权重,对所述多个子数据包进行分组,每一个分组对应一个传输接口;以及
    确定所述目标子数据所属的分组对应的网络接口为目标网络接口。
  9. 电子设备,其包括:处理器和存储器,所述处理器配置为执行所述存储器中存储的数据传输方法程序,以实现权利要求1至6中任一权利要求所述的数据传输方法。
  10. 存储介质,其中,所述存储介质存储有一个或者多个程序,所述一个或者多个程序被一个或者多个处理器执行,以实现权利要求1至6中任一权利要求所述的数据传输方法。
PCT/CN2021/130940 2020-12-18 2021-11-29 数据传输方法、装置、电子设备及存储介质 WO2022127475A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011508319.7A CN112616168B (zh) 2020-12-18 2020-12-18 一种数据传输方法、装置、电子设备及存储介质
CN202011508319.7 2020-12-18

Publications (1)

Publication Number Publication Date
WO2022127475A1 true WO2022127475A1 (zh) 2022-06-23

Family

ID=75240811

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/130940 WO2022127475A1 (zh) 2020-12-18 2021-11-29 数据传输方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN112616168B (zh)
WO (1) WO2022127475A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116737988A (zh) * 2023-05-29 2023-09-12 四川云控交通科技有限责任公司 一种智能楼宇数据管理方法、管理系统

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112616168B (zh) * 2020-12-18 2021-12-21 深圳市微网力合信息技术有限公司 一种数据传输方法、装置、电子设备及存储介质
CN114125923B (zh) * 2021-11-23 2024-04-02 深圳市元征科技股份有限公司 数据传输方法、装置、电子设备及存储介质
CN117914775B (zh) * 2024-03-20 2024-06-25 苏州元脑智能科技有限公司 面向异构计算的高带宽数据传输方法、cpu及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546418A (zh) * 2012-01-16 2012-07-04 东北大学 基于重叠网络多径传输的ims客户端及媒体交换方法
CN106100815A (zh) * 2016-08-23 2016-11-09 乐视控股(北京)有限公司 一种移动终端的数据传输方法和装置
CN107682258A (zh) * 2017-09-27 2018-02-09 北京邮电大学 一种基于虚拟化的多路径网络传输方法及装置
CN109547292A (zh) * 2018-12-06 2019-03-29 安徽云探索网络科技有限公司 一种根据网络质量的网络路线选择系统
CN112616168A (zh) * 2020-12-18 2021-04-06 深圳市微网力合信息技术有限公司 一种数据传输方法、装置、电子设备及存储介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015180097A1 (zh) * 2014-05-29 2015-12-03 华为技术有限公司 负载传输的控制方法及装置
CN111935009B (zh) * 2020-08-05 2022-05-24 广州市百果园信息技术有限公司 数据包路由方法、装置、设备、系统及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546418A (zh) * 2012-01-16 2012-07-04 东北大学 基于重叠网络多径传输的ims客户端及媒体交换方法
CN106100815A (zh) * 2016-08-23 2016-11-09 乐视控股(北京)有限公司 一种移动终端的数据传输方法和装置
CN107682258A (zh) * 2017-09-27 2018-02-09 北京邮电大学 一种基于虚拟化的多路径网络传输方法及装置
CN109547292A (zh) * 2018-12-06 2019-03-29 安徽云探索网络科技有限公司 一种根据网络质量的网络路线选择系统
CN112616168A (zh) * 2020-12-18 2021-04-06 深圳市微网力合信息技术有限公司 一种数据传输方法、装置、电子设备及存储介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116737988A (zh) * 2023-05-29 2023-09-12 四川云控交通科技有限责任公司 一种智能楼宇数据管理方法、管理系统
CN116737988B (zh) * 2023-05-29 2024-03-08 四川云控交通科技有限责任公司 一种智能楼宇数据管理方法、管理系统

Also Published As

Publication number Publication date
CN112616168A (zh) 2021-04-06
CN112616168B (zh) 2021-12-21

Similar Documents

Publication Publication Date Title
WO2022127475A1 (zh) 数据传输方法、装置、电子设备及存储介质
US11005729B2 (en) Satisfying service level agreement metrics for unknown applications
CN111682952B (zh) 针对体验质量度量的按需探测
KR102586898B1 (ko) 패킷 처리 방법 및 장치, 및 관련 디바이스들
WO2020220705A9 (zh) 一种数据传输方法及对应的设备
WO2018152919A1 (zh) 一种路径选取方法及系统、网络加速节点及网络加速系统
US20130003549A1 (en) Resilient Hashing for Load Balancing of Traffic Flows
US10171547B2 (en) Neighbor discovery for IPV6 switching systems
EP3393094A1 (en) Method and device for allocating service traffic
US10484233B2 (en) Implementing provider edge with hybrid packet processing appliance
WO2017025021A1 (zh) 一种处理流表的方法及装置
US20200228618A1 (en) Content delivery method, device, and system
WO2020187006A1 (zh) 流量均衡方法及装置
WO2020147440A1 (zh) 数据用量上报的方法、装置及系统
WO2021017578A1 (zh) 报文发送方法、装置及存储介质
Batalla et al. ID-based service-oriented communications for unified access to IoT
US20200112523A1 (en) Data Flow Processing Method and Device
WO2019223476A1 (zh) 业务服务质量监测方法、设备及系统
CN109327407B (zh) 数据交换装置、数据交换方法、计算机设备及存储介质
WO2019165855A1 (zh) 一种报文传输的方法及装置
WO2022143597A1 (zh) 一种业务链的转发路径确定方法及通信装置
WO2022048559A1 (zh) 一种接入网关的方法及装置
US11240164B2 (en) Method for obtaining path information of data packet and device
Wang et al. Design, implementation and performance evaluation of software openflow flow counters in a bare metal commodity switch
US20220070736A1 (en) Traffic steering device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21905404

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21905404

Country of ref document: EP

Kind code of ref document: A1