CN106911581B - Transmission method, device and terminal - Google Patents

Transmission method, device and terminal Download PDF

Info

Publication number
CN106911581B
CN106911581B CN201710114781.0A CN201710114781A CN106911581B CN 106911581 B CN106911581 B CN 106911581B CN 201710114781 A CN201710114781 A CN 201710114781A CN 106911581 B CN106911581 B CN 106911581B
Authority
CN
China
Prior art keywords
data
transmission bandwidth
target
bandwidth
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710114781.0A
Other languages
Chinese (zh)
Other versions
CN106911581A (en
Inventor
李亚坤
林松涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710114781.0A priority Critical patent/CN106911581B/en
Publication of CN106911581A publication Critical patent/CN106911581A/en
Application granted granted Critical
Publication of CN106911581B publication Critical patent/CN106911581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2408Traffic characterised by specific attributes, e.g. priority or QoS for supporting different services, e.g. a differentiated services [DiffServ] type of service

Landscapes

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

Abstract

The application discloses a transmission method, a device and a terminal, wherein the method comprises the following steps: presetting the total transmission bandwidth of a terminal; when data transmission is needed, target data to be transmitted and target data attributes of the target data are obtained; determining a target transmission bandwidth, wherein the target transmission bandwidth is at least part of the total transmission bandwidth of a terminal, and the target transmission bandwidth is a bandwidth preset for the target data attribute; and transmitting the target data with the target transmission bandwidth. According to the method and the device, the bandwidth is set for the data with different data attributes in advance, and then when the target data needs to be transmitted, the target data is transmitted through the bandwidth corresponding to the data attributes of the target data, so that the situation that the data being transmitted occupies the whole total bandwidth of the terminal when the data with other data attributes is transmitted is avoided, and the situation that the data are transmitted between the nodes is avoided.

Description

Transmission method, device and terminal
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a transmission method, an apparatus, and a terminal.
Background
In a distributed system for big data calculation, a plurality of computing nodes are generally connected for each control node, and the computing tasks on data are completed by transmitting instructions and data to be calculated between the control nodes and the computing nodes.
When the amount of data to be calculated is large, the calculation data transmitted between the control node and the calculation node increases sharply, and occupies the entire transmission bandwidth between the control node and the calculation node, so that network congestion is formed, and instructions cannot be transmitted between the control node and the calculation node, thereby causing node loss.
Disclosure of Invention
In view of the above, an object of the present application is to provide a transmission method, an apparatus and a terminal, which are used to solve the technical problem that when the computed data suddenly increases, the instruction between the control node and the computing node cannot be transmitted, resulting in node loss in the distributed system for big data computation.
The application provides a transmission method, which comprises the following steps:
presetting the total transmission bandwidth of a terminal;
when data transmission is needed, target data to be transmitted and target data attributes of the target data are obtained;
determining a target transmission bandwidth, wherein the target transmission bandwidth is at least part of the total transmission bandwidth of a terminal, and the target transmission bandwidth is a bandwidth preset for the target data attribute;
and transmitting the target data with the target transmission bandwidth.
Preferably, the method, wherein the presetting of the total transmission bandwidth of the terminal includes:
acquiring an input setting instruction, and determining transmission bandwidths corresponding to data attributes;
and setting the total transmission bandwidth of the terminal based on the transmission bandwidth value, so that the total transmission bandwidth of the terminal comprises a plurality of transmission bandwidths, and each transmission bandwidth corresponds to one data attribute.
Preferably, the method, wherein the presetting of the total transmission bandwidth of the terminal includes:
acquiring historical record data of data transmission of a terminal;
extracting historical transmission data volume corresponding to each data attribute in the historical record data;
and setting the total transmission bandwidth of the terminal based on the historical transmission data volume, so that the total transmission bandwidth of the terminal comprises a plurality of transmission bandwidths, and each transmission bandwidth corresponds to one data attribute.
In the method, preferably, a ratio between the transmission bandwidths is matched with a ratio between historical transmission data amounts corresponding to respective corresponding data attributes.
Preferably, the determining the target transmission bandwidth in the method includes:
judging the port attribute of the target data attribute;
and if the port attribute is a preset first port, determining that the transmission bandwidth corresponding to the first port is a target transmission bandwidth.
The present application further provides a transmission device, including:
a bandwidth setting unit, configured to preset a total transmission bandwidth of a terminal;
the data acquisition unit is used for acquiring target data to be transmitted and target data attributes of the target data when data transmission is needed;
a target determining unit, configured to determine a target transmission bandwidth, where the target transmission bandwidth is at least a part of a total transmission bandwidth of a terminal, and the target transmission bandwidth is a bandwidth preset for a target data attribute;
and the target transmission unit is used for transmitting the target data with the target transmission bandwidth.
The application also provides a terminal, which comprises a configuration interface, a data interface and a processor, wherein:
the configuration interface is used for presetting the total transmission bandwidth of the terminal;
the data interface is used for acquiring target data to be transmitted and target data attributes of the target data when data transmission is needed;
and the processor is used for determining a target transmission bandwidth, wherein the target transmission bandwidth is at least part of the total transmission bandwidth of the terminal, the target transmission bandwidth is a bandwidth preset for the target data attribute, and the target data is transmitted by using the target transmission bandwidth.
Preferably, the configuration interface presets a total transmission bandwidth of the terminal, and specifically includes:
the method comprises the steps of obtaining an input setting instruction, determining transmission bandwidth values corresponding to data attributes, and setting the total transmission bandwidth of a terminal based on the transmission bandwidth values, so that the total transmission bandwidth of the terminal comprises a plurality of transmission bandwidths, and each transmission bandwidth corresponds to one data attribute.
Preferably, the configuration interface presets a total transmission bandwidth of the terminal, and specifically includes:
the method comprises the steps of obtaining historical record data of data transmission of a terminal, extracting historical transmission data quantity corresponding to each data attribute in the historical record data, and setting the total transmission bandwidth of the terminal based on the historical transmission data quantity, so that the total transmission bandwidth of the terminal comprises a plurality of transmission bandwidths, and each transmission bandwidth corresponds to one data attribute.
Preferably, in the terminal, the processor determines the target transmission bandwidth, and specifically includes:
and judging the port attribute of the target data attribute, and if the port attribute is a preset first port, determining the transmission bandwidth corresponding to the first port as the target transmission bandwidth.
According to the scheme, the bandwidth is set for the data with different data attributes in advance, and then when the target data needs to be transmitted, the target data is transmitted by the bandwidth corresponding to the data attribute of the target data, so that the situation that the data being transmitted occupies the whole total bandwidth of the terminal when the data with other data attributes is transmitted is avoided, and the situation that the nodes for data transmission are disconnected is further avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a flowchart illustrating an implementation of a transmission method according to an embodiment of the present application;
fig. 2 is a partial flowchart of a transmission method according to a second embodiment of the present application;
FIG. 3 is a diagram illustrating an example of an application of an embodiment of the present application;
fig. 4 is a partial flowchart of a transmission method according to a third embodiment of the present application;
fig. 5 is a partial flowchart of a transmission method according to a fourth embodiment of the present application;
fig. 6 is a schematic structural diagram of a transmission device according to a fifth embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal according to a sixth embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, a flowchart of an implementation of a transmission method provided in an embodiment of the present application is suitable for a terminal or an electronic device that performs data transmission, such as each computing node or control node in a distributed system that performs big data computation.
Specifically, the method in this embodiment may include the following steps:
step 101: the total transmission bandwidth of the terminal is set in advance.
The terminal may be an electronic device having a network card capable of performing data transmission, such as a computing node or a control node in a distributed system.
In this embodiment, setting the total transmission bandwidth of the terminal refers to setting the total bandwidth that the terminal can use for data transmission, and setting the bandwidth corresponding to the data of each data attribute.
The terminal has a maximum transmission bandwidth that is different from a set total transmission bandwidth of the terminal. The total transmission bandwidth of the terminal may be equal to the maximum transmission bandwidth of the terminal, for example, the maximum transmission bandwidth of the terminal is 5Mb/s, and the total transmission bandwidth of the terminal is set to be 5Mb/s in this embodiment.
In practical applications, in order to avoid adverse effects caused when the terminal performs data transmission with the maximum transmission bandwidth, such as excessive power consumption or high instantaneous heat, in this embodiment, the total transmission bandwidth of the terminal may be set to be a part of the maximum transmission bandwidth of the terminal, that is, the total transmission bandwidth of the terminal is smaller than the maximum transmission bandwidth of the terminal, for example, the total transmission bandwidth when the terminal performs data transmission with other terminals may be 4 Mb/s.
Step 102: when data transmission is needed, target data to be transmitted and target data attributes of the target data are obtained.
The terminal transmits data, including receiving data or sending data.
And the target data attributes may be: attributes of the data or attributes of the instruction data are calculated. Obtaining the target data and the target data attribute in this embodiment means obtaining the target data and determining whether the target data is the attribute of the calculation data or the instruction data before data transmission.
Step 103: a target transmission bandwidth is determined.
The target transmission bandwidth is at least part of the total transmission bandwidth of the terminal, and the target transmission bandwidth is a bandwidth preset for the target data attribute.
That is, for each type of data attribute transmitted by the terminal, in this embodiment, when setting the total transmission bandwidth of the terminal, bandwidths with different sizes are set for the data with different data attributes, for example, the bandwidth corresponding to the calculated data is 3Mb/s, which is appropriately larger than the bandwidth corresponding to the instruction data, such as 1 Mb/s.
It should be noted that the bandwidth corresponding to the data of each type of data attribute cannot be greater than the total transmission bandwidth of the terminal.
The sum of the bandwidths corresponding to the data with the data attributes may be equal to or less than the total transmission bandwidth of the terminal, or may be slightly greater than the total transmission bandwidth of the terminal. For example, the sum of the bandwidth corresponding to the calculation data and the bandwidth corresponding to the instruction data is 4Mb/s, which is equal to the total transmission bandwidth of the terminal, 4 Mb/s.
Step 104: and transmitting the target data with the target transmission bandwidth.
Wherein the target transmission bandwidth may be the entire bandwidth of the total transmission bandwidth of the terminal, the terminal may transmit the target data with the maximum bandwidth capable of transmitting data.
The target transmission bandwidth may be a partial bandwidth of the total transmission bandwidth of the terminal, so that the terminal may transmit data with other data attributes while transmitting data with one type of data attributes, so as to avoid a situation that the data with other data attributes cannot be transmitted to cause communication failure.
For example, in a distributed system for big data calculation, 4/5 of the total transmission bandwidth is preset as the transmission bandwidth of the calculation data when data is transmitted between the calculation node and the control node, so that after 4/5 of the total transmission bandwidth is occupied by the calculation data, 1/5 of the total transmission bandwidth is in an idle state, at this time, if instruction data needs to be transmitted, 1/5 of the remaining total transmission bandwidth can be used for transmission, and the situation of loss of connection between the calculation node and the control node is avoided.
According to the scheme, bandwidth is set for data with different data attributes in advance, and then when the target data needs to be transmitted, the target data is transmitted with bandwidth corresponding to the data attribute of the target data, so that the situation that the data with other data attributes is transmitted and occupies the whole total bandwidth of the terminal by the data being transmitted is avoided, and the situation that data transmission nodes are disconnected is avoided.
Referring to fig. 2, a flowchart of implementing step 101 in a transmission method provided in the second embodiment of the present application is shown, where step 101 may be implemented by:
step 201: and obtaining the input setting instruction.
The setting instruction can be generated by a user through corresponding input operation of the interactive interface.
Step 202: and determining the transmission bandwidth corresponding to each data attribute based on the setting instruction.
The transmission bandwidth corresponding to each data attribute may be the same or different. For example, the calculated data corresponds to a transmission bandwidth of 4Mb/s, and the command data corresponds to a transmission bandwidth of 1 Mb/s.
Step 203: and setting the total transmission bandwidth of the terminal based on the numerical value of the transmission bandwidth, so that the total transmission bandwidth of the terminal comprises a plurality of transmission bandwidths, and each transmission bandwidth corresponds to one data attribute.
That is, the total transmission bandwidth of the terminal includes the transmission bandwidth corresponding to each data attribute, as shown in fig. 3, the total transmission bandwidth a includes transmission bandwidths a1, b1, c1, etc., a1 corresponds to the data attribute a2, b1 corresponds to the data attribute b2, c1 corresponds to the data attribute c2, etc.
Referring to fig. 4, a flowchart of an implementation of step 101 in a transmission method provided in the third embodiment of the present application is shown, where step 101 may be implemented by the following steps:
step 401: and acquiring historical data of data transmission performed by the terminal.
The history data includes a history data amount for the terminal to transfer data of each data attribute, for example, a history data amount x of the data attribute a1, a history data amount y of the data attribute b1, and a history data amount z of the data attribute c 1.
Step 402: and extracting historical transmission data volume corresponding to each data attribute in the historical record data.
Step 403: and setting the total transmission bandwidth of the terminal based on the historical transmission data volume, so that the total transmission bandwidth of the terminal comprises a plurality of transmission bandwidths, and each transmission bandwidth corresponds to one data attribute.
In this embodiment, when the total transmission bandwidth of the terminal is set based on the historical transmission data amount, the total transmission bandwidth of the terminal may be set according to a ratio value between the historical transmission data amounts corresponding to each data attribute. For example, the larger the historical transmission data amount corresponding to the data attribute is, the larger the transmission bandwidth set for the data attribute in the total transmission bandwidth is, the smaller the historical transmission data amount corresponding to the data attribute is, and the smaller the transmission bandwidth set for the data attribute in the total transmission bandwidth is.
That is, the ratio between the transmission bandwidths in the total transmission bandwidth of the terminal is matched with the ratio between the historical transmission data amounts corresponding to the respective corresponding data attributes. For example, the total transmission bandwidth a of the terminal includes transmission bandwidths a1, b1, c1, etc., a1 corresponds to the data attribute a2, b1 corresponds to the data attribute b2, c1 corresponds to the data attribute c2, while the data attribute a1 corresponds to the historical transmission data amount x, the historical transmission data amount y of the data attribute b1, and the historical transmission data amount z of the data attribute c1, and the ratios of the transmission bandwidths of a1, b1, c1 are the same as the ratios of x, y, and z.
Referring to fig. 5, a flowchart of step 103 in a transmission method provided in the fourth embodiment of the present application is shown, where step 103 may be implemented by the following steps:
step 501: and judging the port attribute of the target data attribute, and if the port attribute is a preset first port, executing the step 502.
Step 502: and determining the transmission bandwidth corresponding to the first port as a target transmission bandwidth.
In a specific implementation, each data attribute has a specific transmission port, so in this embodiment, a corresponding transmission bandwidth may be determined for the target data attribute by determining the port attribute of the target data attribute, that is, in this embodiment, when setting the transmission bandwidth corresponding to each data attribute in the total transmission bandwidth of the terminal, the transmission bandwidth is set according to the port attribute of the data transmission, and one port corresponds to one data attribute and corresponds to one transmission bandwidth. In this embodiment, after the target data and the target data attribute are obtained, the port attribute of the target data attribute is determined, so as to determine which port corresponds to the target data attribute, and further determine that the transmission bandwidth corresponding to the port is the target transmission bandwidth.
It should be noted that the first port in the foregoing is not specific to a fixed port, but is merely used to refer to a port, which is distinguished from other concepts.
Referring to fig. 6, a schematic structural diagram of a transmission apparatus provided in the fifth embodiment of the present application is suitable for a terminal or an electronic device that performs data transmission, such as each computing node or control node in a distributed system that performs big data computation.
Specifically, the transmission device in this embodiment may include the following structure:
a bandwidth setting unit 601, configured to set a total transmission bandwidth of the terminal in advance.
The terminal may be an electronic device having a network card capable of performing data transmission, such as a computing node or a control node in a distributed system.
In this embodiment, setting the total transmission bandwidth of the terminal refers to setting the total bandwidth that the terminal can use for data transmission, and setting the bandwidth corresponding to the data of each data attribute.
The terminal has a maximum transmission bandwidth that is different from a set total transmission bandwidth of the terminal. The total transmission bandwidth of the terminal may be equal to the maximum transmission bandwidth of the terminal, for example, the maximum transmission bandwidth of the terminal is 5Mb/s, and the total transmission bandwidth of the terminal is set to be 5Mb/s in this embodiment.
In practical applications, in order to avoid adverse effects caused when the terminal performs data transmission with the maximum transmission bandwidth, such as excessive power consumption or high instantaneous heat, in this embodiment, the total transmission bandwidth of the terminal may be set to be a part of the maximum transmission bandwidth of the terminal, that is, the total transmission bandwidth of the terminal is smaller than the maximum transmission bandwidth of the terminal, for example, the total transmission bandwidth when the terminal performs data transmission with other terminals may be 4 Mb/s.
A data obtaining unit 602, configured to obtain target data to be transmitted and a target data attribute of the target data when data transmission is needed.
The terminal transmits data, including receiving data or sending data.
And the target data attributes may be: attributes of the data or attributes of the instruction data are calculated. Obtaining the target data and the target data attribute in this embodiment means obtaining the target data and determining whether the target data is the attribute of the calculation data or the instruction data before data transmission.
A target determining unit 603, configured to determine a target transmission bandwidth.
The target transmission bandwidth is at least part of the total transmission bandwidth of the terminal, and the target transmission bandwidth is a bandwidth preset for the target data attribute.
That is, for each type of data attribute transmitted by the terminal, in this embodiment, when setting the total transmission bandwidth of the terminal, bandwidths with different sizes are set for the data with different data attributes, for example, the bandwidth corresponding to the calculated data is 3Mb/s, which is appropriately larger than the bandwidth corresponding to the instruction data, such as 1 Mb/s.
It should be noted that the bandwidth corresponding to the data of each type of data attribute cannot be greater than the total transmission bandwidth of the terminal.
The sum of the bandwidths corresponding to the data with the data attributes may be equal to or less than the total transmission bandwidth of the terminal, or may be slightly greater than the total transmission bandwidth of the terminal. For example, the sum of the bandwidth corresponding to the calculation data and the bandwidth corresponding to the instruction data is 4Mb/s, which is equal to the total transmission bandwidth of the terminal, 4 Mb/s.
A target transmission unit 604, configured to transmit the target data with the target transmission bandwidth.
Wherein the target transmission bandwidth may be the entire bandwidth of the total transmission bandwidth of the terminal, the terminal may transmit the target data with the maximum bandwidth capable of transmitting data.
The target transmission bandwidth may be a partial bandwidth of the total transmission bandwidth of the terminal, so that the terminal may transmit data with other data attributes while transmitting data with one type of data attributes, so as to avoid a situation that the data with other data attributes cannot be transmitted to cause communication failure.
For example, in a distributed system for big data calculation, 4/5 of the total transmission bandwidth is preset as the transmission bandwidth of the calculation data when data is transmitted between the calculation node and the control node, so that after 4/5 of the total transmission bandwidth is occupied by the calculation data, 1/5 of the total transmission bandwidth is in an idle state, at this time, if instruction data needs to be transmitted, 1/5 of the remaining total transmission bandwidth can be used for transmission, and the situation of loss of connection between the calculation node and the control node is avoided.
According to the scheme, the bandwidth is set for the data with different data attributes in advance, and then when the target data needs to be transmitted, the target data is transmitted with the bandwidth corresponding to the data attribute of the target data, so that the situation that the data with other data attributes is transmitted and occupies the whole total bandwidth of the terminal by the data being transmitted is avoided, and the situation that the nodes for data transmission are disconnected is avoided.
Referring to fig. 7, a schematic structural diagram of a terminal according to a sixth embodiment of the present application is provided, where the terminal may be a terminal performing data transmission, such as a terminal of each computing node or a control node in a distributed system for big data computing.
In this embodiment, the terminal includes a configuration interface 701, a data interface 702, and a processor 703, where:
the interface 701 is configured to preset a total transmission bandwidth of the terminal.
The configuration interface presetting the total transmission bandwidth of the terminal refers to setting the total bandwidth which can be used by the terminal for data transmission and setting the bandwidth corresponding to the data of each data attribute.
The terminal has a maximum transmission bandwidth that is different from a set total transmission bandwidth of the terminal. The total transmission bandwidth of the terminal may be equal to the maximum transmission bandwidth of the terminal, for example, the maximum transmission bandwidth of the terminal is 5Mb/s, and the total transmission bandwidth of the terminal is set to be 5Mb/s in this embodiment.
In practical applications, in order to avoid adverse effects caused when the terminal performs data transmission with the maximum transmission bandwidth, such as excessive power consumption or high instantaneous heat, in this embodiment, the total transmission bandwidth of the terminal may be set to be a part of the maximum transmission bandwidth of the terminal, that is, the total transmission bandwidth of the terminal is smaller than the maximum transmission bandwidth of the terminal, for example, the total transmission bandwidth when the terminal performs data transmission with other terminals may be 4 Mb/s.
The data interface 702 is configured to obtain target data to be transmitted and target data attributes of the target data when data transmission is required.
The data interface 702 obtains target data to be transmitted and target data attributes of the target data.
And the target data attributes may be: attributes of the data or attributes of the instruction data are calculated. Obtaining the target data and the target data attribute in this embodiment means obtaining the target data and determining whether the target data is the attribute of the calculation data or the instruction data before data transmission.
A processor 703, configured to determine a target transmission bandwidth, where the target transmission bandwidth is at least a part of a total transmission bandwidth of a terminal, and the target transmission bandwidth is a bandwidth preset for the target data attribute, and transmit the target data with the target transmission bandwidth.
The target transmission bandwidth is at least part of the total transmission bandwidth of the terminal, and the target transmission bandwidth is a bandwidth preset for the target data attribute.
That is, for each type of data attribute transmitted by the terminal, the configuration interface 701 will set bandwidths with different sizes for the data with different data attributes when setting the total transmission bandwidth of the terminal, for example, the bandwidth corresponding to the calculated data is 3Mb/s, which is appropriately larger than the bandwidth corresponding to the command data, such as 1 Mb/s. The processor 703 then determines a target transmission bandwidth corresponding to the target data attribute.
It should be noted that the bandwidth corresponding to the data of each type of data attribute cannot be greater than the total transmission bandwidth of the terminal.
The sum of the bandwidths corresponding to the data with the data attributes may be equal to or less than the total transmission bandwidth of the terminal, or may be slightly greater than the total transmission bandwidth of the terminal. For example, the sum of the bandwidth corresponding to the calculation data and the bandwidth corresponding to the instruction data is 4Mb/s, which is equal to the total transmission bandwidth of the terminal, 4 Mb/s.
Where the target transmission bandwidth may be the entire bandwidth of the total transmission bandwidth of the terminal, the processor 703 of the terminal may transmit the target data with the maximum bandwidth capable of transmitting data.
The target transmission bandwidth may be a partial bandwidth of the total transmission bandwidth of the terminal, so that the processor 703 of the terminal may transmit data with other data attributes while transmitting data with one type of data attributes, so as to avoid a situation that data with other data attributes cannot be transmitted to cause communication failure.
For example, in a distributed system for big data calculation, 4/5 of the total transmission bandwidth is preset as the transmission bandwidth of the calculation data when data is transmitted between the calculation node and the control node, so that after 4/5 of the total transmission bandwidth is occupied by the calculation data, 1/5 of the total transmission bandwidth is in an idle state, at this time, if instruction data needs to be transmitted, 1/5 of the remaining total transmission bandwidth can be used for transmission, and the situation of loss of connection between the calculation node and the control node is avoided.
According to the scheme, the terminal provided by the sixth embodiment of the application sets the bandwidth for the data with different data attributes in advance, and then transmits the target data with the bandwidth corresponding to the data attribute of the target data when the target data needs to be transmitted, so that the situation that the data with other data attributes is transmitted and occupies the whole total bandwidth of the terminal by the data being transmitted is avoided, and the situation that the nodes for data transmission are disconnected is avoided.
In one implementation, the configuration interface 701 sets the total transmission bandwidth of the terminal in advance, specifically:
the method comprises the steps of obtaining an input setting instruction, determining transmission bandwidth values corresponding to data attributes, and setting the total transmission bandwidth of a terminal based on the transmission bandwidth values, so that the total transmission bandwidth of the terminal comprises a plurality of transmission bandwidths, and each transmission bandwidth corresponds to one data attribute.
In another implementation, the configuration interface 701 may preset the total transmission bandwidth of the terminal, and may also be implemented in the following manner:
the method comprises the steps of obtaining historical record data of data transmission of a terminal, extracting historical transmission data quantity corresponding to each data attribute in the historical record data, and setting the total transmission bandwidth of the terminal based on the historical transmission data quantity, so that the total transmission bandwidth of the terminal comprises a plurality of transmission bandwidths, and each transmission bandwidth corresponds to one data attribute.
The processor 703, in determining the target transmission bandwidth, may be implemented by:
and judging the port attribute of the target data attribute, and if the port attribute is a preset first port, determining the transmission bandwidth corresponding to the first port as the target transmission bandwidth.
That is, each data attribute has a specific transmission port, the processor 703 may determine a corresponding transmission bandwidth for the target data attribute by determining the port attribute of the target data attribute, that is, when the configuration interface 701 sets the transmission bandwidth corresponding to each data attribute in the total transmission bandwidth of the terminal, the configuration interface is set according to the port attribute of the data transmission, and one port corresponds to one data attribute and corresponds to one transmission bandwidth. After the data interface 702 obtains the target data and the target data attribute, the processor 703 determines which port corresponds to the target data attribute by determining the port attribute of the target data attribute, and further determines that the transmission bandwidth corresponding to the port is the target transmission bandwidth.
Taking a distributed system for performing big data calculation as an example, when a computing node or a control node is installed, sufficient bandwidth is reserved for communication between nodes, such as various data communication between a computing node agent and a main node, through configuration of a network card on a terminal where each node is located, for example 4/5 for reserving total transmission bandwidth for computing data, 1/5 for reserving total transmission bandwidth for instruction data, so that when a computing task runs, even if input and output computing data in a network are too high, instruction data transmission is not affected, and therefore loss of connection or loss of control of cluster nodes in the distributed system is not caused.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing detailed description of the transmission method, apparatus and terminal provided by the present invention enables those skilled in the art to make and use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of transmission, comprising:
presetting the total transmission bandwidth of a terminal;
when data transmission is needed, target data to be transmitted and target data attributes of the target data are obtained;
determining a target transmission bandwidth, wherein the target transmission bandwidth is at least part of total transmission bandwidth of a terminal, the target transmission bandwidth is bandwidth preset for a target data attribute, the target data attribute represents a data type of the target data, the data type of the target data is calculation data or instruction data, and the bandwidth preset for the calculation data is larger than the bandwidth preset for the instruction data;
and transmitting the target data with the target transmission bandwidth.
2. The method of claim 1, wherein presetting the total transmission bandwidth of the terminal comprises:
acquiring an input setting instruction, and determining transmission bandwidths corresponding to data attributes;
and setting the total transmission bandwidth of the terminal based on the transmission bandwidth value, so that the total transmission bandwidth of the terminal comprises a plurality of transmission bandwidths, and each transmission bandwidth corresponds to one data attribute.
3. The method of claim 1, wherein presetting the total transmission bandwidth of the terminal comprises:
acquiring historical record data of data transmission of a terminal;
extracting historical transmission data volume corresponding to each data attribute in the historical record data;
and setting the total transmission bandwidth of the terminal based on the historical transmission data volume, so that the total transmission bandwidth of the terminal comprises a plurality of transmission bandwidths, and each transmission bandwidth corresponds to one data attribute.
4. The method of claim 3, wherein a ratio between each of the transmission bandwidths matches a ratio between historical transmission data amounts corresponding to their respective corresponding data attributes.
5. The method of claim 1, wherein determining the target transmission bandwidth comprises:
judging the port attribute of the target data attribute;
and if the port attribute is a preset first port, determining that the transmission bandwidth corresponding to the first port is a target transmission bandwidth.
6. A transmission apparatus, comprising:
a bandwidth setting unit, configured to preset a total transmission bandwidth of a terminal;
the data acquisition unit is used for acquiring target data to be transmitted and target data attributes of the target data when data transmission is needed;
a target determining unit, configured to determine a target transmission bandwidth, where the target transmission bandwidth is at least a part of a total transmission bandwidth of a terminal, and the target transmission bandwidth is a bandwidth preset for a target data attribute, where the target data attribute represents a data type of the target data, and the data type of the target data is calculation data or instruction data, where a bandwidth preset for the calculation data is greater than a bandwidth preset for the instruction data;
and the target transmission unit is used for transmitting the target data with the target transmission bandwidth.
7. A terminal comprising a configuration interface, a data interface, and a processor, wherein:
the configuration interface is used for presetting the total transmission bandwidth of the terminal;
the data interface is used for acquiring target data to be transmitted and target data attributes of the target data when data transmission is needed;
the processor is configured to determine a target transmission bandwidth, where the target transmission bandwidth is at least part of a total transmission bandwidth of a terminal, and the target transmission bandwidth is a bandwidth preset for a target data attribute, transmit the target data with the target transmission bandwidth, where the target data attribute represents a data type of the target data, and the data type of the target data is calculation data or instruction data, where a bandwidth preset for the calculation data is greater than a bandwidth preset for the instruction data.
8. The terminal according to claim 7, wherein the configuration interface presets a total transmission bandwidth of the terminal, specifically:
the method comprises the steps of obtaining an input setting instruction, determining transmission bandwidth values corresponding to data attributes, and setting the total transmission bandwidth of a terminal based on the transmission bandwidth values, so that the total transmission bandwidth of the terminal comprises a plurality of transmission bandwidths, and each transmission bandwidth corresponds to one data attribute.
9. The terminal according to claim 7, wherein the configuration interface presets a total transmission bandwidth of the terminal, specifically:
the method comprises the steps of obtaining historical record data of data transmission of a terminal, extracting historical transmission data quantity corresponding to each data attribute in the historical record data, and setting the total transmission bandwidth of the terminal based on the historical transmission data quantity, so that the total transmission bandwidth of the terminal comprises a plurality of transmission bandwidths, and each transmission bandwidth corresponds to one data attribute.
10. The terminal of claim 7, wherein the processor determines a target transmission bandwidth, and specifically:
and judging the port attribute of the target data attribute, and if the port attribute is a preset first port, determining the transmission bandwidth corresponding to the first port as the target transmission bandwidth.
CN201710114781.0A 2017-02-28 2017-02-28 Transmission method, device and terminal Active CN106911581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710114781.0A CN106911581B (en) 2017-02-28 2017-02-28 Transmission method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710114781.0A CN106911581B (en) 2017-02-28 2017-02-28 Transmission method, device and terminal

Publications (2)

Publication Number Publication Date
CN106911581A CN106911581A (en) 2017-06-30
CN106911581B true CN106911581B (en) 2020-06-23

Family

ID=59208256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710114781.0A Active CN106911581B (en) 2017-02-28 2017-02-28 Transmission method, device and terminal

Country Status (1)

Country Link
CN (1) CN106911581B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600728A (en) * 2018-05-10 2018-09-28 Oppo广东移动通信有限公司 A kind of data transmission method and terminal, computer storage media

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7778194B1 (en) * 2004-08-13 2010-08-17 Packeteer, Inc. Examination of connection handshake to enhance classification of encrypted network traffic
CN102904908A (en) * 2011-07-25 2013-01-30 华为技术有限公司 Data transmission method, gateway equipment and access network equipment
CN104396215A (en) * 2012-05-01 2015-03-04 思杰系统有限公司 Method and apparatus for bandwidth allocation and estimation
CN106304203A (en) * 2015-05-29 2017-01-04 腾讯科技(深圳)有限公司 Data transmission method and device
CN106452850A (en) * 2016-09-23 2017-02-22 西安交通大学 SDN controller performance testing method and system
CN106453114A (en) * 2016-10-11 2017-02-22 刘昱 Flow distribution method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5783579B2 (en) * 2010-06-11 2015-09-24 マーベル ワールド トレード リミテッド Method and communication device implemented in communication device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7778194B1 (en) * 2004-08-13 2010-08-17 Packeteer, Inc. Examination of connection handshake to enhance classification of encrypted network traffic
CN102904908A (en) * 2011-07-25 2013-01-30 华为技术有限公司 Data transmission method, gateway equipment and access network equipment
CN104396215A (en) * 2012-05-01 2015-03-04 思杰系统有限公司 Method and apparatus for bandwidth allocation and estimation
CN106304203A (en) * 2015-05-29 2017-01-04 腾讯科技(深圳)有限公司 Data transmission method and device
CN106452850A (en) * 2016-09-23 2017-02-22 西安交通大学 SDN controller performance testing method and system
CN106453114A (en) * 2016-10-11 2017-02-22 刘昱 Flow distribution method and apparatus

Also Published As

Publication number Publication date
CN106911581A (en) 2017-06-30

Similar Documents

Publication Publication Date Title
CN108540568B (en) Computing capacity sharing method and intelligent equipment
CN109495542B (en) Load distribution method based on performance monitoring and terminal equipment
CN111767142B (en) Method for setting current limiting threshold of service node and service terminal equipment
CN111586714B (en) Network port allocation method, device, electronic equipment and computer usable medium
CN107360239A (en) A kind of client connection status detection method and system
CN104901989A (en) Field service providing system and method
EP3142293B1 (en) Reverse power supply management method, apparatus and system
CN113038609B (en) Method, device and equipment for allocating bandwidth resources based on communication demands
US10803004B2 (en) Modular UPS system and data transmission method for power device
CN105515962A (en) Information processing method and smart home equipment
CN109309735B (en) Connection processing method, server, system and storage medium
CN105052077A (en) Method and apparatus for processing information in M2M communications
CN107454136B (en) Calculation unloading method and device based on end-to-end P2P and control equipment
CN108200218A (en) A kind of method, apparatus and electronic equipment for realizing load balancing
CN106911581B (en) Transmission method, device and terminal
CN109462646B (en) Abnormal response method and equipment
CN104601376A (en) Heartbeat message sending method and device
CN112492618A (en) Network sharing method and device, electronic equipment and storage medium
CN113504981A (en) Task scheduling method and device, storage medium and electronic equipment
CN110971716B (en) Address configuration method, device, system and computer readable storage medium
US10333837B2 (en) Virtual network switch system and method of constructing the same
Boutammine et al. An adaptive scheduling method for grid computing
CN115344389B (en) Communication task allocation method and device between computing nodes in electromagnetic transient simulation
CN103763218A (en) Internet bandwidth control method and device
CN110944033B (en) Equipment control method, device, edge layer server, system and storage medium

Legal Events

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