WO2017101476A1 - Data transmission method and multi-ssid router - Google Patents
Data transmission method and multi-ssid router Download PDFInfo
- Publication number
- WO2017101476A1 WO2017101476A1 PCT/CN2016/095358 CN2016095358W WO2017101476A1 WO 2017101476 A1 WO2017101476 A1 WO 2017101476A1 CN 2016095358 W CN2016095358 W CN 2016095358W WO 2017101476 A1 WO2017101476 A1 WO 2017101476A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- ssid
- data packet
- ssids
- sending
- module
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/80—Actions related to the user profile or the type of traffic
- H04L47/805—QOS or priority aware
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/60—Router architectures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/80—Actions related to the user profile or the type of traffic
- H04L47/808—User-type aware
Definitions
- This application relates to, but is not limited to, the field of traffic equalization technology.
- SSID Service Set Identifier
- FIG. 1 is a schematic diagram of a connection between a multi-SSID router and a UE in the related art.
- a multi-SSID router may be affected.
- the normal access of the user to the network, or under the same conditions, the traffic obtained by multiple users using multiple SSID routers is unbalanced, thereby affecting the user experience of the wireless routing product and reducing the user's satisfaction with the product.
- This paper provides a data transmission method and a multi-SSID router, which can limit the bandwidth of each client during the use of multiple SSID routers, thereby greatly reducing the occurrence of one or more user terminals occupying a large amount of network resources, thereby improving customer satisfaction.
- a data transmission method includes:
- the data packet of each SSID is attributed to the pair Packets that should be SSID;
- the number of transmissions of the data packets for which each SSID is transmitted is determined according to a preset traffic setting ratio.
- the method further includes:
- the data packet of each SSID is transmitted according to the number of transmissions of the data packets of each SSID and the transmission priority of each of the preset SSIDs.
- the method further includes: before sending the data packet of each SSID according to the number of sent data packets of each SSID and the preset sending priority of each SSID, the method further includes:
- a transmission priority of each of the SSIDs is determined according to the sequence value of each of the SSIDs.
- the method further includes: before sending the data packet of each SSID according to the number of sent data packets of each SSID and the preset sending priority of each SSID, the method further includes:
- the transmission priority of each of the SSIDs is determined according to the total transmission time of each of the SSIDs.
- the receiving the data packet of each SSID includes:
- the method further includes:
- the number of sent data packets according to each SSID and each preset SSID The sending priority, sending the data packet of each SSID, including:
- the method further includes:
- the total number of received SSIDs is increased by one;
- the total number of transmissions of the corresponding SSID is incremented by one.
- the method further includes:
- the sending by the data packet of the n first SSIDs with the highest QoS priority, includes:
- n is greater than i
- the data packets of the i first SSIDs are sent, and n-i empty packets are sent, where i is the number of data packets that the multiple SSID routers can actually send the first SSID.
- a multi-service set identification router including:
- the receiving module is configured to: receive a data packet of each service set identifier SSID, where the data packet of each SSID is a data packet belonging to the corresponding SSID;
- the determining module is configured to: determine, according to the preset traffic setting ratio, the number of sending the data packets of each SSID received by the receiving module.
- the multiple SSID router further includes:
- a sending module configured to: after the determining module determines the number of sending the data packet of each SSID, according to the number of sending the data packet of each SSID determined by the determining module, and a preset The sending priority of each SSID is sent to the data packet of each SSID.
- the multiple SSID router further includes:
- Obtaining a module configured to: obtain, after the sending module sends the data packet of each SSID, the total number of received and the total number of sent by each SSID;
- the determining module is further configured to: determine a sequence value of each SSID according to the total number of received and the total number of sent by each SSID acquired by the acquiring module;
- the determining module is further configured to: determine, according to the sequence value of each SSID, a sending priority of each SSID.
- the acquiring module is further configured to: before the transmitting module sends the data packet of each SSID, acquire a total sending time of each SSID, where a total sending time of each SSID is The sum of the times when the packet of this SSID is sent;
- the determining module is further configured to: determine a sending priority of each SSID according to a total sending time of each SSID acquired by the acquiring module.
- the receiving module includes:
- a receiving unit configured to: receive the first data packet
- a determining unit configured to: when the first data packet belongs to the first SSID, determine that the first data packet is a data packet of the first SSID;
- the obtaining module is further configured to: acquire the type of the first data packet
- the determining module is further configured to: determine, according to a preset correspondence between the type of the data packet and the QoS priority of the QoS, the queue of the QoS priority of the first data packet.
- the sending module includes:
- the acquiring unit is configured to: obtain, in each queue of the QoS priority, a data packet of the n first SSIDs with the highest QoS priority, where n is the number of the data packets sent by sending the first SSID;
- the sending unit is configured to: send the data packet of the n first SSIDs with the highest QoS priority obtained by the acquiring unit.
- the multiple SSID router further includes:
- the processing module is configured to: when receiving an SSID packet, increase the total number of received SSIDs by one; when sending an SSID packet, increase the total number of corresponding SSIDs by one.
- the acquiring module is further configured to: send the QoS priority in the sending unit After the data packets of the highest n first SSIDs are obtained, the sending time of the data packets for sending the n first SSIDs is obtained;
- the processing module is further configured to: divide the transmission time of the data packet that is sent by the acquiring module and send the n first SSIDs by the sequence value of the first SSID, to obtain the corrected first SSID data. Transmitting time of the packet; adding the transmission time of the modified first SSID packet to the total transmission time of the first SSID.
- the sending unit is configured to: when the n is greater than i, send the data packet of the i first SSIDs, and send ni empty packets, where the i is the multiple SSID routers.
- the number of transmissions of the data packet of the first SSID can be transmitted.
- the data transmission method and the multiple SSID routers determine the number of data packets sent by each SSID by receiving a data packet of each SSID according to a preset traffic setting ratio, wherein each SSID is sent.
- the data packet is a data packet that belongs to the corresponding SSID.
- the embodiment of the present invention can limit the bandwidth of each user terminal during the use of the multiple SSID router, thereby greatly reducing one or more users. The situation that a large amount of network resources is occupied occurs, and the purpose of balancing traffic is achieved, thereby improving user satisfaction.
- FIG. 1 is a schematic diagram of a connection between a multiple SSID router and a UE in the related art
- FIG. 2 is a flowchart of a data transmission method according to an embodiment of the present invention.
- FIG. 3 is a flowchart of another data transmission method according to an embodiment of the present invention.
- FIG. 5 is a flowchart of still another data transmission method according to an embodiment of the present invention.
- FIG. 6 is a flowchart of still another data transmission method according to an embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of a multiple SSID router according to an embodiment of the present invention.
- FIG. 8 is a schematic structural diagram of another multi-SSID router according to an embodiment of the present invention.
- a flowchart of a data transmission method is provided in an embodiment of the present invention.
- the data transmission method provided in this embodiment is applied to a multi-SSID router, and the method may include the following steps, that is, steps 110 to 120:
- Step 110 Receive a data packet of each SSID, where the data packet of each SSID is a data packet belonging to the corresponding SSID.
- the data packet of each SSID is a data packet belonging to the corresponding SSID.
- Multiple SSID routers can have multiple SSIDs, and each SSID can access one or more stations (Station, referred to as: STA).
- STA stations
- the above-mentioned site is a user terminal, such as a mobile terminal or other terminal device, and the connection diagram between the multiple SSID router and the client end shown in FIG. 1 can also be referred to.
- the multiple SSID routers may be configured to receive the data packets of the SSID by receiving the first data packet, where the first data packet is a data packet sent by the upper layer, when the first data is used.
- the first data packet is determined to be the data packet of the first SSID.
- the method provided by the embodiment further includes: acquiring the type of the first data packet; according to the preset data packet type.
- the first data packet may be, for example, a management packet, a broadcast packet, or a data packet that does not belong to any SSID, or may be a data packet that belongs to a certain SSID.
- the multiple SSID routers no longer receive the data packet.
- the foregoing preset condition may be that the number of received data packets exceeds Schedule a number, or complete a predetermined period.
- the number of received data packets in this embodiment may be that the number of data packets on the queue with the QoS priority exceeds a predetermined number, and may also refer to multiple SSID routes.
- the predetermined period can be triggered by a timer, that is, a predetermined period is completed.
- the QoS priority queues can be classified into a voice queue, a video queue, a best effort queue, and a background queue according to the priority from high to low.
- the data packet of the received SSID is a voice packet of the network telephone
- the voice packet is mounted in the voice queue.
- the method provided in this embodiment may further include: when receiving a data packet of an SSID, adding a total number of received SSIDs by one; when transmitting an SSID data packet, the total of the corresponding SSIDs is Send the number plus one.
- Step 120 Determine the number of sent data packets for each SSID according to a preset traffic setting ratio.
- the preset traffic setting ratio may be a bandwidth ratio of each SSID input to the multiple SSID router in advance. Moreover, since the proportional term of the traffic setting ratio may have a decimal number, the determined number of packets sent by each SSID must be an integer, and the common divisor of the number of packets sent by each SSID is 1.
- a multi-SSID router has multiple SSIDs, namely SSID1, SSID2, and SSID3, and the traffic setting ratios of SSID1, SSID2, and SSID3 are 2:1:0.5, correspondingly, SSID1, SSID2, and SSID3.
- the number of packets sent is 4, 2, and 1, respectively.
- the number of packets sent per SSID is an integer and their minimum common divisor is 1.
- FIG. 3 a flowchart of another data transmission method is provided according to an embodiment of the present invention.
- the method provided in this embodiment may further include step 130 after step 120:
- Step 130 Send a data packet of each SSID according to the number of sent data packets of each SSID and the preset sending priority of each SSID.
- n is the first SSID sent.
- the number of packets transmitted, i represents the number of packets that the multi-SSID router can actually send the first SSID.
- multiple SSID routers may send each in turn SSID packets, and there is no priority between each SSID, which can be sent in either order.
- the multiple SSID router can acknowledge a transmission priority based on the speed of transmission and reception.
- the manner in which the multiple SSID routers determine the transmission priority of the SSID may include the following two types:
- the first mode is a flowchart of still another data transmission method according to an embodiment of the present invention.
- the method provided in this embodiment may further include the following steps, step 121 to step 123:
- Step 121 Obtain the total number of received and the total number of transmissions of each SSID;
- Step 122 Determine a sequence value of each SSID according to the total number of received and the total number of transmissions of each SSID.
- Step 123 Determine the transmission priority of each SSID in each cycle according to the order value of each SSID.
- the implementation of determining the order value of each SSID may be: determining, from all the SSIDs, the SSID with the largest total number of transmissions, and calculating The ratio of the number of SSIDs to the number of SSIDs with the largest number of total transmissions; the SSIDs with the largest total number of receptions are determined from all SSIDs, and the total number of received SSIDs with the largest number of SSIDs and the total number of received ones is calculated. Ratio; the order of the first SSID is calculated as:
- sc is the order value of the first SSID
- sc1 is the ratio of the number of transmissions of the first SSID
- sc2 is the ratio of the number of receptions of the first SSID.
- Other SSIDs can also be calculated in the manner described above.
- the larger the order value the higher the priority of the SSID.
- sequence value is calculated, that is, when the preset condition is satisfied, the total number of transmissions and the total number of receptions are cleared.
- the ratio is set to 0.05, and for the calculated node with sc greater than 1, the ratio is set to 1.
- the second mode is a flowchart of still another data transmission method provided by an embodiment of the present invention.
- the method provided in this embodiment may further include the following steps, step 124 to step 125, before step 130:
- Step 124 Acquire a total sending time of each SSID, where the total sending time of each SSID is sent. The sum of the time of sending the SSID packet;
- step 125 the transmission priority of each SSID in each cycle is determined according to the total transmission time of each SSID. In addition, the total transmission time of each SSID can also be cleared for the next recording.
- the step 130 in this embodiment may include the following steps, that is, steps 131 to 132:
- Step 131 In a loop, in each queue of QoS priorities, obtain data packets of n first SSIDs with the highest QoS priority, where n is the number of data packets sent by sending the first SSID;
- Step 132 Send data packets of n first SSIDs with the highest QoS priority.
- the method provided in this embodiment may further include:
- Step 140 Acquire a sending time of a data packet that sends n first SSIDs.
- Step 150 Divide the transmission time of the data packet that sends the n first SSIDs by the sequence value of the first SSID, and obtain the transmission time of the modified first SSID data packet.
- Step 160 Add the modified transmission time of the data packet of the first SSID to the total transmission time of the first SSID.
- the method for obtaining the total sending time of the first SSID may be: directly adding the sending time of the first SSID.
- the number of transmissions in each embodiment of the present invention refers to the number of data packets sent by the SSID in one cycle; the data packets of each SSID are cyclically transmitted in a preset order until all received The SSID is sent after the packet is sent.
- each SSID in each cyclic transmission, each SSID sends a data packet according to the number of transmissions set by the SSID, and the number of transmissions corresponds to the traffic setting ratio, so that the bandwidth of each client is limited. , greatly reducing the occurrence of one or more user terminals occupying a large amount of network resources, achieving the purpose of balancing traffic, thereby improving user satisfaction.
- the embodiment of the present invention further provides a data transmission method, which is also applied to a multi-SSID router. It is assumed that two SSIDs are set in the multiple SSID routers, namely SSID1 and SSID2, and the SSID1 and SSID2 respectively correspond to at least one STA. As shown in FIG. 6, another embodiment of the present invention is provided. A flow chart of a data transmission method.
- the data transmission method provided in this embodiment may include the following steps, that is, steps 201 to 215:
- Step 201 Obtain a traffic setting ratio of SSID1 and SSID2.
- the ratio of SSID1 and SSID2 is 2:1.
- Step 202 In the ith preset period, the receiving upper layer sends the first data packet.
- the upper layer in this embodiment may be, for example, a device such as a server.
- Step 203 Determine whether the first data packet belongs to SSID1 or SSID2. If it belongs to SSID1 or SSID2, step 204 is performed; if it is not attributed to SSID1 or SSID2, step 215 is performed.
- Step 204 Determine that the first data packet belongs to SSID1.
- Step 205 Obtain a type of the first data packet.
- the first data packet is a data packet of SSID1.
- Step 206 Mount the first data packet to the queue corresponding to the QoS priority according to the preset correspondence between the type of the data packet and the QoS priority.
- Step 207 Add 1 to the total number of received SSID1.
- Step 208 Determine whether the preset period ends. If yes, step 209 is performed; if not, step 202 is performed.
- Step 209 Obtain the total number of transmitted and the total number of received SSID1, and the total number of transmitted and the total number of received SSID2.
- Step 210 Determine the transmission priorities of SSID1 and SSID2 according to the total number of transmissions of SSID1 and the total number of receptions, and the total number of received and the total number of transmissions of SSID2.
- the SSID with the largest total number of receptions is determined, and the ratio of the SSID1 to the total number of received SSIDs with the largest total number of received SS1 is calculated; from SSID1 and SSID2, the total is determined.
- the SSID with the largest number of transmissions is sent, and the ratio of the total number of SSIDs sent by the SSID1 to the total number of SSIDs transmitted is sc2, and the order value of SSID1 is calculated as follows:
- the order value of SSID2 is calculated as described above; the order of magnitude of the order values of SSID1 and SSID2 is taken as the order of priority of SSID1 and SSID2.
- the order value of SSID1 is greater than
- the priority of SSID1 is higher than the priority of SSID2.
- the order value is set to 0.05, and for the calculated node whose sequence value is greater than 1, the order value is set to 1.
- Step 211 Determine, according to the flow rate setting ratio, the number of transmissions of the data packet for transmitting the SSID1 and the number of the data packets for which the SSID2 is transmitted.
- Step 212 Send the data packet of SSID1 in the queue with the highest QoS priority through SSID1 according to the number of transmitted data packets of SSID1.
- the QoS priority secondary queue becomes the queue with the highest QoS priority, and the data packet is continuously sent. That is to say, the data packet is sent from high to low according to the QoS priority.
- the packets of the two SSIDs in the queue with the highest QoS priority are sent to SSID1.
- the SSID1 idle number is the same as the number of transmissions; wherein, the idle packet is sent by idle.
- Step 213 Send the data packet of SSID2 in the queue with the highest QoS priority through SSID2 according to the number of transmitted data packets of SSID2.
- the SSID2 packet in the queue with the highest QoS priority is sent to SSID2.
- the SSID2 idle number is the same as the number of transmissions.
- the method provided in this embodiment may further include: acquiring a sending time of the data packet that sends the SSID1, and dividing the sending time of the data packet that sends the SSID1 by the sequential value sc of the SSID1, to obtain the modified sending time of the SSID1. , the corrected transmission time of SSID1 is added to the total transmission time of SSID1.
- Step 214 Add the total number of transmissions to the corresponding number. End this process.
- Step 215 Send the data packet according to the process of the related art. End this process.
- this embodiment may be that each SSID packet is separately mounted in a different group. QoS priority queues, or all SSID packets are mounted in a queue of QoS priorities; when the proportions in the traffic setting ratio are different, the SSID packets can be sent in the order of proportional size. The order of the SSIDs of the same proportional items can be determined when the same proportional items exist in the flow setting ratio.
- FIG. 7 is a schematic structural diagram of a multi-SSID router according to an embodiment of the present invention.
- the multiple SSID router 30 provided in this embodiment may include: a receiving module 301 and a determining module 302.
- the receiving module 301 is configured to: receive each data packet of the multiple service set identifier SSID, where the data packet of each SSID is a data packet belonging to the corresponding SSID.
- the determining module 302 is configured to: determine the number of data packets sent by each of the SSIDs received by the sending and receiving module 301 according to a preset traffic setting ratio.
- FIG. 8 is a schematic structural diagram of another multi-SSID router according to an embodiment of the present invention.
- the multi-SSID router 30 provided in this embodiment may further include:
- the sending module 303 is configured to: after the determining module 302 determines the number of sending data packets of each SSID, send the number of data packets of each SSID determined according to the determining module 302 and the preset sending of each SSID. Priority, sending packets for each SSID.
- the multiple SSID router 30 provided in this embodiment may further include:
- the obtaining module 304 is configured to: before the sending module 303 sends the data packet of each SSID, obtain the total number of received and the total number of sent by each SSID.
- the determining module 302 in this embodiment is further configured to: determine the sequence value of each SSID according to the total number of received and the total number of sent by each SSID acquired by the obtaining module 304;
- the determining module 302 is further configured to: determine a sending priority of each SSID according to an order value of each SSID.
- the obtaining module 304 may be further configured to: before the sending module 303 sends the data packet of each SSID, obtain a total sending time of each SSID, where each SSID The total transmission time is the sum of the times when the data packets of this SSID are sent;
- the determining module 302 in this embodiment is further configured to: obtain according to the obtaining module 304.
- the total transmission time of each SSID determines the transmission priority of each SSID.
- the receiving module 301 in this embodiment may include:
- a receiving unit configured to: receive the first data packet
- a determining unit configured to: when the first data packet belongs to the first SSID, determine that the first data packet is a data packet of the first SSID;
- the obtaining module 304 in this embodiment is further configured to: acquire the type of the first data packet
- the determining module is further configured to: determine, according to a preset correspondence between the type of the data packet and the QoS priority, a queue of the QoS priority of the first data packet.
- the sending module 303 in this embodiment may include:
- the acquiring unit is configured to: obtain, in each queue of QoS priority, a data packet of n first SSIDs with the highest QoS priority, where n is the number of sent data packets that send the first SSID;
- the sending unit is configured to: send a data packet of the n first SSIDs with the highest QoS priority acquired by the acquiring unit.
- the multiple SSID router 30 provided in this embodiment may further include:
- the processing module 305 is configured to: when receiving an SSID packet, increase the total number of received SSIDs by one; when transmitting an SSID packet, increase the total number of corresponding SSIDs by one.
- the obtaining module 304 in this embodiment is further configured to: after the sending unit sends the data packets of the n first SSIDs with the highest QoS priority, obtain the sending time of the data packets that send the n first SSIDs. ;
- the processing module 305 in this embodiment is further configured to: divide the transmission time of the data packet of the n first SSIDs acquired by the obtaining module 304 by the sequence value of the first SSID, and obtain the corrected The sending time of the data packet of the SSID; adding the sending time of the data packet of the modified first SSID to the total sending time of the first SSID.
- the sending unit of the first SSID is sent by the sending unit in the embodiment of the present invention.
- n is greater than i
- the data packets of the first SSIDs are sent, and ni empty packets are sent, where i is the number of packets in which the multi-SSID router 30 can actually transmit the first SSID.
- the receiving module 301, the determining module 302, the sending module 303, the obtaining module 304, and the processing module 305 in the foregoing embodiment of the present invention may all be configured by a central processing unit (Central Processing Unit, located in the multiple SSID router 30). : CPU), Micro Processor Unit (MPU), Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA) And so on.
- CPU Central Processing Unit
- MPU Micro Processor Unit
- DSP Digital Signal Processor
- FPGA Field Programmable Gate Array
- all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
- the device/function module/function module in the above embodiment may be implemented by a general-purpose computing device, which may be concentrated on a single computing device or distributed on a network composed of a plurality of computing devices.
- the device/function module/function module in the above embodiment When the device/function module/function module in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
- the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
- the data packet of each SSID is received, and the number of data packets sent by each SSID is determined according to a preset traffic setting ratio, wherein the data packet of each SSID is data belonging to the corresponding SSID.
- the bandwidth of each user terminal is restricted during the use of the multiple SSID routers, thereby greatly reducing the occurrence of one or more user terminals occupying a large amount of network resources.
- the purpose of balancing traffic is to increase user satisfaction.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Disclosed are a data transmission method and a multi-SSID router. The method comprises: receiving a data packet of each SSID, the data packet of each SSID is a data packet which belongs to a corresponding SSID; and determining the number of data packets of each SSID to be sent according to a pre-set flow set ratio.
Description
本申请涉及但不限于流量均衡技术领域。This application relates to, but is not limited to, the field of traffic equalization technology.
随着无线保真(WIreless-Fidelity,简称为:Wi-Fi)技术的不断进步,以及无线路由产品的不断发展,多服务集标识(Service Set Identifier,简称为:SSID)的无线路由产品在人们的生活中越来越普及,在一些公共场合中,例如机场、餐厅、办公区,以及普通家庭中,都可能使用多SSID无线路由器。多SSID功能可以轻松实现一台无线路由器布置多个无线接入点,用户通过一台多SSID路由器可以连入不同的无线局域网,并且可以避免不同无线局域网相互之间的干扰。With the continuous advancement of WIreless-Fidelity (Wi-Fi) technology and the continuous development of wireless routing products, the wireless routing products of Service Set Identifier (SSID) are in people. Life is becoming more and more popular, and in some public places, such as airports, restaurants, office areas, and ordinary homes, multiple SSID wireless routers may be used. The multi-SSID function makes it easy to arrange multiple wireless access points for one wireless router. Users can connect to different wireless LANs through one multi-SSID router, and can avoid interference between different wireless LANs.
在实际使用中,由于各种原因,用户在接入到同一个无线路由设备的时候,不同的用户最终能够获得的流量是不同的。如图1所示,图1为相关技术中的多SSID路由器与用户端的连接示意图,在某些应用场景下,由于某个用户占用了太多的网络资源,可能会影响其它使用多SSID路由器的用户对网络的正常访问,或者在同样的条件下,多个使用多SSID路由器的用户得到的流量不均衡,从而影响到无线路由产品的用户体验,降低用户对产品的满意度。In actual use, for various reasons, when users access the same wireless routing device, the traffic that different users can finally obtain is different. As shown in FIG. 1 , FIG. 1 is a schematic diagram of a connection between a multi-SSID router and a UE in the related art. In some application scenarios, because a user occupies too much network resources, other multi-SSID routers may be affected. The normal access of the user to the network, or under the same conditions, the traffic obtained by multiple users using multiple SSID routers is unbalanced, thereby affecting the user experience of the wireless routing product and reducing the user's satisfaction with the product.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本文提供一种数据传输方法和多SSID路由器,能够在多SSID路由器的使用过程中,对每个用户端的带宽进行限制,从而大大减少一个或多个用户端占用大量网络资源的情况发生,从而提高用户满意度。This paper provides a data transmission method and a multi-SSID router, which can limit the bandwidth of each client during the use of multiple SSID routers, thereby greatly reducing the occurrence of one or more user terminals occupying a large amount of network resources, thereby improving customer satisfaction.
一种数据传输方法,包括:A data transmission method includes:
接收每个服务集标识SSID的数据包,所述每个SSID的数据包为归属于对
应SSID的数据包;Receiving a data packet of each service set identifier SSID, the data packet of each SSID is attributed to the pair
Packets that should be SSID;
按照预设的流量设置比例,确定发送所述每个SSID的数据包的发送个数。The number of transmissions of the data packets for which each SSID is transmitted is determined according to a preset traffic setting ratio.
可选地,所述按照预设的流量设置比例,确定发送所述每个SSID的数据包的发送个数之后,所述方法还包括:Optionally, after determining, according to the preset traffic setting ratio, the number of sending the data packets of each SSID, the method further includes:
按照所述每个SSID的数据包的发送个数和预设的每个SSID的发送优先级,发送所述每个SSID的数据包。The data packet of each SSID is transmitted according to the number of transmissions of the data packets of each SSID and the transmission priority of each of the preset SSIDs.
可选地,所述按照所述每个SSID的数据包的发送个数和预设的每个SSID的发送优先级,发送所述每个SSID的数据包之前,所述方法还包括:Optionally, the method further includes: before sending the data packet of each SSID according to the number of sent data packets of each SSID and the preset sending priority of each SSID, the method further includes:
获取所述每个SSID的总接收个数和总发送个数;Obtaining the total number of received and the total number of transmissions of each SSID;
根据所述每个SSID的总接收个数和总发送个数,确定所述每个SSID的顺序值;Determining a sequence value of each SSID according to the total number of received and the total number of transmissions of each SSID;
根据所述每个SSID的顺序值,确定所述每个SSID的发送优先级。A transmission priority of each of the SSIDs is determined according to the sequence value of each of the SSIDs.
可选地,所述按照所述每个SSID的数据包的发送个数和预设的每个SSID的发送优先级,发送所述每个SSID的数据包之前,所述方法还包括:Optionally, the method further includes: before sending the data packet of each SSID according to the number of sent data packets of each SSID and the preset sending priority of each SSID, the method further includes:
获取所述每个SSID的总发送时间,所述每个SSID的总发送时间为发送本SSID的数据包的时间之和;Obtaining a total sending time of each SSID, where a total sending time of each SSID is a sum of times of sending a data packet of the SSID;
按照所述每个SSID的总发送时间,确定所述每个SSID的发送优先级。The transmission priority of each of the SSIDs is determined according to the total transmission time of each of the SSIDs.
可选地,所述接收每个SSID的数据包,包括:Optionally, the receiving the data packet of each SSID includes:
接收第一数据包;Receiving the first data packet;
当所述第一数据包归属于第一SSID时,确定所述第一数据包为所述第一SSID的数据包;Determining, when the first data packet belongs to the first SSID, that the first data packet is a data packet of the first SSID;
所述当所述第一数据包归属于第一SSID时,确定所述第一数据包为所述第一SSID的数据包之后,所述方法还包括:After the first data packet is determined to be the first SSID, after the first data packet is determined to be the data packet of the first SSID, the method further includes:
获取所述第一数据包的种类;Obtaining the type of the first data packet;
根据预设的数据包种类和服务质量QoS优先级的对应关系,确定所述第一数据包挂载的QoS优先级的队列。Determining a queue of QoS priorities of the first data packet according to a preset correspondence between a data packet type and a quality of service QoS priority.
可选地,所述按照所述每个SSID的数据包的发送个数和预设的每个SSID
的发送优先级,发送所述每个SSID的数据包,包括:Optionally, the number of sent data packets according to each SSID and each preset SSID
The sending priority, sending the data packet of each SSID, including:
在每个QoS优先级的队列中,获取QoS优先级最高的n个第一SSID的数据包,所述n为发送所述第一SSID的数据包的发送个数;Obtaining, in each QoS priority queue, the data packets of the n first SSIDs with the highest QoS priority, where n is the number of the data packets sent by sending the first SSID;
发送所述QoS优先级最高的n个第一SSID的数据包。Transmitting the data packets of the n first SSIDs with the highest QoS priority.
可选地,所述方法还包括:Optionally, the method further includes:
当接收一个所述SSID的数据包时,将对应的SSID的总接收个数加1;When receiving a data packet of the SSID, the total number of received SSIDs is increased by one;
当发送一个所述SSID的数据包时,将对应的SSID的总发送个数加1。When a packet of the SSID is transmitted, the total number of transmissions of the corresponding SSID is incremented by one.
可选地,所述发送所述QoS优先级最高的n个第一SSID的数据包之后,所述方法还包括:Optionally, after the sending, by the data packet, the n first SSIDs with the highest QoS priority, the method further includes:
获取发送所述n个第一SSID的数据包的发送时间;Obtaining a sending time of the data packet that sends the n first SSIDs;
将发送所述n个第一SSID的数据包的发送时间除以所述第一SSID的顺序值,得到修正后的第一SSID的数据包的发送时间;Dividing a transmission time of the data packet of the first first SSID by a sequence value of the first SSID to obtain a transmission time of the modified first SSID data packet;
将所述修正后的第一SSID的数据包的发送时间加入所述第一SSID的总发送时间。And sending the modified transmission time of the data packet of the first SSID to the total transmission time of the first SSID.
可选地,所述发送所述QoS优先级最高的n个第一SSID的数据包,包括:Optionally, the sending, by the data packet of the n first SSIDs with the highest QoS priority, includes:
当所述n大于i时,发送所述i个第一SSID的数据包,并发送n-i个空包,所述i为多SSID路由器实际能够发送所述第一SSID的数据包的发送个数。When the n is greater than i, the data packets of the i first SSIDs are sent, and n-i empty packets are sent, where i is the number of data packets that the multiple SSID routers can actually send the first SSID.
一种多服务集标识路由器,包括:A multi-service set identification router, including:
接收模块,设置为:接收每个服务集标识SSID的数据包,所述每个SSID的数据包为归属于对应SSID的数据包;The receiving module is configured to: receive a data packet of each service set identifier SSID, where the data packet of each SSID is a data packet belonging to the corresponding SSID;
确定模块,设置为:按照预设的流量设置比例,确定发送所述接收模块接收的所述每个SSID的数据包的发送个数。The determining module is configured to: determine, according to the preset traffic setting ratio, the number of sending the data packets of each SSID received by the receiving module.
可选地,所述多SSID路由器还包括:Optionally, the multiple SSID router further includes:
发送模块,设置为:在所述确定模块确定发送所述每个SSID的数据包的发送个数之后,按照所述确定模块确定的所述每个SSID的数据包的发送个数和预设的每个SSID的发送优先级,发送所述每个SSID的数据包。a sending module, configured to: after the determining module determines the number of sending the data packet of each SSID, according to the number of sending the data packet of each SSID determined by the determining module, and a preset The sending priority of each SSID is sent to the data packet of each SSID.
可选地,所述多SSID路由器还包括:
Optionally, the multiple SSID router further includes:
获取模块,设置为:在所述发送模块发送所述每个SSID的数据包之前,获取所述每个SSID的总接收个数和总发送个数;Obtaining a module, configured to: obtain, after the sending module sends the data packet of each SSID, the total number of received and the total number of sent by each SSID;
所述确定模块,还设置为:根据所述获取模块获取的所述每个SSID的总接收个数和总发送个数,确定所述每个SSID的顺序值;The determining module is further configured to: determine a sequence value of each SSID according to the total number of received and the total number of sent by each SSID acquired by the acquiring module;
所述确定模块,还设置为:根据所述每个SSID的顺序值,确定所述每个SSID的发送优先级。The determining module is further configured to: determine, according to the sequence value of each SSID, a sending priority of each SSID.
可选地,所述获取模块,还设置为:在所述发送模块发送所述每个SSID的数据包之前,获取所述每个SSID的总发送时间,所述每个SSID的总发送时间为发送本SSID的数据包的时间之和;Optionally, the acquiring module is further configured to: before the transmitting module sends the data packet of each SSID, acquire a total sending time of each SSID, where a total sending time of each SSID is The sum of the times when the packet of this SSID is sent;
所述确定模块,还设置为:按照所述获取模块获取的所述每个SSID的总发送时间,确定所述每个SSID的发送优先级。The determining module is further configured to: determine a sending priority of each SSID according to a total sending time of each SSID acquired by the acquiring module.
可选地,所述接收模块包括:Optionally, the receiving module includes:
接收单元,设置为:接收第一数据包;a receiving unit, configured to: receive the first data packet;
确定单元,设置为:当所述第一数据包归属于第一SSID时,确定所述第一数据包为所述第一SSID的数据包;a determining unit, configured to: when the first data packet belongs to the first SSID, determine that the first data packet is a data packet of the first SSID;
所述获取模块,还设置为:获取所述第一数据包的种类;The obtaining module is further configured to: acquire the type of the first data packet;
所述确定模块,还设置为:根据预设的数据包种类和服务质量QoS优先级的对应关系,确定所述第一数据包挂载的QoS优先级的队列。The determining module is further configured to: determine, according to a preset correspondence between the type of the data packet and the QoS priority of the QoS, the queue of the QoS priority of the first data packet.
可选地,所述发送模块包括:Optionally, the sending module includes:
获取单元,设置为:在每个QoS优先级的队列中,获取QoS优先级最高的n个第一SSID的数据包,所述n为发送所述第一SSID的数据包的发送个数;The acquiring unit is configured to: obtain, in each queue of the QoS priority, a data packet of the n first SSIDs with the highest QoS priority, where n is the number of the data packets sent by sending the first SSID;
发送单元,设置为:发送所述获取单元获取的所述QoS优先级最高的n个第一SSID的数据包。The sending unit is configured to: send the data packet of the n first SSIDs with the highest QoS priority obtained by the acquiring unit.
可选地,所述多SSID路由器还包括:Optionally, the multiple SSID router further includes:
处理模块,设置为:当接收一个SSID的数据包时,将对应的SSID的总接收个数加1;当发送一个SSID的数据包时,将对应的SSID的总发送个数加1。The processing module is configured to: when receiving an SSID packet, increase the total number of received SSIDs by one; when sending an SSID packet, increase the total number of corresponding SSIDs by one.
可选地,所述获取模块,还设置为:在所述发送单元发送所述QoS优先
级最高的n个第一SSID的数据包之后,获取发送所述n个第一SSID的数据包的发送时间;Optionally, the acquiring module is further configured to: send the QoS priority in the sending unit
After the data packets of the highest n first SSIDs are obtained, the sending time of the data packets for sending the n first SSIDs is obtained;
所述处理模块,还设置为:将所述获取模块获取的发送所述n个第一SSID的数据包的发送时间除以所述第一SSID的顺序值,得到修正后的第一SSID的数据包的发送时间;将所述修正后的第一SSID的数据包的发送时间加入所述第一SSID的总发送时间。The processing module is further configured to: divide the transmission time of the data packet that is sent by the acquiring module and send the n first SSIDs by the sequence value of the first SSID, to obtain the corrected first SSID data. Transmitting time of the packet; adding the transmission time of the modified first SSID packet to the total transmission time of the first SSID.
可选地,所述发送单元,是设置为:当所述n大于i时,发送所述i个第一SSID的数据包,并发送n-i个空包,所述i为所述多SSID路由器实际能够发送所述第一SSID的数据包的发送个数。Optionally, the sending unit is configured to: when the n is greater than i, send the data packet of the i first SSIDs, and send ni empty packets, where the i is the multiple SSID routers. The number of transmissions of the data packet of the first SSID can be transmitted.
本发明实施例提供的数据传输方法和多SSID路由器,通过接收每个SSID的数据包,按照预设的流量设置比例,确定发送每个SSID的数据包的发送个数,其中,该每个SSID的数据包为归属于对应SSID的数据包;本发明实施例通过上述技术方案,能够在多SSID路由器的使用过程中,对每个用户端的带宽进行限制,从而大大的减少了一个或多个用户端占用大量网络资源的情况发生,达到了均衡流量的目的,从而提高用户满意度。The data transmission method and the multiple SSID routers provided by the embodiments of the present invention determine the number of data packets sent by each SSID by receiving a data packet of each SSID according to a preset traffic setting ratio, wherein each SSID is sent. The data packet is a data packet that belongs to the corresponding SSID. The embodiment of the present invention can limit the bandwidth of each user terminal during the use of the multiple SSID router, thereby greatly reducing one or more users. The situation that a large amount of network resources is occupied occurs, and the purpose of balancing traffic is achieved, thereby improving user satisfaction.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为相关技术中的多SSID路由器与用户端的连接示意图;1 is a schematic diagram of a connection between a multiple SSID router and a UE in the related art;
图2为本发明实施例提供的一种数据传输方法的流程图;2 is a flowchart of a data transmission method according to an embodiment of the present invention;
图3为本发明实施例提供的另一种数据传输方法的流程图;FIG. 3 is a flowchart of another data transmission method according to an embodiment of the present invention;
图4为本发明实施例提供的又一种数据传输方法的流程图;4 is a flowchart of still another data transmission method according to an embodiment of the present invention;
图5为本发明实施例提供的再一种数据传输方法的流程图;FIG. 5 is a flowchart of still another data transmission method according to an embodiment of the present invention;
图6为本发明实施例提供的还一种数据传输方法的流程图;FIG. 6 is a flowchart of still another data transmission method according to an embodiment of the present invention;
图7为本发明实施例提供的一种多SSID路由器的结构示意图;FIG. 7 is a schematic structural diagram of a multiple SSID router according to an embodiment of the present invention;
图8为本发明实施例提供的另一种多SSID路由器的结构示意图。
FIG. 8 is a schematic structural diagram of another multi-SSID router according to an embodiment of the present invention.
下文中将结合附图对本发明的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments herein may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸根据一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system in accordance with a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
如图2所示,为本发明实施例提供一种数据传输方法的流程图。本实施例提供的数据传输方法应用于多SSID路由器中,该方法可以包括如下步骤,即步骤110~步骤120:As shown in FIG. 2, a flowchart of a data transmission method is provided in an embodiment of the present invention. The data transmission method provided in this embodiment is applied to a multi-SSID router, and the method may include the following steps, that is, steps 110 to 120:
步骤110、接收每个SSID的数据包,该每个SSID的数据包为归属于对应SSID的数据包。Step 110: Receive a data packet of each SSID, where the data packet of each SSID is a data packet belonging to the corresponding SSID.
在本实施例中,每个SSID的数据包为归属于对应SSID的数据包。多SSID路由器可以有多个SSID,每个SSID下可接入一个或多个站点(Station,简称为:STA)。在一般情况下,上述站点即是用户端,例如移动终端或者其它终端设备,同样可以参考图1所示的多SSID路由器与用户端的连接示意图。In this embodiment, the data packet of each SSID is a data packet belonging to the corresponding SSID. Multiple SSID routers can have multiple SSIDs, and each SSID can access one or more stations (Station, referred to as: STA). In general, the above-mentioned site is a user terminal, such as a mobile terminal or other terminal device, and the connection diagram between the multiple SSID router and the client end shown in FIG. 1 can also be referred to.
由于多SSID路由器接收的数据包不一定都是归属于一个SSID的数据包,因此,要对接收到的数据包进行甄别。在本实施例的一种可选地实现方式中,多SSID路由器甄别SSID的数据包的实现方式可以为,接收第一数据包,该第一数据包是上层发送的数据包,当第一数据包归属于第一SSID时,确定该第一数据包为第一SSID的数据包;在此之后,本实施例提供的方法还包括:获取第一数据包的种类;根据预设的数据包种类和服务质量(Quality of Service,简称为:QoS)优先级的对应关系,确定该第一数据包挂载的QoS优先级的队列。在本实施例中,该第一数据包例如可以是管理包、广播包这类不属于任一SSID的数据包,也可以是归属于某一SSID的数据包。Since the data packets received by the multiple SSID routers are not necessarily the data packets belonging to one SSID, the received data packets are to be identified. In an optional implementation manner of this embodiment, the multiple SSID routers may be configured to receive the data packets of the SSID by receiving the first data packet, where the first data packet is a data packet sent by the upper layer, when the first data is used. When the packet belongs to the first SSID, the first data packet is determined to be the data packet of the first SSID. After the method, the method provided by the embodiment further includes: acquiring the type of the first data packet; according to the preset data packet type. A queue corresponding to the priority of the quality of service (QoS) is determined, and the queue of the QoS priority of the first data packet is determined. In this embodiment, the first data packet may be, for example, a management packet, a broadcast packet, or a data packet that does not belong to any SSID, or may be a data packet that belongs to a certain SSID.
在实际应用中,当满足预设条件时,多SSID路由器就不再接收数据包了,在本实施例的一种可选地实现方式中,上述预设条件可以是接收数据包的个数超过预定个数,或者完成预定周期。本实施例中接收数据包的个数可以是指QoS优先级的队列上的数据包个数超过预定数量,也可以是指多SSID路由
器接收的数据包个数。而预定周期可以通过定时器来触发,也就是说完成一个预定周期。In an actual application, when the preset condition is met, the multiple SSID routers no longer receive the data packet. In an optional implementation manner of this embodiment, the foregoing preset condition may be that the number of received data packets exceeds Schedule a number, or complete a predetermined period. The number of received data packets in this embodiment may be that the number of data packets on the queue with the QoS priority exceeds a predetermined number, and may also refer to multiple SSID routes.
The number of packets received by the device. The predetermined period can be triggered by a timer, that is, a predetermined period is completed.
可选地,QoS优先级的队列按优先级从高到低可分为语音队列、视频队列、尽力而为队列和背景队列。例如,当接收的SSID的数据包是网络电话的语音包,就将语音包挂载在语音队列中。Optionally, the QoS priority queues can be classified into a voice queue, a video queue, a best effort queue, and a background queue according to the priority from high to low. For example, when the data packet of the received SSID is a voice packet of the network telephone, the voice packet is mounted in the voice queue.
可选地,本实施例提供的方法还可以包括:当接收一个SSID的数据包时,将对应的SSID的总接收个数加1;当发送一个SSID的数据包时,将对应的SSID的总发送个数加1。Optionally, the method provided in this embodiment may further include: when receiving a data packet of an SSID, adding a total number of received SSIDs by one; when transmitting an SSID data packet, the total of the corresponding SSIDs is Send the number plus one.
步骤120、按照预设的流量设置比例,确定发送每个SSID的数据包的发送个数。Step 120: Determine the number of sent data packets for each SSID according to a preset traffic setting ratio.
在本实施例中,预设的流量设置比例可以是提前输入到多SSID路由器的每个SSID的带宽比。并且由于流量设置比例的比例项可能存在小数,因此,确定出的每个SSID的数据包的发送个数必须是整数,且每个SSID的数据包的发送个数的公约数是1。In this embodiment, the preset traffic setting ratio may be a bandwidth ratio of each SSID input to the multiple SSID router in advance. Moreover, since the proportional term of the traffic setting ratio may have a decimal number, the determined number of packets sent by each SSID must be an integer, and the common divisor of the number of packets sent by each SSID is 1.
以下通过一个实例予以示出,假设多SSID路由器有多个SSID,分别为SSID1、SSID2和SSID3,并且SSID1、SSID2和SSID3的流量设置比例为2:1:0.5,相应地,SSID1、SSID2和SSID3的数据包的发送个数分别为4、2、1。这样,每个SSID的数据包的发送个数都是整数,且他们的最小公约数是1。The following is illustrated by an example. It is assumed that a multi-SSID router has multiple SSIDs, namely SSID1, SSID2, and SSID3, and the traffic setting ratios of SSID1, SSID2, and SSID3 are 2:1:0.5, correspondingly, SSID1, SSID2, and SSID3. The number of packets sent is 4, 2, and 1, respectively. Thus, the number of packets sent per SSID is an integer and their minimum common divisor is 1.
可选地,如图3所示,为本发明实施例提供另一种数据传输方法的流程图。在上述图2所示实施例的基础上,本实施例提供的方法在步骤120之后,还可以包括步骤130:Optionally, as shown in FIG. 3, a flowchart of another data transmission method is provided according to an embodiment of the present invention. On the basis of the foregoing embodiment shown in FIG. 2, the method provided in this embodiment may further include step 130 after step 120:
步骤130、按照每个SSID的数据包的发送个数和预设的每个SSID的发送优先级,发送每个SSID的数据包。Step 130: Send a data packet of each SSID according to the number of sent data packets of each SSID and the preset sending priority of each SSID.
举例说明本实施例中SSID的数据包的发送方式,对于一次循环,当n大于i时,发送i个第一SSID的数据包,并发送n-i个空包,其中,n表示为发送第一SSID的数据包的发送个数,i表示为多SSID路由器实际能够发送第一SSID的数据包的发送个数。For example, when the data packet of the SSID is sent in the embodiment, when n is greater than i, the data packets of the first SSID are sent, and ni empty packets are sent, where n is the first SSID sent. The number of packets transmitted, i represents the number of packets that the multi-SSID router can actually send the first SSID.
在本实施例的一个可选地实现方式中,多SSID路由器可以依次发送每个
SSID的数据包,并且每个SSID之间并无优先级,可以按照任一顺序发送。In an alternative implementation of this embodiment, multiple SSID routers may send each in turn
SSID packets, and there is no priority between each SSID, which can be sent in either order.
在本实施例的另一个可选地实现方式中,多SSID路由器可以根据发送接收的速度来确认出一个发送优先级。在实际应用中,多SSID路由器确定SSID的发送优先级的方式可以包括如下两种:In another alternative implementation of this embodiment, the multiple SSID router can acknowledge a transmission priority based on the speed of transmission and reception. In practical applications, the manner in which the multiple SSID routers determine the transmission priority of the SSID may include the following two types:
第一种方式,如图4所示,为本发明实施例提供又一种数据传输方法的流程图。在上述图3所示实施例的基础上,本实施例提供的方法在步骤130之前,还可以包括如下步骤,即步骤121~步骤123:The first mode, as shown in FIG. 4, is a flowchart of still another data transmission method according to an embodiment of the present invention. On the basis of the foregoing embodiment shown in FIG. 3, the method provided in this embodiment may further include the following steps, step 121 to step 123:
步骤121,获取每个SSID的总接收个数和总发送个数;Step 121: Obtain the total number of received and the total number of transmissions of each SSID;
步骤122,根据每个SSID的总接收个数和总发送个数,确定每个SSID的顺序值;Step 122: Determine a sequence value of each SSID according to the total number of received and the total number of transmissions of each SSID.
步骤123,根据每个SSID的顺序值,确定在每次循环中每个SSID的发送优先级。Step 123: Determine the transmission priority of each SSID in each cycle according to the order value of each SSID.
在实际应用中,根据每个SSID的总接收个数和总发送个数,确定每个SSID的顺序值的实现方式可以为:从所有SSID中,确定出总发送个数最多的SSID,计算第一SSID与总发送个数最多的SSID的发送个数之比;从所有SSID中,确定出总接收个数最多的SSID,计算第一SSID与总接收个数最多的SSID的总接收个数之比;第一SSID的顺序值的计算方式为:In an actual application, according to the total number of received and the total number of sent by each SSID, the implementation of determining the order value of each SSID may be: determining, from all the SSIDs, the SSID with the largest total number of transmissions, and calculating The ratio of the number of SSIDs to the number of SSIDs with the largest number of total transmissions; the SSIDs with the largest total number of receptions are determined from all SSIDs, and the total number of received SSIDs with the largest number of SSIDs and the total number of received ones is calculated. Ratio; the order of the first SSID is calculated as:
sc=sc1*0.55+sc2*0.5;Sc=sc1*0.55+sc2*0.5;
其中,sc是第一SSID的顺序值,sc1是第一SSID的发送个数之比,sc2是第一SSID的接收个数之比。其它SSID同样可以按照上述方式计算其顺序至。另外,顺序值的越大,SSID的优先级越高。在本实施例中,当计算完顺序值之后,也就是预设条件满足时,总发送个数和总接收个数清零。Where sc is the order value of the first SSID, sc1 is the ratio of the number of transmissions of the first SSID, and sc2 is the ratio of the number of receptions of the first SSID. Other SSIDs can also be calculated in the manner described above. In addition, the larger the order value, the higher the priority of the SSID. In this embodiment, when the sequence value is calculated, that is, when the preset condition is satisfied, the total number of transmissions and the total number of receptions are cleared.
在实际应用中,对于计算出的sc小于0.05的SSID,设置其比例为0.05,对于计算出的sc大于1的节点,设置其比例为1。In practical applications, for the calculated SSID with sc less than 0.05, the ratio is set to 0.05, and for the calculated node with sc greater than 1, the ratio is set to 1.
第二种方式,如图5所示,为本发明实施例提供的再一种数据传输方法的流程图。在上述图3所示实施例的基础上,本实施例提供的方法在步骤130之前,还可以包括如下步骤,即步骤124~步骤125:The second mode, as shown in FIG. 5, is a flowchart of still another data transmission method provided by an embodiment of the present invention. On the basis of the foregoing embodiment shown in FIG. 3, the method provided in this embodiment may further include the following steps, step 124 to step 125, before step 130:
步骤124,获取每个SSID的总发送时间,该每个SSID的总发送时间为发
送本SSID的数据包的时间之和;Step 124: Acquire a total sending time of each SSID, where the total sending time of each SSID is sent.
The sum of the time of sending the SSID packet;
步骤125,按照每个SSID的总发送时间,确定在每次循环中每个SSID的发送优先级。另外,还可以将每个SSID的总发送时间清零,以用于进行下次记录。In step 125, the transmission priority of each SSID in each cycle is determined according to the total transmission time of each SSID. In addition, the total transmission time of each SSID can also be cleared for the next recording.
可选地,本实施例中的步骤130可以包括如下步骤,即步骤131~步骤132:Optionally, the step 130 in this embodiment may include the following steps, that is, steps 131 to 132:
步骤131,在一次循环中,在每个QoS优先级的队列中,获取QoS优先级最高的n个第一SSID的数据包,其中,n为发送第一SSID的数据包的发送个数;Step 131: In a loop, in each queue of QoS priorities, obtain data packets of n first SSIDs with the highest QoS priority, where n is the number of data packets sent by sending the first SSID;
步骤132,发送QoS优先级最高的n个第一SSID的数据包。Step 132: Send data packets of n first SSIDs with the highest QoS priority.
可选地,本实施例提供的方法在步骤132之后,还可以包括:Optionally, after the step 132, the method provided in this embodiment may further include:
步骤140,获取发送n个第一SSID的数据包的发送时间;Step 140: Acquire a sending time of a data packet that sends n first SSIDs.
步骤150,将发送该n个第一SSID的数据包的发送时间除以第一SSID的顺序值,得到修正后的第一SSID的数据包的发送时间;Step 150: Divide the transmission time of the data packet that sends the n first SSIDs by the sequence value of the first SSID, and obtain the transmission time of the modified first SSID data packet.
步骤160,将修正后的第一SSID的数据包的发送时间加入第一SSID的总发送时间。Step 160: Add the modified transmission time of the data packet of the first SSID to the total transmission time of the first SSID.
在本实施例的另一种实现方式中,第一SSID的总发送时间的获取方式也可以为:直接用第一SSID的发送时间相加得到。In another implementation manner of this embodiment, the method for obtaining the total sending time of the first SSID may be: directly adding the sending time of the first SSID.
需要说明的是,本发明各实施例中的发送个数是指一次循环中发送SSID的数据包的发送个数;每个SSID的数据包是按照预设的顺序循环发送的,直到接收的所有的SSID的数据包发送完成才停止循环发送。It should be noted that the number of transmissions in each embodiment of the present invention refers to the number of data packets sent by the SSID in one cycle; the data packets of each SSID are cyclically transmitted in a preset order until all received The SSID is sent after the packet is sent.
也就是说,在每一次循环发送中,每个SSID都是按照该SSID设置的发送次数来发送数据包的,该发送个数是与流量设置比例对应,这样,每个用户端的带宽就被限制,大大的减少了一个或多个用户端占用大量网络资源的情况发生,达到了均衡流量的目的,从而提高用户满意度。That is to say, in each cyclic transmission, each SSID sends a data packet according to the number of transmissions set by the SSID, and the number of transmissions corresponds to the traffic setting ratio, so that the bandwidth of each client is limited. , greatly reducing the occurrence of one or more user terminals occupying a large amount of network resources, achieving the purpose of balancing traffic, thereby improving user satisfaction.
本发明实施例还提供一种数据传输方法,该方法同样应用于多SSID路由器,假设该多SSID路由器中设置有两个SSID,分别为SSID1和SSID2,该SSID1和SSID2分别对应着至少一个STA。如图6所示,为本发明实施例提供的还一
种数据传输方法的流程图。本实施例提供的数据传输方法可以包括如下步骤,即步骤201~步骤215:The embodiment of the present invention further provides a data transmission method, which is also applied to a multi-SSID router. It is assumed that two SSIDs are set in the multiple SSID routers, namely SSID1 and SSID2, and the SSID1 and SSID2 respectively correspond to at least one STA. As shown in FIG. 6, another embodiment of the present invention is provided.
A flow chart of a data transmission method. The data transmission method provided in this embodiment may include the following steps, that is, steps 201 to 215:
步骤201、获取到SSID1和SSID2的流量设置比例。Step 201: Obtain a traffic setting ratio of SSID1 and SSID2.
本实施例中假设SSID1和SSID2的比例是2:1。It is assumed in the present embodiment that the ratio of SSID1 and SSID2 is 2:1.
步骤202、在第i预设周期内,接收上层发送第一数据包。Step 202: In the ith preset period, the receiving upper layer sends the first data packet.
本实施例中的上层例如可以是服务器等设备。The upper layer in this embodiment may be, for example, a device such as a server.
步骤203、判断第一数据包是否归属于SSID1或SSID2。若归属于SSID1或SSID2,则执行步骤204;若未归属于SSID1或SSID2,则执行步骤215。Step 203: Determine whether the first data packet belongs to SSID1 or SSID2. If it belongs to SSID1 or SSID2, step 204 is performed; if it is not attributed to SSID1 or SSID2, step 215 is performed.
步骤204、确定第一数据包归属于SSID1。Step 204: Determine that the first data packet belongs to SSID1.
步骤205、获取第一数据包的种类。Step 205: Obtain a type of the first data packet.
本实施例中,假设确定第一数据包是SSID1的数据包。In this embodiment, it is assumed that the first data packet is a data packet of SSID1.
步骤206、根据预设的数据包种类和QoS优先级的对应关系,将第一数据包挂载到对应QoS优先级的队列上。Step 206: Mount the first data packet to the queue corresponding to the QoS priority according to the preset correspondence between the type of the data packet and the QoS priority.
步骤207、将SSID1的总接收个数加1。Step 207: Add 1 to the total number of received SSID1.
步骤208、判断本预设周期是否结束。若结束,则执行步骤209;若未结束,则执行步骤202。Step 208: Determine whether the preset period ends. If yes, step 209 is performed; if not, step 202 is performed.
步骤209、获取SSID1的总发送个数和总接收个数,以及SSID2的总发送个数和总接收个数。Step 209: Obtain the total number of transmitted and the total number of received SSID1, and the total number of transmitted and the total number of received SSID2.
步骤210、根据SSID1的总发送个数和总接收个数,以及SSID2的总接收个数和总发送个数,确定SSID1和SSID2的发送优先级。Step 210: Determine the transmission priorities of SSID1 and SSID2 according to the total number of transmissions of SSID1 and the total number of receptions, and the total number of received and the total number of transmissions of SSID2.
在实际应用中,从SSID1和SSID2中,确定出总接收个数最多的SSID,计算SSID1、与总接收个数最多的SSID的总接收个数之比sc1;从SSID1和SSID2中,确定总总发送个数最多的SSID,计算SSID1与总发送个数最多的SSID的总发送个数之比sc2,SSID1的顺序值按此计算:In the actual application, from SSID1 and SSID2, the SSID with the largest total number of receptions is determined, and the ratio of the SSID1 to the total number of received SSIDs with the largest total number of received SS1 is calculated; from SSID1 and SSID2, the total is determined. The SSID with the largest number of transmissions is sent, and the ratio of the total number of SSIDs sent by the SSID1 to the total number of SSIDs transmitted is sc2, and the order value of SSID1 is calculated as follows:
sc=sc1*0.55+sc2*0.5;Sc=sc1*0.55+sc2*0.5;
类似地,如上述方法计算SSID2的顺序值;将SSID1和SSID2的顺序值的大小顺序作为SSID1和SSID2发送优先级的高低顺序。当SSID1的顺序值大于
SSID2的顺序值时,SSID1优先级就高于SSID2的优先级。Similarly, the order value of SSID2 is calculated as described above; the order of magnitude of the order values of SSID1 and SSID2 is taken as the order of priority of SSID1 and SSID2. When the order value of SSID1 is greater than
When the sequence value of SSID2 is used, the priority of SSID1 is higher than the priority of SSID2.
在实际应用中,对于计算出的顺序值小于0.05的节点,设置其顺序值为0.05,对于计算出的顺序值大于1的节点,设置顺序值为1。In practical applications, for a node whose calculated order value is less than 0.05, the order value is set to 0.05, and for the calculated node whose sequence value is greater than 1, the order value is set to 1.
本实施例中,假设SSID1的发送优先级高于SSID的发送优先级。In this embodiment, it is assumed that the transmission priority of SSID1 is higher than the transmission priority of the SSID.
步骤211、根据流量设置比例,确定发送SSID1的数据包的发送个数,以及发送SSID2的数据包的发送个数。Step 211: Determine, according to the flow rate setting ratio, the number of transmissions of the data packet for transmitting the SSID1 and the number of the data packets for which the SSID2 is transmitted.
步骤212、按照发送SSID1的数据包的发送个数,通过SSID1发送QoS优先级最高的队列中SSID1的数据包。Step 212: Send the data packet of SSID1 in the queue with the highest QoS priority through SSID1 according to the number of transmitted data packets of SSID1.
在实际应用中,当QoS优先级最高的队列的数据包发送完之后,QoS优先级次高队列变为QoS优先级最高的队列,继续发送数据包。也就是说数据包是按照QoS优先级从高到低发送的。In the actual application, after the data packet of the queue with the highest QoS priority is sent, the QoS priority secondary queue becomes the queue with the highest QoS priority, and the data packet is continuously sent. That is to say, the data packet is sent from high to low according to the QoS priority.
举例来说,当流量设置比例是2:1时,向SSID1发送且QoS优先级最高的队列中两个SSID的数据包。这里,当队列中不存在归属于SSID1的数据包时,SSID1空转次数与发送个数相同;其中,空转即发送空包。For example, when the traffic setting ratio is 2:1, the packets of the two SSIDs in the queue with the highest QoS priority are sent to SSID1. Here, when there is no data packet belonging to the SSID1 in the queue, the SSID1 idle number is the same as the number of transmissions; wherein, the idle packet is sent by idle.
步骤213、按照发送SSID2的数据包的发送个数,通过SSID2发送QoS优先级最高的队列中的SSID2的数据包。Step 213: Send the data packet of SSID2 in the queue with the highest QoS priority through SSID2 according to the number of transmitted data packets of SSID2.
举例来说,当流量设置比例是2:1时,向SSID2发送QoS优先级最高的队列中的SSID2的数据包。这里,当队列中不存在归属于SSID2的数据包时,SSID2空转次数与发送个数相同。For example, when the traffic setting ratio is 2:1, the SSID2 packet in the queue with the highest QoS priority is sent to SSID2. Here, when there is no packet belonging to SSID2 in the queue, the SSID2 idle number is the same as the number of transmissions.
可选地,本实施例提供的方法还可以包括:获取发送SSID1的数据包的发送时间,将发送SSID1的数据包的发送时间除以该SSID1的顺序值sc,得到修正后的SSID1的发送时间,将修正后的SSID1的发送时间加入到SSID1的发送总时间。Optionally, the method provided in this embodiment may further include: acquiring a sending time of the data packet that sends the SSID1, and dividing the sending time of the data packet that sends the SSID1 by the sequential value sc of the SSID1, to obtain the modified sending time of the SSID1. , the corrected transmission time of SSID1 is added to the total transmission time of SSID1.
步骤214、将总发送个数加相应个数。结束本次流程。Step 214: Add the total number of transmissions to the corresponding number. End this process.
在实际应用中,空转或发送空包时,无需改变总发送个数。In practical applications, there is no need to change the total number of transmissions when idling or sending empty packets.
步骤215、按照相关技术的流程发送该数据包。结束本次流程。Step 215: Send the data packet according to the process of the related art. End this process.
在实际应用中,本实施例可以是每个SSID的数据包分别挂载在不同组的
QoS优先级的队列,也可以是所有SSID的数据包都挂载在一组QoS优先级的队列;当流量设置比例中各个比例项不相同时,可以按照比例的大小顺序作为发送SSID的数据包的顺序;当流量设置比例中存在相同比例项时,可以计算相同比例项的顺序值sc,确定出相同比例项的SSID的发送顺序。In practical applications, this embodiment may be that each SSID packet is separately mounted in a different group.
QoS priority queues, or all SSID packets are mounted in a queue of QoS priorities; when the proportions in the traffic setting ratio are different, the SSID packets can be sent in the order of proportional size. The order of the SSIDs of the same proportional items can be determined when the same proportional items exist in the flow setting ratio.
如图7所示,为本发明实施例提供的一种多SSID路由器的结构示意图。本实施例提供的多SSID路由器30可以包括:接收模块301和确定模块302。FIG. 7 is a schematic structural diagram of a multi-SSID router according to an embodiment of the present invention. The multiple SSID router 30 provided in this embodiment may include: a receiving module 301 and a determining module 302.
其中,接收模块301,设置为:接收每个多服务集标识SSID的数据包,该每个SSID的数据包为归属于对应SSID的数据包。The receiving module 301 is configured to: receive each data packet of the multiple service set identifier SSID, where the data packet of each SSID is a data packet belonging to the corresponding SSID.
确定模块302,设置为:按照预设的流量设置比例,确定发送接收模块301接收的每个SSID的数据包的发送个数。The determining module 302 is configured to: determine the number of data packets sent by each of the SSIDs received by the sending and receiving module 301 according to a preset traffic setting ratio.
可选地,如图8所示,为本发明实施例提供的另一种多SSID路由器的结构示意图。在上述图7所示多SSID路由器30的结构基础上,本实施例提供的多SSID路由器30还可以包括:Optionally, FIG. 8 is a schematic structural diagram of another multi-SSID router according to an embodiment of the present invention. The multi-SSID router 30 provided in this embodiment may further include:
发送模块303,设置为:在确定模块302确定发送每个SSID的数据包的发送个数之后,按照确定模块302确定的每个SSID的数据包的发送个数和预设的每个SSID的发送优先级,发送每个SSID的数据包。The sending module 303 is configured to: after the determining module 302 determines the number of sending data packets of each SSID, send the number of data packets of each SSID determined according to the determining module 302 and the preset sending of each SSID. Priority, sending packets for each SSID.
可选地,如图8所示,本实施例提供的多SSID路由器30还可以包括:Optionally, as shown in FIG. 8, the multiple SSID router 30 provided in this embodiment may further include:
获取模块304,设置为:在发送模块303发送每个SSID的数据包之前,获取每个SSID的总接收个数和总发送个数。The obtaining module 304 is configured to: before the sending module 303 sends the data packet of each SSID, obtain the total number of received and the total number of sent by each SSID.
本实施例中的确定模块302,还设置为:根据获取模块304获取的每个SSID的总接收个数和总发送个数,确定每个SSID的顺序值;The determining module 302 in this embodiment is further configured to: determine the sequence value of each SSID according to the total number of received and the total number of sent by each SSID acquired by the obtaining module 304;
该确定模块302,还设置为:根据每个SSID的顺序值,确定每个SSID的发送优先级。The determining module 302 is further configured to: determine a sending priority of each SSID according to an order value of each SSID.
可选地,在本实施例的另一种实现方式中,获取模块304还可以设置为:在发送模块303发送每个SSID的数据包之前,获取每个SSID的总发送时间,该每个SSID的总发送时间为发送本SSID的数据包的时间之和;Optionally, in another implementation manner of this embodiment, the obtaining module 304 may be further configured to: before the sending module 303 sends the data packet of each SSID, obtain a total sending time of each SSID, where each SSID The total transmission time is the sum of the times when the data packets of this SSID are sent;
相应地,本实施例中的确定模块302,还设置为:按照获取模块304获取
的每个SSID的总发送时间,确定每个SSID的发送优先级。Correspondingly, the determining module 302 in this embodiment is further configured to: obtain according to the obtaining module 304.
The total transmission time of each SSID determines the transmission priority of each SSID.
可选地,本实施例中的接收模块301可以包括:Optionally, the receiving module 301 in this embodiment may include:
接收单元,设置为:接收第一数据包;a receiving unit, configured to: receive the first data packet;
确定单元,设置为:当第一数据包归属于第一SSID时,确定该第一数据包为第一SSID的数据包;a determining unit, configured to: when the first data packet belongs to the first SSID, determine that the first data packet is a data packet of the first SSID;
另外,本实施例中的获取模块304,还设置为:获取该第一数据包的种类;In addition, the obtaining module 304 in this embodiment is further configured to: acquire the type of the first data packet;
确定模块,还设置为:根据预设的数据包种类和QoS优先级的对应关系,确定该第一数据包挂载的QoS优先级的队列。The determining module is further configured to: determine, according to a preset correspondence between the type of the data packet and the QoS priority, a queue of the QoS priority of the first data packet.
可选地,本实施例中的发送模块303可以包括:Optionally, the sending module 303 in this embodiment may include:
获取单元,设置为:在每个QoS优先级的队列中,获取QoS优先级最高的n个第一SSID的数据包,其中,n是发送第一SSID的数据包的发送个数;The acquiring unit is configured to: obtain, in each queue of QoS priority, a data packet of n first SSIDs with the highest QoS priority, where n is the number of sent data packets that send the first SSID;
发送单元,设置为:发送获取单元获取的QoS优先级最高的n个第一SSID的数据包。The sending unit is configured to: send a data packet of the n first SSIDs with the highest QoS priority acquired by the acquiring unit.
可选地,如图8所示,本实施例提供的多SSID路由器30还可以包括:Optionally, as shown in FIG. 8, the multiple SSID router 30 provided in this embodiment may further include:
处理模块305,设置为:当接收一个SSID的数据包时,将对应的SSID的总接收个数加1;当发送一个SSID的数据包时,将对应的SSID的总发送个数加1。The processing module 305 is configured to: when receiving an SSID packet, increase the total number of received SSIDs by one; when transmitting an SSID packet, increase the total number of corresponding SSIDs by one.
可选地,本实施例中的获取模块304,还设置为:在发送单元发送QoS优先级最高的n个第一SSID的数据包之后,获取发送该n个第一SSID的数据包的发送时间;Optionally, the obtaining module 304 in this embodiment is further configured to: after the sending unit sends the data packets of the n first SSIDs with the highest QoS priority, obtain the sending time of the data packets that send the n first SSIDs. ;
相应地,本实施例中的处理模块305,还设置为:将获取模块304获取的发送n个第一SSID的数据包的发送时间除以所述第一SSID的顺序值,得到修正后的第一SSID的数据包的发送时间;将所述修正后的第一SSID的数据包的发送时间加入该第一SSID的总发送时间。Correspondingly, the processing module 305 in this embodiment is further configured to: divide the transmission time of the data packet of the n first SSIDs acquired by the obtaining module 304 by the sequence value of the first SSID, and obtain the corrected The sending time of the data packet of the SSID; adding the sending time of the data packet of the modified first SSID to the total sending time of the first SSID.
可选地,本发明实施例中的发送单元发送n个第一SSID的数据包的实现方式为:当n大于i时,发送i个第一SSID的数据包,并发送n-i个空包,其中,i为多SSID路由器30实际能够发送第一SSID的数据包的发送个数。
Optionally, the sending unit of the first SSID is sent by the sending unit in the embodiment of the present invention. When n is greater than i, the data packets of the first SSIDs are sent, and ni empty packets are sent, where i is the number of packets in which the multi-SSID router 30 can actually transmit the first SSID.
在实际应用中,本发明上述实施例中的接收模块301、确定模块302、发送模块303、获取模块304、处理模块305均可由位于多SSID路由器30中的中央处理器(Central Processing Unit,简称为:CPU)、微处理器(Micro Processor Unit,简称为:MPU)、数字信号处理器(Digital Signal Processor简称为:,DSP)、或现场可编程门阵列(Field Programmable Gate Array,简称为:FPGA)等实现。In a practical application, the receiving module 301, the determining module 302, the sending module 303, the obtaining module 304, and the processing module 305 in the foregoing embodiment of the present invention may all be configured by a central processing unit (Central Processing Unit, located in the multiple SSID router 30). : CPU), Micro Processor Unit (MPU), Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA) And so on.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(根据系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium on a corresponding hardware platform (according to The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能模块可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The device/function module/function module in the above embodiment may be implemented by a general-purpose computing device, which may be concentrated on a single computing device or distributed on a network composed of a plurality of computing devices.
上述实施例中的装置/功能模块/功能模块以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/function module in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
本发明实施例通过接收每个SSID的数据包,按照预设的流量设置比例,确定发送每个SSID的数据包的发送个数,其中,该每个SSID的数据包为归属于对应SSID的数据包;本发明实施例通过上述技术方案,能够在多SSID路由器的使用过程中,对每个用户端的带宽进行限制,从而大大的减少了一个或多个用户端占用大量网络资源的情况发生,达到了均衡流量的目的,从而提高用户满意度。
In the embodiment of the present invention, the data packet of each SSID is received, and the number of data packets sent by each SSID is determined according to a preset traffic setting ratio, wherein the data packet of each SSID is data belonging to the corresponding SSID. In the embodiment of the present invention, the bandwidth of each user terminal is restricted during the use of the multiple SSID routers, thereby greatly reducing the occurrence of one or more user terminals occupying a large amount of network resources. The purpose of balancing traffic is to increase user satisfaction.
Claims (18)
- 一种数据传输方法,包括:A data transmission method includes:接收每个服务集标识SSID的数据包,所述每个SSID的数据包为归属于对应SSID的数据包;Receiving a data packet of each service set identifier SSID, where the data packet of each SSID is a data packet belonging to the corresponding SSID;按照预设的流量设置比例,确定发送所述每个SSID的数据包的发送个数。The number of transmissions of the data packets for which each SSID is transmitted is determined according to a preset traffic setting ratio.
- 根据权利要求1所述方法,其中,所述按照预设的流量设置比例,确定发送所述每个SSID的数据包的发送个数之后,所述方法还包括:The method of claim 1, wherein the method further comprises: after determining the number of transmissions of the data packets for each of the SSIDs according to a preset traffic setting ratio, the method further comprising:按照所述每个SSID的数据包的发送个数和预设的每个SSID的发送优先级,发送所述每个SSID的数据包。The data packet of each SSID is transmitted according to the number of transmissions of the data packets of each SSID and the transmission priority of each of the preset SSIDs.
- 根据权利要求2所述的方法,其中,所述按照所述每个SSID的数据包的发送个数和预设的每个SSID的发送优先级,发送所述每个SSID的数据包之前,所述方法还包括:The method according to claim 2, wherein said transmitting the data packet of each SSID according to the number of transmissions of the data packets of each of the SSIDs and the transmission priority of each of the preset SSIDs The method also includes:获取所述每个SSID的总接收个数和总发送个数;Obtaining the total number of received and the total number of transmissions of each SSID;根据所述每个SSID的总接收个数和总发送个数,确定所述每个SSID的顺序值;Determining a sequence value of each SSID according to the total number of received and the total number of transmissions of each SSID;根据所述每个SSID的顺序值,确定所述每个SSID的发送优先级。A transmission priority of each of the SSIDs is determined according to the sequence value of each of the SSIDs.
- 根据权利要求2所述的方法,其中,所述按照所述每个SSID的数据包的发送个数和预设的每个SSID的发送优先级,发送所述每个SSID的数据包之前,所述方法还包括:The method according to claim 2, wherein said transmitting the data packet of each SSID according to the number of transmissions of the data packets of each of the SSIDs and the transmission priority of each of the preset SSIDs The method also includes:获取所述每个SSID的总发送时间,所述每个SSID的总发送时间为发送本SSID的数据包的时间之和;Obtaining a total sending time of each SSID, where a total sending time of each SSID is a sum of times of sending a data packet of the SSID;按照所述每个SSID的总发送时间,确定所述每个SSID的发送优先级。The transmission priority of each of the SSIDs is determined according to the total transmission time of each of the SSIDs.
- 根据权利要求1所述的方法,其中,所述接收每个SSID的数据包,包括:The method of claim 1 wherein said receiving a data packet for each SSID comprises:接收第一数据包;Receiving the first data packet;当所述第一数据包归属于第一SSID时,确定所述第一数据包为所述第一SSID的数据包; Determining, when the first data packet belongs to the first SSID, that the first data packet is a data packet of the first SSID;所述当所述第一数据包归属于第一SSID时,确定所述第一数据包为所述第一SSID的数据包之后,所述方法还包括:After the first data packet is determined to be the first SSID, after the first data packet is determined to be the data packet of the first SSID, the method further includes:获取所述第一数据包的种类;Obtaining the type of the first data packet;根据预设的数据包种类和服务质量QoS优先级的对应关系,确定所述第一数据包挂载的QoS优先级的队列。Determining a queue of QoS priorities of the first data packet according to a preset correspondence between a data packet type and a quality of service QoS priority.
- 根据权利要求2所述的方法,其中,所述按照所述每个SSID的数据包的发送个数和预设的每个SSID的发送优先级,发送所述每个SSID的数据包,包括:The method according to claim 2, wherein the transmitting the data packet of each SSID according to the number of transmissions of the data packets of each SSID and the transmission priority of each of the preset SSIDs includes:在每个QoS优先级的队列中,获取QoS优先级最高的n个第一SSID的数据包,所述n为发送所述第一SSID的数据包的发送个数;Obtaining, in each QoS priority queue, the data packets of the n first SSIDs with the highest QoS priority, where n is the number of the data packets sent by sending the first SSID;发送所述QoS优先级最高的n个第一SSID的数据包。Transmitting the data packets of the n first SSIDs with the highest QoS priority.
- 根据权利要求3所述的方法,还包括:The method of claim 3 further comprising:当接收一个所述SSID的数据包时,将对应的SSID的总接收个数加1;When receiving a data packet of the SSID, the total number of received SSIDs is increased by one;当发送一个所述SSID的数据包时,将对应的SSID的总发送个数加1。When a packet of the SSID is transmitted, the total number of transmissions of the corresponding SSID is incremented by one.
- 根据权利要求6所述的方法,其中,所述发送所述QoS优先级最高的n个第一SSID的数据包之后,所述方法还包括:The method of claim 6, wherein after the sending the data packets of the n first SSIDs with the highest QoS priority, the method further comprises:获取发送所述n个第一SSID的数据包的发送时间;Obtaining a sending time of the data packet that sends the n first SSIDs;将发送所述n个第一SSID的数据包的发送时间除以所述第一SSID的顺序值,得到修正后的第一SSID的数据包的发送时间;Dividing a transmission time of the data packet of the first first SSID by a sequence value of the first SSID to obtain a transmission time of the modified first SSID data packet;将所述修正后的第一SSID的数据包的发送时间加入所述第一SSID的总发送时间。And sending the modified transmission time of the data packet of the first SSID to the total transmission time of the first SSID.
- 根据权利要求6所述的方法,其中,所述发送所述QoS优先级最高的n个第一SSID的数据包,包括:The method of claim 6, wherein the transmitting the data packets of the n first SSIDs with the highest QoS priority comprises:当所述n大于i时,发送所述i个第一SSID的数据包,并发送n-i个空包,所述i为多SSID路由器实际能够发送所述第一SSID的数据包的发送个数。When the n is greater than i, the data packets of the i first SSIDs are sent, and n-i empty packets are sent, where i is the number of data packets that the multiple SSID routers can actually send the first SSID.
- 一种多服务集标识SSID路由器,包括:A multi-service set identifier SSID router, including:接收模块,设置为:接收每个服务集标识SSID的数据包,所述每个SSID 的数据包为归属于对应SSID的数据包;a receiving module, configured to: receive a data packet of each service set identifier SSID, each SSID The data packet is a data packet belonging to the corresponding SSID;确定模块,设置为:按照预设的流量设置比例,确定发送所述接收模块接收的所述每个SSID的数据包的发送个数。The determining module is configured to: determine, according to the preset traffic setting ratio, the number of sending the data packets of each SSID received by the receiving module.
- 根据权利要求10所述的多SSID路由器,还包括:The multiple SSID router of claim 10, further comprising:发送模块,设置为:在所述确定模块确定发送所述每个SSID的数据包的发送个数之后,按照所述确定模块确定的所述每个SSID的数据包的发送个数和预设的每个SSID的发送优先级,发送所述每个SSID的数据包。a sending module, configured to: after the determining module determines the number of sending the data packet of each SSID, according to the number of sending the data packet of each SSID determined by the determining module, and a preset The sending priority of each SSID is sent to the data packet of each SSID.
- 根据权利要求11所述的多SSID路由器,还包括:The multiple SSID router of claim 11 further comprising:获取模块,设置为:在所述发送模块发送所述每个SSID的数据包之前,获取所述每个SSID的总接收个数和总发送个数;Obtaining a module, configured to: obtain, after the sending module sends the data packet of each SSID, the total number of received and the total number of sent by each SSID;所述确定模块,还设置为:根据所述获取模块获取的所述每个SSID的总接收个数和总发送个数,确定所述每个SSID的顺序值;The determining module is further configured to: determine a sequence value of each SSID according to the total number of received and the total number of sent by each SSID acquired by the acquiring module;所述确定模块,还设置为:根据所述每个SSID的顺序值,确定所述每个SSID的发送优先级。The determining module is further configured to: determine, according to the sequence value of each SSID, a sending priority of each SSID.
- 根据权利要求11所述的多SSID路由器,还包括:The multiple SSID router of claim 11 further comprising:获取模块,设置为:在所述发送模块发送所述每个SSID的数据包之前,获取所述每个SSID的总发送时间,所述每个SSID的总发送时间为发送本SSID的数据包的时间之和;And an acquiring module, configured to: before the transmitting module sends the data packet of each SSID, acquire a total sending time of each SSID, where a total sending time of each SSID is a data packet that sends the SSID The sum of time;所述确定模块,还设置为:按照所述获取模块获取的所述每个SSID的总发送时间,确定所述每个SSID的发送优先级。The determining module is further configured to: determine a sending priority of each SSID according to a total sending time of each SSID acquired by the acquiring module.
- 根据权利要求10所述的多SSID路由器,其中,所述接收模块包括:The multiple SSID router of claim 10, wherein the receiving module comprises:接收单元,设置为:接收第一数据包;a receiving unit, configured to: receive the first data packet;确定单元,设置为:当所述第一数据包归属于第一SSID时,确定所述第一数据包为所述第一SSID的数据包;a determining unit, configured to: when the first data packet belongs to the first SSID, determine that the first data packet is a data packet of the first SSID;所述多SSID路由器还包括:获取模块,还设置为:获取所述第一数据包的种类;The multi-SSID router further includes: an obtaining module, configured to: acquire a type of the first data packet;所述确定模块,还设置为:根据预设的数据包种类和服务质量QoS优先 级的对应关系,确定所述第一数据包挂载的QoS优先级的队列。The determining module is further configured to: QoS priority according to a preset data packet type and quality of service The corresponding relationship of the levels determines a queue of QoS priorities of the first data packet.
- 根据权利要求11所述的多SSID路由器,其中,所述发送模块包括:The multiple SSID router of claim 11 wherein said transmitting module comprises:获取单元,设置为:在每个QoS优先级的队列中,获取QoS优先级最高的n个第一SSID的数据包,所述n为发送所述第一SSID的数据包的发送个数;The acquiring unit is configured to: obtain, in each queue of the QoS priority, a data packet of the n first SSIDs with the highest QoS priority, where n is the number of the data packets sent by sending the first SSID;发送单元,设置为:发送所述获取单元获取的所述QoS优先级最高的n个第一SSID的数据包。The sending unit is configured to: send the data packet of the n first SSIDs with the highest QoS priority obtained by the acquiring unit.
- 根据权利要求12所述的多SSID路由器,还包括:The multiple SSID router of claim 12, further comprising:处理模块,设置为:当接收一个SSID的数据包时,将对应的SSID的总接收个数加1;当发送一个SSID的数据包时,将对应的SSID的总发送个数加1。The processing module is configured to: when receiving an SSID packet, increase the total number of received SSIDs by one; when sending an SSID packet, increase the total number of corresponding SSIDs by one.
- 根据权利要求15所述的多SSID路由器,还包括:The multiple SSID router of claim 15 further comprising:获取模块,设置为:在所述发送单元发送所述QoS优先级最高的n个第一SSID的数据包之后,获取发送所述n个第一SSID的数据包的发送时间;And an acquiring module, configured to: after the sending unit sends the data packets of the n first SSIDs with the highest QoS priority, acquire a sending time of the data packets that send the n first SSIDs;处理模块,设置为:将所述获取模块获取的发送所述n个第一SSID的数据包的发送时间除以所述第一SSID的顺序值,得到修正后的第一SSID的数据包的发送时间;将所述修正后的第一SSID的数据包的发送时间加入所述第一SSID的总发送时间。The processing module is configured to: divide the transmission time of the data packet that is sent by the acquiring module and send the n first SSIDs by the sequence value of the first SSID, and obtain the data packet of the modified first SSID. Time; adding the transmission time of the modified first SSID packet to the total transmission time of the first SSID.
- 根据权利要求15所述的多SSID路由器,其中,The multiple SSID router according to claim 15, wherein所述发送单元,是设置为:当所述n大于i时,发送所述i个第一SSID的数据包,并发送n-i个空包,所述i为所述多SSID路由器实际能够发送所述第一SSID的数据包的发送个数。 The sending unit is configured to: when the n is greater than i, send the data packets of the i first SSIDs, and send ni empty packets, where the i is the multi-SSID router can actually send the The number of packets sent by the first SSID.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510938442.5A CN106888174A (en) | 2015-12-15 | 2015-12-15 | A kind of data transmission method and many SSID routers |
CN201510938442.5 | 2015-12-15 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017101476A1 true WO2017101476A1 (en) | 2017-06-22 |
Family
ID=59055664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/095358 WO2017101476A1 (en) | 2015-12-15 | 2016-08-15 | Data transmission method and multi-ssid router |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106888174A (en) |
WO (1) | WO2017101476A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107294983B (en) * | 2017-06-30 | 2020-09-29 | 北京小米移动软件有限公司 | Network connection method and device, user equipment and terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1711723A (en) * | 2002-11-07 | 2005-12-21 | 皇家飞利浦电子股份有限公司 | System and method for an IEEE 802.11 access point to prevent traffic suffering bad link quality from affecting other traffic |
CN101917345A (en) * | 2010-09-01 | 2010-12-15 | 杭州华三通信技术有限公司 | Method and device for controlling flows in wireless local area network |
CN103347266A (en) * | 2013-07-26 | 2013-10-09 | 薛海强 | Method, device and system for network access |
US20140036893A1 (en) * | 2012-07-31 | 2014-02-06 | Gautam Dilip Bhanage | System and Method for Enforcing Uplink Wireless Medium Usage in Wireless Networks |
WO2014113948A1 (en) * | 2013-01-24 | 2014-07-31 | Hewlett-Packard Development Company, L.P. | Limiting access to service providers based on the network traffic load of a wireless access point |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217499B (en) * | 2008-01-21 | 2010-12-01 | 中兴通讯股份有限公司 | Array dispatching method |
-
2015
- 2015-12-15 CN CN201510938442.5A patent/CN106888174A/en active Pending
-
2016
- 2016-08-15 WO PCT/CN2016/095358 patent/WO2017101476A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1711723A (en) * | 2002-11-07 | 2005-12-21 | 皇家飞利浦电子股份有限公司 | System and method for an IEEE 802.11 access point to prevent traffic suffering bad link quality from affecting other traffic |
CN101917345A (en) * | 2010-09-01 | 2010-12-15 | 杭州华三通信技术有限公司 | Method and device for controlling flows in wireless local area network |
US20140036893A1 (en) * | 2012-07-31 | 2014-02-06 | Gautam Dilip Bhanage | System and Method for Enforcing Uplink Wireless Medium Usage in Wireless Networks |
WO2014113948A1 (en) * | 2013-01-24 | 2014-07-31 | Hewlett-Packard Development Company, L.P. | Limiting access to service providers based on the network traffic load of a wireless access point |
CN103347266A (en) * | 2013-07-26 | 2013-10-09 | 薛海强 | Method, device and system for network access |
Also Published As
Publication number | Publication date |
---|---|
CN106888174A (en) | 2017-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5212956B2 (en) | Synchronization scheduling method and apparatus | |
Kanodia et al. | Ordered packet scheduling in wireless ad hoc networks: Mechanisms and performance analysis | |
Joo et al. | Distributed greedy approximation to maximum weighted independent set for scheduling with fading channels | |
WO2019119837A1 (en) | Service identification method and device, and network device | |
WO2021227559A1 (en) | Communication method, apparatus, and system | |
TWI531186B (en) | Multiple-interface network device and selection method for transmitting network packets | |
WO2021249039A1 (en) | Communication method, apparatus and system | |
Daldoul et al. | Performance and scalability evaluation of IEEE 802.11 v/aa multicast transport | |
CN103945441A (en) | Method and device for adaptive adjustment of QoS parameter | |
US9001657B2 (en) | Mesh network node with multiple automatic repeat requesters | |
WO2016206481A1 (en) | Method and device for competitive transmission | |
US7787434B2 (en) | Method access point and program product for providing bandwidth and airtime fairness in wireless networks | |
US20230370389A1 (en) | Out of order packet scheduler | |
US20220132528A1 (en) | Systems and methods for prioritizing bi-directional traffic flows | |
US9179357B2 (en) | Systems and methods for buffer status reporting in wireless communication systems | |
WO2017101476A1 (en) | Data transmission method and multi-ssid router | |
CN116114254A (en) | Communication method and device | |
TWI584666B (en) | Push-based information delivery device, push-based information delivery method and program | |
Hu et al. | A threshold-based dynamic TXOP scheme for intra-AC QoS differentiation in IEEE 802.11 e networks | |
Kim et al. | Broadcast packet collision and avoidance method in Wi-Fi based broadcasting system | |
US11290387B2 (en) | Out of order packet scheduler | |
US20120063307A1 (en) | Adaptive triggering set for relaxed deterministic back-off method | |
EP4401445A1 (en) | Communication method and apparatus | |
Seo et al. | Queuing performance of multichannel S-ALOHA systems with correlated arrivals | |
WO2023197143A1 (en) | Base station, user equipment, and extended reality processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16874536 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16874536 Country of ref document: EP Kind code of ref document: A1 |