Business data transmission method and apparatus

By establishing an end-to-end channel between the AP and STA, the transmission of target service data is automatically identified and accelerated, solving the problem of cumbersome manual operation by users in the existing technology, improving transmission efficiency and reducing equipment power consumption.

CN119997257BActive Publication Date: 2026-03-13HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-01
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

In existing technologies, accelerating business data processing requires users to perform tedious manual operations, resulting in low operational efficiency.

Method used

An end-to-end channel is established between the AP and STA to exchange device information, automatically identify target service data, and establish dual links for accelerated processing, avoiding manual operation by the user.

Benefits of technology

It enables automatic acceleration of target business data transmission without user intervention, improving transmission speed and reducing device power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119997257B_ABST
    Figure CN119997257B_ABST
Patent Text Reader

Abstract

This application provides a service data transmission method and apparatus, applicable to the field of electronic device technology. The method includes: establishing an endpoint channel between a first device and a second device, the endpoint channel being used for exchanging device information between the first device and the second device. In response to the establishment of the endpoint channel, the second device sends target session information of target service data to the first device through the endpoint channel, the target service data being service data of a first application in the second device under a target state. The first device sends connection information of the first device to the second device through the endpoint channel. The first device and the second device establish a second link through the connection information. The first device and the second device transmit the target service data through the first link and the second link according to the target session information. The technical solution of this application can automatically accelerate the processing of target service data without user intervention, avoiding the cumbersome operations of service acceleration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic equipment technology, and in particular to a method and apparatus for transmitting business data. Background Technology

[0002] In a wireless local area network (WLAN), a station (STA) connects to an Ethernet network via a wireless access point (AP) to perform related communication services.

[0003] Currently, the AP supports accelerating certain service data of the STA to improve the transmission rate of service data. In related implementations, users usually need to perform manual operations in the operation interface. For example, users need to select the service to be accelerated in the operation interface, click the acceleration control, and in some cases, they may even need to configure routing information, etc., before the system can respond to user operations and accelerate the transmission of certain service data.

[0004] In the above implementation method, each acceleration process for business data requires manual operation by the user, which can be cumbersome. Summary of the Invention

[0005] This application provides a business data transmission method and apparatus, which are applied in the field of electronic equipment technology.

[0006] In a first aspect, embodiments of this application propose a service data transmission method and apparatus. Applied to a first device, where a first link is established between the first device and a second device, the method includes:

[0007] Establish an end-to-end channel with the second device, the end-to-end channel being used for the first device and the second device to exchange device information;

[0008] In response to the establishment of the end-to-end channel, target session information of target service data is obtained through the end-to-end channel. The target service data is the service data of the first application in the second device in the target state.

[0009] The connection information of the first device is sent to the second device through the end pipe channel, and a second link is established with the second device through the connection information.

[0010] Based on the target session information, the target service data is transmitted through the first link and the second link.

[0011] In this implementation, in response to the establishment of the end-to-end channel, target session information is automatically sent to the first device through the end-to-end channel. This target session information is used to identify the target service data. Furthermore, the first and second devices can establish a second link based on the end-to-end channel. Subsequently, both the first and second devices transmit the target service data through the first and second links according to the target session information. This allows for automatic acceleration of the target service data without user intervention, avoiding the cumbersome operations required for service acceleration.

[0012] In some implementations, transmitting the target service data through the first link and the second link according to the target session information includes:

[0013] Obtain the first session information of the business data to be transmitted;

[0014] Based on the target session information and the first session information, it is determined whether the service data to be transmitted is the target service data;

[0015] If so, the target service data is transmitted through the first link and the second link.

[0016] In this implementation, target service data is identified by target session information, thereby enabling targeted acceleration of target service data while avoiding acceleration of other service data, effectively ensuring that the power consumption of the terminal device is not too high.

[0017] In some implementations, transmitting the target service data through the first link and the second link includes:

[0018] For either the first link or the second link, the first data packet of the target service data is placed into the transmission queue of the link, wherein the first data packet is a data packet that has not undergone aggregation processing;

[0019] The first data packet of the target service data is transmitted according to the transmission queue.

[0020] In this implementation, the first data packet is directly enqueued without aggregation, which saves the processing time of aggregation and the waiting time for enqueuing and caching, thus further improving the transmission rate of the target business data.

[0021] In some implementations, transmitting the first data packet of the target service data according to the transmission queue includes:

[0022] If the transmission queue includes a first data packet containing the target service data and a second data packet containing other service data, then the first data packet containing the target service data shall be transmitted first.

[0023] In this implementation, prioritizing the transmission of the first data packet in the transmission queue can effectively improve the transmission rate of the target service data.

[0024] In some implementations, transmitting the first data packet of the target service data according to the transmission queue includes:

[0025] According to the transmission queue, a first data packet of the target service data is transmitted based on a first hardware channel, wherein the first hardware channel is a data channel used only for transmitting the target service data.

[0026] Transmitting target business data through a dedicated first hardware channel can improve the transmission rate of target business data.

[0027] In some implementations, after establishing a second link with the second device through the connection information, the method further includes:

[0028] The connection reporting message sent by the second device is received through the terminal channel. The connection reporting message is used to indicate the establishment of the second link. The connection reporting message includes the link information of the first link and the link information of the second link.

[0029] In this implementation, information is reported through the end-to-end channel, which enables accurate synchronization of the link information between the first and second devices, ensuring the accuracy and stability of the dual-link connection.

[0030] In some implementations, the first device includes a state machine and an Enterprise Configuration Manager (ECM) unit;

[0031] After obtaining the target session information of the target service data through the terminal channel, the method further includes:

[0032] The state machine sends first configuration information to the ECM unit. The first configuration information is used to instruct the ECM unit to add a first configuration. The first configuration instructs the first device not to perform hardware acceleration processing on the data corresponding to the target session information.

[0033] In this implementation, by eliminating hardware acceleration processing of the target business data, the technical effectiveness of the various acceleration strategies in this application can be guaranteed.

[0034] In some implementations, the method further includes:

[0035] The notification message sent by the second device is received through the terminal channel, and the notification message is used to instruct the first application to stop running;

[0036] In response to the notification message, the second link is disconnected;

[0037] The disconnection reporting message sent by the second device is received through the end channel. The disconnection reporting message is used to indicate the disconnection of the second link and includes the link information of the first link.

[0038] In this implementation, the dual link between the first and second devices is promptly disconnected after the first application stops running, thereby effectively saving power consumption of both devices.

[0039] In some implementations, the method further includes:

[0040] In response to the notification message, the state machine sends second configuration information to the ECM unit, the second configuration information being used to instruct the ECM unit to cancel the first configuration.

[0041] In this implementation, after the first application stops running, the hardware acceleration processing of the target session information is resumed through the ECM unit, thereby ensuring the hardware acceleration effect of the first device.

[0042] Secondly, embodiments of this application propose a service data transmission method and apparatus. Applied to a second device, wherein a first link is established between the second device and a first device, the method includes:

[0043] Establish an end-to-end channel with the first device, the end-to-end channel being used for the second device to exchange device information with the first device;

[0044] In response to the establishment of the end-to-end channel, target session information of target service data is sent to the first device through the end-to-end channel. The target service data is the service data of the first application in the second device in the target state.

[0045] The connection information of the first device is obtained through the end pipe channel, and a second link is established with the first device through the connection information;

[0046] Based on the target session information, the target service data is transmitted through the first link and the second link.

[0047] In some implementations, transmitting the target service data through the first link and the second link according to the target session information includes:

[0048] Obtain the first session information of the business data to be transmitted;

[0049] Based on the target session information and the first session information, it is determined whether the service data to be transmitted is the target service data;

[0050] If so, the target service data is transmitted through the first link and the second link.

[0051] In some implementations, after establishing a second link with the first device through the connection information, the method further includes:

[0052] A connection reporting message is sent to the first device through the end channel. The connection reporting message is used to indicate the establishment of the second link. The connection reporting message includes the link information of the first link and the link information of the second link.

[0053] In some implementations, the method further includes:

[0054] After the first application stops running, a notification message is sent to the first device through the end channel, the notification message being used to instruct the first application to stop running;

[0055] The second link is disconnected, and a disconnection reporting message is sent to the first device through the end-pipe channel. The disconnection reporting message is used to indicate the disconnection of the second link, and the disconnection reporting message includes the link information of the first link.

[0056] Thirdly, embodiments of this application propose a service data transmission apparatus, including:

