WO2018068444A1 - Transmission capacity sharing method, terminal, and storage medium - Google Patents

Transmission capacity sharing method, terminal, and storage medium Download PDF

Info

Publication number
WO2018068444A1
WO2018068444A1 PCT/CN2017/072963 CN2017072963W WO2018068444A1 WO 2018068444 A1 WO2018068444 A1 WO 2018068444A1 CN 2017072963 W CN2017072963 W CN 2017072963W WO 2018068444 A1 WO2018068444 A1 WO 2018068444A1
Authority
WO
WIPO (PCT)
Prior art keywords
transmission
terminal
channel
data traffic
sharing
Prior art date
Application number
PCT/CN2017/072963
Other languages
French (fr)
Chinese (zh)
Inventor
李聪
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018068444A1 publication Critical patent/WO2018068444A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/822Collecting or measuring resource availability data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Definitions

  • the present invention relates to a sharing technology, and in particular, to a transmission sharing method, a terminal, and a storage medium.
  • a terminal that can be used as a wireless Fidelity (WiFi) hotspot if the terminal that accesses the Internet through the hotspot is a transmission sharing terminal, the unlimited access of the transmission sharing terminal will increase the traffic loss of the hotspot terminal. risk.
  • WiFi wireless Fidelity
  • the transmission sharing terminal uses the hotspot for data transmission, which also occupies the data transmission bandwidth of the hotspot terminal, which may cause the hotspot terminal to be unable to be used normally. It can be seen that there is a need for a transmission sharing method to at least avoid an increase in traffic loss and ensure normal use of hotspot terminals.
  • the embodiments of the present invention provide a transmission sharing method, a terminal, and a storage medium, which can at least avoid an increase in traffic loss and ensure normal use of the terminal.
  • the embodiment of the invention provides a transmission sharing method, and the method includes:
  • the transmission state information includes at least one of data traffic consumed by each channel occupied by the transmission sharing terminal, a transmission rate of each channel, data traffic consumed by all channels, and a total transmission rate of all channels. ;
  • the transmission restriction information includes at least one of a single channel maximum mobile data traffic, a single channel maximum transmission rate, a total transmission shared maximum mobile data traffic, and a total transmission shared maximum transmission rate.
  • the comparing the transmission status information and the transmission restriction information to obtain a comparison result, and controlling the transmission connection status of the at least one transmission sharing terminal according to the comparison result including:
  • the transmission status information is the data traffic that has been consumed by the channel occupied by each transmission sharing terminal, compare the data traffic consumed by each channel with the maximum mobile data traffic of the corresponding channel in each channel, and filter out the consumed data.
  • the channel whose data traffic meets or exceeds the maximum mobile data traffic determines that the selected channel is the target channel, and disconnects the transmission connection of the transmission sharing terminal corresponding to the target channel;
  • the transmission status information is the transmission rate of each channel
  • compare the current transmission rate of each channel with the maximum transmission rate of the corresponding channel and filter out the channel whose current transmission rate has reached or exceeded the maximum transmission rate, and determine the selected channel.
  • the outgoing channel is a target channel, and the transmission connection of the transmission sharing terminal corresponding to the target channel is disconnected;
  • the transmission connection state includes at least disconnection.
  • the comparing the transmission status information and the transmission restriction information to obtain a comparison result, and controlling the transmission connection status of the at least one transmission sharing terminal according to the comparison result including:
  • the transmission status information is the total transmission rate of all channels, comparing the total transmission rate of all channels with the maximum transmission rate shared by the total transmission, when the total transmission rate has reached or exceeded the total transmission sharing At the maximum transmission rate, the transmission connection of the transmission sharing terminal corresponding to each channel is controlled to be disconnected;
  • the transmission connection state includes at least disconnection.
  • the transmission status information includes at least a total number of channels occupied by the current transmission sharing terminal, and the transmission restriction information includes at least a maximum number of channels allowed to be established;
  • the transmission sharing connection request is blocked or not answered.
  • the embodiment of the invention further provides a terminal, where the terminal includes:
  • a first acquiring unit configured to acquire current transmission state information of the at least one transmission sharing terminal
  • a second acquiring unit configured to acquire transmission restriction information of the at least one transmission sharing terminal
  • a first comparing unit configured to compare the transmission state information and the transmission restriction information to obtain a comparison result
  • the first control unit is configured to control a transmission connection state of the at least one transmission sharing terminal according to the comparison result.
  • the transmission status information includes at least a letter occupied by each transmission sharing terminal.
  • the transmission restriction information includes at least one of a single channel maximum mobile data traffic, a single channel maximum transmission rate, a total transmission shared maximum mobile data traffic, and a total transmission shared maximum transmission rate.
  • the first comparing unit is configured to use the data traffic that has been consumed by each channel and the maximum mobile data of the corresponding channel in each channel. The traffic is compared to filter out the channel whose consumed data traffic meets or exceeds the maximum mobile data traffic, and determines that the selected channel is the target channel; correspondingly, the first control unit is configured to disconnect the transmission corresponding to the target channel. a transmission connection of the shared terminal;
  • the first comparing unit is configured to compare the current transmission rate of each channel with the maximum transmission rate of the corresponding channel, and filter out that the current transmission rate has reached or exceeded a channel of the maximum transmission rate, determining that the selected channel is the target channel; correspondingly, the first control unit is configured to disconnect the transmission connection of the transmission sharing terminal corresponding to the target channel;
  • the transmission connection state includes at least disconnection.
  • the first comparing unit is configured to compare the total consumed data traffic with the maximum mobile data traffic shared by the total transmission, when When the total consumed data traffic has reached or exceeded the maximum mobile data traffic shared by the total transmission, the first control unit is triggered to control the transmission connection disconnection of the transmission sharing terminal corresponding to each channel;
  • the first comparing unit Configuring to compare the total transmission rate of all channels with the maximum transmission rate shared by the total transmission, triggering the first control unit to control each time the total transmission rate has reached or exceeded the maximum transmission rate shared by the total transmission
  • the transmission connection of the transmission sharing terminal corresponding to the channel is disconnected;
  • the transmission connection state includes at least disconnection.
  • the transmission status information includes at least a total number of channels occupied by the current transmission sharing terminal, and the transmission restriction information includes at least a maximum number of channels allowed to be established;
  • the terminal further includes:
  • a second comparing unit configured to: when receiving a transmission sharing connection request initiated by another terminal, compare a size relationship between a total number of channels occupied by the current transmission sharing terminal and a maximum number of channels allowed to be established, wherein the other terminal a terminal other than the at least one transport sharing terminal;
  • the second comparison unit compares that the total number of channels occupied by the transmission sharing terminal does not reach the maximum number of channels allowed to be established, triggering the first establishing unit, otherwise triggering the first shielding unit;
  • the first establishing unit is configured to establish and allocate a new channel for the other terminal to establish a transmission sharing connection
  • the first shielding unit is configured to block the transmission sharing connection request or not.
  • the terminal respectively acquires the current transmission state information and the transmission restriction information of the at least one transmission sharing terminal, compares the two information, and controls transmission according to the comparison result.
  • the transmission connection of the shared terminal is disconnected or continues to be turned on.
  • the disconnection or the continued opening of the transmission connection is performed by the comparison result of the transmission status information and the transmission restriction information, compared with the increase of the traffic cost caused by the unrestricted Internet access of the transmission sharing terminal in the related art, the embodiment of the present invention
  • the transmission connection state can be controlled according to the comparison result to avoid unnecessary increase of the flow loss, thereby ensuring the normal use of the terminal.
  • FIG. 1 is a schematic flowchart of an implementation process of a first embodiment of a transmission sharing method provided by the present invention
  • FIG. 2 is a schematic flowchart of implementing a second embodiment of a transmission sharing method according to the present invention
  • FIG. 3 is a schematic diagram of an application scenario according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a component of a terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another component of a terminal according to an embodiment of the present invention.
  • the first embodiment of the transmission sharing method provided by the present invention is applied to a terminal, and the terminal may be any device capable of data transmission sharing, such as a tablet, a mobile phone, a computer, a router, or a smart projector.
  • the router can serve as the aforementioned terminal.
  • the aforementioned terminal can be used as a hot-spot mobile phone or as a mobile phone in any of the shared mobile phones. That is, the person in the art should understand that the terminal in this embodiment is not limited to a terminal having a hotspot function, and may be any terminal that can perform data transmission with other terminals by using a data transmission sharing mechanism.
  • the data transmission sharing mechanism may be other than the WiFi hotspot connection, such as at least two mobile phones accessing the network connected by the same router to access the Internet.
  • FIG. 1 is a schematic flowchart of a first embodiment of a transmission sharing method according to the present invention; as shown in FIG. 1 , the method includes:
  • Step 101 Acquire current transmission state information of at least one transmission sharing terminal.
  • the execution body of step 101 is a terminal. Sharing at the terminal with the at least one transmission sharing terminal When the data transmission sharing mechanism is used, when the terminal detects that there is a new request and response, the terminal reads the current transmission status information of at least one transmission sharing terminal.
  • the terminal will initiate a request to the server every time a web browsing operation such as web browsing or video viewing is performed, and after receiving the request, the server will feedback the response to the terminal to display the webpage to be viewed, the video to be watched, etc. .
  • the terminal can monitor the online operation of the at least one transmission sharing terminal.
  • the transmission status information of the transmission sharing terminal is performed at this time.
  • a certain timing time such as 8 hours, 1 day, etc., is set for the acquisition of the transmission status information, and when the timing time ends, the trigger terminal reads the transmission status information of the transmission sharing terminal at this time.
  • the transmission status information includes at least one of data traffic consumed by each channel shared by the transmission sharing terminal, a transmission rate of each channel, data traffic consumed by all channels, and a total transmission rate of all channels.
  • Step 102 Acquire transmission restriction information of the at least one transmission sharing terminal.
  • the execution body of step 102 is a terminal.
  • the terminal reads the transmission restriction information set to perform the data transmission sharing mechanism.
  • the transmission restriction information is set when establishing a data transmission sharing mechanism between the terminal and the at least one transmission sharing terminal, and the main settings include, but are not limited to, the maximum number of channels allowed to be established, the maximum mobile data traffic of a single channel, The maximum transmission rate of a single channel, the maximum mobile data traffic shared by the total transmission, and the maximum transmission rate shared by the total transmission.
  • the set transmission restriction information may further include a maximum mobile data traffic restriction term for a specific connection, and a maximum transmission rate restriction term for a specific connection.
  • the value of each data traffic in the transmission restriction information may be a fixed value. It can also be a scale value based on the current remaining data traffic.
  • the value of each transmission rate may be a fixed value, or may be a ratio based on the transmission rate of the terminal.
  • Step 103 Compare the transmission status information and the transmission restriction information to obtain a comparison result.
  • the execution body of step 103 is a terminal.
  • the terminal compares the current transmission status information of the read transmission sharing terminal with the transmission restriction information to obtain a comparison result.
  • Step 104 Control, according to the comparison result, a transmission connection state of the at least one transmission sharing terminal.
  • the execution body of step 104 is a terminal.
  • the transmission connection state is that the transmission connection of the transmission sharing terminal is disconnected (turned off) or enabled (continued on).
  • the terminal controls the transmission connection of the transmission sharing terminal to continue to open or control the transmission connection of the transmission sharing terminal to be disconnected according to the obtained comparison result.
  • the terminal separately acquires the current transmission state information and the transmission restriction information of the at least one transmission sharing terminal, compares the two information, and controls the transmission connection of the transmission sharing terminal to be disconnected or continued to be opened according to the comparison result.
  • the transmission connection is disconnected or continues to be turned on by the comparison result of the transmission status information and the transmission restriction information, compared with the related art in that the traffic cost due to the uncontrolled opening of the transmission sharing terminal, that is, the unrestricted Internet access, is increased.
  • the embodiment of the invention can control the transmission connection state according to the comparison result, avoid unnecessary increase of the traffic loss, and further ensure the normal use of the terminal.
  • the second embodiment of the transmission sharing method provided by the present invention is applied to a terminal, and the terminal may be any device capable of data transmission sharing, such as a tablet, a mobile phone, a computer, a router, or a smart projector.
  • the router can serve as the aforementioned terminal.
  • the aforementioned terminal can be used as a hot-spot mobile phone or as a mobile phone in any of the shared mobile phones. That is, those skilled in the art should understand that the terminal in this embodiment is not limited to A terminal having a hotspot function may be any terminal that can transmit data using a data transmission sharing mechanism with other terminals.
  • the data transmission sharing mechanism may be other than the WiFi hotspot connection, such as at least two mobile phones accessing the network connected by the same router to access the Internet.
  • FIG. 2 is a schematic flowchart of a second embodiment of a transmission sharing method provided by the present invention; as shown in FIG. 2, the method includes:
  • Step 201 Acquire current transmission state information of at least one transmission sharing terminal.
  • the execution body of step 201 is a terminal.
  • the terminal and the at least one transmission sharing terminal adopt a data transmission sharing mechanism
  • the terminal reads the current transmission state information of the at least one transmission sharing terminal.
  • the terminal will initiate a request to the server every time a web browsing operation such as web browsing or video viewing is performed, and after receiving the request, the server will feedback the response to the terminal to display the webpage to be viewed, the video to be watched, etc. .
  • the terminal can monitor the online operation of the at least one transmission sharing terminal.
  • the transmission status information of the transmission sharing terminal is performed at this time.
  • a certain timing time such as 8 hours, 1 day, etc., is set for the acquisition of the transmission status information, and when the timing time ends, the trigger terminal reads the transmission status information of the transmission sharing terminal at this time.
  • the transmission status information includes at least one of data traffic consumed by each channel shared by the transmission sharing terminal, a transmission rate of each channel, data traffic consumed by all channels, and a total transmission rate of all channels.
  • Step 202 Acquire transmission restriction information of the at least one transmission sharing terminal.
  • the execution body of step 202 is a terminal.
  • the terminal reads the transmission restriction information set to perform the data transmission sharing mechanism.
  • the transmission restriction information is between the establishment terminal and the at least one transmission sharing terminal.
  • the data transmission sharing mechanism is sometimes set.
  • the main settings include but are not limited to: the maximum number of channels allowed to be established, the maximum mobile data traffic of a single channel, the maximum transmission rate of a single channel, the maximum mobile data traffic shared by the total transmission, and the total transmission sharing. Maximum transfer rate.
  • the set transmission restriction information may further include a maximum mobile data traffic restriction term for a specific connection, and a maximum transmission rate restriction term for a specific connection.
  • Step 203a When the transmission status information is data traffic that has been consumed by the channel occupied by each transmission sharing terminal, compare the data traffic consumed by each channel with the maximum mobile data traffic of the corresponding channel in each channel, and filter out The channel whose consumed data traffic meets or exceeds the maximum mobile data traffic, determines that the selected channel is the target channel, and disconnects the transmission connection of the transmission sharing terminal corresponding to the target channel;
  • the current terminal (the execution terminal in steps 201 to 203d) can acquire the data traffic consumed by each channel by using the following method: the terminal monitors and records the consumed data traffic on the channel.
  • the terminal may also adopt the following method for acquiring data traffic consumed by each channel: determining a network transmission mode of the terminal and remaining data traffic of each channel, and performing statistics according to the network transmission mode and current data traffic of each channel.
  • the network transmission mode includes, but is not limited to, transmission in the form of mobile data traffic, WiFi, and WiFi hotspot.
  • the terminal knows what the traffic value it has, and when setting the transmission restriction information, in addition to setting the foregoing content, it is also necessary to set the traffic that the terminal has its own. How much, for example, 70% of the traffic is allocated to the transmission sharing terminal and the traffic value that each transmission sharing terminal can enjoy on the corresponding channel is set, and the remaining data traffic of each channel is monitored when the transmission sharing terminal performs data transmission. The terminal performs corresponding subtraction operation according to the flow value that can be enjoyed on each channel and the remaining data traffic. To get the data traffic that has been consumed by each channel. For network transmission modes that use WiFI for transmission, the remaining data traffic is set to infinity. Here, part of the traffic of the terminal is allocated to the transmission sharing terminal, and the remaining part of the traffic is used for its own use. Therefore, the transmission sharing terminal does not need to occupy the data bandwidth of the terminal, thereby ensuring the normal use of the terminal.
  • Step 203b When the transmission status information is the transmission rate of each channel, compare the current transmission rate of each channel with the maximum transmission rate of the corresponding channel, and filter out the channel whose current transmission rate has reached or exceeded the maximum transmission rate. Determining that the selected channel is a target channel, and disconnecting a transmission connection of the transmission sharing terminal corresponding to the target channel;
  • Step 203c When the transmission status information is data traffic consumed by all channels, comparing the total consumed data traffic with the maximum mobile data traffic shared by the total transmission, when the total consumed data traffic has been When the maximum mobile data traffic shared by the total transmission is reached or exceeded, the transmission connection of the transmission sharing terminal corresponding to each channel is controlled to be disconnected;
  • the sum of the data traffic consumed by each channel is the data traffic consumed by all channels.
  • Step 203d When the transmission status information is the total transmission rate of all channels, compare the total transmission rate of all channels with the maximum transmission rate shared by the total transmission, when the total transmission rate has reached or exceeded the When the total transmission rate of the total transmission is shared, the transmission connection of the transmission sharing terminal corresponding to each channel is controlled to be disconnected.
  • the sum of the transmission rates of the respective channels is the total transmission rate of all the channels.
  • steps 203a to 203d are a terminal.
  • the schemes that need to be executed when the acquired transmission state information is specifically described in steps 203a to 203d are not strictly sequential, and may be simultaneously executed.
  • Steps 203a to 203d may be used to compare the transmission state information and the transmission restriction information in the embodiment to obtain a comparison result, and further describe, according to the comparison result, a transmission connection state of the at least one transmission sharing terminal. .
  • the content of the acquired transmission status information may be a single item, such as data traffic consumed only for each channel or only the current transmission rate, and may also be any two of them. Item or a combination of two or more, so that the four steps of steps 203a to 203d may be performed separately, or any two or more of the four steps may be simultaneously performed, depending on the acquired content of the transmission status information. And set.
  • step 203a, 203b the transmission connection of the partial transmission shared terminal is closed; in steps 203c, 203d, the transmission connection of the transmission sharing terminal corresponding to each channel is disconnected, that is, the entire shared transmission connection is closed. .
  • the transmission status information may further include the total number of channels occupied by the current transmission sharing terminal
  • the transmission restriction information may further include a maximum number of channels allowed to be established, so in a preferred embodiment of the present invention, the method further include:
  • the other terminal when another terminal other than the transmission sharing terminal also wants to use the data transmission sharing mechanism established by the transmission sharing terminal and the terminal to access the Internet, the other terminal will initiate a transmission sharing connection request to the terminal, and the terminal Comparing whether the total number of channels occupied by the current transmission sharing terminal reaches the maximum number of channels allowed to be established, and if not, establishing and allocating a new channel to the other terminal that initiates the transmission sharing connection request, otherwise shielding transmission
  • the connection request is shared or not answered to prohibit the other terminal from participating in the shared transmission of data.
  • the terminal may be a terminal that cannot be operated by the user, such as a router, or a terminal that can be operated by the user, such as a hotspot mobile phone.
  • the method further includes: the terminal according to the current transmission status of at least one transmission sharing terminal. Reset the transfer restriction information to Ensure the timely deployment of the transmission bandwidth of each channel, and ensure that the data transmission tasks of each transmission sharing terminal are completed normally. In the case that the terminal is a terminal that can be operated by the user itself, the transmission restriction information is reset and the normal use of the terminal is ensured as much as possible.
  • step 201 to step 203d after the transmission connection state of one of the four transmission sharing terminals is turned off, the maximum number of channels allowed to be established is updated from the original 4 It becomes three, and the traffic originally allocated to the transmission sharing terminal whose transmission connection state is disconnected/closed is equally distributed to the other three transmission sharing terminals that are not disconnected/closed, so that at least the other three transmissions can be guaranteed.
  • the data transfer task of the shared terminal can be completed normally.
  • the terminal acquires the current transmission state information and the transmission restriction information of the at least one transmission sharing terminal, where the transmission state information includes at least the data traffic consumed by the channel occupied by each transmission sharing terminal, and the transmission rate of each channel. And one of the total data transmission rate of all channels and the total transmission rate of all channels, the transmission restriction information includes at least a single channel maximum mobile data traffic, a single channel maximum transmission rate, a total transmission shared maximum mobile data traffic, and a total Transmitting one of the maximum transmission rates of the shared transmission, comparing the obtained transmission status information with the corresponding transmission restriction information, and controlling the transmission connection of the transmission sharing terminal to be disconnected or continued to be turned on according to the comparison result, or controlling the entire shared transmission connection shut down.
  • the transmission state information includes at least the data traffic consumed by the channel occupied by each transmission sharing terminal, and the transmission rate of each channel.
  • the transmission restriction information includes at least a single channel maximum mobile data traffic, a single channel maximum transmission rate, a total transmission shared maximum mobile data traffic, and a total Transmitting one of the
  • the transmission of the shared terminal can be transmitted according to the corresponding comparison control part of the transmission status information and the transmission restriction information, compared to the increase of the traffic cost caused by the uncontrolled opening of the transmission sharing terminal, that is, the unrestricted Internet access. Connection status or the entire shared transmission connection, to avoid unnecessary increase in traffic loss, to ensure the normal use of the terminal.
  • the terminal 1 (the terminal) is a WiFi hotspot mobile phone
  • the mobile phones 2 to 4 are transmission sharing terminals
  • the terminal 1 and the mobile phones 2 to 4 use a data transmission sharing mechanism to perform an online operation.
  • the transmission limit is set in the terminal 1.
  • the information is set, for example, the maximum number of channels allowed to be established, the maximum mobile data traffic for a single channel, the maximum transmission rate for a single channel, the maximum mobile data traffic for total transmission sharing, and the maximum transmission rate for total transmission sharing.
  • the terminal 1 saves the set transmission restriction information, and monitors the Internet access operations of the mobile phones 2 to 4.
  • the mobile phone 2 to 4 The transmission status information is read, for example, reading the data traffic consumed by the channels occupied by each mobile phone of the mobile phones 2 to 4, and reading the current transmission rate of each channel.
  • the terminal 1 performs real-time monitoring on the data traffic consumed on each channel and records the monitored information, and waits for the reading of the terminal 1.
  • the transmission status information read by the terminal 1 is only the data traffic consumed by each channel (the channels occupied by the mobile phones 2 to 4 are channel 2 to channel 4 in sequence), the data traffic consumed by each channel in channels 2 to 4 is The maximum mobile data traffic of the corresponding channel is compared by the size. If it is found that the data traffic consumed by the channel reaches or exceeds the corresponding maximum mobile data traffic, then the determined channel is the target channel, and if the target channel is channel 2, then the terminal 1 Disconnect (close) the transmission connection of the phone 2.
  • the transmission status information read by the terminal 1 is only the current transmission rate of each channel, the current transmission rate of each channel in channels 2 to 4 is compared with the maximum transmission rate of the corresponding channel, and if the current transmission of the channel is found. If the rate has reached or exceeded the maximum transmission rate, then it is determined that such a channel is the target channel, and if the target channel is channel 4, the terminal 1 disconnects the transmission connection of the handset 4.
  • the transmission status information read by the terminal 1 is only the data traffic or the total transmission rate consumed by all the channels, which is similar to the foregoing, and is not described herein.
  • the transmission status information read by the terminal 1 in the above content is only one of the contents. If it is two or more contents, it is necessary to simultaneously determine the size relationship between the two or more contents and the corresponding transmission restriction information, and according to these The size relationship determines which transport sharing terminal's transport connection is closed. For example, if the transmission status information read by the terminal 1 is the number of channels consumed. According to the traffic and the current transmission rate of each channel, the data traffic consumed by each channel in channels 2 to 4 is compared with the maximum mobile data traffic of the corresponding channel, and the current transmission rate of each channel is The size is compared with the maximum transmission rate of the corresponding channel.
  • terminal 1 pairs Turn off the transmission connection of the mobile phone 2, and prohibit the mobile phone 2 from continuing to use the data transmission sharing mechanism to access the Internet. If the data traffic that has been consumed for channel 2 does not reach the maximum mobile data traffic set for channel 2 and the current transmission rate of channel 2 reaches the maximum transmission rate set for channel 2, terminal 1 disconnects (turns off) the transmission of handset 2. Connect, prohibit mobile phone 2 from continuing to use the data transmission sharing mechanism to access the Internet.
  • terminal 1 disconnects (turns off) the transmission of handset 2. Connect, prohibit mobile phone 2 from continuing to use the data transmission sharing mechanism to access the Internet. If the data traffic that has been consumed for channel 2 does not reach the maximum mobile data traffic set for channel 2 and the current transmission rate of channel 2 does not reach the maximum transmission rate set for channel 2, continue to open the transmission connection of handset 2, Mobile 2 continues to use the data transfer sharing mechanism to access the Internet.
  • the transmission connection of all the transmission sharing terminals is turned off after comparison of the foregoing two contents, it means that the entire shared transmission connection is closed.
  • the terminal compares the acquired transmission state information with the corresponding transmission restriction information, and controls the transmission connection of the transmission sharing terminal to be closed or continued to be turned on according to the comparison result, or controls the entire shared transmission connection to be closed. .
  • the transmission of the shared terminal can be transmitted according to the corresponding comparison control part of the transmission status information and the transmission restriction information, compared to the increase of the traffic cost caused by the uncontrolled opening of the transmission sharing terminal, that is, the unrestricted Internet access. Connection status or the entire shared transmission connection, to avoid unnecessary increase in traffic loss, to ensure the normal use of the terminal.
  • the embodiment of the invention further describes a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the transmission sharing method described in the above embodiments.
  • the terminal provided by the present invention may be any device that can share data and share, such as a tablet, a mobile phone, a computer, a router, or a smart projector.
  • the router can serve as the aforementioned terminal.
  • the aforementioned terminal can be used as a hot-spot mobile phone or as a mobile phone in any of the shared mobile phones. That is, the person in the art should understand that the terminal in this embodiment is not limited to a terminal having a hotspot function, and may be any terminal that can perform data transmission with other terminals by using a data transmission sharing mechanism.
  • the data transmission sharing mechanism may be other than the WiFi hotspot connection, such as at least two mobile phones accessing the network connected by the same router to access the Internet.
  • FIG. 4 is a schematic structural diagram of a component of a terminal according to an embodiment of the present invention. As shown in FIG. 4, the terminal includes: a first acquiring unit 401, a second acquiring unit 402, a first comparing unit 403, and a first control unit 404. ;among them,
  • the first obtaining unit 401 is configured to acquire current transmission state information of the at least one transmission sharing terminal
  • the second obtaining unit 402 is configured to acquire transmission restriction information of the at least one transmission sharing terminal
  • the first comparing unit 403 is configured to compare the transmission state information and the transmission restriction information to obtain a comparison result
  • the first control unit 404 is configured to control a transmission connection state of the at least one transmission sharing terminal according to the comparison result.
  • the transmission status information includes at least one of data traffic consumed by each channel occupied by the transmission sharing terminal, a transmission rate of each channel, data traffic consumed by all channels, and a total transmission rate of all channels;
  • the transmission restriction information includes at least one of a single channel maximum mobile data traffic, a single channel maximum transmission rate, a total transmission shared maximum mobile data traffic, and a total transmission shared maximum transmission rate.
  • the first comparing unit 403 is configured to use the data traffic consumed by each channel and the maximum movement of the corresponding channel in each channel. The data traffic is compared to filter out the channel whose consumed data traffic meets or exceeds the maximum mobile data traffic, and determines that the selected channel is the target channel.
  • the first control unit 404 is configured to disconnect the target channel. Transmission connection of the transmission sharing terminal;
  • the first comparison unit 403 is configured to compare the current transmission rate of each channel with the maximum transmission rate of the corresponding channel, and filter out that the current transmission rate has reached or The channel that exceeds the maximum transmission rate is determined to be the target channel.
  • the first control unit 404 is configured to disconnect the transmission connection of the transmission sharing terminal corresponding to the target channel.
  • the first comparing unit 403 is configured to compare the total consumed data traffic with the maximum mobile data traffic shared by the total transmission.
  • the first control unit 404 is triggered to control the transmission connection disconnection of the transmission sharing terminal corresponding to each channel;
  • the first comparison unit when the transmission status information is a total transmission rate of all channels 403. Configure to compare a total transmission rate of all channels with a maximum transmission rate shared by the total transmission, and trigger the first control unit when the total transmission rate has reached or exceeded a maximum transmission rate of the total transmission sharing. 404 controls the transmission connection disconnection of the transmission sharing terminal corresponding to each channel.
  • the transmission status information includes at least a total number of channels occupied by the current transmission sharing terminal, and the transmission restriction information includes at least a maximum number of channels allowed to be established;
  • the terminal further includes:
  • the second comparing unit 405 is configured to compare, when receiving the transmission sharing connection request initiated by the other terminal, a size relationship between the total number of channels occupied by the current transmission sharing terminal and the maximum number of channels allowed to be established, wherein the other The terminal is a terminal other than the at least one transport sharing terminal;
  • the second comparison unit 405 compares that the total number of channels occupied by the transmission sharing terminal does not reach the maximum number of channels allowed to be established, the first establishing unit 406 is triggered, otherwise the first shielding unit 407 is triggered;
  • the first establishing unit 406 is configured to establish and allocate a new channel for the other terminal to establish a transmission shared connection.
  • the first shielding unit 407 is configured to block the transmission shared connection request or not.
  • the terminal specifically the first obtaining unit 401 and the second obtaining unit 402 respectively obtain the current transmission state information and the transmission restriction information of the at least one transmission sharing terminal, and the first comparing unit 403 performs the two information.
  • the first control unit 404 controls the transmission connection of the transmission sharing terminal to be disconnected or continues to be turned on according to the comparison result.
  • the disconnection or the continued opening of the transmission connection is performed by the comparison result of the transmission status information and the transmission restriction information, compared with the increase in the traffic cost caused by the uncontrolled opening of the transmission sharing terminal, that is, the unrestricted Internet access in the related art.
  • the transmission connection state can be controlled according to the comparison result, thereby avoiding unnecessary increase of the traffic loss, thereby ensuring normal use of the terminal.
  • the terminal provided by the embodiment of the present invention is similar to the foregoing transmission sharing method in that the terminal solves the problem. Therefore, the implementation process and implementation principles of the terminal can refer to the implementation process and implementation principle of the foregoing transmission sharing method. , the repetition will not be repeated.
  • the first obtaining unit 401, the second obtaining unit 402, the first comparing unit 403, the first control unit 404, the second comparing unit 405, the first establishing unit 406, and the first shielding unit 407 may each be Central processing unit (CPU, Central Processing Unit), or digital signal processing (DSP, Digital Signal Processor), or microprocessor (MPU, Micro Processor Unit), or Field Programmable Gate Array (FPGA) to realise.
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • MPU Micro Processor Unit
  • FPGA Field Programmable Gate Array
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the embodiment of the present invention can perform the disconnection or the continuous opening of the transmission connection by comparing the transmission status information and the transmission restriction information, compared with the increase of the traffic cost caused by the unrestricted Internet access of the transmission sharing terminal in the related art.
  • the embodiment of the invention can control the transmission connection state according to the comparison result, avoid unnecessary increase of the flow loss, and thereby ensure the normal use of the terminal.

