[go: up one dir, main page]

CN115460662B - Data transmission and link switching method, electronic device and readable storage medium - Google Patents

Data transmission and link switching method, electronic device and readable storage medium Download PDF

Info

Publication number
CN115460662B
CN115460662B CN202211408869.0A CN202211408869A CN115460662B CN 115460662 B CN115460662 B CN 115460662B CN 202211408869 A CN202211408869 A CN 202211408869A CN 115460662 B CN115460662 B CN 115460662B
Authority
CN
China
Prior art keywords
data packet
management device
processed
working equipment
uplink data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211408869.0A
Other languages
Chinese (zh)
Other versions
CN115460662A (en
Inventor
杜龙
李辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202211408869.0A priority Critical patent/CN115460662B/en
Publication of CN115460662A publication Critical patent/CN115460662A/en
Application granted granted Critical
Publication of CN115460662B publication Critical patent/CN115460662B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data transmission and link switching method, an electronic device and a readable storage medium, wherein the method is applied to a networking system, the networking system comprises a management device and a plurality of receiving and transmitting devices, the management device is integrated with a network protocol stack, and the method comprises the following steps: acquiring uplink data packets uploaded by the transceiving devices, determining data packets to be processed based on the uplink data packets, calling a network protocol stack to analyze the data packets to be processed, and determining link quality between each transceiving device and all working equipment in a signal range based on the uplink data packets; acquiring a downlink data packet, determining whether to switch a link based on the link quality, and transmitting the downlink data packet to a transceiver device so that the transceiver device transmits the downlink data packet to the working equipment; the uplink data packet is generated by the working equipment and uploaded to the plurality of transceiving devices, and the data packet to be processed is the uplink data packet received by the management device for the first time. By the scheme, the reliability of data transmission and the roaming efficiency during link switching can be improved.

Description

Data transmission and link switching method, electronic device and readable storage medium
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to a data transmission and link switching method, an electronic device, and a readable storage medium.
Background
With the advent of the data era, a large amount of data needs to be processed, and how to efficiently and stably transmit data is increasingly emphasized in the data processing process, so that the probability of data loss is reduced as much as possible in the data transmission process, and a link with better link quality is selected for data transmission. However, in the prior art, if a link needs to be switched in the data transmission process, the quality of the link needs to be evaluated first, and then the connection with the original link is disconnected and a new link is accessed before data transmission can be continued, so that the whole process needs to consume a long time, which affects the efficiency of data transmission and increases the risk of data loss. In view of the above, how to improve reliability of data transmission and roaming efficiency during link switching is an urgent problem to be solved.
Disclosure of Invention
The technical problem mainly solved by the application is to provide a data transmission and link switching method, an electronic device and a readable storage medium, which can improve the reliability of data transmission and the roaming efficiency during link switching.
In order to solve the above technical problem, a first aspect of the present application provides a data transmission and link switching method, which is applied to a networking system, where the networking system includes a management device and a plurality of transceiving devices connected to the management device, the management device is integrated with a network protocol stack, and the data transmission and link switching method includes: in response to obtaining an uplink data packet uploaded by at least one of the transceiving devices, the management device determines a data packet to be processed based on the uplink data packet, calls the network protocol stack to analyze the data packet to be processed, and determines link quality between each of the transceiving devices and all working equipment within a signal range based on the uplink data packet; in response to obtaining the downlink data packet, the management device determines whether to switch the link based on the link quality and sends the downlink data packet to the transceiver device, so that the transceiver device sends the downlink data packet to the working equipment by using a wireless network; the uplink data packet is generated by the working equipment and uploaded to the plurality of transceiving devices by using a wireless network, and the data packet to be processed is the uplink data packet received by the management device for the first time.
In order to solve the above technical problem, a second aspect of the present application provides a data transmission and link switching method, which is applied to a networking system, where the networking system includes a management device and a plurality of transceiving devices connected to the management device, the management device is integrated with a network protocol stack, and the data transmission and link switching method includes: responding to an uplink data packet generated by any transceiver device receiving working equipment, uploading the uplink data packet to the management device, so that the management device determines a data packet to be processed based on the uplink data packet, calls the network protocol stack to analyze the data packet to be processed, and determines link quality between each transceiver device and all working equipment in a signal range based on the uplink data packet; responding to the management device to determine whether to switch the link based on the link quality and select the corresponding transceiver device, acquiring a downlink data packet issued by the management device, and issuing the downlink data packet to the working equipment by using a wireless network; the downlink data packet is received or generated by the management device, and the data packet to be processed is the uplink data packet received by the management device for the first time.
In order to solve the above technical problem, a third aspect of the present application provides an electronic device, including: a memory and a processor coupled to each other, wherein the memory stores program data, and the processor calls the program data to execute the method of the first aspect or the second aspect.
In order to solve the above technical problem, a fourth aspect of the present application provides a computer storage medium having program data stored thereon, the program data implementing the method of the first or second aspect when executed by a processor.
According to the scheme, the networking system comprises a management device and a plurality of transceiving devices connected with the management device, a network protocol stack is integrated in the management device and used for analyzing the data packets to be processed, when the management device obtains the uplink data packets uploaded by at least one transceiving device, the uplink data packets are generated by working equipment and uploaded to the plurality of transceiving devices through a wireless network, the management device determines the data packets to be processed based on the uplink data packets, the uplink data packets received for the first time are used as the data packets to be processed, the network protocol stack is called to analyze the data packets to be processed, and link quality between each transceiving device and all working equipment in a signal range is determined based on the uplink data packets. Therefore, the uplink data packet generated by the working equipment is sent to the plurality of transceiving devices and uploaded to the management device by the transceiving devices, the management device analyzes the uplink data packet received for the first time as a data packet to be processed, the working equipment can upload the uplink data packet through the plurality of links, the probability of losing the uplink data packet is reduced, the transceiving devices are only responsible for transmitting data, the management device is responsible for processing data uniformly, complexity of a networking system is reduced, when the working equipment receives the uplink data packets corresponding to the same working equipment uploaded by different transceiving devices successively, link quality between the working equipment and the plurality of transceiving devices can be determined based on the uplink data packet, link quality between each transceiving device and all working equipment in a signal range is obtained, when the downlink data packet is obtained, the management device can determine whether link switching is carried out or not based on the link quality, a link with better quality is selected to send the downlink data packet to the transceiving devices, the transceiving devices can send the downlink data packet to the working equipment by using the wireless network, and accordingly, high-efficiency of data transmission can be improved when the wireless network roams and data is needed to be sent to the ground.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. Wherein:
fig. 1 is a schematic flowchart illustrating an embodiment of a data transmission and link switching method according to the present invention;
FIG. 2 is a schematic flow chart diagram illustrating another embodiment of a data transmission and link switching method according to the present application;
FIG. 3 is a schematic flow chart diagram illustrating a further embodiment of a data transmission and link switching method according to the present application;
FIG. 4 is a schematic diagram of an embodiment of the networking system of the present application;
FIG. 5 is a schematic structural diagram of an embodiment of an electronic device of the present application;
FIG. 6 is a schematic structural diagram of an embodiment of a computer-readable storage medium according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship. Further, the term "plurality" herein means two or more than two.
The data transmission and link switching method is used for transmitting data and applied to a networking system, the networking system comprises a management device and a plurality of receiving and transmitting devices connected with the management device, and the management device is integrated with a network protocol stack.
Specifically, an existing networking system generally includes multiple Access Points (APs) and an Access Controller (AC), and a network protocol stack is integrated in the APs, where the APs process and send data to a router to transmit the data to an external network after receiving the data when uploading the data, and when transmitting the data, the AC needs all signal ranges to cover the APs of the working device to determine link quality, and then selects an AP to transmit the data.
Further, when the networking system comprises a plurality of transceiving devices and a management device, wherein the transceiving devices correspond to a traditional AP, the management device corresponds to a traditional AC, and a network protocol stack is integrated on the management device and is used for data analysis after being called.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an embodiment of a data transmission and link switching method according to the present application, where the method uses a management device as an execution main body, and includes:
s101: in response to obtaining the uplink data packets uploaded by the at least one transceiver device, the management device determines data packets to be processed based on the uplink data packets, invokes the network protocol stack to parse the data packets to be processed, and determines link quality between each transceiver device and all working equipment within the signal range based on the uplink data packets.
Specifically, the uplink data packet is generated by the working device and uploaded to the plurality of transceiver devices by using the wireless network, and the data packet to be processed is the uplink data packet received by the management device for the first time. When the management device obtains the uplink data packet uploaded by at least one transceiver device, the management device determines a data packet to be processed based on the uplink data packet, takes the uplink data packet received for the first time as the data packet to be processed, further calls a network protocol stack to analyze the data packet to be processed, and determines link quality between each transceiver device and all working equipment in a signal range based on the uplink data packet.
It should be noted that the uplink data packet generated by the working equipment is sent to the multiple transceiving devices by using the wireless network and uploaded to the management device by the transceiving devices, the management device analyzes the uplink data packet received for the first time as a data packet to be processed, the working equipment can upload the uplink data packet through the multiple links, the probability of uplink data packet loss is reduced, when the working equipment receives the uplink data packet corresponding to the same working equipment uploaded by different transceiving devices in sequence, the link quality between the working equipment and the multiple transceiving devices can be determined based on the uplink data packet, and thus the link quality between each transceiving device and all working equipment in the signal range is obtained.
In an application mode, when the working equipment sends an uplink data packet to a plurality of transceiving devices, the transceiving devices receiving the uplink data packet upload the uplink data packet to the management device, the management device stores the data packet within a preset time, and after the uplink data packet is obtained, the management device compares the obtained uplink data packet with the stored data packet to determine the uplink data packet obtained for the first time in the uplink data packet as a data packet to be processed.
In another application mode, the uplink data packet generated by the working equipment corresponds to a data identifier, when the working equipment sends the uplink data packet to the plurality of transceiving devices, the transceiving device which receives the uplink data packet uploads the uplink data packet to the management device, the management device stores the data identifier of the data packet within a preset time, the management device reads the data identifier of the uplink data packet, compares the obtained data identifier of the uplink data packet with the stored data identifier, and determines that the uplink data packet which is obtained for the first time in the uplink data packet is used as a data packet to be processed.
Furthermore, the management device calls the integrated network protocol stack, analyzes the data packet to be processed to obtain a data message in the data packet to be processed, stores or sends the data message to an external network, and further obtains the same uplink data packet uploaded by the plurality of receiving and sending devices, so that the management device determines the link quality between the working equipment and the plurality of receiving and sending devices of the signal range coverage working equipment based on the plurality of uplink data packets.
In an application scenario, the management device determines link quality between the working device and the transceiver device of the signal range coverage working device based on the obtained data transmission speeds of the same uplink data packets uploaded by the plurality of transceiver devices, so as to obtain link quality between each transceiver device and all working devices in the signal range.
In another application scenario, the management device determines link quality between the working device and the transceiver device of the signal range coverage working device based on the obtained signal strength values corresponding to the same uplink data packets uploaded by the plurality of transceiver devices, so as to obtain link quality between each transceiver device and all working devices in the signal range.
S102: in response to the acquisition of the downlink data packet, the management device determines whether to switch the link based on the link quality and issues the downlink data packet to the transceiving device, so that the transceiving device issues the downlink data packet to the working equipment by using the wireless network.
Specifically, when the management device obtains the downlink data packet, the management device can determine whether to perform link switching based on the link quality, so that the link with the better link quality is selected immediately to send the downlink data packet to the transceiver device, the transceiver device sends the downlink data packet to the working equipment by using the wireless network, and the roaming efficiency of the wireless network is improved.
Further, when the management device obtains a downlink data packet sent by an external network or the management device generates the downlink data packet based on an internal data message, the downlink data packet corresponds to one or more working devices, and the transceiver device matched with the working device corresponding to the downlink data packet is determined, wherein the signal range of the transceiver device matched with the working device covers the corresponding transceiver device, and the management device selects one transceiver device from the transceiver devices matched with the working devices to send the downlink data packet based on link quality.
In an application mode, the link quality corresponds to the quality score, the transceiver with the highest quality score in the transceivers matched with the working equipment is selected based on the link quality, and the downlink data packet is sent to the transceiver so that the transceiver sends the downlink data packet to the corresponding working equipment, thereby improving the efficiency of data transmission.
In another application mode, the link quality is determined based on the signal strength value, the management device extracts the load capacity in the transceiver matched with the working equipment, wherein the load capacity is determined based on the data quantity of the data packets being transmitted on the transceiver, the transceiver with the load capacity smaller than the load capacity threshold is selected from the transceivers matched with the working equipment based on the load capacity, the transceiver with the highest link quality is selected from the transceivers with the load capacity smaller than the load capacity threshold based on the link quality, and the downlink data packets are sent to the transceivers so that the transceivers send the downlink data packets to the corresponding working equipment, and the influence of temporary data increase on the data transmission efficiency is reduced.
In a specific application scenario, the network protocol stack integrated by the management device comprises an ieee80211 protocol stack, the working device is connected with the transceiver device based on a wifi network, the working device generates an uplink data packet and uploads the uplink data packet by using the wifi network, the transceiver device uploads the uplink data packet to the management device, the management device calls the integrated ieee80211 protocol stack to analyze the uplink data packet to obtain a data message in the uplink data packet, the link quality between the transceiver device and the working device is determined based on a plurality of uplink data packets corresponding to the same working device uploaded by the transceiver devices, and when the downlink data packet is obtained, the management device can determine whether to switch the link based on the link quality and select the transceiver device with the optimal signal, so that the efficiency of wifi network roaming is improved, and wifi fast roaming is realized, so that the transceiver device can issue the downlink data packet to the corresponding working device by using the wifi network after obtaining the downlink data packet.
According to the scheme, the networking system comprises a management device and a plurality of transceiving devices connected with the management device, a network protocol stack is integrated in the management device and used for analyzing the data packets to be processed, when the management device obtains the uplink data packets uploaded by at least one transceiving device, the uplink data packets are generated by working equipment and uploaded to the plurality of transceiving devices through a wireless network, the management device determines the data packets to be processed based on the uplink data packets, the uplink data packets received for the first time are used as the data packets to be processed, the network protocol stack is called to analyze the data packets to be processed, and link quality between each transceiving device and all working equipment in a signal range is determined based on the uplink data packets. Therefore, the uplink data packet generated by the working equipment is sent to the plurality of transceiving devices and uploaded to the management device by the transceiving devices, the management device analyzes the uplink data packet received for the first time as a data packet to be processed, the working equipment can upload the uplink data packet through a plurality of links, the probability of losing the uplink data packet is reduced, the transceiving devices are only responsible for transmitting data, the management device is responsible for uniformly reducing the complexity of a networking system, when the working equipment receives the uplink data packets corresponding to the same working equipment uploaded by different transceiving devices successively, the link quality between the working equipment and the plurality of transceiving devices can be determined based on the uplink data packet, the link quality between each transceiving device and all the working equipment within a signal range is obtained, when the downlink data packet is obtained, the management device can determine whether link switching is carried out or not based on the link quality, so that the link with better quality is selected immediately to send the downlink data packet to the transceiving devices, the transceiving devices send the downlink data packet to the working equipment by using the wireless network, therefore, the probability of data loss can be effectively reduced in the data transmission process, the downlink quality can be determined immediately, and the downlink data packet can be transmitted to the management device when roaming needs to improve the reliability of the wireless network and the data transmission when roaming.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another embodiment of a data transmission and link switching method according to the present application, wherein a working device is connected to a transceiver through a wireless network, the wireless network corresponds to a signal range, and the transceiver is connected to a management device through a wired network; the network protocol stack integrated by the management device comprises an ieee80211 protocol stack; the working equipment uploads an uplink data packet to a transceiver device of the working equipment covered by all signal ranges by using a wireless network; the transceiver converts the received uplink data packet from a wireless format to a wired format, and uploads the uplink data packet in the wired format to the management device by using a wired network.
Specifically, the working equipment and the transceiver device are connected through a wireless network, so that the degree of freedom of the position of the working equipment is improved, the transceiver device can generate the wireless network, the wireless network corresponds to a signal range, the transceiver device is connected with the management device through a wired network so as to improve the connection stability, the working equipment uploads an uplink data packet to the transceiver device covering the working equipment in all the signal ranges by using the wireless network, the uplink data packet generated by the working equipment comprises a plurality of backups in a networking system, and the probability of loss of the uplink data packet is reduced.
It should be noted that, the transceiver converts the received uplink data packet from a wireless format to a wired format, and uses a wired network to upload the uplink data packet in the wired format to the management device, so that the transceiver only needs to be responsible for completing format conversion of the uplink data packet after receiving the uplink data packet without processing data, the transceiver can be very simple and can be implemented based on pure hardware, and since only one management device is provided in the networking system and a plurality of transceivers are provided, the scheme of the application greatly reduces the cost of the whole networking system, wherein the network protocol stack integrated by the management device includes an ieee80211 protocol stack, so that the transceiver is suitable for a wifi network, and the transceiver and the working device are connected by the wifi network, thereby finally improving the efficiency of wifi network roaming and realizing wifi fast roaming.
Further, the method for data transmission and link switching in this embodiment uses a management device as an execution main body, and specifically includes:
s201: in response to obtaining the uplink data packet uploaded by the at least one transceiver device, the management device determines a data packet to be processed based on the uplink data packet and invokes a network protocol stack to parse the data packet to be processed.
Specifically, when the management device obtains an uplink data packet uploaded by at least one transceiver device, where the uplink data packet is generated by the working equipment and uploaded to the plurality of transceiver devices, the management device determines an uplink data packet received for the first time in the uplink data packet, and takes the uplink data packet received for the first time as a data packet to be processed.
In an application mode, determining a data packet to be processed includes: judging whether the uplink data packet is a data packet received for the first time, if so, taking the uplink data packet as a data packet to be processed, and if not, taking the uplink data packet as a historical data packet; after the data packet to be processed is analyzed, the data packet to be processed is marked as a historical data packet, and the historical data packet is stored in a temporary storage space of the management device.
Specifically, after the data packet to be processed is analyzed, the data packet to be processed is marked as a historical data packet, the historical data packet is stored in a temporary storage space of the management device, when the management device obtains an uplink data packet, the uplink data packet is compared with the historical data packet in the temporary storage space, whether the uplink data packet is a data packet received for the first time is determined, so that the data packet to be processed different from the historical data packet is obtained, the uplink data packet identical to the historical data packet is marked as the historical data packet, so that the same working equipment is sent to uplink data packets of a plurality of transceiving devices, the data packet to be processed and the historical data packet are necessarily included and are judged based on the historical data packet, only the data packet to be processed is analyzed, the data transmission efficiency is improved, the link quality between the working equipment and the transceiving devices can be judged based on the historical data packet of the same working equipment, and the efficiency of link switching during data downlink transmission is improved.
In an application scene, the temporary storage space comprises a preset storage space, and when the preset storage space is completely occupied by the historical data packets, part of the historical data packets with the time sequence in the temporary storage space are deleted.
In another application scenario, the temporary storage space stores a historical data packet with a preset duration, and when the historical data packet exceeds the preset duration, the historical data packet exceeding the preset duration is deleted.
In an application mode, invoking a network protocol stack to analyze a data packet to be processed includes: calling a network protocol stack to obtain an analysis protocol integrated by the network protocol stack; and analyzing and checking the data packet to be processed in the wired format based on the analysis protocol to obtain a data message corresponding to the data packet to be processed.
Specifically, the transceiver converts the received uplink data packet from a wireless format to a wired format, and uploads the uplink data packet in the wired format to the management device by using a wired network, and the management device calls the integrated network protocol stack to obtain an analysis protocol corresponding to the network protocol stack.
Further, the management device analyzes and checks the to-be-processed data packet in the wired format based on the analysis protocol, and analyzes the to-be-processed data packet to obtain a data message so as to complete data analysis and check at the management device.
Optionally, the management device forwards the data packet obtained by the analysis to the external network, so as to implement data transmission between the working device and the external network.
In an application scenario, a network protocol stack integrated by the management device is an ieee80211 protocol stack, when the management device obtains a to-be-processed data packet, the network protocol stack is called to obtain an ieee80211 protocol, the to-be-processed data packet is analyzed and checked based on the ieee80211 protocol, and a data packet is obtained and forwarded to an external network.
It should be noted that, after the network protocol stack is called to analyze the data packet to be processed, the method further includes: and responding to the failure of analyzing the data packet to be processed by the management device, searching the historical data packet which belongs to the same data packet with the data packet to be processed and which fails to be analyzed from all the historical data packets stored in the temporary storage space, and analyzing and checking the historical data packet based on the analysis protocol.
Specifically, when the management device fails to analyze the data packets to be processed, the data packets to be processed which are failed to analyze also correspond to the historical data packets which are not received for the first time in the temporary storage space, and the historical data packets which belong to the same data packet as the data packets to be processed which are failed to analyze are searched from all the historical data packets stored in the temporary storage space of the management device, so that the historical data packets which are backed up in the temporary storage space are extracted and a network protocol stack is called, and the extracted historical data packets which are backed up are analyzed and checked based on the network protocol, thereby improving the success rate of analyzing the uplink data packets.
S202: and for each piece of working equipment, determining the link quality between the transceiver and the working equipment of all signal range coverage working equipment based on the signal strength values corresponding to all historical data packets uploaded to the transceiver by the working equipment, wherein the link quality is positively correlated with the signal strength values.
Specifically, the uplink data packets correspond to signal strength values, and after a plurality of uplink data packets uploaded to the transceiver device by the working equipment are marked as history data packets, for each working equipment, the link quality between the working equipment and the transceiver device of the signal range coverage working equipment is judged based on the signal strength value corresponding to the working equipment, so that the link quality between the transceiver device of all the signal range coverage working equipment and the working equipment is determined. The link quality is positively correlated with the signal strength value, so that the link quality is bound with the signal strength value, and the link quality between the working equipment and the transceiver is determined in the data uplink stage.
S203: and responding to the obtained downlink data packet, the management device issues the downlink data packet to the transceiver device based on the link quality so that the transceiver device issues the downlink data packet to the working equipment.
Specifically, the downlink data packet corresponds to the working device, that is, the downlink data packet is designated to be sent to the corresponding working device, when the management device obtains the downlink data packet, the management device immediately selects a link with better link quality based on the link quality to send the downlink data packet to the transceiver device, so that the transceiver device sends the downlink data packet to the working device, and when link switching is required between the transceiver device and the working device, seamless switching can be realized.
In an application mode, a target transceiver with the best link quality with the working equipment is determined based on the link quality between the transceiver of the working equipment and the working equipment covered by all signal ranges; and sending the downlink data packet to the target transceiver device by using the wired network, so that the target transceiver device sends the downlink data packet to the working equipment corresponding to the downlink data packet by using the wireless network.
Specifically, after the downlink data packet is obtained, the working device corresponding to the downlink data packet is determined, and based on the link quality between the transceiver of the working device and the corresponding working device covered by all signal ranges, the transceiver with the best link quality between the working devices corresponding to the downlink data packet is used as the target transceiver, so as to improve the stability of data transmission.
Further, the management device sends the downlink data packet in the wired format to the target transceiver device by using the wired network, so that the target transceiver device receives the downlink data packet, converts the downlink data packet into the wireless format, and sends the downlink data packet in the wireless format to the working equipment corresponding to the downlink data packet by using the wireless network.
In the embodiment, the working equipment uploads the uplink data packet to the transceiver device covering the working equipment in all signal ranges by using the wireless network, so that the uplink data packet generated by the working equipment comprises a plurality of backups in a networking system, the loss probability of the uplink data packet is reduced, the transceiver device converts the received uplink data packet from a wireless format into a wired format, and uploads the uplink data packet in the wired format to the management device by using the wired network, so that the transceiver device only needs to be responsible for completing format conversion of the uplink data packet after receiving the uplink data packet without processing data, the management device determines the first received uplink data packet in the uplink data packet, takes the first received uplink data packet as a to-be-processed data packet, takes the analyzed or received data packet as a historical data packet, sends the same working equipment to the uplink data packets of the plurality of transceiver devices, judges on the basis of the historical data packet, and inevitably comprises the to-be-processed data packet and the historical data packet, analyzes the processed data packet, the data transmission efficiency is improved, the same working equipment can judge the quality of the historical data packet between the working equipment and the transceiver device, the wifi device is finally connected with the wifi device, and the roaming efficiency is improved, and the wifi device is finally suitable for realizing the roaming management of the wifi.
Referring to fig. 3, fig. 3 is a schematic flow chart of another embodiment of the data transmission and link switching method according to the present application, where the method uses a transceiver as an execution main body, and includes:
s301: responding to the fact that any transceiver receives an uplink data packet generated by the working equipment, uploading the uplink data packet to the management device, enabling the management device to determine a data packet to be processed based on the uplink data packet, calling a network protocol stack to analyze the data packet to be processed, and determining link quality between each transceiver and all working equipment in a signal range based on the uplink data packet.
Specifically, when any transceiver device receives an uplink data packet generated by the working equipment, the uplink data packet is uploaded to the management device, so that the management device determines a data packet to be processed based on the uplink data packet, the uplink data packet received for the first time is used as the data packet to be processed, a network protocol stack is called to analyze the data packet to be processed, and link quality between each transceiver device and all the working equipment in a signal range is determined based on the uplink data packet, wherein the data packet to be processed is the uplink data packet received for the first time by the management device.
It is understood that the management device can implement the process of uploading the uplink data packet from the working equipment to the management device in any of the above embodiments after receiving the uplink data packet, and for the description of the relevant contents, reference is made to the detailed description of the above method embodiments, which is not described in detail herein.
S302: and responding to the management device to determine whether to switch the link based on the link quality and select the corresponding transceiver device, acquiring the downlink data packet issued by the management device, and issuing the downlink data packet to the working equipment by using the wireless network.
Specifically, the downlink data packet is received or generated by the management device, and when the management device determines whether to perform link switching based on the link quality and selects the corresponding transceiver device to issue the downlink data packet, the transceiver device obtains the downlink data packet and issues the downlink data packet to the working device.
It is understood that the management device can implement the process of issuing the downlink data packet from the management device to the working device in any of the above embodiments after obtaining the downlink data packet, and for the description of the relevant contents, reference is made to the detailed description of the above method embodiment, which is not described in detail herein.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an embodiment of a networking system of the present application, where the networking system 40 includes a management device 400 and a plurality of transceiver devices 402 connected thereto, the management device is integrated with a network protocol stack 4000, when the management device 400 obtains an uplink data packet uploaded by at least one transceiver device 402, the management device 400 determines a data packet to be processed based on the uplink data packet, invokes the network protocol stack 4000 to analyze the data packet to be processed, and determines link qualities between each transceiver device 402 and all working devices in a signal range based on the uplink data packet; when the management device 400 obtains the downlink data packet, the management device 400 determines whether to switch the link based on the link quality and sends the downlink data packet to the transceiving device 402, so that the transceiving device 402 sends the downlink data packet to the working equipment by using the wireless network; the uplink data packet is generated by the working device and uploaded to the plurality of transceiver devices 402 by using the wireless network, and the data packet to be processed is the uplink data packet received by the management device 400 for the first time.
Further, when any transceiver 402 receives an uplink data packet generated by the working device, the uplink data packet is uploaded to the management device 400, so that the management device 400 determines a data packet to be processed based on the uplink data packet, and invokes the network protocol stack 4000 to analyze the data packet to be processed, and determines link quality between each transceiver 402 and all working devices in the signal range based on the uplink data packet; when the management device 400 determines whether to switch the link and selects the corresponding transceiver 402 based on the link quality, acquiring a downlink data packet issued by the management device 400, and issuing the downlink data packet to the working equipment by using a wireless network; the downlink data packet is received or generated by the management device 400, and the data packet to be processed is an uplink data packet received by the management device 400 for the first time.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of an electronic device 50 of the present application, where the electronic device 50 includes a memory 501 and a processor 502 coupled to each other, where the memory 501 stores program data (not shown), and the processor 502 calls the program data to implement the method in any of the above embodiments.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of a computer-readable storage medium 60 of the present application, the computer-readable storage medium 60 stores program data 600, and the program data 600 is executed by a processor to implement the method in any of the above embodiments, and the related contents are described in detail with reference to the above method embodiments, which are not repeated herein.
It should be noted that, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (7)

1. A data transmission and link switching method is characterized in that the method is applied to a networking system, the networking system comprises a management device and a plurality of receiving and transmitting devices connected with the management device, the management device is integrated with a network protocol stack, and the data transmission and link switching method comprises the following steps:
in response to obtaining an uplink data packet uploaded by at least one of the transceiving devices, the management device determines a data packet to be processed based on the uplink data packet, invokes the network protocol stack to parse the data packet to be processed, and determines link quality between each of the transceiving devices and all working equipment within a signal range based on the uplink data packet;
in response to obtaining the downlink data packet, the management device determines whether to switch the link based on the link quality and sends the downlink data packet to the transceiver device, so that the transceiver device sends the downlink data packet to the working equipment by using a wireless network;
the uplink data packet is generated by the working equipment and uploaded to the plurality of transceiving devices by using a wireless network, and the data packet to be processed is the uplink data packet received by the management device for the first time;
the working equipment is connected with the transceiver device through a wireless network, the wireless network corresponds to the signal range, the transceiver device is connected with the management device through a wired network, and the network protocol stack integrated by the management device comprises an ieee80211 protocol stack; the working equipment uploads the uplink data packet to a transceiver device of which all signal ranges cover the working equipment by using the wireless network; the transceiver device converts the received uplink data packet from a wireless format to a wired format, and uploads the uplink data packet in the wired format to the management device by using the wired network;
the invoking the network protocol stack to analyze the data packet to be processed includes: calling the network protocol stack to obtain an analysis protocol integrated by the network protocol stack; analyzing and checking the data packet to be processed in the wired format based on the analysis protocol to obtain a data message corresponding to the data packet to be processed;
after the invoking the network protocol stack to analyze the to-be-processed data packet, the method further includes: responding to failure of the management device in analyzing the data packet to be processed, searching all historical data packets stored in the temporary storage space for the historical data packet which belongs to the same data packet as the data packet to be processed and fails in analyzing, and analyzing and checking based on an analysis protocol.
2. The method for data transmission and link switching according to claim 1, wherein the determining the pending data packet comprises:
judging whether the uplink data packet is a data packet received for the first time, if so, taking the uplink data packet as the data packet to be processed, and if not, taking the uplink data packet as a historical data packet; and after the to-be-processed data packet is analyzed, marking the to-be-processed data packet as a historical data packet, and storing the historical data packet in a temporary storage space of the management device.
3. The method for data transmission and link switching according to claim 2, wherein the determining the link quality between each transceiver and all working devices in the signal range based on the uplink data packet comprises:
for each piece of working equipment, determining that all the signal ranges cover the link quality between the transceiver of the working equipment and the working equipment based on the signal strength values corresponding to all the historical data packets uploaded to the transceiver by the working equipment; wherein the link quality is positively correlated with the signal strength value.
4. The data transmission and link switching method according to claim 3, wherein the downlink data packet corresponds to the working device, and the determining whether to switch the link based on the link quality and sending the downlink data packet to the transceiver device so that the transceiver device sends the downlink data packet to the working device using a wireless network includes:
determining a target transceiver device with the best link quality with the working equipment based on the link quality between the transceiver device covering the working equipment in all the signal ranges and the working equipment;
and sending the downlink data packet to the target transceiver device by using the wired network, so that the target transceiver device sends the downlink data packet to the working equipment corresponding to the downlink data packet by using the wireless network.
5. A data transmission and link switching method is characterized in that the method is applied to a networking system, the networking system comprises a management device and a plurality of receiving and sending devices connected with the management device, the management device is integrated with a network protocol stack, and the data transmission and link switching method comprises the following steps:
responding to an uplink data packet generated by any transceiver device receiving working equipment, uploading the uplink data packet to the management device, so that the management device determines a data packet to be processed based on the uplink data packet, calls the network protocol stack to analyze the data packet to be processed, and determines link quality between each transceiver device and all working equipment in a signal range based on the uplink data packet;
responding to the management device to determine whether to switch the link based on the link quality and select the corresponding transceiver device, acquiring a downlink data packet issued by the management device, and issuing the downlink data packet to the working equipment by using a wireless network;
the downlink data packet is received or generated by the management device, and the data packet to be processed is the uplink data packet received by the management device for the first time;
the working equipment is connected with the transceiver device through a wireless network, the wireless network corresponds to the signal range, the transceiver device is connected with the management device through a wired network, and the network protocol stack integrated by the management device comprises an ieee80211 protocol stack; the working equipment uploads the uplink data packet to a transceiver device of which all signal ranges cover the working equipment by using the wireless network; the transceiver device converts the received uplink data packet from a wireless format to a wired format, and uploads the uplink data packet in the wired format to the management device by using the wired network;
the invoking the network protocol stack to analyze the data packet to be processed includes: calling the network protocol stack to obtain an analysis protocol integrated by the network protocol stack; analyzing and checking the data packet to be processed in the wired format based on the analysis protocol to obtain a data message corresponding to the data packet to be processed;
after the invoking the network protocol stack to analyze the to-be-processed data packet, the method further includes: responding to the failure of analyzing the data packet to be processed by the management device, searching all historical data packets stored in the temporary storage space for the historical data packet which belongs to the same data packet as the data packet to be processed and fails to be analyzed, and analyzing and checking the historical data packet based on an analysis protocol.
6. An electronic device, comprising: a memory and a processor coupled to each other, wherein the memory stores program data that the processor calls to perform the method of any of claims 1-4 or 5.
7. A computer-readable storage medium, on which program data are stored, which program data, when being executed by a processor, carry out the method of any one of claims 1-4 or 5.
CN202211408869.0A 2022-11-10 2022-11-10 Data transmission and link switching method, electronic device and readable storage medium Active CN115460662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211408869.0A CN115460662B (en) 2022-11-10 2022-11-10 Data transmission and link switching method, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211408869.0A CN115460662B (en) 2022-11-10 2022-11-10 Data transmission and link switching method, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN115460662A CN115460662A (en) 2022-12-09
CN115460662B true CN115460662B (en) 2023-03-10

Family

ID=84295400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211408869.0A Active CN115460662B (en) 2022-11-10 2022-11-10 Data transmission and link switching method, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN115460662B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557618A (en) * 2008-04-10 2009-10-14 诺基亚西门子通信有限责任两合公司 Method for realizing seamless switching in 802.11 wireless local area network and access points thereof
CN101801051A (en) * 2010-03-04 2010-08-11 杭州华三通信技术有限公司 Method and equipment for selecting access points (APs)
CN105704762A (en) * 2014-11-26 2016-06-22 电信科学技术研究院 Mobile communication method, equipment and system
CN110572859A (en) * 2019-09-29 2019-12-13 珠海格力电器股份有限公司 AP switching method, device, equipment and medium
WO2022042264A1 (en) * 2020-08-28 2022-03-03 华为技术有限公司 Method, apparatus and system for switching access point

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4054341B2 (en) * 2004-05-17 2008-02-27 三星電子株式会社 Fast handover method optimized for IEEE 802.11 network
CN103795627B (en) * 2012-10-30 2017-08-18 华为技术有限公司 Layer-3 local forwarding method and device
US9635606B2 (en) * 2012-11-04 2017-04-25 Kt Corporation Access point selection and management
CN107708163B (en) * 2017-09-18 2021-07-06 深圳市信锐网科技术有限公司 Roaming link switching method, mobile terminal, network module and storage medium
CN109195188B (en) * 2018-09-10 2021-04-27 新华三技术有限公司 Channel switching method and device
CN109951881B (en) * 2019-03-26 2021-06-25 维沃移动通信有限公司 A channel switching method, terminal device and routing device
US11700658B2 (en) * 2020-03-06 2023-07-11 Apple Inc. Fast link switch between multilink devices
CN113873563B (en) * 2020-06-30 2025-07-15 中兴通讯股份有限公司 Signal strength measurement method, wireless gateway device and readable storage medium
CN114258077A (en) * 2020-09-21 2022-03-29 华为技术有限公司 Data transmission system, method and related equipment
CN114710529B (en) * 2022-03-25 2024-03-12 广州小鹏汽车科技有限公司 Data transmission method, device, system, vehicle and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557618A (en) * 2008-04-10 2009-10-14 诺基亚西门子通信有限责任两合公司 Method for realizing seamless switching in 802.11 wireless local area network and access points thereof
CN101801051A (en) * 2010-03-04 2010-08-11 杭州华三通信技术有限公司 Method and equipment for selecting access points (APs)
CN105704762A (en) * 2014-11-26 2016-06-22 电信科学技术研究院 Mobile communication method, equipment and system
CN110572859A (en) * 2019-09-29 2019-12-13 珠海格力电器股份有限公司 AP switching method, device, equipment and medium
WO2022042264A1 (en) * 2020-08-28 2022-03-03 华为技术有限公司 Method, apparatus and system for switching access point

Also Published As

Publication number Publication date
CN115460662A (en) 2022-12-09

Similar Documents

Publication Publication Date Title
WO2022089002A1 (en) Multi-link low-latency communication method and apparatus, and storage medium and electronic apparatus
US11696207B2 (en) Data transmission method, electronic device, and computer readable storage medium
KR102339471B1 (en) Report sending method, report receiving method, apparatus and system
EP3487226B1 (en) Group management method utilized in coordinated multipoint, device, and system
US9237576B2 (en) Power control method, apparatus and system
CN110505714B (en) Multi-link communication method, equipment and terminal
AU2021202691B2 (en) Terminal roaming steering method and apparatus, device, and computer-readable storage medium
EP3595219B1 (en) Method of multi-link retransmission under multiple connections, base station and storage medium
US20180212883A1 (en) Data transmission method and communications apparatus
CN102740366A (en) Method, device and system for realizing wireless network access
CN108601057A (en) Network data transmission method, equipment and system
US20230262572A1 (en) Communication method and related device
CN102883301B (en) Force method, device and the access controller of client roaming
US8554227B2 (en) Cell selection based on priority factors in overlapping cells using different frequencies
US9351245B2 (en) Method for regulating transmit power and wireless routing device
CN107404735A (en) A kind of uplink data transmission method and system, user equipment and base station
CN110099452B (en) Communication method and related product
CN115460662B (en) Data transmission and link switching method, electronic device and readable storage medium
CN114500511A (en) Data transmission method and device and electronic equipment
CN116318562A (en) Data confirmation method and device
US20240381235A1 (en) Network access method, network device and storage medium
US9985826B2 (en) Service data offloading method, access network device, and terminal
CN113784379B (en) Network management method and device
CN113498073B (en) Packing method, related device and system
US10470105B2 (en) Network status information transfer method and network device

Legal Events

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