[0057] The processing module is used to establish an end-to-end channel with the second device, and the end-to-end channel is used for the first device and the second device to exchange device information;

[0058] The transmission module is used to respond to the establishment of the end-to-end channel and obtain the target session information of the target service data through the end-to-end channel. The target service data is the service data of the first application in the second device in the target state.

[0059] The transmission module is also used to send the connection information of the first device to the second device through the end pipe channel;

[0060] The processing module is further configured to establish a second link with the second device through the connection information;

[0061] The transmission module is further configured to transmit the target service data through the first link and the second link according to the target session information.

[0062] Fourthly, embodiments of this application provide a service data transmission apparatus, comprising:

[0063] The processing module is used to establish an end-to-end channel with the first device, and the end-to-end channel is used for the second device to exchange device information with the first device;

[0064] The transmission module is used to send target session information of target service data to the first device through the end-to-end channel in response to the establishment of the end-to-end channel. The target service data is the service data of the first application in the second device in the target state.

[0065] The transmission module is also used to obtain the connection information of the first device through the end pipe channel;

[0066] The processing module is further configured to establish a second link with the first device through the connection information;

[0067] The transmission module is further configured to transmit the target service data through the first link and the second link according to the target session information.

[0068] Fifthly, embodiments of this application provide an electronic device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, causing the electronic device to perform the method as described in the first or second aspect.

[0069] Sixthly, embodiments of this application provide a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the method as described in the first or second aspect.

[0070] In a seventh aspect, embodiments of this application provide a computer program product, which includes a computer program that, when run, causes a computer to perform the method as described in the first or second aspect.

[0071] Eighthly, embodiments of this application provide a chip, the chip including a processor, the processor being configured to invoke a computer program in memory to perform the method as described in the first or second aspect.

[0072] It should be understood that the second to eighth aspects of this application correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description

[0073] Figure 1 This is a schematic diagram of a communication scenario provided in an embodiment of this application;

[0074] Figure 2 Signaling interaction diagram of the service data transmission method provided in the embodiments of this application;

[0075] Figure 3 Signaling interaction for the service data transmission method provided in the embodiments of this application Figure 2 ;

[0076] Figure 4 A schematic diagram of the software architecture of the first device provided in an embodiment of this application;

[0077] Figure 5 Data transmission illustration provided for embodiments of this application Figure 1 ;

[0078] Figure 6 Data transmission illustration provided for embodiments of this application Figure 2 ;

[0079] Figure 7 A schematic diagram of software unit interaction for the business data transmission method provided in the embodiments of this application;

[0080] Figure 8 Schematic diagram of the structure of the service data transmission device provided in the embodiments of this application Figure 1 ;

[0081] Figure 9 Schematic diagram of the structure of the service data transmission device provided in the embodiments of this application Figure 2 ;

[0082] Figure 10 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0083] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "exemplary" or "for example" are used in the embodiments of this application to indicate that they are examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0084] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0085] It should be noted that the phrase "at...time" in the embodiments of this application can refer to the instant at which a certain situation occurs, or to a period of time after the occurrence of a certain situation; the embodiments of this application do not specifically limit this. Furthermore, the display interface provided in the embodiments of this application is merely an example, and the display interface may include more or less content.

[0086] To better understand the technical solution of this application, the relevant technologies involved in this application will be further described in detail below.

[0087] First, combine Figure 1 The application scenarios of this application are described. Figure 1 This is a schematic diagram of a communication scenario provided in an embodiment of this application. (Refer to...) Figure 1 In this communication scenario, one end is an AP device and the other end is a STA device.

[0088] An Access Point (AP) is the creator of a wireless network and its central node. A typical wireless router used in a home or office is an AP. More specifically, an AP can be understood as an access point for mobile users to enter a wired network. It is mainly deployed in homes, buildings, and campuses, with a typical coverage radius of tens to hundreds of meters; it can also be deployed outdoors. An AP acts as a bridge connecting wired and wireless networks, its main function being to connect various wireless network clients together and then connect the wireless network to the Ethernet. Specifically, an AP can be a terminal device or network device with a wireless fidelity (WiFi) chip.

[0089] In this context, STA refers to a device connected to a wireless network. Each device connected to an AP is considered a station. Communication between stations in a wireless network occurs through the AP. For example, STA can be a wireless communication chip, a wireless sensor, or a wireless communication terminal. Examples include mobile phones, tablets, set-top boxes, smart TVs, smart wearable devices, in-vehicle communication devices, and computers that support WiFi communication.

[0090] In this communication system, the STA can also be referred to as an access terminal, user equipment, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent, or user device. User equipment can be a cellular phone, cordless phone, Session Initiation Protocol (SIP) phone, Wireless Local Loop (WLL) station, Personal Digital Assistant (PDA), handheld device with wireless communication capabilities, computing device, or other processing device connected to a wireless modem, in-vehicle device, wearable device, and user equipment in a 5G network, etc. By way of example and not limitation, in this embodiment, the STA device can also be a wearable device. Wearable devices can also be referred to as wearable smart devices.

[0091] The relationship between an Access Point (AP) and a Single Target (STA) is that the AP provides the opportunity for wireless access to the network, while the STA is the actual device that connects to the network through the AP. The communication range of a STA is determined by the coverage area of ​​the AP; only STAs within the AP's coverage area can connect to the network.

[0092] In actual implementation, the specific implementation methods of AP devices and STA devices can be selected according to actual needs. This embodiment does not impose any restrictions on this, as long as the AP device can be used as an access point and the STA device can be used as a site.

[0093] Based on the above introduction, it can be confirmed that STA devices can establish communication connections with AP devices to access the Ethernet. Furthermore, AP devices currently support accelerated processing of certain service data from STA devices, thereby improving the transmission rate of service data.

[0094] In most implementations, users typically need to perform a series of manual configuration operations in the application acceleration interface of the STA device. Taking the acceleration of game service A as an example, the user needs to select game application A in the application acceleration interface and click the acceleration control. In some cases, the user may even need to configure routing information such as DNS (Domain Name System) to achieve acceleration of game service A.

[0095] Understandably, every time a user needs to accelerate game service A, they need to repeat the above operations. Extending this to other business data, each acceleration process for each type of business data requires the user to perform the aforementioned manual operations to achieve acceleration, resulting in repeated operations and causing cumbersome user experience.

[0096] Furthermore, once the application corresponding to the accelerated business data stops running, there is no need to accelerate the specified business data anymore. Users will still need to manually stop the acceleration of the specified business data in the application acceleration interface, which will also lead to the problem of cumbersome acceleration operations.

[0097] To address the aforementioned technical issues, this application proposes the following technical concept: establishing an end-to-end channel between the AP and STA. The function of the end-to-end channel is to exchange device information between the AP and STA, enabling them to perceive each other's service status. When the AP determines through the end-to-end channel that the STA needs to transmit target service data, it can automatically initiate accelerated processing for the target service data, thereby achieving fast and efficient accelerated processing of the specified service data without user intervention.

[0098] The service data transmission method provided in this application will be described below with reference to specific embodiments. First, it should be noted that the content described in the following embodiments includes the interaction between the first device and the second device. In the content described in the following embodiments, the first device can be understood as the AP device described above, and the second device can be understood as the STA device described above. Based on this, the following will first combine... Figure 2 This application describes the business data transmission method provided. Figure 2 Signaling interaction diagram of the service data transmission method provided in the embodiments of this application.

[0099] like Figure 2 As shown, the method includes:

[0100] S201. The first device and the second device establish an end-to-end channel, which is used for the first device and the second device to exchange device information.

[0101] In this embodiment, the first device can establish an end-to-end channel with the second device. This end-to-end channel is used for exchanging device information between the first and second devices. Specifically, the first device can send its own device information to the second device via the end-to-end channel, and simultaneously retrieve the second device's device information via the same channel. Similarly, the second device can send its own device information to the first device via the end-to-end channel, and simultaneously retrieve the first device's device information via the same channel.

[0102] It is important to emphasize that the end-to-end channel in this application is not a backup link between the first and second devices. It does not handle service data transmission; rather, it serves as a means for the first and second devices to exchange their respective device information, enabling them to perceive each other's device-related information. Device information may include, for example, network status information, service status information, etc. The specific implementation of device information can be selected and expanded according to actual needs. In short, device information does not contain specific service data and is typically a small amount of information. In one possible implementation, any information reflecting the device itself can be used as device information in this application, such as hardware parameters, software parameters, etc.