Landscapes

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

Abstract

Disclosed in an embodiment of the invention is a transmission capacity sharing method. The method comprises: acquiring current transmission capacity state information of at least one terminal sharing transmission capacity thereof; acquiring transmission capacity limitation information of the at least one terminal sharing the transmission capacity thereof; comparing the transmission capacity state information and the transmission capacity limitation information to obtain a comparation result; and controlling, according to the comparison result, a transmission connection state of the at least one terminal sharing the transmission capacity thereof. Also disclosed in the embodiment of the invention are a terminal and a storage medium. The invention can prevent unnecessary data usage, thereby ensuring normal usage of a terminal.

Description

传输共享方法及终端、存储介质Transmission sharing method and terminal, storage medium 技术领域Technical field
本发明涉及共享技术,具体涉及一种传输共享方法及终端、存储介质。The present invention relates to a sharing technology, and in particular, to a transmission sharing method, a terminal, and a storage medium.
背景技术Background technique
随着通信技术的快速发展,终端功能越发多样化,用户对终端的使用需求也日益增多。对终端不同功能的体验导致数据流量耗费的增加。With the rapid development of communication technologies, terminal functions are becoming more diverse, and users' demand for terminal usage is also increasing. The experience of different functions of the terminal leads to an increase in data traffic consumption.
针对能够作为无线保真(WiFi,Wireless Fidelity)热点的终端来说,如果称通过热点进行上网的终端为传输共享终端,那么传输共享终端无限制的上网将会给热点终端带来流量损耗增加的风险。当热点终端采用移动流量进行网络接入时,流量损耗的增加使得流量费用增多,为用户带来了一定的经济损失。另外传输共享终端利用热点进行数据传输也将占用热点终端的数据传输带宽,可能会导致热点终端无法正常使用。由此可见,亟需一种传输共享方法至少能够避免流量损耗的增加,保证热点终端的正常使用。For a terminal that can be used as a wireless Fidelity (WiFi) hotspot, if the terminal that accesses the Internet through the hotspot is a transmission sharing terminal, the unlimited access of the transmission sharing terminal will increase the traffic loss of the hotspot terminal. risk. When a hotspot terminal uses mobile traffic for network access, the increase in traffic loss increases the traffic cost and brings a certain economic loss to the user. In addition, the transmission sharing terminal uses the hotspot for data transmission, which also occupies the data transmission bandwidth of the hotspot terminal, which may cause the hotspot terminal to be unable to be used normally. It can be seen that there is a need for a transmission sharing method to at least avoid an increase in traffic loss and ensure normal use of hotspot terminals.
发明内容Summary of the invention
为解决现有存在的技术问题,本发明实施例提供一种传输共享方法及终端、存储介质,至少能够避免流量损耗的增加,保证终端的正常使用。In order to solve the existing technical problems, the embodiments of the present invention provide a transmission sharing method, a terminal, and a storage medium, which can at least avoid an increase in traffic loss and ensure normal use of the terminal.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供一种传输共享方法,所述方法包括:The embodiment of the invention provides a transmission sharing method, and the method includes:
获取至少一个传输共享终端当前的传输状态信息;Obtaining current transmission status information of at least one transmission sharing terminal;
获取所述至少一个传输共享终端的传输限制信息;Obtaining transmission restriction information of the at least one transmission sharing terminal;
将所述传输状态信息和所述传输限制信息进行比较,得到比较结果; Comparing the transmission status information and the transmission restriction information to obtain a comparison result;
上述方案中,所述传输状态信息至少包括每个传输共享终端占用的信道已消耗的数据流量、各信道的传输速率、所有信道共消耗的数据流量、和所有信道的总传输速率中的一种;In the above solution, the transmission state information includes at least one of data traffic consumed by each channel occupied by the transmission sharing terminal, a transmission rate of each channel, data traffic consumed by all channels, and a total transmission rate of all channels. ;
所述传输限制信息至少包括单条信道最大移动数据流量、单条信道最大传输速率、总传输共享的最大移动数据流量、和总传输共享的最大传输速率中的一种。The transmission restriction information includes at least one of a single channel maximum mobile data traffic, a single channel maximum transmission rate, a total transmission shared maximum mobile data traffic, and a total transmission shared maximum transmission rate.
上述方案中,所述将所述传输状态信息和所述传输限制信息进行比较,得到比较结果,依据所述比较结果,控制所述至少一个传输共享终端的传输连接状态,包括:In the above solution, the comparing the transmission status information and the transmission restriction information to obtain a comparison result, and controlling the transmission connection status of the at least one transmission sharing terminal according to the comparison result, including:
当所述传输状态信息为当前每个传输共享终端占用的信道已消耗的数据流量时,将各信道已消耗的数据流量与各信道中对应信道的最大移动数据流量进行比较,筛选出已消耗的数据流量达到或超出最大移动数据流量的信道,确定所筛选出的信道为目标信道,断开目标信道对应的传输共享终端的传输连接;When the transmission status information is the data traffic that has been consumed by the channel occupied by each transmission sharing terminal, compare the data traffic consumed by each channel with the maximum mobile data traffic of the corresponding channel in each channel, and filter out the consumed data. The channel whose data traffic meets or exceeds the maximum mobile data traffic, determines that the selected channel is the target channel, and disconnects the transmission connection of the transmission sharing terminal corresponding to the target channel;
当所述传输状态信息为各信道的传输速率时,将各信道的当前传输速率与对应信道的最大传输速率进行比较,并筛选出当前传输速率已达到或超出最大传输速率的信道,确定所筛选出的信道为目标信道,断开目标信道对应的传输共享终端的传输连接;When the transmission status information is the transmission rate of each channel, compare the current transmission rate of each channel with the maximum transmission rate of the corresponding channel, and filter out the channel whose current transmission rate has reached or exceeded the maximum transmission rate, and determine the selected channel. The outgoing channel is a target channel, and the transmission connection of the transmission sharing terminal corresponding to the target channel is disconnected;
其中,所述传输连接状态至少包括断开。The transmission connection state includes at least disconnection.
上述方案中,所述将所述传输状态信息和所述传输限制信息进行比较,得到比较结果,依据所述比较结果,控制所述至少一个传输共享终端的传输连接状态,包括:In the above solution, the comparing the transmission status information and the transmission restriction information to obtain a comparison result, and controlling the transmission connection status of the at least one transmission sharing terminal according to the comparison result, including:
当所述传输状态信息为所有信道共消耗的数据流量时,将所述共消耗的数据流量和所述总传输共享的最大移动数据流量进行比较,当所述共消耗的数据流量已达到或超出所述总传输共享的最大移动数据流量时,则控 制每个信道对应的传输共享终端的传输连接断开;Comparing the total consumed data traffic with the maximum mobile data traffic shared by the total transmission when the transmission state information is data traffic consumed by all channels, when the total consumed data traffic has reached or exceeded When the total transmission shares the maximum mobile data traffic, then control The transmission connection of the transmission sharing terminal corresponding to each channel is disconnected;
当所述传输状态信息为所有信道的总传输速率时,将所有信道的总传输速率和所述总传输共享的最大传输速率进行比较,当所述总传输速率已达到或超出所述总传输共享的最大传输速率时,则控制每个信道对应的传输共享终端的传输连接断开;When the transmission status information is the total transmission rate of all channels, comparing the total transmission rate of all channels with the maximum transmission rate shared by the total transmission, when the total transmission rate has reached or exceeded the total transmission sharing At the maximum transmission rate, the transmission connection of the transmission sharing terminal corresponding to each channel is controlled to be disconnected;
其中,所述传输连接状态至少包括断开。The transmission connection state includes at least disconnection.
上述方案中,所述传输状态信息至少包括当前传输共享终端占用的信道的总数量,所述传输限制信息至少包括允许建立的最大信道数量;In the above solution, the transmission status information includes at least a total number of channels occupied by the current transmission sharing terminal, and the transmission restriction information includes at least a maximum number of channels allowed to be established;
当接收到其它终端发起的传输共享连接请求时,比较当前传输共享终端占用的信道的总数量与所允许建立的最大信道数量之间的大小关系,其中所述其它终端为除所述至少一个传输共享终端之外的终端;Comparing the size relationship between the total number of channels occupied by the current transmission sharing terminal and the maximum number of channels allowed to be established, when receiving the transmission sharing connection request initiated by the other terminal, wherein the other terminal is in addition to the at least one transmission a terminal other than the shared terminal;
当所述传输共享终端占用的信道的总数量未达到所允许建立的最大信道数量时,为所述其它终端建立并分配新的信道以建立传输共享连接;When the total number of channels occupied by the transmission sharing terminal does not reach the maximum number of channels allowed to be established, a new channel is established and allocated for the other terminal to establish a transmission shared connection;
当所述传输共享终端占用的信道的总数量达到所允许建立的最大信道数量时,屏蔽所述传输共享连接请求或不应答。When the total number of channels occupied by the transmission sharing terminal reaches the maximum number of channels allowed to be established, the transmission sharing connection request is blocked or not answered.
本发明实施例还提供一种终端,所述终端包括:The embodiment of the invention further provides a terminal, where the terminal includes:
第一获取单元,配置为获取至少一个传输共享终端当前的传输状态信息;a first acquiring unit, configured to acquire current transmission state information of the at least one transmission sharing terminal;
第二获取单元,配置为获取所述至少一个传输共享终端的传输限制信息;a second acquiring unit, configured to acquire transmission restriction information of the at least one transmission sharing terminal;
第一比较单元,配置为将所述传输状态信息和所述传输限制信息进行比较,得到比较结果;a first comparing unit configured to compare the transmission state information and the transmission restriction information to obtain a comparison result;
第一控制单元,配置为依据所述比较结果,控制所述至少一个传输共享终端的传输连接状态。The first control unit is configured to control a transmission connection state of the at least one transmission sharing terminal according to the comparison result.
上述方案中,所述传输状态信息至少包括每个传输共享终端占用的信 道已消耗的数据流量、各信道的传输速率、所有信道共消耗的数据流量、和所有信道的总传输速率中的一种;In the above solution, the transmission status information includes at least a letter occupied by each transmission sharing terminal. One of the consumed data traffic, the transmission rate of each channel, the data traffic consumed by all channels, and the total transmission rate of all channels;
所述传输限制信息至少包括单条信道最大移动数据流量、单条信道最大传输速率、总传输共享的最大移动数据流量、和总传输共享的最大传输速率中的一种。The transmission restriction information includes at least one of a single channel maximum mobile data traffic, a single channel maximum transmission rate, a total transmission shared maximum mobile data traffic, and a total transmission shared maximum transmission rate.
上述方案中,In the above scheme,
当所述传输状态信息为当前每个传输共享终端占用的信道已消耗的数据流量时,所述第一比较单元,配置为将各信道已消耗的数据流量与各信道中对应信道的最大移动数据流量进行比较,筛选出已消耗的数据流量达到或超出最大移动数据流量的信道,确定所筛选出的信道为目标信道;相应的,所述第一控制单元,配置为断开目标信道对应的传输共享终端的传输连接;When the transmission status information is the data traffic that has been consumed by the channel occupied by each of the transmission sharing terminals, the first comparing unit is configured to use the data traffic that has been consumed by each channel and the maximum mobile data of the corresponding channel in each channel. The traffic is compared to filter out the channel whose consumed data traffic meets or exceeds the maximum mobile data traffic, and determines that the selected channel is the target channel; correspondingly, the first control unit is configured to disconnect the transmission corresponding to the target channel. a transmission connection of the shared terminal;
当所述传输状态信息为各信道的传输速率时,所述第一比较单元,配置为将各信道的当前传输速率与对应信道的最大传输速率进行比较,并筛选出当前传输速率已达到或超出最大传输速率的信道,确定所筛选出的信道为目标信道;相应的,所述第一控制单元,配置为断开目标信道对应的传输共享终端的传输连接;When the transmission status information is the transmission rate of each channel, the first comparing unit is configured to compare the current transmission rate of each channel with the maximum transmission rate of the corresponding channel, and filter out that the current transmission rate has reached or exceeded a channel of the maximum transmission rate, determining that the selected channel is the target channel; correspondingly, the first control unit is configured to disconnect the transmission connection of the transmission sharing terminal corresponding to the target channel;
其中,所述传输连接状态至少包括断开。The transmission connection state includes at least disconnection.
上述方案中,In the above scheme,
当所述传输状态信息为所有信道共消耗的数据流量时,所述第一比较单元,配置为将所述共消耗的数据流量和所述总传输共享的最大移动数据流量进行比较,当所述共消耗的数据流量已达到或超出所述总传输共享的最大移动数据流量时,触发第一控制单元控制每个信道对应的传输共享终端的传输连接断开;When the transmission status information is data traffic consumed by all channels, the first comparing unit is configured to compare the total consumed data traffic with the maximum mobile data traffic shared by the total transmission, when When the total consumed data traffic has reached or exceeded the maximum mobile data traffic shared by the total transmission, the first control unit is triggered to control the transmission connection disconnection of the transmission sharing terminal corresponding to each channel;
当所述传输状态信息为所有信道的总传输速率时,所述第一比较单元, 配置为将所有信道的总传输速率和所述总传输共享的最大传输速率进行比较,当所述总传输速率已达到或超出所述总传输共享的最大传输速率时,触发第一控制单元控制每个信道对应的传输共享终端的传输连接断开;When the transmission status information is the total transmission rate of all channels, the first comparing unit, Configuring to compare the total transmission rate of all channels with the maximum transmission rate shared by the total transmission, triggering the first control unit to control each time the total transmission rate has reached or exceeded the maximum transmission rate shared by the total transmission The transmission connection of the transmission sharing terminal corresponding to the channel is disconnected;
其中,所述传输连接状态至少包括断开。The transmission connection state includes at least disconnection.
上述方案中,所述传输状态信息至少包括当前传输共享终端占用的信道的总数量,所述传输限制信息至少包括允许建立的最大信道数量;In the above solution, the transmission status information includes at least a total number of channels occupied by the current transmission sharing terminal, and the transmission restriction information includes at least a maximum number of channels allowed to be established;
所述终端还包括:The terminal further includes:
第二比较单元,配置为当接收到其它终端发起的传输共享连接请求时,比较当前传输共享终端占用的信道的总数量与所允许建立的最大信道数量之间的大小关系,其中所述其它终端为除所述至少一个传输共享终端之外的终端;a second comparing unit configured to: when receiving a transmission sharing connection request initiated by another terminal, compare a size relationship between a total number of channels occupied by the current transmission sharing terminal and a maximum number of channels allowed to be established, wherein the other terminal a terminal other than the at least one transport sharing terminal;
当第二比较单元比较为所述传输共享终端占用的信道的总数量未达到所允许建立的最大信道数量时,触发第一建立单元,否则触发第一屏蔽单元;When the second comparison unit compares that the total number of channels occupied by the transmission sharing terminal does not reach the maximum number of channels allowed to be established, triggering the first establishing unit, otherwise triggering the first shielding unit;
其中,第一建立单元,配置为为所述其它终端建立并分配新的信道以建立传输共享连接;第一屏蔽单元,配置为屏蔽所述传输共享连接请求或不应答。The first establishing unit is configured to establish and allocate a new channel for the other terminal to establish a transmission sharing connection, and the first shielding unit is configured to block the transmission sharing connection request or not.
本发明实施例提供的传输共享方法及终端、存储介质,终端对至少一个传输共享终端当前的传输状态信息和传输限制信息分别进行获取,并对这两个信息进行比较,依据比较结果,控制传输共享终端的传输连接断开或继续开启。其中,通过传输状态信息和传输限制信息的比较结果执行对传输连接的断开或继续开启,与相关技术中由于传输共享终端无限制的上网而导致的流量费用的增多相比,本发明实施例能够依据比较结果控制传输连接状态,避免流量损耗的不必要增加,进而保证终端的正常使用。 According to the transmission sharing method and the terminal and the storage medium provided by the embodiment of the present invention, the terminal respectively acquires the current transmission state information and the transmission restriction information of the at least one transmission sharing terminal, compares the two information, and controls transmission according to the comparison result. The transmission connection of the shared terminal is disconnected or continues to be turned on. Wherein, the disconnection or the continued opening of the transmission connection is performed by the comparison result of the transmission status information and the transmission restriction information, compared with the increase of the traffic cost caused by the unrestricted Internet access of the transmission sharing terminal in the related art, the embodiment of the present invention The transmission connection state can be controlled according to the comparison result to avoid unnecessary increase of the flow loss, thereby ensuring the normal use of the terminal.
附图说明DRAWINGS
图1为本发明提供的传输共享方法第一实施例的实现流程示意图;1 is a schematic flowchart of an implementation process of a first embodiment of a transmission sharing method provided by the present invention;
图2为本发明提供的传输共享方法第二实施例的实现流程示意图;2 is a schematic flowchart of implementing a second embodiment of a transmission sharing method according to the present invention;
图3为本发明实施例提供的一应用场景示意图;FIG. 3 is a schematic diagram of an application scenario according to an embodiment of the present disclosure;
图4为本发明实施例提供的终端的一组成结构示意图;4 is a schematic structural diagram of a component of a terminal according to an embodiment of the present invention;
图5为本发明实施例提供的终端的另一组成结构示意图。FIG. 5 is a schematic structural diagram of another component of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
以下结合附图对本发明的优选实施例进行详细说明,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings.
实施例一Embodiment 1
本发明提供的传输共享方法的第一实施例,应用于一终端中,该终端可以是平板、手机、电脑、路由器、或智能投影仪等可进行数据传输共享的任意一种设备。当两个及以上手机通过路由器接入网络而进行上网时,该路由器可作为前述的终端。当两个及以上手机通过热点手机接入网络而进行上网时,前述终端可以作为热点手机,也可以作为传输共享手机中的任意一个手机。即本领域人员应该理解,本实施例中的终端不仅局限于具有热点功能的终端,可以是任意能够和其他终端采用数据传输共享机制进行数据传输的终端。其中本领域人员还应该明白,在实际应用中采用数据传输共享机制除了WiFi热点连接之外,还可以是其它能够想到的方式如至少两个手机通过接入同一路由器连接的网络进行上网。The first embodiment of the transmission sharing method provided by the present invention is applied to a terminal, and the terminal may be any device capable of data transmission sharing, such as a tablet, a mobile phone, a computer, a router, or a smart projector. When two or more mobile phones access the Internet through a router to access the network, the router can serve as the aforementioned terminal. When two or more mobile phones access the Internet through a hot-spot mobile phone, the aforementioned terminal can be used as a hot-spot mobile phone or as a mobile phone in any of the shared mobile phones. That is, the person in the art should understand that the terminal in this embodiment is not limited to a terminal having a hotspot function, and may be any terminal that can perform data transmission with other terminals by using a data transmission sharing mechanism. Those skilled in the art should also understand that in the actual application, the data transmission sharing mechanism may be other than the WiFi hotspot connection, such as at least two mobile phones accessing the network connected by the same router to access the Internet.
图1为本发明提供的传输共享方法第一实施例的实现流程示意图;如图1所示,所述方法包括:FIG. 1 is a schematic flowchart of a first embodiment of a transmission sharing method according to the present invention; as shown in FIG. 1 , the method includes:
步骤101:获取至少一个传输共享终端当前的传输状态信息;Step 101: Acquire current transmission state information of at least one transmission sharing terminal.
步骤101的执行主体为终端。在终端与所述至少一个传输共享终端采 用数据传输共享机制时,当该终端监测到存在有新的请求与应答时,终端读取至少一个传输共享终端当前的传输状态信息。The execution body of step 101 is a terminal. Sharing at the terminal with the at least one transmission sharing terminal When the data transmission sharing mechanism is used, when the terminal detects that there is a new request and response, the terminal reads the current transmission status information of at least one transmission sharing terminal.
其中,终端每进行一次网页浏览、视频观看等上网操作时将会向服务器发起请求,服务器接收到这一请求后会向终端反馈应答,以向终端展示其要浏览的网页、要观看的视频等。基于此,可以终端对至少一个传输共享终端的上网操作进行监测,当监测到传输共享终端存在有新的上网操作(新的请求与应答)时,对此时的传输共享终端的传输状态信息进行读取。也可以,在终端中为传输状态信息的获取设置一定的计时时间如8小时、1天等,当计时时间结束时,触发终端对此时的传输共享终端的传输状态信息进行读取。The terminal will initiate a request to the server every time a web browsing operation such as web browsing or video viewing is performed, and after receiving the request, the server will feedback the response to the terminal to display the webpage to be viewed, the video to be watched, etc. . Based on this, the terminal can monitor the online operation of the at least one transmission sharing terminal. When it is detected that there is a new online operation (new request and response) in the transmission sharing terminal, the transmission status information of the transmission sharing terminal is performed at this time. Read. Alternatively, in the terminal, a certain timing time, such as 8 hours, 1 day, etc., is set for the acquisition of the transmission status information, and when the timing time ends, the trigger terminal reads the transmission status information of the transmission sharing terminal at this time.
所述传输状态信息至少包括每个传输共享终端占用的信道已消耗的数据流量、各信道的传输速率、所有信道共消耗的数据流量、所有信道的总传输速率中的至少一种。The transmission status information includes at least one of data traffic consumed by each channel shared by the transmission sharing terminal, a transmission rate of each channel, data traffic consumed by all channels, and a total transmission rate of all channels.
步骤102:获取所述至少一个传输共享终端的传输限制信息;Step 102: Acquire transmission restriction information of the at least one transmission sharing terminal.
步骤102的执行主体为终端。终端读取为执行数据传输共享机制而设置的传输限制信息。The execution body of step 102 is a terminal. The terminal reads the transmission restriction information set to perform the data transmission sharing mechanism.
其中,所述传输限制信息在建立终端与至少一个传输共享终端之间的数据传输共享机制时而设置,主要设置的内容包括但不仅限制于:允许建立的最大信道数量、单条信道最大移动数据流量、单条信道最大传输速率、总传输共享的最大移动数据流量、总传输共享的最大传输速率。在实际应用中,存在有这样一种上网情况:对终端采用特定连接如采用特定浏览器进行上网的操作进行限制如对终端采用QQ浏览器进行上网时使用的流量不得大于10M(兆),针对这种情况,所设置的传输限制信息还可以包括对于特定连接的最大移动数据流量限制项、和对于特定连接的最大传输速率限制项。其中,在传输限制信息中的各数据流量的取值可以是一个固定值, 也可以是一个基于当前剩余数据流量的比例值。各传输速率的取值可以是一个固定值,也可以是一个基于终端既有传输速率的比例值。The transmission restriction information is set when establishing a data transmission sharing mechanism between the terminal and the at least one transmission sharing terminal, and the main settings include, but are not limited to, the maximum number of channels allowed to be established, the maximum mobile data traffic of a single channel, The maximum transmission rate of a single channel, the maximum mobile data traffic shared by the total transmission, and the maximum transmission rate shared by the total transmission. In practical applications, there is a kind of Internet access situation: restrictions on the use of a specific connection for the terminal, such as using a specific browser to access the Internet, such as when the terminal uses the QQ browser to access the Internet, the traffic used may not be greater than 10M (megabytes), In this case, the set transmission restriction information may further include a maximum mobile data traffic restriction term for a specific connection, and a maximum transmission rate restriction term for a specific connection. The value of each data traffic in the transmission restriction information may be a fixed value. It can also be a scale value based on the current remaining data traffic. The value of each transmission rate may be a fixed value, or may be a ratio based on the transmission rate of the terminal.
步骤103:将所述传输状态信息和所述传输限制信息进行比较,得到比较结果;Step 103: Compare the transmission status information and the transmission restriction information to obtain a comparison result.
步骤103的执行主体为终端。终端将读取的传输共享终端的当前传输状态信息与传输限制信息进行对应比较,得到比较结果。The execution body of step 103 is a terminal. The terminal compares the current transmission status information of the read transmission sharing terminal with the transmission restriction information to obtain a comparison result.
步骤104:依据所述比较结果,控制所述至少一个传输共享终端的传输连接状态。Step 104: Control, according to the comparison result, a transmission connection state of the at least one transmission sharing terminal.
步骤104的执行主体为终端。所述传输连接状态为传输共享终端的传输连接断开(关闭)或使能(继续开启)。终端依据得到的比较结果,控制传输共享终端的传输连接继续开启或控制传输共享终端的传输连接断开。The execution body of step 104 is a terminal. The transmission connection state is that the transmission connection of the transmission sharing terminal is disconnected (turned off) or enabled (continued on). The terminal controls the transmission connection of the transmission sharing terminal to continue to open or control the transmission connection of the transmission sharing terminal to be disconnected according to the obtained comparison result.
本实施例中,终端对至少一个传输共享终端当前的传输状态信息和传输限制信息分别进行获取,并对这两个信息进行比较,依据比较结果,控制传输共享终端的传输连接断开或继续开启。其中,通过传输状态信息和传输限制信息的比较结果执行对传输连接断开或继续开启,与相关技术中由于传输共享终端的无节制开启即无限制的上网而导致的流量费用的增多相比,本发明实施例能够依据比较结果控制传输连接状态,避免流量损耗的不必要增加,进而保证本终端的正常使用。In this embodiment, the terminal separately acquires the current transmission state information and the transmission restriction information of the at least one transmission sharing terminal, compares the two information, and controls the transmission connection of the transmission sharing terminal to be disconnected or continued to be opened according to the comparison result. . Wherein, the transmission connection is disconnected or continues to be turned on by the comparison result of the transmission status information and the transmission restriction information, compared with the related art in that the traffic cost due to the uncontrolled opening of the transmission sharing terminal, that is, the unrestricted Internet access, is increased. The embodiment of the invention can control the transmission connection state according to the comparison result, avoid unnecessary increase of the traffic loss, and further ensure the normal use of the terminal.
实施例二Embodiment 2
本发明提供的传输共享方法的第二实施例,应用于一终端中,该终端可以是平板、手机、电脑、路由器、或智能投影仪等可进行数据传输共享的任意一种设备。当两个及以上手机通过路由器接入网络而进行上网时,该路由器可作为前述的终端。当两个及以上手机通过热点手机接入网络而进行上网时,前述终端可以作为热点手机,也可以作为传输共享手机中的任意一个手机。即本领域人员应该理解,本实施例中的终端不仅局限于具 有热点功能的终端,可以是任意能够和其他终端采用数据传输共享机制进行数据传输的终端。其中本领域人员还应该明白,在实际应用中采用数据传输共享机制除了WiFi热点连接之外,还可以是其它能够想到的方式如至少两个手机通过接入同一路由器连接的网络进行上网。The second embodiment of the transmission sharing method provided by the present invention is applied to a terminal, and the terminal may be any device capable of data transmission sharing, such as a tablet, a mobile phone, a computer, a router, or a smart projector. When two or more mobile phones access the Internet through a router to access the network, the router can serve as the aforementioned terminal. When two or more mobile phones access the Internet through a hot-spot mobile phone, the aforementioned terminal can be used as a hot-spot mobile phone or as a mobile phone in any of the shared mobile phones. That is, those skilled in the art should understand that the terminal in this embodiment is not limited to A terminal having a hotspot function may be any terminal that can transmit data using a data transmission sharing mechanism with other terminals. Those skilled in the art should also understand that in the actual application, the data transmission sharing mechanism may be other than the WiFi hotspot connection, such as at least two mobile phones accessing the network connected by the same router to access the Internet.
图2为本发明提供的传输共享方法第二实施例的实现流程示意图;如图2所示,所述方法包括:2 is a schematic flowchart of a second embodiment of a transmission sharing method provided by the present invention; as shown in FIG. 2, the method includes:
步骤201:获取至少一个传输共享终端当前的传输状态信息;Step 201: Acquire current transmission state information of at least one transmission sharing terminal.
步骤201的执行主体为终端。在终端与所述至少一个传输共享终端采用数据传输共享机制时,当该终端监测到存在有新的请求与应答时,终端读取至少一个传输共享终端当前的传输状态信息。The execution body of step 201 is a terminal. When the terminal and the at least one transmission sharing terminal adopt a data transmission sharing mechanism, when the terminal detects that there is a new request and response, the terminal reads the current transmission state information of the at least one transmission sharing terminal.
其中,终端每进行一次网页浏览、视频观看等上网操作时将会向服务器发起请求,服务器接收到这一请求后会向终端反馈应答,以向终端展示其要浏览的网页、要观看的视频等。基于此,可以终端对至少一个传输共享终端的上网操作进行监测,当监测到传输共享终端存在有新的上网操作(新的请求与应答)时,对此时的传输共享终端的传输状态信息进行读取。也可以,在终端中为传输状态信息的获取设置一定的计时时间如8小时、1天等,当计时时间结束时,触发终端对此时的传输共享终端的传输状态信息进行读取。The terminal will initiate a request to the server every time a web browsing operation such as web browsing or video viewing is performed, and after receiving the request, the server will feedback the response to the terminal to display the webpage to be viewed, the video to be watched, etc. . Based on this, the terminal can monitor the online operation of the at least one transmission sharing terminal. When it is detected that there is a new online operation (new request and response) in the transmission sharing terminal, the transmission status information of the transmission sharing terminal is performed at this time. Read. Alternatively, in the terminal, a certain timing time, such as 8 hours, 1 day, etc., is set for the acquisition of the transmission status information, and when the timing time ends, the trigger terminal reads the transmission status information of the transmission sharing terminal at this time.
所述传输状态信息至少包括每个传输共享终端占用的信道已消耗的数据流量、各信道的传输速率、所有信道共消耗的数据流量、所有信道的总传输速率中的至少一种。The transmission status information includes at least one of data traffic consumed by each channel shared by the transmission sharing terminal, a transmission rate of each channel, data traffic consumed by all channels, and a total transmission rate of all channels.
步骤202:获取所述至少一个传输共享终端的传输限制信息;Step 202: Acquire transmission restriction information of the at least one transmission sharing terminal.
步骤202的执行主体为终端。终端读取为执行数据传输共享机制而设置的传输限制信息。The execution body of step 202 is a terminal. The terminal reads the transmission restriction information set to perform the data transmission sharing mechanism.
其中,所述传输限制信息在建立终端与至少一个传输共享终端之间的 数据传输共享机制时而设置,主要设置的内容包括但不仅限制于:允许建立的最大信道数量、单条信道最大移动数据流量、单条信道最大传输速率、总传输共享的最大移动数据流量、总传输共享的最大传输速率。在实际应用中,存在有这样一种上网情况:对终端采用特定连接如采用特定浏览器进行上网的操作进行限制如对终端采用QQ浏览器进行上网时使用的流量不得大于10M(兆),针对这种情况,所设置的传输限制信息还可以包括对于特定连接的最大移动数据流量限制项、和对于特定连接的最大传输速率限制项。The transmission restriction information is between the establishment terminal and the at least one transmission sharing terminal. The data transmission sharing mechanism is sometimes set. The main settings include but are not limited to: the maximum number of channels allowed to be established, the maximum mobile data traffic of a single channel, the maximum transmission rate of a single channel, the maximum mobile data traffic shared by the total transmission, and the total transmission sharing. Maximum transfer rate. In practical applications, there is a kind of Internet access situation: restrictions on the use of a specific connection for the terminal, such as using a specific browser to access the Internet, such as when the terminal uses the QQ browser to access the Internet, the traffic used may not be greater than 10M (megabytes), In this case, the set transmission restriction information may further include a maximum mobile data traffic restriction term for a specific connection, and a maximum transmission rate restriction term for a specific connection.
步骤203a:当所述传输状态信息为当前每个传输共享终端占用的信道已消耗的数据流量时,将各信道已消耗的数据流量与各信道中对应信道的最大移动数据流量进行比较,筛选出已消耗的数据流量达到或超出最大移动数据流量的信道,确定所筛选出的信道为目标信道,断开目标信道对应的传输共享终端的传输连接; Step 203a: When the transmission status information is data traffic that has been consumed by the channel occupied by each transmission sharing terminal, compare the data traffic consumed by each channel with the maximum mobile data traffic of the corresponding channel in each channel, and filter out The channel whose consumed data traffic meets or exceeds the maximum mobile data traffic, determines that the selected channel is the target channel, and disconnects the transmission connection of the transmission sharing terminal corresponding to the target channel;
这里,本终端(步骤201~203d中的执行终端)对各个信道消耗的数据流量获取可以采用如下方法:本终端对信道上的已消耗的数据流量进行监控并记录。当然,本终端对各个信道消耗的数据流量获取还可以采用如下方法:确定本终端的网络传输模式及当前各信道的剩余数据流量,并依据该网络传输模式及当前各信道的剩余数据流量,统计各个信道消耗的数据流量。所述网络传输模式包括但不仅限于采用移动数据流量、WiFi、WiFi热点形式进行传输。以采用移动数据流量形式进行数据共享传输为例,本终端可知自身具有的流量值是多少,并在设置传输限制信息时,除了设置前述内容之外,还需要设置本终端将自身具有的流量的多少如70%流量分配给传输共享终端使用及设置各传输共享终端在对应信道上可享用的流量值,并在传输共享终端进行数据传输时对各信道的剩余数据流量进行监测。本终端依据将各信道上可享用的流量值与剩余数据流量进行对应相减操 作,得到各信道已消耗的数据流量。对于采用WiFI形式进行传输的网络传输模式来说,其剩余数据流量设置为无穷大。这里,将本终端的部分流量分配给传输共享终端使用,剩下的部分流量用于自身使用,如此,传输共享终端无需对本终端的数据带宽进行占用,保证了本终端的正常使用。Here, the current terminal (the execution terminal in steps 201 to 203d) can acquire the data traffic consumed by each channel by using the following method: the terminal monitors and records the consumed data traffic on the channel. Certainly, the terminal may also adopt the following method for acquiring data traffic consumed by each channel: determining a network transmission mode of the terminal and remaining data traffic of each channel, and performing statistics according to the network transmission mode and current data traffic of each channel. The data traffic consumed by each channel. The network transmission mode includes, but is not limited to, transmission in the form of mobile data traffic, WiFi, and WiFi hotspot. Taking the data sharing transmission in the form of mobile data traffic as an example, the terminal knows what the traffic value it has, and when setting the transmission restriction information, in addition to setting the foregoing content, it is also necessary to set the traffic that the terminal has its own. How much, for example, 70% of the traffic is allocated to the transmission sharing terminal and the traffic value that each transmission sharing terminal can enjoy on the corresponding channel is set, and the remaining data traffic of each channel is monitored when the transmission sharing terminal performs data transmission. The terminal performs corresponding subtraction operation according to the flow value that can be enjoyed on each channel and the remaining data traffic. To get the data traffic that has been consumed by each channel. For network transmission modes that use WiFI for transmission, the remaining data traffic is set to infinity. Here, part of the traffic of the terminal is allocated to the transmission sharing terminal, and the remaining part of the traffic is used for its own use. Therefore, the transmission sharing terminal does not need to occupy the data bandwidth of the terminal, thereby ensuring the normal use of the terminal.
步骤203b:当所述传输状态信息为各信道的传输速率时,将各信道的当前传输速率与对应信道的最大传输速率进行比较,并筛选出当前传输速率已达到或超出最大传输速率的信道,确定所筛选出的信道为目标信道,断开目标信道对应的传输共享终端的传输连接; Step 203b: When the transmission status information is the transmission rate of each channel, compare the current transmission rate of each channel with the maximum transmission rate of the corresponding channel, and filter out the channel whose current transmission rate has reached or exceeded the maximum transmission rate. Determining that the selected channel is a target channel, and disconnecting a transmission connection of the transmission sharing terminal corresponding to the target channel;
步骤203c:当所述传输状态信息为所有信道共消耗的数据流量时,将所述共消耗的数据流量和所述总传输共享的最大移动数据流量进行比较,当所述共消耗的数据流量已达到或超出所述总传输共享的最大移动数据流量时,则控制每个信道对应的传输共享终端的传输连接断开; Step 203c: When the transmission status information is data traffic consumed by all channels, comparing the total consumed data traffic with the maximum mobile data traffic shared by the total transmission, when the total consumed data traffic has been When the maximum mobile data traffic shared by the total transmission is reached or exceeded, the transmission connection of the transmission sharing terminal corresponding to each channel is controlled to be disconnected;
这里,各个信道消耗的数据流量之和为所有信道共消耗的数据流量。Here, the sum of the data traffic consumed by each channel is the data traffic consumed by all channels.
步骤203d:当所述传输状态信息为所有信道的总传输速率时,将所有信道的总传输速率和所述总传输共享的最大传输速率进行比较,当所述总传输速率已达到或超出所述总传输共享的最大传输速率时,则控制每个信道对应的传输共享终端的传输连接断开。 Step 203d: When the transmission status information is the total transmission rate of all channels, compare the total transmission rate of all channels with the maximum transmission rate shared by the total transmission, when the total transmission rate has reached or exceeded the When the total transmission rate of the total transmission is shared, the transmission connection of the transmission sharing terminal corresponding to each channel is controlled to be disconnected.
这里,各个信道的传输速率之和为所有信道的总传输速率。Here, the sum of the transmission rates of the respective channels is the total transmission rate of all the channels.
步骤203a~203d的执行主体为终端。且步骤203a~203d描述的在获取的传输状态信息具体是哪个信息时所需要执行的方案,并无严格的先后顺序,还可以同时执行。步骤203a~203d可作为本实施例中将所述传输状态信息和所述传输限制信息进行比较,得到比较结果,依据所述比较结果,控制所述至少一个传输共享终端的传输连接状态的进一步阐述。The execution subject of steps 203a to 203d is a terminal. The schemes that need to be executed when the acquired transmission state information is specifically described in steps 203a to 203d are not strictly sequential, and may be simultaneously executed. Steps 203a to 203d may be used to compare the transmission state information and the transmission restriction information in the embodiment to obtain a comparison result, and further describe, according to the comparison result, a transmission connection state of the at least one transmission sharing terminal. .
在实际应用中,由于获取的传输状态信息的内容可以为一个单一项如仅为各个信道消耗的数据流量或仅为当前传输速率,还可以为其中任意两 项或两项以上的组合,所以可以步骤203a~203d这四个步骤进行单独执行,也可以同时执行这四个步骤中的任意两个或两个以上,依据所获取的传输状态信息内容的数量而定。In practical applications, the content of the acquired transmission status information may be a single item, such as data traffic consumed only for each channel or only the current transmission rate, and may also be any two of them. Item or a combination of two or more, so that the four steps of steps 203a to 203d may be performed separately, or any two or more of the four steps may be simultaneously performed, depending on the acquired content of the transmission status information. And set.
本领域技术人员应该而知,在步骤203a、203b中为关闭部分传输共享终端的传输连接;在步骤203c、203d中断开每个信道对应的传输共享终端的传输连接即为关闭整个共享传输连接。It should be understood by those skilled in the art that in step 203a, 203b, the transmission connection of the partial transmission shared terminal is closed; in steps 203c, 203d, the transmission connection of the transmission sharing terminal corresponding to each channel is disconnected, that is, the entire shared transmission connection is closed. .
由于所述传输状态信息还可以包括当前传输共享终端占用的信道的总数量,所述传输限制信息还可以包括允许建立的最大信道数量,所以在本发明一个优选的实施例中,所述方法还包括:Since the transmission status information may further include the total number of channels occupied by the current transmission sharing terminal, the transmission restriction information may further include a maximum number of channels allowed to be established, so in a preferred embodiment of the present invention, the method further include:
当接收到其它终端发起的传输共享连接请求时,比较当前传输共享终端占用的信道的总数量与所允许建立的最大信道数量之间的大小关系,其中所述其它终端为除所述至少一个传输共享终端之外的终端;当所述传输共享终端占用的信道的总数量未达到所允许建立的最大信道数量时,为所述其它终端建立并分配新的信道以建立传输共享连接;当所述传输共享终端占用的信道的总数量达到所允许建立的最大信道数量时,屏蔽所述传输共享连接请求或不应答。Comparing the size relationship between the total number of channels occupied by the current transmission sharing terminal and the maximum number of channels allowed to be established, when receiving the transmission sharing connection request initiated by the other terminal, wherein the other terminal is in addition to the at least one transmission a terminal other than the shared terminal; when the total number of channels occupied by the transport shared terminal does not reach the maximum number of channels allowed to be established, a new channel is established and allocated for the other terminal to establish a transport shared connection; When the total number of channels occupied by the transmission sharing terminal reaches the maximum number of channels allowed to be established, the transmission sharing connection request is blocked or not answered.
在实际应用中,当有除传输共享终端之外的其它终端也想利用传输共享终端与本终端建立的数据传输共享机制进行上网时,该其它终端将向本终端发起传输共享连接请求,本终端比较当前传输共享终端占用的信道的总数量是否达到了所允许建立的最大信道数量,如果没有达到,则建立并分配一个新的信道给发起传输共享连接请求的所述其它终端,否则屏蔽述传输共享连接请求或不应答,以禁止所述其它终端参与数据的共享传输。In an actual application, when another terminal other than the transmission sharing terminal also wants to use the data transmission sharing mechanism established by the transmission sharing terminal and the terminal to access the Internet, the other terminal will initiate a transmission sharing connection request to the terminal, and the terminal Comparing whether the total number of channels occupied by the current transmission sharing terminal reaches the maximum number of channels allowed to be established, and if not, establishing and allocating a new channel to the other terminal that initiates the transmission sharing connection request, otherwise shielding transmission The connection request is shared or not answered to prohibit the other terminal from participating in the shared transmission of data.
本终端可以是自身不能被用户操作的终端如路由器,也可以是自身能被用户操作的终端如热点手机,基于此,所述方法还包括:本终端依据当前至少一个传输共享终端的传输情况,对传输限制信息进行重新设置,以 保证各信道传输带宽的及时调配,保证各传输共享终端的数据传输任务正常完成。针对本终端是自身能被用户操作的终端这一情况,对传输限制信息进行重新设置也尽量保证了本终端的正常使用。The terminal may be a terminal that cannot be operated by the user, such as a router, or a terminal that can be operated by the user, such as a hotspot mobile phone. The method further includes: the terminal according to the current transmission status of at least one transmission sharing terminal. Reset the transfer restriction information to Ensure the timely deployment of the transmission bandwidth of each channel, and ensure that the data transmission tasks of each transmission sharing terminal are completed normally. In the case that the terminal is a terminal that can be operated by the user itself, the transmission restriction information is reset and the normal use of the terminal is ensured as much as possible.
这里,举个例子,当经过步骤201~步骤203d得到在4个传输共享终端中有1个传输共享终端的传输连接状态被关闭后,更新所允许建立的最大信道数量这一项从原来的4个变成3个,将原本分配给传输连接状态被断开/关闭的传输共享终端的流量平均分配给其它3个没有被断开/关闭的传输共享终端,这样便至少能够保证其它3个传输共享终端的数据传输任务可正常完成。Here, for example, after step 201 to step 203d, after the transmission connection state of one of the four transmission sharing terminals is turned off, the maximum number of channels allowed to be established is updated from the original 4 It becomes three, and the traffic originally allocated to the transmission sharing terminal whose transmission connection state is disconnected/closed is equally distributed to the other three transmission sharing terminals that are not disconnected/closed, so that at least the other three transmissions can be guaranteed. The data transfer task of the shared terminal can be completed normally.
本实施例中,终端对至少一个传输共享终端当前的传输状态信息和传输限制信息分别进行获取,其中传输状态信息至少包括每个传输共享终端占用的信道已消耗的数据流量、各信道的传输速率、所有信道共消耗的数据流量、和所有信道的总传输速率中的一种,传输限制信息至少包括单条信道最大移动数据流量、单条信道最大传输速率、总传输共享的最大移动数据流量、和总传输共享的最大传输速率中的一种,将获取的传输状态信息与对应的传输限制信息进行比较,并依据比较结果控制部分传输共享终端的传输连接断开或继续开启,或控制整个共享传输连接关闭。与相关技术中由于传输共享终端的无节制开启即无限制的上网而导致的流量费用的增多相比,本发明实施例能够依据传输状态信息和传输限制信息的对应比较控制部分传输共享终端的传输连接状态或整个共享传输连接,避免流量损耗的不必要增加,保证本终端的正常使用。In this embodiment, the terminal acquires the current transmission state information and the transmission restriction information of the at least one transmission sharing terminal, where the transmission state information includes at least the data traffic consumed by the channel occupied by each transmission sharing terminal, and the transmission rate of each channel. And one of the total data transmission rate of all channels and the total transmission rate of all channels, the transmission restriction information includes at least a single channel maximum mobile data traffic, a single channel maximum transmission rate, a total transmission shared maximum mobile data traffic, and a total Transmitting one of the maximum transmission rates of the shared transmission, comparing the obtained transmission status information with the corresponding transmission restriction information, and controlling the transmission connection of the transmission sharing terminal to be disconnected or continued to be turned on according to the comparison result, or controlling the entire shared transmission connection shut down. Compared with the related art, the transmission of the shared terminal can be transmitted according to the corresponding comparison control part of the transmission status information and the transmission restriction information, compared to the increase of the traffic cost caused by the uncontrolled opening of the transmission sharing terminal, that is, the unrestricted Internet access. Connection status or the entire shared transmission connection, to avoid unnecessary increase in traffic loss, to ensure the normal use of the terminal.
下面结合图3所示的应用场景对本发明实施例加以说明。The embodiments of the present invention are described below in conjunction with the application scenario shown in FIG.
在图3中,终端1(本终端)为WiFi热点手机,手机2~4为传输共享终端,终端1与手机2~4采用数据传输共享机制进行上网操作。In FIG. 3, the terminal 1 (the terminal) is a WiFi hotspot mobile phone, the mobile phones 2 to 4 are transmission sharing terminals, and the terminal 1 and the mobile phones 2 to 4 use a data transmission sharing mechanism to perform an online operation.
在终端1与其它手机建立数据传输共享机制时,在终端1中对传输限 制信息进行设置,例如设置允许建立的最大信道数量、单条信道最大移动数据流量、单条信道最大传输速率、总传输共享的最大移动数据流量和总传输共享的最大传输速率。终端1保存所设置的传输限制信息,并对手机2~4的上网操作进行监控,当存在有新的上网操作时即信道中出现有新的请求与应答时,对此时手机2~4的传输状态信息进行读取,如读取手机2~4每个手机占用的信道已消耗的数据流量、读取各信道当前的传输速率。其中,在手机2~4执行上网操作的过程中,终端1对各信道上已消耗的数据流量进行实时监控并将监控到的信息记录下来,等待终端1的读取。When the terminal 1 establishes a data transmission sharing mechanism with other mobile phones, the transmission limit is set in the terminal 1. The information is set, for example, the maximum number of channels allowed to be established, the maximum mobile data traffic for a single channel, the maximum transmission rate for a single channel, the maximum mobile data traffic for total transmission sharing, and the maximum transmission rate for total transmission sharing. The terminal 1 saves the set transmission restriction information, and monitors the Internet access operations of the mobile phones 2 to 4. When there is a new online operation, when there is a new request and response in the channel, the mobile phone 2 to 4 The transmission status information is read, for example, reading the data traffic consumed by the channels occupied by each mobile phone of the mobile phones 2 to 4, and reading the current transmission rate of each channel. In the process of performing the online operation on the mobile phones 2 to 4, the terminal 1 performs real-time monitoring on the data traffic consumed on each channel and records the monitored information, and waits for the reading of the terminal 1.
如果终端1读取的传输状态信息仅是各信道(手机2~4所占的信道依次为信道2~信道4)已消耗的数据流量,将信道2~4中各信道已消耗的数据流量与对应信道的最大移动数据流量进行大小的比较,如果发现有信道已消耗的数据流量达到或超出对应的最大移动数据流量,那么确定这样的信道为目标信道,假如目标信道为信道2,那么终端1断开(关闭)手机2的传输连接。If the transmission status information read by the terminal 1 is only the data traffic consumed by each channel (the channels occupied by the mobile phones 2 to 4 are channel 2 to channel 4 in sequence), the data traffic consumed by each channel in channels 2 to 4 is The maximum mobile data traffic of the corresponding channel is compared by the size. If it is found that the data traffic consumed by the channel reaches or exceeds the corresponding maximum mobile data traffic, then the determined channel is the target channel, and if the target channel is channel 2, then the terminal 1 Disconnect (close) the transmission connection of the phone 2.
如果终端1读取的传输状态信息仅是各信道当前的传输速率,那么将信道2~4中各信道当前的传输速率与对应信道的最大传输速率进行大小的比较,如果发现有信道的当前传输速率已达到或超出最大传输速率,那么确定这样的信道为目标信道,假如目标信道为信道4,那么终端1断开手机4的传输连接。If the transmission status information read by the terminal 1 is only the current transmission rate of each channel, the current transmission rate of each channel in channels 2 to 4 is compared with the maximum transmission rate of the corresponding channel, and if the current transmission of the channel is found. If the rate has reached or exceeded the maximum transmission rate, then it is determined that such a channel is the target channel, and if the target channel is channel 4, the terminal 1 disconnects the transmission connection of the handset 4.
当然,也可以终端1读取的传输状态信息仅是所有信道共消耗的数据流量或总传输速率,与前述内容类似此处不做赘述。Of course, the transmission status information read by the terminal 1 is only the data traffic or the total transmission rate consumed by all the channels, which is similar to the foregoing, and is not described herein.
上述内容中终端1读取的传输状态信息仅是其中的一项内容,如果是两项及以上的内容,那么需要同时判断这两项及以上内容与对应传输限制信息的大小关系,并依据这些大小关系决定哪些传输共享终端的传输连接的关闭。举个例子,如果终端1读取的传输状态信息是各信道已消耗的数 据流量及各信道当前的传输速率这两项内容,那么将信道2~4中各信道已消耗的数据流量与对应信道的最大移动数据流量进行大小的比较,同时将各信道当前的传输速率与对应信道的最大传输速率进行大小的比较。以信道2的比较为例,如果比较为信道2已消耗的数据流量达到为信道2设置的最大移动数据流量且信道2当前的传输速率未达到为信道2设置的最大传输速率时,终端1对关闭手机2的传输连接,禁止手机2继续使用数据传输共享机制进行上网。如果比较为信道2已消耗的数据流量未达到为信道2设置的最大移动数据流量且信道2当前的传输速率达到为信道2设置的最大传输速率时,终端1断开(关闭)手机2的传输连接,禁止手机2继续使用数据传输共享机制进行上网。如果比较为信道2已消耗的数据流量达到为信道2设置的最大移动数据流量且信道2当前的传输速率也达到为信道2设置的最大传输速率时,终端1断开(关闭)手机2的传输连接,禁止手机2继续使用数据传输共享机制进行上网。如果比较为信道2已消耗的数据流量未达到为信道2设置的最大移动数据流量且信道2当前的传输速率也未达到为信道2设置的最大传输速率时,继续开启手机2的传输连接,令手机2继续使用数据传输共享机制进行上网。本领域人员应该明白,如果经过前述两项内容的比较发现所有传输共享终端的传输连接都被关闭,那么意味着整个共享传输连接被关闭。The transmission status information read by the terminal 1 in the above content is only one of the contents. If it is two or more contents, it is necessary to simultaneously determine the size relationship between the two or more contents and the corresponding transmission restriction information, and according to these The size relationship determines which transport sharing terminal's transport connection is closed. For example, if the transmission status information read by the terminal 1 is the number of channels consumed. According to the traffic and the current transmission rate of each channel, the data traffic consumed by each channel in channels 2 to 4 is compared with the maximum mobile data traffic of the corresponding channel, and the current transmission rate of each channel is The size is compared with the maximum transmission rate of the corresponding channel. Taking the comparison of channel 2 as an example, if the data traffic that has been consumed for channel 2 reaches the maximum mobile data traffic set for channel 2 and the current transmission rate of channel 2 does not reach the maximum transmission rate set for channel 2, terminal 1 pairs Turn off the transmission connection of the mobile phone 2, and prohibit the mobile phone 2 from continuing to use the data transmission sharing mechanism to access the Internet. If the data traffic that has been consumed for channel 2 does not reach the maximum mobile data traffic set for channel 2 and the current transmission rate of channel 2 reaches the maximum transmission rate set for channel 2, terminal 1 disconnects (turns off) the transmission of handset 2. Connect, prohibit mobile phone 2 from continuing to use the data transmission sharing mechanism to access the Internet. If the data traffic that has been consumed for channel 2 reaches the maximum mobile data traffic set for channel 2 and the current transmission rate of channel 2 also reaches the maximum transmission rate set for channel 2, terminal 1 disconnects (turns off) the transmission of handset 2. Connect, prohibit mobile phone 2 from continuing to use the data transmission sharing mechanism to access the Internet. If the data traffic that has been consumed for channel 2 does not reach the maximum mobile data traffic set for channel 2 and the current transmission rate of channel 2 does not reach the maximum transmission rate set for channel 2, continue to open the transmission connection of handset 2, Mobile 2 continues to use the data transfer sharing mechanism to access the Internet. Those skilled in the art should understand that if the transmission connection of all the transmission sharing terminals is turned off after comparison of the foregoing two contents, it means that the entire shared transmission connection is closed.
由此可见,本实施例中,本终端将获取的传输状态信息与对应的传输限制信息进行比较,并依据比较结果控制部分传输共享终端的传输连接关闭或继续开启,或控制整个共享传输连接关闭。与相关技术中由于传输共享终端的无节制开启即无限制的上网而导致的流量费用的增多相比,本发明实施例能够依据传输状态信息和传输限制信息的对应比较控制部分传输共享终端的传输连接状态或整个共享传输连接,避免流量损耗的不必要增加,保证本终端的正常使用。 Therefore, in this embodiment, the terminal compares the acquired transmission state information with the corresponding transmission restriction information, and controls the transmission connection of the transmission sharing terminal to be closed or continued to be turned on according to the comparison result, or controls the entire shared transmission connection to be closed. . Compared with the related art, the transmission of the shared terminal can be transmitted according to the corresponding comparison control part of the transmission status information and the transmission restriction information, compared to the increase of the traffic cost caused by the uncontrolled opening of the transmission sharing terminal, that is, the unrestricted Internet access. Connection status or the entire shared transmission connection, to avoid unnecessary increase in traffic loss, to ensure the normal use of the terminal.
本发明实施例还记载了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行以上实施例所述的传输共享方法。The embodiment of the invention further describes a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the transmission sharing method described in the above embodiments.
实施例三Embodiment 3
本发明提供的终端实施例,该终端可以是平板、手机、电脑、路由器、或智能投影仪等可进行数据传输共享的任意一种设备。当两个及以上手机通过路由器接入网络而进行上网时,该路由器可作为前述的终端。当两个及以上手机通过热点手机接入网络而进行上网时,前述终端可以作为热点手机,也可以作为传输共享手机中的任意一个手机。即本领域人员应该理解,本实施例中的终端不仅局限于具有热点功能的终端,可以是任意能够和其他终端采用数据传输共享机制进行数据传输的终端。其中本领域人员还应该明白,在实际应用中采用数据传输共享机制除了WiFi热点连接之外,还可以是其它能够想到的方式如至少两个手机通过接入同一路由器连接的网络进行上网。The terminal provided by the present invention may be any device that can share data and share, such as a tablet, a mobile phone, a computer, a router, or a smart projector. When two or more mobile phones access the Internet through a router to access the network, the router can serve as the aforementioned terminal. When two or more mobile phones access the Internet through a hot-spot mobile phone, the aforementioned terminal can be used as a hot-spot mobile phone or as a mobile phone in any of the shared mobile phones. That is, the person in the art should understand that the terminal in this embodiment is not limited to a terminal having a hotspot function, and may be any terminal that can perform data transmission with other terminals by using a data transmission sharing mechanism. Those skilled in the art should also understand that in the actual application, the data transmission sharing mechanism may be other than the WiFi hotspot connection, such as at least two mobile phones accessing the network connected by the same router to access the Internet.
图4为本发明实施例提供的终端的一组成结构示意图;如图4所示,所述终端包括:第一获取单元401、第二获取单元402、第一比较单元403、第一控制单元404;其中,FIG. 4 is a schematic structural diagram of a component of a terminal according to an embodiment of the present invention; as shown in FIG. 4, the terminal includes: a first acquiring unit 401, a second acquiring unit 402, a first comparing unit 403, and a first control unit 404. ;among them,
第一获取单元401,配置为获取至少一个传输共享终端当前的传输状态信息;The first obtaining unit 401 is configured to acquire current transmission state information of the at least one transmission sharing terminal;
第二获取单元402,配置为获取所述至少一个传输共享终端的传输限制信息;The second obtaining unit 402 is configured to acquire transmission restriction information of the at least one transmission sharing terminal;
第一比较单元403,配置为将所述传输状态信息和所述传输限制信息进行比较,得到比较结果;The first comparing unit 403 is configured to compare the transmission state information and the transmission restriction information to obtain a comparison result;
第一控制单元404,配置为依据所述比较结果,控制所述至少一个传输共享终端的传输连接状态。 The first control unit 404 is configured to control a transmission connection state of the at least one transmission sharing terminal according to the comparison result.
其中,所述传输状态信息至少包括每个传输共享终端占用的信道已消耗的数据流量、各信道的传输速率、所有信道共消耗的数据流量、和所有信道的总传输速率中的一种;The transmission status information includes at least one of data traffic consumed by each channel occupied by the transmission sharing terminal, a transmission rate of each channel, data traffic consumed by all channels, and a total transmission rate of all channels;
所述传输限制信息至少包括单条信道最大移动数据流量、单条信道最大传输速率、总传输共享的最大移动数据流量、和总传输共享的最大传输速率中的一种。The transmission restriction information includes at least one of a single channel maximum mobile data traffic, a single channel maximum transmission rate, a total transmission shared maximum mobile data traffic, and a total transmission shared maximum transmission rate.
其中,among them,
当所述传输状态信息为当前每个传输共享终端占用的信道已消耗的数据流量时,所述第一比较单元403,配置为将各信道已消耗的数据流量与各信道中对应信道的最大移动数据流量进行比较,筛选出已消耗的数据流量达到或超出最大移动数据流量的信道,确定所筛选出的信道为目标信道;相应的,所述第一控制单元404,配置为断开目标信道对应的传输共享终端的传输连接;When the transmission status information is the data traffic that has been consumed by the channel occupied by each of the transmission sharing terminals, the first comparing unit 403 is configured to use the data traffic consumed by each channel and the maximum movement of the corresponding channel in each channel. The data traffic is compared to filter out the channel whose consumed data traffic meets or exceeds the maximum mobile data traffic, and determines that the selected channel is the target channel. Correspondingly, the first control unit 404 is configured to disconnect the target channel. Transmission connection of the transmission sharing terminal;
当所述传输状态信息为各信道的传输速率时,所述第一比较单元403,配置为将各信道的当前传输速率与对应信道的最大传输速率进行比较,并筛选出当前传输速率已达到或超出最大传输速率的信道,确定所筛选出的信道为目标信道;相应的,所述第一控制单元404,配置为断开目标信道对应的传输共享终端的传输连接。When the transmission status information is the transmission rate of each channel, the first comparison unit 403 is configured to compare the current transmission rate of each channel with the maximum transmission rate of the corresponding channel, and filter out that the current transmission rate has reached or The channel that exceeds the maximum transmission rate is determined to be the target channel. Correspondingly, the first control unit 404 is configured to disconnect the transmission connection of the transmission sharing terminal corresponding to the target channel.
其中,among them,
当所述传输状态信息为所有信道共消耗的数据流量时,所述第一比较单元403,配置为将所述共消耗的数据流量和所述总传输共享的最大移动数据流量进行比较,当所述共消耗的数据流量已达到或超出所述总传输共享的最大移动数据流量时,触发第一控制单元404控制每个信道对应的传输共享终端的传输连接断开;When the transmission status information is the data traffic that is consumed by all the channels, the first comparing unit 403 is configured to compare the total consumed data traffic with the maximum mobile data traffic shared by the total transmission. When the total consumed data traffic has reached or exceeded the maximum mobile data traffic shared by the total transmission, the first control unit 404 is triggered to control the transmission connection disconnection of the transmission sharing terminal corresponding to each channel;
当所述传输状态信息为所有信道的总传输速率时,所述第一比较单元 403,配置为将所有信道的总传输速率和所述总传输共享的最大传输速率进行比较,当所述总传输速率已达到或超出所述总传输共享的最大传输速率时,触发第一控制单元404控制每个信道对应的传输共享终端的传输连接断开。The first comparison unit when the transmission status information is a total transmission rate of all channels 403. Configure to compare a total transmission rate of all channels with a maximum transmission rate shared by the total transmission, and trigger the first control unit when the total transmission rate has reached or exceeded a maximum transmission rate of the total transmission sharing. 404 controls the transmission connection disconnection of the transmission sharing terminal corresponding to each channel.
其中,所述传输状态信息至少包括当前传输共享终端占用的信道的总数量,所述传输限制信息至少包括允许建立的最大信道数量;The transmission status information includes at least a total number of channels occupied by the current transmission sharing terminal, and the transmission restriction information includes at least a maximum number of channels allowed to be established;
如图5所示,所述终端还包括:As shown in FIG. 5, the terminal further includes:
第二比较单元405,配置为当接收到其它终端发起的传输共享连接请求时,比较当前传输共享终端占用的信道的总数量与所允许建立的最大信道数量之间的大小关系,其中所述其它终端为除所述至少一个传输共享终端之外的终端;The second comparing unit 405 is configured to compare, when receiving the transmission sharing connection request initiated by the other terminal, a size relationship between the total number of channels occupied by the current transmission sharing terminal and the maximum number of channels allowed to be established, wherein the other The terminal is a terminal other than the at least one transport sharing terminal;
当第二比较单元405比较为所述传输共享终端占用的信道的总数量未达到所允许建立的最大信道数量时,触发第一建立单元406,否则触发第一屏蔽单元407;When the second comparison unit 405 compares that the total number of channels occupied by the transmission sharing terminal does not reach the maximum number of channels allowed to be established, the first establishing unit 406 is triggered, otherwise the first shielding unit 407 is triggered;
其中,第一建立单元406,配置为为所述其它终端建立并分配新的信道以建立传输共享连接;第一屏蔽单元407,配置为屏蔽所述传输共享连接请求或不应答。The first establishing unit 406 is configured to establish and allocate a new channel for the other terminal to establish a transmission shared connection. The first shielding unit 407 is configured to block the transmission shared connection request or not.
本实施例中,终端、具体是第一获取单元401、第二获取单元402对至少一个传输共享终端当前的传输状态信息和传输限制信息分别进行获取,第一比较单元403对这两个信息进行比较,第一控制单元404依据比较结果,控制传输共享终端的传输连接断开或继续开启。其中,通过传输状态信息和传输限制信息的比较结果执行对传输连接的断开或继续开启,与相关技术中由于传输共享终端的无节制开启即无限制的上网而导致的流量费用的增多相比,本实施例能够依据比较结果控制传输连接状态,避免流量损耗的不必要增加,进而保证本终端的正常使用。 In this embodiment, the terminal, specifically the first obtaining unit 401 and the second obtaining unit 402 respectively obtain the current transmission state information and the transmission restriction information of the at least one transmission sharing terminal, and the first comparing unit 403 performs the two information. In comparison, the first control unit 404 controls the transmission connection of the transmission sharing terminal to be disconnected or continues to be turned on according to the comparison result. Wherein, the disconnection or the continued opening of the transmission connection is performed by the comparison result of the transmission status information and the transmission restriction information, compared with the increase in the traffic cost caused by the uncontrolled opening of the transmission sharing terminal, that is, the unrestricted Internet access in the related art. In this embodiment, the transmission connection state can be controlled according to the comparison result, thereby avoiding unnecessary increase of the traffic loss, thereby ensuring normal use of the terminal.
需要说明的是,本发明实施例提供的终端,由于该终端解决问题的原理与前述传输共享方法相似,因此,终端的实施过程及实施原理均可以参见前述传输共享方法的实施过程及实施原理描述,重复之处不再赘述。It should be noted that, the terminal provided by the embodiment of the present invention is similar to the foregoing transmission sharing method in that the terminal solves the problem. Therefore, the implementation process and implementation principles of the terminal can refer to the implementation process and implementation principle of the foregoing transmission sharing method. , the repetition will not be repeated.
本领域技术人员应当理解,图4、5中所示的终端中的各处理单元的实现功能可参照前述传输共享方法的相关描述而理解。本领域技术人员应当理解,图4、5所示的终端中各处理单元的功能可通过运行于处理器上的程序而实现,也可通过具体的逻辑电路而实现。Those skilled in the art should understand that the implementation functions of the processing units in the terminal shown in FIGS. 4 and 5 can be understood by referring to the related description of the foregoing transmission sharing method. It should be understood by those skilled in the art that the functions of the processing units in the terminal shown in FIG. 4 and FIG. 5 can be implemented by a program running on a processor, or can be implemented by a specific logic circuit.
在实际应用中,所述第一获取单元401、第二获取单元402、第一比较单元403、第一控制单元404、第二比较单元405、第一建立单元406及第一屏蔽单元407均可由中央处理单元(CPU,Central Processing Unit)、或数字信号处理(DSP,Digital Signal Processor)、或微处理器(MPU,Micro Processor Unit)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等来实现。In an actual application, the first obtaining unit 401, the second obtaining unit 402, the first comparing unit 403, the first control unit 404, the second comparing unit 405, the first establishing unit 406, and the first shielding unit 407 may each be Central processing unit (CPU, Central Processing Unit), or digital signal processing (DSP, Digital Signal Processor), or microprocessor (MPU, Micro Processor Unit), or Field Programmable Gate Array (FPGA) to realise.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功 能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. The work specified in one or more blocks of a flow or a flow and/or a block diagram of a flowchart Able device.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
本发明实施例能够通过传输状态信息和传输限制信息的比较结果执行对传输连接的断开或继续开启,与相关技术中由于传输共享终端无限制的上网而导致的流量费用的增多相比,本发明实施例能够依据比较结果控制传输连接状态,避免流量损耗的不必要增加,进而保证终端的正常使用。 The embodiment of the present invention can perform the disconnection or the continuous opening of the transmission connection by comparing the transmission status information and the transmission restriction information, compared with the increase of the traffic cost caused by the unrestricted Internet access of the transmission sharing terminal in the related art. The embodiment of the invention can control the transmission connection state according to the comparison result, avoid unnecessary increase of the flow loss, and thereby ensure the normal use of the terminal.