[0103] For example, the end-to-end channel in this application can be a Layer 2 transmission channel established based on the network layer, where Layer 2 can be understood as any layer structure above the link layer.

[0104] In one possible implementation, the endpoint channel can be established between the STA and AP devices in response to device startup, either after the STA device or the AP device starts up. Alternatively, the endpoint channel can be established in response to the STA device running a specified application (such as the first application described below).

[0105] S202. In response to the establishment of the end-to-end channel, the second device sends the target session information of the target service data to the first device through the end-to-end channel. The target service data is the service data of the first application in the second device in the target state.

[0106] After the second device confirms the establishment of the end-to-end channel, the second device can send the target session information of the target service data to the first device through the end-to-end channel, so that the first device can obtain the target session information of the target service data, thereby preparing for the accelerated processing of the target service data.

[0107] In another possible implementation, after the first device determines that the end-to-end channel has been established, in response to the establishment of the end-to-end channel, it actively requests the session information of the service data to be accelerated from the second device through the end-to-end channel, thereby obtaining the target session information of the target service data of the second device.

[0108] The target session information can be a five-tuple of target service data, which includes: source IP address (SrcIP), source port (SrcPort), destination IP address (DstIP), destination port (DstPort), and transport layer protocol (Protocol). The five-tuple can distinguish different sessions, and the corresponding session is unique.

[0109] In this embodiment, the target service data is the service data of the first application in the second device in the target state. It can be understood that the target service data is the service data that the second device needs to accelerate, and the target service data can be pre-configured by the user.

[0110] For example, a user can pre-configure the first application to be accelerated and its target state. Then, when the first device determines, based on the end-to-end channel, that the second device is running the first application and that the application is in the target state, it accelerates the target service data transmitted based on the target session information. In this process, the user only needs to pre-configure the target service data to be accelerated, and the first and second devices can achieve this based on the end-to-end channel.

[0111] It should also be noted that current related technologies typically accelerate all business data of a specific application when accelerating business data. For example, to accelerate the business data of the first application, all business data of the first application is accelerated after the first application starts. However, the acceleration process places high power consumption requirements on both AP and STA devices. In addition, not all business data of the first application necessarily needs to be accelerated.

[0112] Taking a game application as an example, accelerated processing of business data is only necessary in game battles; it's generally unnecessary in scenarios like game lobbies or viewing virtual characters. Similarly, if the primary application is a social media application, accelerated processing of business data might be required for voice and video calls, but not for sending / receiving text messages or reading articles. Therefore, accelerating all business data from the primary application would place unnecessary power consumption on the AP and STA devices.

[0113] In this embodiment, by using target session information, the business data of the first application in the target state can be identified, thereby accelerating the processing of the target business data of the first application in the target state, so as to avoid unnecessary device power consumption caused by accelerating the processing of all business data of the first application.

[0114] For example, if the first application is the game application described above, the target state is, for example, the battle state described above; if the first application is the social application described above, the target state is, for example, the call state described above. This embodiment does not limit the first application and the target state of the first application. The first application and the target state of the first application can be customized according to actual needs.

[0115] S203. The first device sends the connection information of the first device to the second device through the end pipe channel.

[0116] In this embodiment, the first device and the second device establish a first link, which is used to transmit service data between the first device and the second device. To accelerate the processing of the target service data, a second link can be established between the first device and the second device, and the target service data can be transmitted jointly through both the first link and the second link.

[0117] In a possible implementation, the first device can send its connection information to the second device via an end-to-end channel. This connection information can be the connection information of the second link. For example, the connection information may include at least one of the following: the AP device's second link SSID (Service Set Identifier), interface, authorization type, and MAC address. The content of the connection information can be expanded according to actual needs; any information related to establishing a second link between the first and second devices can be used as the connection information in this embodiment.

[0118] In one possible implementation, the second device could send an acquisition request to the first device via an endpoint channel. The first device, in response to the acquisition request, would then send connection information to the second device via the endpoint channel, thereby establishing a second link. In this embodiment, the second link is established to accelerate the processing of target service data. Therefore, the second device can send an acquisition request to the first device via the endpoint channel after the first application starts. This implementation ensures that the second link is established before the first application enters the target state, thus enabling rapid and complete acceleration of the target service data. Furthermore, establishing the second link after the first application starts ensures that a single link is maintained when service acceleration is not required, avoiding unnecessary device power consumption caused by dual-link connections.

[0119] In a second possible implementation, the first device could proactively send connection information to the second device via the endpoint channel to establish a second link. In this embodiment, the first device can determine whether the second device is running the first application and the status of the first application based on the endpoint channel. Therefore, similarly, after learning that the first application has started, the first device can send connection information to the second device via the endpoint channel, achieving a similar effect, which will not be elaborated further here.

[0120] S204. The first device and the second device establish a second link through connection information.

[0121] After the second device receives the connection information from the first device, the first and second devices can establish a second link based on the connection information. For example, the first and second links can be links in different frequency bands.

[0122] S205. The first device and the second device transmit target service data through the first link and the second link according to the target session information.

[0123] After the first application runs on the first device and enters the target state, the target service data needs to be transmitted between the first device and the second device. The data transmission between the first and second devices is bidirectional; that is, the first device needs to send downlink data to the second device, and the second device also needs to send uplink data to the first device. Both uplink and downlink data are considered target service data in this embodiment, therefore, both the first and second devices need to perform accelerated processing.

[0124] It is understandable that for target service data sent via the first and second links after accelerated processing by the first device, the corresponding second device is responsible for receiving it. Conversely, for target service data transmitted via the first and second links after accelerated processing by the second device, the corresponding first device is responsible for receiving it.

[0125] Therefore, both the first and second devices can transmit target service data via the first and second links based on the target session information. Since multiple types of service data may need to be transmitted simultaneously, and this embodiment only accelerates the target service data, the target service data can be identified based on the target session information, allowing both the first and second devices to recognize the target service data that needs acceleration.

[0126] Furthermore, when transmitting target service data through the first link and the second link, the target service data can be transmitted in segments, for example, by transmitting a portion of the target service data through the first link and the second link, thereby achieving complete transmission of the target service data. This is equivalent to transmitting the target service data through two parallel links, which effectively accelerates the processing of the target service data.

[0127] Alternatively, the target service data can be redundantly transmitted via both the first and second links. This means that both links transmit complete target service data, saving latency caused by retransmissions due to packet loss, thus accelerating the processing of the target service data. Furthermore, target service data requiring accelerated processing typically demands low latency. Therefore, this implementation method can also increase redundant transmission and reception capabilities by adding redundant links, thereby saving time spent on retransmissions due to packet loss and meeting low latency requirements.

[0128] These two acceleration methods have slightly different focuses. The first method focuses more on the rapid transmission of target business data to improve the data transmission rate; the second method focuses more on the stable transmission of target business data, which can also improve the data transmission rate. In actual implementation, the specific transmission method used can be selected and set according to actual needs.

[0129] The service data transmission method and apparatus provided in this application include: establishing an end-to-end channel between a first device and a second device, the end-to-end channel being used for exchanging device information between the first device and the second device. In response to the establishment of the end-to-end channel, the second device sends target session information of target service data to the first device through the end-to-end channel, the target service data being service data of a first application in the second device under a target state. The first device sends connection information of the first device to the second device through the end-to-end channel. The first device and the second device establish a second link through the connection information. The first device and the second device transmit the target service data through the first link and the second link according to the target session information. By establishing an end-to-end channel between the first device and the second device for exchanging device information, the target session information can be automatically sent to the first device through the end-to-end channel in response to the establishment of the end-to-end channel, wherein the target session information is used to identify the target service data. Furthermore, the first device and the second device can also establish a second link based on the end-to-end channel, and then both the first device and the second device transmit the target service data through the first link and the second link according to the target session information, thereby automatically accelerating the processing of the target service data without user intervention, avoiding cumbersome operations for service acceleration.

[0130] Based on the above introduction, the following will combine... Figures 3 to 5 The interaction between the first device and the second device in the business data transmission method provided in this application will be described in further detail. Figure 3 Signaling interaction for the service data transmission method provided in the embodiments of this application Figure 2 , Figure 4 This is a schematic diagram of the software architecture of the first device provided in an embodiment of this application. Figure 5 Data transmission illustration provided for embodiments of this application Figure 1 , Figure 6 Data transmission illustration provided for embodiments of this application Figure 2 .

[0131] like Figure 3 As shown, the method includes:

[0132] S301, The first device and the second device establish a first link.

[0133] Figure 3 The diagram illustrates how the first device and the second device establish a first link, such as... Figure 3 As shown, the second device can send a probe request frame to the second device. In response to the probe request frame, the first device sends a probe response frame to the second device.

[0134] The probe request frame is a broadcast packet sent by the second device to probe the surrounding BSS (Basic Service Set), and the probe response frame is a data packet sent by the first device in response to the probe request frame, which may include basic information about the first device's BSS.

[0135] In one possible implementation, the probe request frame may include an SSID. In this case, only APs within the BSS whose SSID matches the SSID in the broadcast packet (i.e., the first device in this embodiment) will respond via the probe response frame. If the probe request frame does not specify an SSID, all APs within the BSS surrounding the second device will respond.

[0136] After the second device receives the probe response frame sent by the first device, the corresponding interface change on the second device is that a pop-up window appears on the second device's screen prompting the user to enter the Wi-Fi password. Afterwards, the first and second devices can then execute [the necessary actions] based on the password. Figure 3 The first authentication and first connection shown enable the establishment of a first link between the first device and the second device.

[0137] The first authentication can be understood as the authentication performed by both the first and second devices on the first link. Essentially, it verifies whether the second device is qualified to access the network corresponding to the first link. For example, the second device can send an authentication request message to the first device. This message may include the user-entered password and the second device's MAC (Media Access Control) address. Upon receiving the authentication request message, the first device verifies the second device's MAC address and password. If the second device's MAC address is not disabled and the password is correct, the first device can reply with an authentication response frame to inform the second device that authentication was successful.

[0138] After authentication is successful on the first link, the first device and the second device need to further establish a connection so that the first device can allocate resources corresponding to the first link to the second device. For example, the second device can send an Association Request frame to the first device to establish an association. The first device then replies with an Association Response frame to the second device. Upon successful association, the second device saves the first device's record information, and the first device allocates resources to the second device.

[0139] After completing the authentication and connection procedures described above, a first link can be established between the first device and the second device. It should be noted that this embodiment does not limit the specific frequency band of the first link. If the first device and the second device have not yet established a transmission link, the second device can perform the current link establishment operation based on any SSID. The link established based on this SSID is the first link in this embodiment. In other words, the first link in this embodiment is the first link established by the first device and the second device when no transmission link has been established.

[0140] Optionally, the first and second devices can also interact via DHCP corresponding to the first link. DHCP (Dynamic Host Configuration Protocol) is a protocol that allows computers to automatically obtain IP addresses and other configuration information in a network without manual configuration. In a WiFi network, the AP can assign IP addresses and other configuration information to the STA (workstation) via the DHCP protocol, enabling the STA to communicate with other devices in the network.

[0141] S302. Establish an end pipe channel between the first device and the second device.

[0142] In this embodiment, the first device and the second device can also establish an end-to-end channel. In one possible implementation, the second device can establish an end-to-end channel with the first device in response to the launch of the first application within the second device. Alternatively, in actual implementation, the triggering event and execution time for establishing the end-to-end channel can be adjusted according to actual needs, as long as the establishment of the end-to-end channel is completed before the target service data is transmitted.

[0143] The following reference Figure 3 Understanding the process of establishing the end-pipe channel:

[0144] In this process, for the second device to establish an end-to-end channel with the first device, the second device and the first device must first be aware of each other. Therefore, the second device can send a device discovery signaling message to the first device, which is used to discover the first device.

[0145] In one possible implementation, since the second device has not yet detected the first device when the device discovery signaling is sent, the second device can send the discovery signaling to the first device, for example, by broadcasting.

[0146] After receiving the device discovery signaling, the first device can respond to the device discovery signaling by sending an ACK signaling to the second device to inform the second device that the device discovery signaling has been received, and also to allow the second device to discover the first device.

[0147] After the second device and the first device have mutually sensed each other based on the above-described interaction process, the second device can send a connection request to the first device. This connection request is used to request the establishment of a data transmission channel with the first device, i.e., the end-to-end channel in this application. If the first device agrees to establish a data transmission channel with the second device, it can send a key or certificate to the second device.

[0148] Then, the second device and the first device can perform mutual verification and authentication based on the key or certificate. In one possible implementation, the second device can send an authentication request to the first device based on the key or integer, and the authentication request includes the key or certificate described above.

[0149] The first device can first verify whether the data is complete based on the key or certificate included in the authentication request. After the data verification is completed, it can further determine whether the key or certificate included in the authentication request is the same as the key or certificate issued by the first device. If they are the same, the authentication is confirmed to be successful.

[0150] Once the authentication is successful, a data transmission channel can be established between the first device and the second device, which is the end-to-end channel in this application.

[0151] In one possible implementation, after the first device and the second device establish an end-to-end channel, the second device can also obtain information through the end-to-end channel regarding whether the first device supports service data acceleration, and also obtain information about the services supported by the first device. If the second device determines that the first device supports service data acceleration, then the following S303 and S304 interactions are performed. This avoids the resource waste caused by ineffective execution of S303 and S304 interactions if the first device itself does not support service acceleration.

[0152] S303, The first device and the second device exchange target session information and connection information of the first device.

[0153] After the first device and the second device establish an end-to-end channel, the first device and the second device can exchange target session information based on the end-to-end channel.

[0154] Reference Figure 3The second device can send target session information to the first device through the end channel. After receiving the target session information, the first device can, for example, send a first acknowledgment message (ack) to the second device through the end channel to inform the second device that it has received the target session information.

[0155] Furthermore, the first device and the second device can also exchange connection information of the first device based on the end-pipe channel. For example, refer to... Figure 3 The second device can send an acquisition request to the first device through the end-to-end channel. This acquisition request is used to request the connection information of the second device; specifically, the connection information obtained here is different from the connection information of the first link described above. Optionally, the acquisition request may also include the second device's SN (Serial Number) and / or MAC address, thus preparing for the subsequent establishment of the second link. Afterwards, in response to the connection information, the first device sends the second link connection information to the first device through the end-to-end channel.

[0156] In this embodiment, the target session information and the connection information of the first device are exchanged based on the end-to-end channel because the end-to-end channel and the first link described above are two independent data channels. The first link itself transmits service data; therefore, transmitting the target session information and the connection information of the first device based on the end-to-end channel reduces interference with the service data. Furthermore, the end-to-end channel in this embodiment can be understood as a private data channel between the first and second devices. Therefore, data transmission can be completed efficiently based on the end-to-end channel. Since the end-to-end channel does not transmit service data but only small amounts of device information, network fluctuations or anomalies have a very small impact on it, thus improving the stability of accelerated processing of the target service data.

[0157] S304. The first device and the second device establish a second link based on the connection information.

[0158] After the second device obtains the connection information of the first device, it can establish a second link with the first device based on the connection information. The method of establishing the second link is similar to the method of establishing the first link described above. The difference is that, based on the aforementioned end-to-end channel, the first and second devices have already completed the exchange of connection information for the second link. Therefore, the first and second devices can directly perform the authentication and connection operations corresponding to the second link.

[0159] like Figure 3As shown, the second authentication can be understood as the authentication of the second link performed by both the first and second devices. Similarly, the second device can send an authentication request message to the first device, which may include the password corresponding to the SSID of the second link entered by the user. After receiving the authentication request message, the first device verifies the MAC address and password of the second device. If the MAC address of the second device is not disabled and the password is correct, the first device can reply with an authentication response frame to the second device to inform it that the authentication was successful.

[0160] After authentication for the second link is successful, the first and second devices need to further establish a connection so that the first device can allocate resources corresponding to the second link to the second device. For example, the second device can send an Association Request frame to the first device to establish an association. The first device then replies with an Association Response frame to the second device. Upon successful association, the second device saves the first device's record information, and the first device allocates resources to the second device.

[0161] After completing the authentication and connection procedures described above, a second link can be established between the first and second devices. Similarly, this embodiment does not limit the specific frequency band of the second link. If the first and second devices already have a first link, the second device can perform the current link establishment operation based on any SSID. The link established based on this SSID is the second link in this embodiment. In other words, the second link in this embodiment is the second link established by the first and second devices when a transmission link already exists.

[0162] Optionally, the first and second devices can also interact via DHCP for the second link. DHCP (Dynamic Host Configuration Protocol) is a protocol that allows computers to automatically obtain IP addresses and other configuration information within a network without manual configuration. In a WiFi network, the AP can assign IP addresses and other configuration information to the STA (workstation) via the DHCP protocol, enabling the STA to communicate with other devices on the network.