Claims (11)

  1. 一种传输共享方法,所述方法包括:A transmission sharing method, the method comprising:
    获取至少一个传输共享终端当前的传输状态信息;Obtaining current transmission status information of at least one transmission sharing terminal;
    获取所述至少一个传输共享终端的传输限制信息;Obtaining transmission restriction information of the at least one transmission sharing terminal;
    将所述传输状态信息和所述传输限制信息进行比较,得到比较结果;Comparing the transmission status information and the transmission restriction information to obtain a comparison result;
    依据所述比较结果,控制所述至少一个传输共享终端的传输连接状态。And according to the comparison result, controlling a transmission connection state of the at least one transmission sharing terminal.
  2. 根据权利要求1所述的方法,其中,所述传输状态信息至少包括每个传输共享终端占用的信道已消耗的数据流量、各信道的传输速率、所有信道共消耗的数据流量、和所有信道的总传输速率中的一种;The method according to claim 1, wherein said transmission state information includes at least data traffic consumed by a channel occupied by each transmission sharing terminal, a transmission rate of each channel, data traffic consumed by all channels, and all channels One of the total transmission rates;
    所述传输限制信息至少包括单条信道最大移动数据流量、单条信道最大传输速率、总传输共享的最大移动数据流量、和总传输共享的最大传输速率中的一种。The transmission restriction information includes at least one of a single channel maximum mobile data traffic, a single channel maximum transmission rate, a total transmission shared maximum mobile data traffic, and a total transmission shared maximum transmission rate.
  3. 根据权利要求2所述的方法,其中,所述将所述传输状态信息和所述传输限制信息进行比较,得到比较结果,依据所述比较结果,控制所述至少一个传输共享终端的传输连接状态,包括:The method according to claim 2, wherein said comparing said transmission state information with said transmission restriction information to obtain a comparison result, and controlling a transmission connection state of said at least one transmission sharing terminal according to said comparison result ,include:
    当所述传输状态信息为当前每个传输共享终端占用的信道已消耗的数据流量时,将各信道已消耗的数据流量与各信道中对应信道的最大移动数据流量进行比较,筛选出已消耗的数据流量达到或超出最大移动数据流量的信道,确定所筛选出的信道为目标信道,断开目标信道对应的传输共享终端的传输连接;When the transmission status information is the data traffic that has been consumed by the channel occupied by each transmission sharing terminal, compare the data traffic consumed by each channel with the maximum mobile data traffic of the corresponding channel in each channel, and filter out the consumed data. The channel whose data traffic meets or exceeds the maximum mobile data traffic, determines that the selected channel is the target channel, and disconnects the transmission connection of the transmission sharing terminal corresponding to the target channel;
    当所述传输状态信息为各信道的传输速率时,将各信道的当前传输速率与对应信道的最大传输速率进行比较,并筛选出当前传输速率已达到或超出最大传输速率的信道,确定所筛选出的信道为目标信道,断开目标信道对应的传输共享终端的传输连接; When the transmission status information is the transmission rate of each channel, compare the current transmission rate of each channel with the maximum transmission rate of the corresponding channel, and filter out the channel whose current transmission rate has reached or exceeded the maximum transmission rate, and determine the selected channel. The outgoing channel is a target channel, and the transmission connection of the transmission sharing terminal corresponding to the target channel is disconnected;
    其中,所述传输连接状态至少包括断开。The transmission connection state includes at least disconnection.
  4. 根据权利要求2所述的方法,其中,所述将所述传输状态信息和所述传输限制信息进行比较,得到比较结果,依据所述比较结果,控制所述至少一个传输共享终端的传输连接状态,包括:The method according to claim 2, wherein said comparing said transmission state information with said transmission restriction information to obtain a comparison result, and controlling a transmission connection state of said at least one transmission sharing terminal according to said comparison result ,include:
    当所述传输状态信息为所有信道共消耗的数据流量时,将所述共消耗的数据流量和所述总传输共享的最大移动数据流量进行比较,当所述共消耗的数据流量已达到或超出所述总传输共享的最大移动数据流量时,则控制每个信道对应的传输共享终端的传输连接断开;Comparing the total consumed data traffic with the maximum mobile data traffic shared by the total transmission when the transmission state information is data traffic consumed by all channels, when the total consumed data traffic has reached or exceeded When the total mobile data traffic shared by the total transmission is shared, the transmission connection of the transmission sharing terminal corresponding to each channel is controlled to be disconnected;
    当所述传输状态信息为所有信道的总传输速率时,将所有信道的总传输速率和所述总传输共享的最大传输速率进行比较,当所述总传输速率已达到或超出所述总传输共享的最大传输速率时,则控制每个信道对应的传输共享终端的传输连接断开;When the transmission status information is the total transmission rate of all channels, comparing the total transmission rate of all channels with the maximum transmission rate shared by the total transmission, when the total transmission rate has reached or exceeded the total transmission sharing At the maximum transmission rate, the transmission connection of the transmission sharing terminal corresponding to each channel is controlled to be disconnected;
    其中,所述传输连接状态至少包括断开。The transmission connection state includes at least disconnection.
  5. 根据权利要求1至4任一项所述的方法,其中,所述传输状态信息至少包括当前传输共享终端占用的信道的总数量,所述传输限制信息至少包括允许建立的最大信道数量;The method according to any one of claims 1 to 4, wherein the transmission state information includes at least a total number of channels occupied by the current transmission sharing terminal, and the transmission restriction information includes at least a maximum number of channels allowed to be established;
    当接收到其它终端发起的传输共享连接请求时,比较当前传输共享终端占用的信道的总数量与所允许建立的最大信道数量之间的大小关系,其中所述其它终端为除所述至少一个传输共享终端之外的终端;Comparing the size relationship between the total number of channels occupied by the current transmission sharing terminal and the maximum number of channels allowed to be established, when receiving the transmission sharing connection request initiated by the other terminal, wherein the other terminal is in addition to the at least one transmission a terminal other than the shared terminal;
    当所述传输共享终端占用的信道的总数量未达到所允许建立的最大信道数量时,为所述其它终端建立并分配新的信道以建立传输共享连接;When the total number of channels occupied by the transmission sharing terminal does not reach the maximum number of channels allowed to be established, a new channel is established and allocated for the other terminal to establish a transmission shared connection;
    当所述传输共享终端占用的信道的总数量达到所允许建立的最大信道数量时,屏蔽所述传输共享连接请求或不应答。When the total number of channels occupied by the transmission sharing terminal reaches the maximum number of channels allowed to be established, the transmission sharing connection request is blocked or not answered.
  6. 一种终端,所述终端包括:A terminal, the terminal comprising:
    第一获取单元,配置为获取至少一个传输共享终端当前的传输状态信 息;a first acquiring unit, configured to acquire a current transmission status message of the at least one transmission sharing terminal interest;
    第二获取单元,配置为获取所述至少一个传输共享终端的传输限制信息;a second acquiring unit, configured to acquire transmission restriction information of the at least one transmission sharing terminal;
    第一比较单元,配置为将所述传输状态信息和所述传输限制信息进行比较,得到比较结果;a first comparing unit configured to compare the transmission state information and the transmission restriction information to obtain a comparison result;
    第一控制单元,配置为依据所述比较结果,控制所述至少一个传输共享终端的传输连接状态。The first control unit is configured to control a transmission connection state of the at least one transmission sharing terminal according to the comparison result.
  7. 根据权利要求6所述的终端,其中,所述传输状态信息至少包括每个传输共享终端占用的信道已消耗的数据流量、各信道的传输速率、所有信道共消耗的数据流量、和所有信道的总传输速率中的一种;The terminal according to claim 6, wherein the transmission state information includes at least data traffic consumed by a channel occupied by each transmission sharing terminal, a transmission rate of each channel, data traffic consumed by all channels, and all channels. One of the total transmission rates;
    所述传输限制信息至少包括单条信道最大移动数据流量、单条信道最大传输速率、总传输共享的最大移动数据流量、和总传输共享的最大传输速率中的一种。The transmission restriction information includes at least one of a single channel maximum mobile data traffic, a single channel maximum transmission rate, a total transmission shared maximum mobile data traffic, and a total transmission shared maximum transmission rate.
  8. 根据权利要求7所述的终端,其中,The terminal according to claim 7, wherein
    当所述传输状态信息为当前每个传输共享终端占用的信道已消耗的数据流量时,所述第一比较单元,配置为将各信道已消耗的数据流量与各信道中对应信道的最大移动数据流量进行比较,筛选出已消耗的数据流量达到或超出最大移动数据流量的信道,确定所筛选出的信道为目标信道;相应的,所述第一控制单元,配置为断开目标信道对应的传输共享终端的传输连接;When the transmission status information is the data traffic that has been consumed by the channel occupied by each of the transmission sharing terminals, the first comparing unit is configured to use the data traffic that has been consumed by each channel and the maximum mobile data of the corresponding channel in each channel. The traffic is compared to filter out the channel whose consumed data traffic meets or exceeds the maximum mobile data traffic, and determines that the selected channel is the target channel; correspondingly, the first control unit is configured to disconnect the transmission corresponding to the target channel. a transmission connection of the shared terminal;
    当所述传输状态信息为各信道的传输速率时,所述第一比较单元,配置为将各信道的当前传输速率与对应信道的最大传输速率进行比较,并筛选出当前传输速率已达到或超出最大传输速率的信道,确定所筛选出的信道为目标信道;相应的,所述第一控制单元,配置为断开目标信道对应的传输共享终端的传输连接; When the transmission status information is the transmission rate of each channel, the first comparing unit is configured to compare the current transmission rate of each channel with the maximum transmission rate of the corresponding channel, and filter out that the current transmission rate has reached or exceeded a channel of the maximum transmission rate, determining that the selected channel is the target channel; correspondingly, the first control unit is configured to disconnect the transmission connection of the transmission sharing terminal corresponding to the target channel;
    其中,所述传输连接状态至少包括断开。The transmission connection state includes at least disconnection.
  9. 根据权利要求7所述的终端,其中,The terminal according to claim 7, wherein
    当所述传输状态信息为所有信道共消耗的数据流量时,所述第一比较单元,配置为将所述共消耗的数据流量和所述总传输共享的最大移动数据流量进行比较,当所述共消耗的数据流量已达到或超出所述总传输共享的最大移动数据流量时,触发第一控制单元控制每个信道对应的传输共享终端的传输连接断开;When the transmission status information is data traffic consumed by all channels, the first comparing unit is configured to compare the total consumed data traffic with the maximum mobile data traffic shared by the total transmission, when When the total consumed data traffic has reached or exceeded the maximum mobile data traffic shared by the total transmission, the first control unit is triggered to control the transmission connection disconnection of the transmission sharing terminal corresponding to each channel;
    当所述传输状态信息为所有信道的总传输速率时,所述第一比较单元,配置为将所有信道的总传输速率和所述总传输共享的最大传输速率进行比较,当所述总传输速率已达到或超出所述总传输共享的最大传输速率时,触发第一控制单元控制每个信道对应的传输共享终端的传输连接断开;When the transmission status information is the total transmission rate of all channels, the first comparing unit is configured to compare the total transmission rate of all channels with the maximum transmission rate shared by the total transmission, when the total transmission rate When the maximum transmission rate shared by the total transmission is reached or exceeded, the first control unit is triggered to control the transmission connection disconnection of the transmission sharing terminal corresponding to each channel;
    其中,所述传输连接状态至少包括断开。The transmission connection state includes at least disconnection.
  10. 根据权利要求6至9任一项所述的终端,其中,所述传输状态信息至少包括当前传输共享终端占用的信道的总数量,所述传输限制信息至少包括允许建立的最大信道数量;The terminal according to any one of claims 6 to 9, wherein the transmission state information includes at least a total number of channels occupied by the current transmission sharing terminal, and the transmission restriction information includes at least a maximum number of channels allowed to be established;
    所述终端还包括:The terminal further includes:
    第二比较单元,配置为当接收到其它终端发起的传输共享连接请求时,比较当前传输共享终端占用的信道的总数量与所允许建立的最大信道数量之间的大小关系,其中所述其它终端为除所述至少一个传输共享终端之外的终端;a second comparing unit configured to: when receiving a transmission sharing connection request initiated by another terminal, compare a size relationship between a total number of channels occupied by the current transmission sharing terminal and a maximum number of channels allowed to be established, wherein the other terminal a terminal other than the at least one transport sharing terminal;
    当第二比较单元比较为所述传输共享终端占用的信道的总数量未达到所允许建立的最大信道数量时,触发第一建立单元,否则触发第一屏蔽单元;When the second comparison unit compares that the total number of channels occupied by the transmission sharing terminal does not reach the maximum number of channels allowed to be established, triggering the first establishing unit, otherwise triggering the first shielding unit;
    其中,第一建立单元,配置为为所述其它终端建立并分配新的信道以建立传输共享连接;第一屏蔽单元,配置为屏蔽所述传输共享连接请求或 不应答。The first establishing unit is configured to establish and allocate a new channel for the other terminal to establish a transmission sharing connection, and the first shielding unit is configured to block the transmission sharing connection request or Do not answer.
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行前述权利要求1至5任一项所述的传输共享方法。 A computer storage medium storing a computer program for performing the transmission sharing method according to any one of the preceding claims 1 to 5.
PCT/CN2017/072963 2016-10-11 2017-02-06 Transmission capacity sharing method, terminal, and storage medium WO2018068444A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610890146.7A CN107920032A (en) 2016-10-11 2016-10-11 Transmit sharing method and terminal
CN201610890146.7 2016-10-11