[0163] In one possible implementation, the second link establishment operation described above can be performed after the first application in the second device starts, so that when transmitting target service data, dual links can be used for data transmission in real time, thereby achieving complete accelerated processing of the target service data.

[0164] Furthermore, after the first device and the second device establish the second link, the second device can send a connection reporting message to the first device. The connection reporting message may include the second device's SN, the link information of the first link, and the link information of the second link. The link information of the first link may include at least one of the following: the interface identifier and MAC address of the second device connected to the first link, the frequency band of the first link, the SSID of the first link, etc. Similarly, the link information of the second link may include at least one of the following: the interface identifier and MAC address of the second device connected to the first link, the frequency band of the first link, the SSID of the first link, etc., so that the first device can obtain the complete link connection information of the second device, thereby ensuring the correctness and stability of subsequent data transmission.

[0165] Accordingly, after receiving the connection reporting message, the first device can send a second acknowledgment message (ack) to the second device to inform the first device that it has received the connection reporting message.

[0166] S305. The first device and the second device transmit target service data through the first link and the second link according to the target session information.

[0167] Then, the first and second devices can transmit the target data service through the first and second links according to the target session information, thereby accelerating the processing of the target data service.

[0168] In this embodiment, the details of accelerating the processing of target data services will be further elaborated. The implementation methods of the first device and the second device are similar, so the following description of the current steps will not distinguish between the first device and the second device.

[0169] When business data needs to be transmitted, the first step is to obtain the first session information of the business data to be transmitted, which can be a 5-tuple of the business data to be transmitted. Then, the first session information is compared with the target session information. If the first session information and the target session information match, it can be determined that the business data to be transmitted is the target business data that needs accelerated processing. Afterwards, the target business data can be transmitted through the first link and the second link.

[0170] The target service data is identified from multiple service data transmitted simultaneously by using the target session information. Then, the target service data is transmitted through the first link and the second link. This allows for precise acceleration of the target service data that needs to be accelerated, while service data that does not need to be accelerated can be transmitted in the normal processing mode to avoid unnecessary impact on the power consumption of the first and second devices.

[0171] Furthermore, when transmitting target service data through the first and second links, the first device is responsible for forwarding the uplink data sent by the second device, and the first device is also responsible for sending the downlink data to be sent to the second device. Therefore, the data transmission process of the first device has a relatively large impact on the data transmission rate.

[0172] In this embodiment, the data transmission method of the first device has been optimized to a certain extent, thereby further meeting the need for accelerated processing of target service data. The optimization methods for the data transmission method of the first device are similar for the first link and the second link. Therefore, the following description of the current steps will no longer distinguish between the first link and the second link; it can be understood that the following operations are performed for either the first link or the second link.

[0173] Normally, when transmitting data, the first device aggregates smaller data packets into a larger one before transmitting it. However, in this embodiment, the first data packet of the target service data is directly placed into the transmission queue corresponding to the link. This first data packet is the unaggregated data packet. In other words, this embodiment directly places the target service data packet into the transmission queue without aggregation, effectively avoiding data transmission latency caused by buffering and waiting time due to data packet aggregation. This improves the transmission efficiency of the target service data and enables rapid forwarding of the target service data packet.

[0174] You can refer to Figure 4 Understand the specific meaning of not performing aggregation, such as Figure 4 As shown, the software architecture of the first device includes a TCP (Transmission Control Protocol) / IP (Internet Protocol) protocol stack, bridge forwarding, kernel, software acceleration module, WIFI driver, ETH (Ethernet) interface, and hardware layer.

[0175] Bridge forwarding can include, for example, the NF_BR_PRE_ROUNTING and NF_BR_LOCAL_IN units. NF_BR_PRE_ROUNTING indicates that netfilter PREROUTING has been performed on the bridge; NF stands for netfilter, and PREROUTING is primarily used to perform DNAT (Destination Network Address Translation). NF_BR_LOCAL_IN is used to perform data delivery.

[0176] Furthermore, the kernel can also include a NET / CORE layer, where NET is the network layer and CORE is the core layer.

[0177] In addition, the software acceleration module includes an FC (Fiber Channel) acceleration engine, which can optimize network connectivity and accelerate data transmission to improve network performance.

[0178] Furthermore, the WIFI driver can also include the OS (Operating System) layer, the CORE (kernel) layer, and the PHL (Physical Layer).

[0179] Based on this software architecture, the following will combine Figure 4 To understand the data transmission process in the first device, such as... Figure 4 As shown, the ETH interface includes a receive buffer (RX FIFO), where RX stands for Receive. FIFO can be viewed as a buffer with read and write pointers, which stores and retrieves data according to the first-in, first-out principle.

[0180] Specifically, the receive buffer can cache the service data received by the first device, and the service data can be processed according to... Figure 4 The data frames shown are stored in the receive buffer, and the first device needs to forward the service data in the receive buffer.

[0181] In one possible implementation scheme, refer to Figure 4 The normal business data transmission path shown can pass through the NET / CORE layer and bridge forwarding module in the kernel, and transmit business data to the WiFi driver in skb (Socket Buffer) data structure by calling the send function (nod_start_xmit). Here, ndo_start_xmit is a function in the network device driver used to initiate the send operation.

[0182] Reference Figure 4 Understandably, multiple skb data structures can be generated for business data, and these skb data structures are sequentially connected. Then, for any given skb, it can be packaged through the OS layer, CORE layer, and PHL layer in the WiFi driver into... Figure 4 The format of the data frame in the PHL layer is shown. For example, assume that the current data obtained is... Figure 4 The example shown is frame 1. Afterwards, the packaged frame 1 can be queued and aggregated for transmission.

[0183] Among them, the OS layer, CORE layer and PHL layer can respectively perform packet loss detection before packet assembly, and the CORE layer can also perform enqueue verification. The PHL layer can also attach a TX descriptor before sending the packet and then perform enqueue aggregation.

[0184] exist Figure 4 The diagram illustrates the data queues corresponding to the three STAs: STA1, STA2, and STA3. Figure 4 The queue consisting of 8 data frames is illustrated by a ring. Assuming that the packaged frame 1 is to be sent to STA1, then frame 1 can be aggregated into the data queue corresponding to STA1.

[0185] Next, the aggregated queue corresponding to STA1 is further placed into... Figure 4 The data is sent through the send request buffer (txreq_buf) shown, and then through the send buffer (TX FIFO) in the hardware layer, thereby sending the aggregated frame 1 to STA1.

[0186] However, in the implementation method described above, the aggregation of skb and multiple caching processes can lead to a longer data transmission time.

[0187] Therefore, this embodiment proposes another technical solution, referring to... Figure 4 The business data transmission path under the soft acceleration shown in the figure allows the business data in the receive buffer in ETH to be transmitted to the WiFi driver by directly calling the send function (nod_start_xmit) through the soft acceleration module, in the form of skb (Socket Buffer) data structure.

[0188] Because the software acceleration module includes an FC acceleration engine, it can effectively improve the transmission speed of business data. Furthermore, the FC acceleration engine directly transmits business data to the WiFi driver in skb data format, which can save the latency caused by multi-module processing and transmission, thereby effectively improving the data transmission rate within the first device.

[0189] Similarly, for any skb, it can be packaged into... through the OS, CORE, and PHL in the WiFi driver. Figure 4 The format of the data frame in the PHL is shown. For example, assume that the current data obtained is... Figure 4 Frame 1 is shown.

[0190] Unlike the above, the current scheme directly places the data frame into the hardware layer's transmit buffer after packaging, without performing aggregation processing. (See reference...) Figure 4 The packaged frame 1 is directly placed into the hardware layer's transmit buffer, and then data can be transmitted through the transmit buffer (TX FIFO) in the hardware layer, thus sending frame 1 to STA1. Here, TX stands for Transmit.

[0191] Therefore, this implementation method can save the latency caused by data aggregation and data buffering, thereby effectively improving the data transmission speed.

[0192] In the above Figure 4 Based on this, the transmission queue described above can be understood as the transmission queue in the transmission buffer, and the first data packet described above can be understood as... Figure 4 The data frame is shown in the diagram. After the first data packet is placed directly into the transmission queue in the send buffer, the various data packets in the queue can be transmitted through the transmission queue.

[0193] When transmitting data packets through a transmission queue, in addition to the first data packet containing the target service data, the transmission queue may also contain a second data packet containing other service data. In order to further accelerate the transmission of the target service data, the following transmission strategy can be set in this embodiment: if the transmission queue includes the first data packet containing the target service data and the second data packet containing other service data, then the first data packet containing the target service data is transmitted first.

[0194] The transmission of individual data packets in the transmission queue is typically implemented using the TXOP (Transmission Opportunity) mechanism. In the TXOP mechanism, after transmitting one data packet, there is usually an interval of SIFS before the next data packet can be transmitted. SIFS stands for Short Interframe Space, which refers to the time interval used to separate the frames belonging to a single conversation.

[0195] Reference Figure 5 and Figure 6After adding the duration of the random backoff parameter to the AIFS (Arbitration InterFrame Space), multiple data packets in the transmission queue can be sent sequentially on the link.

[0196] Specifically, Figure 5 This illustrates a current technical solution where the first data packet containing the target business data and the second data packet containing other business data are transmitted sequentially according to their order in the transmission queue, without considering business priority.

[0197] The technical solution provided in this embodiment can be referred to... Figure 6 When the transmission queue includes a first data packet of target service data and a second data packet of other service data, the first data packet of target service data is transmitted first, thereby accelerating the processing of target service data.

[0198] In one possible implementation, when transmitting the first data packet of the target service data according to the transmission queue, in addition to the software-level transmission mechanism described above, a dedicated first hardware channel for transmitting the target service data can be set up at the hardware level. Then, the first data packet of the target service data is transmitted based on the first hardware channel, thereby providing a dedicated hardware transmission channel for the transmission of the target service data, thus improving the transmission rate of the target service data at the hardware level.

[0199] In summary, in addition to using the first link and the second link to transmit the target service data, thereby accelerating the transmission of the target service data, the technical solution of this application has also made many improvements to the first device at both the software and hardware levels, thereby effectively improving the transmission rate of the target service data.

[0200] S306, The first and second devices restore a single link.

[0201] In this embodiment, data transmission is required based on both the first and second links to accelerate the processing of the target service data. However, maintaining a dual-link connection always results in higher device power consumption. Therefore, after the transmission of the target service data is completed, the first and second devices can restore the single-link connection to reduce the power consumption of both devices.

[0202] For details, please refer to Figure 3 After the first application in the second device stops running, the second device can send a notification message to the first device through the end pipe channel, wherein the notification message is used to indicate that the first application has stopped running.

[0203] In response to a notification message sent by the second device, the first device can reply with a third acknowledgment message (ack) via the end-to-end channel to indicate that the first device has received a notification message that the first application has stopped running. Afterwards, the second link connection between the first and second devices can be disconnected.

[0204] Alternatively, the first device can periodically detect the running status of the first application in the second device through the end-pipe channel, thereby determining that the first application in the second device has stopped running. Then, the first device triggers the disconnection of the second link, thus restoring the single-link state between the first and second devices.

[0205] After the second link is disconnected, the first device can send a disconnection report message to the second device. The connection report message can include the second device's serial number (SN) and the link information of the first link, so that the first device can clearly understand the complete link connection information of the second device under the current situation, thereby ensuring the correctness and stability of subsequent data transmission.

[0206] Correspondingly, after receiving the disconnection report message, the first device can send a fourth acknowledgment message (ack) to the second device to inform the first device that it has received the disconnection report message, thus realizing the restoration of the single connection between the first and second devices.

[0207] The service data transmission method provided in this application establishes the end-to-end channel and connects the second link immediately after the first application starts. This enables real-time dual-link data transmission during target service data transmission, achieving complete acceleration of the target service data. Furthermore, numerous software and hardware acceleration strategies are implemented for the first device to further improve the transmission rate of the target service data. After the first application exits, the transmission of the target service data is confirmed to be complete, thus restoring the single-link state between the first and second devices, effectively avoiding unnecessary power consumption by both devices.

[0208] Based on the above introduction, the following will combine... Figure 7 The specific interactions between the various software units in the business data transmission method will be further described in detail. Figure 7 A schematic diagram of software unit interaction for the business data transmission method provided in the embodiments of this application.

[0209] exist Figure 7 The text directly uses AP devices and STA devices as the main focus. It can be understood that the AP device corresponds to the first device described in the above embodiments, and the STA device corresponds to the second device described in the above embodiments.

[0210] like Figure 7 As shown, an AP device includes a state machine, a WLAN (Wireless Local Area Network) unit, and an ECM (Enterprise Communication Manager) unit. The state machine records the execution state of the AP device, while the ECM unit manages and maintains the AP device's configuration information, such as network interfaces, routing tables, and security policies.

[0211] The specific interaction process between the various units in the STA and AP devices is as follows:

[0212] 1. The STA device sends an acquisition request to the state machine. The acquisition request is used to request the connection information of the AP device. Based on the above description, it can be determined that the connection information of the second link needs to be obtained here.

[0213] 2. The state machine modifies its recorded state to obtain connection information (send_get_wifi2config_msg) and sends an acquisition request to the WLAN unit. The acquisition request is similar to that described above and is used to request the connection information of the second link of the second device.

[0214] In one possible implementation, the state machine initially enters an idle state. Therefore, the current state machine can evaluate the received acquisition message, such as checking if the message format meets requirements. If the evaluation passes, the state recorded by the state machine is switched from the idle state to the "acquiring connection information" state described above. The "acquiring connection information" state indicates that the current AP device is acquiring connection information for the second link.

[0215] The state machine incorporates a retry mechanism. If acquiring connection information for the second link fails—for example, if no connection information is received after a first preset time interval following the state machine's initial request—the state machine can resend the acquisition request to the WLAN. Furthermore, the state machine also features a timeout mechanism. If the state machine remains in the "acquiring connection information" state for a second preset time interval, it is considered to have timed out. The state machine then abandons acquiring connection information from the WLAN module and switches its recorded state to the idle state to prevent system processes from stalling at this stage.

[0216] 3. The WLAN unit sends connection information to the state machine.

[0217] For example, the state machine can also perform message evaluation on the received connection information, and only execute subsequent steps if the evaluation is successful.

[0218] 4. The state machine sends connection information to the STA device and modifies the recorded status to "connection information sent" (send_wifi2config_to_sta).

[0219] 5. Because the state machine also needs to determine whether the two links are connected to the same route based on the dual-link configuration in the STA and AP devices, the state machine then modifies the recorded state to wait for confirmation of the configuration (wait_dconfig_confirm).

[0220] 6. The STA device sends a connection report message (confirm_config) to the state machine.

[0221] Based on the above introduction, it can be confirmed that the connection reporting information includes the link information of the first link and the information of the second link.

[0222] 7. If the connection reporting information format is deemed acceptable, the state machine switches the recorded state to obtain dual-link configuration (send_get_dconfig_msg) and sends a configuration request to the WLAN unit to request the dual-link configuration recorded in the AP device.

[0223] When the state machine obtains the dual-link configuration, the retry and timeout determination mechanisms described above also apply.

[0224] Based on the above embodiments, it can be determined that after the STA device sends connection reporting information to the AP device, the AP device needs to send a second confirmation message to the STA device to indicate that it has received the second confirmation message. Regardless of whether the current co-routing determination passes, the AP device needs to send the second confirmation message to the STA device. Therefore, when the dual-link configuration acquisition times out, the AP device can abandon acquiring the dual-link configuration from the WLAN unit and proceed to step 9, avoiding system process bottlenecks at this stage.

[0225] 8. The WLAN unit sends a dual-link configuration to the state machine, wherein the dual-link configuration includes the link information of the first link and the link information of the second link recorded in the AP device.

[0226] 9. The state machine sends a second confirmation message (confirm_config_ack) to the STA device and switches the state recorded by the state machine to the state that the confirmation message has been sent (send_dconfig_info).

[0227] In addition, the state machine also has a retry decision mechanism and a timeout decision mechanism when sending the second confirmation message. When the state machine is in the "confirmation message sent" state for a longer period than the threshold, the recorded state can be switched to the waiting confirmation configuration (wait_dconfig_confirm) described above, and then the operation starting from step 5 can be re-executed.

[0228] Alternatively, when the state machine compares the dual-link information sent by the STA device with the dual-link information in the AP device, and the comparison result does not match, the recorded state can also be switched to the waiting confirmation configuration (wait_dconfig_confirm) described above, and then the operation starting from step 5 can be re-executed.

[0229] 10. If the comparison results match, the state machine will change the recorded state to dual-link connection (dc_connected) and send a message to the WLAN unit to notify that the dual-link connection has been successfully established.