Publications (1)

Publication Number Publication Date
WO2018068444A1 true WO2018068444A1 (en) 2018-04-19

Family

ID=61892799

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/072963 WO2018068444A1 (en) 2016-10-11 2017-02-06 Transmission capacity sharing method, terminal, and storage medium

Country Status (2)

Country Link
CN (1) CN107920032A (en)
WO (1) WO2018068444A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111225374A (en) * 2020-01-16 2020-06-02 Tcl移动通信科技(宁波)有限公司 Network sharing setting method, device, storage medium and terminal

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965995A (en) * 2018-07-17 2018-12-07 北京奇艺世纪科技有限公司 A kind of throwing screen method, apparatus throws screen end equipment and shields end equipment by throwing

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201101783A (en) * 2009-06-24 2011-01-01 Hon Hai Prec Ind Co Ltd Method for testing wireless function of mobile phone
CN103096384A (en) * 2012-12-17 2013-05-08 东莞宇龙通信科技有限公司 Method limiting slave internet traffic and system thereof
CN103596121A (en) * 2013-10-30 2014-02-19 北京网河时代科技有限公司 Flow sharing method for wireless mobile networks
CN105338550A (en) * 2015-09-22 2016-02-17 网易传媒科技(北京)有限公司 Method and device for managing connection of wireless network
CN105357734A (en) * 2015-11-20 2016-02-24 小米科技有限责任公司 Method and device used for controlling access to WIFI hot spot
CN105682148A (en) * 2015-12-25 2016-06-15 科大讯飞股份有限公司 Traffic sharing method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201101783A (en) * 2009-06-24 2011-01-01 Hon Hai Prec Ind Co Ltd Method for testing wireless function of mobile phone
CN103096384A (en) * 2012-12-17 2013-05-08 东莞宇龙通信科技有限公司 Method limiting slave internet traffic and system thereof
CN103596121A (en) * 2013-10-30 2014-02-19 北京网河时代科技有限公司 Flow sharing method for wireless mobile networks
CN105338550A (en) * 2015-09-22 2016-02-17 网易传媒科技(北京)有限公司 Method and device for managing connection of wireless network
CN105357734A (en) * 2015-11-20 2016-02-24 小米科技有限责任公司 Method and device used for controlling access to WIFI hot spot
CN105682148A (en) * 2015-12-25 2016-06-15 科大讯飞股份有限公司 Traffic sharing method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111225374A (en) * 2020-01-16 2020-06-02 Tcl移动通信科技(宁波)有限公司 Network sharing setting method, device, storage medium and terminal