[0230] 11. The STA device sends the target session information (data_flow_add_info) of the target service data to the state machine through the end-to-end channel.

[0231] 12. If the state machine passes the format determination of the target session information, send the first configuration information to the ECM unit and modify the recorded state to send configuration information to the ECM (send_ECM_config_msg).

[0232] The first configuration information is used to instruct the ECM unit to add a first configuration, which instructs the first device not to perform hardware acceleration processing on the data corresponding to the target session information.

[0233] Specifically, current AP devices typically use hardware acceleration mode by default to improve data transmission speed. This hardware acceleration mode exists to improve the overall data transmission speed of the AP device, and is not specifically designed for the target service data. However, this embodiment accelerates the target service data through a series of special processing methods. Therefore, if the hardware acceleration mode continues to be used, it will interfere with the various special processing methods for the target service data in this application, and the corresponding technical effect cannot be achieved. Therefore, it is necessary to cancel the hardware acceleration mode for the target service data.

[0234] Therefore, after receiving the target session information, the state machine sends the first configuration information to the ECM unit to instruct the ECM unit not to perform hardware acceleration processing on the data corresponding to the target session information (i.e., the target service data). In other words, the target service data is not processed using the hardware acceleration mode, thereby ensuring the execution effect of the technical solution of this application.

[0235] The state machine's sending of the first configuration information also includes a timeout mechanism and a retry mechanism. The retry mechanism means that if no response is received from the ECM module after a certain period, the first configuration information is resent. The timeout mechanism means that if the state machine's timeout for sending configuration information (send_ECM_config_msg) exceeds a threshold, the AP device can abandon sending the first configuration information to the ECM unit and proceed to step 14, preventing system process bottlenecks at this stage.

[0236] Because regardless of whether hard acceleration is successfully canceled, after receiving the target session information sent by the STA device, the AP device has already recorded the parameters for accelerating the target service data. Therefore, it needs to respond to the STA device to inform it that the acceleration of the target service data has been successfully added.

[0237] 13. The ECM unit sends a message to the state machine to notify that the first configuration has been added.

[0238] 14. The state machine sends a message to the STA device to notify that the accelerated processing of the target service data has been successfully added, and modifies the recorded status to "target service data added successfully" (send_data_flow_add_ack).

[0239] The current step also includes a retry mechanism and a timeout mechanism. When the time the state machine is in the state of "target business data added successfully" exceeds the threshold, the recorded state can be switched to the dual-link connection (dc_connected) described above, and then the operation starting from step 10 can be re-executed.

[0240] Alternatively, when the state machine confirms that the first configuration addition failed based on the message replied by the ECM unit, the recorded state can also be switched to the dual-link connection (dc_connected) described above, and then the operation starting from step 10 can be re-executed.

[0241] 15. When the state machine confirms that the first configuration has been successfully added based on the message sent by the ECM unit, it changes the recorded state to dual-link active (dc_actived) and sends a message to the WLAN module to inform that the target service data acceleration has been successful.

[0242] Then, the AP device and STA device can transmit the target service data based on the content described in the above embodiments, thereby achieving accelerated transmission of the target service data.

[0243] 16. After the first application exits, the STA device sends a notification message (data_flow_del_info) to the state machine, which indicates that the first application has exited.

[0244] 17. If the format of the notification message passes the test, the state machine sends a message to the ECM module to notify the game acceleration to be disconnected, and changes the recorded state to business acceleration disconnected (dc_data_disconnected).

[0245] 18. The state machine sends the second configuration information to the ECM module and switches the recorded state to send configuration information to the ECM (send_ECM_config_msg).

[0246] The second configuration information is used to instruct the ECM unit to cancel the first configuration because the current accelerated processing of the target service data has ended, and therefore it is necessary to resume the hardware accelerated processing of the data corresponding to the target session information.

[0247] The current step also includes timeout and retry mechanisms. The retry mechanism means that if no response is received from the ECM module after a certain period, the second configuration information is resent. The timeout mechanism means that if the state machine exceeds a threshold time for sending configuration information (send_ECM_config_msg), the AP device can abandon sending the second configuration information to the ECM unit and proceed to step 20, preventing the system process from stalling at this stage.

[0248] Regardless of whether the hardware acceleration is successfully restored, the AP device will perform subsequent cancellation of the acceleration process after receiving the notification message from the STA device. Therefore, it is necessary to respond to the STA device to inform it that the acceleration process for the target service data has been successfully cancelled.

[0249] 19. The ECM unit sends a message to the state machine to notify that the first configuration has been deleted.

[0250] 20. The state machine sends a message to the STA device to notify that the accelerated processing of the target service data has been successfully canceled, and modifies the recorded status to "target service data cancellation successful" (send_data_flow_del_ack).

[0251] The current step also includes a retry mechanism and a timeout mechanism. When the state machine remains in the state of "target business data cancellation successful" for longer than the threshold, the recorded state can be switched to dual-link connection (dc_connected).

[0252] 21. The state machine switches the recorded state to dual-link connection (dc_connected).

[0253] 22. Since the target service data transmission is complete, the STA device can disconnect the second link with the second device and send a disconnection report message (wifi2_disconnected) to the state machine.

[0254] 23. The state machine switches the recorded state to end or destroy and sends a message to the WLAN unit to notify that the dual-link connection is broken.

[0255] In this embodiment, by controlling the ECM module to cancel hardware acceleration processing of the data corresponding to the target session information when accelerating the target service data, the various acceleration configurations of this application can achieve the best technical effect. Furthermore, after the acceleration processing is completed, the ECM module is controlled to resume hardware acceleration processing of the data corresponding to the target session information, so that the normal acceleration processing of the AP device can proceed stably.

[0256] The service data transmission method of the present application embodiments has been described above. The apparatus for executing the above-described service data transmission method provided in the present application embodiments is described below. Those skilled in the art will understand that the methods and apparatus can be combined with and referenced by each other, and the related apparatus provided in the present application embodiments can execute the steps in the above-described service data transmission method.

[0257] Figure 8 Schematic diagram of the structure of the service data transmission device provided in the embodiments of this application Figure 1 .like Figure 8 As shown, the device 80 includes: a processing module 801 and a transmission module 802;

[0258] Processing module 801 is used to establish an end-to-end channel with the second device, the end-to-end channel being used for the first device and the second device to exchange device information;

[0259] The transmission module 802 is used to, in response to the establishment of the end-to-end channel, obtain the target session information of the target service data through the end-to-end channel, wherein the target service data is the service data of the first application in the second device in the target state;

[0260] The transmission module 802 is also used to send the connection information of the first device to the second device through the end pipe channel;

[0261] The processing module 801 is further configured to establish a second link with the second device through the connection information;

[0262] The transmission module 802 is further configured to transmit the target service data through the first link and the second link according to the target session information.

[0263] In some implementations, the transmission module 802 is specifically used for:

[0264] Obtain the first session information of the business data to be transmitted;

[0265] Based on the target session information and the first session information, it is determined whether the service data to be transmitted is the target service data;

[0266] If so, the target service data is transmitted through the first link and the second link.

[0267] In some implementations, the transmission module 802 is specifically used for:

[0268] For either the first link or the second link, the first data packet of the target service data is placed into the transmission queue of the link, wherein the first data packet is a data packet that has not undergone aggregation processing;

[0269] The first data packet of the target service data is transmitted according to the transmission queue.

[0270] In some implementations, the transmission module 802 is specifically used for:

[0271] If the transmission queue includes a first data packet containing the target service data and a second data packet containing other service data, then the first data packet containing the target service data shall be transmitted first.

[0272] In some implementations, the transmission module 802 is specifically used for:

[0273] According to the transmission queue, a first data packet of the target service data is transmitted based on a first hardware channel, wherein the first hardware channel is a data channel used only for transmitting the target service data.

[0274] In some implementations, the transmission module 802 is further configured to:

[0275] After establishing a second link with the second device through the connection information, a connection reporting message sent by the second device is received through the end-pipe channel. The connection reporting message is used to indicate the establishment of the second link and includes the link information of the first link and the link information of the second link.

[0276] In some implementations, the first device includes a state machine and an Enterprise Configuration Manager (ECM) unit;

[0277] The transmission module 802 is also used for:

[0278] After obtaining the target session information of the target service data through the terminal channel, the state machine sends the first configuration information to the ECM unit. The first configuration information is used to instruct the ECM unit to add a first configuration. The first configuration instructs the first device not to perform hardware acceleration processing on the data corresponding to the target session information.

[0279] In some implementations, the processing module 801 is further configured to:

[0280] The notification message sent by the second device is received through the terminal channel, and the notification message is used to instruct the first application to stop running;

[0281] In response to the notification message, the second link is disconnected;

[0282] The disconnection reporting message sent by the second device is received through the end channel. The disconnection reporting message is used to indicate the disconnection of the second link and includes the link information of the first link.

[0283] In some implementations, the processing module 801 is further configured to:

[0284] In response to the notification message, the state machine sends second configuration information to the ECM unit, the second configuration information being used to instruct the ECM unit to cancel the first configuration.

[0285] The apparatus provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be described again in this embodiment.

[0286] Figure 9 Schematic diagram of the structure of the service data transmission device provided in the embodiments of this application Figure 2 .like Figure 9 As shown, the device 90 includes: a processing module 901 and a transmission module 902;

[0287] Processing module 901 is used to establish an end-to-end channel with the first device, the end-to-end channel being used for the second device to exchange device information with the first device;

[0288] The transmission module 902 is used to send target session information of target service data to the first device through the end-to-end channel in response to the establishment of the end-to-end channel. The target service data is the service data of the first application in the second device in the target state.

[0289] The transmission module 902 is also used to obtain the connection information of the first device through the end pipe channel;

[0290] The processing module 901 is further configured to establish a second link with the first device through the connection information;

[0291] The transmission module 902 is further configured to transmit the target service data through the first link and the second link according to the target session information.

[0292] In some implementations, the transmission module 902 is specifically used for:

[0293] Obtain the first session information of the business data to be transmitted;

[0294] Based on the target session information and the first session information, it is determined whether the service data to be transmitted is the target service data;

[0295] If so, the target service data is transmitted through the first link and the second link.

[0296] In some implementations, the transmission module 902 is further configured to:

[0297] After establishing a second link with the first device through the connection information, a connection reporting message is sent to the first device through the end-pipe channel. The connection reporting message is used to indicate the establishment of the second link and includes the link information of the first link and the link information of the second link.

[0298] In some implementations, the processing module 901 is further configured to:

[0299] After the first application stops running, a notification message is sent to the first device through the end channel, the notification message being used to instruct the first application to stop running;

[0300] The second link is disconnected, and a disconnection reporting message is sent to the first device through the end-pipe channel. The disconnection reporting message is used to indicate the disconnection of the second link, and the disconnection reporting message includes the link information of the first link.

[0301] The apparatus provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be described again in this embodiment.

[0302] This application provides an electronic device. Figure 10 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application.

[0303] like Figure 10 As shown, the electronic device 100 includes: a processor 1001 and a memory 1002; the memory 1002 stores computer execution instructions; the processor 1001 executes the computer execution instructions stored in the memory 1002, causing the electronic device 100 to perform the above-described method.

[0304] When the memory 1002 is set up independently, the electronic device also includes a bus 1003 for connecting the memory 1002 and the processor 1001.

[0305] This application provides a chip. The chip includes a processor, which is used to call a computer program in memory to execute the technical solutions in the above embodiments. Its implementation principle and technical effects are similar to those in the related embodiments described above, and will not be repeated here.

[0306] This application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, it implements the methods described above. The methods described in the above embodiments can be implemented wholly or partially by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted over the computer-readable medium. The computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.

[0307] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage or other magnetic storage devices, or any other medium targeted to carry or to store the required program code in the form of instructions or data structures, and accessible by a computer. Furthermore, any connection is appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. As used herein, disks and optical discs include optical discs, laser discs, optical discs, Digital Versatile Discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0308] This application provides a computer program product, which includes a computer program that, when run, causes a computer to perform the above-described method.

[0309] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0310] The above specific embodiments further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method of transmitting service data, characterized by, The method is applied to a first device, and a first link is established between the first device and a second device, and the method comprises: establishing a pipe-through channel with the second device, the pipe-through channel being used for the first device and the second device to exchange device information, so that the first device and the second device perceive the service state of each other; in response to the establishment of the pipe-through channel, obtaining target session information of target service data through the pipe-through channel, the target service data being service data of a first application in the second device in a target state; sending connection information of the first device to the second device through the pipe-through channel, and establishing a second link with the second device through the connection information; transmitting the target service data through the first link and the second link according to the target session information; the transmitting the target service data through the first link and the second link according to the target session information comprises: obtaining first session information of to-be-transmitted service data; determining whether the to-be-transmitted service data is the target service data according to the target session information and the first session information; if yes, transmitting the target service data through the first link and the second link.

2. The method of claim 1, wherein, the transmitting the target service data through the first link and the second link comprises: for any one of the first link and the second link, putting a first data packet of the target service data into a transmission queue of the link, the first data packet being a data packet that has not been aggregated; transmitting the first data packet of the target service data according to the transmission queue.

3. The method of claim 2, wherein, the transmitting the first data packet of the target service data according to the transmission queue comprises: if the transmission queue includes the first data packet of the target service data and a second data packet of other service data, preferentially transmitting the first data packet of the target service data.

4. The method according to claim 2 or 3, characterized in that, the transmitting the first data packet of the target service data according to the transmission queue comprises: transmitting the first data packet of the target service data based on a first hardware channel according to the transmission queue, the first hardware channel being a data channel used only for transmitting the target service data.

5. The method according to any one of claims 1 to 3, characterized in that, after the second link is established through the connection information with the second device, the method further comprises: receiving a connection report message sent by the second device through the pipe-through channel, the connection report message being used for indicating the establishment of the second link, and the connection report message including link information of the first link and link information of the second link.

6. The method according to any one of claims 1 to 3, characterized in that, the first device comprises a state machine and an enterprise configuration manager (ECM) unit; after the target session information of the target service data is obtained through the pipe-through channel, the method further comprises: the state machine sends first configuration information to the ECM unit, the first configuration information being used for instructing the ECM unit to add a first configuration, the first configuration instructing the first device not to perform hardware acceleration processing on data corresponding to the target session information.

7. The method of claim 6, wherein, the method further comprises: receiving, through the end pipe channel, a notification message sent by the second device, the notification message being used to instruct the first application program to stop running; in response to the notification message, disconnecting the second link; receiving, through the end pipe channel, a disconnection report message sent by the second device, the disconnection report message being used to indicate disconnection of the second link, the disconnection report message including link information of the first link.

8. The method of claim 7, wherein, The method further comprises: in response to the notification message, the state machine sending second configuration information to the ECM unit, the second configuration information being used to instruct the ECM unit to cancel the first configuration.

9. A service data transmission method characterized by comprising: applied to a second device, the second device having a first link established with a first device, the method comprising: establishing an end pipe channel with the first device, the end pipe channel being used for the second device to interact with the first device for device information; in response to establishment of the end pipe channel, sending, through the end pipe channel, target session information of target service data to the first device, the target service data being service data of a first application program in the second device in a target state; obtaining connection information of the first device through the end pipe channel, and establishing a second link with the first device through the connection information; transmitting the target service data through the first link and the second link according to the target session information; The transmitting the target service data through the first link and the second link according to the target session information comprises: obtaining first session information of service data to be transmitted; determining whether the service data to be transmitted is the target service data according to the target session information and the first session information; if yes, transmitting the target service data through the first link and the second link.

10. The method of claim 9, wherein, After the second link is established through the connection information with the first device, the method further comprises: sending, through the end pipe channel, a connection report message to the first device, the connection report message being used to indicate establishment of the second link, the connection report message including link information of the first link and link information of the second link.

11. The method of claim 9, wherein, The method further comprises: after the first application program stops running, sending, through the end pipe channel, a notification message to the first device, the notification message being used to instruct the first application program to stop running; disconnecting the second link, and sending, through the end pipe channel, a disconnection report message to the first device, the disconnection report message being used to indicate disconnection of the second link, the disconnection report message including link information of the first link.

12. An electronic device, comprising: comprise: a processor and a memory; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the electronic device executes the method in any one of claims 1-8 or claims 9-11.

13. A computer-readable storage medium, the computer-readable storage medium storing a computer program, characterized in that, The computer program is executed by the processor to implement the method in any one of claims 1-8 or claims 9-11.

14. A computer program product, characterised in that, A computer program product comprising a computer program which, when executed by a computer, causes the computer to perform the method of any one of claims 1-8 or claims 9-11.

Citation Information

Patent Citations

  • Dual channel data transmission method, device, network node and mobile terminal

    CN106559806A

  • Communication method and related device

    CN115884271A