Also Published As

Publication number Publication date
CN107920032A (en) 2018-04-17

Similar Documents

Publication Publication Date Title
KR101697414B1 (en) Shared network access via a peer-to-peer link
US9237460B2 (en) Traffic control method and device
EP3046292B1 (en) Techniques for managing a remote web client from an application on a mobile device
JP5945880B2 (en) Seamless transition of cellular telephone from cellular communication to Wi-Fi communication
WO2011140107A1 (en) Video call handling
US10959122B2 (en) Method and device for transmitting data
US20180197501A1 (en) Display connection switching
WO2014063487A1 (en) Traffic control method and device
CN104469970B (en) A kind of method and apparatus reconnecting data network
US20160036870A1 (en) Session managing method, session managing system, and call processing method
CN104968021B (en) Bandwidth control method and device in Bluetooth shared network
US20180070195A1 (en) Data acquisition equipment, method and system for sharing data between data acquisition equipment
KR20140112904A (en) Method and device for controlling use of external data network via mobile access point
WO2018068444A1 (en) Transmission capacity sharing method, terminal, and storage medium
EP3123755B1 (en) Managing device resources and configuration
EP3016470B1 (en) Communication device and method for establishing wireless peer-to-peer connections
US11233888B2 (en) Communicating with a short-range wireless device over a local area network
WO2015148435A1 (en) Managing device resources and configuration
JP2016149648A5 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
CN108551429A (en) Flow control methods, electronic device and the computer readable storage medium of application program
US10616778B2 (en) Method, device and terminal for realizing coexistence of miracast and hotspot
CN206585564U (en) A kind of wireless connection system based on Bluetooth control
CN105451348A (en) Network control method and device
US11281599B2 (en) Shared peripheral devices
JP5812065B2 (en) External storage device, data file transmission / reception system, data file transmission / reception method / program

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: 17860976

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: 17860976

Country of ref document: EP

Kind code of ref document: A1